blob: 297857b0868afbaefbc9588822d7a03a23be19bb [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy4bf6e232011-05-21 01:43:33 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 6.7.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'
cristy4bf6e232011-05-21 01:43:33 +0000576PACKAGE_TARNAME='ImageMagick-6.7.0'
577PACKAGE_VERSION='6.7.0'
578PACKAGE_STRING='ImageMagick 6.7.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
582ac_unique_file="magick/MagickCore.h"
583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000838UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000839UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000840UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000841UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000842UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000843UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000844INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000845INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000848INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000849INT32_T
850UINT16_T
851INT16_T
852UINT8_T
853INT8_T
854LIBRARY_EXTRA_CPPFLAGS
855MODULE_EXTRA_CPPFLAGS
856LIBSTDCLDFLAGS
857PERL_MAKE_OPTIONS
858QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000859MAINT
860MAINTAINER_MODE_FALSE
861MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862MAGICK_HDRI
863DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
866WITH_MODULES_FALSE
867WITH_MODULES_TRUE
868WITH_SHARED_LIBS_FALSE
869WITH_SHARED_LIBS_TRUE
870LTDLOPEN
871LT_CONFIG_H
872CONVENIENCE_LTDL_FALSE
873CONVENIENCE_LTDL_TRUE
874INSTALL_LTDL_FALSE
875INSTALL_LTDL_TRUE
876ARGZ_H
877sys_symbol_underscore
878LIBADD_DL
879LT_DLPREOPEN
880LIBADD_DLD_LINK
881LIBADD_SHL_LOAD
882LIBADD_DLOPEN
883LT_DLLOADERS
884INCLTDL
885LTDLINCL
886LTDLDEPS
887LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000888LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000889CXXCPP
890OTOOL64
891OTOOL
892LIPO
893NMEDIT
894DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000895MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000896RANLIB
cristyda16f162011-02-19 23:52:17 +0000897ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000898AR
899NM
900ac_ct_DUMPBIN
901DUMPBIN
902LIBTOOL
903OBJDUMP
904DLLTOOL
905AS
cristy3ed852e2009-09-05 21:47:34 +0000906LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000907CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000908CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000909OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000910PTHREAD_CFLAGS
911PTHREAD_LIBS
912PTHREAD_CC
913ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000914WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000915USING_CL_FALSE
916USING_CL_TRUE
917CYGWIN_BUILD_FALSE
918CYGWIN_BUILD_TRUE
919WIN32_NATIVE_BUILD_FALSE
920WIN32_NATIVE_BUILD_TRUE
921WINGDI32_DELEGATE_FALSE
922WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000923GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000924PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000925LN_S
cristy3ed852e2009-09-05 21:47:34 +0000926LD
cristy73bd4a52010-10-05 11:24:23 +0000927FGREP
928SED
929am__fastdepCXX_FALSE
930am__fastdepCXX_TRUE
931CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000932ac_ct_CXX
933CXXFLAGS
934CXX
cristya0b81c32010-01-22 02:54:33 +0000935EGREP
936GREP
937CPP
cristy73bd4a52010-10-05 11:24:23 +0000938am__fastdepCC_FALSE
939am__fastdepCC_TRUE
940CCDEPMODE
941AMDEPBACKSLASH
942AMDEP_FALSE
943AMDEP_TRUE
944am__quote
945am__include
946DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000947OBJEXT
948EXEEXT
949ac_ct_CC
950CPPFLAGS
951LDFLAGS
952CFLAGS
953CC
954DIRSEP
955MAGICK_FILTER_MODULE_PATH
956MAGICK_CONFIGURE_BUILD_PATH
957MAGICK_CONFIGURE_SRC_PATH
958MAGICK_CODER_MODULE_PATH
959MAN_DIR
960INFO_DIR
961PERSISTINCLUDE_DIR
962INCLUDE_DIR
963LIB_DIR
964LOCALSTATE_DIR
965SHAREDSTATE_DIR
966SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000967DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000968DATA_DIR
969LIBEXEC_DIR
970SBIN_DIR
971BIN_DIR
972EXEC_PREFIX_DIR
973PREFIX_DIR
974CONFIG_STATUS_DEPENDENCIES
975MAGICK_LIB_VERSION_NUMBER
976MAGICK_LIB_VERSION_TEXT
977MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000978AM_BACKSLASH
979AM_DEFAULT_VERBOSITY
980am__untar
981am__tar
982AMTAR
983am__leading_dot
984SET_MAKE
985AWK
986mkdir_p
987MKDIR_P
988INSTALL_STRIP_PROGRAM
989STRIP
990install_sh
991MAKEINFO
992AUTOHEADER
993AUTOMAKE
994AUTOCONF
995ACLOCAL
996VERSION
997PACKAGE
998CYGPATH_W
999am__isrc
1000INSTALL_DATA
1001INSTALL_SCRIPT
1002INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001003PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001004PACKAGE_RELEASE_DATE
1005PACKAGE_LIB_VERSION_NUMBER
1006PACKAGE_LIB_VERSION
1007PACKAGE_CHANGE_DATE
1008PACKAGE_RELEASE
cristyd694ca32011-03-27 21:42:54 +00001009MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001010MAGICK_LIBRARY_VERSION_INFO
1011MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001012MAGICK_LIBRARY_AGE
1013MAGICK_LIBRARY_REVISION
1014MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001015MAGICK_TARGET_OS
1016MAGICK_TARGET_VENDOR
1017MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001018target_os
1019target_vendor
1020target_cpu
1021target
1022host_os
1023host_vendor
1024host_cpu
1025host
1026build_os
1027build_vendor
1028build_cpu
1029build
1030CONFIGURE_ARGS
1031DISTCHECK_CONFIG_FLAGS
1032target_alias
1033host_alias
1034build_alias
1035LIBS
1036ECHO_T
1037ECHO_N
1038ECHO_C
1039DEFS
1040mandir
1041localedir
1042libdir
1043psdir
1044pdfdir
1045dvidir
1046htmldir
1047infodir
1048docdir
1049oldincludedir
1050includedir
1051localstatedir
1052sharedstatedir
1053sysconfdir
1054datadir
1055datarootdir
1056libexecdir
1057sbindir
1058bindir
1059program_transform_name
1060prefix
1061exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001062PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001063PACKAGE_BUGREPORT
1064PACKAGE_STRING
1065PACKAGE_VERSION
1066PACKAGE_TARNAME
1067PACKAGE_NAME
1068PATH_SEPARATOR
1069SHELL'
1070ac_subst_files=''
1071ac_user_opts='
1072enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001073enable_silent_rules
1074enable_dependency_tracking
1075with_gnu_ld
1076with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001077enable_bounds_checking
1078enable_osx_universal_binary
1079with_threads
1080enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001081enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001082enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001083enable_shared
1084enable_static
1085with_pic
1086enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001087with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001088enable_libtool_lock
1089with_included_ltdl
1090with_ltdl_include
1091with_ltdl_lib
1092enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001093with_modules
1094enable_delegate_build
1095enable_deprecated
1096enable_installed
1097enable_cipher
1098enable_embeddable
1099enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001100enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001101enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001102enable_ccmalloc
1103enable_efence
1104enable_prof
1105enable_gprof
1106enable_gcov
1107with_method_prefix
1108with_quantum_depth
1109with_cache
1110with_frozenpaths
1111with_magick_plus_plus
1112with_perl
1113with_perl_options
1114with_umem
1115with_libstdc
1116with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001117with_x
cristy3ed852e2009-09-05 21:47:34 +00001118with_zlib
1119with_autotrace
1120with_dps
1121with_djvu
cristy430a7312010-01-21 20:44:04 +00001122with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001123with_fftw
1124with_fpx
1125with_fontconfig
1126with_freetype
1127with_gslib
1128with_fontpath
1129with_gs_font_dir
1130with_gvc
1131with_jbig
1132with_jpeg
1133with_jp2
1134with_lcms
cristy71203402010-06-18 13:12:03 +00001135with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001136with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001137with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001138with_openexr
1139with_png
1140with_rsvg
1141with_tiff
cristyb1860752011-03-14 00:27:46 +00001142with_webp
cristy3ed852e2009-09-05 21:47:34 +00001143with_windows_font_dir
1144with_wmf
1145with_xml
1146'
1147 ac_precious_vars='build_alias
1148host_alias
1149target_alias
1150CC
1151CFLAGS
1152LDFLAGS
1153LIBS
1154CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001155CPP
cristy3ed852e2009-09-05 21:47:34 +00001156CXX
1157CXXFLAGS
1158CCC
cristy73bd4a52010-10-05 11:24:23 +00001159PKG_CONFIG
1160CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001161XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001162AUTOTRACE_CFLAGS
1163AUTOTRACE_LIBS
1164FONTCONFIG_CFLAGS
1165FONTCONFIG_LIBS
1166GVC_CFLAGS
1167GVC_LIBS
1168LQR_CFLAGS
1169LQR_LIBS
1170OPENEXR_CFLAGS
1171OPENEXR_LIBS
1172RSVG_CFLAGS
1173RSVG_LIBS
1174CAIRO_SVG_CFLAGS
1175CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001176
1177
1178# Initialize some variables set by options.
1179ac_init_help=
1180ac_init_version=false
1181ac_unrecognized_opts=
1182ac_unrecognized_sep=
1183# The variables have the same names as the options, with
1184# dashes changed to underlines.
1185cache_file=/dev/null
1186exec_prefix=NONE
1187no_create=
1188no_recursion=
1189prefix=NONE
1190program_prefix=NONE
1191program_suffix=NONE
1192program_transform_name=s,x,x,
1193silent=
1194site=
1195srcdir=
1196verbose=
1197x_includes=NONE
1198x_libraries=NONE
1199
1200# Installation directory options.
1201# These are left unexpanded so users can "make install exec_prefix=/foo"
1202# and all the variables that are supposed to be based on exec_prefix
1203# by default will actually change.
1204# Use braces instead of parens because sh, perl, etc. also accept them.
1205# (The list follows the same order as the GNU Coding Standards.)
1206bindir='${exec_prefix}/bin'
1207sbindir='${exec_prefix}/sbin'
1208libexecdir='${exec_prefix}/libexec'
1209datarootdir='${prefix}/share'
1210datadir='${datarootdir}'
1211sysconfdir='${prefix}/etc'
1212sharedstatedir='${prefix}/com'
1213localstatedir='${prefix}/var'
1214includedir='${prefix}/include'
1215oldincludedir='/usr/include'
1216docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1217infodir='${datarootdir}/info'
1218htmldir='${docdir}'
1219dvidir='${docdir}'
1220pdfdir='${docdir}'
1221psdir='${docdir}'
1222libdir='${exec_prefix}/lib'
1223localedir='${datarootdir}/locale'
1224mandir='${datarootdir}/man'
1225
1226ac_prev=
1227ac_dashdash=
1228for ac_option
1229do
1230 # If the previous option needs an argument, assign it.
1231 if test -n "$ac_prev"; then
1232 eval $ac_prev=\$ac_option
1233 ac_prev=
1234 continue
1235 fi
1236
1237 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001238 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1239 *=) ac_optarg= ;;
1240 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001241 esac
1242
1243 # Accept the important Cygnus configure options, so we can diagnose typos.
1244
1245 case $ac_dashdash$ac_option in
1246 --)
1247 ac_dashdash=yes ;;
1248
1249 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1250 ac_prev=bindir ;;
1251 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1252 bindir=$ac_optarg ;;
1253
1254 -build | --build | --buil | --bui | --bu)
1255 ac_prev=build_alias ;;
1256 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1257 build_alias=$ac_optarg ;;
1258
1259 -cache-file | --cache-file | --cache-fil | --cache-fi \
1260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1261 ac_prev=cache_file ;;
1262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1264 cache_file=$ac_optarg ;;
1265
1266 --config-cache | -C)
1267 cache_file=config.cache ;;
1268
1269 -datadir | --datadir | --datadi | --datad)
1270 ac_prev=datadir ;;
1271 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1272 datadir=$ac_optarg ;;
1273
1274 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1275 | --dataroo | --dataro | --datar)
1276 ac_prev=datarootdir ;;
1277 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1278 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1279 datarootdir=$ac_optarg ;;
1280
1281 -disable-* | --disable-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001285 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"enable_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval enable_$ac_useropt=no ;;
1296
1297 -docdir | --docdir | --docdi | --doc | --do)
1298 ac_prev=docdir ;;
1299 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1300 docdir=$ac_optarg ;;
1301
1302 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1303 ac_prev=dvidir ;;
1304 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1305 dvidir=$ac_optarg ;;
1306
1307 -enable-* | --enable-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001311 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316"enable_$ac_useropt"
1317"*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval enable_$ac_useropt=\$ac_optarg ;;
1322
1323 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1324 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1325 | --exec | --exe | --ex)
1326 ac_prev=exec_prefix ;;
1327 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1328 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1329 | --exec=* | --exe=* | --ex=*)
1330 exec_prefix=$ac_optarg ;;
1331
1332 -gas | --gas | --ga | --g)
1333 # Obsolete; use --with-gas.
1334 with_gas=yes ;;
1335
1336 -help | --help | --hel | --he | -h)
1337 ac_init_help=long ;;
1338 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1339 ac_init_help=recursive ;;
1340 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1341 ac_init_help=short ;;
1342
1343 -host | --host | --hos | --ho)
1344 ac_prev=host_alias ;;
1345 -host=* | --host=* | --hos=* | --ho=*)
1346 host_alias=$ac_optarg ;;
1347
1348 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1349 ac_prev=htmldir ;;
1350 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1351 | --ht=*)
1352 htmldir=$ac_optarg ;;
1353
1354 -includedir | --includedir | --includedi | --included | --include \
1355 | --includ | --inclu | --incl | --inc)
1356 ac_prev=includedir ;;
1357 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1358 | --includ=* | --inclu=* | --incl=* | --inc=*)
1359 includedir=$ac_optarg ;;
1360
1361 -infodir | --infodir | --infodi | --infod | --info | --inf)
1362 ac_prev=infodir ;;
1363 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1364 infodir=$ac_optarg ;;
1365
1366 -libdir | --libdir | --libdi | --libd)
1367 ac_prev=libdir ;;
1368 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1369 libdir=$ac_optarg ;;
1370
1371 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1372 | --libexe | --libex | --libe)
1373 ac_prev=libexecdir ;;
1374 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1375 | --libexe=* | --libex=* | --libe=*)
1376 libexecdir=$ac_optarg ;;
1377
1378 -localedir | --localedir | --localedi | --localed | --locale)
1379 ac_prev=localedir ;;
1380 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1381 localedir=$ac_optarg ;;
1382
1383 -localstatedir | --localstatedir | --localstatedi | --localstated \
1384 | --localstate | --localstat | --localsta | --localst | --locals)
1385 ac_prev=localstatedir ;;
1386 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1387 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1388 localstatedir=$ac_optarg ;;
1389
1390 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1391 ac_prev=mandir ;;
1392 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1393 mandir=$ac_optarg ;;
1394
1395 -nfp | --nfp | --nf)
1396 # Obsolete; use --without-fp.
1397 with_fp=no ;;
1398
1399 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1400 | --no-cr | --no-c | -n)
1401 no_create=yes ;;
1402
1403 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1404 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1405 no_recursion=yes ;;
1406
1407 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1408 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1409 | --oldin | --oldi | --old | --ol | --o)
1410 ac_prev=oldincludedir ;;
1411 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1412 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1413 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1414 oldincludedir=$ac_optarg ;;
1415
1416 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1417 ac_prev=prefix ;;
1418 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1419 prefix=$ac_optarg ;;
1420
1421 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1422 | --program-pre | --program-pr | --program-p)
1423 ac_prev=program_prefix ;;
1424 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1425 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1426 program_prefix=$ac_optarg ;;
1427
1428 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1429 | --program-suf | --program-su | --program-s)
1430 ac_prev=program_suffix ;;
1431 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1432 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1433 program_suffix=$ac_optarg ;;
1434
1435 -program-transform-name | --program-transform-name \
1436 | --program-transform-nam | --program-transform-na \
1437 | --program-transform-n | --program-transform- \
1438 | --program-transform | --program-transfor \
1439 | --program-transfo | --program-transf \
1440 | --program-trans | --program-tran \
1441 | --progr-tra | --program-tr | --program-t)
1442 ac_prev=program_transform_name ;;
1443 -program-transform-name=* | --program-transform-name=* \
1444 | --program-transform-nam=* | --program-transform-na=* \
1445 | --program-transform-n=* | --program-transform-=* \
1446 | --program-transform=* | --program-transfor=* \
1447 | --program-transfo=* | --program-transf=* \
1448 | --program-trans=* | --program-tran=* \
1449 | --progr-tra=* | --program-tr=* | --program-t=*)
1450 program_transform_name=$ac_optarg ;;
1451
1452 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1453 ac_prev=pdfdir ;;
1454 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1455 pdfdir=$ac_optarg ;;
1456
1457 -psdir | --psdir | --psdi | --psd | --ps)
1458 ac_prev=psdir ;;
1459 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1460 psdir=$ac_optarg ;;
1461
1462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463 | -silent | --silent | --silen | --sile | --sil)
1464 silent=yes ;;
1465
1466 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1467 ac_prev=sbindir ;;
1468 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1469 | --sbi=* | --sb=*)
1470 sbindir=$ac_optarg ;;
1471
1472 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1473 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1474 | --sharedst | --shareds | --shared | --share | --shar \
1475 | --sha | --sh)
1476 ac_prev=sharedstatedir ;;
1477 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1478 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1479 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1480 | --sha=* | --sh=*)
1481 sharedstatedir=$ac_optarg ;;
1482
1483 -site | --site | --sit)
1484 ac_prev=site ;;
1485 -site=* | --site=* | --sit=*)
1486 site=$ac_optarg ;;
1487
1488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1489 ac_prev=srcdir ;;
1490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1491 srcdir=$ac_optarg ;;
1492
1493 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1494 | --syscon | --sysco | --sysc | --sys | --sy)
1495 ac_prev=sysconfdir ;;
1496 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1497 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1498 sysconfdir=$ac_optarg ;;
1499
1500 -target | --target | --targe | --targ | --tar | --ta | --t)
1501 ac_prev=target_alias ;;
1502 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1503 target_alias=$ac_optarg ;;
1504
1505 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1506 verbose=yes ;;
1507
1508 -version | --version | --versio | --versi | --vers | -V)
1509 ac_init_version=: ;;
1510
1511 -with-* | --with-*)
1512 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1513 # Reject names that are not valid shell variable names.
1514 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001515 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001516 ac_useropt_orig=$ac_useropt
1517 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518 case $ac_user_opts in
1519 *"
1520"with_$ac_useropt"
1521"*) ;;
1522 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523 ac_unrecognized_sep=', ';;
1524 esac
1525 eval with_$ac_useropt=\$ac_optarg ;;
1526
1527 -without-* | --without-*)
1528 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001531 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001532 ac_useropt_orig=$ac_useropt
1533 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534 case $ac_user_opts in
1535 *"
1536"with_$ac_useropt"
1537"*) ;;
1538 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1539 ac_unrecognized_sep=', ';;
1540 esac
1541 eval with_$ac_useropt=no ;;
1542
1543 --x)
1544 # Obsolete; use --with-x.
1545 with_x=yes ;;
1546
1547 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1548 | --x-incl | --x-inc | --x-in | --x-i)
1549 ac_prev=x_includes ;;
1550 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1551 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1552 x_includes=$ac_optarg ;;
1553
1554 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1555 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1556 ac_prev=x_libraries ;;
1557 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1558 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1559 x_libraries=$ac_optarg ;;
1560
cristy98dddb52010-11-04 00:30:15 +00001561 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1562Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001563 ;;
1564
1565 *=*)
1566 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1567 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001568 case $ac_envvar in #(
1569 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001570 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001571 esac
cristy3ed852e2009-09-05 21:47:34 +00001572 eval $ac_envvar=\$ac_optarg
1573 export $ac_envvar ;;
1574
1575 *)
1576 # FIXME: should be removed in autoconf 3.0.
1577 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1578 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1579 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001580 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001581 ;;
1582
1583 esac
1584done
1585
1586if test -n "$ac_prev"; then
1587 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001588 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001589fi
1590
1591if test -n "$ac_unrecognized_opts"; then
1592 case $enable_option_checking in
1593 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001594 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001595 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1596 esac
1597fi
1598
1599# Check all directory arguments for consistency.
1600for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1601 datadir sysconfdir sharedstatedir localstatedir includedir \
1602 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1603 libdir localedir mandir
1604do
1605 eval ac_val=\$$ac_var
1606 # Remove trailing slashes.
1607 case $ac_val in
1608 */ )
1609 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1610 eval $ac_var=\$ac_val;;
1611 esac
1612 # Be sure to have absolute directory names.
1613 case $ac_val in
1614 [\\/$]* | ?:[\\/]* ) continue;;
1615 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1616 esac
cristy98dddb52010-11-04 00:30:15 +00001617 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001618done
1619
1620# There might be people who depend on the old broken behavior: `$host'
1621# used to hold the argument of --host etc.
1622# FIXME: To remove some day.
1623build=$build_alias
1624host=$host_alias
1625target=$target_alias
1626
1627# FIXME: To remove some day.
1628if test "x$host_alias" != x; then
1629 if test "x$build_alias" = x; then
1630 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001631 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1632 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001633 elif test "x$build_alias" != "x$host_alias"; then
1634 cross_compiling=yes
1635 fi
1636fi
1637
1638ac_tool_prefix=
1639test -n "$host_alias" && ac_tool_prefix=$host_alias-
1640
1641test "$silent" = yes && exec 6>/dev/null
1642
1643
1644ac_pwd=`pwd` && test -n "$ac_pwd" &&
1645ac_ls_di=`ls -di .` &&
1646ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001647 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001648test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001649 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001650
1651
1652# Find the source files, if location was not specified.
1653if test -z "$srcdir"; then
1654 ac_srcdir_defaulted=yes
1655 # Try the directory containing this script, then the parent directory.
1656 ac_confdir=`$as_dirname -- "$as_myself" ||
1657$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1658 X"$as_myself" : 'X\(//\)[^/]' \| \
1659 X"$as_myself" : 'X\(//\)$' \| \
1660 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1661$as_echo X"$as_myself" |
1662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1663 s//\1/
1664 q
1665 }
1666 /^X\(\/\/\)[^/].*/{
1667 s//\1/
1668 q
1669 }
1670 /^X\(\/\/\)$/{
1671 s//\1/
1672 q
1673 }
1674 /^X\(\/\).*/{
1675 s//\1/
1676 q
1677 }
1678 s/.*/./; q'`
1679 srcdir=$ac_confdir
1680 if test ! -r "$srcdir/$ac_unique_file"; then
1681 srcdir=..
1682 fi
1683else
1684 ac_srcdir_defaulted=no
1685fi
1686if test ! -r "$srcdir/$ac_unique_file"; then
1687 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001688 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001689fi
1690ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1691ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001692 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001693 pwd)`
1694# When building in place, set srcdir=.
1695if test "$ac_abs_confdir" = "$ac_pwd"; then
1696 srcdir=.
1697fi
1698# Remove unnecessary trailing slashes from srcdir.
1699# Double slashes in file names in object file debugging info
1700# mess up M-x gdb in Emacs.
1701case $srcdir in
1702*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1703esac
1704for ac_var in $ac_precious_vars; do
1705 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1706 eval ac_env_${ac_var}_value=\$${ac_var}
1707 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1708 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1709done
1710
1711#
1712# Report the --help message.
1713#
1714if test "$ac_init_help" = "long"; then
1715 # Omit some internal or obsolete options to make the list less imposing.
1716 # This message is too long to be a string in the A/UX 3.1 sh.
1717 cat <<_ACEOF
cristy4bf6e232011-05-21 01:43:33 +00001718\`configure' configures ImageMagick 6.7.0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001719
1720Usage: $0 [OPTION]... [VAR=VALUE]...
1721
1722To assign environment variables (e.g., CC, CFLAGS...), specify them as
1723VAR=VALUE. See below for descriptions of some of the useful variables.
1724
1725Defaults for the options are specified in brackets.
1726
1727Configuration:
1728 -h, --help display this help and exit
1729 --help=short display options specific to this package
1730 --help=recursive display the short help of all the included packages
1731 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001732 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001733 --cache-file=FILE cache test results in FILE [disabled]
1734 -C, --config-cache alias for \`--cache-file=config.cache'
1735 -n, --no-create do not create output files
1736 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1737
1738Installation directories:
1739 --prefix=PREFIX install architecture-independent files in PREFIX
1740 [$ac_default_prefix]
1741 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1742 [PREFIX]
1743
1744By default, \`make install' will install all the files in
1745\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1746an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1747for instance \`--prefix=\$HOME'.
1748
1749For better control, use the options below.
1750
1751Fine tuning of the installation directories:
1752 --bindir=DIR user executables [EPREFIX/bin]
1753 --sbindir=DIR system admin executables [EPREFIX/sbin]
1754 --libexecdir=DIR program executables [EPREFIX/libexec]
1755 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1756 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1757 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1758 --libdir=DIR object code libraries [EPREFIX/lib]
1759 --includedir=DIR C header files [PREFIX/include]
1760 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1761 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1762 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1763 --infodir=DIR info documentation [DATAROOTDIR/info]
1764 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1765 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001766 --docdir=DIR documentation root
cristy4bf6e232011-05-21 01:43:33 +00001767 [DATAROOTDIR/doc/ImageMagick-6.7.0]
cristy3ed852e2009-09-05 21:47:34 +00001768 --htmldir=DIR html documentation [DOCDIR]
1769 --dvidir=DIR dvi documentation [DOCDIR]
1770 --pdfdir=DIR pdf documentation [DOCDIR]
1771 --psdir=DIR ps documentation [DOCDIR]
1772_ACEOF
1773
1774 cat <<\_ACEOF
1775
cristy73bd4a52010-10-05 11:24:23 +00001776Program names:
1777 --program-prefix=PREFIX prepend PREFIX to installed program names
1778 --program-suffix=SUFFIX append SUFFIX to installed program names
1779 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1780
cristy3ed852e2009-09-05 21:47:34 +00001781X features:
1782 --x-includes=DIR X include files are in DIR
1783 --x-libraries=DIR X library files are in DIR
1784
1785System types:
1786 --build=BUILD configure for building on BUILD [guessed]
1787 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1788 --target=TARGET configure for building compilers for TARGET [HOST]
1789_ACEOF
1790fi
1791
1792if test -n "$ac_init_help"; then
1793 case $ac_init_help in
cristy4bf6e232011-05-21 01:43:33 +00001794 short | recursive ) echo "Configuration of ImageMagick 6.7.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001795 esac
1796 cat <<\_ACEOF
1797
1798Optional Features:
1799 --disable-option-checking ignore unrecognized --enable/--with options
1800 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1801 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001802 --enable-silent-rules less verbose build output (undo: `make V=1')
1803 --disable-silent-rules verbose build output (undo: `make V=0')
1804 --disable-dependency-tracking speeds up one-time build
1805 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001806 --bounds-checking enable run-time bounds-checking
1807 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001808 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001809 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001810 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001811 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001812 --enable-shared[=PKGS] build shared libraries [default=yes]
1813 --enable-static[=PKGS] build static libraries [default=yes]
1814 --enable-fast-install[=PKGS]
1815 optimize for fast installation [default=yes]
1816 --disable-libtool-lock avoid locking (might break parallel builds)
1817 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001818 --enable-delegate-build look for delegate libraries in build directory
1819 --disable-deprecated exclude deprecated methods in MagickCore and
1820 MagickWand API's
1821 --disable-installed Formally install ImageMagick under PREFIX
1822 --disable-cipher disable enciphering and deciphering image pixels
1823 --enable-embeddable enable self-contained, embeddable,
1824 zero-configuration ImageMagick
1825 --enable-hdri accurately represent the wide range of intensity
1826 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001827 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001828 --enable-maintainer-mode enable make rules and dependencies not useful
1829 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001830 --enable-ccmalloc enable 'ccmalloc' memory debug support
1831 --enable-efence enable 'efence' memory debug support
1832 --enable-prof enable 'prof' profiling support
1833 --enable-gprof enable 'gprof' profiling support
1834 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001835 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001836
1837Optional Packages:
1838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001840 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1841 --with-dmalloc use dmalloc, as in
1842 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001843 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001844 --with-pic try to use only PIC/non-PIC objects [default=use
1845 both]
cristyda16f162011-02-19 23:52:17 +00001846 --with-sysroot=DIR Search for dependent libraries within DIR
1847 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001848 --with-included-ltdl use the GNU ltdl sources included here
1849 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1850 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001851 --with-modules enable building dynamically loadable modules
1852 --with-method-prefix=PREFIX
1853 prefix MagickCore API methods
1854 --with-quantum-depth=DEPTH
1855 number of bits in a pixel quantum (default 16)
1856 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1857 memory)
1858 --with-frozenpaths freeze delegate paths
1859 --without-magick-plus-plus
1860 disable build/install of Magick++
1861 --with-perl enable build/install of PerlMagick
1862 --with-perl-options=OPTIONS
1863 options to pass on command-line when generating
1864 PerlMagick's build file
1865 --with-umem enable umem memory allocation library support
1866 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1867 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001868 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001869 --without-zlib disable ZLIB support
1870 --with-autotrace enable autotrace support
1871 --without-dps disable Display Postscript support
1872 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001873 --with-dejavu-font-dir=DIR
1874 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001875 --without-fftw disable FFTW support
1876 --without-fpx disable FlashPIX support
1877 --without-fontconfig disable fontconfig support
1878 --without-freetype disable Freetype support
1879 --without-gslib enable Ghostscript library support
1880 --with-fontpath=DIR prepend to default font search path
1881 --with-gs-font-dir=DIR Ghostscript font directory
1882 --without-gvc disable GVC support
1883 --without-jbig disable JBIG support
1884 --without-jpeg disable JPEG support
1885 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001886 --without-lcms disable lcms (v1.1X) support
1887 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001888 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001889 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001890 --without-openexr disable OpenEXR support
1891 --without-png disable PNG support
1892 --without-rsvg disable RSVG support
1893 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001894 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001895 --with-windows-font-dir=DIR
1896 directory containing MS-Windows fonts
1897 --without-wmf disable WMF support
1898 --without-xml disable XML support
1899
1900Some influential environment variables:
1901 CC C compiler command
1902 CFLAGS C compiler flags
1903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1904 nonstandard directory <lib dir>
1905 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001906 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001907 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001908 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001909 CXX C++ compiler command
1910 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001911 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001912 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001913 XMKMF Path to xmkmf, Makefile generator for X Window System
1914 AUTOTRACE_CFLAGS
1915 C compiler flags for AUTOTRACE, overriding pkg-config
1916 AUTOTRACE_LIBS
1917 linker flags for AUTOTRACE, overriding pkg-config
1918 FONTCONFIG_CFLAGS
1919 C compiler flags for FONTCONFIG, overriding pkg-config
1920 FONTCONFIG_LIBS
1921 linker flags for FONTCONFIG, overriding pkg-config
1922 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1923 GVC_LIBS linker flags for GVC, overriding pkg-config
1924 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1925 LQR_LIBS linker flags for LQR, overriding pkg-config
1926 OPENEXR_CFLAGS
1927 C compiler flags for OPENEXR, overriding pkg-config
1928 OPENEXR_LIBS
1929 linker flags for OPENEXR, overriding pkg-config
1930 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1931 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1932 CAIRO_SVG_CFLAGS
1933 C compiler flags for CAIRO_SVG, overriding pkg-config
1934 CAIRO_SVG_LIBS
1935 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001936
1937Use these variables to override the choices made by `configure' or to help
1938it to find libraries and programs with nonstandard names/locations.
1939
1940Report bugs to <http://www.imagemagick.org>.
1941_ACEOF
1942ac_status=$?
1943fi
1944
1945if test "$ac_init_help" = "recursive"; then
1946 # If there are subdirs, report their specific --help.
1947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1948 test -d "$ac_dir" ||
1949 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1950 continue
1951 ac_builddir=.
1952
1953case "$ac_dir" in
1954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955*)
1956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1957 # A ".." for each directory in $ac_dir_suffix.
1958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1959 case $ac_top_builddir_sub in
1960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1962 esac ;;
1963esac
1964ac_abs_top_builddir=$ac_pwd
1965ac_abs_builddir=$ac_pwd$ac_dir_suffix
1966# for backward compatibility:
1967ac_top_builddir=$ac_top_build_prefix
1968
1969case $srcdir in
1970 .) # We are building in place.
1971 ac_srcdir=.
1972 ac_top_srcdir=$ac_top_builddir_sub
1973 ac_abs_top_srcdir=$ac_pwd ;;
1974 [\\/]* | ?:[\\/]* ) # Absolute name.
1975 ac_srcdir=$srcdir$ac_dir_suffix;
1976 ac_top_srcdir=$srcdir
1977 ac_abs_top_srcdir=$srcdir ;;
1978 *) # Relative name.
1979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1980 ac_top_srcdir=$ac_top_build_prefix$srcdir
1981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1982esac
1983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1984
1985 cd "$ac_dir" || { ac_status=$?; continue; }
1986 # Check for guested configure.
1987 if test -f "$ac_srcdir/configure.gnu"; then
1988 echo &&
1989 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1990 elif test -f "$ac_srcdir/configure"; then
1991 echo &&
1992 $SHELL "$ac_srcdir/configure" --help=recursive
1993 else
1994 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1995 fi || ac_status=$?
1996 cd "$ac_pwd" || { ac_status=$?; break; }
1997 done
1998fi
1999
2000test -n "$ac_init_help" && exit $ac_status
2001if $ac_init_version; then
2002 cat <<\_ACEOF
cristy4bf6e232011-05-21 01:43:33 +00002003ImageMagick configure 6.7.0
cristyda16f162011-02-19 23:52:17 +00002004generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002005
cristy98dddb52010-11-04 00:30:15 +00002006Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002007This configure script is free software; the Free Software Foundation
2008gives unlimited permission to copy, distribute and modify it.
2009_ACEOF
2010 exit
2011fi
cristy8b350f62009-11-15 23:12:43 +00002012
2013## ------------------------ ##
2014## Autoconf initialization. ##
2015## ------------------------ ##
2016
2017# ac_fn_c_try_compile LINENO
2018# --------------------------
2019# Try to compile conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_c_try_compile ()
2021{
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext
2024 if { { ac_try="$ac_compile"
2025case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_compile") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2037 fi
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_c_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest.$ac_objext; then :
2043 ac_retval=0
2044else
2045 $as_echo "$as_me: failed program was:" >&5
2046sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 ac_retval=1
2049fi
cristyda16f162011-02-19 23:52:17 +00002050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002051 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002052
2053} # ac_fn_c_try_compile
2054
cristy95646052009-11-28 23:05:30 +00002055# ac_fn_c_try_cpp LINENO
2056# ----------------------
2057# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058ac_fn_c_try_cpp ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_cpp conftest.$ac_ext"
2062case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069 ac_status=$?
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2074 fi
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002076 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078 test ! -s conftest.err
2079 }; then :
2080 ac_retval=0
2081else
2082 $as_echo "$as_me: failed program was:" >&5
2083sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 ac_retval=1
2086fi
cristyda16f162011-02-19 23:52:17 +00002087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002088 as_fn_set_status $ac_retval
2089
2090} # ac_fn_c_try_cpp
2091
cristy8b350f62009-11-15 23:12:43 +00002092# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093# -------------------------------------------------------
2094# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095# the include files in INCLUDES and setting the cache variable VAR
2096# accordingly.
2097ac_fn_c_check_header_mongrel ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002100 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002103if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002104 $as_echo_n "(cached) " >&6
2105fi
2106eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109else
2110 # Is the header compilable?
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112$as_echo_n "checking $2 usability... " >&6; }
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */
2115$4
2116#include <$2>
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_header_compiler=yes
2120else
2121 ac_header_compiler=no
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125$as_echo "$ac_header_compiler" >&6; }
2126
2127# Is the header present?
2128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129$as_echo_n "checking $2 presence... " >&6; }
2130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h. */
2132#include <$2>
2133_ACEOF
2134if ac_fn_c_try_cpp "$LINENO"; then :
2135 ac_header_preproc=yes
2136else
2137 ac_header_preproc=no
2138fi
cristyda16f162011-02-19 23:52:17 +00002139rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141$as_echo "$ac_header_preproc" >&6; }
2142
2143# So? What about this header?
2144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2145 yes:no: )
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 ;;
2151 no:yes:* )
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2155$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2159$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002162( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002163## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002164## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002165 ) | sed "s/^/$as_me: WARNING: /" >&2
2166 ;;
2167esac
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002170if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002171 $as_echo_n "(cached) " >&6
2172else
2173 eval "$3=\$ac_header_compiler"
2174fi
2175eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177$as_echo "$ac_res" >&6; }
2178fi
cristyda16f162011-02-19 23:52:17 +00002179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002180
2181} # ac_fn_c_check_header_mongrel
2182
2183# ac_fn_c_try_run LINENO
2184# ----------------------
2185# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2186# that executables *can* be run.
2187ac_fn_c_try_run ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_link"
2191case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>&5
2198 ac_status=$?
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2201 { { case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204esac
2205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206$as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_try") 2>&5
2208 ac_status=$?
2209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210 test $ac_status = 0; }; }; then :
2211 ac_retval=0
2212else
2213 $as_echo "$as_me: program exited with status $ac_status" >&5
2214 $as_echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 ac_retval=$ac_status
2218fi
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002221 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002222
2223} # ac_fn_c_try_run
2224
2225# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2226# -------------------------------------------------------
2227# Tests whether HEADER exists and can be compiled using the include files in
2228# INCLUDES, setting the cache variable VAR accordingly.
2229ac_fn_c_check_header_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002234if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002235 $as_echo_n "(cached) " >&6
2236else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239$4
2240#include <$2>
2241_ACEOF
2242if ac_fn_c_try_compile "$LINENO"; then :
2243 eval "$3=yes"
2244else
2245 eval "$3=no"
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248fi
2249eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002253
2254} # ac_fn_c_check_header_compile
2255
cristya0b81c32010-01-22 02:54:33 +00002256# ac_fn_cxx_try_compile LINENO
2257# ----------------------------
2258# Try to compile conftest.$ac_ext, and return whether this succeeded.
2259ac_fn_cxx_try_compile ()
2260{
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 rm -f conftest.$ac_objext
2263 if { { ac_try="$ac_compile"
2264case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_compile") 2>conftest.err
2271 ac_status=$?
2272 if test -s conftest.err; then
2273 grep -v '^ *+' conftest.err >conftest.er1
2274 cat conftest.er1 >&5
2275 mv -f conftest.er1 conftest.err
2276 fi
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && {
2279 test -z "$ac_cxx_werror_flag" ||
2280 test ! -s conftest.err
2281 } && test -s conftest.$ac_objext; then :
2282 ac_retval=0
2283else
2284 $as_echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 ac_retval=1
2288fi
cristyda16f162011-02-19 23:52:17 +00002289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002290 as_fn_set_status $ac_retval
2291
2292} # ac_fn_cxx_try_compile
2293
cristy8b350f62009-11-15 23:12:43 +00002294# ac_fn_c_try_link LINENO
2295# -----------------------
2296# Try to link conftest.$ac_ext, and return whether this succeeded.
2297ac_fn_c_try_link ()
2298{
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 rm -f conftest.$ac_objext conftest$ac_exeext
2301 if { { ac_try="$ac_link"
2302case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305esac
2306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307$as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_link") 2>conftest.err
2309 ac_status=$?
2310 if test -s conftest.err; then
2311 grep -v '^ *+' conftest.err >conftest.er1
2312 cat conftest.er1 >&5
2313 mv -f conftest.er1 conftest.err
2314 fi
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316 test $ac_status = 0; } && {
2317 test -z "$ac_c_werror_flag" ||
2318 test ! -s conftest.err
2319 } && test -s conftest$ac_exeext && {
2320 test "$cross_compiling" = yes ||
2321 $as_test_x conftest$ac_exeext
2322 }; then :
2323 ac_retval=0
2324else
2325 $as_echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_retval=1
2329fi
2330 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2331 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2332 # interfere with the next link command; also delete a directory that is
2333 # left behind by Apple's compiler. We do this before executing the actions.
2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002336 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002337
2338} # ac_fn_c_try_link
2339
cristy73bd4a52010-10-05 11:24:23 +00002340# ac_fn_c_check_func LINENO FUNC VAR
2341# ----------------------------------
2342# Tests whether FUNC exists, setting the cache variable VAR accordingly
2343ac_fn_c_check_func ()
2344{
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002348if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002349 $as_echo_n "(cached) " >&6
2350else
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352/* end confdefs.h. */
2353/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2355#define $2 innocuous_$2
2356
2357/* System header to define __stub macros and hopefully few prototypes,
2358 which can conflict with char $2 (); below.
2359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2360 <limits.h> exists even on freestanding compilers. */
2361
2362#ifdef __STDC__
2363# include <limits.h>
2364#else
2365# include <assert.h>
2366#endif
2367
2368#undef $2
2369
2370/* Override any GCC internal prototype to avoid an error.
2371 Use char because int might match the return type of a GCC
2372 builtin and then its argument prototype would still apply. */
2373#ifdef __cplusplus
2374extern "C"
2375#endif
2376char $2 ();
2377/* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380#if defined __stub_$2 || defined __stub___$2
2381choke me
2382#endif
2383
2384int
2385main ()
2386{
2387return $2 ();
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392if ac_fn_c_try_link "$LINENO"; then :
2393 eval "$3=yes"
2394else
2395 eval "$3=no"
2396fi
2397rm -f core conftest.err conftest.$ac_objext \
2398 conftest$ac_exeext conftest.$ac_ext
2399fi
2400eval ac_res=\$$3
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002404
2405} # ac_fn_c_check_func
2406
2407# ac_fn_cxx_try_cpp LINENO
2408# ------------------------
2409# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2410ac_fn_cxx_try_cpp ()
2411{
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 if { { ac_try="$ac_cpp conftest.$ac_ext"
2414case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417esac
2418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419$as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2421 ac_status=$?
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2426 fi
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002428 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2430 test ! -s conftest.err
2431 }; then :
2432 ac_retval=0
2433else
2434 $as_echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 ac_retval=1
2438fi
cristyda16f162011-02-19 23:52:17 +00002439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002440 as_fn_set_status $ac_retval
2441
2442} # ac_fn_cxx_try_cpp
2443
2444# ac_fn_cxx_try_link LINENO
2445# -------------------------
2446# Try to link conftest.$ac_ext, and return whether this succeeded.
2447ac_fn_cxx_try_link ()
2448{
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { { ac_try="$ac_link"
2452case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455esac
2456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457$as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_link") 2>conftest.err
2459 ac_status=$?
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2464 fi
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_cxx_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest$ac_exeext && {
2470 test "$cross_compiling" = yes ||
2471 $as_test_x conftest$ac_exeext
2472 }; then :
2473 ac_retval=0
2474else
2475 $as_echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478 ac_retval=1
2479fi
2480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2482 # interfere with the next link command; also delete a directory that is
2483 # left behind by Apple's compiler. We do this before executing the actions.
2484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002486 as_fn_set_status $ac_retval
2487
2488} # ac_fn_cxx_try_link
2489
cristy98dddb52010-11-04 00:30:15 +00002490# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2491# ---------------------------------------------
2492# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2493# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002494ac_fn_c_check_decl ()
2495{
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002497 as_decl_name=`echo $2|sed 's/ *(.*//'`
2498 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2500$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002501if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002502 $as_echo_n "(cached) " >&6
2503else
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505/* end confdefs.h. */
2506$4
2507int
2508main ()
2509{
cristy98dddb52010-11-04 00:30:15 +00002510#ifndef $as_decl_name
2511#ifdef __cplusplus
2512 (void) $as_decl_use;
2513#else
2514 (void) $as_decl_name;
2515#endif
cristy73bd4a52010-10-05 11:24:23 +00002516#endif
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522if ac_fn_c_try_compile "$LINENO"; then :
2523 eval "$3=yes"
2524else
2525 eval "$3=no"
2526fi
2527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528fi
2529eval ac_res=\$$3
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002533
2534} # ac_fn_c_check_decl
2535
cristy8b350f62009-11-15 23:12:43 +00002536# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2537# -------------------------------------------
2538# Tests whether TYPE exists after having included INCLUDES, setting cache
2539# variable VAR accordingly.
2540ac_fn_c_check_type ()
2541{
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002545if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002546 $as_echo_n "(cached) " >&6
2547else
2548 eval "$3=no"
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int
2553main ()
2554{
2555if (sizeof ($2))
2556 return 0;
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_compile "$LINENO"; then :
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563/* end confdefs.h. */
2564$4
2565int
2566main ()
2567{
2568if (sizeof (($2)))
2569 return 0;
2570 ;
2571 return 0;
2572}
2573_ACEOF
2574if ac_fn_c_try_compile "$LINENO"; then :
2575
2576else
2577 eval "$3=yes"
2578fi
2579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580fi
2581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582fi
2583eval ac_res=\$$3
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002587
2588} # ac_fn_c_check_type
2589
cristy92703d82010-04-26 00:18:18 +00002590# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2591# ----------------------------------------------------
2592# Tries to find if the field MEMBER exists in type AGGR, after including
2593# INCLUDES, setting cache variable VAR accordingly.
2594ac_fn_c_check_member ()
2595{
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2598$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002599if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002600 $as_echo_n "(cached) " >&6
2601else
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603/* end confdefs.h. */
2604$5
2605int
2606main ()
2607{
2608static $2 ac_aggr;
2609if (ac_aggr.$3)
2610return 0;
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615if ac_fn_c_try_compile "$LINENO"; then :
2616 eval "$4=yes"
2617else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h. */
2620$5
2621int
2622main ()
2623{
2624static $2 ac_aggr;
2625if (sizeof ac_aggr.$3)
2626return 0;
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_compile "$LINENO"; then :
2632 eval "$4=yes"
2633else
2634 eval "$4=no"
2635fi
2636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640eval ac_res=\$$4
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002644
2645} # ac_fn_c_check_member
2646
cristy501c8042011-05-26 17:46:28 +00002647# ac_fn_c_find_intX_t LINENO BITS VAR
2648# -----------------------------------
2649# Finds a signed integer type with width BITS, setting cache variable VAR
2650# accordingly.
2651ac_fn_c_find_intX_t ()
2652{
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2655$as_echo_n "checking for int$2_t... " >&6; }
2656if eval \${$3+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658else
2659 eval "$3=no"
2660 # Order is important - never check a type that is potentially smaller
2661 # than half of the expected target width.
2662 for ac_type in int$2_t 'int' 'long int' \
2663 'long long int' 'short int' 'signed char'; do
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h. */
2666$ac_includes_default
2667 enum { N = $2 / 2 - 1 };
2668int
2669main ()
2670{
2671static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2672test_array [0] = 0
2673
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680/* end confdefs.h. */
2681$ac_includes_default
2682 enum { N = $2 / 2 - 1 };
2683int
2684main ()
2685{
2686static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2687 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2688test_array [0] = 0
2689
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694if ac_fn_c_try_compile "$LINENO"; then :
2695
2696else
2697 case $ac_type in #(
2698 int$2_t) :
2699 eval "$3=yes" ;; #(
2700 *) :
2701 eval "$3=\$ac_type" ;;
2702esac
2703fi
2704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705fi
2706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 if eval test \"x\$"$3"\" = x"no"; then :
2708
2709else
2710 break
2711fi
2712 done
2713fi
2714eval ac_res=\$$3
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716$as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718
2719} # ac_fn_c_find_intX_t
2720
2721# ac_fn_c_find_uintX_t LINENO BITS VAR
2722# ------------------------------------
2723# Finds an unsigned integer type with width BITS, setting cache variable VAR
2724# accordingly.
2725ac_fn_c_find_uintX_t ()
2726{
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2729$as_echo_n "checking for uint$2_t... " >&6; }
2730if eval \${$3+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732else
2733 eval "$3=no"
2734 # Order is important - never check a type that is potentially smaller
2735 # than half of the expected target width.
2736 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2737 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h. */
2740$ac_includes_default
2741int
2742main ()
2743{
2744static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2745test_array [0] = 0
2746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751if ac_fn_c_try_compile "$LINENO"; then :
2752 case $ac_type in #(
2753 uint$2_t) :
2754 eval "$3=yes" ;; #(
2755 *) :
2756 eval "$3=\$ac_type" ;;
2757esac
2758fi
2759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 if eval test \"x\$"$3"\" = x"no"; then :
2761
2762else
2763 break
2764fi
2765 done
2766fi
2767eval ac_res=\$$3
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769$as_echo "$ac_res" >&6; }
2770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2771
2772} # ac_fn_c_find_uintX_t
2773
cristy8b350f62009-11-15 23:12:43 +00002774# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2775# --------------------------------------------
2776# Tries to find the compile-time value of EXPR in a program that includes
2777# INCLUDES, setting VAR accordingly. Returns whether the value could be
2778# computed
2779ac_fn_c_compute_int ()
2780{
2781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2782 if test "$cross_compiling" = yes; then
2783 # Depending upon the size, compute the lo and hi bounds.
2784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h. */
2786$4
2787int
2788main ()
2789{
2790static int test_array [1 - 2 * !(($2) >= 0)];
2791test_array [0] = 0
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798 ac_lo=0 ac_mid=0
2799 while :; do
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801/* end confdefs.h. */
2802$4
2803int
2804main ()
2805{
2806static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2807test_array [0] = 0
2808
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_hi=$ac_mid; break
2815else
2816 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2817 if test $ac_lo -le $ac_mid; then
2818 ac_lo= ac_hi=
2819 break
2820 fi
2821 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2822fi
2823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 done
2825else
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827/* end confdefs.h. */
2828$4
2829int
2830main ()
2831{
2832static int test_array [1 - 2 * !(($2) < 0)];
2833test_array [0] = 0
2834
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839if ac_fn_c_try_compile "$LINENO"; then :
2840 ac_hi=-1 ac_mid=-1
2841 while :; do
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h. */
2844$4
2845int
2846main ()
2847{
2848static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2849test_array [0] = 0
2850
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855if ac_fn_c_try_compile "$LINENO"; then :
2856 ac_lo=$ac_mid; break
2857else
2858 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2859 if test $ac_mid -le $ac_hi; then
2860 ac_lo= ac_hi=
2861 break
2862 fi
2863 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2864fi
2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 done
2867else
2868 ac_lo= ac_hi=
2869fi
2870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873# Binary search between lo and hi bounds.
2874while test "x$ac_lo" != "x$ac_hi"; do
2875 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877/* end confdefs.h. */
2878$4
2879int
2880main ()
2881{
2882static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2883test_array [0] = 0
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_hi=$ac_mid
2891else
2892 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2893fi
2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895done
2896case $ac_lo in #((
2897?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2898'') ac_retval=1 ;;
2899esac
2900 else
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902/* end confdefs.h. */
2903$4
2904static long int longval () { return $2; }
2905static unsigned long int ulongval () { return $2; }
2906#include <stdio.h>
2907#include <stdlib.h>
2908int
2909main ()
2910{
2911
2912 FILE *f = fopen ("conftest.val", "w");
2913 if (! f)
2914 return 1;
2915 if (($2) < 0)
2916 {
2917 long int i = longval ();
2918 if (i != ($2))
2919 return 1;
2920 fprintf (f, "%ld", i);
2921 }
2922 else
2923 {
2924 unsigned long int i = ulongval ();
2925 if (i != ($2))
2926 return 1;
2927 fprintf (f, "%lu", i);
2928 }
2929 /* Do not output a trailing newline, as this causes \r\n confusion
2930 on some platforms. */
2931 return ferror (f) || fclose (f) != 0;
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937if ac_fn_c_try_run "$LINENO"; then :
2938 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2939else
2940 ac_retval=1
2941fi
2942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2943 conftest.$ac_objext conftest.beam conftest.$ac_ext
2944rm -f conftest.val
2945
2946 fi
cristyda16f162011-02-19 23:52:17 +00002947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002948 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002949
2950} # ac_fn_c_compute_int
2951
2952# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2953# ---------------------------------------------------------
2954# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2955# the include files in INCLUDES and setting the cache variable VAR
2956# accordingly.
2957ac_fn_cxx_check_header_mongrel ()
2958{
2959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002960 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2962$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002963if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002964 $as_echo_n "(cached) " >&6
2965fi
2966eval ac_res=\$$3
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2968$as_echo "$ac_res" >&6; }
2969else
2970 # Is the header compilable?
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2972$as_echo_n "checking $2 usability... " >&6; }
2973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974/* end confdefs.h. */
2975$4
2976#include <$2>
2977_ACEOF
2978if ac_fn_cxx_try_compile "$LINENO"; then :
2979 ac_header_compiler=yes
2980else
2981 ac_header_compiler=no
2982fi
2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2985$as_echo "$ac_header_compiler" >&6; }
2986
2987# Is the header present?
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2989$as_echo_n "checking $2 presence... " >&6; }
2990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991/* end confdefs.h. */
2992#include <$2>
2993_ACEOF
2994if ac_fn_cxx_try_cpp "$LINENO"; then :
2995 ac_header_preproc=yes
2996else
2997 ac_header_preproc=no
2998fi
cristyda16f162011-02-19 23:52:17 +00002999rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3001$as_echo "$ac_header_preproc" >&6; }
3002
3003# So? What about this header?
3004case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3005 yes:no: )
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3007$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3009$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3010 ;;
3011 no:yes:* )
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3013$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3015$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3017$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3019$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3021$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003022( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003023## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003024## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003025 ) | sed "s/^/$as_me: WARNING: /" >&2
3026 ;;
3027esac
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3029$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003030if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003031 $as_echo_n "(cached) " >&6
3032else
3033 eval "$3=\$ac_header_compiler"
3034fi
3035eval ac_res=\$$3
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3037$as_echo "$ac_res" >&6; }
3038fi
cristyda16f162011-02-19 23:52:17 +00003039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003040
3041} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003042cat >config.log <<_ACEOF
3043This file contains any messages produced by compilers while
3044running configure, to aid debugging if configure makes a mistake.
3045
cristy4bf6e232011-05-21 01:43:33 +00003046It was created by ImageMagick $as_me 6.7.0, which was
cristyda16f162011-02-19 23:52:17 +00003047generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003048
3049 $ $0 $@
3050
3051_ACEOF
3052exec 5>>config.log
3053{
3054cat <<_ASUNAME
3055## --------- ##
3056## Platform. ##
3057## --------- ##
3058
3059hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3060uname -m = `(uname -m) 2>/dev/null || echo unknown`
3061uname -r = `(uname -r) 2>/dev/null || echo unknown`
3062uname -s = `(uname -s) 2>/dev/null || echo unknown`
3063uname -v = `(uname -v) 2>/dev/null || echo unknown`
3064
3065/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3066/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3067
3068/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3069/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3070/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3071/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3072/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3073/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3074/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3075
3076_ASUNAME
3077
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003083 $as_echo "PATH: $as_dir"
3084 done
cristy3ed852e2009-09-05 21:47:34 +00003085IFS=$as_save_IFS
3086
3087} >&5
3088
3089cat >&5 <<_ACEOF
3090
3091
3092## ----------- ##
3093## Core tests. ##
3094## ----------- ##
3095
3096_ACEOF
3097
3098
3099# Keep a trace of the command line.
3100# Strip out --no-create and --no-recursion so they do not pile up.
3101# Strip out --silent because we don't want to record it for future runs.
3102# Also quote any args containing shell meta-characters.
3103# Make two passes to allow for proper duplicate-argument suppression.
3104ac_configure_args=
3105ac_configure_args0=
3106ac_configure_args1=
3107ac_must_keep_next=false
3108for ac_pass in 1 2
3109do
3110 for ac_arg
3111 do
3112 case $ac_arg in
3113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3115 | -silent | --silent | --silen | --sile | --sil)
3116 continue ;;
3117 *\'*)
3118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3119 esac
3120 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003122 2)
cristy8b350f62009-11-15 23:12:43 +00003123 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003124 if test $ac_must_keep_next = true; then
3125 ac_must_keep_next=false # Got value, back to normal.
3126 else
3127 case $ac_arg in
3128 *=* | --config-cache | -C | -disable-* | --disable-* \
3129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3131 | -with-* | --with-* | -without-* | --without-* | --x)
3132 case "$ac_configure_args0 " in
3133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3134 esac
3135 ;;
3136 -* ) ac_must_keep_next=true ;;
3137 esac
3138 fi
cristy8b350f62009-11-15 23:12:43 +00003139 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003140 ;;
3141 esac
3142 done
3143done
cristy8b350f62009-11-15 23:12:43 +00003144{ ac_configure_args0=; unset ac_configure_args0;}
3145{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003146
3147# When interrupted or exit'd, cleanup temporary files, and complete
3148# config.log. We remove comments because anyway the quotes in there
3149# would cause problems or look ugly.
3150# WARNING: Use '\'' to represent an apostrophe within the trap.
3151# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3152trap 'exit_status=$?
3153 # Save into config.log some information that might help in debugging.
3154 {
3155 echo
3156
cristy98dddb52010-11-04 00:30:15 +00003157 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003158## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003159## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003160 echo
3161 # The following way of writing the cache mishandles newlines in values,
3162(
3163 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3164 eval ac_val=\$$ac_var
3165 case $ac_val in #(
3166 *${as_nl}*)
3167 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003169$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3170 esac
3171 case $ac_var in #(
3172 _ | IFS | as_nl) ;; #(
3173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003174 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003175 esac ;;
3176 esac
3177 done
3178 (set) 2>&1 |
3179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3180 *${as_nl}ac_space=\ *)
3181 sed -n \
3182 "s/'\''/'\''\\\\'\'''\''/g;
3183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3184 ;; #(
3185 *)
3186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3187 ;;
3188 esac |
3189 sort
3190)
3191 echo
3192
cristy98dddb52010-11-04 00:30:15 +00003193 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003194## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003195## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003196 echo
3197 for ac_var in $ac_subst_vars
3198 do
3199 eval ac_val=\$$ac_var
3200 case $ac_val in
3201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202 esac
3203 $as_echo "$ac_var='\''$ac_val'\''"
3204 done | sort
3205 echo
3206
3207 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003208 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003209## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003210## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003211 echo
3212 for ac_var in $ac_subst_files
3213 do
3214 eval ac_val=\$$ac_var
3215 case $ac_val in
3216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3217 esac
3218 $as_echo "$ac_var='\''$ac_val'\''"
3219 done | sort
3220 echo
3221 fi
3222
3223 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003224 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003225## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003226## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003227 echo
3228 cat confdefs.h
3229 echo
3230 fi
3231 test "$ac_signal" != 0 &&
3232 $as_echo "$as_me: caught signal $ac_signal"
3233 $as_echo "$as_me: exit $exit_status"
3234 } >&5
3235 rm -f core *.core core.conftest.* &&
3236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3237 exit $exit_status
3238' 0
3239for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003241done
3242ac_signal=0
3243
3244# confdefs.h avoids OS command line length limits that DEFS can exceed.
3245rm -f -r conftest* confdefs.h
3246
cristy8b350f62009-11-15 23:12:43 +00003247$as_echo "/* confdefs.h */" > confdefs.h
3248
cristy3ed852e2009-09-05 21:47:34 +00003249# Predefined preprocessor variables.
3250
3251cat >>confdefs.h <<_ACEOF
3252#define PACKAGE_NAME "$PACKAGE_NAME"
3253_ACEOF
3254
cristy3ed852e2009-09-05 21:47:34 +00003255cat >>confdefs.h <<_ACEOF
3256#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3257_ACEOF
3258
cristy3ed852e2009-09-05 21:47:34 +00003259cat >>confdefs.h <<_ACEOF
3260#define PACKAGE_VERSION "$PACKAGE_VERSION"
3261_ACEOF
3262
cristy3ed852e2009-09-05 21:47:34 +00003263cat >>confdefs.h <<_ACEOF
3264#define PACKAGE_STRING "$PACKAGE_STRING"
3265_ACEOF
3266
cristy3ed852e2009-09-05 21:47:34 +00003267cat >>confdefs.h <<_ACEOF
3268#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3269_ACEOF
3270
cristy8b350f62009-11-15 23:12:43 +00003271cat >>confdefs.h <<_ACEOF
3272#define PACKAGE_URL "$PACKAGE_URL"
3273_ACEOF
3274
cristy3ed852e2009-09-05 21:47:34 +00003275
3276# Let the site file select an alternate cache file if it wants to.
3277# Prefer an explicitly selected file to automatically selected ones.
3278ac_site_file1=NONE
3279ac_site_file2=NONE
3280if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003281 # We do not want a PATH search for config.site.
3282 case $CONFIG_SITE in #((
3283 -*) ac_site_file1=./$CONFIG_SITE;;
3284 */*) ac_site_file1=$CONFIG_SITE;;
3285 *) ac_site_file1=./$CONFIG_SITE;;
3286 esac
cristy3ed852e2009-09-05 21:47:34 +00003287elif test "x$prefix" != xNONE; then
3288 ac_site_file1=$prefix/share/config.site
3289 ac_site_file2=$prefix/etc/config.site
3290else
3291 ac_site_file1=$ac_default_prefix/share/config.site
3292 ac_site_file2=$ac_default_prefix/etc/config.site
3293fi
3294for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3295do
3296 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003299$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3300 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003301 . "$ac_site_file" \
3302 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304as_fn_error $? "failed to load site script $ac_site_file
3305See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003306 fi
3307done
3308
3309if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003310 # Some versions of bash will fail to source /dev/null (special files
3311 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3312 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003314$as_echo "$as_me: loading cache $cache_file" >&6;}
3315 case $cache_file in
3316 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3317 *) . "./$cache_file";;
3318 esac
3319 fi
3320else
cristy8b350f62009-11-15 23:12:43 +00003321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003322$as_echo "$as_me: creating cache $cache_file" >&6;}
3323 >$cache_file
3324fi
3325
cristycd4c5312009-11-22 01:19:08 +00003326as_fn_append ac_header_list " stdlib.h"
3327as_fn_append ac_header_list " unistd.h"
3328as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003329# Check that the precious variables saved in the cache have kept the same
3330# value.
3331ac_cache_corrupted=false
3332for ac_var in $ac_precious_vars; do
3333 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3334 eval ac_new_set=\$ac_env_${ac_var}_set
3335 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3336 eval ac_new_val=\$ac_env_${ac_var}_value
3337 case $ac_old_set,$ac_new_set in
3338 set,)
cristy8b350f62009-11-15 23:12:43 +00003339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003340$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3341 ac_cache_corrupted=: ;;
3342 ,set)
cristy8b350f62009-11-15 23:12:43 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3345 ac_cache_corrupted=: ;;
3346 ,);;
3347 *)
3348 if test "x$ac_old_val" != "x$ac_new_val"; then
3349 # differences in whitespace do not lead to failure.
3350 ac_old_val_w=`echo x $ac_old_val`
3351 ac_new_val_w=`echo x $ac_new_val`
3352 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003354$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3355 ac_cache_corrupted=:
3356 else
cristy8b350f62009-11-15 23:12:43 +00003357 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003358$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3359 eval $ac_var=\$ac_old_val
3360 fi
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003363 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3365 fi;;
3366 esac
3367 # Pass precious variables to config.status.
3368 if test "$ac_new_set" = set; then
3369 case $ac_new_val in
3370 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3371 *) ac_arg=$ac_var=$ac_new_val ;;
3372 esac
3373 case " $ac_configure_args " in
3374 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003375 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003376 esac
3377 fi
3378done
3379if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003384 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003385fi
cristy8b350f62009-11-15 23:12:43 +00003386## -------------------- ##
3387## Main body of script. ##
3388## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003389
3390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395
3396
3397
3398ac_aux_dir=
3399for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003400 if test -f "$ac_dir/install-sh"; then
3401 ac_aux_dir=$ac_dir
3402 ac_install_sh="$ac_aux_dir/install-sh -c"
3403 break
3404 elif test -f "$ac_dir/install.sh"; then
3405 ac_aux_dir=$ac_dir
3406 ac_install_sh="$ac_aux_dir/install.sh -c"
3407 break
3408 elif test -f "$ac_dir/shtool"; then
3409 ac_aux_dir=$ac_dir
3410 ac_install_sh="$ac_aux_dir/shtool install -c"
3411 break
3412 fi
cristy3ed852e2009-09-05 21:47:34 +00003413done
3414if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003415 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003416fi
3417
3418# These three variables are undocumented and unsupported,
3419# and are intended to be withdrawn in a future Autoconf release.
3420# They can cause serious problems if a builder's source tree is in a directory
3421# whose full name contains unusual characters.
3422ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3423ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3424ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3425
3426
3427
3428
3429ac_config_headers="$ac_config_headers config/config.h"
3430
cristy24fc1fe2010-10-23 21:13:01 +00003431
cristy73bd4a52010-10-05 11:24:23 +00003432ac_config_commands="$ac_config_commands magick/magick-config.h"
3433
cristy430a7312010-01-21 20:44:04 +00003434ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003435
3436
3437#
3438# Save initial user-tunable values
3439#
3440USER_LIBS=$LIBS
3441for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3442 eval isset=\${$var+set}
3443 if test "$isset" = 'set'; then
3444 eval val=$`echo $var`
3445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3446 fi
3447done
3448
3449
3450CONFIGURE_ARGS="$0 ${ac_configure_args}"
3451
3452
3453# Source file containing package/library versioning information.
3454. ${srcdir}/version.sh
3455
cristy15a88782010-01-31 23:24:49 +00003456echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003457# Make sure we can run config.sub.
3458$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003459 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003460
cristy8b350f62009-11-15 23:12:43 +00003461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003463if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003464 $as_echo_n "(cached) " >&6
3465else
3466 ac_build_alias=$build_alias
3467test "x$ac_build_alias" = x &&
3468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3469test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003470 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003471ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003473
3474fi
cristy8b350f62009-11-15 23:12:43 +00003475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003476$as_echo "$ac_cv_build" >&6; }
3477case $ac_cv_build in
3478*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003479*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003480esac
3481build=$ac_cv_build
3482ac_save_IFS=$IFS; IFS='-'
3483set x $ac_cv_build
3484shift
3485build_cpu=$1
3486build_vendor=$2
3487shift; shift
3488# Remember, the first character of IFS is used to create $*,
3489# except with old shells:
3490build_os=$*
3491IFS=$ac_save_IFS
3492case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3493
3494
cristy8b350f62009-11-15 23:12:43 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003497if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003498 $as_echo_n "(cached) " >&6
3499else
3500 if test "x$host_alias" = x; then
3501 ac_cv_host=$ac_cv_build
3502else
3503 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003505fi
3506
3507fi
cristy8b350f62009-11-15 23:12:43 +00003508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003509$as_echo "$ac_cv_host" >&6; }
3510case $ac_cv_host in
3511*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003512*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003513esac
3514host=$ac_cv_host
3515ac_save_IFS=$IFS; IFS='-'
3516set x $ac_cv_host
3517shift
3518host_cpu=$1
3519host_vendor=$2
3520shift; shift
3521# Remember, the first character of IFS is used to create $*,
3522# except with old shells:
3523host_os=$*
3524IFS=$ac_save_IFS
3525case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3526
3527
cristy8b350f62009-11-15 23:12:43 +00003528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003529$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003530if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003531 $as_echo_n "(cached) " >&6
3532else
3533 if test "x$target_alias" = x; then
3534 ac_cv_target=$ac_cv_host
3535else
3536 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003538fi
3539
3540fi
cristy8b350f62009-11-15 23:12:43 +00003541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003542$as_echo "$ac_cv_target" >&6; }
3543case $ac_cv_target in
3544*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003545*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003546esac
3547target=$ac_cv_target
3548ac_save_IFS=$IFS; IFS='-'
3549set x $ac_cv_target
3550shift
3551target_cpu=$1
3552target_vendor=$2
3553shift; shift
3554# Remember, the first character of IFS is used to create $*,
3555# except with old shells:
3556target_os=$*
3557IFS=$ac_save_IFS
3558case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3559
3560
3561# The aliases save the names the user supplied, while $host etc.
3562# will get canonicalized.
3563test -n "$target_alias" &&
3564 test "$program_prefix$program_suffix$program_transform_name" = \
3565 NONENONEs,x,x, &&
3566 program_prefix=${target_alias}-
3567
cristy837d6dc2010-02-27 01:16:57 +00003568
3569
3570
cristy19615b82011-04-13 20:02:01 +00003571MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003572
3573
cristy19615b82011-04-13 20:02:01 +00003574MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003575
3576
cristy19615b82011-04-13 20:02:01 +00003577MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003578
3579
cristy3ed852e2009-09-05 21:47:34 +00003580# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003581MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3582
3583MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3584
cristy9384eed2011-06-13 14:16:32 +00003585MAGICK_SVN_REVISION=4615
cristyd694ca32011-03-27 21:42:54 +00003586
3587
cristy3ed852e2009-09-05 21:47:34 +00003588
3589
3590# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3592$as_echo_n "checking whether build environment is sane... " >&6; }
3593# Just in case
3594sleep 1
3595echo timestamp > conftest.file
3596# Reject unsafe characters in $srcdir or the absolute working directory
3597# name. Accept space and tab only in the latter.
3598am_lf='
3599'
3600case `pwd` in
3601 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003602 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003603esac
3604case $srcdir in
3605 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003606 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003607esac
cristy3ed852e2009-09-05 21:47:34 +00003608
cristy73bd4a52010-10-05 11:24:23 +00003609# Do `set' in a subshell so we don't clobber the current shell's
3610# arguments. Must try -L first in case configure is actually a
3611# symlink; some systems play weird games with the mod time of symlinks
3612# (eg FreeBSD returns the mod time of the symlink's containing
3613# directory).
3614if (
3615 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3616 if test "$*" = "X"; then
3617 # -L didn't work.
3618 set X `ls -t "$srcdir/configure" conftest.file`
3619 fi
3620 rm -f conftest.file
3621 if test "$*" != "X $srcdir/configure conftest.file" \
3622 && test "$*" != "X conftest.file $srcdir/configure"; then
3623
3624 # If neither matched, then we have a broken ls. This can happen
3625 # if, for instance, CONFIG_SHELL is bash and it inherits a
3626 # broken ls alias from the environment. This has actually
3627 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003628 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003629alias in your environment" "$LINENO" 5
3630 fi
3631
3632 test "$2" = conftest.file
3633 )
3634then
3635 # Ok.
3636 :
3637else
cristy98dddb52010-11-04 00:30:15 +00003638 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003639Check your system clock" "$LINENO" 5
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642$as_echo "yes" >&6; }
3643
3644am__api_version='1.11'
3645
3646# Find a good install program. We prefer a C program (faster),
3647# so one script is as good as another. But avoid the broken or
3648# incompatible versions:
3649# SysV /etc/install, /usr/sbin/install
3650# SunOS /usr/etc/install
3651# IRIX /sbin/install
3652# AIX /bin/install
3653# AmigaOS /C/install, which installs bootblocks on floppy discs
3654# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3655# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3656# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3657# OS/2's system install, which has a completely different semantic
3658# ./install, which can be erroneously created by make from ./install.sh.
3659# Reject install programs that cannot install multiple files.
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3661$as_echo_n "checking for a BSD-compatible install... " >&6; }
3662if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003663if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003664 $as_echo_n "(cached) " >&6
3665else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 # Account for people who put trailing slashes in PATH elements.
3672case $as_dir/ in #((
3673 ./ | .// | /[cC]/* | \
3674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3676 /usr/ucb/* ) ;;
3677 *)
3678 # OSF1 and SCO ODT 3.0 have their own names for install.
3679 # Don't use installbsd from OSF since it installs stuff as root
3680 # by default.
3681 for ac_prog in ginstall scoinst install; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684 if test $ac_prog = install &&
3685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686 # AIX install. It has an incompatible calling convention.
3687 :
3688 elif test $ac_prog = install &&
3689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690 # program-specific install script used by HP pwplus--don't use.
3691 :
3692 else
3693 rm -rf conftest.one conftest.two conftest.dir
3694 echo one > conftest.one
3695 echo two > conftest.two
3696 mkdir conftest.dir
3697 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3698 test -s conftest.one && test -s conftest.two &&
3699 test -s conftest.dir/conftest.one &&
3700 test -s conftest.dir/conftest.two
3701 then
3702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3703 break 3
3704 fi
3705 fi
3706 fi
3707 done
3708 done
3709 ;;
3710esac
3711
3712 done
3713IFS=$as_save_IFS
3714
3715rm -rf conftest.one conftest.two conftest.dir
3716
3717fi
3718 if test "${ac_cv_path_install+set}" = set; then
3719 INSTALL=$ac_cv_path_install
3720 else
3721 # As a last resort, use the slow shell script. Don't cache a
3722 # value for INSTALL within a source directory, because that will
3723 # break other packages using the cache if that directory is
3724 # removed, or if the value is a relative name.
3725 INSTALL=$ac_install_sh
3726 fi
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3729$as_echo "$INSTALL" >&6; }
3730
3731# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3732# It thinks the first close brace ends the variable substitution.
3733test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3734
3735test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3736
3737test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3738
3739test "$program_prefix" != NONE &&
3740 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3741# Use a double $ so make ignores it.
3742test "$program_suffix" != NONE &&
3743 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3744# Double any \ or $.
3745# By default was `s,x,x', remove it if useless.
3746ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3747program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3748
3749# expand $ac_aux_dir to an absolute path
3750am_aux_dir=`cd $ac_aux_dir && pwd`
3751
3752if test x"${MISSING+set}" != xset; then
3753 case $am_aux_dir in
3754 *\ * | *\ *)
3755 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3756 *)
3757 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3758 esac
3759fi
3760# Use eval to expand $SHELL
3761if eval "$MISSING --run true"; then
3762 am_missing_run="$MISSING --run "
3763else
3764 am_missing_run=
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3766$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3767fi
3768
3769if test x"${install_sh}" != xset; then
3770 case $am_aux_dir in
3771 *\ * | *\ *)
3772 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3773 *)
3774 install_sh="\${SHELL} $am_aux_dir/install-sh"
3775 esac
3776fi
3777
3778# Installed binaries are usually stripped using `strip' when the user
3779# run `make install-strip'. However `strip' might not be the right
3780# tool to use in cross-compilation environments, therefore Automake
3781# will honor the `STRIP' environment variable to overrule this program.
3782if test "$cross_compiling" != no; then
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3785set dummy ${ac_tool_prefix}strip; ac_word=$2
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003788if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003789 $as_echo_n "(cached) " >&6
3790else
3791 if test -n "$STRIP"; then
3792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805done
3806 done
3807IFS=$as_save_IFS
3808
3809fi
3810fi
3811STRIP=$ac_cv_prog_STRIP
3812if test -n "$STRIP"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3814$as_echo "$STRIP" >&6; }
3815else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817$as_echo "no" >&6; }
3818fi
3819
3820
3821fi
3822if test -z "$ac_cv_prog_STRIP"; then
3823 ac_ct_STRIP=$STRIP
3824 # Extract the first word of "strip", so it can be a program name with args.
3825set dummy strip; ac_word=$2
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003828if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003829 $as_echo_n "(cached) " >&6
3830else
3831 if test -n "$ac_ct_STRIP"; then
3832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841 ac_cv_prog_ac_ct_STRIP="strip"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845done
3846 done
3847IFS=$as_save_IFS
3848
3849fi
3850fi
3851ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3852if test -n "$ac_ct_STRIP"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3854$as_echo "$ac_ct_STRIP" >&6; }
3855else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857$as_echo "no" >&6; }
3858fi
3859
3860 if test "x$ac_ct_STRIP" = x; then
3861 STRIP=":"
3862 else
3863 case $cross_compiling:$ac_tool_warned in
3864yes:)
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867ac_tool_warned=yes ;;
3868esac
3869 STRIP=$ac_ct_STRIP
3870 fi
3871else
3872 STRIP="$ac_cv_prog_STRIP"
3873fi
3874
3875fi
3876INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3877
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3879$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3880if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003881 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003882 $as_echo_n "(cached) " >&6
3883else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3886do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_prog in mkdir gmkdir; do
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3892 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3893 'mkdir (GNU coreutils) '* | \
3894 'mkdir (coreutils) '* | \
3895 'mkdir (fileutils) '4.1*)
3896 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3897 break 3;;
3898 esac
3899 done
3900 done
3901 done
3902IFS=$as_save_IFS
3903
3904fi
3905
3906 test -d ./--version && rmdir ./--version
3907 if test "${ac_cv_path_mkdir+set}" = set; then
3908 MKDIR_P="$ac_cv_path_mkdir -p"
3909 else
3910 # As a last resort, use the slow shell script. Don't cache a
3911 # value for MKDIR_P within a source directory, because that will
3912 # break other packages using the cache if that directory is
3913 # removed, or if the value is a relative name.
3914 MKDIR_P="$ac_install_sh -d"
3915 fi
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3918$as_echo "$MKDIR_P" >&6; }
3919
3920mkdir_p="$MKDIR_P"
3921case $mkdir_p in
3922 [\\/$]* | ?:[\\/]*) ;;
3923 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3924esac
3925
3926for ac_prog in gawk mawk nawk awk
3927do
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929set dummy $ac_prog; ac_word=$2
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003932if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003933 $as_echo_n "(cached) " >&6
3934else
3935 if test -n "$AWK"; then
3936 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3945 ac_cv_prog_AWK="$ac_prog"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949done
3950 done
3951IFS=$as_save_IFS
3952
3953fi
3954fi
3955AWK=$ac_cv_prog_AWK
3956if test -n "$AWK"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3958$as_echo "$AWK" >&6; }
3959else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962fi
3963
3964
3965 test -n "$AWK" && break
3966done
3967
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3969$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3970set x ${MAKE-make}
3971ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003972if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003973 $as_echo_n "(cached) " >&6
3974else
3975 cat >conftest.make <<\_ACEOF
3976SHELL = /bin/sh
3977all:
3978 @echo '@@@%%%=$(MAKE)=@@@%%%'
3979_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003980# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003981case `${MAKE-make} -f conftest.make 2>/dev/null` in
3982 *@@@%%%=?*=@@@%%%*)
3983 eval ac_cv_prog_make_${ac_make}_set=yes;;
3984 *)
3985 eval ac_cv_prog_make_${ac_make}_set=no;;
3986esac
3987rm -f conftest.make
3988fi
3989if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991$as_echo "yes" >&6; }
3992 SET_MAKE=
3993else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996 SET_MAKE="MAKE=${MAKE-make}"
3997fi
3998
3999rm -rf .tst 2>/dev/null
4000mkdir .tst 2>/dev/null
4001if test -d .tst; then
4002 am__leading_dot=.
4003else
4004 am__leading_dot=_
4005fi
4006rmdir .tst 2>/dev/null
4007
4008if test "`cd $srcdir && pwd`" != "`pwd`"; then
4009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4010 # is not polluted with repeated "-I."
4011 am__isrc=' -I$(srcdir)'
4012 # test to see if srcdir already configured
4013 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004015 fi
4016fi
4017
4018# test whether we have cygpath
4019if test -z "$CYGPATH_W"; then
4020 if (cygpath --version) >/dev/null 2>/dev/null; then
4021 CYGPATH_W='cygpath -w'
4022 else
4023 CYGPATH_W=echo
4024 fi
4025fi
4026
4027
4028# Define the identity of the package.
4029 PACKAGE=$PACKAGE_NAME
4030 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4031
4032
4033# Some tools Automake needs.
4034
4035ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4036
4037
4038AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4039
4040
4041AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4042
4043
4044AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4045
4046
4047MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4048
4049# We need awk for the "check" target. The system "awk" is bad on
4050# some platforms.
4051# Always define AMTAR for backward compatibility.
4052
4053AMTAR=${AMTAR-"${am_missing_run}tar"}
4054
4055am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4056
4057
4058
4059
4060
cristy3ed852e2009-09-05 21:47:34 +00004061
4062# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004063# Check whether --enable-silent-rules was given.
4064if test "${enable_silent_rules+set}" = set; then :
4065 enableval=$enable_silent_rules;
4066fi
4067
4068case $enable_silent_rules in
4069yes) AM_DEFAULT_VERBOSITY=0;;
4070no) AM_DEFAULT_VERBOSITY=1;;
4071*) AM_DEFAULT_VERBOSITY=0;;
4072esac
4073AM_BACKSLASH='\'
4074
cristy3ed852e2009-09-05 21:47:34 +00004075
4076MAGICK_LIB_VERSION="0x"
4077if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4078 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4079fi
4080MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4081if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4082 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4083fi
4084MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4085if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4086 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4087fi
4088MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4089
4090
4091# Definition used to define MagickLibVersionText in version.h
4092MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4093
4094
4095# Definition used to define MagickLibVersionNumber in version.h
4096MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4097
4098
4099# Regenerate config.status if ChangeLog or version.sh is updated.
4100CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4101
4102
4103PERLMAINCC=$CC
4104
4105MAGICK_CFLAGS=''
4106MAGICK_CPPFLAGS=$CPPFLAGS_USER
4107MAGICK_PCFLAGS=$CPPFLAGS_USER
4108MAGICK_LDFLAGS=''
4109MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004110MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004111
4112#
4113# Evaluate shell variable equivalents to Makefile directory variables
4114#
4115if test "x$prefix" = xNONE; then
4116 prefix=$ac_default_prefix
4117fi
4118# Let make expand exec_prefix.
4119if test "x$exec_prefix" = xNONE; then
4120 exec_prefix='${prefix}'
4121fi
4122
4123#
4124eval "eval PREFIX_DIR=${prefix}"
4125
4126eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4127
4128eval "eval BIN_DIR=$bindir"
4129
4130eval "eval SBIN_DIR=$sbindir"
4131
4132eval "eval LIBEXEC_DIR=$libexecdir"
4133
4134eval "eval DATA_DIR=$datadir"
4135
cristyd55889c2011-03-27 00:50:24 +00004136eval "eval DOC_DIR=$docdir"
4137
cristy3ed852e2009-09-05 21:47:34 +00004138eval "eval SYSCONF_DIR=$sysconfdir"
4139
4140eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4141
4142eval "eval LOCALSTATE_DIR=$localstatedir"
4143
4144eval "eval LIB_DIR=$libdir"
4145
4146eval "eval INCLUDE_DIR=$includedir"
4147
4148eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4149
4150eval "eval INFO_DIR=$infodir"
4151
4152eval "eval MAN_DIR=$mandir"
4153
4154
4155# Get full paths to source and build directories
4156srcdirfull="`cd $srcdir && pwd`"
4157builddir="`pwd`"
4158
4159#
4160# Compute variables useful for running uninstalled software.
4161#
4162MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4163MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4164MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4165MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4166DIRSEP=':'
4167case "${build_os}" in
4168 mingw* )
4169 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4170 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4171 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4172 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4173 DIRSEP=';'
4174 ;;
4175esac
4176case "${host_os}" in
4177 mingw* )
4178 DIRSEP=';'
4179 ;;
4180esac
4181
4182
4183
4184
4185
4186
cristya0b81c32010-01-22 02:54:33 +00004187
4188#
4189# Enable OS features.
4190#
cristy73bd4a52010-10-05 11:24:23 +00004191DEPDIR="${am__leading_dot}deps"
4192
4193ac_config_commands="$ac_config_commands depfiles"
4194
4195
4196am_make=${MAKE-make}
4197cat > confinc << 'END'
4198am__doit:
4199 @echo this is the am__doit target
4200.PHONY: am__doit
4201END
4202# If we don't find an include directive, just comment out the code.
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4204$as_echo_n "checking for style of include used by $am_make... " >&6; }
4205am__include="#"
4206am__quote=
4207_am_result=none
4208# First try GNU make style include.
4209echo "include confinc" > confmf
4210# Ignore all kinds of additional output from `make'.
4211case `$am_make -s -f confmf 2> /dev/null` in #(
4212*the\ am__doit\ target*)
4213 am__include=include
4214 am__quote=
4215 _am_result=GNU
4216 ;;
4217esac
4218# Now try BSD make style include.
4219if test "$am__include" = "#"; then
4220 echo '.include "confinc"' > confmf
4221 case `$am_make -s -f confmf 2> /dev/null` in #(
4222 *the\ am__doit\ target*)
4223 am__include=.include
4224 am__quote="\""
4225 _am_result=BSD
4226 ;;
4227 esac
4228fi
4229
4230
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4232$as_echo "$_am_result" >&6; }
4233rm -f confinc confmf
4234
4235# Check whether --enable-dependency-tracking was given.
4236if test "${enable_dependency_tracking+set}" = set; then :
4237 enableval=$enable_dependency_tracking;
4238fi
4239
4240if test "x$enable_dependency_tracking" != xno; then
4241 am_depcomp="$ac_aux_dir/depcomp"
4242 AMDEPBACKSLASH='\'
4243fi
4244 if test "x$enable_dependency_tracking" != xno; then
4245 AMDEP_TRUE=
4246 AMDEP_FALSE='#'
4247else
4248 AMDEP_TRUE='#'
4249 AMDEP_FALSE=
4250fi
4251
4252
cristy3ed852e2009-09-05 21:47:34 +00004253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4260set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004262$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004263if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004264 $as_echo_n "(cached) " >&6
4265else
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004278 break 2
4279 fi
4280done
cristy8b350f62009-11-15 23:12:43 +00004281 done
cristy3ed852e2009-09-05 21:47:34 +00004282IFS=$as_save_IFS
4283
4284fi
4285fi
4286CC=$ac_cv_prog_CC
4287if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004289$as_echo "$CC" >&6; }
4290else
cristy8b350f62009-11-15 23:12:43 +00004291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo "no" >&6; }
4293fi
4294
4295
4296fi
4297if test -z "$ac_cv_prog_CC"; then
4298 ac_ct_CC=$CC
4299 # Extract the first word of "gcc", so it can be a program name with args.
4300set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004303if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004304 $as_echo_n "(cached) " >&6
4305else
4306 if test -n "$ac_ct_CC"; then
4307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4308else
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004318 break 2
4319 fi
4320done
cristy8b350f62009-11-15 23:12:43 +00004321 done
cristy3ed852e2009-09-05 21:47:34 +00004322IFS=$as_save_IFS
4323
4324fi
4325fi
4326ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004329$as_echo "$ac_ct_CC" >&6; }
4330else
cristy8b350f62009-11-15 23:12:43 +00004331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004332$as_echo "no" >&6; }
4333fi
4334
4335 if test "x$ac_ct_CC" = x; then
4336 CC=""
4337 else
4338 case $cross_compiling:$ac_tool_warned in
4339yes:)
cristy8b350f62009-11-15 23:12:43 +00004340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342ac_tool_warned=yes ;;
4343esac
4344 CC=$ac_ct_CC
4345 fi
4346else
4347 CC="$ac_cv_prog_CC"
4348fi
4349
4350if test -z "$CC"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4353set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004355$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004356if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004357 $as_echo_n "(cached) " >&6
4358else
4359 if test -n "$CC"; then
4360 ac_cv_prog_CC="$CC" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004371 break 2
4372 fi
4373done
cristy8b350f62009-11-15 23:12:43 +00004374 done
cristy3ed852e2009-09-05 21:47:34 +00004375IFS=$as_save_IFS
4376
4377fi
4378fi
4379CC=$ac_cv_prog_CC
4380if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004382$as_echo "$CC" >&6; }
4383else
cristy8b350f62009-11-15 23:12:43 +00004384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004385$as_echo "no" >&6; }
4386fi
4387
4388
4389 fi
4390fi
4391if test -z "$CC"; then
4392 # Extract the first word of "cc", so it can be a program name with args.
4393set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004396if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004397 $as_echo_n "(cached) " >&6
4398else
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4401else
4402 ac_prog_rejected=no
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4411 ac_prog_rejected=yes
4412 continue
4413 fi
4414 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416 break 2
4417 fi
4418done
cristy8b350f62009-11-15 23:12:43 +00004419 done
cristy3ed852e2009-09-05 21:47:34 +00004420IFS=$as_save_IFS
4421
4422if test $ac_prog_rejected = yes; then
4423 # We found a bogon in the path, so make sure we never use it.
4424 set dummy $ac_cv_prog_CC
4425 shift
4426 if test $# != 0; then
4427 # We chose a different compiler from the bogus one.
4428 # However, it has the same basename, so the bogon will be chosen
4429 # first if we set CC to just the basename; use the full file name.
4430 shift
4431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4432 fi
4433fi
4434fi
4435fi
4436CC=$ac_cv_prog_CC
4437if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439$as_echo "$CC" >&6; }
4440else
cristy8b350f62009-11-15 23:12:43 +00004441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004442$as_echo "no" >&6; }
4443fi
4444
4445
4446fi
4447if test -z "$CC"; then
4448 if test -n "$ac_tool_prefix"; then
4449 for ac_prog in cl.exe
4450 do
4451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004455if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004456 $as_echo_n "(cached) " >&6
4457else
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004466 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004470 break 2
4471 fi
4472done
cristy8b350f62009-11-15 23:12:43 +00004473 done
cristy3ed852e2009-09-05 21:47:34 +00004474IFS=$as_save_IFS
4475
4476fi
4477fi
4478CC=$ac_cv_prog_CC
4479if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004481$as_echo "$CC" >&6; }
4482else
cristy8b350f62009-11-15 23:12:43 +00004483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004484$as_echo "no" >&6; }
4485fi
4486
4487
4488 test -n "$CC" && break
4489 done
4490fi
4491if test -z "$CC"; then
4492 ac_ct_CC=$CC
4493 for ac_prog in cl.exe
4494do
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004499if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004500 $as_echo_n "(cached) " >&6
4501else
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004514 break 2
4515 fi
4516done
cristy8b350f62009-11-15 23:12:43 +00004517 done
cristy3ed852e2009-09-05 21:47:34 +00004518IFS=$as_save_IFS
4519
4520fi
4521fi
4522ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$ac_ct_CC" >&6; }
4526else
cristy8b350f62009-11-15 23:12:43 +00004527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004528$as_echo "no" >&6; }
4529fi
4530
4531
4532 test -n "$ac_ct_CC" && break
4533done
4534
4535 if test "x$ac_ct_CC" = x; then
4536 CC=""
4537 else
4538 case $cross_compiling:$ac_tool_warned in
4539yes:)
cristy8b350f62009-11-15 23:12:43 +00004540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542ac_tool_warned=yes ;;
4543esac
4544 CC=$ac_ct_CC
4545 fi
4546fi
4547
4548fi
4549
4550
cristy8b350f62009-11-15 23:12:43 +00004551test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004553as_fn_error $? "no acceptable C compiler found in \$PATH
4554See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004555
4556# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004557$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004558set X $ac_compile
4559ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004560for ac_option in --version -v -V -qversion; do
4561 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004562case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
cristy8b350f62009-11-15 23:12:43 +00004566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567$as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004569 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004570 if test -s conftest.err; then
4571 sed '10a\
4572... rest of stderr output deleted ...
4573 10q' conftest.err >conftest.er1
4574 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004575 fi
cristycd4c5312009-11-22 01:19:08 +00004576 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578 test $ac_status = 0; }
4579done
cristy3ed852e2009-09-05 21:47:34 +00004580
cristy8b350f62009-11-15 23:12:43 +00004581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004582/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004583
cristy3ed852e2009-09-05 21:47:34 +00004584int
4585main ()
4586{
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
4592ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004593ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004594# Try to create an executable without -o first, disregard a.out.
4595# It will help us diagnose broken compilers, and finding out an intuition
4596# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4598$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004599ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4600
4601# The possible output files:
4602ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4603
4604ac_rmfiles=
4605for ac_file in $ac_files
4606do
4607 case $ac_file in
4608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4609 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4610 esac
4611done
4612rm -f $ac_rmfiles
4613
cristy8b350f62009-11-15 23:12:43 +00004614if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004615case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618esac
cristy8b350f62009-11-15 23:12:43 +00004619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004621 (eval "$ac_link_default") 2>&5
4622 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4626# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4627# in a Makefile. We should not override ac_cv_exeext if it was cached,
4628# so that the user can short-circuit this test for compilers unknown to
4629# Autoconf.
4630for ac_file in $ac_files ''
4631do
4632 test -f "$ac_file" || continue
4633 case $ac_file in
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4635 ;;
4636 [ab].out )
4637 # We found the default executable, but exeext='' is most
4638 # certainly right.
4639 break;;
4640 *.* )
cristy8b350f62009-11-15 23:12:43 +00004641 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004642 then :; else
4643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4644 fi
4645 # We set ac_cv_exeext here because the later test for it is not
4646 # safe: cross compilers may not add the suffix if given an `-o'
4647 # argument, so we may need to know it at that point already.
4648 # Even if this section looks crufty: it has the advantage of
4649 # actually working.
4650 break;;
4651 * )
4652 break;;
4653 esac
4654done
4655test "$ac_cv_exeext" = no && ac_cv_exeext=
4656
4657else
4658 ac_file=''
4659fi
cristy8b350f62009-11-15 23:12:43 +00004660if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662$as_echo "no" >&6; }
4663$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664sed 's/^/| /' conftest.$ac_ext >&5
4665
cristy8b350f62009-11-15 23:12:43 +00004666{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004668as_fn_error 77 "C compiler cannot create executables
4669See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004670else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004673fi
cristycd4c5312009-11-22 01:19:08 +00004674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4675$as_echo_n "checking for C compiler default output file name... " >&6; }
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4677$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004678ac_exeext=$ac_cv_exeext
4679
cristycd4c5312009-11-22 01:19:08 +00004680rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004681ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004684if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
cristy8b350f62009-11-15 23:12:43 +00004689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004691 (eval "$ac_link") 2>&5
4692 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4696# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4697# work properly (i.e., refer to `conftest.exe'), while it won't with
4698# `rm'.
4699for ac_file in conftest.exe conftest conftest.*; do
4700 test -f "$ac_file" || continue
4701 case $ac_file in
4702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4703 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4704 break;;
4705 * ) break;;
4706 esac
4707done
4708else
cristy8b350f62009-11-15 23:12:43 +00004709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004711as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4712See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004713fi
cristycd4c5312009-11-22 01:19:08 +00004714rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$ac_cv_exeext" >&6; }
4717
4718rm -f conftest.$ac_ext
4719EXEEXT=$ac_cv_exeext
4720ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h. */
4723#include <stdio.h>
4724int
4725main ()
4726{
4727FILE *f = fopen ("conftest.out", "w");
4728 return ferror (f) || fclose (f) != 0;
4729
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734ac_clean_files="$ac_clean_files conftest.out"
4735# Check that the compiler produces executables we can run. If not, either
4736# the compiler is broken, or we cross compile.
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4738$as_echo_n "checking whether we are cross compiling... " >&6; }
4739if test "$cross_compiling" != yes; then
4740 { { ac_try="$ac_link"
4741case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744esac
4745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746$as_echo "$ac_try_echo"; } >&5
4747 (eval "$ac_link") 2>&5
4748 ac_status=$?
4749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750 test $ac_status = 0; }
4751 if { ac_try='./conftest$ac_cv_exeext'
4752 { { case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755esac
4756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757$as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_try") 2>&5
4759 ac_status=$?
4760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761 test $ac_status = 0; }; }; then
4762 cross_compiling=no
4763 else
4764 if test "$cross_compiling" = maybe; then
4765 cross_compiling=yes
4766 else
4767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004769as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004770If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004771See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004772 fi
4773 fi
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4776$as_echo "$cross_compiling" >&6; }
4777
4778rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4779ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004781$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004782if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004783 $as_echo_n "(cached) " >&6
4784else
cristy8b350f62009-11-15 23:12:43 +00004785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004786/* end confdefs.h. */
4787
4788int
4789main ()
4790{
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004797if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004798case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801esac
cristy8b350f62009-11-15 23:12:43 +00004802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004804 (eval "$ac_compile") 2>&5
4805 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004808 for ac_file in conftest.o conftest.obj conftest.*; do
4809 test -f "$ac_file" || continue;
4810 case $ac_file in
4811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4813 break;;
4814 esac
4815done
4816else
4817 $as_echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
cristy8b350f62009-11-15 23:12:43 +00004820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004822as_fn_error $? "cannot compute suffix of object files: cannot compile
4823See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004824fi
cristy3ed852e2009-09-05 21:47:34 +00004825rm -f conftest.$ac_cv_objext conftest.$ac_ext
4826fi
cristy8b350f62009-11-15 23:12:43 +00004827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004828$as_echo "$ac_cv_objext" >&6; }
4829OBJEXT=$ac_cv_objext
4830ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004832$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004833if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004834 $as_echo_n "(cached) " >&6
4835else
cristy8b350f62009-11-15 23:12:43 +00004836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004837/* end confdefs.h. */
4838
4839int
4840main ()
4841{
4842#ifndef __GNUC__
4843 choke me
4844#endif
4845
4846 ;
4847 return 0;
4848}
4849_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004850if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004851 ac_compiler_gnu=yes
4852else
cristy8b350f62009-11-15 23:12:43 +00004853 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004854fi
cristy3ed852e2009-09-05 21:47:34 +00004855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856ac_cv_c_compiler_gnu=$ac_compiler_gnu
4857
4858fi
cristy8b350f62009-11-15 23:12:43 +00004859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861if test $ac_compiler_gnu = yes; then
4862 GCC=yes
4863else
4864 GCC=
4865fi
4866ac_test_CFLAGS=${CFLAGS+set}
4867ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004870if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004871 $as_echo_n "(cached) " >&6
4872else
4873 ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4875 ac_cv_prog_cc_g=no
4876 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004878/* end confdefs.h. */
4879
4880int
4881main ()
4882{
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004888if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004889 ac_cv_prog_cc_g=yes
4890else
cristy8b350f62009-11-15 23:12:43 +00004891 CFLAGS=""
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004893/* end confdefs.h. */
4894
4895int
4896main ()
4897{
4898
4899 ;
4900 return 0;
4901}
4902_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004903if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004904
cristy8b350f62009-11-15 23:12:43 +00004905else
4906 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004907 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004909/* end confdefs.h. */
4910
4911int
4912main ()
4913{
4914
4915 ;
4916 return 0;
4917}
4918_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004919if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004920 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004921fi
cristy3ed852e2009-09-05 21:47:34 +00004922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923fi
cristy3ed852e2009-09-05 21:47:34 +00004924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925fi
cristy3ed852e2009-09-05 21:47:34 +00004926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 ac_c_werror_flag=$ac_save_c_werror_flag
4928fi
cristy8b350f62009-11-15 23:12:43 +00004929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004930$as_echo "$ac_cv_prog_cc_g" >&6; }
4931if test "$ac_test_CFLAGS" = set; then
4932 CFLAGS=$ac_save_CFLAGS
4933elif test $ac_cv_prog_cc_g = yes; then
4934 if test "$GCC" = yes; then
4935 CFLAGS="-g -O2"
4936 else
4937 CFLAGS="-g"
4938 fi
4939else
4940 if test "$GCC" = yes; then
4941 CFLAGS="-O2"
4942 else
4943 CFLAGS=
4944 fi
4945fi
cristy8b350f62009-11-15 23:12:43 +00004946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004947$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004948if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004949 $as_echo_n "(cached) " >&6
4950else
4951 ac_cv_prog_cc_c89=no
4952ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004954/* end confdefs.h. */
4955#include <stdarg.h>
4956#include <stdio.h>
4957#include <sys/types.h>
4958#include <sys/stat.h>
4959/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4960struct buf { int x; };
4961FILE * (*rcsopen) (struct buf *, struct stat *, int);
4962static char *e (p, i)
4963 char **p;
4964 int i;
4965{
4966 return p[i];
4967}
4968static char *f (char * (*g) (char **, int), char **p, ...)
4969{
4970 char *s;
4971 va_list v;
4972 va_start (v,p);
4973 s = g (p, va_arg (v,int));
4974 va_end (v);
4975 return s;
4976}
4977
4978/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4979 function prototypes and stuff, but not '\xHH' hex character constants.
4980 These don't provoke an error unfortunately, instead are silently treated
4981 as 'x'. The following induces an error, until -std is added to get
4982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4983 array size at least. It's necessary to write '\x00'==0 to get something
4984 that's true only with -std. */
4985int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4986
4987/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4988 inside strings and character constants. */
4989#define FOO(x) 'x'
4990int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4991
4992int test (int i, double x);
4993struct s1 {int (*f) (int a);};
4994struct s2 {int (*f) (double a);};
4995int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4996int argc;
4997char **argv;
4998int
4999main ()
5000{
5001return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5002 ;
5003 return 0;
5004}
5005_ACEOF
5006for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5007 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5008do
5009 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005010 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005011 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005012fi
cristy3ed852e2009-09-05 21:47:34 +00005013rm -f core conftest.err conftest.$ac_objext
5014 test "x$ac_cv_prog_cc_c89" != "xno" && break
5015done
5016rm -f conftest.$ac_ext
5017CC=$ac_save_CC
5018
5019fi
5020# AC_CACHE_VAL
5021case "x$ac_cv_prog_cc_c89" in
5022 x)
cristy8b350f62009-11-15 23:12:43 +00005023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005024$as_echo "none needed" >&6; } ;;
5025 xno)
cristy8b350f62009-11-15 23:12:43 +00005026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005027$as_echo "unsupported" >&6; } ;;
5028 *)
5029 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005031$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5032esac
cristy8b350f62009-11-15 23:12:43 +00005033if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005034
cristy8b350f62009-11-15 23:12:43 +00005035fi
cristy3ed852e2009-09-05 21:47:34 +00005036
5037ac_ext=c
5038ac_cpp='$CPP $CPPFLAGS'
5039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005042
cristy73bd4a52010-10-05 11:24:23 +00005043depcc="$CC" am_compiler_list=
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5046$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005047if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005048 $as_echo_n "(cached) " >&6
5049else
5050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5051 # We make a subdir and do the tests there. Otherwise we can end up
5052 # making bogus files that we don't know about and never remove. For
5053 # instance it was reported that on HP-UX the gcc test will end up
5054 # making a dummy file named `D' -- because `-MD' means `put the output
5055 # in D'.
5056 mkdir conftest.dir
5057 # Copy depcomp to subdir because otherwise we won't find it if we're
5058 # using a relative directory.
5059 cp "$am_depcomp" conftest.dir
5060 cd conftest.dir
5061 # We will build objects and dependencies in a subdirectory because
5062 # it helps to detect inapplicable dependency modes. For instance
5063 # both Tru64's cc and ICC support -MD to output dependencies as a
5064 # side effect of compilation, but ICC will put the dependencies in
5065 # the current directory while Tru64 will put them in the object
5066 # directory.
5067 mkdir sub
5068
5069 am_cv_CC_dependencies_compiler_type=none
5070 if test "$am_compiler_list" = ""; then
5071 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5072 fi
5073 am__universal=false
5074 case " $depcc " in #(
5075 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5076 esac
5077
5078 for depmode in $am_compiler_list; do
5079 # Setup a source with many dependencies, because some compilers
5080 # like to wrap large dependency lists on column 80 (with \), and
5081 # we should not choose a depcomp mode which is confused by this.
5082 #
5083 # We need to recreate these files for each test, as the compiler may
5084 # overwrite some of them when testing with obscure command lines.
5085 # This happens at least with the AIX C compiler.
5086 : > sub/conftest.c
5087 for i in 1 2 3 4 5 6; do
5088 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5089 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5090 # Solaris 8's {/usr,}/bin/sh.
5091 touch sub/conftst$i.h
5092 done
5093 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5094
5095 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5096 # mode. It turns out that the SunPro C++ compiler does not properly
5097 # handle `-M -o', and we need to detect this. Also, some Intel
5098 # versions had trouble with output in subdirs
5099 am__obj=sub/conftest.${OBJEXT-o}
5100 am__minus_obj="-o $am__obj"
5101 case $depmode in
5102 gcc)
5103 # This depmode causes a compiler race in universal mode.
5104 test "$am__universal" = false || continue
5105 ;;
5106 nosideeffect)
5107 # after this tag, mechanisms are not by side-effect, so they'll
5108 # only be used when explicitly requested
5109 if test "x$enable_dependency_tracking" = xyes; then
5110 continue
5111 else
5112 break
5113 fi
5114 ;;
5115 msvisualcpp | msvcmsys)
5116 # This compiler won't grok `-c -o', but also, the minuso test has
5117 # not run yet. These depmodes are late enough in the game, and
5118 # so weak that their functioning should not be impacted.
5119 am__obj=conftest.${OBJEXT-o}
5120 am__minus_obj=
5121 ;;
5122 none) break ;;
5123 esac
5124 if depmode=$depmode \
5125 source=sub/conftest.c object=$am__obj \
5126 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5127 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5128 >/dev/null 2>conftest.err &&
5129 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5130 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5131 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5132 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5133 # icc doesn't choke on unknown options, it will just issue warnings
5134 # or remarks (even with -Werror). So we grep stderr for any message
5135 # that says an option was ignored or not supported.
5136 # When given -MP, icc 7.0 and 7.1 complain thusly:
5137 # icc: Command line warning: ignoring option '-M'; no argument required
5138 # The diagnosis changed in icc 8.0:
5139 # icc: Command line remark: option '-MP' not supported
5140 if (grep 'ignoring option' conftest.err ||
5141 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5142 am_cv_CC_dependencies_compiler_type=$depmode
5143 break
5144 fi
5145 fi
5146 done
5147
5148 cd ..
5149 rm -rf conftest.dir
5150else
5151 am_cv_CC_dependencies_compiler_type=none
5152fi
5153
5154fi
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5156$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5157CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5158
5159 if
5160 test "x$enable_dependency_tracking" != xno \
5161 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5162 am__fastdepCC_TRUE=
5163 am__fastdepCC_FALSE='#'
5164else
5165 am__fastdepCC_TRUE='#'
5166 am__fastdepCC_FALSE=
5167fi
5168
5169
cristy3ed852e2009-09-05 21:47:34 +00005170
cristya0b81c32010-01-22 02:54:33 +00005171ac_ext=c
5172ac_cpp='$CPP $CPPFLAGS'
5173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5177$as_echo_n "checking how to run the C preprocessor... " >&6; }
5178# On Suns, sometimes $CPP names a directory.
5179if test -n "$CPP" && test -d "$CPP"; then
5180 CPP=
5181fi
5182if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005183 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005184 $as_echo_n "(cached) " >&6
5185else
5186 # Double quotes because CPP needs to be expanded
5187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5188 do
5189 ac_preproc_ok=false
5190for ac_c_preproc_warn_flag in '' yes
5191do
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h. */
5200#ifdef __STDC__
5201# include <limits.h>
5202#else
5203# include <assert.h>
5204#endif
5205 Syntax error
5206_ACEOF
5207if ac_fn_c_try_cpp "$LINENO"; then :
5208
5209else
5210 # Broken: fails on valid input.
5211continue
5212fi
cristyda16f162011-02-19 23:52:17 +00005213rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005214
5215 # OK, works on sane cases. Now check whether nonexistent headers
5216 # can be detected and how.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h. */
5219#include <ac_nonexistent.h>
5220_ACEOF
5221if ac_fn_c_try_cpp "$LINENO"; then :
5222 # Broken: success on invalid input.
5223continue
5224else
5225 # Passes both tests.
5226ac_preproc_ok=:
5227break
5228fi
cristyda16f162011-02-19 23:52:17 +00005229rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005230
5231done
5232# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005233rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005234if $ac_preproc_ok; then :
5235 break
5236fi
5237
5238 done
5239 ac_cv_prog_CPP=$CPP
5240
5241fi
5242 CPP=$ac_cv_prog_CPP
5243else
5244 ac_cv_prog_CPP=$CPP
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5247$as_echo "$CPP" >&6; }
5248ac_preproc_ok=false
5249for ac_c_preproc_warn_flag in '' yes
5250do
5251 # Use a header file that comes with gcc, so configuring glibc
5252 # with a fresh cross-compiler works.
5253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254 # <limits.h> exists even on freestanding compilers.
5255 # On the NeXT, cc -E runs the code through the compiler's parser,
5256 # not just through cpp. "Syntax error" is here to catch this case.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258/* end confdefs.h. */
5259#ifdef __STDC__
5260# include <limits.h>
5261#else
5262# include <assert.h>
5263#endif
5264 Syntax error
5265_ACEOF
5266if ac_fn_c_try_cpp "$LINENO"; then :
5267
5268else
5269 # Broken: fails on valid input.
5270continue
5271fi
cristyda16f162011-02-19 23:52:17 +00005272rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005273
5274 # OK, works on sane cases. Now check whether nonexistent headers
5275 # can be detected and how.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h. */
5278#include <ac_nonexistent.h>
5279_ACEOF
5280if ac_fn_c_try_cpp "$LINENO"; then :
5281 # Broken: success on invalid input.
5282continue
5283else
5284 # Passes both tests.
5285ac_preproc_ok=:
5286break
5287fi
cristyda16f162011-02-19 23:52:17 +00005288rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005289
5290done
5291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005292rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005293if $ac_preproc_ok; then :
5294
5295else
5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005298as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5299See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005300fi
5301
5302ac_ext=c
5303ac_cpp='$CPP $CPPFLAGS'
5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5310$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005311if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005312 $as_echo_n "(cached) " >&6
5313else
5314 if test -z "$GREP"; then
5315 ac_path_GREP_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_prog in grep ggrep; do
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5325 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5326# Check for GNU ac_path_GREP and select it if it is found.
5327 # Check for GNU $ac_path_GREP
5328case `"$ac_path_GREP" --version 2>&1` in
5329*GNU*)
5330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5331*)
5332 ac_count=0
5333 $as_echo_n 0123456789 >"conftest.in"
5334 while :
5335 do
5336 cat "conftest.in" "conftest.in" >"conftest.tmp"
5337 mv "conftest.tmp" "conftest.in"
5338 cp "conftest.in" "conftest.nl"
5339 $as_echo 'GREP' >> "conftest.nl"
5340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342 as_fn_arith $ac_count + 1 && ac_count=$as_val
5343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5344 # Best one so far, save it but keep looking for a better one
5345 ac_cv_path_GREP="$ac_path_GREP"
5346 ac_path_GREP_max=$ac_count
5347 fi
5348 # 10*(2^10) chars as input seems more than enough
5349 test $ac_count -gt 10 && break
5350 done
5351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352esac
5353
5354 $ac_path_GREP_found && break 3
5355 done
5356 done
5357 done
5358IFS=$as_save_IFS
5359 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005361 fi
5362else
5363 ac_cv_path_GREP=$GREP
5364fi
5365
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5368$as_echo "$ac_cv_path_GREP" >&6; }
5369 GREP="$ac_cv_path_GREP"
5370
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5373$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005374if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005375 $as_echo_n "(cached) " >&6
5376else
5377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5378 then ac_cv_path_EGREP="$GREP -E"
5379 else
5380 if test -z "$EGREP"; then
5381 ac_path_EGREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in egrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5391 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5392# Check for GNU ac_path_EGREP and select it if it is found.
5393 # Check for GNU $ac_path_EGREP
5394case `"$ac_path_EGREP" --version 2>&1` in
5395*GNU*)
5396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5397*)
5398 ac_count=0
5399 $as_echo_n 0123456789 >"conftest.in"
5400 while :
5401 do
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'EGREP' >> "conftest.nl"
5406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_EGREP="$ac_path_EGREP"
5412 ac_path_EGREP_max=$ac_count
5413 fi
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5416 done
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418esac
5419
5420 $ac_path_EGREP_found && break 3
5421 done
5422 done
5423 done
5424IFS=$as_save_IFS
5425 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005427 fi
5428else
5429 ac_cv_path_EGREP=$EGREP
5430fi
5431
5432 fi
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5435$as_echo "$ac_cv_path_EGREP" >&6; }
5436 EGREP="$ac_cv_path_EGREP"
5437
5438
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5440$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005441if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005442 $as_echo_n "(cached) " >&6
5443else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h. */
5446#include <stdlib.h>
5447#include <stdarg.h>
5448#include <string.h>
5449#include <float.h>
5450
5451int
5452main ()
5453{
5454
5455 ;
5456 return 0;
5457}
5458_ACEOF
5459if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_header_stdc=yes
5461else
5462 ac_cv_header_stdc=no
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466if test $ac_cv_header_stdc = yes; then
5467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h. */
5470#include <string.h>
5471
5472_ACEOF
5473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474 $EGREP "memchr" >/dev/null 2>&1; then :
5475
5476else
5477 ac_cv_header_stdc=no
5478fi
5479rm -f conftest*
5480
5481fi
5482
5483if test $ac_cv_header_stdc = yes; then
5484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h. */
5487#include <stdlib.h>
5488
5489_ACEOF
5490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "free" >/dev/null 2>&1; then :
5492
5493else
5494 ac_cv_header_stdc=no
5495fi
5496rm -f conftest*
5497
5498fi
5499
5500if test $ac_cv_header_stdc = yes; then
5501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5502 if test "$cross_compiling" = yes; then :
5503 :
5504else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h. */
5507#include <ctype.h>
5508#include <stdlib.h>
5509#if ((' ' & 0x0FF) == 0x020)
5510# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5511# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5512#else
5513# define ISLOWER(c) \
5514 (('a' <= (c) && (c) <= 'i') \
5515 || ('j' <= (c) && (c) <= 'r') \
5516 || ('s' <= (c) && (c) <= 'z'))
5517# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5518#endif
5519
5520#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5521int
5522main ()
5523{
5524 int i;
5525 for (i = 0; i < 256; i++)
5526 if (XOR (islower (i), ISLOWER (i))
5527 || toupper (i) != TOUPPER (i))
5528 return 2;
5529 return 0;
5530}
5531_ACEOF
5532if ac_fn_c_try_run "$LINENO"; then :
5533
5534else
5535 ac_cv_header_stdc=no
5536fi
5537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5538 conftest.$ac_objext conftest.beam conftest.$ac_ext
5539fi
5540
5541fi
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5544$as_echo "$ac_cv_header_stdc" >&6; }
5545if test $ac_cv_header_stdc = yes; then
5546
5547$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5548
5549fi
5550
5551# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5552for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5553 inttypes.h stdint.h unistd.h
5554do :
5555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5557"
cristy98dddb52010-11-04 00:30:15 +00005558if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005559 cat >>confdefs.h <<_ACEOF
5560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561_ACEOF
5562
5563fi
5564
5565done
5566
5567
5568
5569 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005570if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005571 MINIX=yes
5572else
5573 MINIX=
5574fi
5575
5576
5577 if test "$MINIX" = yes; then
5578
5579$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5580
5581
5582$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5583
5584
5585$as_echo "#define _MINIX 1" >>confdefs.h
5586
5587 fi
5588
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5591$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005592if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005593 $as_echo_n "(cached) " >&6
5594else
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596/* end confdefs.h. */
5597
5598# define __EXTENSIONS__ 1
5599 $ac_includes_default
5600int
5601main ()
5602{
5603
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_safe_to_define___extensions__=yes
5610else
5611 ac_cv_safe_to_define___extensions__=no
5612fi
5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5616$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5617 test $ac_cv_safe_to_define___extensions__ = yes &&
5618 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5619
5620 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5621
5622 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5623
5624 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5625
5626 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5627
5628
5629
5630# Check for programs
5631ac_ext=c
5632ac_cpp='$CPP $CPPFLAGS'
5633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5638set dummy ${ac_tool_prefix}gcc; ac_word=$2
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005641if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005642 $as_echo_n "(cached) " >&6
5643else
5644 if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5657 fi
5658done
5659 done
5660IFS=$as_save_IFS
5661
5662fi
5663fi
5664CC=$ac_cv_prog_CC
5665if test -n "$CC"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5667$as_echo "$CC" >&6; }
5668else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670$as_echo "no" >&6; }
5671fi
5672
5673
5674fi
5675if test -z "$ac_cv_prog_CC"; then
5676 ac_ct_CC=$CC
5677 # Extract the first word of "gcc", so it can be a program name with args.
5678set dummy gcc; ac_word=$2
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005681if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005682 $as_echo_n "(cached) " >&6
5683else
5684 if test -n "$ac_ct_CC"; then
5685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_ac_ct_CC="gcc"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699 done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
5704ac_ct_CC=$ac_cv_prog_ac_ct_CC
5705if test -n "$ac_ct_CC"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5707$as_echo "$ac_ct_CC" >&6; }
5708else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
5713 if test "x$ac_ct_CC" = x; then
5714 CC=""
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717yes:)
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720ac_tool_warned=yes ;;
5721esac
5722 CC=$ac_ct_CC
5723 fi
5724else
5725 CC="$ac_cv_prog_CC"
5726fi
5727
5728if test -z "$CC"; then
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5731set dummy ${ac_tool_prefix}cc; ac_word=$2
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005734if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005735 $as_echo_n "(cached) " >&6
5736else
5737 if test -n "$CC"; then
5738 ac_cv_prog_CC="$CC" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_CC="${ac_tool_prefix}cc"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751done
5752 done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757CC=$ac_cv_prog_CC
5758if test -n "$CC"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5760$as_echo "$CC" >&6; }
5761else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
5764fi
5765
5766
5767 fi
5768fi
5769if test -z "$CC"; then
5770 # Extract the first word of "cc", so it can be a program name with args.
5771set dummy cc; ac_word=$2
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005774if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005775 $as_echo_n "(cached) " >&6
5776else
5777 if test -n "$CC"; then
5778 ac_cv_prog_CC="$CC" # Let the user override the test.
5779else
5780 ac_prog_rejected=no
5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5789 ac_prog_rejected=yes
5790 continue
5791 fi
5792 ac_cv_prog_CC="cc"
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796done
5797 done
5798IFS=$as_save_IFS
5799
5800if test $ac_prog_rejected = yes; then
5801 # We found a bogon in the path, so make sure we never use it.
5802 set dummy $ac_cv_prog_CC
5803 shift
5804 if test $# != 0; then
5805 # We chose a different compiler from the bogus one.
5806 # However, it has the same basename, so the bogon will be chosen
5807 # first if we set CC to just the basename; use the full file name.
5808 shift
5809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5810 fi
5811fi
5812fi
5813fi
5814CC=$ac_cv_prog_CC
5815if test -n "$CC"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5817$as_echo "$CC" >&6; }
5818else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }
5821fi
5822
5823
5824fi
5825if test -z "$CC"; then
5826 if test -n "$ac_tool_prefix"; then
5827 for ac_prog in cl.exe
5828 do
5829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005833if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005834 $as_echo_n "(cached) " >&6
5835else
5836 if test -n "$CC"; then
5837 ac_cv_prog_CC="$CC" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850done
5851 done
5852IFS=$as_save_IFS
5853
5854fi
5855fi
5856CC=$ac_cv_prog_CC
5857if test -n "$CC"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5859$as_echo "$CC" >&6; }
5860else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862$as_echo "no" >&6; }
5863fi
5864
5865
5866 test -n "$CC" && break
5867 done
5868fi
5869if test -z "$CC"; then
5870 ac_ct_CC=$CC
5871 for ac_prog in cl.exe
5872do
5873 # Extract the first word of "$ac_prog", so it can be a program name with args.
5874set dummy $ac_prog; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005877if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005878 $as_echo_n "(cached) " >&6
5879else
5880 if test -n "$ac_ct_CC"; then
5881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890 ac_cv_prog_ac_ct_CC="$ac_prog"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895 done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900ac_ct_CC=$ac_cv_prog_ac_ct_CC
5901if test -n "$ac_ct_CC"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5903$as_echo "$ac_ct_CC" >&6; }
5904else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909
5910 test -n "$ac_ct_CC" && break
5911done
5912
5913 if test "x$ac_ct_CC" = x; then
5914 CC=""
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917yes:)
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920ac_tool_warned=yes ;;
5921esac
5922 CC=$ac_ct_CC
5923 fi
5924fi
5925
5926fi
5927
5928
5929test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005931as_fn_error $? "no acceptable C compiler found in \$PATH
5932See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005933
5934# Provide some information about the compiler.
5935$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5936set X $ac_compile
5937ac_compiler=$2
5938for ac_option in --version -v -V -qversion; do
5939 { { ac_try="$ac_compiler $ac_option >&5"
5940case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943esac
5944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5945$as_echo "$ac_try_echo"; } >&5
5946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5947 ac_status=$?
5948 if test -s conftest.err; then
5949 sed '10a\
5950... rest of stderr output deleted ...
5951 10q' conftest.err >conftest.er1
5952 cat conftest.er1 >&5
5953 fi
5954 rm -f conftest.er1 conftest.err
5955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956 test $ac_status = 0; }
5957done
5958
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5960$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005961if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005962 $as_echo_n "(cached) " >&6
5963else
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h. */
5966
5967int
5968main ()
5969{
5970#ifndef __GNUC__
5971 choke me
5972#endif
5973
5974 ;
5975 return 0;
5976}
5977_ACEOF
5978if ac_fn_c_try_compile "$LINENO"; then :
5979 ac_compiler_gnu=yes
5980else
5981 ac_compiler_gnu=no
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984ac_cv_c_compiler_gnu=$ac_compiler_gnu
5985
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5988$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5989if test $ac_compiler_gnu = yes; then
5990 GCC=yes
5991else
5992 GCC=
5993fi
5994ac_test_CFLAGS=${CFLAGS+set}
5995ac_save_CFLAGS=$CFLAGS
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5997$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005998if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005999 $as_echo_n "(cached) " >&6
6000else
6001 ac_save_c_werror_flag=$ac_c_werror_flag
6002 ac_c_werror_flag=yes
6003 ac_cv_prog_cc_g=no
6004 CFLAGS="-g"
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h. */
6007
6008int
6009main ()
6010{
6011
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"; then :
6017 ac_cv_prog_cc_g=yes
6018else
6019 CFLAGS=""
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021/* end confdefs.h. */
6022
6023int
6024main ()
6025{
6026
6027 ;
6028 return 0;
6029}
6030_ACEOF
6031if ac_fn_c_try_compile "$LINENO"; then :
6032
6033else
6034 ac_c_werror_flag=$ac_save_c_werror_flag
6035 CFLAGS="-g"
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h. */
6038
6039int
6040main ()
6041{
6042
6043 ;
6044 return 0;
6045}
6046_ACEOF
6047if ac_fn_c_try_compile "$LINENO"; then :
6048 ac_cv_prog_cc_g=yes
6049fi
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051fi
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053fi
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 ac_c_werror_flag=$ac_save_c_werror_flag
6056fi
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6058$as_echo "$ac_cv_prog_cc_g" >&6; }
6059if test "$ac_test_CFLAGS" = set; then
6060 CFLAGS=$ac_save_CFLAGS
6061elif test $ac_cv_prog_cc_g = yes; then
6062 if test "$GCC" = yes; then
6063 CFLAGS="-g -O2"
6064 else
6065 CFLAGS="-g"
6066 fi
6067else
6068 if test "$GCC" = yes; then
6069 CFLAGS="-O2"
6070 else
6071 CFLAGS=
6072 fi
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6075$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006076if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006077 $as_echo_n "(cached) " >&6
6078else
6079 ac_cv_prog_cc_c89=no
6080ac_save_CC=$CC
6081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h. */
6083#include <stdarg.h>
6084#include <stdio.h>
6085#include <sys/types.h>
6086#include <sys/stat.h>
6087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6088struct buf { int x; };
6089FILE * (*rcsopen) (struct buf *, struct stat *, int);
6090static char *e (p, i)
6091 char **p;
6092 int i;
6093{
6094 return p[i];
6095}
6096static char *f (char * (*g) (char **, int), char **p, ...)
6097{
6098 char *s;
6099 va_list v;
6100 va_start (v,p);
6101 s = g (p, va_arg (v,int));
6102 va_end (v);
6103 return s;
6104}
6105
6106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6107 function prototypes and stuff, but not '\xHH' hex character constants.
6108 These don't provoke an error unfortunately, instead are silently treated
6109 as 'x'. The following induces an error, until -std is added to get
6110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6111 array size at least. It's necessary to write '\x00'==0 to get something
6112 that's true only with -std. */
6113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6114
6115/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6116 inside strings and character constants. */
6117#define FOO(x) 'x'
6118int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6119
6120int test (int i, double x);
6121struct s1 {int (*f) (int a);};
6122struct s2 {int (*f) (double a);};
6123int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6124int argc;
6125char **argv;
6126int
6127main ()
6128{
6129return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6130 ;
6131 return 0;
6132}
6133_ACEOF
6134for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6136do
6137 CC="$ac_save_CC $ac_arg"
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 ac_cv_prog_cc_c89=$ac_arg
6140fi
6141rm -f core conftest.err conftest.$ac_objext
6142 test "x$ac_cv_prog_cc_c89" != "xno" && break
6143done
6144rm -f conftest.$ac_ext
6145CC=$ac_save_CC
6146
6147fi
6148# AC_CACHE_VAL
6149case "x$ac_cv_prog_cc_c89" in
6150 x)
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6152$as_echo "none needed" >&6; } ;;
6153 xno)
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6155$as_echo "unsupported" >&6; } ;;
6156 *)
6157 CC="$CC $ac_cv_prog_cc_c89"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6159$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6160esac
6161if test "x$ac_cv_prog_cc_c89" != xno; then :
6162
6163fi
6164
6165ac_ext=c
6166ac_cpp='$CPP $CPPFLAGS'
6167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
cristy73bd4a52010-10-05 11:24:23 +00006171depcc="$CC" am_compiler_list=
6172
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6174$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006175if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006176 $as_echo_n "(cached) " >&6
6177else
6178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6179 # We make a subdir and do the tests there. Otherwise we can end up
6180 # making bogus files that we don't know about and never remove. For
6181 # instance it was reported that on HP-UX the gcc test will end up
6182 # making a dummy file named `D' -- because `-MD' means `put the output
6183 # in D'.
6184 mkdir conftest.dir
6185 # Copy depcomp to subdir because otherwise we won't find it if we're
6186 # using a relative directory.
6187 cp "$am_depcomp" conftest.dir
6188 cd conftest.dir
6189 # We will build objects and dependencies in a subdirectory because
6190 # it helps to detect inapplicable dependency modes. For instance
6191 # both Tru64's cc and ICC support -MD to output dependencies as a
6192 # side effect of compilation, but ICC will put the dependencies in
6193 # the current directory while Tru64 will put them in the object
6194 # directory.
6195 mkdir sub
6196
6197 am_cv_CC_dependencies_compiler_type=none
6198 if test "$am_compiler_list" = ""; then
6199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6200 fi
6201 am__universal=false
6202 case " $depcc " in #(
6203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6204 esac
6205
6206 for depmode in $am_compiler_list; do
6207 # Setup a source with many dependencies, because some compilers
6208 # like to wrap large dependency lists on column 80 (with \), and
6209 # we should not choose a depcomp mode which is confused by this.
6210 #
6211 # We need to recreate these files for each test, as the compiler may
6212 # overwrite some of them when testing with obscure command lines.
6213 # This happens at least with the AIX C compiler.
6214 : > sub/conftest.c
6215 for i in 1 2 3 4 5 6; do
6216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6218 # Solaris 8's {/usr,}/bin/sh.
6219 touch sub/conftst$i.h
6220 done
6221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6222
6223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6224 # mode. It turns out that the SunPro C++ compiler does not properly
6225 # handle `-M -o', and we need to detect this. Also, some Intel
6226 # versions had trouble with output in subdirs
6227 am__obj=sub/conftest.${OBJEXT-o}
6228 am__minus_obj="-o $am__obj"
6229 case $depmode in
6230 gcc)
6231 # This depmode causes a compiler race in universal mode.
6232 test "$am__universal" = false || continue
6233 ;;
6234 nosideeffect)
6235 # after this tag, mechanisms are not by side-effect, so they'll
6236 # only be used when explicitly requested
6237 if test "x$enable_dependency_tracking" = xyes; then
6238 continue
6239 else
6240 break
6241 fi
6242 ;;
6243 msvisualcpp | msvcmsys)
6244 # This compiler won't grok `-c -o', but also, the minuso test has
6245 # not run yet. These depmodes are late enough in the game, and
6246 # so weak that their functioning should not be impacted.
6247 am__obj=conftest.${OBJEXT-o}
6248 am__minus_obj=
6249 ;;
6250 none) break ;;
6251 esac
6252 if depmode=$depmode \
6253 source=sub/conftest.c object=$am__obj \
6254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6256 >/dev/null 2>conftest.err &&
6257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6261 # icc doesn't choke on unknown options, it will just issue warnings
6262 # or remarks (even with -Werror). So we grep stderr for any message
6263 # that says an option was ignored or not supported.
6264 # When given -MP, icc 7.0 and 7.1 complain thusly:
6265 # icc: Command line warning: ignoring option '-M'; no argument required
6266 # The diagnosis changed in icc 8.0:
6267 # icc: Command line remark: option '-MP' not supported
6268 if (grep 'ignoring option' conftest.err ||
6269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6270 am_cv_CC_dependencies_compiler_type=$depmode
6271 break
6272 fi
6273 fi
6274 done
6275
6276 cd ..
6277 rm -rf conftest.dir
6278else
6279 am_cv_CC_dependencies_compiler_type=none
6280fi
6281
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6284$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6285CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6286
6287 if
6288 test "x$enable_dependency_tracking" != xno \
6289 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6290 am__fastdepCC_TRUE=
6291 am__fastdepCC_FALSE='#'
6292else
6293 am__fastdepCC_TRUE='#'
6294 am__fastdepCC_FALSE=
6295fi
6296
6297
cristy95646052009-11-28 23:05:30 +00006298ac_ext=cpp
6299ac_cpp='$CXXCPP $CPPFLAGS'
6300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6303if test -z "$CXX"; then
6304 if test -n "$CCC"; then
6305 CXX=$CCC
6306 else
6307 if test -n "$ac_tool_prefix"; then
6308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6309 do
6310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006314if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006315 $as_echo_n "(cached) " >&6
6316else
6317 if test -n "$CXX"; then
6318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331done
6332 done
6333IFS=$as_save_IFS
6334
6335fi
6336fi
6337CXX=$ac_cv_prog_CXX
6338if test -n "$CXX"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6340$as_echo "$CXX" >&6; }
6341else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343$as_echo "no" >&6; }
6344fi
6345
6346
6347 test -n "$CXX" && break
6348 done
6349fi
6350if test -z "$CXX"; then
6351 ac_ct_CXX=$CXX
6352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6353do
6354 # Extract the first word of "$ac_prog", so it can be a program name with args.
6355set dummy $ac_prog; ac_word=$2
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006358if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006359 $as_echo_n "(cached) " >&6
6360else
6361 if test -n "$ac_ct_CXX"; then
6362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_ac_ct_CXX="$ac_prog"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375done
6376 done
6377IFS=$as_save_IFS
6378
6379fi
6380fi
6381ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6382if test -n "$ac_ct_CXX"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6384$as_echo "$ac_ct_CXX" >&6; }
6385else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387$as_echo "no" >&6; }
6388fi
6389
6390
6391 test -n "$ac_ct_CXX" && break
6392done
6393
6394 if test "x$ac_ct_CXX" = x; then
6395 CXX="g++"
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398yes:)
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401ac_tool_warned=yes ;;
6402esac
6403 CXX=$ac_ct_CXX
6404 fi
6405fi
6406
6407 fi
6408fi
6409# Provide some information about the compiler.
6410$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6411set X $ac_compile
6412ac_compiler=$2
6413for ac_option in --version -v -V -qversion; do
6414 { { ac_try="$ac_compiler $ac_option >&5"
6415case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
6419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6420$as_echo "$ac_try_echo"; } >&5
6421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6422 ac_status=$?
6423 if test -s conftest.err; then
6424 sed '10a\
6425... rest of stderr output deleted ...
6426 10q' conftest.err >conftest.er1
6427 cat conftest.er1 >&5
6428 fi
6429 rm -f conftest.er1 conftest.err
6430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431 test $ac_status = 0; }
6432done
6433
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6435$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006436if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006437 $as_echo_n "(cached) " >&6
6438else
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h. */
6441
6442int
6443main ()
6444{
6445#ifndef __GNUC__
6446 choke me
6447#endif
6448
6449 ;
6450 return 0;
6451}
6452_ACEOF
6453if ac_fn_cxx_try_compile "$LINENO"; then :
6454 ac_compiler_gnu=yes
6455else
6456 ac_compiler_gnu=no
6457fi
6458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6460
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6463$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6464if test $ac_compiler_gnu = yes; then
6465 GXX=yes
6466else
6467 GXX=
6468fi
6469ac_test_CXXFLAGS=${CXXFLAGS+set}
6470ac_save_CXXFLAGS=$CXXFLAGS
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6472$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006473if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006474 $as_echo_n "(cached) " >&6
6475else
6476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6477 ac_cxx_werror_flag=yes
6478 ac_cv_prog_cxx_g=no
6479 CXXFLAGS="-g"
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h. */
6482
6483int
6484main ()
6485{
6486
6487 ;
6488 return 0;
6489}
6490_ACEOF
6491if ac_fn_cxx_try_compile "$LINENO"; then :
6492 ac_cv_prog_cxx_g=yes
6493else
6494 CXXFLAGS=""
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h. */
6497
6498int
6499main ()
6500{
6501
6502 ;
6503 return 0;
6504}
6505_ACEOF
6506if ac_fn_cxx_try_compile "$LINENO"; then :
6507
6508else
6509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6510 CXXFLAGS="-g"
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h. */
6513
6514int
6515main ()
6516{
6517
6518 ;
6519 return 0;
6520}
6521_ACEOF
6522if ac_fn_cxx_try_compile "$LINENO"; then :
6523 ac_cv_prog_cxx_g=yes
6524fi
6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526fi
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6533$as_echo "$ac_cv_prog_cxx_g" >&6; }
6534if test "$ac_test_CXXFLAGS" = set; then
6535 CXXFLAGS=$ac_save_CXXFLAGS
6536elif test $ac_cv_prog_cxx_g = yes; then
6537 if test "$GXX" = yes; then
6538 CXXFLAGS="-g -O2"
6539 else
6540 CXXFLAGS="-g"
6541 fi
6542else
6543 if test "$GXX" = yes; then
6544 CXXFLAGS="-O2"
6545 else
6546 CXXFLAGS=
6547 fi
6548fi
6549ac_ext=c
6550ac_cpp='$CPP $CPPFLAGS'
6551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554
cristy73bd4a52010-10-05 11:24:23 +00006555depcc="$CXX" am_compiler_list=
6556
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6558$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006559if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006560 $as_echo_n "(cached) " >&6
6561else
6562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6563 # We make a subdir and do the tests there. Otherwise we can end up
6564 # making bogus files that we don't know about and never remove. For
6565 # instance it was reported that on HP-UX the gcc test will end up
6566 # making a dummy file named `D' -- because `-MD' means `put the output
6567 # in D'.
6568 mkdir conftest.dir
6569 # Copy depcomp to subdir because otherwise we won't find it if we're
6570 # using a relative directory.
6571 cp "$am_depcomp" conftest.dir
6572 cd conftest.dir
6573 # We will build objects and dependencies in a subdirectory because
6574 # it helps to detect inapplicable dependency modes. For instance
6575 # both Tru64's cc and ICC support -MD to output dependencies as a
6576 # side effect of compilation, but ICC will put the dependencies in
6577 # the current directory while Tru64 will put them in the object
6578 # directory.
6579 mkdir sub
6580
6581 am_cv_CXX_dependencies_compiler_type=none
6582 if test "$am_compiler_list" = ""; then
6583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6584 fi
6585 am__universal=false
6586 case " $depcc " in #(
6587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6588 esac
6589
6590 for depmode in $am_compiler_list; do
6591 # Setup a source with many dependencies, because some compilers
6592 # like to wrap large dependency lists on column 80 (with \), and
6593 # we should not choose a depcomp mode which is confused by this.
6594 #
6595 # We need to recreate these files for each test, as the compiler may
6596 # overwrite some of them when testing with obscure command lines.
6597 # This happens at least with the AIX C compiler.
6598 : > sub/conftest.c
6599 for i in 1 2 3 4 5 6; do
6600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6602 # Solaris 8's {/usr,}/bin/sh.
6603 touch sub/conftst$i.h
6604 done
6605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6606
6607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6608 # mode. It turns out that the SunPro C++ compiler does not properly
6609 # handle `-M -o', and we need to detect this. Also, some Intel
6610 # versions had trouble with output in subdirs
6611 am__obj=sub/conftest.${OBJEXT-o}
6612 am__minus_obj="-o $am__obj"
6613 case $depmode in
6614 gcc)
6615 # This depmode causes a compiler race in universal mode.
6616 test "$am__universal" = false || continue
6617 ;;
6618 nosideeffect)
6619 # after this tag, mechanisms are not by side-effect, so they'll
6620 # only be used when explicitly requested
6621 if test "x$enable_dependency_tracking" = xyes; then
6622 continue
6623 else
6624 break
6625 fi
6626 ;;
6627 msvisualcpp | msvcmsys)
6628 # This compiler won't grok `-c -o', but also, the minuso test has
6629 # not run yet. These depmodes are late enough in the game, and
6630 # so weak that their functioning should not be impacted.
6631 am__obj=conftest.${OBJEXT-o}
6632 am__minus_obj=
6633 ;;
6634 none) break ;;
6635 esac
6636 if depmode=$depmode \
6637 source=sub/conftest.c object=$am__obj \
6638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6640 >/dev/null 2>conftest.err &&
6641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6645 # icc doesn't choke on unknown options, it will just issue warnings
6646 # or remarks (even with -Werror). So we grep stderr for any message
6647 # that says an option was ignored or not supported.
6648 # When given -MP, icc 7.0 and 7.1 complain thusly:
6649 # icc: Command line warning: ignoring option '-M'; no argument required
6650 # The diagnosis changed in icc 8.0:
6651 # icc: Command line remark: option '-MP' not supported
6652 if (grep 'ignoring option' conftest.err ||
6653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6654 am_cv_CXX_dependencies_compiler_type=$depmode
6655 break
6656 fi
6657 fi
6658 done
6659
6660 cd ..
6661 rm -rf conftest.dir
6662else
6663 am_cv_CXX_dependencies_compiler_type=none
6664fi
6665
6666fi
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6668$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6669CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6670
6671 if
6672 test "x$enable_dependency_tracking" != xno \
6673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6674 am__fastdepCXX_TRUE=
6675 am__fastdepCXX_FALSE='#'
6676else
6677 am__fastdepCXX_TRUE='#'
6678 am__fastdepCXX_FALSE=
6679fi
6680
6681
cristy8b350f62009-11-15 23:12:43 +00006682 case $ac_cv_prog_cc_stdc in #(
6683 no) :
6684 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6685 *) :
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006687$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006688if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006689 $as_echo_n "(cached) " >&6
6690else
6691 ac_cv_prog_cc_c99=no
6692ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006694/* end confdefs.h. */
6695#include <stdarg.h>
6696#include <stdbool.h>
6697#include <stdlib.h>
6698#include <wchar.h>
6699#include <stdio.h>
6700
6701// Check varargs macros. These examples are taken from C99 6.10.3.5.
6702#define debug(...) fprintf (stderr, __VA_ARGS__)
6703#define showlist(...) puts (#__VA_ARGS__)
6704#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6705static void
6706test_varargs_macros (void)
6707{
6708 int x = 1234;
6709 int y = 5678;
6710 debug ("Flag");
6711 debug ("X = %d\n", x);
6712 showlist (The first, second, and third items.);
6713 report (x>y, "x is %d but y is %d", x, y);
6714}
6715
6716// Check long long types.
6717#define BIG64 18446744073709551615ull
6718#define BIG32 4294967295ul
6719#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6720#if !BIG_OK
6721 your preprocessor is broken;
6722#endif
6723#if BIG_OK
6724#else
6725 your preprocessor is broken;
6726#endif
6727static long long int bignum = -9223372036854775807LL;
6728static unsigned long long int ubignum = BIG64;
6729
6730struct incomplete_array
6731{
6732 int datasize;
6733 double data[];
6734};
6735
6736struct named_init {
6737 int number;
6738 const wchar_t *name;
6739 double average;
6740};
6741
6742typedef const char *ccp;
6743
6744static inline int
6745test_restrict (ccp restrict text)
6746{
6747 // See if C++-style comments work.
6748 // Iterate through items via the restricted pointer.
6749 // Also check for declarations in for loops.
6750 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6751 continue;
6752 return 0;
6753}
6754
6755// Check varargs and va_copy.
6756static void
6757test_varargs (const char *format, ...)
6758{
6759 va_list args;
6760 va_start (args, format);
6761 va_list args_copy;
6762 va_copy (args_copy, args);
6763
6764 const char *str;
6765 int number;
6766 float fnumber;
6767
6768 while (*format)
6769 {
6770 switch (*format++)
6771 {
6772 case 's': // string
6773 str = va_arg (args_copy, const char *);
6774 break;
6775 case 'd': // int
6776 number = va_arg (args_copy, int);
6777 break;
6778 case 'f': // float
6779 fnumber = va_arg (args_copy, double);
6780 break;
6781 default:
6782 break;
6783 }
6784 }
6785 va_end (args_copy);
6786 va_end (args);
6787}
6788
6789int
6790main ()
6791{
6792
6793 // Check bool.
6794 _Bool success = false;
6795
6796 // Check restrict.
6797 if (test_restrict ("String literal") == 0)
6798 success = true;
6799 char *restrict newvar = "Another string";
6800
6801 // Check varargs.
6802 test_varargs ("s, d' f .", "string", 65, 34.234);
6803 test_varargs_macros ();
6804
6805 // Check flexible array members.
6806 struct incomplete_array *ia =
6807 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6808 ia->datasize = 10;
6809 for (int i = 0; i < ia->datasize; ++i)
6810 ia->data[i] = i * 1.234;
6811
6812 // Check named initializers.
6813 struct named_init ni = {
6814 .number = 34,
6815 .name = L"Test wide string",
6816 .average = 543.34343,
6817 };
6818
6819 ni.number = 58;
6820
6821 int dynamic_array[ni.number];
6822 dynamic_array[ni.number - 1] = 543;
6823
6824 // work around unused variable warnings
6825 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6826 || dynamic_array[ni.number - 1] != 543);
6827
6828 ;
6829 return 0;
6830}
6831_ACEOF
6832for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6833do
6834 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006835 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006836 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006837fi
cristy3ed852e2009-09-05 21:47:34 +00006838rm -f core conftest.err conftest.$ac_objext
6839 test "x$ac_cv_prog_cc_c99" != "xno" && break
6840done
6841rm -f conftest.$ac_ext
6842CC=$ac_save_CC
6843
6844fi
6845# AC_CACHE_VAL
6846case "x$ac_cv_prog_cc_c99" in
6847 x)
cristy8b350f62009-11-15 23:12:43 +00006848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006849$as_echo "none needed" >&6; } ;;
6850 xno)
cristy8b350f62009-11-15 23:12:43 +00006851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006852$as_echo "unsupported" >&6; } ;;
6853 *)
6854 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006856$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6857esac
cristy8b350f62009-11-15 23:12:43 +00006858if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006859 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6860else
cristy8b350f62009-11-15 23:12:43 +00006861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006862$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006863if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006864 $as_echo_n "(cached) " >&6
6865else
6866 ac_cv_prog_cc_c89=no
6867ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006869/* end confdefs.h. */
6870#include <stdarg.h>
6871#include <stdio.h>
6872#include <sys/types.h>
6873#include <sys/stat.h>
6874/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6875struct buf { int x; };
6876FILE * (*rcsopen) (struct buf *, struct stat *, int);
6877static char *e (p, i)
6878 char **p;
6879 int i;
6880{
6881 return p[i];
6882}
6883static char *f (char * (*g) (char **, int), char **p, ...)
6884{
6885 char *s;
6886 va_list v;
6887 va_start (v,p);
6888 s = g (p, va_arg (v,int));
6889 va_end (v);
6890 return s;
6891}
6892
6893/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6894 function prototypes and stuff, but not '\xHH' hex character constants.
6895 These don't provoke an error unfortunately, instead are silently treated
6896 as 'x'. The following induces an error, until -std is added to get
6897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6898 array size at least. It's necessary to write '\x00'==0 to get something
6899 that's true only with -std. */
6900int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6901
6902/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6903 inside strings and character constants. */
6904#define FOO(x) 'x'
6905int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6906
6907int test (int i, double x);
6908struct s1 {int (*f) (int a);};
6909struct s2 {int (*f) (double a);};
6910int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6911int argc;
6912char **argv;
6913int
6914main ()
6915{
6916return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6917 ;
6918 return 0;
6919}
6920_ACEOF
6921for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6923do
6924 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006925 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006926 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006927fi
cristy3ed852e2009-09-05 21:47:34 +00006928rm -f core conftest.err conftest.$ac_objext
6929 test "x$ac_cv_prog_cc_c89" != "xno" && break
6930done
6931rm -f conftest.$ac_ext
6932CC=$ac_save_CC
6933
6934fi
6935# AC_CACHE_VAL
6936case "x$ac_cv_prog_cc_c89" in
6937 x)
cristy8b350f62009-11-15 23:12:43 +00006938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006939$as_echo "none needed" >&6; } ;;
6940 xno)
cristy8b350f62009-11-15 23:12:43 +00006941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006942$as_echo "unsupported" >&6; } ;;
6943 *)
6944 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006946$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6947esac
cristy8b350f62009-11-15 23:12:43 +00006948if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006949 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6950else
6951 ac_cv_prog_cc_stdc=no
6952fi
6953
cristy3ed852e2009-09-05 21:47:34 +00006954fi
cristy3ed852e2009-09-05 21:47:34 +00006955 ;;
6956esac
cristy8b350f62009-11-15 23:12:43 +00006957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006958$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006959 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006960 $as_echo_n "(cached) " >&6
6961fi
6962
cristy8b350f62009-11-15 23:12:43 +00006963 case $ac_cv_prog_cc_stdc in #(
6964 no) :
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6966$as_echo "unsupported" >&6; } ;; #(
6967 '') :
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6969$as_echo "none needed" >&6; } ;; #(
6970 *) :
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006972$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6973esac
6974
cristy3ed852e2009-09-05 21:47:34 +00006975ac_ext=c
6976ac_cpp='$CPP $CPPFLAGS'
6977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006981$as_echo_n "checking how to run the C preprocessor... " >&6; }
6982# On Suns, sometimes $CPP names a directory.
6983if test -n "$CPP" && test -d "$CPP"; then
6984 CPP=
6985fi
6986if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006987 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006988 $as_echo_n "(cached) " >&6
6989else
6990 # Double quotes because CPP needs to be expanded
6991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6992 do
6993 ac_preproc_ok=false
6994for ac_c_preproc_warn_flag in '' yes
6995do
6996 # Use a header file that comes with gcc, so configuring glibc
6997 # with a fresh cross-compiler works.
6998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 # <limits.h> exists even on freestanding compilers.
7000 # On the NeXT, cc -E runs the code through the compiler's parser,
7001 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007003/* end confdefs.h. */
7004#ifdef __STDC__
7005# include <limits.h>
7006#else
7007# include <assert.h>
7008#endif
7009 Syntax error
7010_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007011if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007012
cristy8b350f62009-11-15 23:12:43 +00007013else
cristy3ed852e2009-09-05 21:47:34 +00007014 # Broken: fails on valid input.
7015continue
7016fi
cristyda16f162011-02-19 23:52:17 +00007017rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007018
7019 # OK, works on sane cases. Now check whether nonexistent headers
7020 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007022/* end confdefs.h. */
7023#include <ac_nonexistent.h>
7024_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007025if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007026 # Broken: success on invalid input.
7027continue
7028else
cristy3ed852e2009-09-05 21:47:34 +00007029 # Passes both tests.
7030ac_preproc_ok=:
7031break
7032fi
cristyda16f162011-02-19 23:52:17 +00007033rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007034
7035done
7036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007037rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007038if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007039 break
7040fi
7041
7042 done
7043 ac_cv_prog_CPP=$CPP
7044
7045fi
7046 CPP=$ac_cv_prog_CPP
7047else
7048 ac_cv_prog_CPP=$CPP
7049fi
cristy8b350f62009-11-15 23:12:43 +00007050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007051$as_echo "$CPP" >&6; }
7052ac_preproc_ok=false
7053for ac_c_preproc_warn_flag in '' yes
7054do
7055 # Use a header file that comes with gcc, so configuring glibc
7056 # with a fresh cross-compiler works.
7057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7058 # <limits.h> exists even on freestanding compilers.
7059 # On the NeXT, cc -E runs the code through the compiler's parser,
7060 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007062/* end confdefs.h. */
7063#ifdef __STDC__
7064# include <limits.h>
7065#else
7066# include <assert.h>
7067#endif
7068 Syntax error
7069_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007070if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007071
cristy8b350f62009-11-15 23:12:43 +00007072else
cristy3ed852e2009-09-05 21:47:34 +00007073 # Broken: fails on valid input.
7074continue
7075fi
cristyda16f162011-02-19 23:52:17 +00007076rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007077
7078 # OK, works on sane cases. Now check whether nonexistent headers
7079 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007081/* end confdefs.h. */
7082#include <ac_nonexistent.h>
7083_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007084if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007085 # Broken: success on invalid input.
7086continue
7087else
cristy3ed852e2009-09-05 21:47:34 +00007088 # Passes both tests.
7089ac_preproc_ok=:
7090break
7091fi
cristyda16f162011-02-19 23:52:17 +00007092rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007093
7094done
7095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007096rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007097if $ac_preproc_ok; then :
7098
cristy3ed852e2009-09-05 21:47:34 +00007099else
cristy8b350f62009-11-15 23:12:43 +00007100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007102as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7103See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007104fi
7105
7106ac_ext=c
7107ac_cpp='$CPP $CPPFLAGS'
7108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110ac_compiler_gnu=$ac_cv_c_compiler_gnu
7111
cristy73bd4a52010-10-05 11:24:23 +00007112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7113$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007114if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007115 $as_echo_n "(cached) " >&6
7116else
7117 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7118 for ac_i in 1 2 3 4 5 6 7; do
7119 ac_script="$ac_script$as_nl$ac_script"
7120 done
7121 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7122 { ac_script=; unset ac_script;}
7123 if test -z "$SED"; then
7124 ac_path_SED_found=false
7125 # Loop through the user's path and test for each of PROGNAME-LIST
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_prog in sed gsed; do
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7134 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7135# Check for GNU ac_path_SED and select it if it is found.
7136 # Check for GNU $ac_path_SED
7137case `"$ac_path_SED" --version 2>&1` in
7138*GNU*)
7139 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7140*)
7141 ac_count=0
7142 $as_echo_n 0123456789 >"conftest.in"
7143 while :
7144 do
7145 cat "conftest.in" "conftest.in" >"conftest.tmp"
7146 mv "conftest.tmp" "conftest.in"
7147 cp "conftest.in" "conftest.nl"
7148 $as_echo '' >> "conftest.nl"
7149 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7151 as_fn_arith $ac_count + 1 && ac_count=$as_val
7152 if test $ac_count -gt ${ac_path_SED_max-0}; then
7153 # Best one so far, save it but keep looking for a better one
7154 ac_cv_path_SED="$ac_path_SED"
7155 ac_path_SED_max=$ac_count
7156 fi
7157 # 10*(2^10) chars as input seems more than enough
7158 test $ac_count -gt 10 && break
7159 done
7160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7161esac
7162
7163 $ac_path_SED_found && break 3
7164 done
7165 done
7166 done
7167IFS=$as_save_IFS
7168 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007169 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007170 fi
7171else
7172 ac_cv_path_SED=$SED
7173fi
7174
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7177$as_echo "$ac_cv_path_SED" >&6; }
7178 SED="$ac_cv_path_SED"
7179 rm -f conftest.sed
7180
7181test -z "$SED" && SED=sed
7182Xsed="$SED -e 1s/^X//"
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7195$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007196if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007197 $as_echo_n "(cached) " >&6
7198else
7199 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7200 then ac_cv_path_FGREP="$GREP -F"
7201 else
7202 if test -z "$FGREP"; then
7203 ac_path_FGREP_found=false
7204 # Loop through the user's path and test for each of PROGNAME-LIST
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_prog in fgrep; do
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7213 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7214# Check for GNU ac_path_FGREP and select it if it is found.
7215 # Check for GNU $ac_path_FGREP
7216case `"$ac_path_FGREP" --version 2>&1` in
7217*GNU*)
7218 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7219*)
7220 ac_count=0
7221 $as_echo_n 0123456789 >"conftest.in"
7222 while :
7223 do
7224 cat "conftest.in" "conftest.in" >"conftest.tmp"
7225 mv "conftest.tmp" "conftest.in"
7226 cp "conftest.in" "conftest.nl"
7227 $as_echo 'FGREP' >> "conftest.nl"
7228 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7230 as_fn_arith $ac_count + 1 && ac_count=$as_val
7231 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7232 # Best one so far, save it but keep looking for a better one
7233 ac_cv_path_FGREP="$ac_path_FGREP"
7234 ac_path_FGREP_max=$ac_count
7235 fi
7236 # 10*(2^10) chars as input seems more than enough
7237 test $ac_count -gt 10 && break
7238 done
7239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7240esac
7241
7242 $ac_path_FGREP_found && break 3
7243 done
7244 done
7245 done
7246IFS=$as_save_IFS
7247 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007248 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007249 fi
7250else
7251 ac_cv_path_FGREP=$FGREP
7252fi
7253
7254 fi
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7257$as_echo "$ac_cv_path_FGREP" >&6; }
7258 FGREP="$ac_cv_path_FGREP"
7259
7260
7261test -z "$GREP" && GREP=grep
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
cristy0c60a692010-11-04 01:09:47 +00007279ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7280ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7281ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7282
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7284$as_echo_n "checking how to print strings... " >&6; }
7285# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007286if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007287 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7288 ECHO='print -r --'
7289elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7290 ECHO='printf %s\n'
7291else
7292 # Use this function as a fallback that always works.
7293 func_fallback_echo ()
7294 {
7295 eval 'cat <<_LTECHO_EOF
7296$1
7297_LTECHO_EOF'
7298 }
7299 ECHO='func_fallback_echo'
7300fi
7301
7302# func_echo_all arg...
7303# Invoke $ECHO with all args, space-separated.
7304func_echo_all ()
7305{
7306 $ECHO ""
7307}
7308
7309case "$ECHO" in
7310 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7311$as_echo "printf" >&6; } ;;
7312 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7313$as_echo "print -r" >&6; } ;;
7314 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7315$as_echo "cat" >&6; } ;;
7316esac
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
cristy73bd4a52010-10-05 11:24:23 +00007331
7332
7333# Check whether --with-gnu-ld was given.
7334if test "${with_gnu_ld+set}" = set; then :
7335 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7336else
7337 with_gnu_ld=no
7338fi
7339
7340ac_prog=ld
7341if test "$GCC" = yes; then
7342 # Check if gcc -print-prog-name=ld gives a path.
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7344$as_echo_n "checking for ld used by $CC... " >&6; }
7345 case $host in
7346 *-*-mingw*)
7347 # gcc leaves a trailing carriage return which upsets mingw
7348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7349 *)
7350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7351 esac
7352 case $ac_prog in
7353 # Accept absolute paths.
7354 [\\/]* | ?:[\\/]*)
7355 re_direlt='/[^/][^/]*/\.\./'
7356 # Canonicalize the pathname of ld
7357 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7358 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7359 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7360 done
7361 test -z "$LD" && LD="$ac_prog"
7362 ;;
7363 "")
7364 # If it fails, then pretend we aren't using GCC.
7365 ac_prog=ld
7366 ;;
7367 *)
7368 # If it is relative, then search for the first ld in PATH.
7369 with_gnu_ld=unknown
7370 ;;
7371 esac
7372elif test "$with_gnu_ld" = yes; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7374$as_echo_n "checking for GNU ld... " >&6; }
7375else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7377$as_echo_n "checking for non-GNU ld... " >&6; }
7378fi
cristyda16f162011-02-19 23:52:17 +00007379if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007380 $as_echo_n "(cached) " >&6
7381else
7382 if test -z "$LD"; then
7383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7384 for ac_dir in $PATH; do
7385 IFS="$lt_save_ifs"
7386 test -z "$ac_dir" && ac_dir=.
7387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7388 lt_cv_path_LD="$ac_dir/$ac_prog"
7389 # Check to see if the program is GNU ld. I'd rather use --version,
7390 # but apparently some variants of GNU ld only accept -v.
7391 # Break only if it was the GNU/non-GNU ld that we prefer.
7392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7393 *GNU* | *'with BFD'*)
7394 test "$with_gnu_ld" != no && break
7395 ;;
7396 *)
7397 test "$with_gnu_ld" != yes && break
7398 ;;
7399 esac
7400 fi
7401 done
7402 IFS="$lt_save_ifs"
7403else
7404 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7405fi
7406fi
7407
7408LD="$lt_cv_path_LD"
7409if test -n "$LD"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7411$as_echo "$LD" >&6; }
7412else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414$as_echo "no" >&6; }
7415fi
cristy98dddb52010-11-04 00:30:15 +00007416test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7418$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007419if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007420 $as_echo_n "(cached) " >&6
7421else
7422 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7423case `$LD -v 2>&1 </dev/null` in
7424*GNU* | *'with BFD'*)
7425 lt_cv_prog_gnu_ld=yes
7426 ;;
7427*)
7428 lt_cv_prog_gnu_ld=no
7429 ;;
7430esac
7431fi
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7433$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7434with_gnu_ld=$lt_cv_prog_gnu_ld
7435
7436
7437
7438
7439
7440
7441
7442
7443
cristy3ed852e2009-09-05 21:47:34 +00007444
cristy837d6dc2010-02-27 01:16:57 +00007445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7446$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007447if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007448 $as_echo_n "(cached) " >&6
7449else
7450 ac_cv_prog_cc_c99=no
7451ac_save_CC=$CC
7452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h. */
7454#include <stdarg.h>
7455#include <stdbool.h>
7456#include <stdlib.h>
7457#include <wchar.h>
7458#include <stdio.h>
7459
7460// Check varargs macros. These examples are taken from C99 6.10.3.5.
7461#define debug(...) fprintf (stderr, __VA_ARGS__)
7462#define showlist(...) puts (#__VA_ARGS__)
7463#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7464static void
7465test_varargs_macros (void)
7466{
7467 int x = 1234;
7468 int y = 5678;
7469 debug ("Flag");
7470 debug ("X = %d\n", x);
7471 showlist (The first, second, and third items.);
7472 report (x>y, "x is %d but y is %d", x, y);
7473}
7474
7475// Check long long types.
7476#define BIG64 18446744073709551615ull
7477#define BIG32 4294967295ul
7478#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7479#if !BIG_OK
7480 your preprocessor is broken;
7481#endif
7482#if BIG_OK
7483#else
7484 your preprocessor is broken;
7485#endif
7486static long long int bignum = -9223372036854775807LL;
7487static unsigned long long int ubignum = BIG64;
7488
7489struct incomplete_array
7490{
7491 int datasize;
7492 double data[];
7493};
7494
7495struct named_init {
7496 int number;
7497 const wchar_t *name;
7498 double average;
7499};
7500
7501typedef const char *ccp;
7502
7503static inline int
7504test_restrict (ccp restrict text)
7505{
7506 // See if C++-style comments work.
7507 // Iterate through items via the restricted pointer.
7508 // Also check for declarations in for loops.
7509 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7510 continue;
7511 return 0;
7512}
7513
7514// Check varargs and va_copy.
7515static void
7516test_varargs (const char *format, ...)
7517{
7518 va_list args;
7519 va_start (args, format);
7520 va_list args_copy;
7521 va_copy (args_copy, args);
7522
7523 const char *str;
7524 int number;
7525 float fnumber;
7526
7527 while (*format)
7528 {
7529 switch (*format++)
7530 {
7531 case 's': // string
7532 str = va_arg (args_copy, const char *);
7533 break;
7534 case 'd': // int
7535 number = va_arg (args_copy, int);
7536 break;
7537 case 'f': // float
7538 fnumber = va_arg (args_copy, double);
7539 break;
7540 default:
7541 break;
7542 }
7543 }
7544 va_end (args_copy);
7545 va_end (args);
7546}
7547
7548int
7549main ()
7550{
7551
7552 // Check bool.
7553 _Bool success = false;
7554
7555 // Check restrict.
7556 if (test_restrict ("String literal") == 0)
7557 success = true;
7558 char *restrict newvar = "Another string";
7559
7560 // Check varargs.
7561 test_varargs ("s, d' f .", "string", 65, 34.234);
7562 test_varargs_macros ();
7563
7564 // Check flexible array members.
7565 struct incomplete_array *ia =
7566 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7567 ia->datasize = 10;
7568 for (int i = 0; i < ia->datasize; ++i)
7569 ia->data[i] = i * 1.234;
7570
7571 // Check named initializers.
7572 struct named_init ni = {
7573 .number = 34,
7574 .name = L"Test wide string",
7575 .average = 543.34343,
7576 };
7577
7578 ni.number = 58;
7579
7580 int dynamic_array[ni.number];
7581 dynamic_array[ni.number - 1] = 543;
7582
7583 // work around unused variable warnings
7584 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7585 || dynamic_array[ni.number - 1] != 543);
7586
7587 ;
7588 return 0;
7589}
7590_ACEOF
7591for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7592do
7593 CC="$ac_save_CC $ac_arg"
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595 ac_cv_prog_cc_c99=$ac_arg
7596fi
7597rm -f core conftest.err conftest.$ac_objext
7598 test "x$ac_cv_prog_cc_c99" != "xno" && break
7599done
7600rm -f conftest.$ac_ext
7601CC=$ac_save_CC
7602
7603fi
7604# AC_CACHE_VAL
7605case "x$ac_cv_prog_cc_c99" in
7606 x)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7608$as_echo "none needed" >&6; } ;;
7609 xno)
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7611$as_echo "unsupported" >&6; } ;;
7612 *)
7613 CC="$CC $ac_cv_prog_cc_c99"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7615$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7616esac
7617if test "x$ac_cv_prog_cc_c99" != xno; then :
7618
7619fi
7620
7621
cristy73bd4a52010-10-05 11:24:23 +00007622if test "x$CC" != xcc; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7624$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7625else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7627$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7628fi
7629set dummy $CC; ac_cc=`$as_echo "$2" |
7630 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007631if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007632 $as_echo_n "(cached) " >&6
7633else
cristy73bd4a52010-10-05 11:24:23 +00007634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h. */
7636
7637int
7638main ()
7639{
7640
7641 ;
7642 return 0;
7643}
7644_ACEOF
7645# Make sure it works both with $CC and with simple cc.
7646# We do the test twice because some compilers refuse to overwrite an
7647# existing .o file with -o, though they will create one.
7648ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7649rm -f conftest2.*
7650if { { case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653esac
7654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7655$as_echo "$ac_try_echo"; } >&5
7656 (eval "$ac_try") 2>&5
7657 ac_status=$?
7658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659 test $ac_status = 0; } &&
7660 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663esac
7664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7665$as_echo "$ac_try_echo"; } >&5
7666 (eval "$ac_try") 2>&5
7667 ac_status=$?
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; };
7670then
7671 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7672 if test "x$CC" != xcc; then
7673 # Test first that cc exists at all.
7674 if { ac_try='cc -c conftest.$ac_ext >&5'
7675 { { case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678esac
7679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7680$as_echo "$ac_try_echo"; } >&5
7681 (eval "$ac_try") 2>&5
7682 ac_status=$?
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; }; then
7685 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7686 rm -f conftest2.*
7687 if { { case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7692$as_echo "$ac_try_echo"; } >&5
7693 (eval "$ac_try") 2>&5
7694 ac_status=$?
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; } &&
7697 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700esac
7701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7702$as_echo "$ac_try_echo"; } >&5
7703 (eval "$ac_try") 2>&5
7704 ac_status=$?
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; };
7707 then
7708 # cc works too.
7709 :
7710 else
7711 # cc exists but doesn't like -o.
7712 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7713 fi
7714 fi
7715 fi
7716else
7717 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7718fi
7719rm -f core conftest*
7720
7721fi
7722if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7724$as_echo "yes" >&6; }
7725else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728
7729$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7730
7731fi
7732
7733# FIXME: we rely on the cache variable name because
7734# there is no other way.
7735set dummy $CC
7736am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7737eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7738if test "$am_t" != yes; then
7739 # Losing compiler, so override with the script.
7740 # FIXME: It is wrong to rewrite CC.
7741 # But if we don't then we get into trouble of one sort or another.
7742 # A longer-term fix would be to have automake use am__CC in this case,
7743 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7744 CC="$am_aux_dir/compile $CC"
7745fi
7746
7747
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7749$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007750if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007751 $as_echo_n "(cached) " >&6
7752else
7753 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007754 ac_ext=c
7755ac_cpp='$CPP $CPPFLAGS'
7756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759
7760 ac_save_CFLAGS="$CFLAGS"
7761for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7762do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h. */
7765
7766int
7767main ()
7768{
cristy24fc1fe2010-10-23 21:13:01 +00007769
cristy73bd4a52010-10-05 11:24:23 +00007770 ;
7771 return 0;
7772}
7773_ACEOF
7774if ac_fn_c_try_compile "$LINENO"; then :
7775 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7776fi
7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778done
7779 CFLAGS="$ac_save_CFLAGS"
7780 ac_ext=c
7781ac_cpp='$CPP $CPPFLAGS'
7782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785
7786
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7789$as_echo "$ac_cv_cflags_warn_all" >&6; }
7790case ".$ac_cv_cflags_warn_all" in
7791 .ok|.ok,*) ;;
7792 .|.no|.no,*)
7793 ;;
7794 *)
7795 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7796 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7797 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7798 ac_status=$?
7799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; }
7801 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7802 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7803 ac_status=$?
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }
7806 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7807 fi
7808 ;;
nicolas6237c462010-10-05 06:11:49 +00007809esac
cristy3ed852e2009-09-05 21:47:34 +00007810
cristya0b81c32010-01-22 02:54:33 +00007811
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7813$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7814set x ${MAKE-make}
7815ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007816if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007817 $as_echo_n "(cached) " >&6
7818else
7819 cat >conftest.make <<\_ACEOF
7820SHELL = /bin/sh
7821all:
7822 @echo '@@@%%%=$(MAKE)=@@@%%%'
7823_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007824# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007825case `${MAKE-make} -f conftest.make 2>/dev/null` in
7826 *@@@%%%=?*=@@@%%%*)
7827 eval ac_cv_prog_make_${ac_make}_set=yes;;
7828 *)
7829 eval ac_cv_prog_make_${ac_make}_set=no;;
7830esac
7831rm -f conftest.make
7832fi
7833if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7835$as_echo "yes" >&6; }
7836 SET_MAKE=
7837else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840 SET_MAKE="MAKE=${MAKE-make}"
7841fi
7842
cristy8b350f62009-11-15 23:12:43 +00007843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007844$as_echo_n "checking whether ln -s works... " >&6; }
7845LN_S=$as_ln_s
7846if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007848$as_echo "yes" >&6; }
7849else
cristy8b350f62009-11-15 23:12:43 +00007850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007851$as_echo "no, using $LN_S" >&6; }
7852fi
7853
cristy73bd4a52010-10-05 11:24:23 +00007854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7855$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7856
7857# Check whether --with-dmalloc was given.
7858if test "${with_dmalloc+set}" = set; then :
7859 withval=$with_dmalloc; if test "$withval" = yes; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861$as_echo "yes" >&6; }
7862
7863$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7864
7865 LIBS="$LIBS -ldmalloc"
7866 LDFLAGS="$LDFLAGS -g"
7867else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
7870fi
7871else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874fi
7875
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7879$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007880if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007881 $as_echo_n "(cached) " >&6
7882else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h. */
7885#include <stdlib.h>
7886 static void foo(void) __attribute__ ((unused));
7887 static void
7888 foo(void) {
7889 exit(1);
7890 }
7891
7892int
7893main ()
7894{
7895
7896 ;
7897 return 0;
7898}
7899_ACEOF
7900if ac_fn_c_try_compile "$LINENO"; then :
7901 ax_cv___attribute__=yes
7902else
7903 ax_cv___attribute__=no
7904
7905fi
7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907
7908fi
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7910$as_echo "$ax_cv___attribute__" >&6; }
7911 if test "$ax_cv___attribute__" = "yes"; then
7912
7913$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7914
7915 fi
7916
7917
7918
7919if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7922set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007925if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007926 $as_echo_n "(cached) " >&6
7927else
7928 case $PKG_CONFIG in
7929 [\\/]* | ?:[\\/]*)
7930 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7931 ;;
7932 *)
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944done
7945 done
7946IFS=$as_save_IFS
7947
7948 ;;
7949esac
7950fi
7951PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7952if test -n "$PKG_CONFIG"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7954$as_echo "$PKG_CONFIG" >&6; }
7955else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
7958fi
7959
7960
7961fi
7962if test -z "$ac_cv_path_PKG_CONFIG"; then
7963 ac_pt_PKG_CONFIG=$PKG_CONFIG
7964 # Extract the first word of "pkg-config", so it can be a program name with args.
7965set dummy pkg-config; ac_word=$2
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007968if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007969 $as_echo_n "(cached) " >&6
7970else
7971 case $ac_pt_PKG_CONFIG in
7972 [\\/]* | ?:[\\/]*)
7973 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7974 ;;
7975 *)
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987done
7988 done
7989IFS=$as_save_IFS
7990
7991 ;;
7992esac
7993fi
7994ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7995if test -n "$ac_pt_PKG_CONFIG"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7997$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7998else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
8001fi
8002
8003 if test "x$ac_pt_PKG_CONFIG" = x; then
8004 PKG_CONFIG=""
8005 else
8006 case $cross_compiling:$ac_tool_warned in
8007yes:)
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010ac_tool_warned=yes ;;
8011esac
8012 PKG_CONFIG=$ac_pt_PKG_CONFIG
8013 fi
8014else
8015 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8016fi
8017
8018fi
8019if test -n "$PKG_CONFIG"; then
8020 _pkg_min_version=0.9.0
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8022$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8023 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8025$as_echo "yes" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
8029 PKG_CONFIG=""
8030 fi
8031
8032fi
cristy3ed852e2009-09-05 21:47:34 +00008033
8034#
cristy3ed852e2009-09-05 21:47:34 +00008035# Enable run-time checking.
8036#
8037# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008038if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008039 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8040else
8041 enable_bounds_checking='no'
8042fi
8043
8044
8045if test "$enable_bounds_checking" = yes; then
8046
cristy8b350f62009-11-15 23:12:43 +00008047$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008048
8049fi
8050
8051#
8052# Tests for Windows
8053#
8054
8055
cristy73bd4a52010-10-05 11:24:23 +00008056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8057$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008058if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008059 $as_echo_n "(cached) " >&6
8060else
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062/* end confdefs.h. */
8063
8064int
8065main ()
8066{
8067#ifndef _MSC_VER
8068 choke me
8069#endif
8070
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075if ac_fn_c_try_compile "$LINENO"; then :
8076 ax_compiler_ms=yes
8077else
8078 ax_compiler_ms=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081ax_cv_c_compiler_ms=$ax_compiler_ms
8082
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8085$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008086
8087GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008088native_win32_build='no'
8089cygwin_build='no'
8090case "${host_os}" in
8091 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008092 cygwin_build='yes'
8093 GDI32_LIBS='-lgdi32'
8094 ;;
8095 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008096 native_win32_build='yes'
8097 GDI32_LIBS='-lgdi32'
8098 ;;
8099esac
8100if test "${GDI32_LIBS}x" != 'x'; then
8101
cristy8b350f62009-11-15 23:12:43 +00008102$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008103
8104fi
8105
cristy73bd4a52010-10-05 11:24:23 +00008106 if test "${GDI32_LIBS}x" != 'x' ; then
8107 WINGDI32_DELEGATE_TRUE=
8108 WINGDI32_DELEGATE_FALSE='#'
8109else
8110 WINGDI32_DELEGATE_TRUE='#'
8111 WINGDI32_DELEGATE_FALSE=
8112fi
8113
8114 if test "${native_win32_build}" = 'yes' ; then
8115 WIN32_NATIVE_BUILD_TRUE=
8116 WIN32_NATIVE_BUILD_FALSE='#'
8117else
8118 WIN32_NATIVE_BUILD_TRUE='#'
8119 WIN32_NATIVE_BUILD_FALSE=
8120fi
8121
8122 if test "${cygwin_build}" = 'yes' ; then
8123 CYGWIN_BUILD_TRUE=
8124 CYGWIN_BUILD_FALSE='#'
8125else
8126 CYGWIN_BUILD_TRUE='#'
8127 CYGWIN_BUILD_FALSE=
8128fi
8129
8130 if test "x${CC}" = 'xcl.exe' ; then
8131 USING_CL_TRUE=
8132 USING_CL_FALSE='#'
8133else
8134 USING_CL_TRUE='#'
8135 USING_CL_FALSE=
8136fi
8137
cristy3ed852e2009-09-05 21:47:34 +00008138
8139WinPathScript="${srcdirfull}/winpath.sh"
8140
8141
8142#
8143# Compiler flags tweaks
8144#
8145if test "${GCC}" != "yes"; then
8146 case "${host}" in
8147 *-*-hpux* )
8148 # aCC: HP ANSI C++ B3910B A.03.34
8149 CFLAGS="${CFLAGS} -Wp,-H30000"
8150 if test -n "${CXXFLAGS}"; then
8151 CXXFLAGS='-AA'
8152 else
8153 CXXFLAGS="${CXXFLAGS} -AA"
8154 fi
8155 ;;
8156 *-dec-osf5.* )
8157 # Compaq alphaev68-dec-osf5.1 compiler
8158 if test -n "${CXXFLAGS}"; then
8159 CXXFLAGS='-std strict_ansi -noimplicit_include'
8160 else
8161 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8162 fi
8163 esac
8164fi
8165
8166# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008168$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008169if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008170 $as_echo_n "(cached) " >&6
8171else
8172
8173im_cv_ld_lazyload='none'
8174case "${host}" in
8175 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8176 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8177 im_cv_ld_lazyload='-Wl,-zlazyload'
8178 fi
8179 ;;
8180esac
8181
8182fi
cristy8b350f62009-11-15 23:12:43 +00008183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008184$as_echo "$im_cv_ld_lazyload" >&6; }
8185if test "${im_cv_ld_lazyload}" != 'none' ; then
8186 if test -z "${LDFLAGS}" ; then
8187 LDFLAGS="${im_cv_ld_lazyload}"
8188 else
8189 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8190 fi
8191fi
8192
8193case "$host" in
8194*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008195 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008196if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008197 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8198else
8199 build_osxuniversal=no
8200fi
8201
8202
8203 if test "${build_osxuniversal}" != no ; then
8204 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008205 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008206Please re-run configure with these options:
8207 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008208 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008209 fi
8210 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8211 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8212 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8213 fi
8214 ;;
8215esac
8216
8217# Enable support for threads
8218
8219# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008220if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008221 withval=$with_threads; with_threads=$withval
8222else
8223 with_threads='yes'
8224fi
8225
8226
8227have_threads=no
8228if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008229
8230
8231
8232ac_ext=c
8233ac_cpp='$CPP $CPPFLAGS'
8234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237
8238ax_pthread_ok=no
8239
8240# We used to check for pthread.h first, but this fails if pthread.h
8241# requires special compiler flags (e.g. on True64 or Sequent).
8242# It gets checked for in the link test anyway.
8243
8244# First of all, check if the user has set any of the PTHREAD_LIBS,
8245# etcetera environment variables, and if threads linking works using
8246# them:
8247if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8248 save_CFLAGS="$CFLAGS"
8249 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8250 save_LIBS="$LIBS"
8251 LIBS="$PTHREAD_LIBS $LIBS"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8253$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255/* end confdefs.h. */
8256
8257/* Override any GCC internal prototype to avoid an error.
8258 Use char because int might match the return type of a GCC
8259 builtin and then its argument prototype would still apply. */
8260#ifdef __cplusplus
8261extern "C"
8262#endif
8263char pthread_join ();
8264int
8265main ()
8266{
8267return pthread_join ();
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_link "$LINENO"; then :
8273 ax_pthread_ok=yes
8274fi
8275rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8278$as_echo "$ax_pthread_ok" >&6; }
8279 if test x"$ax_pthread_ok" = xno; then
8280 PTHREAD_LIBS=""
8281 PTHREAD_CFLAGS=""
8282 fi
8283 LIBS="$save_LIBS"
8284 CFLAGS="$save_CFLAGS"
8285fi
8286
8287# We must check for the threads library under a number of different
8288# names; the ordering is very important because some systems
8289# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8290# libraries is broken (non-POSIX).
8291
8292# Create a list of thread flags to try. Items starting with a "-" are
8293# C compiler flags, and other items are library names, except for "none"
8294# which indicates that we try without any flags at all, and "pthread-config"
8295# which is a program returning the flags for the Pth emulation library.
8296
8297ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8298
8299# The ordering *is* (sometimes) important. Some notes on the
8300# individual items follow:
8301
8302# pthreads: AIX (must check this before -lpthread)
8303# none: in case threads are in libc; should be tried before -Kthread and
8304# other compiler flags to prevent continual compiler warnings
8305# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8306# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8307# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8308# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8309# -pthreads: Solaris/gcc
8310# -mthreads: Mingw32/gcc, Lynx/gcc
8311# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8312# doesn't hurt to check since this sometimes defines pthreads too;
8313# also defines -D_REENTRANT)
8314# ... -mt is also the pthreads flag for HP/aCC
8315# pthread: Linux, etcetera
8316# --thread-safe: KAI C++
8317# pthread-config: use pthread-config program (for GNU Pth library)
8318
8319case "${host_cpu}-${host_os}" in
8320 *solaris*)
8321
8322 # On Solaris (at least, for some versions), libc contains stubbed
8323 # (non-functional) versions of the pthreads routines, so link-based
8324 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8325 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8326 # a function called by this macro, so we could check for that, but
8327 # who knows whether they'll stub that too in a future libc.) So,
8328 # we'll just look for -pthreads and -lpthread first:
8329
8330 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8331 ;;
8332
8333 *-darwin*)
8334 ax_pthread_flags="-pthread $ax_pthread_flags"
8335 ;;
8336esac
8337
8338if test x"$ax_pthread_ok" = xno; then
8339for flag in $ax_pthread_flags; do
8340
8341 case $flag in
8342 none)
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8344$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8345 ;;
8346
8347 -*)
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8349$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8350 PTHREAD_CFLAGS="$flag"
8351 ;;
8352
8353 pthread-config)
8354 # Extract the first word of "pthread-config", so it can be a program name with args.
8355set dummy pthread-config; ac_word=$2
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008358if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008359 $as_echo_n "(cached) " >&6
8360else
8361 if test -n "$ax_pthread_config"; then
8362 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_ax_pthread_config="yes"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375done
8376 done
8377IFS=$as_save_IFS
8378
8379 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8380fi
8381fi
8382ax_pthread_config=$ac_cv_prog_ax_pthread_config
8383if test -n "$ax_pthread_config"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8385$as_echo "$ax_pthread_config" >&6; }
8386else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391
8392 if test x"$ax_pthread_config" = xno; then continue; fi
8393 PTHREAD_CFLAGS="`pthread-config --cflags`"
8394 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8395 ;;
8396
8397 *)
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8399$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8400 PTHREAD_LIBS="-l$flag"
8401 ;;
8402 esac
8403
8404 save_LIBS="$LIBS"
8405 save_CFLAGS="$CFLAGS"
8406 LIBS="$PTHREAD_LIBS $LIBS"
8407 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8408
8409 # Check for various functions. We must include pthread.h,
8410 # since some functions may be macros. (On the Sequent, we
8411 # need a special flag -Kthread to make this header compile.)
8412 # We check for pthread_join because it is in -lpthread on IRIX
8413 # while pthread_create is in libc. We check for pthread_attr_init
8414 # due to DEC craziness with -lpthreads. We check for
8415 # pthread_cleanup_push because it is one of the few pthread
8416 # functions on Solaris that doesn't have a non-functional libc stub.
8417 # We try pthread_create on general principles.
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419/* end confdefs.h. */
8420#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008421 static void routine(void* a) {a=0;}
8422 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008423int
8424main ()
8425{
8426pthread_t th; pthread_attr_t attr;
8427 pthread_create(&th,0,start_routine,0);
8428 pthread_join(th, 0);
8429 pthread_attr_init(&attr);
8430 pthread_cleanup_push(routine, 0);
8431 pthread_cleanup_pop(0);
8432 ;
8433 return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_link "$LINENO"; then :
8437 ax_pthread_ok=yes
8438fi
8439rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441
8442 LIBS="$save_LIBS"
8443 CFLAGS="$save_CFLAGS"
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8446$as_echo "$ax_pthread_ok" >&6; }
8447 if test "x$ax_pthread_ok" = xyes; then
8448 break;
8449 fi
8450
8451 PTHREAD_LIBS=""
8452 PTHREAD_CFLAGS=""
8453done
8454fi
8455
8456# Various other checks:
8457if test "x$ax_pthread_ok" = xyes; then
8458 save_LIBS="$LIBS"
8459 LIBS="$PTHREAD_LIBS $LIBS"
8460 save_CFLAGS="$CFLAGS"
8461 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8462
8463 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8465$as_echo_n "checking for joinable pthread attribute... " >&6; }
8466 attr_name=unknown
8467 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469/* end confdefs.h. */
8470#include <pthread.h>
8471int
8472main ()
8473{
8474int attr=$attr; return attr;
8475 ;
8476 return 0;
8477}
8478_ACEOF
8479if ac_fn_c_try_link "$LINENO"; then :
8480 attr_name=$attr; break
8481fi
8482rm -f core conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 done
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8486$as_echo "$attr_name" >&6; }
8487 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8488
8489cat >>confdefs.h <<_ACEOF
8490#define PTHREAD_CREATE_JOINABLE $attr_name
8491_ACEOF
8492
8493 fi
8494
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8496$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8497 flag=no
8498 case "${host_cpu}-${host_os}" in
8499 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8500 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8501 esac
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8503$as_echo "${flag}" >&6; }
8504 if test "x$flag" != xno; then
8505 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8506 fi
8507
8508 LIBS="$save_LIBS"
8509 CFLAGS="$save_CFLAGS"
8510
8511 # More AIX lossage: must compile with xlc_r or cc_r
8512 if test x"$GCC" != xyes; then
8513 for ac_prog in xlc_r cc_r
8514do
8515 # Extract the first word of "$ac_prog", so it can be a program name with args.
8516set dummy $ac_prog; ac_word=$2
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008519if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008520 $as_echo_n "(cached) " >&6
8521else
8522 if test -n "$PTHREAD_CC"; then
8523 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8524else
8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532 ac_cv_prog_PTHREAD_CC="$ac_prog"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536done
8537 done
8538IFS=$as_save_IFS
8539
8540fi
8541fi
8542PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8543if test -n "$PTHREAD_CC"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8545$as_echo "$PTHREAD_CC" >&6; }
8546else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548$as_echo "no" >&6; }
8549fi
8550
8551
8552 test -n "$PTHREAD_CC" && break
8553done
8554test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8555
8556 else
8557 PTHREAD_CC=$CC
8558 fi
8559else
8560 PTHREAD_CC="$CC"
8561fi
8562
8563
8564
8565
8566
8567# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8568if test x"$ax_pthread_ok" = xyes; then
8569
8570$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8571
8572 :
8573else
8574 ax_pthread_ok=no
8575
8576fi
8577ac_ext=c
8578ac_cpp='$CPP $CPPFLAGS'
8579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8581ac_compiler_gnu=$ac_cv_c_compiler_gnu
8582
8583
cristy7acf8fb2010-09-23 19:58:53 +00008584 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008585 have_threads=yes
8586 DEF_THREAD="$PTHREAD_CFLAGS"
8587 CFLAGS="$CFLAGS $DEF_THREAD"
8588 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8589 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00008591$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8592 CC="$PTHREAD_CC"
8593 fi
cristy55bf91c2010-09-24 00:29:41 +00008594
8595$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8596
cristy3ed852e2009-09-05 21:47:34 +00008597 fi
8598fi
8599
8600# Enable support for OpenMP
8601if test "$have_threads" != 'yes'; then
8602 ac_cv_prog_c_openmp=unsupported
8603fi
8604
8605 OPENMP_CFLAGS=
8606 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008607if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008608 enableval=$enable_openmp;
8609fi
8610
8611 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008613$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008614if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008615 $as_echo_n "(cached) " >&6
8616else
cristy8b350f62009-11-15 23:12:43 +00008617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008619
8620#ifndef _OPENMP
8621 choke me
8622#endif
8623#include <omp.h>
8624int main () { return omp_get_num_threads (); }
8625
8626_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008628 ac_cv_prog_c_openmp='none needed'
8629else
cristy8b350f62009-11-15 23:12:43 +00008630 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008631 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8632 ac_save_CFLAGS=$CFLAGS
8633 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008636
8637#ifndef _OPENMP
8638 choke me
8639#endif
8640#include <omp.h>
8641int main () { return omp_get_num_threads (); }
8642
8643_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008645 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008646fi
cristy8b350f62009-11-15 23:12:43 +00008647rm -f core conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008649 CFLAGS=$ac_save_CFLAGS
8650 if test "$ac_cv_prog_c_openmp" != unsupported; then
8651 break
8652 fi
8653 done
8654fi
cristy8b350f62009-11-15 23:12:43 +00008655rm -f core conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008657fi
cristy8b350f62009-11-15 23:12:43 +00008658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008659$as_echo "$ac_cv_prog_c_openmp" >&6; }
8660 case $ac_cv_prog_c_openmp in #(
8661 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008662 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008663 *)
cristy8b350f62009-11-15 23:12:43 +00008664 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008665 esac
8666 fi
8667
8668
8669CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8670MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8671
cristy391f1ce2010-09-09 17:23:28 +00008672if test "$enable_openmp" != no; then
8673 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8674 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8675 fi
8676fi
cristy3ed852e2009-09-05 21:47:34 +00008677
cristy736173a2009-09-20 21:18:22 +00008678# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008679
8680
8681
8682ac_ext=c
8683ac_cpp='$CPP $CPPFLAGS'
8684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687
8688ax_pthread_ok=no
8689
8690# We used to check for pthread.h first, but this fails if pthread.h
8691# requires special compiler flags (e.g. on True64 or Sequent).
8692# It gets checked for in the link test anyway.
8693
8694# First of all, check if the user has set any of the PTHREAD_LIBS,
8695# etcetera environment variables, and if threads linking works using
8696# them:
8697if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8698 save_CFLAGS="$CFLAGS"
8699 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8700 save_LIBS="$LIBS"
8701 LIBS="$PTHREAD_LIBS $LIBS"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8703$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h. */
8706
8707/* Override any GCC internal prototype to avoid an error.
8708 Use char because int might match the return type of a GCC
8709 builtin and then its argument prototype would still apply. */
8710#ifdef __cplusplus
8711extern "C"
8712#endif
8713char pthread_join ();
8714int
8715main ()
8716{
8717return pthread_join ();
8718 ;
8719 return 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_link "$LINENO"; then :
8723 ax_pthread_ok=yes
8724fi
8725rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8728$as_echo "$ax_pthread_ok" >&6; }
8729 if test x"$ax_pthread_ok" = xno; then
8730 PTHREAD_LIBS=""
8731 PTHREAD_CFLAGS=""
8732 fi
8733 LIBS="$save_LIBS"
8734 CFLAGS="$save_CFLAGS"
8735fi
8736
8737# We must check for the threads library under a number of different
8738# names; the ordering is very important because some systems
8739# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8740# libraries is broken (non-POSIX).
8741
8742# Create a list of thread flags to try. Items starting with a "-" are
8743# C compiler flags, and other items are library names, except for "none"
8744# which indicates that we try without any flags at all, and "pthread-config"
8745# which is a program returning the flags for the Pth emulation library.
8746
8747ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8748
8749# The ordering *is* (sometimes) important. Some notes on the
8750# individual items follow:
8751
8752# pthreads: AIX (must check this before -lpthread)
8753# none: in case threads are in libc; should be tried before -Kthread and
8754# other compiler flags to prevent continual compiler warnings
8755# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8756# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8757# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8758# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8759# -pthreads: Solaris/gcc
8760# -mthreads: Mingw32/gcc, Lynx/gcc
8761# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8762# doesn't hurt to check since this sometimes defines pthreads too;
8763# also defines -D_REENTRANT)
8764# ... -mt is also the pthreads flag for HP/aCC
8765# pthread: Linux, etcetera
8766# --thread-safe: KAI C++
8767# pthread-config: use pthread-config program (for GNU Pth library)
8768
8769case "${host_cpu}-${host_os}" in
8770 *solaris*)
8771
8772 # On Solaris (at least, for some versions), libc contains stubbed
8773 # (non-functional) versions of the pthreads routines, so link-based
8774 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8775 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8776 # a function called by this macro, so we could check for that, but
8777 # who knows whether they'll stub that too in a future libc.) So,
8778 # we'll just look for -pthreads and -lpthread first:
8779
8780 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8781 ;;
8782
8783 *-darwin*)
8784 ax_pthread_flags="-pthread $ax_pthread_flags"
8785 ;;
8786esac
8787
8788if test x"$ax_pthread_ok" = xno; then
8789for flag in $ax_pthread_flags; do
8790
8791 case $flag in
8792 none)
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8794$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8795 ;;
8796
8797 -*)
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8799$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8800 PTHREAD_CFLAGS="$flag"
8801 ;;
8802
8803 pthread-config)
8804 # Extract the first word of "pthread-config", so it can be a program name with args.
8805set dummy pthread-config; ac_word=$2
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008808if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008809 $as_echo_n "(cached) " >&6
8810else
8811 if test -n "$ax_pthread_config"; then
8812 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8813else
8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_prog_ax_pthread_config="yes"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8824 fi
8825done
8826 done
8827IFS=$as_save_IFS
8828
8829 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8830fi
8831fi
8832ax_pthread_config=$ac_cv_prog_ax_pthread_config
8833if test -n "$ax_pthread_config"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8835$as_echo "$ax_pthread_config" >&6; }
8836else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838$as_echo "no" >&6; }
8839fi
8840
8841
8842 if test x"$ax_pthread_config" = xno; then continue; fi
8843 PTHREAD_CFLAGS="`pthread-config --cflags`"
8844 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8845 ;;
8846
8847 *)
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8849$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8850 PTHREAD_LIBS="-l$flag"
8851 ;;
8852 esac
8853
8854 save_LIBS="$LIBS"
8855 save_CFLAGS="$CFLAGS"
8856 LIBS="$PTHREAD_LIBS $LIBS"
8857 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8858
8859 # Check for various functions. We must include pthread.h,
8860 # since some functions may be macros. (On the Sequent, we
8861 # need a special flag -Kthread to make this header compile.)
8862 # We check for pthread_join because it is in -lpthread on IRIX
8863 # while pthread_create is in libc. We check for pthread_attr_init
8864 # due to DEC craziness with -lpthreads. We check for
8865 # pthread_cleanup_push because it is one of the few pthread
8866 # functions on Solaris that doesn't have a non-functional libc stub.
8867 # We try pthread_create on general principles.
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h. */
8870#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008871 static void routine(void* a) {a=0;}
8872 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008873int
8874main ()
8875{
8876pthread_t th; pthread_attr_t attr;
8877 pthread_create(&th,0,start_routine,0);
8878 pthread_join(th, 0);
8879 pthread_attr_init(&attr);
8880 pthread_cleanup_push(routine, 0);
8881 pthread_cleanup_pop(0);
8882 ;
8883 return 0;
8884}
8885_ACEOF
8886if ac_fn_c_try_link "$LINENO"; then :
8887 ax_pthread_ok=yes
8888fi
8889rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891
8892 LIBS="$save_LIBS"
8893 CFLAGS="$save_CFLAGS"
8894
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8896$as_echo "$ax_pthread_ok" >&6; }
8897 if test "x$ax_pthread_ok" = xyes; then
8898 break;
8899 fi
8900
8901 PTHREAD_LIBS=""
8902 PTHREAD_CFLAGS=""
8903done
8904fi
8905
8906# Various other checks:
8907if test "x$ax_pthread_ok" = xyes; then
8908 save_LIBS="$LIBS"
8909 LIBS="$PTHREAD_LIBS $LIBS"
8910 save_CFLAGS="$CFLAGS"
8911 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8912
8913 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8915$as_echo_n "checking for joinable pthread attribute... " >&6; }
8916 attr_name=unknown
8917 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h. */
8920#include <pthread.h>
8921int
8922main ()
8923{
8924int attr=$attr; return attr;
8925 ;
8926 return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"; then :
8930 attr_name=$attr; break
8931fi
8932rm -f core conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8934 done
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8936$as_echo "$attr_name" >&6; }
8937 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8938
8939cat >>confdefs.h <<_ACEOF
8940#define PTHREAD_CREATE_JOINABLE $attr_name
8941_ACEOF
8942
8943 fi
8944
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8946$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8947 flag=no
8948 case "${host_cpu}-${host_os}" in
8949 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8950 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8951 esac
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8953$as_echo "${flag}" >&6; }
8954 if test "x$flag" != xno; then
8955 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8956 fi
8957
8958 LIBS="$save_LIBS"
8959 CFLAGS="$save_CFLAGS"
8960
8961 # More AIX lossage: must compile with xlc_r or cc_r
8962 if test x"$GCC" != xyes; then
8963 for ac_prog in xlc_r cc_r
8964do
8965 # Extract the first word of "$ac_prog", so it can be a program name with args.
8966set dummy $ac_prog; ac_word=$2
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008969if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008970 $as_echo_n "(cached) " >&6
8971else
8972 if test -n "$PTHREAD_CC"; then
8973 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8974else
8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $PATH
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982 ac_cv_prog_PTHREAD_CC="$ac_prog"
8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986done
8987 done
8988IFS=$as_save_IFS
8989
8990fi
8991fi
8992PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8993if test -n "$PTHREAD_CC"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8995$as_echo "$PTHREAD_CC" >&6; }
8996else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998$as_echo "no" >&6; }
8999fi
9000
9001
9002 test -n "$PTHREAD_CC" && break
9003done
9004test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9005
9006 else
9007 PTHREAD_CC=$CC
9008 fi
9009else
9010 PTHREAD_CC="$CC"
9011fi
9012
9013
9014
9015
9016
9017# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9018if test x"$ax_pthread_ok" = xyes; then
9019
9020$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9021
9022 :
9023else
9024 ax_pthread_ok=no
9025
9026fi
9027ac_ext=c
9028ac_cpp='$CPP $CPPFLAGS'
9029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033
9034
9035# Check whether --enable-opencl was given.
9036if test "${enable_opencl+set}" = set; then :
9037 enableval=$enable_opencl; disable_opencl=$enableval
9038else
9039 disable_opencl='yes'
9040fi
9041
9042
9043if test "$disable_opencl" = 'yes'; then
9044 ac_ext=c
9045ac_cpp='$CPP $CPPFLAGS'
9046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9048ac_compiler_gnu=$ac_cv_c_compiler_gnu
9049
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9051$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009052if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009053 $as_echo_n "(cached) " >&6
9054else
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h. */
9057
9058int
9059main ()
9060{
9061#ifndef _MSC_VER
9062 choke me
9063#endif
9064
9065 ;
9066 return 0;
9067}
9068_ACEOF
9069if ac_fn_c_try_compile "$LINENO"; then :
9070 ax_compiler_ms=yes
9071else
9072 ax_compiler_ms=no
9073fi
9074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075ax_cv_c_compiler_ms=$ax_compiler_ms
9076
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9079$as_echo "$ax_cv_c_compiler_ms" >&6; }
9080 if test X$ax_compiler_ms = Xno; then :
9081 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9082fi
9083
9084 ax_save_CPPFLAGS=$CPPFLAGS
9085 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9086 for ac_header in CL/cl.h OpenCL/cl.h
9087do :
9088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9089ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009091 cat >>confdefs.h <<_ACEOF
9092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9093_ACEOF
9094
9095fi
9096
9097done
9098
9099 CPPFLAGS=$ax_save_CPPFLAGS
9100
9101 for ac_header in windows.h
9102do :
9103 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009104if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009105 cat >>confdefs.h <<_ACEOF
9106#define HAVE_WINDOWS_H 1
9107_ACEOF
9108
9109fi
9110
9111done
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9117$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009118if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009119 $as_echo_n "(cached) " >&6
9120else
9121 ax_cv_check_cl_libcl=no
9122 case $host_cpu in
9123 x86_64) ax_check_cl_libdir=lib64 ;;
9124 *) ax_check_cl_libdir=lib ;;
9125 esac
9126 ax_save_CPPFLAGS=$CPPFLAGS
9127 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9128 ax_save_LIBS=$LIBS
9129 LIBS=""
9130 ax_check_libs="-lOpenCL -lCL -lclparser"
9131 for ax_lib in $ax_check_libs; do
9132 if test X$ax_compiler_ms = Xyes; then :
9133 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9134else
9135 ax_try_lib=$ax_lib
9136fi
9137 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h. */
9140
9141 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9142 # include <windows.h>
9143 # endif
9144 # ifdef HAVE_CL_CL_H
9145 # include <CL/cl.h>
9146 # elif defined(HAVE_OPENCL_CL_H)
9147 # include <OpenCL/cl.h>
9148 # else
9149 # error no CL.h
9150 # endif
9151int
9152main ()
9153{
9154clCreateContextFromType(0,0,0,0,0)
9155 ;
9156 return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_link "$LINENO"; then :
9160 ax_cv_check_cl_libcl=$ax_try_lib; break
9161else
9162 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164/* end confdefs.h. */
9165
9166 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9167 # include <windows.h>
9168 # endif
9169 # ifdef HAVE_CL_CL_H
9170 # include <CL/cl.h>
9171 # elif defined(HAVE_OPENCL_CL_H)
9172 # include <OpenCL/cl.h>
9173 # else
9174 # error no CL.h
9175 # endif
9176int
9177main ()
9178{
9179clCreateContextFromType(0,0,0,0,0)
9180 ;
9181 return 0;
9182}
9183_ACEOF
9184if ac_fn_c_try_link "$LINENO"; then :
9185 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9186else
cristy78c5a0c2010-12-04 20:00:59 +00009187 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy73bd4a52010-10-05 11:24:23 +00009188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h. */
9190
9191 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9192 # include <windows.h>
9193 # endif
9194 # ifdef HAVE_CL_CL_H
9195 # include <CL/cl.h>
9196 # elif defined(HAVE_OPENCL_CL_H)
9197 # include <OpenCL/cl.h>
9198 # else
9199 # error no CL.h
9200 # endif
9201int
9202main ()
9203{
9204clCreateContextFromType(0,0,0,0,0)
9205 ;
9206 return 0;
9207}
9208_ACEOF
9209if ac_fn_c_try_link "$LINENO"; then :
9210 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9211fi
9212rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214fi
9215rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217fi
9218rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 done
9221
9222 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009223 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h. */
9226
9227 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9228 # include <windows.h>
9229 # endif
9230 # ifdef HAVE_CL_CL_H
9231 # include <CL/cl.h>
9232 # elif defined(HAVE_OPENCL_CL_H)
9233 # include <OpenCL/cl.h>
9234 # else
9235 # error no CL.h
9236 # endif
9237int
9238main ()
9239{
9240clCreateContextFromType(0,0,0,0,0)
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245if ac_fn_c_try_link "$LINENO"; then :
9246 ax_cv_check_cl_libcl=$LIBS
9247fi
9248rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250fi
9251
9252 LIBS=$ax_save_LIBS
9253 CPPFLAGS=$ax_save_CPPFLAGS
9254fi
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9256$as_echo "$ax_cv_check_cl_libcl" >&6; }
9257
9258 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9259 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9260else
9261 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9262$as_echo "#define _OPENCL 1" >>confdefs.h
9263
9264fi
9265 ac_ext=c
9266ac_cpp='$CPP $CPPFLAGS'
9267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9269ac_compiler_gnu=$ac_cv_c_compiler_gnu
9270
9271fi
9272
9273
9274
9275
cristyc7083c12009-10-14 03:16:55 +00009276CFLAGS="$CL_CFLAGS $CFLAGS"
9277LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009278
cristy391f1ce2010-09-09 17:23:28 +00009279if test "$enable_opencl" != no; then
9280 if test "_OPENCL" = '1'; then
9281 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9282 fi
cristyfd9dcd42010-08-08 18:07:02 +00009283fi
cristy2e8b51d2009-10-17 18:26:15 +00009284
cristy3ed852e2009-09-05 21:47:34 +00009285########
9286#
9287# Check for large file support
9288#
9289########
9290# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009291if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009292 enableval=$enable_largefile;
9293fi
9294
9295if test "$enable_largefile" != no; then
9296
cristy8b350f62009-11-15 23:12:43 +00009297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009298$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009299if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009300 $as_echo_n "(cached) " >&6
9301else
9302 ac_cv_sys_largefile_CC=no
9303 if test "$GCC" != yes; then
9304 ac_save_CC=$CC
9305 while :; do
9306 # IRIX 6.2 and later do not support large files by default,
9307 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009309/* end confdefs.h. */
9310#include <sys/types.h>
9311 /* Check that off_t can represent 2**63 - 1 correctly.
9312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9313 since some C++ compilers masquerading as C compilers
9314 incorrectly reject 9223372036854775807. */
9315#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9317 && LARGE_OFF_T % 2147483647 == 1)
9318 ? 1 : -1];
9319int
9320main ()
9321{
9322
9323 ;
9324 return 0;
9325}
9326_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009327 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009328 break
cristy3ed852e2009-09-05 21:47:34 +00009329fi
cristy3ed852e2009-09-05 21:47:34 +00009330rm -f core conftest.err conftest.$ac_objext
9331 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009332 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009333 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009334fi
cristy3ed852e2009-09-05 21:47:34 +00009335rm -f core conftest.err conftest.$ac_objext
9336 break
9337 done
9338 CC=$ac_save_CC
9339 rm -f conftest.$ac_ext
9340 fi
9341fi
cristy8b350f62009-11-15 23:12:43 +00009342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009343$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9344 if test "$ac_cv_sys_largefile_CC" != no; then
9345 CC=$CC$ac_cv_sys_largefile_CC
9346 fi
9347
cristy8b350f62009-11-15 23:12:43 +00009348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009349$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009350if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009351 $as_echo_n "(cached) " >&6
9352else
9353 while :; do
cristy8b350f62009-11-15 23:12:43 +00009354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009355/* end confdefs.h. */
9356#include <sys/types.h>
9357 /* Check that off_t can represent 2**63 - 1 correctly.
9358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9359 since some C++ compilers masquerading as C compilers
9360 incorrectly reject 9223372036854775807. */
9361#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9363 && LARGE_OFF_T % 2147483647 == 1)
9364 ? 1 : -1];
9365int
9366main ()
9367{
9368
9369 ;
9370 return 0;
9371}
9372_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009373if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009374 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009375fi
cristy3ed852e2009-09-05 21:47:34 +00009376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009378/* end confdefs.h. */
9379#define _FILE_OFFSET_BITS 64
9380#include <sys/types.h>
9381 /* Check that off_t can represent 2**63 - 1 correctly.
9382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9383 since some C++ compilers masquerading as C compilers
9384 incorrectly reject 9223372036854775807. */
9385#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9387 && LARGE_OFF_T % 2147483647 == 1)
9388 ? 1 : -1];
9389int
9390main ()
9391{
9392
9393 ;
9394 return 0;
9395}
9396_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009397if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009398 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009399fi
cristy3ed852e2009-09-05 21:47:34 +00009400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 ac_cv_sys_file_offset_bits=unknown
9402 break
9403done
9404fi
cristy8b350f62009-11-15 23:12:43 +00009405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009406$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9407case $ac_cv_sys_file_offset_bits in #(
9408 no | unknown) ;;
9409 *)
9410cat >>confdefs.h <<_ACEOF
9411#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9412_ACEOF
9413;;
9414esac
9415rm -rf conftest*
9416 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009418$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009419if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009420 $as_echo_n "(cached) " >&6
9421else
9422 while :; do
cristy8b350f62009-11-15 23:12:43 +00009423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009424/* end confdefs.h. */
9425#include <sys/types.h>
9426 /* Check that off_t can represent 2**63 - 1 correctly.
9427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9428 since some C++ compilers masquerading as C compilers
9429 incorrectly reject 9223372036854775807. */
9430#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9432 && LARGE_OFF_T % 2147483647 == 1)
9433 ? 1 : -1];
9434int
9435main ()
9436{
9437
9438 ;
9439 return 0;
9440}
9441_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009442if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009443 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009444fi
cristy3ed852e2009-09-05 21:47:34 +00009445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009447/* end confdefs.h. */
9448#define _LARGE_FILES 1
9449#include <sys/types.h>
9450 /* Check that off_t can represent 2**63 - 1 correctly.
9451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9452 since some C++ compilers masquerading as C compilers
9453 incorrectly reject 9223372036854775807. */
9454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9456 && LARGE_OFF_T % 2147483647 == 1)
9457 ? 1 : -1];
9458int
9459main ()
9460{
9461
9462 ;
9463 return 0;
9464}
9465_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009467 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009468fi
cristy3ed852e2009-09-05 21:47:34 +00009469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 ac_cv_sys_large_files=unknown
9471 break
9472done
9473fi
cristy8b350f62009-11-15 23:12:43 +00009474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009475$as_echo "$ac_cv_sys_large_files" >&6; }
9476case $ac_cv_sys_large_files in #(
9477 no | unknown) ;;
9478 *)
9479cat >>confdefs.h <<_ACEOF
9480#define _LARGE_FILES $ac_cv_sys_large_files
9481_ACEOF
9482;;
9483esac
9484rm -rf conftest*
9485 fi
9486fi
9487
cristy8b350f62009-11-15 23:12:43 +00009488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009489$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009490if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009491 $as_echo_n "(cached) " >&6
9492else
9493 while :; do
cristy8b350f62009-11-15 23:12:43 +00009494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009495/* end confdefs.h. */
9496#include <sys/types.h> /* for off_t */
9497 #include <stdio.h>
9498int
9499main ()
9500{
9501int (*fp) (FILE *, off_t, int) = fseeko;
9502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9503 ;
9504 return 0;
9505}
9506_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009508 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009509fi
cristy8b350f62009-11-15 23:12:43 +00009510rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009513/* end confdefs.h. */
9514#define _LARGEFILE_SOURCE 1
9515#include <sys/types.h> /* for off_t */
9516 #include <stdio.h>
9517int
9518main ()
9519{
9520int (*fp) (FILE *, off_t, int) = fseeko;
9521 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9522 ;
9523 return 0;
9524}
9525_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009527 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009528fi
cristy8b350f62009-11-15 23:12:43 +00009529rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009531 ac_cv_sys_largefile_source=unknown
9532 break
9533done
9534fi
cristy8b350f62009-11-15 23:12:43 +00009535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009536$as_echo "$ac_cv_sys_largefile_source" >&6; }
9537case $ac_cv_sys_largefile_source in #(
9538 no | unknown) ;;
9539 *)
9540cat >>confdefs.h <<_ACEOF
9541#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9542_ACEOF
9543;;
9544esac
9545rm -rf conftest*
9546
9547# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9548# in glibc 2.1.3, but that breaks too many other things.
9549# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9550if test $ac_cv_sys_largefile_source != unknown; then
9551
cristy8b350f62009-11-15 23:12:43 +00009552$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009553
9554fi
9555
9556LFS_CPPFLAGS=''
9557if test "$enable_largefile" != no; then
9558 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9559 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9560 else
cristy8b350f62009-11-15 23:12:43 +00009561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009562$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009563 if test "$cross_compiling" = yes; then :
9564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009566as_fn_error $? "cannot run test program while cross compiling
9567See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009568else
cristy8b350f62009-11-15 23:12:43 +00009569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009571#include <unistd.h>
9572 main () {
9573 exit(!(sizeof(off_t) == 8));
9574 }
cristyda16f162011-02-19 23:52:17 +00009575int
9576main ()
9577{
9578
9579 ;
9580 return 0;
9581}
cristy3ed852e2009-09-05 21:47:34 +00009582_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009583if ac_fn_c_try_run "$LINENO"; then :
9584 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009585
cristy8b350f62009-11-15 23:12:43 +00009586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587$as_echo "yes" >&6; }
9588else
cristy8b350f62009-11-15 23:12:43 +00009589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009590$as_echo "no" >&6; }
9591fi
cristy8b350f62009-11-15 23:12:43 +00009592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9593 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009594fi
9595
cristy3ed852e2009-09-05 21:47:34 +00009596 fi
9597 if test "$ac_cv_sys_large_files" != 'no'; then
9598 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9599 fi
9600 if test "$ac_cv_sys_largefile_source" != 'no'; then
9601 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9602 fi
9603fi
9604
9605
9606#
9607# Configure libtool & libltdl
9608#
9609# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009610enable_dlopen=yes
9611
9612
9613
9614case `pwd` in
9615 *\ * | *\ *)
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9617$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9618esac
9619
9620
9621
cristyda16f162011-02-19 23:52:17 +00009622macro_version='2.4'
9623macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637ltmain="$ac_aux_dir/ltmain.sh"
9638
cristy0c60a692010-11-04 01:09:47 +00009639# Backslashify metacharacters that are still active within
9640# double-quoted strings.
9641sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9642
9643# Same as above, but do not quote variable references.
9644double_quote_subst='s/\(["`\\]\)/\\\1/g'
9645
9646# Sed substitution to delay expansion of an escaped shell variable in a
9647# double_quote_subst'ed string.
9648delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9649
9650# Sed substitution to delay expansion of an escaped single quote.
9651delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9652
9653# Sed substitution to avoid accidental globbing in evaled expressions
9654no_glob_subst='s/\*/\\\*/g'
9655
cristy73bd4a52010-10-05 11:24:23 +00009656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9657$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009658if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009659 $as_echo_n "(cached) " >&6
9660else
9661 if test -n "$NM"; then
9662 # Let the user override the test.
9663 lt_cv_path_NM="$NM"
9664else
9665 lt_nm_to_check="${ac_tool_prefix}nm"
9666 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9667 lt_nm_to_check="$lt_nm_to_check nm"
9668 fi
9669 for lt_tmp_nm in $lt_nm_to_check; do
9670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9671 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9672 IFS="$lt_save_ifs"
9673 test -z "$ac_dir" && ac_dir=.
9674 tmp_nm="$ac_dir/$lt_tmp_nm"
9675 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9676 # Check to see if the nm accepts a BSD-compat flag.
9677 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9678 # nm: unknown option "B" ignored
9679 # Tru64's nm complains that /dev/null is an invalid object file
9680 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9681 */dev/null* | *'Invalid file or object type'*)
9682 lt_cv_path_NM="$tmp_nm -B"
9683 break
9684 ;;
9685 *)
9686 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9687 */dev/null*)
9688 lt_cv_path_NM="$tmp_nm -p"
9689 break
9690 ;;
9691 *)
9692 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9693 continue # so that we can try to find one that supports BSD flags
9694 ;;
9695 esac
9696 ;;
9697 esac
9698 fi
9699 done
9700 IFS="$lt_save_ifs"
9701 done
9702 : ${lt_cv_path_NM=no}
9703fi
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9706$as_echo "$lt_cv_path_NM" >&6; }
9707if test "$lt_cv_path_NM" != "no"; then
9708 NM="$lt_cv_path_NM"
9709else
9710 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009711 if test -n "$DUMPBIN"; then :
9712 # Let the user override the test.
9713 else
9714 if test -n "$ac_tool_prefix"; then
9715 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009716 do
9717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009721if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009722 $as_echo_n "(cached) " >&6
9723else
9724 if test -n "$DUMPBIN"; then
9725 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9726else
9727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728for as_dir in $PATH
9729do
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
9733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9734 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 break 2
9737 fi
9738done
9739 done
9740IFS=$as_save_IFS
9741
9742fi
9743fi
9744DUMPBIN=$ac_cv_prog_DUMPBIN
9745if test -n "$DUMPBIN"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9747$as_echo "$DUMPBIN" >&6; }
9748else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751fi
9752
9753
9754 test -n "$DUMPBIN" && break
9755 done
9756fi
9757if test -z "$DUMPBIN"; then
9758 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009759 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009760do
9761 # Extract the first word of "$ac_prog", so it can be a program name with args.
9762set dummy $ac_prog; ac_word=$2
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009765if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009766 $as_echo_n "(cached) " >&6
9767else
9768 if test -n "$ac_ct_DUMPBIN"; then
9769 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782done
9783 done
9784IFS=$as_save_IFS
9785
9786fi
9787fi
9788ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9789if test -n "$ac_ct_DUMPBIN"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9791$as_echo "$ac_ct_DUMPBIN" >&6; }
9792else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
9795fi
9796
9797
9798 test -n "$ac_ct_DUMPBIN" && break
9799done
9800
9801 if test "x$ac_ct_DUMPBIN" = x; then
9802 DUMPBIN=":"
9803 else
9804 case $cross_compiling:$ac_tool_warned in
9805yes:)
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9808ac_tool_warned=yes ;;
9809esac
9810 DUMPBIN=$ac_ct_DUMPBIN
9811 fi
9812fi
9813
cristy0c60a692010-11-04 01:09:47 +00009814 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9815 *COFF*)
9816 DUMPBIN="$DUMPBIN -symbols"
9817 ;;
9818 *)
9819 DUMPBIN=:
9820 ;;
9821 esac
9822 fi
cristy73bd4a52010-10-05 11:24:23 +00009823
9824 if test "$DUMPBIN" != ":"; then
9825 NM="$DUMPBIN"
9826 fi
9827fi
9828test -z "$NM" && NM=nm
9829
9830
9831
9832
9833
9834
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9836$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009837if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009838 $as_echo_n "(cached) " >&6
9839else
9840 lt_cv_nm_interface="BSD nm"
9841 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009842 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009843 (eval "$ac_compile" 2>conftest.err)
9844 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009845 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009846 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9847 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009848 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009849 cat conftest.out >&5
9850 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9851 lt_cv_nm_interface="MS dumpbin"
9852 fi
9853 rm -f conftest*
9854fi
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9856$as_echo "$lt_cv_nm_interface" >&6; }
9857
9858# find the maximum length of command line arguments
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9860$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009861if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009862 $as_echo_n "(cached) " >&6
9863else
9864 i=0
9865 teststring="ABCD"
9866
9867 case $build_os in
9868 msdosdjgpp*)
9869 # On DJGPP, this test can blow up pretty badly due to problems in libc
9870 # (any single argument exceeding 2000 bytes causes a buffer overrun
9871 # during glob expansion). Even if it were fixed, the result of this
9872 # check would be larger than it should be.
9873 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9874 ;;
9875
9876 gnu*)
9877 # Under GNU Hurd, this test is not required because there is
9878 # no limit to the length of command line arguments.
9879 # Libtool will interpret -1 as no limit whatsoever
9880 lt_cv_sys_max_cmd_len=-1;
9881 ;;
9882
9883 cygwin* | mingw* | cegcc*)
9884 # On Win9x/ME, this test blows up -- it succeeds, but takes
9885 # about 5 minutes as the teststring grows exponentially.
9886 # Worse, since 9x/ME are not pre-emptively multitasking,
9887 # you end up with a "frozen" computer, even though with patience
9888 # the test eventually succeeds (with a max line length of 256k).
9889 # Instead, let's just punt: use the minimum linelength reported by
9890 # all of the supported platforms: 8192 (on NT/2K/XP).
9891 lt_cv_sys_max_cmd_len=8192;
9892 ;;
9893
cristy0c60a692010-11-04 01:09:47 +00009894 mint*)
9895 # On MiNT this can take a long time and run out of memory.
9896 lt_cv_sys_max_cmd_len=8192;
9897 ;;
9898
cristy73bd4a52010-10-05 11:24:23 +00009899 amigaos*)
9900 # On AmigaOS with pdksh, this test takes hours, literally.
9901 # So we just punt and use a minimum line length of 8192.
9902 lt_cv_sys_max_cmd_len=8192;
9903 ;;
9904
9905 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9906 # This has been around since 386BSD, at least. Likely further.
9907 if test -x /sbin/sysctl; then
9908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9909 elif test -x /usr/sbin/sysctl; then
9910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9911 else
9912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9913 fi
9914 # And add a safety zone
9915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9917 ;;
9918
9919 interix*)
9920 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9921 lt_cv_sys_max_cmd_len=196608
9922 ;;
9923
9924 osf*)
9925 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9926 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9927 # nice to cause kernel panics so lets avoid the loop below.
9928 # First set a reasonable default.
9929 lt_cv_sys_max_cmd_len=16384
9930 #
9931 if test -x /sbin/sysconfig; then
9932 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9933 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9934 esac
9935 fi
9936 ;;
9937 sco3.2v5*)
9938 lt_cv_sys_max_cmd_len=102400
9939 ;;
9940 sysv5* | sco5v6* | sysv4.2uw2*)
9941 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9942 if test -n "$kargmax"; then
9943 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9944 else
9945 lt_cv_sys_max_cmd_len=32768
9946 fi
9947 ;;
9948 *)
9949 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9950 if test -n "$lt_cv_sys_max_cmd_len"; then
9951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9953 else
9954 # Make teststring a little bigger before we do anything with it.
9955 # a 1K string should be a reasonable start.
9956 for i in 1 2 3 4 5 6 7 8 ; do
9957 teststring=$teststring$teststring
9958 done
9959 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9960 # If test is not a shell built-in, we'll probably end up computing a
9961 # maximum length that is only half of the actual maximum length, but
9962 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009963 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9964 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009965 test $i != 17 # 1/2 MB should be enough
9966 do
9967 i=`expr $i + 1`
9968 teststring=$teststring$teststring
9969 done
9970 # Only check the string length outside the loop.
9971 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9972 teststring=
9973 # Add a significant safety factor because C++ compilers can tack on
9974 # massive amounts of additional arguments before passing them to the
9975 # linker. It appears as though 1/2 is a usable value.
9976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9977 fi
9978 ;;
9979 esac
9980
9981fi
9982
9983if test -n $lt_cv_sys_max_cmd_len ; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9985$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9986else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9988$as_echo "none" >&6; }
9989fi
9990max_cmd_len=$lt_cv_sys_max_cmd_len
9991
9992
9993
9994
9995
9996
9997: ${CP="cp -f"}
9998: ${MV="mv -f"}
9999: ${RM="rm -f"}
10000
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10002$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10003# Try some XSI features
10004xsi_shell=no
10005( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010006 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10007 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010008 && eval 'test $(( 1 + 1 )) -eq 2 \
10009 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10010 && xsi_shell=yes
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10012$as_echo "$xsi_shell" >&6; }
10013
10014
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10016$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10017lt_shell_append=no
10018( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10019 >/dev/null 2>&1 \
10020 && lt_shell_append=yes
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10022$as_echo "$lt_shell_append" >&6; }
10023
10024
10025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10026 lt_unset=unset
10027else
10028 lt_unset=false
10029fi
10030
10031
10032
10033
10034
10035# test EBCDIC or ASCII
10036case `echo X|tr X '\101'` in
10037 A) # ASCII based system
10038 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10039 lt_SP2NL='tr \040 \012'
10040 lt_NL2SP='tr \015\012 \040\040'
10041 ;;
10042 *) # EBCDIC based system
10043 lt_SP2NL='tr \100 \n'
10044 lt_NL2SP='tr \r\n \100\100'
10045 ;;
10046esac
10047
10048
10049
10050
10051
10052
10053
10054
10055
cristyda16f162011-02-19 23:52:17 +000010056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10057$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10058if ${lt_cv_to_host_file_cmd+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060else
10061 case $host in
10062 *-*-mingw* )
10063 case $build in
10064 *-*-mingw* ) # actually msys
10065 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10066 ;;
10067 *-*-cygwin* )
10068 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10069 ;;
10070 * ) # otherwise, assume *nix
10071 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10072 ;;
10073 esac
10074 ;;
10075 *-*-cygwin* )
10076 case $build in
10077 *-*-mingw* ) # actually msys
10078 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10079 ;;
10080 *-*-cygwin* )
10081 lt_cv_to_host_file_cmd=func_convert_file_noop
10082 ;;
10083 * ) # otherwise, assume *nix
10084 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10085 ;;
10086 esac
10087 ;;
10088 * ) # unhandled hosts (and "normal" native builds)
10089 lt_cv_to_host_file_cmd=func_convert_file_noop
10090 ;;
10091esac
10092
10093fi
10094
10095to_host_file_cmd=$lt_cv_to_host_file_cmd
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10097$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10098
10099
10100
10101
10102
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10104$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10105if ${lt_cv_to_tool_file_cmd+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107else
10108 #assume ordinary cross tools, or native build.
10109lt_cv_to_tool_file_cmd=func_convert_file_noop
10110case $host in
10111 *-*-mingw* )
10112 case $build in
10113 *-*-mingw* ) # actually msys
10114 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10115 ;;
10116 esac
10117 ;;
10118esac
10119
10120fi
10121
10122to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10124$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10125
10126
10127
10128
10129
cristy73bd4a52010-10-05 11:24:23 +000010130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10131$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010132if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010133 $as_echo_n "(cached) " >&6
10134else
10135 lt_cv_ld_reload_flag='-r'
10136fi
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10138$as_echo "$lt_cv_ld_reload_flag" >&6; }
10139reload_flag=$lt_cv_ld_reload_flag
10140case $reload_flag in
10141"" | " "*) ;;
10142*) reload_flag=" $reload_flag" ;;
10143esac
10144reload_cmds='$LD$reload_flag -o $output$reload_objs'
10145case $host_os in
cristyda16f162011-02-19 23:52:17 +000010146 cygwin* | mingw* | pw32* | cegcc*)
10147 if test "$GCC" != yes; then
10148 reload_cmds=false
10149 fi
10150 ;;
cristy73bd4a52010-10-05 11:24:23 +000010151 darwin*)
10152 if test "$GCC" = yes; then
10153 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10154 else
10155 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10156 fi
10157 ;;
10158esac
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168if test -n "$ac_tool_prefix"; then
10169 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10170set dummy ${ac_tool_prefix}objdump; ac_word=$2
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010173if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010174 $as_echo_n "(cached) " >&6
10175else
10176 if test -n "$OBJDUMP"; then
10177 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10178else
10179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180for as_dir in $PATH
10181do
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10186 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 break 2
10189 fi
10190done
10191 done
10192IFS=$as_save_IFS
10193
10194fi
10195fi
10196OBJDUMP=$ac_cv_prog_OBJDUMP
10197if test -n "$OBJDUMP"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10199$as_echo "$OBJDUMP" >&6; }
10200else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202$as_echo "no" >&6; }
10203fi
10204
10205
10206fi
10207if test -z "$ac_cv_prog_OBJDUMP"; then
10208 ac_ct_OBJDUMP=$OBJDUMP
10209 # Extract the first word of "objdump", so it can be a program name with args.
10210set dummy objdump; ac_word=$2
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010213if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010214 $as_echo_n "(cached) " >&6
10215else
10216 if test -n "$ac_ct_OBJDUMP"; then
10217 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10218else
10219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220for as_dir in $PATH
10221do
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10226 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 break 2
10229 fi
10230done
10231 done
10232IFS=$as_save_IFS
10233
10234fi
10235fi
10236ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10237if test -n "$ac_ct_OBJDUMP"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10239$as_echo "$ac_ct_OBJDUMP" >&6; }
10240else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242$as_echo "no" >&6; }
10243fi
10244
10245 if test "x$ac_ct_OBJDUMP" = x; then
10246 OBJDUMP="false"
10247 else
10248 case $cross_compiling:$ac_tool_warned in
10249yes:)
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10252ac_tool_warned=yes ;;
10253esac
10254 OBJDUMP=$ac_ct_OBJDUMP
10255 fi
10256else
10257 OBJDUMP="$ac_cv_prog_OBJDUMP"
10258fi
10259
10260test -z "$OBJDUMP" && OBJDUMP=objdump
10261
10262
10263
10264
10265
10266
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10268$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010269if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010270 $as_echo_n "(cached) " >&6
10271else
10272 lt_cv_file_magic_cmd='$MAGIC_CMD'
10273lt_cv_file_magic_test_file=
10274lt_cv_deplibs_check_method='unknown'
10275# Need to set the preceding variable on all platforms that support
10276# interlibrary dependencies.
10277# 'none' -- dependencies not supported.
10278# `unknown' -- same as none, but documents that we really don't know.
10279# 'pass_all' -- all dependencies passed with no checks.
10280# 'test_compile' -- check by making test program.
10281# 'file_magic [[regex]]' -- check by looking for files in library path
10282# which responds to the $file_magic_cmd with a given extended regex.
10283# If you have `file' or equivalent on your system and you're not sure
10284# whether `pass_all' will *always* work, you probably want this one.
10285
10286case $host_os in
10287aix[4-9]*)
10288 lt_cv_deplibs_check_method=pass_all
10289 ;;
10290
10291beos*)
10292 lt_cv_deplibs_check_method=pass_all
10293 ;;
10294
10295bsdi[45]*)
10296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10297 lt_cv_file_magic_cmd='/usr/bin/file -L'
10298 lt_cv_file_magic_test_file=/shlib/libc.so
10299 ;;
10300
10301cygwin*)
10302 # func_win32_libid is a shell function defined in ltmain.sh
10303 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10304 lt_cv_file_magic_cmd='func_win32_libid'
10305 ;;
10306
10307mingw* | pw32*)
10308 # Base MSYS/MinGW do not provide the 'file' command needed by
10309 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10310 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010311 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10312 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010313 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10314 lt_cv_file_magic_cmd='func_win32_libid'
10315 else
cristy0c60a692010-11-04 01:09:47 +000010316 # Keep this pattern in sync with the one in func_win32_libid.
10317 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000010318 lt_cv_file_magic_cmd='$OBJDUMP -f'
10319 fi
10320 ;;
10321
cristy0c60a692010-11-04 01:09:47 +000010322cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010323 # use the weaker test based on 'objdump'. See mingw*.
10324 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10325 lt_cv_file_magic_cmd='$OBJDUMP -f'
10326 ;;
10327
10328darwin* | rhapsody*)
10329 lt_cv_deplibs_check_method=pass_all
10330 ;;
10331
10332freebsd* | dragonfly*)
10333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10334 case $host_cpu in
10335 i*86 )
10336 # Not sure whether the presence of OpenBSD here was a mistake.
10337 # Let's accept both of them until this is cleared up.
10338 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10339 lt_cv_file_magic_cmd=/usr/bin/file
10340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10341 ;;
10342 esac
10343 else
10344 lt_cv_deplibs_check_method=pass_all
10345 fi
10346 ;;
10347
10348gnu*)
10349 lt_cv_deplibs_check_method=pass_all
10350 ;;
10351
cristy0c60a692010-11-04 01:09:47 +000010352haiku*)
10353 lt_cv_deplibs_check_method=pass_all
10354 ;;
10355
cristy73bd4a52010-10-05 11:24:23 +000010356hpux10.20* | hpux11*)
10357 lt_cv_file_magic_cmd=/usr/bin/file
10358 case $host_cpu in
10359 ia64*)
10360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10361 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10362 ;;
10363 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cristy73bd4a52010-10-05 11:24:23 +000010365 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10366 ;;
10367 *)
cristy0c60a692010-11-04 01:09:47 +000010368 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000010369 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10370 ;;
10371 esac
10372 ;;
10373
10374interix[3-9]*)
10375 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10377 ;;
10378
10379irix5* | irix6* | nonstopux*)
10380 case $LD in
10381 *-32|*"-32 ") libmagic=32-bit;;
10382 *-n32|*"-n32 ") libmagic=N32;;
10383 *-64|*"-64 ") libmagic=64-bit;;
10384 *) libmagic=never-match;;
10385 esac
10386 lt_cv_deplibs_check_method=pass_all
10387 ;;
10388
10389# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010390linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010391 lt_cv_deplibs_check_method=pass_all
10392 ;;
10393
10394netbsd*)
10395 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10397 else
10398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10399 fi
10400 ;;
10401
10402newos6*)
10403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10404 lt_cv_file_magic_cmd=/usr/bin/file
10405 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10406 ;;
10407
10408*nto* | *qnx*)
10409 lt_cv_deplibs_check_method=pass_all
10410 ;;
10411
10412openbsd*)
10413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10415 else
10416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10417 fi
10418 ;;
10419
10420osf3* | osf4* | osf5*)
10421 lt_cv_deplibs_check_method=pass_all
10422 ;;
10423
10424rdos*)
10425 lt_cv_deplibs_check_method=pass_all
10426 ;;
10427
10428solaris*)
10429 lt_cv_deplibs_check_method=pass_all
10430 ;;
10431
10432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433 lt_cv_deplibs_check_method=pass_all
10434 ;;
10435
10436sysv4 | sysv4.3*)
10437 case $host_vendor in
10438 motorola)
10439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10441 ;;
10442 ncr)
10443 lt_cv_deplibs_check_method=pass_all
10444 ;;
10445 sequent)
10446 lt_cv_file_magic_cmd='/bin/file'
10447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10448 ;;
10449 sni)
10450 lt_cv_file_magic_cmd='/bin/file'
10451 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10452 lt_cv_file_magic_test_file=/lib/libc.so
10453 ;;
10454 siemens)
10455 lt_cv_deplibs_check_method=pass_all
10456 ;;
10457 pc)
10458 lt_cv_deplibs_check_method=pass_all
10459 ;;
10460 esac
10461 ;;
10462
10463tpf*)
10464 lt_cv_deplibs_check_method=pass_all
10465 ;;
10466esac
10467
10468fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10470$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010471
10472file_magic_glob=
10473want_nocaseglob=no
10474if test "$build" = "$host"; then
10475 case $host_os in
10476 mingw* | pw32*)
10477 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10478 want_nocaseglob=yes
10479 else
10480 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10481 fi
10482 ;;
10483 esac
10484fi
10485
cristy73bd4a52010-10-05 11:24:23 +000010486file_magic_cmd=$lt_cv_file_magic_cmd
10487deplibs_check_method=$lt_cv_deplibs_check_method
10488test -z "$deplibs_check_method" && deplibs_check_method=unknown
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
cristyda16f162011-02-19 23:52:17 +000010501
10502
10503
10504
10505
10506
10507
10508
10509
10510
cristy73bd4a52010-10-05 11:24:23 +000010511if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010512 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10513set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010516if ${ac_cv_prog_DLLTOOL+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518else
10519 if test -n "$DLLTOOL"; then
10520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10521else
10522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523for as_dir in $PATH
10524do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10529 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10532 fi
10533done
10534 done
10535IFS=$as_save_IFS
10536
10537fi
10538fi
10539DLLTOOL=$ac_cv_prog_DLLTOOL
10540if test -n "$DLLTOOL"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10542$as_echo "$DLLTOOL" >&6; }
10543else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
10546fi
10547
10548
10549fi
10550if test -z "$ac_cv_prog_DLLTOOL"; then
10551 ac_ct_DLLTOOL=$DLLTOOL
10552 # Extract the first word of "dlltool", so it can be a program name with args.
10553set dummy dlltool; ac_word=$2
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555$as_echo_n "checking for $ac_word... " >&6; }
10556if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558else
10559 if test -n "$ac_ct_DLLTOOL"; then
10560 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10561else
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10572 fi
10573done
10574 done
10575IFS=$as_save_IFS
10576
10577fi
10578fi
10579ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10580if test -n "$ac_ct_DLLTOOL"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10582$as_echo "$ac_ct_DLLTOOL" >&6; }
10583else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
10586fi
10587
10588 if test "x$ac_ct_DLLTOOL" = x; then
10589 DLLTOOL="false"
10590 else
10591 case $cross_compiling:$ac_tool_warned in
10592yes:)
10593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10595ac_tool_warned=yes ;;
10596esac
10597 DLLTOOL=$ac_ct_DLLTOOL
10598 fi
10599else
10600 DLLTOOL="$ac_cv_prog_DLLTOOL"
10601fi
10602
10603test -z "$DLLTOOL" && DLLTOOL=dlltool
10604
10605
10606
10607
10608
10609
10610
10611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10612$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10613if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10614 $as_echo_n "(cached) " >&6
10615else
10616 lt_cv_sharedlib_from_linklib_cmd='unknown'
10617
10618case $host_os in
10619cygwin* | mingw* | pw32* | cegcc*)
10620 # two different shell functions defined in ltmain.sh
10621 # decide which to use based on capabilities of $DLLTOOL
10622 case `$DLLTOOL --help 2>&1` in
10623 *--identify-strict*)
10624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10625 ;;
10626 *)
10627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10628 ;;
10629 esac
10630 ;;
10631*)
10632 # fallback: assume linklib IS sharedlib
10633 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10634 ;;
10635esac
10636
10637fi
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10639$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10640sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10641test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10642
10643
10644
10645
10646
10647
10648
10649if test -n "$ac_tool_prefix"; then
10650 for ac_prog in ar
10651 do
10652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655$as_echo_n "checking for $ac_word... " >&6; }
10656if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010657 $as_echo_n "(cached) " >&6
10658else
10659 if test -n "$AR"; then
10660 ac_cv_prog_AR="$AR" # Let the user override the test.
10661else
10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $PATH
10664do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673done
10674 done
10675IFS=$as_save_IFS
10676
10677fi
10678fi
10679AR=$ac_cv_prog_AR
10680if test -n "$AR"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10682$as_echo "$AR" >&6; }
10683else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
10686fi
10687
10688
cristyda16f162011-02-19 23:52:17 +000010689 test -n "$AR" && break
10690 done
cristy73bd4a52010-10-05 11:24:23 +000010691fi
cristyda16f162011-02-19 23:52:17 +000010692if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010693 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010694 for ac_prog in ar
10695do
10696 # Extract the first word of "$ac_prog", so it can be a program name with args.
10697set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010700if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010701 $as_echo_n "(cached) " >&6
10702else
10703 if test -n "$ac_ct_AR"; then
10704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10705else
10706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707for as_dir in $PATH
10708do
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010713 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10716 fi
10717done
10718 done
10719IFS=$as_save_IFS
10720
10721fi
10722fi
10723ac_ct_AR=$ac_cv_prog_ac_ct_AR
10724if test -n "$ac_ct_AR"; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10726$as_echo "$ac_ct_AR" >&6; }
10727else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
10730fi
10731
cristyda16f162011-02-19 23:52:17 +000010732
10733 test -n "$ac_ct_AR" && break
10734done
10735
cristy73bd4a52010-10-05 11:24:23 +000010736 if test "x$ac_ct_AR" = x; then
10737 AR="false"
10738 else
10739 case $cross_compiling:$ac_tool_warned in
10740yes:)
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10743ac_tool_warned=yes ;;
10744esac
10745 AR=$ac_ct_AR
10746 fi
cristy73bd4a52010-10-05 11:24:23 +000010747fi
10748
cristyda16f162011-02-19 23:52:17 +000010749: ${AR=ar}
10750: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
cristyda16f162011-02-19 23:52:17 +000010762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10763$as_echo_n "checking for archiver @FILE support... " >&6; }
10764if ${lt_cv_ar_at_file+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766else
10767 lt_cv_ar_at_file=no
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769/* end confdefs.h. */
10770
10771int
10772main ()
10773{
10774
10775 ;
10776 return 0;
10777}
10778_ACEOF
10779if ac_fn_c_try_compile "$LINENO"; then :
10780 echo conftest.$ac_objext > conftest.lst
10781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10783 (eval $lt_ar_try) 2>&5
10784 ac_status=$?
10785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10786 test $ac_status = 0; }
10787 if test "$ac_status" -eq 0; then
10788 # Ensure the archiver fails upon bogus file names.
10789 rm -f conftest.$ac_objext libconftest.a
10790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10791 (eval $lt_ar_try) 2>&5
10792 ac_status=$?
10793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10794 test $ac_status = 0; }
10795 if test "$ac_status" -ne 0; then
10796 lt_cv_ar_at_file=@
10797 fi
10798 fi
10799 rm -f conftest.* libconftest.a
10800
10801fi
10802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803
10804fi
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10806$as_echo "$lt_cv_ar_at_file" >&6; }
10807
10808if test "x$lt_cv_ar_at_file" = xno; then
10809 archiver_list_spec=
10810else
10811 archiver_list_spec=$lt_cv_ar_at_file
10812fi
10813
10814
10815
10816
10817
10818
10819
cristy73bd4a52010-10-05 11:24:23 +000010820if test -n "$ac_tool_prefix"; then
10821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10822set dummy ${ac_tool_prefix}strip; ac_word=$2
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010825if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010826 $as_echo_n "(cached) " >&6
10827else
10828 if test -n "$STRIP"; then
10829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10830else
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10841 fi
10842done
10843 done
10844IFS=$as_save_IFS
10845
10846fi
10847fi
10848STRIP=$ac_cv_prog_STRIP
10849if test -n "$STRIP"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10851$as_echo "$STRIP" >&6; }
10852else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
10855fi
10856
10857
10858fi
10859if test -z "$ac_cv_prog_STRIP"; then
10860 ac_ct_STRIP=$STRIP
10861 # Extract the first word of "strip", so it can be a program name with args.
10862set dummy strip; ac_word=$2
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010865if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010866 $as_echo_n "(cached) " >&6
10867else
10868 if test -n "$ac_ct_STRIP"; then
10869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878 ac_cv_prog_ac_ct_STRIP="strip"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 break 2
10881 fi
10882done
10883 done
10884IFS=$as_save_IFS
10885
10886fi
10887fi
10888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10889if test -n "$ac_ct_STRIP"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10891$as_echo "$ac_ct_STRIP" >&6; }
10892else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
10895fi
10896
10897 if test "x$ac_ct_STRIP" = x; then
10898 STRIP=":"
10899 else
10900 case $cross_compiling:$ac_tool_warned in
10901yes:)
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10904ac_tool_warned=yes ;;
10905esac
10906 STRIP=$ac_ct_STRIP
10907 fi
10908else
10909 STRIP="$ac_cv_prog_STRIP"
10910fi
10911
10912test -z "$STRIP" && STRIP=:
10913
10914
10915
10916
10917
10918
10919if test -n "$ac_tool_prefix"; then
10920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10921set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010924if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010925 $as_echo_n "(cached) " >&6
10926else
10927 if test -n "$RANLIB"; then
10928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10929else
10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10940 fi
10941done
10942 done
10943IFS=$as_save_IFS
10944
10945fi
10946fi
10947RANLIB=$ac_cv_prog_RANLIB
10948if test -n "$RANLIB"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10950$as_echo "$RANLIB" >&6; }
10951else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
10954fi
10955
10956
10957fi
10958if test -z "$ac_cv_prog_RANLIB"; then
10959 ac_ct_RANLIB=$RANLIB
10960 # Extract the first word of "ranlib", so it can be a program name with args.
10961set dummy ranlib; ac_word=$2
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010964if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010965 $as_echo_n "(cached) " >&6
10966else
10967 if test -n "$ac_ct_RANLIB"; then
10968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10969else
10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971for as_dir in $PATH
10972do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977 ac_cv_prog_ac_ct_RANLIB="ranlib"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10980 fi
10981done
10982 done
10983IFS=$as_save_IFS
10984
10985fi
10986fi
10987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10988if test -n "$ac_ct_RANLIB"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10990$as_echo "$ac_ct_RANLIB" >&6; }
10991else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994fi
10995
10996 if test "x$ac_ct_RANLIB" = x; then
10997 RANLIB=":"
10998 else
10999 case $cross_compiling:$ac_tool_warned in
11000yes:)
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11003ac_tool_warned=yes ;;
11004esac
11005 RANLIB=$ac_ct_RANLIB
11006 fi
11007else
11008 RANLIB="$ac_cv_prog_RANLIB"
11009fi
11010
11011test -z "$RANLIB" && RANLIB=:
11012
11013
11014
11015
11016
11017
11018# Determine commands to create old-style static archives.
11019old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11020old_postinstall_cmds='chmod 644 $oldlib'
11021old_postuninstall_cmds=
11022
11023if test -n "$RANLIB"; then
11024 case $host_os in
11025 openbsd*)
11026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11027 ;;
11028 *)
11029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11030 ;;
11031 esac
11032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11033fi
11034
cristy0c60a692010-11-04 01:09:47 +000011035case $host_os in
11036 darwin*)
11037 lock_old_archive_extraction=yes ;;
11038 *)
11039 lock_old_archive_extraction=no ;;
11040esac
11041
11042
11043
11044
11045
11046
cristy73bd4a52010-10-05 11:24:23 +000011047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080# If no C compiler was specified, use CC.
11081LTCC=${LTCC-"$CC"}
11082
11083# If no C compiler flags were specified, use CFLAGS.
11084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11085
11086# Allow CC to be a program name with arguments.
11087compiler=$CC
11088
11089
11090# Check for command to grab the raw symbol name followed by C symbol from nm.
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11092$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011093if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011094 $as_echo_n "(cached) " >&6
11095else
11096
11097# These are sane defaults that work on at least a few old systems.
11098# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11099
11100# Character class describing NM global symbol codes.
11101symcode='[BCDEGRST]'
11102
11103# Regexp to match symbols that can be accessed directly from C.
11104sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11105
11106# Define system-specific variables.
11107case $host_os in
11108aix*)
11109 symcode='[BCDT]'
11110 ;;
11111cygwin* | mingw* | pw32* | cegcc*)
11112 symcode='[ABCDGISTW]'
11113 ;;
11114hpux*)
11115 if test "$host_cpu" = ia64; then
11116 symcode='[ABCDEGRST]'
11117 fi
11118 ;;
11119irix* | nonstopux*)
11120 symcode='[BCDEGRST]'
11121 ;;
11122osf*)
11123 symcode='[BCDEGQRST]'
11124 ;;
11125solaris*)
11126 symcode='[BDRT]'
11127 ;;
11128sco3.2v5*)
11129 symcode='[DT]'
11130 ;;
11131sysv4.2uw2*)
11132 symcode='[DT]'
11133 ;;
11134sysv5* | sco5v6* | unixware* | OpenUNIX*)
11135 symcode='[ABDT]'
11136 ;;
11137sysv4)
11138 symcode='[DFNSTU]'
11139 ;;
11140esac
11141
11142# If we're using GNU nm, then use its standard symbol codes.
11143case `$NM -V 2>&1` in
11144*GNU* | *'with BFD'*)
11145 symcode='[ABCDGIRSTW]' ;;
11146esac
11147
11148# Transform an extracted symbol line into a proper C declaration.
11149# Some systems (esp. on ia64) link data and code symbols differently,
11150# so use this general approach.
11151lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11152
11153# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011154lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11155lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
cristy73bd4a52010-10-05 11:24:23 +000011156
11157# Handle CRLF in mingw tool chain
11158opt_cr=
11159case $build_os in
11160mingw*)
11161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11162 ;;
11163esac
11164
11165# Try without a prefix underscore, then with it.
11166for ac_symprfx in "" "_"; do
11167
11168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11169 symxfrm="\\1 $ac_symprfx\\2 \\2"
11170
11171 # Write the raw and C identifiers.
11172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11173 # Fake it for dumpbin and say T for any non-static function
11174 # and D for any global variable.
11175 # Also find C++ and __fastcall symbols from MSVC++,
11176 # which start with @ or ?.
11177 lt_cv_sys_global_symbol_pipe="$AWK '"\
11178" {last_section=section; section=\$ 3};"\
11179" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11180" \$ 0!~/External *\|/{next};"\
11181" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11182" {if(hide[section]) next};"\
11183" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11184" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11185" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11186" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11187" ' prfx=^$ac_symprfx"
11188 else
11189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11190 fi
cristyda16f162011-02-19 23:52:17 +000011191 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011192
11193 # Check to see that the pipe works correctly.
11194 pipe_works=no
11195
11196 rm -f conftest*
11197 cat > conftest.$ac_ext <<_LT_EOF
11198#ifdef __cplusplus
11199extern "C" {
11200#endif
11201char nm_test_var;
11202void nm_test_func(void);
11203void nm_test_func(void){}
11204#ifdef __cplusplus
11205}
11206#endif
11207int main(){nm_test_var='a';nm_test_func();return(0);}
11208_LT_EOF
11209
11210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11211 (eval $ac_compile) 2>&5
11212 ac_status=$?
11213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11214 test $ac_status = 0; }; then
11215 # Now try to grab the symbols.
11216 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11218 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011219 ac_status=$?
11220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221 test $ac_status = 0; } && test -s "$nlist"; then
11222 # Try sorting and uniquifying the output.
11223 if sort "$nlist" | uniq > "$nlist"T; then
11224 mv -f "$nlist"T "$nlist"
11225 else
11226 rm -f "$nlist"T
11227 fi
11228
11229 # Make sure that we snagged all the symbols we need.
11230 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11231 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11232 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011233/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11234#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11235/* DATA imports from DLLs on WIN32 con't be const, because runtime
11236 relocations are performed -- see ld's documentation on pseudo-relocs. */
11237# define LT_DLSYM_CONST
11238#elif defined(__osf__)
11239/* This system does not cope well with relocations in const data. */
11240# define LT_DLSYM_CONST
11241#else
11242# define LT_DLSYM_CONST const
11243#endif
11244
cristy73bd4a52010-10-05 11:24:23 +000011245#ifdef __cplusplus
11246extern "C" {
11247#endif
11248
11249_LT_EOF
11250 # Now generate the symbol file.
11251 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11252
11253 cat <<_LT_EOF >> conftest.$ac_ext
11254
11255/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011256LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011257 const char *name;
11258 void *address;
11259}
11260lt__PROGRAM__LTX_preloaded_symbols[] =
11261{
11262 { "@PROGRAM@", (void *) 0 },
11263_LT_EOF
11264 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11265 cat <<\_LT_EOF >> conftest.$ac_ext
11266 {0, (void *) 0}
11267};
11268
11269/* This works around a problem in FreeBSD linker */
11270#ifdef FREEBSD_WORKAROUND
11271static const void *lt_preloaded_setup() {
11272 return lt__PROGRAM__LTX_preloaded_symbols;
11273}
11274#endif
11275
11276#ifdef __cplusplus
11277}
11278#endif
11279_LT_EOF
11280 # Now try linking the two files.
11281 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011282 lt_globsym_save_LIBS=$LIBS
11283 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011284 LIBS="conftstm.$ac_objext"
11285 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11291 pipe_works=yes
11292 fi
cristyda16f162011-02-19 23:52:17 +000011293 LIBS=$lt_globsym_save_LIBS
11294 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011295 else
11296 echo "cannot find nm_test_func in $nlist" >&5
11297 fi
11298 else
11299 echo "cannot find nm_test_var in $nlist" >&5
11300 fi
11301 else
11302 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11303 fi
11304 else
11305 echo "$progname: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11307 fi
11308 rm -rf conftest* conftst*
11309
11310 # Do not use the global_symbol_pipe unless it works.
11311 if test "$pipe_works" = yes; then
11312 break
11313 else
11314 lt_cv_sys_global_symbol_pipe=
11315 fi
11316done
11317
11318fi
11319
11320if test -z "$lt_cv_sys_global_symbol_pipe"; then
11321 lt_cv_sys_global_symbol_to_cdecl=
11322fi
11323if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11325$as_echo "failed" >&6; }
11326else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11328$as_echo "ok" >&6; }
11329fi
11330
cristyda16f162011-02-19 23:52:17 +000011331# Response file support.
11332if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11333 nm_file_list_spec='@'
11334elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11335 nm_file_list_spec='@'
11336fi
cristy73bd4a52010-10-05 11:24:23 +000011337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
cristyda16f162011-02-19 23:52:17 +000011358
11359
11360
11361
11362
11363
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11365$as_echo_n "checking for sysroot... " >&6; }
11366
11367# Check whether --with-sysroot was given.
11368if test "${with_sysroot+set}" = set; then :
11369 withval=$with_sysroot;
11370else
11371 with_sysroot=no
11372fi
11373
11374
11375lt_sysroot=
11376case ${with_sysroot} in #(
11377 yes)
11378 if test "$GCC" = yes; then
11379 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11380 fi
11381 ;; #(
11382 /*)
11383 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11384 ;; #(
11385 no|'')
11386 ;; #(
11387 *)
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11389$as_echo "${with_sysroot}" >&6; }
11390 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11391 ;;
11392esac
11393
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11395$as_echo "${lt_sysroot:-no}" >&6; }
11396
11397
11398
11399
11400
cristy73bd4a52010-10-05 11:24:23 +000011401# Check whether --enable-libtool-lock was given.
11402if test "${enable_libtool_lock+set}" = set; then :
11403 enableval=$enable_libtool_lock;
11404fi
11405
11406test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11407
11408# Some flags need to be propagated to the compiler or linker for good
11409# libtool support.
11410case $host in
11411ia64-*-hpux*)
11412 # Find out which ABI we are using.
11413 echo 'int i;' > conftest.$ac_ext
11414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11415 (eval $ac_compile) 2>&5
11416 ac_status=$?
11417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11418 test $ac_status = 0; }; then
11419 case `/usr/bin/file conftest.$ac_objext` in
11420 *ELF-32*)
11421 HPUX_IA64_MODE="32"
11422 ;;
11423 *ELF-64*)
11424 HPUX_IA64_MODE="64"
11425 ;;
11426 esac
11427 fi
11428 rm -rf conftest*
11429 ;;
11430*-*-irix6*)
11431 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011432 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11434 (eval $ac_compile) 2>&5
11435 ac_status=$?
11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; }; then
11438 if test "$lt_cv_prog_gnu_ld" = yes; then
11439 case `/usr/bin/file conftest.$ac_objext` in
11440 *32-bit*)
11441 LD="${LD-ld} -melf32bsmip"
11442 ;;
11443 *N32*)
11444 LD="${LD-ld} -melf32bmipn32"
11445 ;;
11446 *64-bit*)
11447 LD="${LD-ld} -melf64bmip"
11448 ;;
11449 esac
11450 else
11451 case `/usr/bin/file conftest.$ac_objext` in
11452 *32-bit*)
11453 LD="${LD-ld} -32"
11454 ;;
11455 *N32*)
11456 LD="${LD-ld} -n32"
11457 ;;
11458 *64-bit*)
11459 LD="${LD-ld} -64"
11460 ;;
11461 esac
11462 fi
11463 fi
11464 rm -rf conftest*
11465 ;;
11466
11467x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11468s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11469 # Find out which ABI we are using.
11470 echo 'int i;' > conftest.$ac_ext
11471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11472 (eval $ac_compile) 2>&5
11473 ac_status=$?
11474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475 test $ac_status = 0; }; then
11476 case `/usr/bin/file conftest.o` in
11477 *32-bit*)
11478 case $host in
11479 x86_64-*kfreebsd*-gnu)
11480 LD="${LD-ld} -m elf_i386_fbsd"
11481 ;;
11482 x86_64-*linux*)
11483 LD="${LD-ld} -m elf_i386"
11484 ;;
11485 ppc64-*linux*|powerpc64-*linux*)
11486 LD="${LD-ld} -m elf32ppclinux"
11487 ;;
11488 s390x-*linux*)
11489 LD="${LD-ld} -m elf_s390"
11490 ;;
11491 sparc64-*linux*)
11492 LD="${LD-ld} -m elf32_sparc"
11493 ;;
11494 esac
11495 ;;
11496 *64-bit*)
11497 case $host in
11498 x86_64-*kfreebsd*-gnu)
11499 LD="${LD-ld} -m elf_x86_64_fbsd"
11500 ;;
11501 x86_64-*linux*)
11502 LD="${LD-ld} -m elf_x86_64"
11503 ;;
11504 ppc*-*linux*|powerpc*-*linux*)
11505 LD="${LD-ld} -m elf64ppc"
11506 ;;
11507 s390*-*linux*|s390*-*tpf*)
11508 LD="${LD-ld} -m elf64_s390"
11509 ;;
11510 sparc*-*linux*)
11511 LD="${LD-ld} -m elf64_sparc"
11512 ;;
11513 esac
11514 ;;
11515 esac
11516 fi
11517 rm -rf conftest*
11518 ;;
11519
11520*-*-sco3.2v5*)
11521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11522 SAVE_CFLAGS="$CFLAGS"
11523 CFLAGS="$CFLAGS -belf"
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11525$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011526if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011527 $as_echo_n "(cached) " >&6
11528else
11529 ac_ext=c
11530ac_cpp='$CPP $CPPFLAGS'
11531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11533ac_compiler_gnu=$ac_cv_c_compiler_gnu
11534
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h. */
11537
11538int
11539main ()
11540{
11541
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546if ac_fn_c_try_link "$LINENO"; then :
11547 lt_cv_cc_needs_belf=yes
11548else
11549 lt_cv_cc_needs_belf=no
11550fi
11551rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 ac_ext=c
11554ac_cpp='$CPP $CPPFLAGS'
11555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558
11559fi
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11561$as_echo "$lt_cv_cc_needs_belf" >&6; }
11562 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11563 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11564 CFLAGS="$SAVE_CFLAGS"
11565 fi
11566 ;;
11567sparc*-*solaris*)
11568 # Find out which ABI we are using.
11569 echo 'int i;' > conftest.$ac_ext
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11571 (eval $ac_compile) 2>&5
11572 ac_status=$?
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; }; then
11575 case `/usr/bin/file conftest.o` in
11576 *64-bit*)
11577 case $lt_cv_prog_gnu_ld in
11578 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11579 *)
11580 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11581 LD="${LD-ld} -64"
11582 fi
11583 ;;
11584 esac
11585 ;;
11586 esac
11587 fi
11588 rm -rf conftest*
11589 ;;
11590esac
11591
11592need_locks="$enable_libtool_lock"
11593
cristyda16f162011-02-19 23:52:17 +000011594if test -n "$ac_tool_prefix"; then
11595 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11596set dummy ${ac_tool_prefix}mt; ac_word=$2
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598$as_echo_n "checking for $ac_word... " >&6; }
11599if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601else
11602 if test -n "$MANIFEST_TOOL"; then
11603 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11604else
11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11612 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11615 fi
11616done
11617 done
11618IFS=$as_save_IFS
11619
11620fi
11621fi
11622MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11623if test -n "$MANIFEST_TOOL"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11625$as_echo "$MANIFEST_TOOL" >&6; }
11626else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628$as_echo "no" >&6; }
11629fi
11630
11631
11632fi
11633if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11634 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11635 # Extract the first word of "mt", so it can be a program name with args.
11636set dummy mt; ac_word=$2
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638$as_echo_n "checking for $ac_word... " >&6; }
11639if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641else
11642 if test -n "$ac_ct_MANIFEST_TOOL"; then
11643 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11644else
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11652 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11655 fi
11656done
11657 done
11658IFS=$as_save_IFS
11659
11660fi
11661fi
11662ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11663if test -n "$ac_ct_MANIFEST_TOOL"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11665$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11666else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
11669fi
11670
11671 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11672 MANIFEST_TOOL=":"
11673 else
11674 case $cross_compiling:$ac_tool_warned in
11675yes:)
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11678ac_tool_warned=yes ;;
11679esac
11680 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11681 fi
11682else
11683 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11684fi
11685
11686test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11688$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11689if ${lt_cv_path_mainfest_tool+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691else
11692 lt_cv_path_mainfest_tool=no
11693 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11694 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11695 cat conftest.err >&5
11696 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11697 lt_cv_path_mainfest_tool=yes
11698 fi
11699 rm -f conftest*
11700fi
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11702$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11703if test "x$lt_cv_path_mainfest_tool" != xyes; then
11704 MANIFEST_TOOL=:
11705fi
11706
11707
11708
11709
11710
cristy73bd4a52010-10-05 11:24:23 +000011711
11712 case $host_os in
11713 rhapsody* | darwin*)
11714 if test -n "$ac_tool_prefix"; then
11715 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11716set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011719if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011720 $as_echo_n "(cached) " >&6
11721else
11722 if test -n "$DSYMUTIL"; then
11723 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11724else
11725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726for as_dir in $PATH
11727do
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11735 fi
11736done
11737 done
11738IFS=$as_save_IFS
11739
11740fi
11741fi
11742DSYMUTIL=$ac_cv_prog_DSYMUTIL
11743if test -n "$DSYMUTIL"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11745$as_echo "$DSYMUTIL" >&6; }
11746else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748$as_echo "no" >&6; }
11749fi
11750
11751
11752fi
11753if test -z "$ac_cv_prog_DSYMUTIL"; then
11754 ac_ct_DSYMUTIL=$DSYMUTIL
11755 # Extract the first word of "dsymutil", so it can be a program name with args.
11756set dummy dsymutil; ac_word=$2
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011759if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011760 $as_echo_n "(cached) " >&6
11761else
11762 if test -n "$ac_ct_DSYMUTIL"; then
11763 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11764else
11765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11775 fi
11776done
11777 done
11778IFS=$as_save_IFS
11779
11780fi
11781fi
11782ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11783if test -n "$ac_ct_DSYMUTIL"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11785$as_echo "$ac_ct_DSYMUTIL" >&6; }
11786else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788$as_echo "no" >&6; }
11789fi
11790
11791 if test "x$ac_ct_DSYMUTIL" = x; then
11792 DSYMUTIL=":"
11793 else
11794 case $cross_compiling:$ac_tool_warned in
11795yes:)
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11798ac_tool_warned=yes ;;
11799esac
11800 DSYMUTIL=$ac_ct_DSYMUTIL
11801 fi
11802else
11803 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11804fi
11805
11806 if test -n "$ac_tool_prefix"; then
11807 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11808set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011811if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011812 $as_echo_n "(cached) " >&6
11813else
11814 if test -n "$NMEDIT"; then
11815 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11816else
11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828done
11829 done
11830IFS=$as_save_IFS
11831
11832fi
11833fi
11834NMEDIT=$ac_cv_prog_NMEDIT
11835if test -n "$NMEDIT"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11837$as_echo "$NMEDIT" >&6; }
11838else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840$as_echo "no" >&6; }
11841fi
11842
11843
11844fi
11845if test -z "$ac_cv_prog_NMEDIT"; then
11846 ac_ct_NMEDIT=$NMEDIT
11847 # Extract the first word of "nmedit", so it can be a program name with args.
11848set dummy nmedit; ac_word=$2
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011851if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011852 $as_echo_n "(cached) " >&6
11853else
11854 if test -n "$ac_ct_NMEDIT"; then
11855 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11856else
11857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858for as_dir in $PATH
11859do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11867 fi
11868done
11869 done
11870IFS=$as_save_IFS
11871
11872fi
11873fi
11874ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11875if test -n "$ac_ct_NMEDIT"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11877$as_echo "$ac_ct_NMEDIT" >&6; }
11878else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880$as_echo "no" >&6; }
11881fi
11882
11883 if test "x$ac_ct_NMEDIT" = x; then
11884 NMEDIT=":"
11885 else
11886 case $cross_compiling:$ac_tool_warned in
11887yes:)
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11890ac_tool_warned=yes ;;
11891esac
11892 NMEDIT=$ac_ct_NMEDIT
11893 fi
11894else
11895 NMEDIT="$ac_cv_prog_NMEDIT"
11896fi
11897
11898 if test -n "$ac_tool_prefix"; then
11899 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11900set dummy ${ac_tool_prefix}lipo; ac_word=$2
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011903if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011904 $as_echo_n "(cached) " >&6
11905else
11906 if test -n "$LIPO"; then
11907 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11908else
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11919 fi
11920done
11921 done
11922IFS=$as_save_IFS
11923
11924fi
11925fi
11926LIPO=$ac_cv_prog_LIPO
11927if test -n "$LIPO"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11929$as_echo "$LIPO" >&6; }
11930else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
11933fi
11934
11935
11936fi
11937if test -z "$ac_cv_prog_LIPO"; then
11938 ac_ct_LIPO=$LIPO
11939 # Extract the first word of "lipo", so it can be a program name with args.
11940set dummy lipo; ac_word=$2
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011943if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011944 $as_echo_n "(cached) " >&6
11945else
11946 if test -n "$ac_ct_LIPO"; then
11947 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11948else
11949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_prog_ac_ct_LIPO="lipo"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11959 fi
11960done
11961 done
11962IFS=$as_save_IFS
11963
11964fi
11965fi
11966ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11967if test -n "$ac_ct_LIPO"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11969$as_echo "$ac_ct_LIPO" >&6; }
11970else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
11973fi
11974
11975 if test "x$ac_ct_LIPO" = x; then
11976 LIPO=":"
11977 else
11978 case $cross_compiling:$ac_tool_warned in
11979yes:)
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11982ac_tool_warned=yes ;;
11983esac
11984 LIPO=$ac_ct_LIPO
11985 fi
11986else
11987 LIPO="$ac_cv_prog_LIPO"
11988fi
11989
11990 if test -n "$ac_tool_prefix"; then
11991 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11992set dummy ${ac_tool_prefix}otool; ac_word=$2
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011995if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011996 $as_echo_n "(cached) " >&6
11997else
11998 if test -n "$OTOOL"; then
11999 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12000else
12001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $PATH
12003do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12011 fi
12012done
12013 done
12014IFS=$as_save_IFS
12015
12016fi
12017fi
12018OTOOL=$ac_cv_prog_OTOOL
12019if test -n "$OTOOL"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12021$as_echo "$OTOOL" >&6; }
12022else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
12025fi
12026
12027
12028fi
12029if test -z "$ac_cv_prog_OTOOL"; then
12030 ac_ct_OTOOL=$OTOOL
12031 # Extract the first word of "otool", so it can be a program name with args.
12032set dummy otool; ac_word=$2
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012035if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012036 $as_echo_n "(cached) " >&6
12037else
12038 if test -n "$ac_ct_OTOOL"; then
12039 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12040else
12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $PATH
12043do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048 ac_cv_prog_ac_ct_OTOOL="otool"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052done
12053 done
12054IFS=$as_save_IFS
12055
12056fi
12057fi
12058ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12059if test -n "$ac_ct_OTOOL"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12061$as_echo "$ac_ct_OTOOL" >&6; }
12062else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064$as_echo "no" >&6; }
12065fi
12066
12067 if test "x$ac_ct_OTOOL" = x; then
12068 OTOOL=":"
12069 else
12070 case $cross_compiling:$ac_tool_warned in
12071yes:)
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12074ac_tool_warned=yes ;;
12075esac
12076 OTOOL=$ac_ct_OTOOL
12077 fi
12078else
12079 OTOOL="$ac_cv_prog_OTOOL"
12080fi
12081
12082 if test -n "$ac_tool_prefix"; then
12083 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12084set dummy ${ac_tool_prefix}otool64; ac_word=$2
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012087if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012088 $as_echo_n "(cached) " >&6
12089else
12090 if test -n "$OTOOL64"; then
12091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12092else
12093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094for as_dir in $PATH
12095do
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12103 fi
12104done
12105 done
12106IFS=$as_save_IFS
12107
12108fi
12109fi
12110OTOOL64=$ac_cv_prog_OTOOL64
12111if test -n "$OTOOL64"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12113$as_echo "$OTOOL64" >&6; }
12114else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116$as_echo "no" >&6; }
12117fi
12118
12119
12120fi
12121if test -z "$ac_cv_prog_OTOOL64"; then
12122 ac_ct_OTOOL64=$OTOOL64
12123 # Extract the first word of "otool64", so it can be a program name with args.
12124set dummy otool64; ac_word=$2
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012127if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012128 $as_echo_n "(cached) " >&6
12129else
12130 if test -n "$ac_ct_OTOOL64"; then
12131 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12132else
12133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134for as_dir in $PATH
12135do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140 ac_cv_prog_ac_ct_OTOOL64="otool64"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12143 fi
12144done
12145 done
12146IFS=$as_save_IFS
12147
12148fi
12149fi
12150ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12151if test -n "$ac_ct_OTOOL64"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12153$as_echo "$ac_ct_OTOOL64" >&6; }
12154else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156$as_echo "no" >&6; }
12157fi
12158
12159 if test "x$ac_ct_OTOOL64" = x; then
12160 OTOOL64=":"
12161 else
12162 case $cross_compiling:$ac_tool_warned in
12163yes:)
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12166ac_tool_warned=yes ;;
12167esac
12168 OTOOL64=$ac_ct_OTOOL64
12169 fi
12170else
12171 OTOOL64="$ac_cv_prog_OTOOL64"
12172fi
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12201$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012202if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012203 $as_echo_n "(cached) " >&6
12204else
12205 lt_cv_apple_cc_single_mod=no
12206 if test -z "${LT_MULTI_MODULE}"; then
12207 # By default we will add the -single_module flag. You can override
12208 # by either setting the environment variable LT_MULTI_MODULE
12209 # non-empty at configure time, or by adding -multi_module to the
12210 # link flags.
12211 rm -rf libconftest.dylib*
12212 echo "int foo(void){return 1;}" > conftest.c
12213 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12214-dynamiclib -Wl,-single_module conftest.c" >&5
12215 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12216 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12217 _lt_result=$?
12218 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12219 lt_cv_apple_cc_single_mod=yes
12220 else
12221 cat conftest.err >&5
12222 fi
12223 rm -rf libconftest.dylib*
12224 rm -f conftest.*
12225 fi
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12228$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12230$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012231if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012232 $as_echo_n "(cached) " >&6
12233else
12234 lt_cv_ld_exported_symbols_list=no
12235 save_LDFLAGS=$LDFLAGS
12236 echo "_main" > conftest.sym
12237 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239/* end confdefs.h. */
12240
12241int
12242main ()
12243{
12244
12245 ;
12246 return 0;
12247}
12248_ACEOF
12249if ac_fn_c_try_link "$LINENO"; then :
12250 lt_cv_ld_exported_symbols_list=yes
12251else
12252 lt_cv_ld_exported_symbols_list=no
12253fi
12254rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LDFLAGS="$save_LDFLAGS"
12257
12258fi
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12260$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12262$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012263if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012264 $as_echo_n "(cached) " >&6
12265else
12266 lt_cv_ld_force_load=no
12267 cat > conftest.c << _LT_EOF
12268int forced_loaded() { return 2;}
12269_LT_EOF
12270 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12271 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12272 echo "$AR cru libconftest.a conftest.o" >&5
12273 $AR cru libconftest.a conftest.o 2>&5
12274 echo "$RANLIB libconftest.a" >&5
12275 $RANLIB libconftest.a 2>&5
12276 cat > conftest.c << _LT_EOF
12277int main() { return 0;}
12278_LT_EOF
12279 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12280 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12281 _lt_result=$?
12282 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12283 lt_cv_ld_force_load=yes
12284 else
12285 cat conftest.err >&5
12286 fi
12287 rm -f conftest.err libconftest.a conftest conftest.c
12288 rm -rf conftest.dSYM
12289
12290fi
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12292$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012293 case $host_os in
12294 rhapsody* | darwin1.[012])
12295 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12296 darwin1.*)
12297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12298 darwin*) # darwin 5.x on
12299 # if running on 10.5 or later, the deployment target defaults
12300 # to the OS version, if on x86, and 10.4, the deployment
12301 # target defaults to 10.4. Don't you love it?
12302 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12303 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12304 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12305 10.[012]*)
12306 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12307 10.*)
12308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12309 esac
12310 ;;
12311 esac
12312 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12313 _lt_dar_single_mod='$single_module'
12314 fi
12315 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12316 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12317 else
12318 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12319 fi
cristy0c60a692010-11-04 01:09:47 +000012320 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012321 _lt_dsymutil='~$DSYMUTIL $lib || :'
12322 else
12323 _lt_dsymutil=
12324 fi
12325 ;;
12326 esac
12327
12328for ac_header in dlfcn.h
12329do :
12330 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12331"
cristyda16f162011-02-19 23:52:17 +000012332if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012333 cat >>confdefs.h <<_ACEOF
12334#define HAVE_DLFCN_H 1
12335_ACEOF
12336
12337fi
12338
12339done
12340
12341
12342
cristy73bd4a52010-10-05 11:24:23 +000012343
cristyda16f162011-02-19 23:52:17 +000012344func_stripname_cnf ()
12345{
12346 case ${2} in
12347 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12348 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12349 esac
12350} # func_stripname_cnf
12351
12352
12353
cristy73bd4a52010-10-05 11:24:23 +000012354
12355
12356# Set options
12357enable_win32_dll=yes
12358
12359case $host in
cristy0c60a692010-11-04 01:09:47 +000012360*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012361 if test -n "$ac_tool_prefix"; then
12362 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12363set dummy ${ac_tool_prefix}as; ac_word=$2
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012366if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012367 $as_echo_n "(cached) " >&6
12368else
12369 if test -n "$AS"; then
12370 ac_cv_prog_AS="$AS" # Let the user override the test.
12371else
12372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373for as_dir in $PATH
12374do
12375 IFS=$as_save_IFS
12376 test -z "$as_dir" && as_dir=.
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379 ac_cv_prog_AS="${ac_tool_prefix}as"
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381 break 2
12382 fi
12383done
12384 done
12385IFS=$as_save_IFS
12386
12387fi
12388fi
12389AS=$ac_cv_prog_AS
12390if test -n "$AS"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12392$as_echo "$AS" >&6; }
12393else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395$as_echo "no" >&6; }
12396fi
12397
12398
12399fi
12400if test -z "$ac_cv_prog_AS"; then
12401 ac_ct_AS=$AS
12402 # Extract the first word of "as", so it can be a program name with args.
12403set dummy as; ac_word=$2
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012406if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012407 $as_echo_n "(cached) " >&6
12408else
12409 if test -n "$ac_ct_AS"; then
12410 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12411else
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_prog_ac_ct_AS="as"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423done
12424 done
12425IFS=$as_save_IFS
12426
12427fi
12428fi
12429ac_ct_AS=$ac_cv_prog_ac_ct_AS
12430if test -n "$ac_ct_AS"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12432$as_echo "$ac_ct_AS" >&6; }
12433else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
12436fi
12437
12438 if test "x$ac_ct_AS" = x; then
12439 AS="false"
12440 else
12441 case $cross_compiling:$ac_tool_warned in
12442yes:)
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12445ac_tool_warned=yes ;;
12446esac
12447 AS=$ac_ct_AS
12448 fi
12449else
12450 AS="$ac_cv_prog_AS"
12451fi
12452
12453 if test -n "$ac_tool_prefix"; then
12454 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12455set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012458if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012459 $as_echo_n "(cached) " >&6
12460else
12461 if test -n "$DLLTOOL"; then
12462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12463else
12464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465for as_dir in $PATH
12466do
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12474 fi
12475done
12476 done
12477IFS=$as_save_IFS
12478
12479fi
12480fi
12481DLLTOOL=$ac_cv_prog_DLLTOOL
12482if test -n "$DLLTOOL"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12484$as_echo "$DLLTOOL" >&6; }
12485else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
12488fi
12489
12490
12491fi
12492if test -z "$ac_cv_prog_DLLTOOL"; then
12493 ac_ct_DLLTOOL=$DLLTOOL
12494 # Extract the first word of "dlltool", so it can be a program name with args.
12495set dummy dlltool; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012498if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$ac_ct_DLLTOOL"; then
12502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12522if test -n "$ac_ct_DLLTOOL"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12524$as_echo "$ac_ct_DLLTOOL" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530 if test "x$ac_ct_DLLTOOL" = x; then
12531 DLLTOOL="false"
12532 else
12533 case $cross_compiling:$ac_tool_warned in
12534yes:)
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537ac_tool_warned=yes ;;
12538esac
12539 DLLTOOL=$ac_ct_DLLTOOL
12540 fi
12541else
12542 DLLTOOL="$ac_cv_prog_DLLTOOL"
12543fi
12544
12545 if test -n "$ac_tool_prefix"; then
12546 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12547set dummy ${ac_tool_prefix}objdump; ac_word=$2
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012550if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012551 $as_echo_n "(cached) " >&6
12552else
12553 if test -n "$OBJDUMP"; then
12554 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12555else
12556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557for as_dir in $PATH
12558do
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12563 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 break 2
12566 fi
12567done
12568 done
12569IFS=$as_save_IFS
12570
12571fi
12572fi
12573OBJDUMP=$ac_cv_prog_OBJDUMP
12574if test -n "$OBJDUMP"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12576$as_echo "$OBJDUMP" >&6; }
12577else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579$as_echo "no" >&6; }
12580fi
12581
12582
12583fi
12584if test -z "$ac_cv_prog_OBJDUMP"; then
12585 ac_ct_OBJDUMP=$OBJDUMP
12586 # Extract the first word of "objdump", so it can be a program name with args.
12587set dummy objdump; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012590if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012591 $as_echo_n "(cached) " >&6
12592else
12593 if test -n "$ac_ct_OBJDUMP"; then
12594 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12595else
12596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607done
12608 done
12609IFS=$as_save_IFS
12610
12611fi
12612fi
12613ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12614if test -n "$ac_ct_OBJDUMP"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12616$as_echo "$ac_ct_OBJDUMP" >&6; }
12617else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622 if test "x$ac_ct_OBJDUMP" = x; then
12623 OBJDUMP="false"
12624 else
12625 case $cross_compiling:$ac_tool_warned in
12626yes:)
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12629ac_tool_warned=yes ;;
12630esac
12631 OBJDUMP=$ac_ct_OBJDUMP
12632 fi
12633else
12634 OBJDUMP="$ac_cv_prog_OBJDUMP"
12635fi
12636
12637 ;;
12638esac
12639
12640test -z "$AS" && AS=as
12641
12642
12643
12644
12645
12646test -z "$DLLTOOL" && DLLTOOL=dlltool
12647
12648
12649
12650
12651
12652test -z "$OBJDUMP" && OBJDUMP=objdump
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662 # Check whether --enable-shared was given.
12663if test "${enable_shared+set}" = set; then :
12664 enableval=$enable_shared; p=${PACKAGE-default}
12665 case $enableval in
12666 yes) enable_shared=yes ;;
12667 no) enable_shared=no ;;
12668 *)
12669 enable_shared=no
12670 # Look at the argument we got. We use all the common list separators.
12671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12672 for pkg in $enableval; do
12673 IFS="$lt_save_ifs"
12674 if test "X$pkg" = "X$p"; then
12675 enable_shared=yes
12676 fi
12677 done
12678 IFS="$lt_save_ifs"
12679 ;;
12680 esac
12681else
12682 enable_shared=yes
12683fi
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693 # Check whether --enable-static was given.
12694if test "${enable_static+set}" = set; then :
12695 enableval=$enable_static; p=${PACKAGE-default}
12696 case $enableval in
12697 yes) enable_static=yes ;;
12698 no) enable_static=no ;;
12699 *)
12700 enable_static=no
12701 # Look at the argument we got. We use all the common list separators.
12702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12703 for pkg in $enableval; do
12704 IFS="$lt_save_ifs"
12705 if test "X$pkg" = "X$p"; then
12706 enable_static=yes
12707 fi
12708 done
12709 IFS="$lt_save_ifs"
12710 ;;
12711 esac
12712else
12713 enable_static=yes
12714fi
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725# Check whether --with-pic was given.
12726if test "${with_pic+set}" = set; then :
12727 withval=$with_pic; pic_mode="$withval"
12728else
12729 pic_mode=default
12730fi
12731
12732
12733test -z "$pic_mode" && pic_mode=default
12734
12735
12736
12737
12738
12739
12740
12741 # Check whether --enable-fast-install was given.
12742if test "${enable_fast_install+set}" = set; then :
12743 enableval=$enable_fast_install; p=${PACKAGE-default}
12744 case $enableval in
12745 yes) enable_fast_install=yes ;;
12746 no) enable_fast_install=no ;;
12747 *)
12748 enable_fast_install=no
12749 # Look at the argument we got. We use all the common list separators.
12750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12751 for pkg in $enableval; do
12752 IFS="$lt_save_ifs"
12753 if test "X$pkg" = "X$p"; then
12754 enable_fast_install=yes
12755 fi
12756 done
12757 IFS="$lt_save_ifs"
12758 ;;
12759 esac
12760else
12761 enable_fast_install=yes
12762fi
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774# This can be used to rebuild libtool when needed
12775LIBTOOL_DEPS="$ltmain"
12776
12777# Always use our own libtool.
12778LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
cristy0c60a692010-11-04 01:09:47 +000012804
cristy73bd4a52010-10-05 11:24:23 +000012805test -z "$LN_S" && LN_S="ln -s"
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820if test -n "${ZSH_VERSION+set}" ; then
12821 setopt NO_GLOB_SUBST
12822fi
12823
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12825$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012826if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012827 $as_echo_n "(cached) " >&6
12828else
12829 rm -f .libs 2>/dev/null
12830mkdir .libs 2>/dev/null
12831if test -d .libs; then
12832 lt_cv_objdir=.libs
12833else
12834 # MS-DOS does not allow filenames that begin with a dot.
12835 lt_cv_objdir=_libs
12836fi
12837rmdir .libs 2>/dev/null
12838fi
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12840$as_echo "$lt_cv_objdir" >&6; }
12841objdir=$lt_cv_objdir
12842
12843
12844
12845
12846
12847cat >>confdefs.h <<_ACEOF
12848#define LT_OBJDIR "$lt_cv_objdir/"
12849_ACEOF
12850
12851
12852
12853
cristy73bd4a52010-10-05 11:24:23 +000012854case $host_os in
12855aix3*)
12856 # AIX sometimes has problems with the GCC collect2 program. For some
12857 # reason, if we set the COLLECT_NAMES environment variable, the problems
12858 # vanish in a puff of smoke.
12859 if test "X${COLLECT_NAMES+set}" != Xset; then
12860 COLLECT_NAMES=
12861 export COLLECT_NAMES
12862 fi
12863 ;;
12864esac
12865
cristy73bd4a52010-10-05 11:24:23 +000012866# Global variables:
12867ofile=libtool
12868can_build_shared=yes
12869
12870# All known linkers require a `.a' archive for static linking (except MSVC,
12871# which needs '.lib').
12872libext=a
12873
12874with_gnu_ld="$lt_cv_prog_gnu_ld"
12875
12876old_CC="$CC"
12877old_CFLAGS="$CFLAGS"
12878
12879# Set sane defaults for various variables
12880test -z "$CC" && CC=cc
12881test -z "$LTCC" && LTCC=$CC
12882test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12883test -z "$LD" && LD=ld
12884test -z "$ac_objext" && ac_objext=o
12885
12886for cc_temp in $compiler""; do
12887 case $cc_temp in
12888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12890 \-*) ;;
12891 *) break;;
12892 esac
12893done
cristy0c60a692010-11-04 01:09:47 +000012894cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012895
12896
12897# Only perform the check for file, if the check method requires it
12898test -z "$MAGIC_CMD" && MAGIC_CMD=file
12899case $deplibs_check_method in
12900file_magic*)
12901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12903$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012904if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012905 $as_echo_n "(cached) " >&6
12906else
12907 case $MAGIC_CMD in
12908[\\/*] | ?:[\\/]*)
12909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12910 ;;
12911*)
12912 lt_save_MAGIC_CMD="$MAGIC_CMD"
12913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12915 for ac_dir in $ac_dummy; do
12916 IFS="$lt_save_ifs"
12917 test -z "$ac_dir" && ac_dir=.
12918 if test -f $ac_dir/${ac_tool_prefix}file; then
12919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12920 if test -n "$file_magic_test_file"; then
12921 case $deplibs_check_method in
12922 "file_magic "*)
12923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12926 $EGREP "$file_magic_regex" > /dev/null; then
12927 :
12928 else
12929 cat <<_LT_EOF 1>&2
12930
12931*** Warning: the command libtool uses to detect shared libraries,
12932*** $file_magic_cmd, produces output that libtool cannot recognize.
12933*** The result is that libtool may fail to recognize shared libraries
12934*** as such. This will affect the creation of libtool libraries that
12935*** depend on shared libraries, but programs linked with such libtool
12936*** libraries will work regardless of this problem. Nevertheless, you
12937*** may want to report the problem to your system manager and/or to
12938*** bug-libtool@gnu.org
12939
12940_LT_EOF
12941 fi ;;
12942 esac
12943 fi
12944 break
12945 fi
12946 done
12947 IFS="$lt_save_ifs"
12948 MAGIC_CMD="$lt_save_MAGIC_CMD"
12949 ;;
12950esac
12951fi
12952
12953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12954if test -n "$MAGIC_CMD"; then
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12956$as_echo "$MAGIC_CMD" >&6; }
12957else
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959$as_echo "no" >&6; }
12960fi
12961
12962
12963
12964
12965
12966if test -z "$lt_cv_path_MAGIC_CMD"; then
12967 if test -n "$ac_tool_prefix"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12969$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012970if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012971 $as_echo_n "(cached) " >&6
12972else
12973 case $MAGIC_CMD in
12974[\\/*] | ?:[\\/]*)
12975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12976 ;;
12977*)
12978 lt_save_MAGIC_CMD="$MAGIC_CMD"
12979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12981 for ac_dir in $ac_dummy; do
12982 IFS="$lt_save_ifs"
12983 test -z "$ac_dir" && ac_dir=.
12984 if test -f $ac_dir/file; then
12985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12986 if test -n "$file_magic_test_file"; then
12987 case $deplibs_check_method in
12988 "file_magic "*)
12989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12992 $EGREP "$file_magic_regex" > /dev/null; then
12993 :
12994 else
12995 cat <<_LT_EOF 1>&2
12996
12997*** Warning: the command libtool uses to detect shared libraries,
12998*** $file_magic_cmd, produces output that libtool cannot recognize.
12999*** The result is that libtool may fail to recognize shared libraries
13000*** as such. This will affect the creation of libtool libraries that
13001*** depend on shared libraries, but programs linked with such libtool
13002*** libraries will work regardless of this problem. Nevertheless, you
13003*** may want to report the problem to your system manager and/or to
13004*** bug-libtool@gnu.org
13005
13006_LT_EOF
13007 fi ;;
13008 esac
13009 fi
13010 break
13011 fi
13012 done
13013 IFS="$lt_save_ifs"
13014 MAGIC_CMD="$lt_save_MAGIC_CMD"
13015 ;;
13016esac
13017fi
13018
13019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13020if test -n "$MAGIC_CMD"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13022$as_echo "$MAGIC_CMD" >&6; }
13023else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026fi
13027
13028
13029 else
13030 MAGIC_CMD=:
13031 fi
13032fi
13033
13034 fi
13035 ;;
13036esac
13037
13038# Use C for the default configuration in the libtool script
13039
13040lt_save_CC="$CC"
13041ac_ext=c
13042ac_cpp='$CPP $CPPFLAGS'
13043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046
13047
13048# Source file extension for C test sources.
13049ac_ext=c
13050
13051# Object file extension for compiled C test sources.
13052objext=o
13053objext=$objext
13054
13055# Code to be used in simple compile tests
13056lt_simple_compile_test_code="int some_variable = 0;"
13057
13058# Code to be used in simple link tests
13059lt_simple_link_test_code='int main(){return(0);}'
13060
13061
13062
13063
13064
13065
13066
13067# If no C compiler was specified, use CC.
13068LTCC=${LTCC-"$CC"}
13069
13070# If no C compiler flags were specified, use CFLAGS.
13071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13072
13073# Allow CC to be a program name with arguments.
13074compiler=$CC
13075
13076# Save the default compiler, since it gets overwritten when the other
13077# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13078compiler_DEFAULT=$CC
13079
13080# save warnings/boilerplate of simple test code
13081ac_outfile=conftest.$ac_objext
13082echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13083eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13084_lt_compiler_boilerplate=`cat conftest.err`
13085$RM conftest*
13086
13087ac_outfile=conftest.$ac_objext
13088echo "$lt_simple_link_test_code" >conftest.$ac_ext
13089eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13090_lt_linker_boilerplate=`cat conftest.err`
13091$RM -r conftest*
13092
13093
13094## CAVEAT EMPTOR:
13095## There is no encapsulation within the following macros, do not change
13096## the running order or otherwise move them around unless you know exactly
13097## what you are doing...
13098if test -n "$compiler"; then
13099
13100lt_prog_compiler_no_builtin_flag=
13101
13102if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013103 case $cc_basename in
13104 nvcc*)
13105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13106 *)
13107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13108 esac
cristy73bd4a52010-10-05 11:24:23 +000013109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13111$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013112if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013113 $as_echo_n "(cached) " >&6
13114else
13115 lt_cv_prog_compiler_rtti_exceptions=no
13116 ac_outfile=conftest.$ac_objext
13117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13118 lt_compiler_flag="-fno-rtti -fno-exceptions"
13119 # Insert the option either (1) after the last *FLAGS variable, or
13120 # (2) before a word containing "conftest.", or (3) at the end.
13121 # Note that $ac_compile itself does not contain backslashes and begins
13122 # with a dollar sign (not a hyphen), so the echo should work correctly.
13123 # The option is referenced via a variable to avoid confusing sed.
13124 lt_compile=`echo "$ac_compile" | $SED \
13125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13127 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013129 (eval "$lt_compile" 2>conftest.err)
13130 ac_status=$?
13131 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013133 if (exit $ac_status) && test -s "$ac_outfile"; then
13134 # The compiler can only warn and ignore the option if not recognized
13135 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13139 lt_cv_prog_compiler_rtti_exceptions=yes
13140 fi
13141 fi
13142 $RM conftest*
13143
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13146$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13147
13148if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13150else
13151 :
13152fi
13153
13154fi
13155
13156
13157
13158
13159
13160
13161 lt_prog_compiler_wl=
13162lt_prog_compiler_pic=
13163lt_prog_compiler_static=
13164
cristy73bd4a52010-10-05 11:24:23 +000013165
13166 if test "$GCC" = yes; then
13167 lt_prog_compiler_wl='-Wl,'
13168 lt_prog_compiler_static='-static'
13169
13170 case $host_os in
13171 aix*)
13172 # All AIX code is PIC.
13173 if test "$host_cpu" = ia64; then
13174 # AIX 5 now supports IA64 processor
13175 lt_prog_compiler_static='-Bstatic'
13176 fi
13177 ;;
13178
13179 amigaos*)
13180 case $host_cpu in
13181 powerpc)
13182 # see comment about AmigaOS4 .so support
13183 lt_prog_compiler_pic='-fPIC'
13184 ;;
13185 m68k)
13186 # FIXME: we need at least 68020 code to build shared libraries, but
13187 # adding the `-m68020' flag to GCC prevents building anything better,
13188 # like `-m68040'.
13189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13190 ;;
13191 esac
13192 ;;
13193
13194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13195 # PIC is the default for these OSes.
13196 ;;
13197
13198 mingw* | cygwin* | pw32* | os2* | cegcc*)
13199 # This hack is so that the source file can tell whether it is being
13200 # built for inclusion in a dll (and should export symbols for example).
13201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13202 # (--disable-auto-import) libraries
13203 lt_prog_compiler_pic='-DDLL_EXPORT'
13204 ;;
13205
13206 darwin* | rhapsody*)
13207 # PIC is the default on this platform
13208 # Common symbols not allowed in MH_DYLIB files
13209 lt_prog_compiler_pic='-fno-common'
13210 ;;
13211
cristy0c60a692010-11-04 01:09:47 +000013212 haiku*)
13213 # PIC is the default for Haiku.
13214 # The "-static" flag exists, but is broken.
13215 lt_prog_compiler_static=
13216 ;;
13217
cristy73bd4a52010-10-05 11:24:23 +000013218 hpux*)
13219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13221 # sets the default TLS model and affects inlining.
13222 case $host_cpu in
13223 hppa*64*)
13224 # +Z the default
13225 ;;
13226 *)
13227 lt_prog_compiler_pic='-fPIC'
13228 ;;
13229 esac
13230 ;;
13231
13232 interix[3-9]*)
13233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13234 # Instead, we relocate shared libraries at runtime.
13235 ;;
13236
13237 msdosdjgpp*)
13238 # Just because we use GCC doesn't mean we suddenly get shared libraries
13239 # on systems that don't support them.
13240 lt_prog_compiler_can_build_shared=no
13241 enable_shared=no
13242 ;;
13243
13244 *nto* | *qnx*)
13245 # QNX uses GNU C++, but need to define -shared option too, otherwise
13246 # it will coredump.
13247 lt_prog_compiler_pic='-fPIC -shared'
13248 ;;
13249
13250 sysv4*MP*)
13251 if test -d /usr/nec; then
13252 lt_prog_compiler_pic=-Kconform_pic
13253 fi
13254 ;;
13255
13256 *)
13257 lt_prog_compiler_pic='-fPIC'
13258 ;;
13259 esac
cristy0c60a692010-11-04 01:09:47 +000013260
13261 case $cc_basename in
13262 nvcc*) # Cuda Compiler Driver 2.2
13263 lt_prog_compiler_wl='-Xlinker '
13264 lt_prog_compiler_pic='-Xcompiler -fPIC'
13265 ;;
13266 esac
cristy73bd4a52010-10-05 11:24:23 +000013267 else
13268 # PORTME Check for flag to pass linker flags through the system compiler.
13269 case $host_os in
13270 aix*)
13271 lt_prog_compiler_wl='-Wl,'
13272 if test "$host_cpu" = ia64; then
13273 # AIX 5 now supports IA64 processor
13274 lt_prog_compiler_static='-Bstatic'
13275 else
13276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13277 fi
13278 ;;
13279
13280 mingw* | cygwin* | pw32* | os2* | cegcc*)
13281 # This hack is so that the source file can tell whether it is being
13282 # built for inclusion in a dll (and should export symbols for example).
13283 lt_prog_compiler_pic='-DDLL_EXPORT'
13284 ;;
13285
13286 hpux9* | hpux10* | hpux11*)
13287 lt_prog_compiler_wl='-Wl,'
13288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13289 # not for PA HP-UX.
13290 case $host_cpu in
13291 hppa*64*|ia64*)
13292 # +Z the default
13293 ;;
13294 *)
13295 lt_prog_compiler_pic='+Z'
13296 ;;
13297 esac
13298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13299 lt_prog_compiler_static='${wl}-a ${wl}archive'
13300 ;;
13301
13302 irix5* | irix6* | nonstopux*)
13303 lt_prog_compiler_wl='-Wl,'
13304 # PIC (with -KPIC) is the default.
13305 lt_prog_compiler_static='-non_shared'
13306 ;;
13307
cristy0c60a692010-11-04 01:09:47 +000013308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013309 case $cc_basename in
13310 # old Intel for x86_64 which still supported -KPIC.
13311 ecc*)
13312 lt_prog_compiler_wl='-Wl,'
13313 lt_prog_compiler_pic='-KPIC'
13314 lt_prog_compiler_static='-static'
13315 ;;
13316 # icc used to be incompatible with GCC.
13317 # ICC 10 doesn't accept -KPIC any more.
13318 icc* | ifort*)
13319 lt_prog_compiler_wl='-Wl,'
13320 lt_prog_compiler_pic='-fPIC'
13321 lt_prog_compiler_static='-static'
13322 ;;
13323 # Lahey Fortran 8.1.
13324 lf95*)
13325 lt_prog_compiler_wl='-Wl,'
13326 lt_prog_compiler_pic='--shared'
13327 lt_prog_compiler_static='--static'
13328 ;;
cristyda16f162011-02-19 23:52:17 +000013329 nagfor*)
13330 # NAG Fortran compiler
13331 lt_prog_compiler_wl='-Wl,-Wl,,'
13332 lt_prog_compiler_pic='-PIC'
13333 lt_prog_compiler_static='-Bstatic'
13334 ;;
cristy0c60a692010-11-04 01:09:47 +000013335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013336 # Portland Group compilers (*not* the Pentium gcc compiler,
13337 # which looks to be a dead project)
13338 lt_prog_compiler_wl='-Wl,'
13339 lt_prog_compiler_pic='-fpic'
13340 lt_prog_compiler_static='-Bstatic'
13341 ;;
13342 ccc*)
13343 lt_prog_compiler_wl='-Wl,'
13344 # All Alpha code is PIC.
13345 lt_prog_compiler_static='-non_shared'
13346 ;;
cristy0c60a692010-11-04 01:09:47 +000013347 xl* | bgxl* | bgf* | mpixl*)
13348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013349 lt_prog_compiler_wl='-Wl,'
13350 lt_prog_compiler_pic='-qpic'
13351 lt_prog_compiler_static='-qstaticlink'
13352 ;;
13353 *)
13354 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013355 *Sun\ F* | *Sun*Fortran*)
13356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13357 lt_prog_compiler_pic='-KPIC'
13358 lt_prog_compiler_static='-Bstatic'
13359 lt_prog_compiler_wl=''
13360 ;;
cristy73bd4a52010-10-05 11:24:23 +000013361 *Sun\ C*)
13362 # Sun C 5.9
13363 lt_prog_compiler_pic='-KPIC'
13364 lt_prog_compiler_static='-Bstatic'
13365 lt_prog_compiler_wl='-Wl,'
13366 ;;
cristy73bd4a52010-10-05 11:24:23 +000013367 esac
13368 ;;
13369 esac
13370 ;;
13371
13372 newsos6)
13373 lt_prog_compiler_pic='-KPIC'
13374 lt_prog_compiler_static='-Bstatic'
13375 ;;
13376
13377 *nto* | *qnx*)
13378 # QNX uses GNU C++, but need to define -shared option too, otherwise
13379 # it will coredump.
13380 lt_prog_compiler_pic='-fPIC -shared'
13381 ;;
13382
13383 osf3* | osf4* | osf5*)
13384 lt_prog_compiler_wl='-Wl,'
13385 # All OSF/1 code is PIC.
13386 lt_prog_compiler_static='-non_shared'
13387 ;;
13388
13389 rdos*)
13390 lt_prog_compiler_static='-non_shared'
13391 ;;
13392
13393 solaris*)
13394 lt_prog_compiler_pic='-KPIC'
13395 lt_prog_compiler_static='-Bstatic'
13396 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013397 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013398 lt_prog_compiler_wl='-Qoption ld ';;
13399 *)
13400 lt_prog_compiler_wl='-Wl,';;
13401 esac
13402 ;;
13403
13404 sunos4*)
13405 lt_prog_compiler_wl='-Qoption ld '
13406 lt_prog_compiler_pic='-PIC'
13407 lt_prog_compiler_static='-Bstatic'
13408 ;;
13409
13410 sysv4 | sysv4.2uw2* | sysv4.3*)
13411 lt_prog_compiler_wl='-Wl,'
13412 lt_prog_compiler_pic='-KPIC'
13413 lt_prog_compiler_static='-Bstatic'
13414 ;;
13415
13416 sysv4*MP*)
13417 if test -d /usr/nec ;then
13418 lt_prog_compiler_pic='-Kconform_pic'
13419 lt_prog_compiler_static='-Bstatic'
13420 fi
13421 ;;
13422
13423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13424 lt_prog_compiler_wl='-Wl,'
13425 lt_prog_compiler_pic='-KPIC'
13426 lt_prog_compiler_static='-Bstatic'
13427 ;;
13428
13429 unicos*)
13430 lt_prog_compiler_wl='-Wl,'
13431 lt_prog_compiler_can_build_shared=no
13432 ;;
13433
13434 uts4*)
13435 lt_prog_compiler_pic='-pic'
13436 lt_prog_compiler_static='-Bstatic'
13437 ;;
13438
13439 *)
13440 lt_prog_compiler_can_build_shared=no
13441 ;;
13442 esac
13443 fi
13444
13445case $host_os in
13446 # For platforms which do not support PIC, -DPIC is meaningless:
13447 *djgpp*)
13448 lt_prog_compiler_pic=
13449 ;;
13450 *)
13451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13452 ;;
13453esac
cristy73bd4a52010-10-05 11:24:23 +000013454
cristyda16f162011-02-19 23:52:17 +000013455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13456$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13457if ${lt_cv_prog_compiler_pic+:} false; then :
13458 $as_echo_n "(cached) " >&6
13459else
13460 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13461fi
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13463$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13464lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013465
13466#
13467# Check to make sure the PIC flag actually works.
13468#
13469if test -n "$lt_prog_compiler_pic"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13471$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013472if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013473 $as_echo_n "(cached) " >&6
13474else
13475 lt_cv_prog_compiler_pic_works=no
13476 ac_outfile=conftest.$ac_objext
13477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13479 # Insert the option either (1) after the last *FLAGS variable, or
13480 # (2) before a word containing "conftest.", or (3) at the end.
13481 # Note that $ac_compile itself does not contain backslashes and begins
13482 # with a dollar sign (not a hyphen), so the echo should work correctly.
13483 # The option is referenced via a variable to avoid confusing sed.
13484 lt_compile=`echo "$ac_compile" | $SED \
13485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13487 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013489 (eval "$lt_compile" 2>conftest.err)
13490 ac_status=$?
13491 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013493 if (exit $ac_status) && test -s "$ac_outfile"; then
13494 # The compiler can only warn and ignore the option if not recognized
13495 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13499 lt_cv_prog_compiler_pic_works=yes
13500 fi
13501 fi
13502 $RM conftest*
13503
13504fi
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13506$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13507
13508if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13509 case $lt_prog_compiler_pic in
13510 "" | " "*) ;;
13511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13512 esac
13513else
13514 lt_prog_compiler_pic=
13515 lt_prog_compiler_can_build_shared=no
13516fi
13517
13518fi
13519
13520
13521
13522
13523
13524
cristyda16f162011-02-19 23:52:17 +000013525
13526
13527
13528
13529
cristy73bd4a52010-10-05 11:24:23 +000013530#
13531# Check to make sure the static flag actually works.
13532#
13533wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13535$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013536if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013537 $as_echo_n "(cached) " >&6
13538else
13539 lt_cv_prog_compiler_static_works=no
13540 save_LDFLAGS="$LDFLAGS"
13541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13544 # The linker can only warn and ignore the option if not recognized
13545 # So say no if there are warnings
13546 if test -s conftest.err; then
13547 # Append any errors to the config.log.
13548 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551 if diff conftest.exp conftest.er2 >/dev/null; then
13552 lt_cv_prog_compiler_static_works=yes
13553 fi
13554 else
13555 lt_cv_prog_compiler_static_works=yes
13556 fi
13557 fi
13558 $RM -r conftest*
13559 LDFLAGS="$save_LDFLAGS"
13560
13561fi
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13563$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13564
13565if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13566 :
13567else
13568 lt_prog_compiler_static=
13569fi
13570
13571
13572
13573
13574
13575
13576
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013579if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013580 $as_echo_n "(cached) " >&6
13581else
13582 lt_cv_prog_compiler_c_o=no
13583 $RM -r conftest 2>/dev/null
13584 mkdir conftest
13585 cd conftest
13586 mkdir out
13587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13588
13589 lt_compiler_flag="-o out/conftest2.$ac_objext"
13590 # Insert the option either (1) after the last *FLAGS variable, or
13591 # (2) before a word containing "conftest.", or (3) at the end.
13592 # Note that $ac_compile itself does not contain backslashes and begins
13593 # with a dollar sign (not a hyphen), so the echo should work correctly.
13594 lt_compile=`echo "$ac_compile" | $SED \
13595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13597 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013599 (eval "$lt_compile" 2>out/conftest.err)
13600 ac_status=$?
13601 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13604 then
13605 # The compiler can only warn and ignore the option if not recognized
13606 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13610 lt_cv_prog_compiler_c_o=yes
13611 fi
13612 fi
13613 chmod u+w . 2>&5
13614 $RM conftest*
13615 # SGI C++ compiler will create directory out/ii_files/ for
13616 # template instantiation
13617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13618 $RM out/* && rmdir out
13619 cd ..
13620 $RM -r conftest
13621 $RM conftest*
13622
13623fi
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13625$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13626
13627
13628
13629
13630
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013634if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013635 $as_echo_n "(cached) " >&6
13636else
13637 lt_cv_prog_compiler_c_o=no
13638 $RM -r conftest 2>/dev/null
13639 mkdir conftest
13640 cd conftest
13641 mkdir out
13642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13643
13644 lt_compiler_flag="-o out/conftest2.$ac_objext"
13645 # Insert the option either (1) after the last *FLAGS variable, or
13646 # (2) before a word containing "conftest.", or (3) at the end.
13647 # Note that $ac_compile itself does not contain backslashes and begins
13648 # with a dollar sign (not a hyphen), so the echo should work correctly.
13649 lt_compile=`echo "$ac_compile" | $SED \
13650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13652 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013654 (eval "$lt_compile" 2>out/conftest.err)
13655 ac_status=$?
13656 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13659 then
13660 # The compiler can only warn and ignore the option if not recognized
13661 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13665 lt_cv_prog_compiler_c_o=yes
13666 fi
13667 fi
13668 chmod u+w . 2>&5
13669 $RM conftest*
13670 # SGI C++ compiler will create directory out/ii_files/ for
13671 # template instantiation
13672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13673 $RM out/* && rmdir out
13674 cd ..
13675 $RM -r conftest
13676 $RM conftest*
13677
13678fi
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13680$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13681
13682
13683
13684
13685hard_links="nottested"
13686if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13687 # do not overwrite the value of need_locks provided by the user
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13689$as_echo_n "checking if we can lock with hard links... " >&6; }
13690 hard_links=yes
13691 $RM conftest*
13692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13693 touch conftest.a
13694 ln conftest.a conftest.b 2>&5 || hard_links=no
13695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13697$as_echo "$hard_links" >&6; }
13698 if test "$hard_links" = no; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13700$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13701 need_locks=warn
13702 fi
13703else
13704 need_locks=no
13705fi
13706
13707
13708
13709
13710
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13713$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13714
13715 runpath_var=
13716 allow_undefined_flag=
13717 always_export_symbols=no
13718 archive_cmds=
13719 archive_expsym_cmds=
13720 compiler_needs_object=no
13721 enable_shared_with_static_runtimes=no
13722 export_dynamic_flag_spec=
13723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13724 hardcode_automatic=no
13725 hardcode_direct=no
13726 hardcode_direct_absolute=no
13727 hardcode_libdir_flag_spec=
13728 hardcode_libdir_flag_spec_ld=
13729 hardcode_libdir_separator=
13730 hardcode_minus_L=no
13731 hardcode_shlibpath_var=unsupported
13732 inherit_rpath=no
13733 link_all_deplibs=unknown
13734 module_cmds=
13735 module_expsym_cmds=
13736 old_archive_from_new_cmds=
13737 old_archive_from_expsyms_cmds=
13738 thread_safe_flag_spec=
13739 whole_archive_flag_spec=
13740 # include_expsyms should be a list of space-separated symbols to be *always*
13741 # included in the symbol list
13742 include_expsyms=
13743 # exclude_expsyms can be an extended regexp of symbols to exclude
13744 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13745 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13746 # as well as any symbol that contains `d'.
13747 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13748 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13749 # platforms (ab)use it in PIC code, but their linkers get confused if
13750 # the symbol is explicitly referenced. Since portable code cannot
13751 # rely on this symbol name, it's probably fine to never include it in
13752 # preloaded symbol tables.
13753 # Exclude shared library initialization/finalization symbols.
13754 extract_expsyms_cmds=
13755
13756 case $host_os in
13757 cygwin* | mingw* | pw32* | cegcc*)
13758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13759 # When not using gcc, we currently assume that we are using
13760 # Microsoft Visual C++.
13761 if test "$GCC" != yes; then
13762 with_gnu_ld=no
13763 fi
13764 ;;
13765 interix*)
13766 # we just hope/assume this is gcc and not c89 (= MSVC++)
13767 with_gnu_ld=yes
13768 ;;
13769 openbsd*)
13770 with_gnu_ld=no
13771 ;;
13772 esac
13773
13774 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013775
13776 # On some targets, GNU ld is compatible enough with the native linker
13777 # that we're better off using the native interface for both.
13778 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013779 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013780 case $host_os in
13781 aix*)
13782 # The AIX port of GNU ld has always aspired to compatibility
13783 # with the native linker. However, as the warning in the GNU ld
13784 # block says, versions before 2.19.5* couldn't really create working
13785 # shared libraries, regardless of the interface used.
13786 case `$LD -v 2>&1` in
13787 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13788 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13789 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13790 *)
13791 lt_use_gnu_ld_interface=yes
13792 ;;
13793 esac
13794 ;;
13795 *)
13796 lt_use_gnu_ld_interface=yes
13797 ;;
13798 esac
13799 fi
13800
13801 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013802 # If archive_cmds runs LD, not CC, wlarc should be empty
13803 wlarc='${wl}'
13804
13805 # Set some defaults for GNU ld with shared library support. These
13806 # are reset later if shared libraries are not supported. Putting them
13807 # here allows them to be overridden if necessary.
13808 runpath_var=LD_RUN_PATH
13809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13810 export_dynamic_flag_spec='${wl}--export-dynamic'
13811 # ancient GNU ld didn't support --whole-archive et. al.
13812 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13813 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13814 else
13815 whole_archive_flag_spec=
13816 fi
13817 supports_anon_versioning=no
13818 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013819 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13823 *\ 2.11.*) ;; # other 2.11 versions
13824 *) supports_anon_versioning=yes ;;
13825 esac
13826
13827 # See if GNU ld supports shared libraries.
13828 case $host_os in
13829 aix[3-9]*)
13830 # On AIX/PPC, the GNU linker is very broken
13831 if test "$host_cpu" != ia64; then
13832 ld_shlibs=no
13833 cat <<_LT_EOF 1>&2
13834
cristy0c60a692010-11-04 01:09:47 +000013835*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013836*** to be unable to reliably create shared libraries on AIX.
13837*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013838*** really care for shared libraries, you may want to install binutils
13839*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13840*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013841
13842_LT_EOF
13843 fi
13844 ;;
13845
13846 amigaos*)
13847 case $host_cpu in
13848 powerpc)
13849 # see comment about AmigaOS4 .so support
13850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851 archive_expsym_cmds=''
13852 ;;
13853 m68k)
13854 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13855 hardcode_libdir_flag_spec='-L$libdir'
13856 hardcode_minus_L=yes
13857 ;;
13858 esac
13859 ;;
13860
13861 beos*)
13862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13863 allow_undefined_flag=unsupported
13864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13865 # support --undefined. This deserves some investigation. FIXME
13866 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867 else
13868 ld_shlibs=no
13869 fi
13870 ;;
13871
13872 cygwin* | mingw* | pw32* | cegcc*)
13873 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13874 # as there is no search path for DLLs.
13875 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013876 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013877 allow_undefined_flag=unsupported
13878 always_export_symbols=no
13879 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013880 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13881 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000013882
13883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13885 # If the export-symbols file already is a .def file (1st line
13886 # is EXPORTS), use it as is; otherwise, prepend...
13887 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13888 cp $export_symbols $output_objdir/$soname.def;
13889 else
13890 echo EXPORTS > $output_objdir/$soname.def;
13891 cat $export_symbols >> $output_objdir/$soname.def;
13892 fi~
13893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13894 else
13895 ld_shlibs=no
13896 fi
13897 ;;
13898
cristy0c60a692010-11-04 01:09:47 +000013899 haiku*)
13900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 link_all_deplibs=yes
13902 ;;
13903
cristy73bd4a52010-10-05 11:24:23 +000013904 interix[3-9]*)
13905 hardcode_direct=no
13906 hardcode_shlibpath_var=no
13907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13908 export_dynamic_flag_spec='${wl}-E'
13909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13910 # Instead, shared libraries are loaded at an image base (0x10000000 by
13911 # default) and relocated if they conflict, which is a slow very memory
13912 # consuming and fragmenting process. To avoid this, we pick a random,
13913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13916 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13917 ;;
13918
cristy0c60a692010-11-04 01:09:47 +000013919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013920 tmp_diet=no
13921 if test "$host_os" = linux-dietlibc; then
13922 case $cc_basename in
13923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13924 esac
13925 fi
13926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13927 && test "$tmp_diet" = no
13928 then
cristyda16f162011-02-19 23:52:17 +000013929 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013930 tmp_sharedflag='-shared'
13931 case $cc_basename,$host_cpu in
13932 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013933 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013934 tmp_addflag=' $pic_flag'
13935 ;;
cristy0c60a692010-11-04 01:09:47 +000013936 pgf77* | pgf90* | pgf95* | pgfortran*)
13937 # Portland Group f77 and f90 compilers
13938 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013939 tmp_addflag=' $pic_flag -Mnomain' ;;
13940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13941 tmp_addflag=' -i_dynamic' ;;
13942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13943 tmp_addflag=' -i_dynamic -nofor_main' ;;
13944 ifc* | ifort*) # Intel Fortran compiler
13945 tmp_addflag=' -nofor_main' ;;
13946 lf95*) # Lahey Fortran 8.1
13947 whole_archive_flag_spec=
13948 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013950 tmp_sharedflag='-qmkshrobj'
13951 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013952 nvcc*) # Cuda Compiler Driver 2.2
13953 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13954 compiler_needs_object=yes
13955 ;;
cristy73bd4a52010-10-05 11:24:23 +000013956 esac
13957 case `$CC -V 2>&1 | sed 5q` in
13958 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013959 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013960 compiler_needs_object=yes
13961 tmp_sharedflag='-G' ;;
13962 *Sun\ F*) # Sun Fortran 8.3
13963 tmp_sharedflag='-G' ;;
13964 esac
13965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966
13967 if test "x$supports_anon_versioning" = xyes; then
13968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13970 echo "local: *; };" >> $output_objdir/$libname.ver~
13971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13972 fi
13973
13974 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013975 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13978 hardcode_libdir_flag_spec=
13979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013980 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013981 if test "x$supports_anon_versioning" = xyes; then
13982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13984 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013985 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013986 fi
13987 ;;
13988 esac
13989 else
13990 ld_shlibs=no
13991 fi
13992 ;;
13993
13994 netbsd*)
13995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13997 wlarc=
13998 else
cristyda16f162011-02-19 23:52:17 +000013999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014001 fi
14002 ;;
14003
14004 solaris*)
14005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14006 ld_shlibs=no
14007 cat <<_LT_EOF 1>&2
14008
14009*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14010*** create shared libraries on Solaris systems. Therefore, libtool
14011*** is disabling shared libraries support. We urge you to upgrade GNU
14012*** binutils to release 2.9.1 or newer. Another option is to modify
14013*** your PATH or compiler configuration so that the native linker is
14014*** used, and then restart.
14015
14016_LT_EOF
14017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014020 else
14021 ld_shlibs=no
14022 fi
14023 ;;
14024
14025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14026 case `$LD -v 2>&1` in
14027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14028 ld_shlibs=no
14029 cat <<_LT_EOF 1>&2
14030
14031*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14032*** reliably create shared libraries on SCO systems. Therefore, libtool
14033*** is disabling shared libraries support. We urge you to upgrade GNU
14034*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14035*** your PATH or compiler configuration so that the native linker is
14036*** used, and then restart.
14037
14038_LT_EOF
14039 ;;
14040 *)
14041 # For security reasons, it is highly recommended that you always
14042 # use absolute paths for naming shared libraries, and exclude the
14043 # DT_RUNPATH tag from executables and libraries. But doing so
14044 # requires that you compile everything twice, which is a pain.
14045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049 else
14050 ld_shlibs=no
14051 fi
14052 ;;
14053 esac
14054 ;;
14055
14056 sunos4*)
14057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14058 wlarc=
14059 hardcode_direct=yes
14060 hardcode_shlibpath_var=no
14061 ;;
14062
14063 *)
14064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014067 else
14068 ld_shlibs=no
14069 fi
14070 ;;
14071 esac
14072
14073 if test "$ld_shlibs" = no; then
14074 runpath_var=
14075 hardcode_libdir_flag_spec=
14076 export_dynamic_flag_spec=
14077 whole_archive_flag_spec=
14078 fi
14079 else
14080 # PORTME fill in a description of your system's linker (not GNU ld)
14081 case $host_os in
14082 aix3*)
14083 allow_undefined_flag=unsupported
14084 always_export_symbols=yes
14085 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14086 # Note: this linker hardcodes the directories in LIBPATH if there
14087 # are no directories specified by -L.
14088 hardcode_minus_L=yes
14089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14090 # Neither direct hardcoding nor static linking is supported with a
14091 # broken collect2.
14092 hardcode_direct=unsupported
14093 fi
14094 ;;
14095
14096 aix[4-9]*)
14097 if test "$host_cpu" = ia64; then
14098 # On IA64, the linker does run time linking by default, so we don't
14099 # have to do anything special.
14100 aix_use_runtimelinking=no
14101 exp_sym_flag='-Bexport'
14102 no_entry_flag=""
14103 else
14104 # If we're using GNU nm, then we don't want the "-C" option.
14105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014106 # Also, AIX nm treats weak defined symbols like other global
14107 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014109 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000014110 else
14111 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14112 fi
14113 aix_use_runtimelinking=no
14114
14115 # Test if we are trying to use run time linking or normal
14116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14117 # need to do runtime linking.
14118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14119 for ld_flag in $LDFLAGS; do
14120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14121 aix_use_runtimelinking=yes
14122 break
14123 fi
14124 done
14125 ;;
14126 esac
14127
14128 exp_sym_flag='-bexport'
14129 no_entry_flag='-bnoentry'
14130 fi
14131
14132 # When large executables or shared objects are built, AIX ld can
14133 # have problems creating the table of contents. If linking a library
14134 # or program results in "error TOC overflow" add -mminimal-toc to
14135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14137
14138 archive_cmds=''
14139 hardcode_direct=yes
14140 hardcode_direct_absolute=yes
14141 hardcode_libdir_separator=':'
14142 link_all_deplibs=yes
14143 file_list_spec='${wl}-f,'
14144
14145 if test "$GCC" = yes; then
14146 case $host_os in aix4.[012]|aix4.[012].*)
14147 # We only want to do this on AIX 4.2 and lower, the check
14148 # below for broken collect2 doesn't work under 4.3+
14149 collect2name=`${CC} -print-prog-name=collect2`
14150 if test -f "$collect2name" &&
14151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14152 then
14153 # We have reworked collect2
14154 :
14155 else
14156 # We have old collect2
14157 hardcode_direct=unsupported
14158 # It fails to find uninstalled libraries when the uninstalled
14159 # path is not listed in the libpath. Setting hardcode_minus_L
14160 # to unsupported forces relinking
14161 hardcode_minus_L=yes
14162 hardcode_libdir_flag_spec='-L$libdir'
14163 hardcode_libdir_separator=
14164 fi
14165 ;;
14166 esac
14167 shared_flag='-shared'
14168 if test "$aix_use_runtimelinking" = yes; then
14169 shared_flag="$shared_flag "'${wl}-G'
14170 fi
14171 else
14172 # not using gcc
14173 if test "$host_cpu" = ia64; then
14174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14175 # chokes on -Wl,-G. The following line is correct:
14176 shared_flag='-G'
14177 else
14178 if test "$aix_use_runtimelinking" = yes; then
14179 shared_flag='${wl}-G'
14180 else
14181 shared_flag='${wl}-bM:SRE'
14182 fi
14183 fi
14184 fi
14185
14186 export_dynamic_flag_spec='${wl}-bexpall'
14187 # It seems that -bexpall does not export symbols beginning with
14188 # underscore (_), so it is better to generate a list of symbols to export.
14189 always_export_symbols=yes
14190 if test "$aix_use_runtimelinking" = yes; then
14191 # Warning - without using the other runtime loading flags (-brtl),
14192 # -berok will link without error, but may produce a broken library.
14193 allow_undefined_flag='-berok'
14194 # Determine the default libpath from the value encoded in an
14195 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014196 if test "${lt_cv_aix_libpath+set}" = set; then
14197 aix_libpath=$lt_cv_aix_libpath
14198else
14199 if ${lt_cv_aix_libpath_+:} false; then :
14200 $as_echo_n "(cached) " >&6
14201else
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014203/* end confdefs.h. */
14204
14205int
14206main ()
14207{
14208
14209 ;
14210 return 0;
14211}
14212_ACEOF
14213if ac_fn_c_try_link "$LINENO"; then :
14214
cristyda16f162011-02-19 23:52:17 +000014215 lt_aix_libpath_sed='
14216 /Import File Strings/,/^$/ {
14217 /^0/ {
14218 s/^0 *\([^ ]*\) *$/\1/
14219 p
14220 }
14221 }'
14222 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14223 # Check for a 64-bit object if we didn't find anything.
14224 if test -z "$lt_cv_aix_libpath_"; then
14225 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14226 fi
cristy73bd4a52010-10-05 11:24:23 +000014227fi
14228rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014230 if test -z "$lt_cv_aix_libpath_"; then
14231 lt_cv_aix_libpath_="/usr/lib:/lib"
14232 fi
14233
14234fi
14235
14236 aix_libpath=$lt_cv_aix_libpath_
14237fi
cristy73bd4a52010-10-05 11:24:23 +000014238
14239 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014240 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000014241 else
14242 if test "$host_cpu" = ia64; then
14243 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14244 allow_undefined_flag="-z nodefs"
14245 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14246 else
14247 # Determine the default libpath from the value encoded in an
14248 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014249 if test "${lt_cv_aix_libpath+set}" = set; then
14250 aix_libpath=$lt_cv_aix_libpath
14251else
14252 if ${lt_cv_aix_libpath_+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014256/* end confdefs.h. */
14257
14258int
14259main ()
14260{
14261
14262 ;
14263 return 0;
14264}
14265_ACEOF
14266if ac_fn_c_try_link "$LINENO"; then :
14267
cristyda16f162011-02-19 23:52:17 +000014268 lt_aix_libpath_sed='
14269 /Import File Strings/,/^$/ {
14270 /^0/ {
14271 s/^0 *\([^ ]*\) *$/\1/
14272 p
14273 }
14274 }'
14275 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14276 # Check for a 64-bit object if we didn't find anything.
14277 if test -z "$lt_cv_aix_libpath_"; then
14278 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14279 fi
cristy73bd4a52010-10-05 11:24:23 +000014280fi
14281rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014283 if test -z "$lt_cv_aix_libpath_"; then
14284 lt_cv_aix_libpath_="/usr/lib:/lib"
14285 fi
14286
14287fi
14288
14289 aix_libpath=$lt_cv_aix_libpath_
14290fi
cristy73bd4a52010-10-05 11:24:23 +000014291
14292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14293 # Warning - without using the other run time loading flags,
14294 # -berok will link without error, but may produce a broken library.
14295 no_undefined_flag=' ${wl}-bernotok'
14296 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014297 if test "$with_gnu_ld" = yes; then
14298 # We only use this code for GNU lds that support --whole-archive.
14299 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14300 else
14301 # Exported symbols can be pulled into shared objects from archives
14302 whole_archive_flag_spec='$convenience'
14303 fi
cristy73bd4a52010-10-05 11:24:23 +000014304 archive_cmds_need_lc=yes
14305 # This is similar to how AIX traditionally builds its shared libraries.
14306 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14307 fi
14308 fi
14309 ;;
14310
14311 amigaos*)
14312 case $host_cpu in
14313 powerpc)
14314 # see comment about AmigaOS4 .so support
14315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14316 archive_expsym_cmds=''
14317 ;;
14318 m68k)
14319 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14320 hardcode_libdir_flag_spec='-L$libdir'
14321 hardcode_minus_L=yes
14322 ;;
14323 esac
14324 ;;
14325
14326 bsdi[45]*)
14327 export_dynamic_flag_spec=-rdynamic
14328 ;;
14329
14330 cygwin* | mingw* | pw32* | cegcc*)
14331 # When not using gcc, we currently assume that we are using
14332 # Microsoft Visual C++.
14333 # hardcode_libdir_flag_spec is actually meaningless, as there is
14334 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014335 case $cc_basename in
14336 cl*)
14337 # Native MSVC
14338 hardcode_libdir_flag_spec=' '
14339 allow_undefined_flag=unsupported
14340 always_export_symbols=yes
14341 file_list_spec='@'
14342 # Tell ltmain to make .lib files, not .a files.
14343 libext=lib
14344 # Tell ltmain to make .dll files, not .so files.
14345 shrext_cmds=".dll"
14346 # FIXME: Setting linknames here is a bad hack.
14347 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14348 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14349 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14350 else
14351 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14352 fi~
14353 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14354 linknames='
14355 # The linker will not automatically build a static lib if we build a DLL.
14356 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14357 enable_shared_with_static_runtimes=yes
14358 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14359 # Don't use ranlib
14360 old_postinstall_cmds='chmod 644 $oldlib'
14361 postlink_cmds='lt_outputfile="@OUTPUT@"~
14362 lt_tool_outputfile="@TOOL_OUTPUT@"~
14363 case $lt_outputfile in
14364 *.exe|*.EXE) ;;
14365 *)
14366 lt_outputfile="$lt_outputfile.exe"
14367 lt_tool_outputfile="$lt_tool_outputfile.exe"
14368 ;;
14369 esac~
14370 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14371 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14372 $RM "$lt_outputfile.manifest";
14373 fi'
14374 ;;
14375 *)
14376 # Assume MSVC wrapper
14377 hardcode_libdir_flag_spec=' '
14378 allow_undefined_flag=unsupported
14379 # Tell ltmain to make .lib files, not .a files.
14380 libext=lib
14381 # Tell ltmain to make .dll files, not .so files.
14382 shrext_cmds=".dll"
14383 # FIXME: Setting linknames here is a bad hack.
14384 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14385 # The linker will automatically build a .lib file if we build a DLL.
14386 old_archive_from_new_cmds='true'
14387 # FIXME: Should let the user specify the lib program.
14388 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14389 enable_shared_with_static_runtimes=yes
14390 ;;
14391 esac
cristy73bd4a52010-10-05 11:24:23 +000014392 ;;
14393
14394 darwin* | rhapsody*)
14395
14396
14397 archive_cmds_need_lc=no
14398 hardcode_direct=no
14399 hardcode_automatic=yes
14400 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014401 if test "$lt_cv_ld_force_load" = "yes"; then
14402 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14403 else
14404 whole_archive_flag_spec=''
14405 fi
cristy73bd4a52010-10-05 11:24:23 +000014406 link_all_deplibs=yes
14407 allow_undefined_flag="$_lt_dar_allow_undefined"
14408 case $cc_basename in
14409 ifort*) _lt_dar_can_shared=yes ;;
14410 *) _lt_dar_can_shared=$GCC ;;
14411 esac
14412 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014413 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014414 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14415 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14416 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14417 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14418
14419 else
14420 ld_shlibs=no
14421 fi
14422
14423 ;;
14424
14425 dgux*)
14426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14427 hardcode_libdir_flag_spec='-L$libdir'
14428 hardcode_shlibpath_var=no
14429 ;;
14430
14431 freebsd1*)
14432 ld_shlibs=no
14433 ;;
14434
14435 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14436 # support. Future versions do this automatically, but an explicit c++rt0.o
14437 # does not break anything, and helps significantly (at the cost of a little
14438 # extra space).
14439 freebsd2.2*)
14440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14441 hardcode_libdir_flag_spec='-R$libdir'
14442 hardcode_direct=yes
14443 hardcode_shlibpath_var=no
14444 ;;
14445
14446 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14447 freebsd2*)
14448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_direct=yes
14450 hardcode_minus_L=yes
14451 hardcode_shlibpath_var=no
14452 ;;
14453
14454 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14455 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014457 hardcode_libdir_flag_spec='-R$libdir'
14458 hardcode_direct=yes
14459 hardcode_shlibpath_var=no
14460 ;;
14461
14462 hpux9*)
14463 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014464 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000014465 else
14466 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14467 fi
14468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14469 hardcode_libdir_separator=:
14470 hardcode_direct=yes
14471
14472 # hardcode_minus_L: Not really in the search PATH,
14473 # but as the default location of the library.
14474 hardcode_minus_L=yes
14475 export_dynamic_flag_spec='${wl}-E'
14476 ;;
14477
14478 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014479 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014480 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014481 else
14482 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14483 fi
14484 if test "$with_gnu_ld" = no; then
14485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14486 hardcode_libdir_flag_spec_ld='+b $libdir'
14487 hardcode_libdir_separator=:
14488 hardcode_direct=yes
14489 hardcode_direct_absolute=yes
14490 export_dynamic_flag_spec='${wl}-E'
14491 # hardcode_minus_L: Not really in the search PATH,
14492 # but as the default location of the library.
14493 hardcode_minus_L=yes
14494 fi
14495 ;;
14496
14497 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014498 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014499 case $host_cpu in
14500 hppa*64*)
14501 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 ;;
14503 ia64*)
cristyda16f162011-02-19 23:52:17 +000014504 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014505 ;;
14506 *)
cristyda16f162011-02-19 23:52:17 +000014507 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014508 ;;
14509 esac
14510 else
14511 case $host_cpu in
14512 hppa*64*)
14513 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 ;;
14515 ia64*)
14516 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14517 ;;
14518 *)
cristy0c60a692010-11-04 01:09:47 +000014519
14520 # Older versions of the 11.00 compiler do not understand -b yet
14521 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14523$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014524if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014525 $as_echo_n "(cached) " >&6
14526else
14527 lt_cv_prog_compiler__b=no
14528 save_LDFLAGS="$LDFLAGS"
14529 LDFLAGS="$LDFLAGS -b"
14530 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14532 # The linker can only warn and ignore the option if not recognized
14533 # So say no if there are warnings
14534 if test -s conftest.err; then
14535 # Append any errors to the config.log.
14536 cat conftest.err 1>&5
14537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14539 if diff conftest.exp conftest.er2 >/dev/null; then
14540 lt_cv_prog_compiler__b=yes
14541 fi
14542 else
14543 lt_cv_prog_compiler__b=yes
14544 fi
14545 fi
14546 $RM -r conftest*
14547 LDFLAGS="$save_LDFLAGS"
14548
14549fi
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14551$as_echo "$lt_cv_prog_compiler__b" >&6; }
14552
14553if test x"$lt_cv_prog_compiler__b" = xyes; then
14554 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14555else
14556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14557fi
14558
cristy73bd4a52010-10-05 11:24:23 +000014559 ;;
14560 esac
14561 fi
14562 if test "$with_gnu_ld" = no; then
14563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14564 hardcode_libdir_separator=:
14565
14566 case $host_cpu in
14567 hppa*64*|ia64*)
14568 hardcode_direct=no
14569 hardcode_shlibpath_var=no
14570 ;;
14571 *)
14572 hardcode_direct=yes
14573 hardcode_direct_absolute=yes
14574 export_dynamic_flag_spec='${wl}-E'
14575
14576 # hardcode_minus_L: Not really in the search PATH,
14577 # but as the default location of the library.
14578 hardcode_minus_L=yes
14579 ;;
14580 esac
14581 fi
14582 ;;
14583
14584 irix5* | irix6* | nonstopux*)
14585 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014586 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014587 # Try to use the -exported_symbol ld option, if it does not
14588 # work, assume that -exports_file does not work either and
14589 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014590 # This should be the same for all languages, so no per-tag cache variable.
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14592$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14593if ${lt_cv_irix_exported_symbol+:} false; then :
14594 $as_echo_n "(cached) " >&6
14595else
14596 save_LDFLAGS="$LDFLAGS"
14597 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014599/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014600int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014601_ACEOF
14602if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014603 lt_cv_irix_exported_symbol=yes
14604else
14605 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014606fi
14607rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014609 LDFLAGS="$save_LDFLAGS"
14610fi
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14612$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14613 if test "$lt_cv_irix_exported_symbol" = yes; then
14614 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14615 fi
cristy73bd4a52010-10-05 11:24:23 +000014616 else
cristy0c60a692010-11-04 01:09:47 +000014617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14618 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014619 fi
14620 archive_cmds_need_lc='no'
14621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14622 hardcode_libdir_separator=:
14623 inherit_rpath=yes
14624 link_all_deplibs=yes
14625 ;;
14626
14627 netbsd*)
14628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14630 else
14631 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14632 fi
14633 hardcode_libdir_flag_spec='-R$libdir'
14634 hardcode_direct=yes
14635 hardcode_shlibpath_var=no
14636 ;;
14637
14638 newsos6)
14639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640 hardcode_direct=yes
14641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14642 hardcode_libdir_separator=:
14643 hardcode_shlibpath_var=no
14644 ;;
14645
14646 *nto* | *qnx*)
14647 ;;
14648
14649 openbsd*)
14650 if test -f /usr/libexec/ld.so; then
14651 hardcode_direct=yes
14652 hardcode_shlibpath_var=no
14653 hardcode_direct_absolute=yes
14654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14655 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14656 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14657 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14658 export_dynamic_flag_spec='${wl}-E'
14659 else
14660 case $host_os in
14661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14663 hardcode_libdir_flag_spec='-R$libdir'
14664 ;;
14665 *)
14666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14668 ;;
14669 esac
14670 fi
14671 else
14672 ld_shlibs=no
14673 fi
14674 ;;
14675
14676 os2*)
14677 hardcode_libdir_flag_spec='-L$libdir'
14678 hardcode_minus_L=yes
14679 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014680 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy73bd4a52010-10-05 11:24:23 +000014681 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14682 ;;
14683
14684 osf3*)
14685 if test "$GCC" = yes; then
14686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014687 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014688 else
14689 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014690 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014691 fi
14692 archive_cmds_need_lc='no'
14693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14694 hardcode_libdir_separator=:
14695 ;;
14696
14697 osf4* | osf5*) # as osf3* with the addition of -msym flag
14698 if test "$GCC" = yes; then
14699 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014700 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14702 else
14703 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014704 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014705 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000014706 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000014707
14708 # Both c and cxx compiler support -rpath directly
14709 hardcode_libdir_flag_spec='-rpath $libdir'
14710 fi
14711 archive_cmds_need_lc='no'
14712 hardcode_libdir_separator=:
14713 ;;
14714
14715 solaris*)
14716 no_undefined_flag=' -z defs'
14717 if test "$GCC" = yes; then
14718 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014719 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000014721 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000014722 else
14723 case `$CC -V 2>&1` in
14724 *"Compilers 5.0"*)
14725 wlarc=''
14726 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14729 ;;
14730 *)
14731 wlarc='${wl}'
14732 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14733 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14734 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14735 ;;
14736 esac
14737 fi
14738 hardcode_libdir_flag_spec='-R$libdir'
14739 hardcode_shlibpath_var=no
14740 case $host_os in
14741 solaris2.[0-5] | solaris2.[0-5].*) ;;
14742 *)
14743 # The compiler driver will combine and reorder linker options,
14744 # but understands `-z linker_flag'. GCC discards it without `$wl',
14745 # but is careful enough not to reorder.
14746 # Supported since Solaris 2.6 (maybe 2.5.1?)
14747 if test "$GCC" = yes; then
14748 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14749 else
14750 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14751 fi
14752 ;;
14753 esac
14754 link_all_deplibs=yes
14755 ;;
14756
14757 sunos4*)
14758 if test "x$host_vendor" = xsequent; then
14759 # Use $CC to link under sequent, because it throws in some extra .o
14760 # files that make .init and .fini sections work.
14761 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14762 else
14763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14764 fi
14765 hardcode_libdir_flag_spec='-L$libdir'
14766 hardcode_direct=yes
14767 hardcode_minus_L=yes
14768 hardcode_shlibpath_var=no
14769 ;;
14770
14771 sysv4)
14772 case $host_vendor in
14773 sni)
14774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14775 hardcode_direct=yes # is this really true???
14776 ;;
14777 siemens)
14778 ## LD is ld it makes a PLAMLIB
14779 ## CC just makes a GrossModule.
14780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14781 reload_cmds='$CC -r -o $output$reload_objs'
14782 hardcode_direct=no
14783 ;;
14784 motorola)
14785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14787 ;;
14788 esac
14789 runpath_var='LD_RUN_PATH'
14790 hardcode_shlibpath_var=no
14791 ;;
14792
14793 sysv4.3*)
14794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14795 hardcode_shlibpath_var=no
14796 export_dynamic_flag_spec='-Bexport'
14797 ;;
14798
14799 sysv4*MP*)
14800 if test -d /usr/nec; then
14801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802 hardcode_shlibpath_var=no
14803 runpath_var=LD_RUN_PATH
14804 hardcode_runpath_var=yes
14805 ld_shlibs=yes
14806 fi
14807 ;;
14808
14809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14810 no_undefined_flag='${wl}-z,text'
14811 archive_cmds_need_lc=no
14812 hardcode_shlibpath_var=no
14813 runpath_var='LD_RUN_PATH'
14814
14815 if test "$GCC" = yes; then
14816 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 else
14819 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 fi
14822 ;;
14823
14824 sysv5* | sco3.2v5* | sco5v6*)
14825 # Note: We can NOT use -z defs as we might desire, because we do not
14826 # link with -lc, and that would cause any symbols used from libc to
14827 # always be unresolved, which means just about no library would
14828 # ever link correctly. If we're not using GNU ld we use -z text
14829 # though, which does catch some bad symbols but isn't as heavy-handed
14830 # as -z defs.
14831 no_undefined_flag='${wl}-z,text'
14832 allow_undefined_flag='${wl}-z,nodefs'
14833 archive_cmds_need_lc=no
14834 hardcode_shlibpath_var=no
14835 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14836 hardcode_libdir_separator=':'
14837 link_all_deplibs=yes
14838 export_dynamic_flag_spec='${wl}-Bexport'
14839 runpath_var='LD_RUN_PATH'
14840
14841 if test "$GCC" = yes; then
14842 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14844 else
14845 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 fi
14848 ;;
14849
14850 uts4*)
14851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_libdir_flag_spec='-L$libdir'
14853 hardcode_shlibpath_var=no
14854 ;;
14855
14856 *)
14857 ld_shlibs=no
14858 ;;
14859 esac
14860
14861 if test x$host_vendor = xsni; then
14862 case $host in
14863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14864 export_dynamic_flag_spec='${wl}-Blargedynsym'
14865 ;;
14866 esac
14867 fi
14868 fi
14869
14870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14871$as_echo "$ld_shlibs" >&6; }
14872test "$ld_shlibs" = no && can_build_shared=no
14873
14874with_gnu_ld=$with_gnu_ld
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890#
14891# Do we need to explicitly link libc?
14892#
14893case "x$archive_cmds_need_lc" in
14894x|xyes)
14895 # Assume -lc should be added
14896 archive_cmds_need_lc=yes
14897
14898 if test "$enable_shared" = yes && test "$GCC" = yes; then
14899 case $archive_cmds in
14900 *'~'*)
14901 # FIXME: we may have to deal with multi-command sequences.
14902 ;;
14903 '$CC '*)
14904 # Test whether the compiler implicitly links with -lc since on some
14905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14906 # to ld, don't add -lc before -lgcc.
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14908$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014909if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014910 $as_echo_n "(cached) " >&6
14911else
14912 $RM conftest*
14913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014914
cristy0c60a692010-11-04 01:09:47 +000014915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014916 (eval $ac_compile) 2>&5
14917 ac_status=$?
14918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14919 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014920 soname=conftest
14921 lib=conftest
14922 libobjs=conftest.$ac_objext
14923 deplibs=
14924 wl=$lt_prog_compiler_wl
14925 pic_flag=$lt_prog_compiler_pic
14926 compiler_flags=-v
14927 linker_flags=-v
14928 verstring=
14929 output_objdir=.
14930 libname=conftest
14931 lt_save_allow_undefined_flag=$allow_undefined_flag
14932 allow_undefined_flag=
14933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014934 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14935 ac_status=$?
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014938 then
14939 lt_cv_archive_cmds_need_lc=no
14940 else
14941 lt_cv_archive_cmds_need_lc=yes
14942 fi
14943 allow_undefined_flag=$lt_save_allow_undefined_flag
14944 else
14945 cat conftest.err 1>&5
14946 fi
14947 $RM conftest*
14948
14949fi
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14951$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14952 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014953 ;;
14954 esac
14955 fi
14956 ;;
14957esac
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15116$as_echo_n "checking dynamic linker characteristics... " >&6; }
15117
15118if test "$GCC" = yes; then
15119 case $host_os in
15120 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15121 *) lt_awk_arg="/^libraries:/" ;;
15122 esac
cristy0c60a692010-11-04 01:09:47 +000015123 case $host_os in
15124 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15125 *) lt_sed_strip_eq="s,=/,/,g" ;;
15126 esac
15127 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15128 case $lt_search_path_spec in
15129 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015130 # if the path contains ";" then we assume it to be the separator
15131 # otherwise default to the standard path separator (i.e. ":") - it is
15132 # assumed that no part of a normal pathname contains ";" but that should
15133 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15135 ;;
15136 *)
15137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15138 ;;
15139 esac
cristy73bd4a52010-10-05 11:24:23 +000015140 # Ok, now we have the path, separated by spaces, we can step through it
15141 # and add multilib dir if necessary.
15142 lt_tmp_lt_search_path_spec=
15143 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15144 for lt_sys_path in $lt_search_path_spec; do
15145 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15146 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15147 else
15148 test -d "$lt_sys_path" && \
15149 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15150 fi
15151 done
cristy0c60a692010-11-04 01:09:47 +000015152 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015153BEGIN {RS=" "; FS="/|\n";} {
15154 lt_foo="";
15155 lt_count=0;
15156 for (lt_i = NF; lt_i > 0; lt_i--) {
15157 if ($lt_i != "" && $lt_i != ".") {
15158 if ($lt_i == "..") {
15159 lt_count++;
15160 } else {
15161 if (lt_count == 0) {
15162 lt_foo="/" $lt_i lt_foo;
15163 } else {
15164 lt_count--;
15165 }
15166 }
15167 }
15168 }
15169 if (lt_foo != "") { lt_freq[lt_foo]++; }
15170 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15171}'`
cristy0c60a692010-11-04 01:09:47 +000015172 # AWK program above erroneously prepends '/' to C:/dos/paths
15173 # for these hosts.
15174 case $host_os in
15175 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15176 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15177 esac
15178 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015179else
15180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15181fi
15182library_names_spec=
15183libname_spec='lib$name'
15184soname_spec=
15185shrext_cmds=".so"
15186postinstall_cmds=
15187postuninstall_cmds=
15188finish_cmds=
15189finish_eval=
15190shlibpath_var=
15191shlibpath_overrides_runpath=unknown
15192version_type=none
15193dynamic_linker="$host_os ld.so"
15194sys_lib_dlsearch_path_spec="/lib /usr/lib"
15195need_lib_prefix=unknown
15196hardcode_into_libs=no
15197
15198# when you set need_version to no, make sure it does not cause -set_version
15199# flags to be left without arguments
15200need_version=unknown
15201
15202case $host_os in
15203aix3*)
15204 version_type=linux
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15206 shlibpath_var=LIBPATH
15207
15208 # AIX 3 has no versioning support, so we append a major version to the name.
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 ;;
15211
15212aix[4-9]*)
15213 version_type=linux
15214 need_lib_prefix=no
15215 need_version=no
15216 hardcode_into_libs=yes
15217 if test "$host_cpu" = ia64; then
15218 # AIX 5 supports IA64
15219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 else
15222 # With GCC up to 2.95.x, collect2 would create an import file
15223 # for dependence libraries. The import file would start with
15224 # the line `#! .'. This would cause the generated library to
15225 # depend on `.', always an invalid library. This was fixed in
15226 # development snapshots of GCC prior to 3.0.
15227 case $host_os in
15228 aix4 | aix4.[01] | aix4.[01].*)
15229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15230 echo ' yes '
15231 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15232 :
15233 else
15234 can_build_shared=no
15235 fi
15236 ;;
15237 esac
15238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15239 # soname into executable. Probably we can add versioning support to
15240 # collect2, so additional links can be useful in future.
15241 if test "$aix_use_runtimelinking" = yes; then
15242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15243 # instead of lib<name>.a to let people know that these are not
15244 # typical AIX shared libraries.
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 else
15247 # We preserve .a as extension for shared libraries through AIX4.2
15248 # and later when we are not doing run time linking.
15249 library_names_spec='${libname}${release}.a $libname.a'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 fi
15252 shlibpath_var=LIBPATH
15253 fi
15254 ;;
15255
15256amigaos*)
15257 case $host_cpu in
15258 powerpc)
15259 # Since July 2007 AmigaOS4 officially supports .so libraries.
15260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 ;;
15263 m68k)
15264 library_names_spec='$libname.ixlibrary $libname.a'
15265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015266 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000015267 ;;
15268 esac
15269 ;;
15270
15271beos*)
15272 library_names_spec='${libname}${shared_ext}'
15273 dynamic_linker="$host_os ld.so"
15274 shlibpath_var=LIBRARY_PATH
15275 ;;
15276
15277bsdi[45]*)
15278 version_type=linux
15279 need_version=no
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15286 # the default ld.so.conf also contains /usr/contrib/lib and
15287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15288 # libtool to hard-code these into programs
15289 ;;
15290
15291cygwin* | mingw* | pw32* | cegcc*)
15292 version_type=windows
15293 shrext_cmds=".dll"
15294 need_version=no
15295 need_lib_prefix=no
15296
cristyda16f162011-02-19 23:52:17 +000015297 case $GCC,$cc_basename in
15298 yes,*)
15299 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015300 library_names_spec='$libname.dll.a'
15301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15302 postinstall_cmds='base_file=`basename \${file}`~
15303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15304 dldir=$destdir/`dirname \$dlpath`~
15305 test -d \$dldir || mkdir -p \$dldir~
15306 $install_prog $dir/$dlname \$dldir/$dlname~
15307 chmod a+x \$dldir/$dlname~
15308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15310 fi'
15311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15312 dlpath=$dir/\$dldll~
15313 $RM \$dlpath'
15314 shlibpath_overrides_runpath=yes
15315
15316 case $host_os in
15317 cygwin*)
15318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015320
15321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015322 ;;
15323 mingw* | cegcc*)
15324 # MinGW DLLs use traditional 'lib' prefix
15325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015326 ;;
15327 pw32*)
15328 # pw32 DLLs use 'pw' prefix rather than 'lib'
15329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330 ;;
15331 esac
cristyda16f162011-02-19 23:52:17 +000015332 dynamic_linker='Win32 ld.exe'
15333 ;;
15334
15335 *,cl*)
15336 # Native MSVC
15337 libname_spec='$name'
15338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15339 library_names_spec='${libname}.dll.lib'
15340
15341 case $build_os in
15342 mingw*)
15343 sys_lib_search_path_spec=
15344 lt_save_ifs=$IFS
15345 IFS=';'
15346 for lt_path in $LIB
15347 do
15348 IFS=$lt_save_ifs
15349 # Let DOS variable expansion print the short 8.3 style file name.
15350 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15351 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15352 done
15353 IFS=$lt_save_ifs
15354 # Convert to MSYS style.
15355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15356 ;;
15357 cygwin*)
15358 # Convert to unix form, then to dos form, then back to unix form
15359 # but this time dos style (no spaces!) so that the unix form looks
15360 # like /cygdrive/c/PROGRA~1:/cygdr...
15361 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15362 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15363 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15364 ;;
15365 *)
15366 sys_lib_search_path_spec="$LIB"
15367 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15368 # It is most probably a Windows format PATH.
15369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15370 else
15371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15372 fi
15373 # FIXME: find the short name or the path components, as spaces are
15374 # common. (e.g. "Program Files" -> "PROGRA~1")
15375 ;;
15376 esac
15377
15378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15379 postinstall_cmds='base_file=`basename \${file}`~
15380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15381 dldir=$destdir/`dirname \$dlpath`~
15382 test -d \$dldir || mkdir -p \$dldir~
15383 $install_prog $dir/$dlname \$dldir/$dlname'
15384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15385 dlpath=$dir/\$dldll~
15386 $RM \$dlpath'
15387 shlibpath_overrides_runpath=yes
15388 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015389 ;;
15390
15391 *)
cristyda16f162011-02-19 23:52:17 +000015392 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015394 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015395 ;;
15396 esac
cristy73bd4a52010-10-05 11:24:23 +000015397 # FIXME: first we should search . and the directory the executable is in
15398 shlibpath_var=PATH
15399 ;;
15400
15401darwin* | rhapsody*)
15402 dynamic_linker="$host_os dyld"
15403 version_type=darwin
15404 need_lib_prefix=no
15405 need_version=no
15406 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15407 soname_spec='${libname}${release}${major}$shared_ext'
15408 shlibpath_overrides_runpath=yes
15409 shlibpath_var=DYLD_LIBRARY_PATH
15410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15411
15412 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15414 ;;
15415
15416dgux*)
15417 version_type=linux
15418 need_lib_prefix=no
15419 need_version=no
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 ;;
15424
15425freebsd1*)
15426 dynamic_linker=no
15427 ;;
15428
15429freebsd* | dragonfly*)
15430 # DragonFly does not have aout. When/if they implement a new
15431 # versioning mechanism, adjust this.
15432 if test -x /usr/bin/objformat; then
15433 objformat=`/usr/bin/objformat`
15434 else
15435 case $host_os in
15436 freebsd[123]*) objformat=aout ;;
15437 *) objformat=elf ;;
15438 esac
15439 fi
15440 version_type=freebsd-$objformat
15441 case $version_type in
15442 freebsd-elf*)
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15444 need_version=no
15445 need_lib_prefix=no
15446 ;;
15447 freebsd-*)
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15449 need_version=yes
15450 ;;
15451 esac
15452 shlibpath_var=LD_LIBRARY_PATH
15453 case $host_os in
15454 freebsd2*)
15455 shlibpath_overrides_runpath=yes
15456 ;;
15457 freebsd3.[01]* | freebsdelf3.[01]*)
15458 shlibpath_overrides_runpath=yes
15459 hardcode_into_libs=yes
15460 ;;
15461 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15462 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15463 shlibpath_overrides_runpath=no
15464 hardcode_into_libs=yes
15465 ;;
15466 *) # from 4.6 on, and DragonFly
15467 shlibpath_overrides_runpath=yes
15468 hardcode_into_libs=yes
15469 ;;
15470 esac
15471 ;;
15472
15473gnu*)
15474 version_type=linux
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 hardcode_into_libs=yes
15481 ;;
15482
cristy0c60a692010-11-04 01:09:47 +000015483haiku*)
15484 version_type=linux
15485 need_lib_prefix=no
15486 need_version=no
15487 dynamic_linker="$host_os runtime_loader"
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LIBRARY_PATH
15491 shlibpath_overrides_runpath=yes
15492 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15493 hardcode_into_libs=yes
15494 ;;
15495
cristy73bd4a52010-10-05 11:24:23 +000015496hpux9* | hpux10* | hpux11*)
15497 # Give a soname corresponding to the major version so that dld.sl refuses to
15498 # link against other versions.
15499 version_type=sunos
15500 need_lib_prefix=no
15501 need_version=no
15502 case $host_cpu in
15503 ia64*)
15504 shrext_cmds='.so'
15505 hardcode_into_libs=yes
15506 dynamic_linker="$host_os dld.so"
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 if test "X$HPUX_IA64_MODE" = X32; then
15512 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15513 else
15514 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15515 fi
15516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15517 ;;
15518 hppa*64*)
15519 shrext_cmds='.sl'
15520 hardcode_into_libs=yes
15521 dynamic_linker="$host_os dld.sl"
15522 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15528 ;;
15529 *)
15530 shrext_cmds='.sl'
15531 dynamic_linker="$host_os dld.sl"
15532 shlibpath_var=SHLIB_PATH
15533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 ;;
15537 esac
cristy0c60a692010-11-04 01:09:47 +000015538 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015539 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015540 # or fails outright, so override atomically:
15541 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015542 ;;
15543
15544interix[3-9]*)
15545 version_type=linux
15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553 hardcode_into_libs=yes
15554 ;;
15555
15556irix5* | irix6* | nonstopux*)
15557 case $host_os in
15558 nonstopux*) version_type=nonstopux ;;
15559 *)
15560 if test "$lt_cv_prog_gnu_ld" = yes; then
15561 version_type=linux
15562 else
15563 version_type=irix
15564 fi ;;
15565 esac
15566 need_lib_prefix=no
15567 need_version=no
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15570 case $host_os in
15571 irix5* | nonstopux*)
15572 libsuff= shlibsuff=
15573 ;;
15574 *)
15575 case $LD in # libtool.m4 will add one of these switches to LD
15576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15577 libsuff= shlibsuff= libmagic=32-bit;;
15578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15579 libsuff=32 shlibsuff=N32 libmagic=N32;;
15580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15582 *) libsuff= shlibsuff= libmagic=never-match;;
15583 esac
15584 ;;
15585 esac
15586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15587 shlibpath_overrides_runpath=no
15588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15590 hardcode_into_libs=yes
15591 ;;
15592
15593# No shared lib support for Linux oldld, aout, or coff.
15594linux*oldld* | linux*aout* | linux*coff*)
15595 dynamic_linker=no
15596 ;;
15597
15598# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015599linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015600 version_type=linux
15601 need_lib_prefix=no
15602 need_version=no
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015608
cristy73bd4a52010-10-05 11:24:23 +000015609 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015610 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015611 $as_echo_n "(cached) " >&6
15612else
15613 lt_cv_shlibpath_overrides_runpath=no
15614 save_LDFLAGS=$LDFLAGS
15615 save_libdir=$libdir
15616 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15617 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015619/* end confdefs.h. */
15620
15621int
15622main ()
15623{
15624
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629if ac_fn_c_try_link "$LINENO"; then :
15630 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015631 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015632fi
15633fi
15634rm -f core conftest.err conftest.$ac_objext \
15635 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015636 LDFLAGS=$save_LDFLAGS
15637 libdir=$save_libdir
15638
15639fi
15640
15641 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015642
15643 # This implies no fast_install, which is unacceptable.
15644 # Some rework will be needed to allow for fast_install
15645 # before this can be enabled.
15646 hardcode_into_libs=yes
15647
15648 # Add ABI-specific directories to the system library path.
15649 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15650
15651 # Append ld.so.conf contents to the search path
15652 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015653 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000015654 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015655
cristy73bd4a52010-10-05 11:24:23 +000015656 fi
15657
15658 # We used to test for /lib/ld.so.1 and disable shared libraries on
15659 # powerpc, because MkLinux only supported shared libraries with the
15660 # GNU dynamic linker. Since this was broken with cross compilers,
15661 # most powerpc-linux boxes support dynamic linking these days and
15662 # people can always --disable-shared, the test was removed, and we
15663 # assume the GNU/Linux dynamic linker is in use.
15664 dynamic_linker='GNU/Linux ld.so'
15665 ;;
15666
15667netbsd*)
15668 version_type=sunos
15669 need_lib_prefix=no
15670 need_version=no
15671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15674 dynamic_linker='NetBSD (a.out) ld.so'
15675 else
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 dynamic_linker='NetBSD ld.elf_so'
15679 fi
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15683 ;;
15684
15685newsos6)
15686 version_type=linux
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=yes
15690 ;;
15691
15692*nto* | *qnx*)
15693 version_type=qnx
15694 need_lib_prefix=no
15695 need_version=no
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=no
15700 hardcode_into_libs=yes
15701 dynamic_linker='ldqnx.so'
15702 ;;
15703
15704openbsd*)
15705 version_type=sunos
15706 sys_lib_dlsearch_path_spec="/usr/lib"
15707 need_lib_prefix=no
15708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15709 case $host_os in
15710 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15711 *) need_version=no ;;
15712 esac
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15717 case $host_os in
15718 openbsd2.[89] | openbsd2.[89].*)
15719 shlibpath_overrides_runpath=no
15720 ;;
15721 *)
15722 shlibpath_overrides_runpath=yes
15723 ;;
15724 esac
15725 else
15726 shlibpath_overrides_runpath=yes
15727 fi
15728 ;;
15729
15730os2*)
15731 libname_spec='$name'
15732 shrext_cmds=".dll"
15733 need_lib_prefix=no
15734 library_names_spec='$libname${shared_ext} $libname.a'
15735 dynamic_linker='OS/2 ld.exe'
15736 shlibpath_var=LIBPATH
15737 ;;
15738
15739osf3* | osf4* | osf5*)
15740 version_type=osf
15741 need_lib_prefix=no
15742 need_version=no
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 shlibpath_var=LD_LIBRARY_PATH
15746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15748 ;;
15749
15750rdos*)
15751 dynamic_linker=no
15752 ;;
15753
15754solaris*)
15755 version_type=linux
15756 need_lib_prefix=no
15757 need_version=no
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 shlibpath_var=LD_LIBRARY_PATH
15761 shlibpath_overrides_runpath=yes
15762 hardcode_into_libs=yes
15763 # ldd complains unless libraries are executable
15764 postinstall_cmds='chmod +x $lib'
15765 ;;
15766
15767sunos4*)
15768 version_type=sunos
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15773 if test "$with_gnu_ld" = yes; then
15774 need_lib_prefix=no
15775 fi
15776 need_version=yes
15777 ;;
15778
15779sysv4 | sysv4.3*)
15780 version_type=linux
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782 soname_spec='${libname}${release}${shared_ext}$major'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 case $host_vendor in
15785 sni)
15786 shlibpath_overrides_runpath=no
15787 need_lib_prefix=no
15788 runpath_var=LD_RUN_PATH
15789 ;;
15790 siemens)
15791 need_lib_prefix=no
15792 ;;
15793 motorola)
15794 need_lib_prefix=no
15795 need_version=no
15796 shlibpath_overrides_runpath=no
15797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15798 ;;
15799 esac
15800 ;;
15801
15802sysv4*MP*)
15803 if test -d /usr/nec ;then
15804 version_type=linux
15805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15806 soname_spec='$libname${shared_ext}.$major'
15807 shlibpath_var=LD_LIBRARY_PATH
15808 fi
15809 ;;
15810
15811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15812 version_type=freebsd-elf
15813 need_lib_prefix=no
15814 need_version=no
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15820 if test "$with_gnu_ld" = yes; then
15821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15822 else
15823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15824 case $host_os in
15825 sco3.2v5*)
15826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15827 ;;
15828 esac
15829 fi
15830 sys_lib_dlsearch_path_spec='/usr/lib'
15831 ;;
15832
15833tpf*)
15834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15835 version_type=linux
15836 need_lib_prefix=no
15837 need_version=no
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath=no
15841 hardcode_into_libs=yes
15842 ;;
15843
15844uts4*)
15845 version_type=linux
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 shlibpath_var=LD_LIBRARY_PATH
15849 ;;
15850
15851*)
15852 dynamic_linker=no
15853 ;;
15854esac
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15856$as_echo "$dynamic_linker" >&6; }
15857test "$dynamic_linker" = no && can_build_shared=no
15858
15859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15860if test "$GCC" = yes; then
15861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15862fi
15863
15864if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15866fi
15867if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15868 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15869fi
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
cristy0c60a692010-11-04 01:09:47 +000015957
15958
15959
15960
15961
cristy73bd4a52010-10-05 11:24:23 +000015962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15963$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15964hardcode_action=
15965if test -n "$hardcode_libdir_flag_spec" ||
15966 test -n "$runpath_var" ||
15967 test "X$hardcode_automatic" = "Xyes" ; then
15968
15969 # We can hardcode non-existent directories.
15970 if test "$hardcode_direct" != no &&
15971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15972 # have to relink, otherwise we might link with an installed library
15973 # when we should be linking with a yet-to-be-installed one
15974 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15975 test "$hardcode_minus_L" != no; then
15976 # Linking always hardcodes the temporary library directory.
15977 hardcode_action=relink
15978 else
15979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15980 hardcode_action=immediate
15981 fi
15982else
15983 # We cannot hardcode anything, or else we can only hardcode existing
15984 # directories.
15985 hardcode_action=unsupported
15986fi
15987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15988$as_echo "$hardcode_action" >&6; }
15989
15990if test "$hardcode_action" = relink ||
15991 test "$inherit_rpath" = yes; then
15992 # Fast installation is not supported
15993 enable_fast_install=no
15994elif test "$shlibpath_overrides_runpath" = yes ||
15995 test "$enable_shared" = no; then
15996 # Fast installation is not necessary
15997 enable_fast_install=needless
15998fi
15999
16000
16001
16002
16003
16004
16005 if test "x$enable_dlopen" != xyes; then
16006 enable_dlopen=unknown
16007 enable_dlopen_self=unknown
16008 enable_dlopen_self_static=unknown
16009else
16010 lt_cv_dlopen=no
16011 lt_cv_dlopen_libs=
16012
16013 case $host_os in
16014 beos*)
16015 lt_cv_dlopen="load_add_on"
16016 lt_cv_dlopen_libs=
16017 lt_cv_dlopen_self=yes
16018 ;;
16019
16020 mingw* | pw32* | cegcc*)
16021 lt_cv_dlopen="LoadLibrary"
16022 lt_cv_dlopen_libs=
16023 ;;
16024
16025 cygwin*)
16026 lt_cv_dlopen="dlopen"
16027 lt_cv_dlopen_libs=
16028 ;;
16029
16030 darwin*)
16031 # if libdl is installed we need to link against it
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16033$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016034if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016035 $as_echo_n "(cached) " >&6
16036else
16037 ac_check_lib_save_LIBS=$LIBS
16038LIBS="-ldl $LIBS"
16039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h. */
16041
16042/* Override any GCC internal prototype to avoid an error.
16043 Use char because int might match the return type of a GCC
16044 builtin and then its argument prototype would still apply. */
16045#ifdef __cplusplus
16046extern "C"
16047#endif
16048char dlopen ();
16049int
16050main ()
16051{
16052return dlopen ();
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057if ac_fn_c_try_link "$LINENO"; then :
16058 ac_cv_lib_dl_dlopen=yes
16059else
16060 ac_cv_lib_dl_dlopen=no
16061fi
16062rm -f core conftest.err conftest.$ac_objext \
16063 conftest$ac_exeext conftest.$ac_ext
16064LIBS=$ac_check_lib_save_LIBS
16065fi
16066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16067$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016068if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16070else
16071
16072 lt_cv_dlopen="dyld"
16073 lt_cv_dlopen_libs=
16074 lt_cv_dlopen_self=yes
16075
16076fi
16077
16078 ;;
16079
16080 *)
16081 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016082if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016083 lt_cv_dlopen="shl_load"
16084else
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16086$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016087if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016088 $as_echo_n "(cached) " >&6
16089else
16090 ac_check_lib_save_LIBS=$LIBS
16091LIBS="-ldld $LIBS"
16092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h. */
16094
16095/* Override any GCC internal prototype to avoid an error.
16096 Use char because int might match the return type of a GCC
16097 builtin and then its argument prototype would still apply. */
16098#ifdef __cplusplus
16099extern "C"
16100#endif
16101char shl_load ();
16102int
16103main ()
16104{
16105return shl_load ();
16106 ;
16107 return 0;
16108}
16109_ACEOF
16110if ac_fn_c_try_link "$LINENO"; then :
16111 ac_cv_lib_dld_shl_load=yes
16112else
16113 ac_cv_lib_dld_shl_load=no
16114fi
16115rm -f core conftest.err conftest.$ac_objext \
16116 conftest$ac_exeext conftest.$ac_ext
16117LIBS=$ac_check_lib_save_LIBS
16118fi
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16120$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016121if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016122 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16123else
16124 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016125if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016126 lt_cv_dlopen="dlopen"
16127else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16129$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016130if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016131 $as_echo_n "(cached) " >&6
16132else
16133 ac_check_lib_save_LIBS=$LIBS
16134LIBS="-ldl $LIBS"
16135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136/* end confdefs.h. */
16137
16138/* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16141#ifdef __cplusplus
16142extern "C"
16143#endif
16144char dlopen ();
16145int
16146main ()
16147{
16148return dlopen ();
16149 ;
16150 return 0;
16151}
16152_ACEOF
16153if ac_fn_c_try_link "$LINENO"; then :
16154 ac_cv_lib_dl_dlopen=yes
16155else
16156 ac_cv_lib_dl_dlopen=no
16157fi
16158rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160LIBS=$ac_check_lib_save_LIBS
16161fi
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16163$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016164if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16166else
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16168$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016169if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016170 $as_echo_n "(cached) " >&6
16171else
16172 ac_check_lib_save_LIBS=$LIBS
16173LIBS="-lsvld $LIBS"
16174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175/* end confdefs.h. */
16176
16177/* Override any GCC internal prototype to avoid an error.
16178 Use char because int might match the return type of a GCC
16179 builtin and then its argument prototype would still apply. */
16180#ifdef __cplusplus
16181extern "C"
16182#endif
16183char dlopen ();
16184int
16185main ()
16186{
16187return dlopen ();
16188 ;
16189 return 0;
16190}
16191_ACEOF
16192if ac_fn_c_try_link "$LINENO"; then :
16193 ac_cv_lib_svld_dlopen=yes
16194else
16195 ac_cv_lib_svld_dlopen=no
16196fi
16197rm -f core conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199LIBS=$ac_check_lib_save_LIBS
16200fi
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16202$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016203if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16205else
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16207$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016208if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016209 $as_echo_n "(cached) " >&6
16210else
16211 ac_check_lib_save_LIBS=$LIBS
16212LIBS="-ldld $LIBS"
16213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214/* end confdefs.h. */
16215
16216/* Override any GCC internal prototype to avoid an error.
16217 Use char because int might match the return type of a GCC
16218 builtin and then its argument prototype would still apply. */
16219#ifdef __cplusplus
16220extern "C"
16221#endif
16222char dld_link ();
16223int
16224main ()
16225{
16226return dld_link ();
16227 ;
16228 return 0;
16229}
16230_ACEOF
16231if ac_fn_c_try_link "$LINENO"; then :
16232 ac_cv_lib_dld_dld_link=yes
16233else
16234 ac_cv_lib_dld_dld_link=no
16235fi
16236rm -f core conftest.err conftest.$ac_objext \
16237 conftest$ac_exeext conftest.$ac_ext
16238LIBS=$ac_check_lib_save_LIBS
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16241$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016242if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16244fi
16245
16246
16247fi
16248
16249
16250fi
16251
16252
16253fi
16254
16255
16256fi
16257
16258
16259fi
16260
16261 ;;
16262 esac
16263
16264 if test "x$lt_cv_dlopen" != xno; then
16265 enable_dlopen=yes
16266 else
16267 enable_dlopen=no
16268 fi
16269
16270 case $lt_cv_dlopen in
16271 dlopen)
16272 save_CPPFLAGS="$CPPFLAGS"
16273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16274
16275 save_LDFLAGS="$LDFLAGS"
16276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16277
16278 save_LIBS="$LIBS"
16279 LIBS="$lt_cv_dlopen_libs $LIBS"
16280
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16282$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016283if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016284 $as_echo_n "(cached) " >&6
16285else
16286 if test "$cross_compiling" = yes; then :
16287 lt_cv_dlopen_self=cross
16288else
16289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16290 lt_status=$lt_dlunknown
16291 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016292#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016293#include "confdefs.h"
16294
16295#if HAVE_DLFCN_H
16296#include <dlfcn.h>
16297#endif
16298
16299#include <stdio.h>
16300
16301#ifdef RTLD_GLOBAL
16302# define LT_DLGLOBAL RTLD_GLOBAL
16303#else
16304# ifdef DL_GLOBAL
16305# define LT_DLGLOBAL DL_GLOBAL
16306# else
16307# define LT_DLGLOBAL 0
16308# endif
16309#endif
16310
16311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16312 find out it does not work in some platform. */
16313#ifndef LT_DLLAZY_OR_NOW
16314# ifdef RTLD_LAZY
16315# define LT_DLLAZY_OR_NOW RTLD_LAZY
16316# else
16317# ifdef DL_LAZY
16318# define LT_DLLAZY_OR_NOW DL_LAZY
16319# else
16320# ifdef RTLD_NOW
16321# define LT_DLLAZY_OR_NOW RTLD_NOW
16322# else
16323# ifdef DL_NOW
16324# define LT_DLLAZY_OR_NOW DL_NOW
16325# else
16326# define LT_DLLAZY_OR_NOW 0
16327# endif
16328# endif
16329# endif
16330# endif
16331#endif
16332
cristy0c60a692010-11-04 01:09:47 +000016333/* When -fvisbility=hidden is used, assume the code has been annotated
16334 correspondingly for the symbols needed. */
16335#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016336int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016337#endif
16338
cristyda16f162011-02-19 23:52:17 +000016339int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016340int main ()
16341{
16342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16343 int status = $lt_dlunknown;
16344
16345 if (self)
16346 {
16347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016348 else
16349 {
16350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16351 else puts (dlerror ());
16352 }
cristy73bd4a52010-10-05 11:24:23 +000016353 /* dlclose (self); */
16354 }
16355 else
16356 puts (dlerror ());
16357
16358 return status;
16359}
16360_LT_EOF
16361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16362 (eval $ac_link) 2>&5
16363 ac_status=$?
16364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16366 (./conftest; exit; ) >&5 2>/dev/null
16367 lt_status=$?
16368 case x$lt_status in
16369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16371 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16372 esac
16373 else :
16374 # compilation failed
16375 lt_cv_dlopen_self=no
16376 fi
16377fi
16378rm -fr conftest*
16379
16380
16381fi
16382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16383$as_echo "$lt_cv_dlopen_self" >&6; }
16384
16385 if test "x$lt_cv_dlopen_self" = xyes; then
16386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16388$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016389if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016390 $as_echo_n "(cached) " >&6
16391else
16392 if test "$cross_compiling" = yes; then :
16393 lt_cv_dlopen_self_static=cross
16394else
16395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16396 lt_status=$lt_dlunknown
16397 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016398#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016399#include "confdefs.h"
16400
16401#if HAVE_DLFCN_H
16402#include <dlfcn.h>
16403#endif
16404
16405#include <stdio.h>
16406
16407#ifdef RTLD_GLOBAL
16408# define LT_DLGLOBAL RTLD_GLOBAL
16409#else
16410# ifdef DL_GLOBAL
16411# define LT_DLGLOBAL DL_GLOBAL
16412# else
16413# define LT_DLGLOBAL 0
16414# endif
16415#endif
16416
16417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16418 find out it does not work in some platform. */
16419#ifndef LT_DLLAZY_OR_NOW
16420# ifdef RTLD_LAZY
16421# define LT_DLLAZY_OR_NOW RTLD_LAZY
16422# else
16423# ifdef DL_LAZY
16424# define LT_DLLAZY_OR_NOW DL_LAZY
16425# else
16426# ifdef RTLD_NOW
16427# define LT_DLLAZY_OR_NOW RTLD_NOW
16428# else
16429# ifdef DL_NOW
16430# define LT_DLLAZY_OR_NOW DL_NOW
16431# else
16432# define LT_DLLAZY_OR_NOW 0
16433# endif
16434# endif
16435# endif
16436# endif
16437#endif
16438
cristy0c60a692010-11-04 01:09:47 +000016439/* When -fvisbility=hidden is used, assume the code has been annotated
16440 correspondingly for the symbols needed. */
16441#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016442int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016443#endif
16444
cristyda16f162011-02-19 23:52:17 +000016445int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016446int main ()
16447{
16448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16449 int status = $lt_dlunknown;
16450
16451 if (self)
16452 {
16453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016454 else
16455 {
16456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16457 else puts (dlerror ());
16458 }
cristy73bd4a52010-10-05 11:24:23 +000016459 /* dlclose (self); */
16460 }
16461 else
16462 puts (dlerror ());
16463
16464 return status;
16465}
16466_LT_EOF
16467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16468 (eval $ac_link) 2>&5
16469 ac_status=$?
16470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16472 (./conftest; exit; ) >&5 2>/dev/null
16473 lt_status=$?
16474 case x$lt_status in
16475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16478 esac
16479 else :
16480 # compilation failed
16481 lt_cv_dlopen_self_static=no
16482 fi
16483fi
16484rm -fr conftest*
16485
16486
16487fi
16488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16489$as_echo "$lt_cv_dlopen_self_static" >&6; }
16490 fi
16491
16492 CPPFLAGS="$save_CPPFLAGS"
16493 LDFLAGS="$save_LDFLAGS"
16494 LIBS="$save_LIBS"
16495 ;;
16496 esac
16497
16498 case $lt_cv_dlopen_self in
16499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16500 *) enable_dlopen_self=unknown ;;
16501 esac
16502
16503 case $lt_cv_dlopen_self_static in
16504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16505 *) enable_dlopen_self_static=unknown ;;
16506 esac
16507fi
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525striplib=
16526old_striplib=
16527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16528$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16529if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16530 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16531 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16533$as_echo "yes" >&6; }
16534else
16535# FIXME - insert some real tests, host_os isn't really good enough
16536 case $host_os in
16537 darwin*)
16538 if test -n "$STRIP" ; then
16539 striplib="$STRIP -x"
16540 old_striplib="$STRIP -S"
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16542$as_echo "yes" >&6; }
16543 else
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545$as_echo "no" >&6; }
16546 fi
16547 ;;
16548 *)
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550$as_echo "no" >&6; }
16551 ;;
16552 esac
16553fi
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566 # Report which library types will actually be built
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16568$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16570$as_echo "$can_build_shared" >&6; }
16571
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16573$as_echo_n "checking whether to build shared libraries... " >&6; }
16574 test "$can_build_shared" = "no" && enable_shared=no
16575
16576 # On AIX, shared libraries and static libraries use the same namespace, and
16577 # are all built from PIC.
16578 case $host_os in
16579 aix3*)
16580 test "$enable_shared" = yes && enable_static=no
16581 if test -n "$RANLIB"; then
16582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16583 postinstall_cmds='$RANLIB $lib'
16584 fi
16585 ;;
16586
16587 aix[4-9]*)
16588 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16589 test "$enable_shared" = yes && enable_static=no
16590 fi
16591 ;;
16592 esac
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16594$as_echo "$enable_shared" >&6; }
16595
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16597$as_echo_n "checking whether to build static libraries... " >&6; }
16598 # Make sure either enable_shared or enable_static is yes.
16599 test "$enable_shared" = yes || enable_static=yes
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16601$as_echo "$enable_static" >&6; }
16602
16603
16604
16605
16606fi
16607ac_ext=c
16608ac_cpp='$CPP $CPPFLAGS'
16609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16611ac_compiler_gnu=$ac_cv_c_compiler_gnu
16612
16613CC="$lt_save_CC"
16614
cristy0c60a692010-11-04 01:09:47 +000016615 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16616 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16617 (test "X$CXX" != "Xg++"))) ; then
16618 ac_ext=cpp
16619ac_cpp='$CXXCPP $CPPFLAGS'
16620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16624$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16625if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016626 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016627 $as_echo_n "(cached) " >&6
16628else
16629 # Double quotes because CXXCPP needs to be expanded
16630 for CXXCPP in "$CXX -E" "/lib/cpp"
16631 do
16632 ac_preproc_ok=false
16633for ac_cxx_preproc_warn_flag in '' yes
16634do
16635 # Use a header file that comes with gcc, so configuring glibc
16636 # with a fresh cross-compiler works.
16637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16638 # <limits.h> exists even on freestanding compilers.
16639 # On the NeXT, cc -E runs the code through the compiler's parser,
16640 # not just through cpp. "Syntax error" is here to catch this case.
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642/* end confdefs.h. */
16643#ifdef __STDC__
16644# include <limits.h>
16645#else
16646# include <assert.h>
16647#endif
16648 Syntax error
16649_ACEOF
16650if ac_fn_cxx_try_cpp "$LINENO"; then :
16651
16652else
16653 # Broken: fails on valid input.
16654continue
16655fi
cristyda16f162011-02-19 23:52:17 +000016656rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016657
16658 # OK, works on sane cases. Now check whether nonexistent headers
16659 # can be detected and how.
16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661/* end confdefs.h. */
16662#include <ac_nonexistent.h>
16663_ACEOF
16664if ac_fn_cxx_try_cpp "$LINENO"; then :
16665 # Broken: success on invalid input.
16666continue
16667else
16668 # Passes both tests.
16669ac_preproc_ok=:
16670break
16671fi
cristyda16f162011-02-19 23:52:17 +000016672rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016673
16674done
16675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016676rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016677if $ac_preproc_ok; then :
16678 break
16679fi
16680
16681 done
16682 ac_cv_prog_CXXCPP=$CXXCPP
16683
16684fi
16685 CXXCPP=$ac_cv_prog_CXXCPP
16686else
16687 ac_cv_prog_CXXCPP=$CXXCPP
16688fi
16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16690$as_echo "$CXXCPP" >&6; }
16691ac_preproc_ok=false
16692for ac_cxx_preproc_warn_flag in '' yes
16693do
16694 # Use a header file that comes with gcc, so configuring glibc
16695 # with a fresh cross-compiler works.
16696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697 # <limits.h> exists even on freestanding compilers.
16698 # On the NeXT, cc -E runs the code through the compiler's parser,
16699 # not just through cpp. "Syntax error" is here to catch this case.
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701/* end confdefs.h. */
16702#ifdef __STDC__
16703# include <limits.h>
16704#else
16705# include <assert.h>
16706#endif
16707 Syntax error
16708_ACEOF
16709if ac_fn_cxx_try_cpp "$LINENO"; then :
16710
16711else
16712 # Broken: fails on valid input.
16713continue
16714fi
cristyda16f162011-02-19 23:52:17 +000016715rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016716
16717 # OK, works on sane cases. Now check whether nonexistent headers
16718 # can be detected and how.
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720/* end confdefs.h. */
16721#include <ac_nonexistent.h>
16722_ACEOF
16723if ac_fn_cxx_try_cpp "$LINENO"; then :
16724 # Broken: success on invalid input.
16725continue
16726else
16727 # Passes both tests.
16728ac_preproc_ok=:
16729break
16730fi
cristyda16f162011-02-19 23:52:17 +000016731rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016732
16733done
16734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016735rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016736if $ac_preproc_ok; then :
16737
16738else
16739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16741as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16742See \`config.log' for more details" "$LINENO" 5; }
16743fi
16744
16745ac_ext=c
16746ac_cpp='$CPP $CPPFLAGS'
16747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749ac_compiler_gnu=$ac_cv_c_compiler_gnu
16750
16751else
16752 _lt_caught_CXX_error=yes
16753fi
cristy73bd4a52010-10-05 11:24:23 +000016754
16755ac_ext=cpp
16756ac_cpp='$CXXCPP $CPPFLAGS'
16757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16760
16761archive_cmds_need_lc_CXX=no
16762allow_undefined_flag_CXX=
16763always_export_symbols_CXX=no
16764archive_expsym_cmds_CXX=
16765compiler_needs_object_CXX=no
16766export_dynamic_flag_spec_CXX=
16767hardcode_direct_CXX=no
16768hardcode_direct_absolute_CXX=no
16769hardcode_libdir_flag_spec_CXX=
16770hardcode_libdir_flag_spec_ld_CXX=
16771hardcode_libdir_separator_CXX=
16772hardcode_minus_L_CXX=no
16773hardcode_shlibpath_var_CXX=unsupported
16774hardcode_automatic_CXX=no
16775inherit_rpath_CXX=no
16776module_cmds_CXX=
16777module_expsym_cmds_CXX=
16778link_all_deplibs_CXX=unknown
16779old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016780reload_flag_CXX=$reload_flag
16781reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016782no_undefined_flag_CXX=
16783whole_archive_flag_spec_CXX=
16784enable_shared_with_static_runtimes_CXX=no
16785
16786# Source file extension for C++ test sources.
16787ac_ext=cpp
16788
16789# Object file extension for compiled C++ test sources.
16790objext=o
16791objext_CXX=$objext
16792
16793# No sense in running all these tests if we already determined that
16794# the CXX compiler isn't working. Some variables (like enable_shared)
16795# are currently assumed to apply to all compilers on this platform,
16796# and will be corrupted by setting them based on a non-working compiler.
16797if test "$_lt_caught_CXX_error" != yes; then
16798 # Code to be used in simple compile tests
16799 lt_simple_compile_test_code="int some_variable = 0;"
16800
16801 # Code to be used in simple link tests
16802 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16803
16804 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16805
16806
16807
16808
16809
16810
16811# If no C compiler was specified, use CC.
16812LTCC=${LTCC-"$CC"}
16813
16814# If no C compiler flags were specified, use CFLAGS.
16815LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16816
16817# Allow CC to be a program name with arguments.
16818compiler=$CC
16819
16820
16821 # save warnings/boilerplate of simple test code
16822 ac_outfile=conftest.$ac_objext
16823echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16824eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16825_lt_compiler_boilerplate=`cat conftest.err`
16826$RM conftest*
16827
16828 ac_outfile=conftest.$ac_objext
16829echo "$lt_simple_link_test_code" >conftest.$ac_ext
16830eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16831_lt_linker_boilerplate=`cat conftest.err`
16832$RM -r conftest*
16833
16834
16835 # Allow CC to be a program name with arguments.
16836 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016837 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016838 lt_save_LD=$LD
16839 lt_save_GCC=$GCC
16840 GCC=$GXX
16841 lt_save_with_gnu_ld=$with_gnu_ld
16842 lt_save_path_LD=$lt_cv_path_LD
16843 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16844 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16845 else
16846 $as_unset lt_cv_prog_gnu_ld
16847 fi
16848 if test -n "${lt_cv_path_LDCXX+set}"; then
16849 lt_cv_path_LD=$lt_cv_path_LDCXX
16850 else
16851 $as_unset lt_cv_path_LD
16852 fi
16853 test -z "${LDCXX+set}" || LD=$LDCXX
16854 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016855 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016856 compiler=$CC
16857 compiler_CXX=$CC
16858 for cc_temp in $compiler""; do
16859 case $cc_temp in
16860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16862 \-*) ;;
16863 *) break;;
16864 esac
16865done
cristy0c60a692010-11-04 01:09:47 +000016866cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016867
16868
16869 if test -n "$compiler"; then
16870 # We don't want -fno-exception when compiling C++ code, so set the
16871 # no_builtin_flag separately
16872 if test "$GXX" = yes; then
16873 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16874 else
16875 lt_prog_compiler_no_builtin_flag_CXX=
16876 fi
16877
16878 if test "$GXX" = yes; then
16879 # Set up default GNU C++ configuration
16880
16881
16882
16883# Check whether --with-gnu-ld was given.
16884if test "${with_gnu_ld+set}" = set; then :
16885 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16886else
16887 with_gnu_ld=no
16888fi
16889
16890ac_prog=ld
16891if test "$GCC" = yes; then
16892 # Check if gcc -print-prog-name=ld gives a path.
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16894$as_echo_n "checking for ld used by $CC... " >&6; }
16895 case $host in
16896 *-*-mingw*)
16897 # gcc leaves a trailing carriage return which upsets mingw
16898 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16899 *)
16900 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16901 esac
16902 case $ac_prog in
16903 # Accept absolute paths.
16904 [\\/]* | ?:[\\/]*)
16905 re_direlt='/[^/][^/]*/\.\./'
16906 # Canonicalize the pathname of ld
16907 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16908 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16909 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16910 done
16911 test -z "$LD" && LD="$ac_prog"
16912 ;;
16913 "")
16914 # If it fails, then pretend we aren't using GCC.
16915 ac_prog=ld
16916 ;;
16917 *)
16918 # If it is relative, then search for the first ld in PATH.
16919 with_gnu_ld=unknown
16920 ;;
16921 esac
16922elif test "$with_gnu_ld" = yes; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16924$as_echo_n "checking for GNU ld... " >&6; }
16925else
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16927$as_echo_n "checking for non-GNU ld... " >&6; }
16928fi
cristyda16f162011-02-19 23:52:17 +000016929if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016930 $as_echo_n "(cached) " >&6
16931else
16932 if test -z "$LD"; then
16933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16934 for ac_dir in $PATH; do
16935 IFS="$lt_save_ifs"
16936 test -z "$ac_dir" && ac_dir=.
16937 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16938 lt_cv_path_LD="$ac_dir/$ac_prog"
16939 # Check to see if the program is GNU ld. I'd rather use --version,
16940 # but apparently some variants of GNU ld only accept -v.
16941 # Break only if it was the GNU/non-GNU ld that we prefer.
16942 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16943 *GNU* | *'with BFD'*)
16944 test "$with_gnu_ld" != no && break
16945 ;;
16946 *)
16947 test "$with_gnu_ld" != yes && break
16948 ;;
16949 esac
16950 fi
16951 done
16952 IFS="$lt_save_ifs"
16953else
16954 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16955fi
16956fi
16957
16958LD="$lt_cv_path_LD"
16959if test -n "$LD"; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16961$as_echo "$LD" >&6; }
16962else
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964$as_echo "no" >&6; }
16965fi
cristy98dddb52010-11-04 00:30:15 +000016966test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16968$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016969if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016970 $as_echo_n "(cached) " >&6
16971else
16972 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16973case `$LD -v 2>&1 </dev/null` in
16974*GNU* | *'with BFD'*)
16975 lt_cv_prog_gnu_ld=yes
16976 ;;
16977*)
16978 lt_cv_prog_gnu_ld=no
16979 ;;
16980esac
16981fi
16982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16983$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16984with_gnu_ld=$lt_cv_prog_gnu_ld
16985
16986
16987
16988
16989
16990
16991
16992 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16993 # archiving commands below assume that GNU ld is being used.
16994 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016995 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16996 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016997
16998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17000
17001 # If archive_cmds runs LD, not CC, wlarc should be empty
17002 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17003 # investigate it a little bit more. (MM)
17004 wlarc='${wl}'
17005
17006 # ancient GNU ld didn't support --whole-archive et. al.
17007 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17008 $GREP 'no-whole-archive' > /dev/null; then
17009 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17010 else
17011 whole_archive_flag_spec_CXX=
17012 fi
17013 else
17014 with_gnu_ld=no
17015 wlarc=
17016
17017 # A generic and very simple default shared library creation
17018 # command for GNU C++ for the case where it uses the native
17019 # linker, instead of GNU ld. If possible, this setting should
17020 # overridden to take advantage of the native linker features on
17021 # the platform it is being used on.
17022 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17023 fi
17024
17025 # Commands to make compiler produce verbose output that lists
17026 # what "hidden" libraries, object files and flags are used when
17027 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017028 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017029
17030 else
17031 GXX=no
17032 with_gnu_ld=no
17033 wlarc=
17034 fi
17035
17036 # PORTME: fill in a description of your system's C++ link characteristics
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17038$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17039 ld_shlibs_CXX=yes
17040 case $host_os in
17041 aix3*)
17042 # FIXME: insert proper C++ library support
17043 ld_shlibs_CXX=no
17044 ;;
17045 aix[4-9]*)
17046 if test "$host_cpu" = ia64; then
17047 # On IA64, the linker does run time linking by default, so we don't
17048 # have to do anything special.
17049 aix_use_runtimelinking=no
17050 exp_sym_flag='-Bexport'
17051 no_entry_flag=""
17052 else
17053 aix_use_runtimelinking=no
17054
17055 # Test if we are trying to use run time linking or normal
17056 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17057 # need to do runtime linking.
17058 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17059 for ld_flag in $LDFLAGS; do
17060 case $ld_flag in
17061 *-brtl*)
17062 aix_use_runtimelinking=yes
17063 break
17064 ;;
17065 esac
17066 done
17067 ;;
17068 esac
17069
17070 exp_sym_flag='-bexport'
17071 no_entry_flag='-bnoentry'
17072 fi
17073
17074 # When large executables or shared objects are built, AIX ld can
17075 # have problems creating the table of contents. If linking a library
17076 # or program results in "error TOC overflow" add -mminimal-toc to
17077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17079
17080 archive_cmds_CXX=''
17081 hardcode_direct_CXX=yes
17082 hardcode_direct_absolute_CXX=yes
17083 hardcode_libdir_separator_CXX=':'
17084 link_all_deplibs_CXX=yes
17085 file_list_spec_CXX='${wl}-f,'
17086
17087 if test "$GXX" = yes; then
17088 case $host_os in aix4.[012]|aix4.[012].*)
17089 # We only want to do this on AIX 4.2 and lower, the check
17090 # below for broken collect2 doesn't work under 4.3+
17091 collect2name=`${CC} -print-prog-name=collect2`
17092 if test -f "$collect2name" &&
17093 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17094 then
17095 # We have reworked collect2
17096 :
17097 else
17098 # We have old collect2
17099 hardcode_direct_CXX=unsupported
17100 # It fails to find uninstalled libraries when the uninstalled
17101 # path is not listed in the libpath. Setting hardcode_minus_L
17102 # to unsupported forces relinking
17103 hardcode_minus_L_CXX=yes
17104 hardcode_libdir_flag_spec_CXX='-L$libdir'
17105 hardcode_libdir_separator_CXX=
17106 fi
17107 esac
17108 shared_flag='-shared'
17109 if test "$aix_use_runtimelinking" = yes; then
17110 shared_flag="$shared_flag "'${wl}-G'
17111 fi
17112 else
17113 # not using gcc
17114 if test "$host_cpu" = ia64; then
17115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17116 # chokes on -Wl,-G. The following line is correct:
17117 shared_flag='-G'
17118 else
17119 if test "$aix_use_runtimelinking" = yes; then
17120 shared_flag='${wl}-G'
17121 else
17122 shared_flag='${wl}-bM:SRE'
17123 fi
17124 fi
17125 fi
17126
17127 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17128 # It seems that -bexpall does not export symbols beginning with
17129 # underscore (_), so it is better to generate a list of symbols to
17130 # export.
17131 always_export_symbols_CXX=yes
17132 if test "$aix_use_runtimelinking" = yes; then
17133 # Warning - without using the other runtime loading flags (-brtl),
17134 # -berok will link without error, but may produce a broken library.
17135 allow_undefined_flag_CXX='-berok'
17136 # Determine the default libpath from the value encoded in an empty
17137 # executable.
cristyda16f162011-02-19 23:52:17 +000017138 if test "${lt_cv_aix_libpath+set}" = set; then
17139 aix_libpath=$lt_cv_aix_libpath
17140else
17141 if ${lt_cv_aix_libpath__CXX+:} false; then :
17142 $as_echo_n "(cached) " >&6
17143else
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017145/* end confdefs.h. */
17146
17147int
17148main ()
17149{
17150
17151 ;
17152 return 0;
17153}
17154_ACEOF
17155if ac_fn_cxx_try_link "$LINENO"; then :
17156
cristyda16f162011-02-19 23:52:17 +000017157 lt_aix_libpath_sed='
17158 /Import File Strings/,/^$/ {
17159 /^0/ {
17160 s/^0 *\([^ ]*\) *$/\1/
17161 p
17162 }
17163 }'
17164 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17165 # Check for a 64-bit object if we didn't find anything.
17166 if test -z "$lt_cv_aix_libpath__CXX"; then
17167 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17168 fi
cristy73bd4a52010-10-05 11:24:23 +000017169fi
17170rm -f core conftest.err conftest.$ac_objext \
17171 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017172 if test -z "$lt_cv_aix_libpath__CXX"; then
17173 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17174 fi
17175
17176fi
17177
17178 aix_libpath=$lt_cv_aix_libpath__CXX
17179fi
cristy73bd4a52010-10-05 11:24:23 +000017180
17181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17182
cristy0c60a692010-11-04 01:09:47 +000017183 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000017184 else
17185 if test "$host_cpu" = ia64; then
17186 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17187 allow_undefined_flag_CXX="-z nodefs"
17188 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17189 else
17190 # Determine the default libpath from the value encoded in an
17191 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017192 if test "${lt_cv_aix_libpath+set}" = set; then
17193 aix_libpath=$lt_cv_aix_libpath
17194else
17195 if ${lt_cv_aix_libpath__CXX+:} false; then :
17196 $as_echo_n "(cached) " >&6
17197else
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017199/* end confdefs.h. */
17200
17201int
17202main ()
17203{
17204
17205 ;
17206 return 0;
17207}
17208_ACEOF
17209if ac_fn_cxx_try_link "$LINENO"; then :
17210
cristyda16f162011-02-19 23:52:17 +000017211 lt_aix_libpath_sed='
17212 /Import File Strings/,/^$/ {
17213 /^0/ {
17214 s/^0 *\([^ ]*\) *$/\1/
17215 p
17216 }
17217 }'
17218 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17219 # Check for a 64-bit object if we didn't find anything.
17220 if test -z "$lt_cv_aix_libpath__CXX"; then
17221 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17222 fi
cristy73bd4a52010-10-05 11:24:23 +000017223fi
17224rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017226 if test -z "$lt_cv_aix_libpath__CXX"; then
17227 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17228 fi
17229
17230fi
17231
17232 aix_libpath=$lt_cv_aix_libpath__CXX
17233fi
cristy73bd4a52010-10-05 11:24:23 +000017234
17235 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17236 # Warning - without using the other run time loading flags,
17237 # -berok will link without error, but may produce a broken library.
17238 no_undefined_flag_CXX=' ${wl}-bernotok'
17239 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017240 if test "$with_gnu_ld" = yes; then
17241 # We only use this code for GNU lds that support --whole-archive.
17242 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17243 else
17244 # Exported symbols can be pulled into shared objects from archives
17245 whole_archive_flag_spec_CXX='$convenience'
17246 fi
cristy73bd4a52010-10-05 11:24:23 +000017247 archive_cmds_need_lc_CXX=yes
17248 # This is similar to how AIX traditionally builds its shared
17249 # libraries.
17250 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17251 fi
17252 fi
17253 ;;
17254
17255 beos*)
17256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17257 allow_undefined_flag_CXX=unsupported
17258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17259 # support --undefined. This deserves some investigation. FIXME
17260 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17261 else
17262 ld_shlibs_CXX=no
17263 fi
17264 ;;
17265
17266 chorus*)
17267 case $cc_basename in
17268 *)
17269 # FIXME: insert proper C++ library support
17270 ld_shlibs_CXX=no
17271 ;;
17272 esac
17273 ;;
17274
17275 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017276 case $GXX,$cc_basename in
17277 ,cl* | no,cl*)
17278 # Native MSVC
17279 # hardcode_libdir_flag_spec is actually meaningless, as there is
17280 # no search path for DLLs.
17281 hardcode_libdir_flag_spec_CXX=' '
17282 allow_undefined_flag_CXX=unsupported
17283 always_export_symbols_CXX=yes
17284 file_list_spec_CXX='@'
17285 # Tell ltmain to make .lib files, not .a files.
17286 libext=lib
17287 # Tell ltmain to make .dll files, not .so files.
17288 shrext_cmds=".dll"
17289 # FIXME: Setting linknames here is a bad hack.
17290 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17291 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17292 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17293 else
17294 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17295 fi~
17296 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17297 linknames='
17298 # The linker will not automatically build a static lib if we build a DLL.
17299 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17300 enable_shared_with_static_runtimes_CXX=yes
17301 # Don't use ranlib
17302 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17303 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17304 lt_tool_outputfile="@TOOL_OUTPUT@"~
17305 case $lt_outputfile in
17306 *.exe|*.EXE) ;;
17307 *)
17308 lt_outputfile="$lt_outputfile.exe"
17309 lt_tool_outputfile="$lt_tool_outputfile.exe"
17310 ;;
17311 esac~
17312 func_to_tool_file "$lt_outputfile"~
17313 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17314 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17315 $RM "$lt_outputfile.manifest";
17316 fi'
17317 ;;
17318 *)
17319 # g++
17320 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17321 # as there is no search path for DLLs.
17322 hardcode_libdir_flag_spec_CXX='-L$libdir'
17323 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17324 allow_undefined_flag_CXX=unsupported
17325 always_export_symbols_CXX=no
17326 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017327
cristyda16f162011-02-19 23:52:17 +000017328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17329 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17330 # If the export-symbols file already is a .def file (1st line
17331 # is EXPORTS), use it as is; otherwise, prepend...
17332 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17333 cp $export_symbols $output_objdir/$soname.def;
17334 else
17335 echo EXPORTS > $output_objdir/$soname.def;
17336 cat $export_symbols >> $output_objdir/$soname.def;
17337 fi~
17338 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17339 else
17340 ld_shlibs_CXX=no
17341 fi
17342 ;;
17343 esac
17344 ;;
cristy73bd4a52010-10-05 11:24:23 +000017345 darwin* | rhapsody*)
17346
17347
17348 archive_cmds_need_lc_CXX=no
17349 hardcode_direct_CXX=no
17350 hardcode_automatic_CXX=yes
17351 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017352 if test "$lt_cv_ld_force_load" = "yes"; then
17353 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17354 else
17355 whole_archive_flag_spec_CXX=''
17356 fi
cristy73bd4a52010-10-05 11:24:23 +000017357 link_all_deplibs_CXX=yes
17358 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17359 case $cc_basename in
17360 ifort*) _lt_dar_can_shared=yes ;;
17361 *) _lt_dar_can_shared=$GCC ;;
17362 esac
17363 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017364 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017365 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17366 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17367 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17368 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17369 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17370 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
17371 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
17372 fi
17373
17374 else
17375 ld_shlibs_CXX=no
17376 fi
17377
17378 ;;
17379
17380 dgux*)
17381 case $cc_basename in
17382 ec++*)
17383 # FIXME: insert proper C++ library support
17384 ld_shlibs_CXX=no
17385 ;;
17386 ghcx*)
17387 # Green Hills C++ Compiler
17388 # FIXME: insert proper C++ library support
17389 ld_shlibs_CXX=no
17390 ;;
17391 *)
17392 # FIXME: insert proper C++ library support
17393 ld_shlibs_CXX=no
17394 ;;
17395 esac
17396 ;;
17397
17398 freebsd[12]*)
17399 # C++ shared libraries reported to be fairly broken before
17400 # switch to ELF
17401 ld_shlibs_CXX=no
17402 ;;
17403
17404 freebsd-elf*)
17405 archive_cmds_need_lc_CXX=no
17406 ;;
17407
17408 freebsd* | dragonfly*)
17409 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17410 # conventions
17411 ld_shlibs_CXX=yes
17412 ;;
17413
17414 gnu*)
17415 ;;
17416
cristy0c60a692010-11-04 01:09:47 +000017417 haiku*)
17418 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419 link_all_deplibs_CXX=yes
17420 ;;
17421
cristy73bd4a52010-10-05 11:24:23 +000017422 hpux9*)
17423 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17424 hardcode_libdir_separator_CXX=:
17425 export_dynamic_flag_spec_CXX='${wl}-E'
17426 hardcode_direct_CXX=yes
17427 hardcode_minus_L_CXX=yes # Not in the search PATH,
17428 # but as the default
17429 # location of the library.
17430
17431 case $cc_basename in
17432 CC*)
17433 # FIXME: insert proper C++ library support
17434 ld_shlibs_CXX=no
17435 ;;
17436 aCC*)
17437 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17438 # Commands to make compiler produce verbose output that lists
17439 # what "hidden" libraries, object files and flags are used when
17440 # linking a shared library.
17441 #
17442 # There doesn't appear to be a way to prevent this compiler from
17443 # explicitly linking system object files so we need to strip them
17444 # from the output so that they don't get included in the library
17445 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017446 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000017447 ;;
17448 *)
17449 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017450 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000017451 else
17452 # FIXME: insert proper C++ library support
17453 ld_shlibs_CXX=no
17454 fi
17455 ;;
17456 esac
17457 ;;
17458
17459 hpux10*|hpux11*)
17460 if test $with_gnu_ld = no; then
17461 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17462 hardcode_libdir_separator_CXX=:
17463
17464 case $host_cpu in
17465 hppa*64*|ia64*)
17466 ;;
17467 *)
17468 export_dynamic_flag_spec_CXX='${wl}-E'
17469 ;;
17470 esac
17471 fi
17472 case $host_cpu in
17473 hppa*64*|ia64*)
17474 hardcode_direct_CXX=no
17475 hardcode_shlibpath_var_CXX=no
17476 ;;
17477 *)
17478 hardcode_direct_CXX=yes
17479 hardcode_direct_absolute_CXX=yes
17480 hardcode_minus_L_CXX=yes # Not in the search PATH,
17481 # but as the default
17482 # location of the library.
17483 ;;
17484 esac
17485
17486 case $cc_basename in
17487 CC*)
17488 # FIXME: insert proper C++ library support
17489 ld_shlibs_CXX=no
17490 ;;
17491 aCC*)
17492 case $host_cpu in
17493 hppa*64*)
17494 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17495 ;;
17496 ia64*)
17497 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17498 ;;
17499 *)
17500 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17501 ;;
17502 esac
17503 # Commands to make compiler produce verbose output that lists
17504 # what "hidden" libraries, object files and flags are used when
17505 # linking a shared library.
17506 #
17507 # There doesn't appear to be a way to prevent this compiler from
17508 # explicitly linking system object files so we need to strip them
17509 # from the output so that they don't get included in the library
17510 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017511 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000017512 ;;
17513 *)
17514 if test "$GXX" = yes; then
17515 if test $with_gnu_ld = no; then
17516 case $host_cpu in
17517 hppa*64*)
17518 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17519 ;;
17520 ia64*)
cristyda16f162011-02-19 23:52:17 +000017521 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017522 ;;
17523 *)
cristyda16f162011-02-19 23:52:17 +000017524 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017525 ;;
17526 esac
17527 fi
17528 else
17529 # FIXME: insert proper C++ library support
17530 ld_shlibs_CXX=no
17531 fi
17532 ;;
17533 esac
17534 ;;
17535
17536 interix[3-9]*)
17537 hardcode_direct_CXX=no
17538 hardcode_shlibpath_var_CXX=no
17539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17540 export_dynamic_flag_spec_CXX='${wl}-E'
17541 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17542 # Instead, shared libraries are loaded at an image base (0x10000000 by
17543 # default) and relocated if they conflict, which is a slow very memory
17544 # consuming and fragmenting process. To avoid this, we pick a random,
17545 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17546 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17547 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17548 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17549 ;;
17550 irix5* | irix6*)
17551 case $cc_basename in
17552 CC*)
17553 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017554 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017555
17556 # Archives containing C++ object files must be created using
17557 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17558 # necessary to make sure instantiated templates are included
17559 # in the archive.
17560 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17561 ;;
17562 *)
17563 if test "$GXX" = yes; then
17564 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017565 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017566 else
cristyda16f162011-02-19 23:52:17 +000017567 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017568 fi
17569 fi
17570 link_all_deplibs_CXX=yes
17571 ;;
17572 esac
17573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17574 hardcode_libdir_separator_CXX=:
17575 inherit_rpath_CXX=yes
17576 ;;
17577
cristy0c60a692010-11-04 01:09:47 +000017578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017579 case $cc_basename in
17580 KCC*)
17581 # Kuck and Associates, Inc. (KAI) C++ Compiler
17582
17583 # KCC will only create a shared library if the output file
17584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17585 # to its proper name (with version) after linking.
17586 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17587 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
17588 # Commands to make compiler produce verbose output that lists
17589 # what "hidden" libraries, object files and flags are used when
17590 # linking a shared library.
17591 #
17592 # There doesn't appear to be a way to prevent this compiler from
17593 # explicitly linking system object files so we need to strip them
17594 # from the output so that they don't get included in the library
17595 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017596 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000017597
17598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17600
17601 # Archives containing C++ object files must be created using
17602 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17603 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17604 ;;
17605 icpc* | ecpc* )
17606 # Intel C++
17607 with_gnu_ld=yes
17608 # version 8.0 and above of icpc choke on multiply defined symbols
17609 # if we add $predep_objects and $postdep_objects, however 7.1 and
17610 # earlier do not add the objects themselves.
17611 case `$CC -V 2>&1` in
17612 *"Version 7."*)
17613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17614 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17615 ;;
17616 *) # Version 8.0 or newer
17617 tmp_idyn=
17618 case $host_cpu in
17619 ia64*) tmp_idyn=' -i_dynamic';;
17620 esac
17621 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17623 ;;
17624 esac
17625 archive_cmds_need_lc_CXX=no
17626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17627 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17628 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17629 ;;
17630 pgCC* | pgcpp*)
17631 # Portland Group C++ compiler
17632 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017633 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017634 prelink_cmds_CXX='tpldir=Template.dir~
17635 rm -rf $tpldir~
17636 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017637 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017638 old_archive_cmds_CXX='tpldir=Template.dir~
17639 rm -rf $tpldir~
17640 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017641 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017642 $RANLIB $oldlib'
17643 archive_cmds_CXX='tpldir=Template.dir~
17644 rm -rf $tpldir~
17645 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017646 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017647 archive_expsym_cmds_CXX='tpldir=Template.dir~
17648 rm -rf $tpldir~
17649 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017650 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017651 ;;
cristy0c60a692010-11-04 01:09:47 +000017652 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017653 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17654 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17655 ;;
17656 esac
17657
17658 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017660 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000017661 ;;
17662 cxx*)
17663 # Compaq C++
17664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17665 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
17666
17667 runpath_var=LD_RUN_PATH
17668 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17669 hardcode_libdir_separator_CXX=:
17670
17671 # Commands to make compiler produce verbose output that lists
17672 # what "hidden" libraries, object files and flags are used when
17673 # linking a shared library.
17674 #
17675 # There doesn't appear to be a way to prevent this compiler from
17676 # explicitly linking system object files so we need to strip them
17677 # from the output so that they don't get included in the library
17678 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017679 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cristy73bd4a52010-10-05 11:24:23 +000017680 ;;
cristy0c60a692010-11-04 01:09:47 +000017681 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017682 # IBM XL 8.0 on PPC, with GNU ld
17683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17684 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17685 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17686 if test "x$supports_anon_versioning" = xyes; then
17687 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17689 echo "local: *; };" >> $output_objdir/$libname.ver~
17690 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17691 fi
17692 ;;
17693 *)
17694 case `$CC -V 2>&1 | sed 5q` in
17695 *Sun\ C*)
17696 # Sun C++ 5.9
17697 no_undefined_flag_CXX=' -zdefs'
17698 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17699 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
17700 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017701 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000017702 compiler_needs_object_CXX=yes
17703
17704 # Not sure whether something based on
17705 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17706 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017707 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017708
17709 # Archives containing C++ object files must be created using
17710 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17711 # necessary to make sure instantiated templates are included
17712 # in the archive.
17713 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17714 ;;
17715 esac
17716 ;;
17717 esac
17718 ;;
17719
17720 lynxos*)
17721 # FIXME: insert proper C++ library support
17722 ld_shlibs_CXX=no
17723 ;;
17724
17725 m88k*)
17726 # FIXME: insert proper C++ library support
17727 ld_shlibs_CXX=no
17728 ;;
17729
17730 mvs*)
17731 case $cc_basename in
17732 cxx*)
17733 # FIXME: insert proper C++ library support
17734 ld_shlibs_CXX=no
17735 ;;
17736 *)
17737 # FIXME: insert proper C++ library support
17738 ld_shlibs_CXX=no
17739 ;;
17740 esac
17741 ;;
17742
17743 netbsd*)
17744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17745 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17746 wlarc=
17747 hardcode_libdir_flag_spec_CXX='-R$libdir'
17748 hardcode_direct_CXX=yes
17749 hardcode_shlibpath_var_CXX=no
17750 fi
17751 # Workaround some broken pre-1.5 toolchains
17752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17753 ;;
17754
17755 *nto* | *qnx*)
17756 ld_shlibs_CXX=yes
17757 ;;
17758
17759 openbsd2*)
17760 # C++ shared libraries are fairly broken
17761 ld_shlibs_CXX=no
17762 ;;
17763
17764 openbsd*)
17765 if test -f /usr/libexec/ld.so; then
17766 hardcode_direct_CXX=yes
17767 hardcode_shlibpath_var_CXX=no
17768 hardcode_direct_absolute_CXX=yes
17769 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17772 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17773 export_dynamic_flag_spec_CXX='${wl}-E'
17774 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17775 fi
cristy0c60a692010-11-04 01:09:47 +000017776 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017777 else
17778 ld_shlibs_CXX=no
17779 fi
17780 ;;
17781
17782 osf3* | osf4* | osf5*)
17783 case $cc_basename in
17784 KCC*)
17785 # Kuck and Associates, Inc. (KAI) C++ Compiler
17786
17787 # KCC will only create a shared library if the output file
17788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17789 # to its proper name (with version) after linking.
17790 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17791
17792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17793 hardcode_libdir_separator_CXX=:
17794
17795 # Archives containing C++ object files must be created using
17796 # the KAI C++ compiler.
17797 case $host in
17798 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17799 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17800 esac
17801 ;;
17802 RCC*)
17803 # Rational C++ 2.4.1
17804 # FIXME: insert proper C++ library support
17805 ld_shlibs_CXX=no
17806 ;;
17807 cxx*)
17808 case $host in
17809 osf3*)
17810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017811 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17813 ;;
17814 *)
17815 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017816 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017817 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17818 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017819 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cristy73bd4a52010-10-05 11:24:23 +000017820 $RM $lib.exp'
17821 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17822 ;;
17823 esac
17824
17825 hardcode_libdir_separator_CXX=:
17826
17827 # Commands to make compiler produce verbose output that lists
17828 # what "hidden" libraries, object files and flags are used when
17829 # linking a shared library.
17830 #
17831 # There doesn't appear to be a way to prevent this compiler from
17832 # explicitly linking system object files so we need to strip them
17833 # from the output so that they don't get included in the library
17834 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017835 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000017836 ;;
17837 *)
17838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17840 case $host in
17841 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017842 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017843 ;;
17844 *)
cristyda16f162011-02-19 23:52:17 +000017845 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017846 ;;
17847 esac
17848
17849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17850 hardcode_libdir_separator_CXX=:
17851
17852 # Commands to make compiler produce verbose output that lists
17853 # what "hidden" libraries, object files and flags are used when
17854 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017856
17857 else
17858 # FIXME: insert proper C++ library support
17859 ld_shlibs_CXX=no
17860 fi
17861 ;;
17862 esac
17863 ;;
17864
17865 psos*)
17866 # FIXME: insert proper C++ library support
17867 ld_shlibs_CXX=no
17868 ;;
17869
17870 sunos4*)
17871 case $cc_basename in
17872 CC*)
17873 # Sun C++ 4.x
17874 # FIXME: insert proper C++ library support
17875 ld_shlibs_CXX=no
17876 ;;
17877 lcc*)
17878 # Lucid
17879 # FIXME: insert proper C++ library support
17880 ld_shlibs_CXX=no
17881 ;;
17882 *)
17883 # FIXME: insert proper C++ library support
17884 ld_shlibs_CXX=no
17885 ;;
17886 esac
17887 ;;
17888
17889 solaris*)
17890 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017891 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017892 # Sun C++ 4.2, 5.x and Centerline C++
17893 archive_cmds_need_lc_CXX=yes
17894 no_undefined_flag_CXX=' -zdefs'
17895 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17896 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17897 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17898
17899 hardcode_libdir_flag_spec_CXX='-R$libdir'
17900 hardcode_shlibpath_var_CXX=no
17901 case $host_os in
17902 solaris2.[0-5] | solaris2.[0-5].*) ;;
17903 *)
17904 # The compiler driver will combine and reorder linker options,
17905 # but understands `-z linker_flag'.
17906 # Supported since Solaris 2.6 (maybe 2.5.1?)
17907 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17908 ;;
17909 esac
17910 link_all_deplibs_CXX=yes
17911
cristy0c60a692010-11-04 01:09:47 +000017912 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017913
17914 # Archives containing C++ object files must be created using
17915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17916 # necessary to make sure instantiated templates are included
17917 # in the archive.
17918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17919 ;;
17920 gcx*)
17921 # Green Hills C++ Compiler
17922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17923
17924 # The C++ compiler must be used to create the archive.
17925 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17926 ;;
17927 *)
17928 # GNU C++ compiler with Solaris linker
17929 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17930 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17931 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017932 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017933 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000017934 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000017935
17936 # Commands to make compiler produce verbose output that lists
17937 # what "hidden" libraries, object files and flags are used when
17938 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017940 else
17941 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17942 # platform.
17943 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17944 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17945 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17946
17947 # Commands to make compiler produce verbose output that lists
17948 # what "hidden" libraries, object files and flags are used when
17949 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017950 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017951 fi
17952
17953 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17954 case $host_os in
17955 solaris2.[0-5] | solaris2.[0-5].*) ;;
17956 *)
17957 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17958 ;;
17959 esac
17960 fi
17961 ;;
17962 esac
17963 ;;
17964
17965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17966 no_undefined_flag_CXX='${wl}-z,text'
17967 archive_cmds_need_lc_CXX=no
17968 hardcode_shlibpath_var_CXX=no
17969 runpath_var='LD_RUN_PATH'
17970
17971 case $cc_basename in
17972 CC*)
17973 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17974 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17975 ;;
17976 *)
17977 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17978 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979 ;;
17980 esac
17981 ;;
17982
17983 sysv5* | sco3.2v5* | sco5v6*)
17984 # Note: We can NOT use -z defs as we might desire, because we do not
17985 # link with -lc, and that would cause any symbols used from libc to
17986 # always be unresolved, which means just about no library would
17987 # ever link correctly. If we're not using GNU ld we use -z text
17988 # though, which does catch some bad symbols but isn't as heavy-handed
17989 # as -z defs.
17990 no_undefined_flag_CXX='${wl}-z,text'
17991 allow_undefined_flag_CXX='${wl}-z,nodefs'
17992 archive_cmds_need_lc_CXX=no
17993 hardcode_shlibpath_var_CXX=no
17994 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17995 hardcode_libdir_separator_CXX=':'
17996 link_all_deplibs_CXX=yes
17997 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17998 runpath_var='LD_RUN_PATH'
17999
18000 case $cc_basename in
18001 CC*)
18002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000018004 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18005 '"$old_archive_cmds_CXX"
18006 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18007 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018008 ;;
18009 *)
18010 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 ;;
18013 esac
18014 ;;
18015
18016 tandem*)
18017 case $cc_basename in
18018 NCC*)
18019 # NonStop-UX NCC 3.20
18020 # FIXME: insert proper C++ library support
18021 ld_shlibs_CXX=no
18022 ;;
18023 *)
18024 # FIXME: insert proper C++ library support
18025 ld_shlibs_CXX=no
18026 ;;
18027 esac
18028 ;;
18029
18030 vxworks*)
18031 # FIXME: insert proper C++ library support
18032 ld_shlibs_CXX=no
18033 ;;
18034
18035 *)
18036 # FIXME: insert proper C++ library support
18037 ld_shlibs_CXX=no
18038 ;;
18039 esac
18040
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18042$as_echo "$ld_shlibs_CXX" >&6; }
18043 test "$ld_shlibs_CXX" = no && can_build_shared=no
18044
18045 GCC_CXX="$GXX"
18046 LD_CXX="$LD"
18047
18048 ## CAVEAT EMPTOR:
18049 ## There is no encapsulation within the following macros, do not change
18050 ## the running order or otherwise move them around unless you know exactly
18051 ## what you are doing...
18052 # Dependencies to place before and after the object being linked:
18053predep_objects_CXX=
18054postdep_objects_CXX=
18055predeps_CXX=
18056postdeps_CXX=
18057compiler_lib_search_path_CXX=
18058
18059cat > conftest.$ac_ext <<_LT_EOF
18060class Foo
18061{
18062public:
18063 Foo (void) { a = 0; }
18064private:
18065 int a;
18066};
18067_LT_EOF
18068
cristyda16f162011-02-19 23:52:17 +000018069
18070_lt_libdeps_save_CFLAGS=$CFLAGS
18071case "$CC $CFLAGS " in #(
18072*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18073*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18074esac
18075
cristy73bd4a52010-10-05 11:24:23 +000018076if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18077 (eval $ac_compile) 2>&5
18078 ac_status=$?
18079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18080 test $ac_status = 0; }; then
18081 # Parse the compiler output and extract the necessary
18082 # objects, libraries and library flags.
18083
18084 # Sentinel used to keep track of whether or not we are before
18085 # the conftest object file.
18086 pre_test_object_deps_done=no
18087
18088 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018089 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018090
18091 -L* | -R* | -l*)
18092 # Some compilers place space between "-{L,R}" and the path.
18093 # Remove the space.
18094 if test $p = "-L" ||
18095 test $p = "-R"; then
18096 prev=$p
18097 continue
cristy73bd4a52010-10-05 11:24:23 +000018098 fi
18099
cristyda16f162011-02-19 23:52:17 +000018100 # Expand the sysroot to ease extracting the directories later.
18101 if test -z "$prev"; then
18102 case $p in
18103 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18104 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18105 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18106 esac
18107 fi
18108 case $p in
18109 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18110 esac
cristy73bd4a52010-10-05 11:24:23 +000018111 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018112 case ${prev} in
18113 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018114 # Internal compiler library paths should come after those
18115 # provided the user. The postdeps already come after the
18116 # user supplied libs so there is no need to process them.
18117 if test -z "$compiler_lib_search_path_CXX"; then
18118 compiler_lib_search_path_CXX="${prev}${p}"
18119 else
18120 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18121 fi
18122 ;;
18123 # The "-l" case would never come before the object being
18124 # linked, so don't bother handling this case.
18125 esac
18126 else
18127 if test -z "$postdeps_CXX"; then
18128 postdeps_CXX="${prev}${p}"
18129 else
18130 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18131 fi
18132 fi
cristyda16f162011-02-19 23:52:17 +000018133 prev=
cristy73bd4a52010-10-05 11:24:23 +000018134 ;;
18135
cristyda16f162011-02-19 23:52:17 +000018136 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018137 *.$objext)
18138 # This assumes that the test object file only shows up
18139 # once in the compiler output.
18140 if test "$p" = "conftest.$objext"; then
18141 pre_test_object_deps_done=yes
18142 continue
18143 fi
18144
18145 if test "$pre_test_object_deps_done" = no; then
18146 if test -z "$predep_objects_CXX"; then
18147 predep_objects_CXX="$p"
18148 else
18149 predep_objects_CXX="$predep_objects_CXX $p"
18150 fi
18151 else
18152 if test -z "$postdep_objects_CXX"; then
18153 postdep_objects_CXX="$p"
18154 else
18155 postdep_objects_CXX="$postdep_objects_CXX $p"
18156 fi
18157 fi
18158 ;;
18159
18160 *) ;; # Ignore the rest.
18161
18162 esac
18163 done
18164
18165 # Clean up.
18166 rm -f a.out a.exe
18167else
18168 echo "libtool.m4: error: problem compiling CXX test program"
18169fi
18170
18171$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018172CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018173
18174# PORTME: override above test on systems where it is broken
18175case $host_os in
18176interix[3-9]*)
18177 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18178 # hack all around it, let's just trust "g++" to DTRT.
18179 predep_objects_CXX=
18180 postdep_objects_CXX=
18181 postdeps_CXX=
18182 ;;
18183
18184linux*)
18185 case `$CC -V 2>&1 | sed 5q` in
18186 *Sun\ C*)
18187 # Sun C++ 5.9
18188
18189 # The more standards-conforming stlport4 library is
18190 # incompatible with the Cstd library. Avoid specifying
18191 # it if it's in CXXFLAGS. Ignore libCrun as
18192 # -library=stlport4 depends on it.
18193 case " $CXX $CXXFLAGS " in
18194 *" -library=stlport4 "*)
18195 solaris_use_stlport4=yes
18196 ;;
18197 esac
18198
18199 if test "$solaris_use_stlport4" != yes; then
18200 postdeps_CXX='-library=Cstd -library=Crun'
18201 fi
18202 ;;
18203 esac
18204 ;;
18205
18206solaris*)
18207 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018208 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018209 # The more standards-conforming stlport4 library is
18210 # incompatible with the Cstd library. Avoid specifying
18211 # it if it's in CXXFLAGS. Ignore libCrun as
18212 # -library=stlport4 depends on it.
18213 case " $CXX $CXXFLAGS " in
18214 *" -library=stlport4 "*)
18215 solaris_use_stlport4=yes
18216 ;;
18217 esac
18218
18219 # Adding this requires a known-good setup of shared libraries for
18220 # Sun compiler versions before 5.6, else PIC objects from an old
18221 # archive will be linked into the output, leading to subtle bugs.
18222 if test "$solaris_use_stlport4" != yes; then
18223 postdeps_CXX='-library=Cstd -library=Crun'
18224 fi
18225 ;;
18226 esac
18227 ;;
18228esac
18229
18230
18231case " $postdeps_CXX " in
18232*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18233esac
18234 compiler_lib_search_dirs_CXX=
18235if test -n "${compiler_lib_search_path_CXX}"; then
18236 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18237fi
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269 lt_prog_compiler_wl_CXX=
18270lt_prog_compiler_pic_CXX=
18271lt_prog_compiler_static_CXX=
18272
cristy73bd4a52010-10-05 11:24:23 +000018273
18274 # C++ specific cases for pic, static, wl, etc.
18275 if test "$GXX" = yes; then
18276 lt_prog_compiler_wl_CXX='-Wl,'
18277 lt_prog_compiler_static_CXX='-static'
18278
18279 case $host_os in
18280 aix*)
18281 # All AIX code is PIC.
18282 if test "$host_cpu" = ia64; then
18283 # AIX 5 now supports IA64 processor
18284 lt_prog_compiler_static_CXX='-Bstatic'
18285 fi
18286 ;;
18287
18288 amigaos*)
18289 case $host_cpu in
18290 powerpc)
18291 # see comment about AmigaOS4 .so support
18292 lt_prog_compiler_pic_CXX='-fPIC'
18293 ;;
18294 m68k)
18295 # FIXME: we need at least 68020 code to build shared libraries, but
18296 # adding the `-m68020' flag to GCC prevents building anything better,
18297 # like `-m68040'.
18298 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18299 ;;
18300 esac
18301 ;;
18302
18303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18304 # PIC is the default for these OSes.
18305 ;;
18306 mingw* | cygwin* | os2* | pw32* | cegcc*)
18307 # This hack is so that the source file can tell whether it is being
18308 # built for inclusion in a dll (and should export symbols for example).
18309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18310 # (--disable-auto-import) libraries
18311 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18312 ;;
18313 darwin* | rhapsody*)
18314 # PIC is the default on this platform
18315 # Common symbols not allowed in MH_DYLIB files
18316 lt_prog_compiler_pic_CXX='-fno-common'
18317 ;;
18318 *djgpp*)
18319 # DJGPP does not support shared libraries at all
18320 lt_prog_compiler_pic_CXX=
18321 ;;
cristy0c60a692010-11-04 01:09:47 +000018322 haiku*)
18323 # PIC is the default for Haiku.
18324 # The "-static" flag exists, but is broken.
18325 lt_prog_compiler_static_CXX=
18326 ;;
cristy73bd4a52010-10-05 11:24:23 +000018327 interix[3-9]*)
18328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18329 # Instead, we relocate shared libraries at runtime.
18330 ;;
18331 sysv4*MP*)
18332 if test -d /usr/nec; then
18333 lt_prog_compiler_pic_CXX=-Kconform_pic
18334 fi
18335 ;;
18336 hpux*)
18337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18339 # sets the default TLS model and affects inlining.
18340 case $host_cpu in
18341 hppa*64*)
18342 ;;
18343 *)
18344 lt_prog_compiler_pic_CXX='-fPIC'
18345 ;;
18346 esac
18347 ;;
18348 *qnx* | *nto*)
18349 # QNX uses GNU C++, but need to define -shared option too, otherwise
18350 # it will coredump.
18351 lt_prog_compiler_pic_CXX='-fPIC -shared'
18352 ;;
18353 *)
18354 lt_prog_compiler_pic_CXX='-fPIC'
18355 ;;
18356 esac
18357 else
18358 case $host_os in
18359 aix[4-9]*)
18360 # All AIX code is PIC.
18361 if test "$host_cpu" = ia64; then
18362 # AIX 5 now supports IA64 processor
18363 lt_prog_compiler_static_CXX='-Bstatic'
18364 else
18365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18366 fi
18367 ;;
18368 chorus*)
18369 case $cc_basename in
18370 cxch68*)
18371 # Green Hills C++ Compiler
18372 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18373 ;;
18374 esac
18375 ;;
cristyda16f162011-02-19 23:52:17 +000018376 mingw* | cygwin* | os2* | pw32* | cegcc*)
18377 # This hack is so that the source file can tell whether it is being
18378 # built for inclusion in a dll (and should export symbols for example).
18379 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18380 ;;
cristy73bd4a52010-10-05 11:24:23 +000018381 dgux*)
18382 case $cc_basename in
18383 ec++*)
18384 lt_prog_compiler_pic_CXX='-KPIC'
18385 ;;
18386 ghcx*)
18387 # Green Hills C++ Compiler
18388 lt_prog_compiler_pic_CXX='-pic'
18389 ;;
18390 *)
18391 ;;
18392 esac
18393 ;;
18394 freebsd* | dragonfly*)
18395 # FreeBSD uses GNU C++
18396 ;;
18397 hpux9* | hpux10* | hpux11*)
18398 case $cc_basename in
18399 CC*)
18400 lt_prog_compiler_wl_CXX='-Wl,'
18401 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18402 if test "$host_cpu" != ia64; then
18403 lt_prog_compiler_pic_CXX='+Z'
18404 fi
18405 ;;
18406 aCC*)
18407 lt_prog_compiler_wl_CXX='-Wl,'
18408 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18409 case $host_cpu in
18410 hppa*64*|ia64*)
18411 # +Z the default
18412 ;;
18413 *)
18414 lt_prog_compiler_pic_CXX='+Z'
18415 ;;
18416 esac
18417 ;;
18418 *)
18419 ;;
18420 esac
18421 ;;
18422 interix*)
18423 # This is c89, which is MS Visual C++ (no shared libs)
18424 # Anyone wants to do a port?
18425 ;;
18426 irix5* | irix6* | nonstopux*)
18427 case $cc_basename in
18428 CC*)
18429 lt_prog_compiler_wl_CXX='-Wl,'
18430 lt_prog_compiler_static_CXX='-non_shared'
18431 # CC pic flag -KPIC is the default.
18432 ;;
18433 *)
18434 ;;
18435 esac
18436 ;;
cristy0c60a692010-11-04 01:09:47 +000018437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018438 case $cc_basename in
18439 KCC*)
18440 # KAI C++ Compiler
18441 lt_prog_compiler_wl_CXX='--backend -Wl,'
18442 lt_prog_compiler_pic_CXX='-fPIC'
18443 ;;
18444 ecpc* )
18445 # old Intel C++ for x86_64 which still supported -KPIC.
18446 lt_prog_compiler_wl_CXX='-Wl,'
18447 lt_prog_compiler_pic_CXX='-KPIC'
18448 lt_prog_compiler_static_CXX='-static'
18449 ;;
18450 icpc* )
18451 # Intel C++, used to be incompatible with GCC.
18452 # ICC 10 doesn't accept -KPIC any more.
18453 lt_prog_compiler_wl_CXX='-Wl,'
18454 lt_prog_compiler_pic_CXX='-fPIC'
18455 lt_prog_compiler_static_CXX='-static'
18456 ;;
18457 pgCC* | pgcpp*)
18458 # Portland Group C++ compiler
18459 lt_prog_compiler_wl_CXX='-Wl,'
18460 lt_prog_compiler_pic_CXX='-fpic'
18461 lt_prog_compiler_static_CXX='-Bstatic'
18462 ;;
18463 cxx*)
18464 # Compaq C++
18465 # Make sure the PIC flag is empty. It appears that all Alpha
18466 # Linux and Compaq Tru64 Unix objects are PIC.
18467 lt_prog_compiler_pic_CXX=
18468 lt_prog_compiler_static_CXX='-non_shared'
18469 ;;
cristy0c60a692010-11-04 01:09:47 +000018470 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18471 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018472 lt_prog_compiler_wl_CXX='-Wl,'
18473 lt_prog_compiler_pic_CXX='-qpic'
18474 lt_prog_compiler_static_CXX='-qstaticlink'
18475 ;;
18476 *)
18477 case `$CC -V 2>&1 | sed 5q` in
18478 *Sun\ C*)
18479 # Sun C++ 5.9
18480 lt_prog_compiler_pic_CXX='-KPIC'
18481 lt_prog_compiler_static_CXX='-Bstatic'
18482 lt_prog_compiler_wl_CXX='-Qoption ld '
18483 ;;
18484 esac
18485 ;;
18486 esac
18487 ;;
18488 lynxos*)
18489 ;;
18490 m88k*)
18491 ;;
18492 mvs*)
18493 case $cc_basename in
18494 cxx*)
18495 lt_prog_compiler_pic_CXX='-W c,exportall'
18496 ;;
18497 *)
18498 ;;
18499 esac
18500 ;;
18501 netbsd*)
18502 ;;
18503 *qnx* | *nto*)
18504 # QNX uses GNU C++, but need to define -shared option too, otherwise
18505 # it will coredump.
18506 lt_prog_compiler_pic_CXX='-fPIC -shared'
18507 ;;
18508 osf3* | osf4* | osf5*)
18509 case $cc_basename in
18510 KCC*)
18511 lt_prog_compiler_wl_CXX='--backend -Wl,'
18512 ;;
18513 RCC*)
18514 # Rational C++ 2.4.1
18515 lt_prog_compiler_pic_CXX='-pic'
18516 ;;
18517 cxx*)
18518 # Digital/Compaq C++
18519 lt_prog_compiler_wl_CXX='-Wl,'
18520 # Make sure the PIC flag is empty. It appears that all Alpha
18521 # Linux and Compaq Tru64 Unix objects are PIC.
18522 lt_prog_compiler_pic_CXX=
18523 lt_prog_compiler_static_CXX='-non_shared'
18524 ;;
18525 *)
18526 ;;
18527 esac
18528 ;;
18529 psos*)
18530 ;;
18531 solaris*)
18532 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018533 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018534 # Sun C++ 4.2, 5.x and Centerline C++
18535 lt_prog_compiler_pic_CXX='-KPIC'
18536 lt_prog_compiler_static_CXX='-Bstatic'
18537 lt_prog_compiler_wl_CXX='-Qoption ld '
18538 ;;
18539 gcx*)
18540 # Green Hills C++ Compiler
18541 lt_prog_compiler_pic_CXX='-PIC'
18542 ;;
18543 *)
18544 ;;
18545 esac
18546 ;;
18547 sunos4*)
18548 case $cc_basename in
18549 CC*)
18550 # Sun C++ 4.x
18551 lt_prog_compiler_pic_CXX='-pic'
18552 lt_prog_compiler_static_CXX='-Bstatic'
18553 ;;
18554 lcc*)
18555 # Lucid
18556 lt_prog_compiler_pic_CXX='-pic'
18557 ;;
18558 *)
18559 ;;
18560 esac
18561 ;;
18562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18563 case $cc_basename in
18564 CC*)
18565 lt_prog_compiler_wl_CXX='-Wl,'
18566 lt_prog_compiler_pic_CXX='-KPIC'
18567 lt_prog_compiler_static_CXX='-Bstatic'
18568 ;;
18569 esac
18570 ;;
18571 tandem*)
18572 case $cc_basename in
18573 NCC*)
18574 # NonStop-UX NCC 3.20
18575 lt_prog_compiler_pic_CXX='-KPIC'
18576 ;;
18577 *)
18578 ;;
18579 esac
18580 ;;
18581 vxworks*)
18582 ;;
18583 *)
18584 lt_prog_compiler_can_build_shared_CXX=no
18585 ;;
18586 esac
18587 fi
18588
18589case $host_os in
18590 # For platforms which do not support PIC, -DPIC is meaningless:
18591 *djgpp*)
18592 lt_prog_compiler_pic_CXX=
18593 ;;
18594 *)
18595 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18596 ;;
18597esac
cristy73bd4a52010-10-05 11:24:23 +000018598
cristyda16f162011-02-19 23:52:17 +000018599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18600$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18601if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18602 $as_echo_n "(cached) " >&6
18603else
18604 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18605fi
18606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18607$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18608lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018609
18610#
18611# Check to make sure the PIC flag actually works.
18612#
18613if test -n "$lt_prog_compiler_pic_CXX"; then
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18615$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018616if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018617 $as_echo_n "(cached) " >&6
18618else
18619 lt_cv_prog_compiler_pic_works_CXX=no
18620 ac_outfile=conftest.$ac_objext
18621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18622 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18623 # Insert the option either (1) after the last *FLAGS variable, or
18624 # (2) before a word containing "conftest.", or (3) at the end.
18625 # Note that $ac_compile itself does not contain backslashes and begins
18626 # with a dollar sign (not a hyphen), so the echo should work correctly.
18627 # The option is referenced via a variable to avoid confusing sed.
18628 lt_compile=`echo "$ac_compile" | $SED \
18629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18631 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018633 (eval "$lt_compile" 2>conftest.err)
18634 ac_status=$?
18635 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018637 if (exit $ac_status) && test -s "$ac_outfile"; then
18638 # The compiler can only warn and ignore the option if not recognized
18639 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18643 lt_cv_prog_compiler_pic_works_CXX=yes
18644 fi
18645 fi
18646 $RM conftest*
18647
18648fi
18649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18650$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18651
18652if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18653 case $lt_prog_compiler_pic_CXX in
18654 "" | " "*) ;;
18655 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18656 esac
18657else
18658 lt_prog_compiler_pic_CXX=
18659 lt_prog_compiler_can_build_shared_CXX=no
18660fi
18661
18662fi
18663
18664
18665
cristyda16f162011-02-19 23:52:17 +000018666
18667
cristy73bd4a52010-10-05 11:24:23 +000018668#
18669# Check to make sure the static flag actually works.
18670#
18671wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18673$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018674if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018675 $as_echo_n "(cached) " >&6
18676else
18677 lt_cv_prog_compiler_static_works_CXX=no
18678 save_LDFLAGS="$LDFLAGS"
18679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18682 # The linker can only warn and ignore the option if not recognized
18683 # So say no if there are warnings
18684 if test -s conftest.err; then
18685 # Append any errors to the config.log.
18686 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18689 if diff conftest.exp conftest.er2 >/dev/null; then
18690 lt_cv_prog_compiler_static_works_CXX=yes
18691 fi
18692 else
18693 lt_cv_prog_compiler_static_works_CXX=yes
18694 fi
18695 fi
18696 $RM -r conftest*
18697 LDFLAGS="$save_LDFLAGS"
18698
18699fi
18700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18701$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18702
18703if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18704 :
18705else
18706 lt_prog_compiler_static_CXX=
18707fi
18708
18709
18710
18711
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18713$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018714if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018715 $as_echo_n "(cached) " >&6
18716else
18717 lt_cv_prog_compiler_c_o_CXX=no
18718 $RM -r conftest 2>/dev/null
18719 mkdir conftest
18720 cd conftest
18721 mkdir out
18722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18723
18724 lt_compiler_flag="-o out/conftest2.$ac_objext"
18725 # Insert the option either (1) after the last *FLAGS variable, or
18726 # (2) before a word containing "conftest.", or (3) at the end.
18727 # Note that $ac_compile itself does not contain backslashes and begins
18728 # with a dollar sign (not a hyphen), so the echo should work correctly.
18729 lt_compile=`echo "$ac_compile" | $SED \
18730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18732 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018734 (eval "$lt_compile" 2>out/conftest.err)
18735 ac_status=$?
18736 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18739 then
18740 # The compiler can only warn and ignore the option if not recognized
18741 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18745 lt_cv_prog_compiler_c_o_CXX=yes
18746 fi
18747 fi
18748 chmod u+w . 2>&5
18749 $RM conftest*
18750 # SGI C++ compiler will create directory out/ii_files/ for
18751 # template instantiation
18752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18753 $RM out/* && rmdir out
18754 cd ..
18755 $RM -r conftest
18756 $RM conftest*
18757
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18760$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18761
18762
18763
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18765$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018766if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018767 $as_echo_n "(cached) " >&6
18768else
18769 lt_cv_prog_compiler_c_o_CXX=no
18770 $RM -r conftest 2>/dev/null
18771 mkdir conftest
18772 cd conftest
18773 mkdir out
18774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18775
18776 lt_compiler_flag="-o out/conftest2.$ac_objext"
18777 # Insert the option either (1) after the last *FLAGS variable, or
18778 # (2) before a word containing "conftest.", or (3) at the end.
18779 # Note that $ac_compile itself does not contain backslashes and begins
18780 # with a dollar sign (not a hyphen), so the echo should work correctly.
18781 lt_compile=`echo "$ac_compile" | $SED \
18782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18784 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018786 (eval "$lt_compile" 2>out/conftest.err)
18787 ac_status=$?
18788 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18791 then
18792 # The compiler can only warn and ignore the option if not recognized
18793 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18797 lt_cv_prog_compiler_c_o_CXX=yes
18798 fi
18799 fi
18800 chmod u+w . 2>&5
18801 $RM conftest*
18802 # SGI C++ compiler will create directory out/ii_files/ for
18803 # template instantiation
18804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18805 $RM out/* && rmdir out
18806 cd ..
18807 $RM -r conftest
18808 $RM conftest*
18809
18810fi
18811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18812$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18813
18814
18815
18816
18817hard_links="nottested"
18818if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18819 # do not overwrite the value of need_locks provided by the user
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18821$as_echo_n "checking if we can lock with hard links... " >&6; }
18822 hard_links=yes
18823 $RM conftest*
18824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18825 touch conftest.a
18826 ln conftest.a conftest.b 2>&5 || hard_links=no
18827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18829$as_echo "$hard_links" >&6; }
18830 if test "$hard_links" = no; then
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18832$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18833 need_locks=warn
18834 fi
18835else
18836 need_locks=no
18837fi
18838
18839
18840
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18842$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18843
18844 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018845 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018846 case $host_os in
18847 aix[4-9]*)
18848 # If we're using GNU nm, then we don't want the "-C" option.
18849 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018850 # Also, AIX nm treats weak defined symbols like other global defined
18851 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018852 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018853 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000018854 else
18855 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18856 fi
18857 ;;
18858 pw32*)
18859 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018860 ;;
cristy73bd4a52010-10-05 11:24:23 +000018861 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018862 case $cc_basename in
18863 cl*) ;;
18864 *)
18865 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18866 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18867 ;;
18868 esac
18869 ;;
cristy73bd4a52010-10-05 11:24:23 +000018870 *)
18871 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018872 ;;
cristy73bd4a52010-10-05 11:24:23 +000018873 esac
cristy73bd4a52010-10-05 11:24:23 +000018874
18875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18876$as_echo "$ld_shlibs_CXX" >&6; }
18877test "$ld_shlibs_CXX" = no && can_build_shared=no
18878
18879with_gnu_ld_CXX=$with_gnu_ld
18880
18881
18882
18883
18884
18885
18886#
18887# Do we need to explicitly link libc?
18888#
18889case "x$archive_cmds_need_lc_CXX" in
18890x|xyes)
18891 # Assume -lc should be added
18892 archive_cmds_need_lc_CXX=yes
18893
18894 if test "$enable_shared" = yes && test "$GCC" = yes; then
18895 case $archive_cmds_CXX in
18896 *'~'*)
18897 # FIXME: we may have to deal with multi-command sequences.
18898 ;;
18899 '$CC '*)
18900 # Test whether the compiler implicitly links with -lc since on some
18901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18902 # to ld, don't add -lc before -lgcc.
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18904$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018905if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018906 $as_echo_n "(cached) " >&6
18907else
18908 $RM conftest*
18909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018910
cristy0c60a692010-11-04 01:09:47 +000018911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018912 (eval $ac_compile) 2>&5
18913 ac_status=$?
18914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018916 soname=conftest
18917 lib=conftest
18918 libobjs=conftest.$ac_objext
18919 deplibs=
18920 wl=$lt_prog_compiler_wl_CXX
18921 pic_flag=$lt_prog_compiler_pic_CXX
18922 compiler_flags=-v
18923 linker_flags=-v
18924 verstring=
18925 output_objdir=.
18926 libname=conftest
18927 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18928 allow_undefined_flag_CXX=
18929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018930 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18931 ac_status=$?
18932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18933 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018934 then
18935 lt_cv_archive_cmds_need_lc_CXX=no
18936 else
18937 lt_cv_archive_cmds_need_lc_CXX=yes
18938 fi
18939 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18940 else
18941 cat conftest.err 1>&5
18942 fi
18943 $RM conftest*
18944
18945fi
18946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18947$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18948 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018949 ;;
18950 esac
18951 fi
18952 ;;
18953esac
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19019$as_echo_n "checking dynamic linker characteristics... " >&6; }
19020
19021library_names_spec=
19022libname_spec='lib$name'
19023soname_spec=
19024shrext_cmds=".so"
19025postinstall_cmds=
19026postuninstall_cmds=
19027finish_cmds=
19028finish_eval=
19029shlibpath_var=
19030shlibpath_overrides_runpath=unknown
19031version_type=none
19032dynamic_linker="$host_os ld.so"
19033sys_lib_dlsearch_path_spec="/lib /usr/lib"
19034need_lib_prefix=unknown
19035hardcode_into_libs=no
19036
19037# when you set need_version to no, make sure it does not cause -set_version
19038# flags to be left without arguments
19039need_version=unknown
19040
19041case $host_os in
19042aix3*)
19043 version_type=linux
19044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19045 shlibpath_var=LIBPATH
19046
19047 # AIX 3 has no versioning support, so we append a major version to the name.
19048 soname_spec='${libname}${release}${shared_ext}$major'
19049 ;;
19050
19051aix[4-9]*)
19052 version_type=linux
19053 need_lib_prefix=no
19054 need_version=no
19055 hardcode_into_libs=yes
19056 if test "$host_cpu" = ia64; then
19057 # AIX 5 supports IA64
19058 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19059 shlibpath_var=LD_LIBRARY_PATH
19060 else
19061 # With GCC up to 2.95.x, collect2 would create an import file
19062 # for dependence libraries. The import file would start with
19063 # the line `#! .'. This would cause the generated library to
19064 # depend on `.', always an invalid library. This was fixed in
19065 # development snapshots of GCC prior to 3.0.
19066 case $host_os in
19067 aix4 | aix4.[01] | aix4.[01].*)
19068 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19069 echo ' yes '
19070 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19071 :
19072 else
19073 can_build_shared=no
19074 fi
19075 ;;
19076 esac
19077 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19078 # soname into executable. Probably we can add versioning support to
19079 # collect2, so additional links can be useful in future.
19080 if test "$aix_use_runtimelinking" = yes; then
19081 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19082 # instead of lib<name>.a to let people know that these are not
19083 # typical AIX shared libraries.
19084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19085 else
19086 # We preserve .a as extension for shared libraries through AIX4.2
19087 # and later when we are not doing run time linking.
19088 library_names_spec='${libname}${release}.a $libname.a'
19089 soname_spec='${libname}${release}${shared_ext}$major'
19090 fi
19091 shlibpath_var=LIBPATH
19092 fi
19093 ;;
19094
19095amigaos*)
19096 case $host_cpu in
19097 powerpc)
19098 # Since July 2007 AmigaOS4 officially supports .so libraries.
19099 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 ;;
19102 m68k)
19103 library_names_spec='$libname.ixlibrary $libname.a'
19104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019105 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000019106 ;;
19107 esac
19108 ;;
19109
19110beos*)
19111 library_names_spec='${libname}${shared_ext}'
19112 dynamic_linker="$host_os ld.so"
19113 shlibpath_var=LIBRARY_PATH
19114 ;;
19115
19116bsdi[45]*)
19117 version_type=linux
19118 need_version=no
19119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19120 soname_spec='${libname}${release}${shared_ext}$major'
19121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19122 shlibpath_var=LD_LIBRARY_PATH
19123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19125 # the default ld.so.conf also contains /usr/contrib/lib and
19126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19127 # libtool to hard-code these into programs
19128 ;;
19129
19130cygwin* | mingw* | pw32* | cegcc*)
19131 version_type=windows
19132 shrext_cmds=".dll"
19133 need_version=no
19134 need_lib_prefix=no
19135
cristyda16f162011-02-19 23:52:17 +000019136 case $GCC,$cc_basename in
19137 yes,*)
19138 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019139 library_names_spec='$libname.dll.a'
19140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19141 postinstall_cmds='base_file=`basename \${file}`~
19142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19143 dldir=$destdir/`dirname \$dlpath`~
19144 test -d \$dldir || mkdir -p \$dldir~
19145 $install_prog $dir/$dlname \$dldir/$dlname~
19146 chmod a+x \$dldir/$dlname~
19147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19149 fi'
19150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19151 dlpath=$dir/\$dldll~
19152 $RM \$dlpath'
19153 shlibpath_overrides_runpath=yes
19154
19155 case $host_os in
19156 cygwin*)
19157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019159
cristy73bd4a52010-10-05 11:24:23 +000019160 ;;
19161 mingw* | cegcc*)
19162 # MinGW DLLs use traditional 'lib' prefix
19163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019164 ;;
19165 pw32*)
19166 # pw32 DLLs use 'pw' prefix rather than 'lib'
19167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19168 ;;
19169 esac
cristyda16f162011-02-19 23:52:17 +000019170 dynamic_linker='Win32 ld.exe'
19171 ;;
19172
19173 *,cl*)
19174 # Native MSVC
19175 libname_spec='$name'
19176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19177 library_names_spec='${libname}.dll.lib'
19178
19179 case $build_os in
19180 mingw*)
19181 sys_lib_search_path_spec=
19182 lt_save_ifs=$IFS
19183 IFS=';'
19184 for lt_path in $LIB
19185 do
19186 IFS=$lt_save_ifs
19187 # Let DOS variable expansion print the short 8.3 style file name.
19188 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19189 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19190 done
19191 IFS=$lt_save_ifs
19192 # Convert to MSYS style.
19193 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19194 ;;
19195 cygwin*)
19196 # Convert to unix form, then to dos form, then back to unix form
19197 # but this time dos style (no spaces!) so that the unix form looks
19198 # like /cygdrive/c/PROGRA~1:/cygdr...
19199 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19200 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19201 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19202 ;;
19203 *)
19204 sys_lib_search_path_spec="$LIB"
19205 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19206 # It is most probably a Windows format PATH.
19207 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19208 else
19209 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19210 fi
19211 # FIXME: find the short name or the path components, as spaces are
19212 # common. (e.g. "Program Files" -> "PROGRA~1")
19213 ;;
19214 esac
19215
19216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19217 postinstall_cmds='base_file=`basename \${file}`~
19218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19219 dldir=$destdir/`dirname \$dlpath`~
19220 test -d \$dldir || mkdir -p \$dldir~
19221 $install_prog $dir/$dlname \$dldir/$dlname'
19222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19223 dlpath=$dir/\$dldll~
19224 $RM \$dlpath'
19225 shlibpath_overrides_runpath=yes
19226 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019227 ;;
19228
19229 *)
cristyda16f162011-02-19 23:52:17 +000019230 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019231 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019232 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019233 ;;
19234 esac
cristy73bd4a52010-10-05 11:24:23 +000019235 # FIXME: first we should search . and the directory the executable is in
19236 shlibpath_var=PATH
19237 ;;
19238
19239darwin* | rhapsody*)
19240 dynamic_linker="$host_os dyld"
19241 version_type=darwin
19242 need_lib_prefix=no
19243 need_version=no
19244 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19245 soname_spec='${libname}${release}${major}$shared_ext'
19246 shlibpath_overrides_runpath=yes
19247 shlibpath_var=DYLD_LIBRARY_PATH
19248 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19249
19250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19251 ;;
19252
19253dgux*)
19254 version_type=linux
19255 need_lib_prefix=no
19256 need_version=no
19257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19258 soname_spec='${libname}${release}${shared_ext}$major'
19259 shlibpath_var=LD_LIBRARY_PATH
19260 ;;
19261
19262freebsd1*)
19263 dynamic_linker=no
19264 ;;
19265
19266freebsd* | dragonfly*)
19267 # DragonFly does not have aout. When/if they implement a new
19268 # versioning mechanism, adjust this.
19269 if test -x /usr/bin/objformat; then
19270 objformat=`/usr/bin/objformat`
19271 else
19272 case $host_os in
19273 freebsd[123]*) objformat=aout ;;
19274 *) objformat=elf ;;
19275 esac
19276 fi
19277 version_type=freebsd-$objformat
19278 case $version_type in
19279 freebsd-elf*)
19280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19281 need_version=no
19282 need_lib_prefix=no
19283 ;;
19284 freebsd-*)
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19286 need_version=yes
19287 ;;
19288 esac
19289 shlibpath_var=LD_LIBRARY_PATH
19290 case $host_os in
19291 freebsd2*)
19292 shlibpath_overrides_runpath=yes
19293 ;;
19294 freebsd3.[01]* | freebsdelf3.[01]*)
19295 shlibpath_overrides_runpath=yes
19296 hardcode_into_libs=yes
19297 ;;
19298 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19299 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19300 shlibpath_overrides_runpath=no
19301 hardcode_into_libs=yes
19302 ;;
19303 *) # from 4.6 on, and DragonFly
19304 shlibpath_overrides_runpath=yes
19305 hardcode_into_libs=yes
19306 ;;
19307 esac
19308 ;;
19309
19310gnu*)
19311 version_type=linux
19312 need_lib_prefix=no
19313 need_version=no
19314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19315 soname_spec='${libname}${release}${shared_ext}$major'
19316 shlibpath_var=LD_LIBRARY_PATH
19317 hardcode_into_libs=yes
19318 ;;
19319
cristy0c60a692010-11-04 01:09:47 +000019320haiku*)
19321 version_type=linux
19322 need_lib_prefix=no
19323 need_version=no
19324 dynamic_linker="$host_os runtime_loader"
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19326 soname_spec='${libname}${release}${shared_ext}$major'
19327 shlibpath_var=LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19329 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19330 hardcode_into_libs=yes
19331 ;;
19332
cristy73bd4a52010-10-05 11:24:23 +000019333hpux9* | hpux10* | hpux11*)
19334 # Give a soname corresponding to the major version so that dld.sl refuses to
19335 # link against other versions.
19336 version_type=sunos
19337 need_lib_prefix=no
19338 need_version=no
19339 case $host_cpu in
19340 ia64*)
19341 shrext_cmds='.so'
19342 hardcode_into_libs=yes
19343 dynamic_linker="$host_os dld.so"
19344 shlibpath_var=LD_LIBRARY_PATH
19345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19347 soname_spec='${libname}${release}${shared_ext}$major'
19348 if test "X$HPUX_IA64_MODE" = X32; then
19349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19350 else
19351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19352 fi
19353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19354 ;;
19355 hppa*64*)
19356 shrext_cmds='.sl'
19357 hardcode_into_libs=yes
19358 dynamic_linker="$host_os dld.sl"
19359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19362 soname_spec='${libname}${release}${shared_ext}$major'
19363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19365 ;;
19366 *)
19367 shrext_cmds='.sl'
19368 dynamic_linker="$host_os dld.sl"
19369 shlibpath_var=SHLIB_PATH
19370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 ;;
19374 esac
cristy0c60a692010-11-04 01:09:47 +000019375 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019376 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019377 # or fails outright, so override atomically:
19378 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019379 ;;
19380
19381interix[3-9]*)
19382 version_type=linux
19383 need_lib_prefix=no
19384 need_version=no
19385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19386 soname_spec='${libname}${release}${shared_ext}$major'
19387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19388 shlibpath_var=LD_LIBRARY_PATH
19389 shlibpath_overrides_runpath=no
19390 hardcode_into_libs=yes
19391 ;;
19392
19393irix5* | irix6* | nonstopux*)
19394 case $host_os in
19395 nonstopux*) version_type=nonstopux ;;
19396 *)
19397 if test "$lt_cv_prog_gnu_ld" = yes; then
19398 version_type=linux
19399 else
19400 version_type=irix
19401 fi ;;
19402 esac
19403 need_lib_prefix=no
19404 need_version=no
19405 soname_spec='${libname}${release}${shared_ext}$major'
19406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19407 case $host_os in
19408 irix5* | nonstopux*)
19409 libsuff= shlibsuff=
19410 ;;
19411 *)
19412 case $LD in # libtool.m4 will add one of these switches to LD
19413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19414 libsuff= shlibsuff= libmagic=32-bit;;
19415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19416 libsuff=32 shlibsuff=N32 libmagic=N32;;
19417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19418 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19419 *) libsuff= shlibsuff= libmagic=never-match;;
19420 esac
19421 ;;
19422 esac
19423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19424 shlibpath_overrides_runpath=no
19425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19427 hardcode_into_libs=yes
19428 ;;
19429
19430# No shared lib support for Linux oldld, aout, or coff.
19431linux*oldld* | linux*aout* | linux*coff*)
19432 dynamic_linker=no
19433 ;;
19434
19435# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019436linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019437 version_type=linux
19438 need_lib_prefix=no
19439 need_version=no
19440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19441 soname_spec='${libname}${release}${shared_ext}$major'
19442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19443 shlibpath_var=LD_LIBRARY_PATH
19444 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019445
cristy73bd4a52010-10-05 11:24:23 +000019446 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019447 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019448 $as_echo_n "(cached) " >&6
19449else
19450 lt_cv_shlibpath_overrides_runpath=no
19451 save_LDFLAGS=$LDFLAGS
19452 save_libdir=$libdir
19453 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19454 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019456/* end confdefs.h. */
19457
19458int
19459main ()
19460{
19461
19462 ;
19463 return 0;
19464}
19465_ACEOF
19466if ac_fn_cxx_try_link "$LINENO"; then :
19467 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019468 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019469fi
19470fi
19471rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019473 LDFLAGS=$save_LDFLAGS
19474 libdir=$save_libdir
19475
19476fi
19477
19478 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019479
19480 # This implies no fast_install, which is unacceptable.
19481 # Some rework will be needed to allow for fast_install
19482 # before this can be enabled.
19483 hardcode_into_libs=yes
19484
19485 # Add ABI-specific directories to the system library path.
19486 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19487
19488 # Append ld.so.conf contents to the search path
19489 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019490 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000019491 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019492
cristy73bd4a52010-10-05 11:24:23 +000019493 fi
19494
19495 # We used to test for /lib/ld.so.1 and disable shared libraries on
19496 # powerpc, because MkLinux only supported shared libraries with the
19497 # GNU dynamic linker. Since this was broken with cross compilers,
19498 # most powerpc-linux boxes support dynamic linking these days and
19499 # people can always --disable-shared, the test was removed, and we
19500 # assume the GNU/Linux dynamic linker is in use.
19501 dynamic_linker='GNU/Linux ld.so'
19502 ;;
19503
19504netbsd*)
19505 version_type=sunos
19506 need_lib_prefix=no
19507 need_version=no
19508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19511 dynamic_linker='NetBSD (a.out) ld.so'
19512 else
19513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19514 soname_spec='${libname}${release}${shared_ext}$major'
19515 dynamic_linker='NetBSD ld.elf_so'
19516 fi
19517 shlibpath_var=LD_LIBRARY_PATH
19518 shlibpath_overrides_runpath=yes
19519 hardcode_into_libs=yes
19520 ;;
19521
19522newsos6)
19523 version_type=linux
19524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19525 shlibpath_var=LD_LIBRARY_PATH
19526 shlibpath_overrides_runpath=yes
19527 ;;
19528
19529*nto* | *qnx*)
19530 version_type=qnx
19531 need_lib_prefix=no
19532 need_version=no
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19534 soname_spec='${libname}${release}${shared_ext}$major'
19535 shlibpath_var=LD_LIBRARY_PATH
19536 shlibpath_overrides_runpath=no
19537 hardcode_into_libs=yes
19538 dynamic_linker='ldqnx.so'
19539 ;;
19540
19541openbsd*)
19542 version_type=sunos
19543 sys_lib_dlsearch_path_spec="/usr/lib"
19544 need_lib_prefix=no
19545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19546 case $host_os in
19547 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19548 *) need_version=no ;;
19549 esac
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19552 shlibpath_var=LD_LIBRARY_PATH
19553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19554 case $host_os in
19555 openbsd2.[89] | openbsd2.[89].*)
19556 shlibpath_overrides_runpath=no
19557 ;;
19558 *)
19559 shlibpath_overrides_runpath=yes
19560 ;;
19561 esac
19562 else
19563 shlibpath_overrides_runpath=yes
19564 fi
19565 ;;
19566
19567os2*)
19568 libname_spec='$name'
19569 shrext_cmds=".dll"
19570 need_lib_prefix=no
19571 library_names_spec='$libname${shared_ext} $libname.a'
19572 dynamic_linker='OS/2 ld.exe'
19573 shlibpath_var=LIBPATH
19574 ;;
19575
19576osf3* | osf4* | osf5*)
19577 version_type=osf
19578 need_lib_prefix=no
19579 need_version=no
19580 soname_spec='${libname}${release}${shared_ext}$major'
19581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19582 shlibpath_var=LD_LIBRARY_PATH
19583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19585 ;;
19586
19587rdos*)
19588 dynamic_linker=no
19589 ;;
19590
19591solaris*)
19592 version_type=linux
19593 need_lib_prefix=no
19594 need_version=no
19595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19596 soname_spec='${libname}${release}${shared_ext}$major'
19597 shlibpath_var=LD_LIBRARY_PATH
19598 shlibpath_overrides_runpath=yes
19599 hardcode_into_libs=yes
19600 # ldd complains unless libraries are executable
19601 postinstall_cmds='chmod +x $lib'
19602 ;;
19603
19604sunos4*)
19605 version_type=sunos
19606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19608 shlibpath_var=LD_LIBRARY_PATH
19609 shlibpath_overrides_runpath=yes
19610 if test "$with_gnu_ld" = yes; then
19611 need_lib_prefix=no
19612 fi
19613 need_version=yes
19614 ;;
19615
19616sysv4 | sysv4.3*)
19617 version_type=linux
19618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19619 soname_spec='${libname}${release}${shared_ext}$major'
19620 shlibpath_var=LD_LIBRARY_PATH
19621 case $host_vendor in
19622 sni)
19623 shlibpath_overrides_runpath=no
19624 need_lib_prefix=no
19625 runpath_var=LD_RUN_PATH
19626 ;;
19627 siemens)
19628 need_lib_prefix=no
19629 ;;
19630 motorola)
19631 need_lib_prefix=no
19632 need_version=no
19633 shlibpath_overrides_runpath=no
19634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19635 ;;
19636 esac
19637 ;;
19638
19639sysv4*MP*)
19640 if test -d /usr/nec ;then
19641 version_type=linux
19642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19643 soname_spec='$libname${shared_ext}.$major'
19644 shlibpath_var=LD_LIBRARY_PATH
19645 fi
19646 ;;
19647
19648sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19649 version_type=freebsd-elf
19650 need_lib_prefix=no
19651 need_version=no
19652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19653 soname_spec='${libname}${release}${shared_ext}$major'
19654 shlibpath_var=LD_LIBRARY_PATH
19655 shlibpath_overrides_runpath=yes
19656 hardcode_into_libs=yes
19657 if test "$with_gnu_ld" = yes; then
19658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19659 else
19660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19661 case $host_os in
19662 sco3.2v5*)
19663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19664 ;;
19665 esac
19666 fi
19667 sys_lib_dlsearch_path_spec='/usr/lib'
19668 ;;
19669
19670tpf*)
19671 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19672 version_type=linux
19673 need_lib_prefix=no
19674 need_version=no
19675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19676 shlibpath_var=LD_LIBRARY_PATH
19677 shlibpath_overrides_runpath=no
19678 hardcode_into_libs=yes
19679 ;;
19680
19681uts4*)
19682 version_type=linux
19683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19684 soname_spec='${libname}${release}${shared_ext}$major'
19685 shlibpath_var=LD_LIBRARY_PATH
19686 ;;
19687
19688*)
19689 dynamic_linker=no
19690 ;;
19691esac
19692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19693$as_echo "$dynamic_linker" >&6; }
19694test "$dynamic_linker" = no && can_build_shared=no
19695
19696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19697if test "$GCC" = yes; then
19698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19699fi
19700
19701if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19703fi
19704if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19706fi
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
cristy0c60a692010-11-04 01:09:47 +000019743
19744
cristy73bd4a52010-10-05 11:24:23 +000019745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19746$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19747hardcode_action_CXX=
19748if test -n "$hardcode_libdir_flag_spec_CXX" ||
19749 test -n "$runpath_var_CXX" ||
19750 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19751
19752 # We can hardcode non-existent directories.
19753 if test "$hardcode_direct_CXX" != no &&
19754 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19755 # have to relink, otherwise we might link with an installed library
19756 # when we should be linking with a yet-to-be-installed one
19757 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19758 test "$hardcode_minus_L_CXX" != no; then
19759 # Linking always hardcodes the temporary library directory.
19760 hardcode_action_CXX=relink
19761 else
19762 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19763 hardcode_action_CXX=immediate
19764 fi
19765else
19766 # We cannot hardcode anything, or else we can only hardcode existing
19767 # directories.
19768 hardcode_action_CXX=unsupported
19769fi
19770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19771$as_echo "$hardcode_action_CXX" >&6; }
19772
19773if test "$hardcode_action_CXX" = relink ||
19774 test "$inherit_rpath_CXX" = yes; then
19775 # Fast installation is not supported
19776 enable_fast_install=no
19777elif test "$shlibpath_overrides_runpath" = yes ||
19778 test "$enable_shared" = no; then
19779 # Fast installation is not necessary
19780 enable_fast_install=needless
19781fi
19782
19783
19784
19785
19786
19787
19788
19789 fi # test -n "$compiler"
19790
19791 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019792 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019793 LDCXX=$LD
19794 LD=$lt_save_LD
19795 GCC=$lt_save_GCC
19796 with_gnu_ld=$lt_save_with_gnu_ld
19797 lt_cv_path_LDCXX=$lt_cv_path_LD
19798 lt_cv_path_LD=$lt_save_path_LD
19799 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19800 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19801fi # test "$_lt_caught_CXX_error" != yes
19802
19803ac_ext=c
19804ac_cpp='$CPP $CPPFLAGS'
19805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807ac_compiler_gnu=$ac_cv_c_compiler_gnu
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821 ac_config_commands="$ac_config_commands libtool"
19822
19823
19824
19825
19826# Only expand once:
19827
19828
19829
cristy3ed852e2009-09-05 21:47:34 +000019830
19831
19832# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019833
19834
19835
19836
19837
19838
19839
cristy73bd4a52010-10-05 11:24:23 +000019840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19841$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019842if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019843 $as_echo_n "(cached) " >&6
19844else
19845
19846module=yes
19847eval libltdl_cv_shlibext=$shrext_cmds
19848
19849fi
19850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19851$as_echo "$libltdl_cv_shlibext" >&6; }
19852if test -n "$libltdl_cv_shlibext"; then
19853
19854cat >>confdefs.h <<_ACEOF
19855#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19856_ACEOF
19857
19858fi
19859
19860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19861$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019862if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019863 $as_echo_n "(cached) " >&6
19864else
19865 lt_cv_module_path_var="$shlibpath_var"
19866fi
19867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19868$as_echo "$lt_cv_module_path_var" >&6; }
19869if test -n "$lt_cv_module_path_var"; then
19870
19871cat >>confdefs.h <<_ACEOF
19872#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19873_ACEOF
19874
19875fi
19876
19877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19878$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019879if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019880 $as_echo_n "(cached) " >&6
19881else
19882 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19883fi
19884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19885$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19886if test -n "$lt_cv_sys_dlsearch_path"; then
19887 sys_dlsearch_path=
19888 for dir in $lt_cv_sys_dlsearch_path; do
19889 if test -z "$sys_dlsearch_path"; then
19890 sys_dlsearch_path="$dir"
19891 else
19892 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19893 fi
19894 done
19895
19896cat >>confdefs.h <<_ACEOF
19897#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19898_ACEOF
19899
19900fi
19901
19902
19903LT_DLLOADERS=
19904
19905
19906ac_ext=c
19907ac_cpp='$CPP $CPPFLAGS'
19908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19910ac_compiler_gnu=$ac_cv_c_compiler_gnu
19911
19912
19913LIBADD_DLOPEN=
19914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19915$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019916if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019917 $as_echo_n "(cached) " >&6
19918else
19919 ac_func_search_save_LIBS=$LIBS
19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921/* end confdefs.h. */
19922
19923/* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19926#ifdef __cplusplus
19927extern "C"
19928#endif
19929char dlopen ();
19930int
19931main ()
19932{
19933return dlopen ();
19934 ;
19935 return 0;
19936}
19937_ACEOF
19938for ac_lib in '' dl; do
19939 if test -z "$ac_lib"; then
19940 ac_res="none required"
19941 else
19942 ac_res=-l$ac_lib
19943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19944 fi
19945 if ac_fn_c_try_link "$LINENO"; then :
19946 ac_cv_search_dlopen=$ac_res
19947fi
19948rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019950 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019951 break
19952fi
19953done
cristyda16f162011-02-19 23:52:17 +000019954if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019955
19956else
19957 ac_cv_search_dlopen=no
19958fi
19959rm conftest.$ac_ext
19960LIBS=$ac_func_search_save_LIBS
19961fi
19962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19963$as_echo "$ac_cv_search_dlopen" >&6; }
19964ac_res=$ac_cv_search_dlopen
19965if test "$ac_res" != no; then :
19966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19967
19968$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19969
19970 if test "$ac_cv_search_dlopen" != "none required" ; then
19971 LIBADD_DLOPEN="-ldl"
19972 fi
19973 libltdl_cv_lib_dl_dlopen="yes"
19974 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19975else
19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977/* end confdefs.h. */
19978#if HAVE_DLFCN_H
19979# include <dlfcn.h>
19980#endif
19981
19982int
19983main ()
19984{
19985dlopen(0, 0);
19986 ;
19987 return 0;
19988}
19989_ACEOF
19990if ac_fn_c_try_link "$LINENO"; then :
19991
19992$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19993
19994 libltdl_cv_func_dlopen="yes"
19995 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19996else
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19998$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019999if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020000 $as_echo_n "(cached) " >&6
20001else
20002 ac_check_lib_save_LIBS=$LIBS
20003LIBS="-lsvld $LIBS"
20004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005/* end confdefs.h. */
20006
20007/* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20010#ifdef __cplusplus
20011extern "C"
20012#endif
20013char dlopen ();
20014int
20015main ()
20016{
20017return dlopen ();
20018 ;
20019 return 0;
20020}
20021_ACEOF
20022if ac_fn_c_try_link "$LINENO"; then :
20023 ac_cv_lib_svld_dlopen=yes
20024else
20025 ac_cv_lib_svld_dlopen=no
20026fi
20027rm -f core conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029LIBS=$ac_check_lib_save_LIBS
20030fi
20031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20032$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020033if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020034
20035$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20036
20037 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20038 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20039fi
20040
20041fi
20042rm -f core conftest.err conftest.$ac_objext \
20043 conftest$ac_exeext conftest.$ac_ext
20044fi
20045
20046if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20047then
20048 lt_save_LIBS="$LIBS"
20049 LIBS="$LIBS $LIBADD_DLOPEN"
20050 for ac_func in dlerror
20051do :
20052 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020053if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020054 cat >>confdefs.h <<_ACEOF
20055#define HAVE_DLERROR 1
20056_ACEOF
20057
20058fi
20059done
20060
20061 LIBS="$lt_save_LIBS"
20062fi
20063
20064
20065LIBADD_SHL_LOAD=
20066ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020067if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020068
20069$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20070
20071 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20072else
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20074$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020075if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020076 $as_echo_n "(cached) " >&6
20077else
20078 ac_check_lib_save_LIBS=$LIBS
20079LIBS="-ldld $LIBS"
20080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081/* end confdefs.h. */
20082
20083/* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
20086#ifdef __cplusplus
20087extern "C"
20088#endif
20089char shl_load ();
20090int
20091main ()
20092{
20093return shl_load ();
20094 ;
20095 return 0;
20096}
20097_ACEOF
20098if ac_fn_c_try_link "$LINENO"; then :
20099 ac_cv_lib_dld_shl_load=yes
20100else
20101 ac_cv_lib_dld_shl_load=no
20102fi
20103rm -f core conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105LIBS=$ac_check_lib_save_LIBS
20106fi
20107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20108$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020109if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020110
20111$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20112
20113 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20114 LIBADD_SHL_LOAD="-ldld"
20115fi
20116
20117fi
20118
20119
20120
20121case $host_os in
20122darwin[1567].*)
20123# We only want this for pre-Mac OS X 10.4.
20124 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020125if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020126
20127$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20128
20129 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20130fi
20131
20132 ;;
20133beos*)
20134 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20135 ;;
20136cygwin* | mingw* | os2* | pw32*)
20137 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20138"
cristyda16f162011-02-19 23:52:17 +000020139if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020140 ac_have_decl=1
20141else
20142 ac_have_decl=0
20143fi
20144
20145cat >>confdefs.h <<_ACEOF
20146#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20147_ACEOF
20148
20149 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20150 ;;
20151esac
20152
20153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20154$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020155if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020156 $as_echo_n "(cached) " >&6
20157else
20158 ac_check_lib_save_LIBS=$LIBS
20159LIBS="-ldld $LIBS"
20160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161/* end confdefs.h. */
20162
20163/* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20166#ifdef __cplusplus
20167extern "C"
20168#endif
20169char dld_link ();
20170int
20171main ()
20172{
20173return dld_link ();
20174 ;
20175 return 0;
20176}
20177_ACEOF
20178if ac_fn_c_try_link "$LINENO"; then :
20179 ac_cv_lib_dld_dld_link=yes
20180else
20181 ac_cv_lib_dld_dld_link=no
20182fi
20183rm -f core conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20185LIBS=$ac_check_lib_save_LIBS
20186fi
20187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20188$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020189if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020190
20191$as_echo "#define HAVE_DLD 1" >>confdefs.h
20192
20193 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20194fi
20195
20196
20197
20198
20199LT_DLPREOPEN=
20200if test -n "$LT_DLLOADERS"
20201then
20202 for lt_loader in $LT_DLLOADERS; do
20203 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20204 done
20205
20206$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20207
20208fi
20209
20210
20211LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20212
20213
20214ac_ext=c
20215ac_cpp='$CPP $CPPFLAGS'
20216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218ac_compiler_gnu=$ac_cv_c_compiler_gnu
20219
20220
20221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20222$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020223if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020224 $as_echo_n "(cached) " >&6
20225else
20226 lt_cv_sys_symbol_underscore=no
20227 cat > conftest.$ac_ext <<_LT_EOF
20228void nm_test_func(){}
20229int main(){nm_test_func;return 0;}
20230_LT_EOF
20231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20232 (eval $ac_compile) 2>&5
20233 ac_status=$?
20234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20235 test $ac_status = 0; }; then
20236 # Now try to grab the symbols.
20237 ac_nlist=conftest.nm
20238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20240 ac_status=$?
20241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20242 test $ac_status = 0; } && test -s "$ac_nlist"; then
20243 # See whether the symbols have a leading underscore.
20244 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20245 lt_cv_sys_symbol_underscore=yes
20246 else
20247 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20248 :
20249 else
20250 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20251 fi
20252 fi
20253 else
20254 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20255 fi
20256 else
20257 echo "configure: failed program was:" >&5
20258 cat conftest.c >&5
20259 fi
20260 rm -rf conftest*
20261
20262fi
20263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20264$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20265 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20266
20267
20268if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20269 if test x"$libltdl_cv_func_dlopen" = xyes ||
20270 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20272$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020273if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020274 $as_echo_n "(cached) " >&6
20275else
20276 libltdl_cv_need_uscore=unknown
20277 save_LIBS="$LIBS"
20278 LIBS="$LIBS $LIBADD_DLOPEN"
20279 if test "$cross_compiling" = yes; then :
20280 libltdl_cv_need_uscore=cross
20281else
20282 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20283 lt_status=$lt_dlunknown
20284 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020285#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020286#include "confdefs.h"
20287
20288#if HAVE_DLFCN_H
20289#include <dlfcn.h>
20290#endif
20291
20292#include <stdio.h>
20293
20294#ifdef RTLD_GLOBAL
20295# define LT_DLGLOBAL RTLD_GLOBAL
20296#else
20297# ifdef DL_GLOBAL
20298# define LT_DLGLOBAL DL_GLOBAL
20299# else
20300# define LT_DLGLOBAL 0
20301# endif
20302#endif
20303
20304/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20305 find out it does not work in some platform. */
20306#ifndef LT_DLLAZY_OR_NOW
20307# ifdef RTLD_LAZY
20308# define LT_DLLAZY_OR_NOW RTLD_LAZY
20309# else
20310# ifdef DL_LAZY
20311# define LT_DLLAZY_OR_NOW DL_LAZY
20312# else
20313# ifdef RTLD_NOW
20314# define LT_DLLAZY_OR_NOW RTLD_NOW
20315# else
20316# ifdef DL_NOW
20317# define LT_DLLAZY_OR_NOW DL_NOW
20318# else
20319# define LT_DLLAZY_OR_NOW 0
20320# endif
20321# endif
20322# endif
20323# endif
20324#endif
20325
cristy0c60a692010-11-04 01:09:47 +000020326/* When -fvisbility=hidden is used, assume the code has been annotated
20327 correspondingly for the symbols needed. */
20328#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020329int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020330#endif
20331
cristyda16f162011-02-19 23:52:17 +000020332int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020333int main ()
20334{
20335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20336 int status = $lt_dlunknown;
20337
20338 if (self)
20339 {
20340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020341 else
20342 {
20343 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20344 else puts (dlerror ());
20345 }
cristy73bd4a52010-10-05 11:24:23 +000020346 /* dlclose (self); */
20347 }
20348 else
20349 puts (dlerror ());
20350
20351 return status;
20352}
20353_LT_EOF
20354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20355 (eval $ac_link) 2>&5
20356 ac_status=$?
20357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20358 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20359 (./conftest; exit; ) >&5 2>/dev/null
20360 lt_status=$?
20361 case x$lt_status in
20362 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20363 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20364 x$lt_dlunknown|x*) ;;
20365 esac
20366 else :
20367 # compilation failed
20368
20369 fi
20370fi
20371rm -fr conftest*
20372
20373 LIBS="$save_LIBS"
20374
20375fi
20376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20377$as_echo "$libltdl_cv_need_uscore" >&6; }
20378 fi
20379fi
20380
20381if test x"$libltdl_cv_need_uscore" = xyes; then
20382
20383$as_echo "#define NEED_USCORE 1" >>confdefs.h
20384
20385fi
20386
20387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20388$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020389if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020390 $as_echo_n "(cached) " >&6
20391else
20392 # PORTME does your system automatically load deplibs for dlopen?
20393 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20394 # For now, we just catch OSes we know something about -- in the
20395 # future, we'll try test this programmatically.
20396 lt_cv_sys_dlopen_deplibs=unknown
20397 case $host_os in
20398 aix3*|aix4.1.*|aix4.2.*)
20399 # Unknown whether this is true for these versions of AIX, but
20400 # we want this `case' here to explicitly catch those versions.
20401 lt_cv_sys_dlopen_deplibs=unknown
20402 ;;
20403 aix[4-9]*)
20404 lt_cv_sys_dlopen_deplibs=yes
20405 ;;
20406 amigaos*)
20407 case $host_cpu in
20408 powerpc)
20409 lt_cv_sys_dlopen_deplibs=no
20410 ;;
20411 esac
20412 ;;
20413 darwin*)
20414 # Assuming the user has installed a libdl from somewhere, this is true
20415 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20416 lt_cv_sys_dlopen_deplibs=yes
20417 ;;
20418 freebsd* | dragonfly*)
20419 lt_cv_sys_dlopen_deplibs=yes
20420 ;;
cristy0c60a692010-11-04 01:09:47 +000020421 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020422 # GNU and its variants, using gnu ld.so (Glibc)
20423 lt_cv_sys_dlopen_deplibs=yes
20424 ;;
20425 hpux10*|hpux11*)
20426 lt_cv_sys_dlopen_deplibs=yes
20427 ;;
20428 interix*)
20429 lt_cv_sys_dlopen_deplibs=yes
20430 ;;
20431 irix[12345]*|irix6.[01]*)
20432 # Catch all versions of IRIX before 6.2, and indicate that we don't
20433 # know how it worked for any of those versions.
20434 lt_cv_sys_dlopen_deplibs=unknown
20435 ;;
20436 irix*)
20437 # The case above catches anything before 6.2, and it's known that
20438 # at 6.2 and later dlopen does load deplibs.
20439 lt_cv_sys_dlopen_deplibs=yes
20440 ;;
20441 netbsd*)
20442 lt_cv_sys_dlopen_deplibs=yes
20443 ;;
20444 openbsd*)
20445 lt_cv_sys_dlopen_deplibs=yes
20446 ;;
20447 osf[1234]*)
20448 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20449 # it did *not* use an RPATH in a shared library to find objects the
20450 # library depends on, so we explicitly say `no'.
20451 lt_cv_sys_dlopen_deplibs=no
20452 ;;
20453 osf5.0|osf5.0a|osf5.1)
20454 # dlopen *does* load deplibs and with the right loader patch applied
20455 # it even uses RPATH in a shared library to search for shared objects
20456 # that the library depends on, but there's no easy way to know if that
20457 # patch is installed. Since this is the case, all we can really
20458 # say is unknown -- it depends on the patch being installed. If
20459 # it is, this changes to `yes'. Without it, it would be `no'.
20460 lt_cv_sys_dlopen_deplibs=unknown
20461 ;;
20462 osf*)
20463 # the two cases above should catch all versions of osf <= 5.1. Read
20464 # the comments above for what we know about them.
20465 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20466 # is used to find them so we can finally say `yes'.
20467 lt_cv_sys_dlopen_deplibs=yes
20468 ;;
20469 qnx*)
20470 lt_cv_sys_dlopen_deplibs=yes
20471 ;;
20472 solaris*)
20473 lt_cv_sys_dlopen_deplibs=yes
20474 ;;
20475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20476 libltdl_cv_sys_dlopen_deplibs=yes
20477 ;;
20478 esac
20479
20480fi
20481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20482$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20483if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20484
20485$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20486
20487fi
20488
20489:
20490
20491for ac_header in argz.h
20492do :
20493 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20494"
cristyda16f162011-02-19 23:52:17 +000020495if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020496 cat >>confdefs.h <<_ACEOF
20497#define HAVE_ARGZ_H 1
20498_ACEOF
20499
20500fi
20501
20502done
20503
20504
20505ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20506# include <argz.h>
20507#endif
20508"
cristyda16f162011-02-19 23:52:17 +000020509if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020510
20511cat >>confdefs.h <<_ACEOF
20512#define HAVE_ERROR_T 1
20513_ACEOF
20514
20515
20516else
20517
20518$as_echo "#define error_t int" >>confdefs.h
20519
20520
20521$as_echo "#define __error_t_defined 1" >>confdefs.h
20522
20523fi
20524
20525
20526ARGZ_H=
20527for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20528 argz_next argz_stringify
20529do :
20530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020533 cat >>confdefs.h <<_ACEOF
20534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20535_ACEOF
20536
20537else
20538 ARGZ_H=argz.h;
20539
20540 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20541
20542fi
20543done
20544
20545
20546if test -z "$ARGZ_H"; then :
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20548$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020549if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020550 $as_echo_n "(cached) " >&6
20551else
20552 case $host_os in #(
20553 *cygwin*)
20554 lt_cv_sys_argz_works=no
20555 if test "$cross_compiling" != no; then
20556 lt_cv_sys_argz_works="guessing no"
20557 else
20558 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20559 save_IFS=$IFS
20560 IFS=-.
20561 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20562 IFS=$save_IFS
20563 lt_os_major=${2-0}
20564 lt_os_minor=${3-0}
20565 lt_os_micro=${4-0}
20566 if test "$lt_os_major" -gt 1 \
20567 || { test "$lt_os_major" -eq 1 \
20568 && { test "$lt_os_minor" -gt 5 \
20569 || { test "$lt_os_minor" -eq 5 \
20570 && test "$lt_os_micro" -gt 24; }; }; }; then
20571 lt_cv_sys_argz_works=yes
20572 fi
20573 fi
20574 ;; #(
20575 *) lt_cv_sys_argz_works=yes ;;
20576 esac
20577fi
20578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20579$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020580 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020581
20582$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20583
20584else
20585 ARGZ_H=argz.h
20586
20587
20588 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20589
20590fi
20591fi
20592
20593
20594
20595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20596$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020597if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020598 $as_echo_n "(cached) " >&6
20599else
20600 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20601 libltdl_cv_preloaded_symbols=yes
20602 else
20603 libltdl_cv_preloaded_symbols=no
20604 fi
20605
20606fi
20607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20608$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20609if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20610
20611$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20612
20613fi
20614
20615# Set options
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627# Check whether --with-included_ltdl was given.
20628if test "${with_included_ltdl+set}" = set; then :
20629 withval=$with_included_ltdl;
20630fi
20631
20632
20633if test "x$with_included_ltdl" != xyes; then
20634 # We are not being forced to use the included libltdl sources, so
20635 # decide whether there is a useful installed version we can use.
20636 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20637
20638"
cristyda16f162011-02-19 23:52:17 +000020639if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020640 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20641 #include <ltdl.h>
20642"
cristyda16f162011-02-19 23:52:17 +000020643if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20645$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020646if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020647 $as_echo_n "(cached) " >&6
20648else
20649 ac_check_lib_save_LIBS=$LIBS
20650LIBS="-lltdl $LIBS"
20651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652/* end confdefs.h. */
20653
20654/* Override any GCC internal prototype to avoid an error.
20655 Use char because int might match the return type of a GCC
20656 builtin and then its argument prototype would still apply. */
20657#ifdef __cplusplus
20658extern "C"
20659#endif
20660char lt_dladvise_preload ();
20661int
20662main ()
20663{
20664return lt_dladvise_preload ();
20665 ;
20666 return 0;
20667}
20668_ACEOF
20669if ac_fn_c_try_link "$LINENO"; then :
20670 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20671else
20672 ac_cv_lib_ltdl_lt_dladvise_preload=no
20673fi
20674rm -f core conftest.err conftest.$ac_objext \
20675 conftest$ac_exeext conftest.$ac_ext
20676LIBS=$ac_check_lib_save_LIBS
20677fi
20678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20679$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020680if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020681 with_included_ltdl=no
20682else
20683 with_included_ltdl=yes
20684fi
20685
20686else
20687 with_included_ltdl=yes
20688fi
20689
20690else
20691 with_included_ltdl=yes
20692fi
20693
20694
20695fi
20696
20697
20698
20699
20700# Check whether --with-ltdl_include was given.
20701if test "${with_ltdl_include+set}" = set; then :
20702 withval=$with_ltdl_include;
20703fi
20704
20705
20706if test -n "$with_ltdl_include"; then
20707 if test -f "$with_ltdl_include/ltdl.h"; then :
20708 else
cristy98dddb52010-11-04 00:30:15 +000020709 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020710 fi
20711else
20712 with_ltdl_include=no
20713fi
20714
20715
20716# Check whether --with-ltdl_lib was given.
20717if test "${with_ltdl_lib+set}" = set; then :
20718 withval=$with_ltdl_lib;
20719fi
20720
20721
20722if test -n "$with_ltdl_lib"; then
20723 if test -f "$with_ltdl_lib/libltdl.la"; then :
20724 else
cristy98dddb52010-11-04 00:30:15 +000020725 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020726 fi
20727else
20728 with_ltdl_lib=no
20729fi
20730
20731case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20732 ,yes,no,no,)
20733 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020734 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020735 "") enable_ltdl_convenience=yes
20736 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20737esac
20738LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20739LTDLDEPS=$LIBLTDL
20740LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20741
20742
20743
20744
20745
20746# For backwards non-gettext consistent compatibility...
20747INCLTDL="$LTDLINCL"
20748
20749
20750 ;;
20751 ,no,no,no,)
20752 # If the included ltdl is not to be used, then use the
20753 # preinstalled libltdl we found.
20754
20755$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20756
20757 LIBLTDL=-lltdl
20758 LTDLDEPS=
20759 LTDLINCL=
20760 ;;
20761 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020762 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020763 ;;
20764 *) with_included_ltdl=no
20765 LIBLTDL="-L$with_ltdl_lib -lltdl"
20766 LTDLDEPS=
20767 LTDLINCL="-I$with_ltdl_include"
20768 ;;
20769esac
20770INCLTDL="$LTDLINCL"
20771
20772# Report our decision...
20773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20774$as_echo_n "checking where to find libltdl headers... " >&6; }
20775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20776$as_echo "$LTDLINCL" >&6; }
20777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20778$as_echo_n "checking where to find libltdl library... " >&6; }
20779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20780$as_echo "$LIBLTDL" >&6; }
20781
20782
20783
20784# Check whether --enable-ltdl-install was given.
20785if test "${enable_ltdl_install+set}" = set; then :
20786 enableval=$enable_ltdl_install;
20787fi
20788
20789
20790case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20791 *yes*) ;;
20792 *) enable_ltdl_convenience=yes ;;
20793esac
20794
20795 if test x"${enable_ltdl_install-no}" != xno; then
20796 INSTALL_LTDL_TRUE=
20797 INSTALL_LTDL_FALSE='#'
20798else
20799 INSTALL_LTDL_TRUE='#'
20800 INSTALL_LTDL_FALSE=
20801fi
20802
20803 if test x"${enable_ltdl_convenience-no}" != xno; then
20804 CONVENIENCE_LTDL_TRUE=
20805 CONVENIENCE_LTDL_FALSE='#'
20806else
20807 CONVENIENCE_LTDL_TRUE='#'
20808 CONVENIENCE_LTDL_FALSE=
20809fi
20810
20811
20812
20813
20814
20815
cristy73bd4a52010-10-05 11:24:23 +000020816# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20817# the user used. This is so that ltdl.h can pick up the parent projects
20818# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20819# definitions required by ltdl.c.
20820# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20821
20822
20823
20824for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20825do :
20826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20827ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20828"
cristy98dddb52010-11-04 00:30:15 +000020829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020830 cat >>confdefs.h <<_ACEOF
20831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20832_ACEOF
20833
20834fi
20835
20836done
20837
20838
20839for ac_func in closedir opendir readdir
20840do :
20841 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20842ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020843if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020844 cat >>confdefs.h <<_ACEOF
20845#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20846_ACEOF
20847
20848else
20849
20850
20851 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20852
20853fi
20854done
20855
20856for ac_func in strlcat strlcpy
20857do :
20858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020860if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020861 cat >>confdefs.h <<_ACEOF
20862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20863_ACEOF
20864
20865else
20866
20867
20868 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20869
20870fi
20871done
20872
20873
20874
20875cat >>confdefs.h <<_ACEOF
20876#define LT_LIBEXT "$libext"
20877_ACEOF
20878
20879
cristyda16f162011-02-19 23:52:17 +000020880name=
20881eval "lt_libprefix=\"$libname_spec\""
20882
20883cat >>confdefs.h <<_ACEOF
20884#define LT_LIBPREFIX "$lt_libprefix"
20885_ACEOF
20886
20887
cristy73bd4a52010-10-05 11:24:23 +000020888name=ltdl
cristyda16f162011-02-19 23:52:17 +000020889eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020890
20891
20892
20893
20894
20895
20896
20897
20898# Only expand once:
20899
20900
cristy3ed852e2009-09-05 21:47:34 +000020901
20902# Check to see if building shared libraries
20903libtool_build_shared_libs='no'
20904if test "$enable_shared" = 'yes'; then
20905 libtool_build_shared_libs='yes'
20906fi
20907
20908# Check to see if building static libraries
20909libtool_build_static_libs='no'
20910if test "$enable_static" = 'yes'; then
20911 libtool_build_static_libs='yes'
20912fi
20913
cristy73bd4a52010-10-05 11:24:23 +000020914 if test "${libtool_build_shared_libs}" = 'yes'; then
20915 WITH_SHARED_LIBS_TRUE=
20916 WITH_SHARED_LIBS_FALSE='#'
20917else
20918 WITH_SHARED_LIBS_TRUE='#'
20919 WITH_SHARED_LIBS_FALSE=
20920fi
20921
cristy3ed852e2009-09-05 21:47:34 +000020922#
20923# Enable support for building loadable modules
20924#
20925
20926# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020927if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020928 withval=$with_modules; with_modules=$withval
20929else
cristy5a1cefd2010-01-06 20:42:35 +000020930 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020931fi
20932
20933
20934# Only allow building loadable modules if we are building shared libraries
20935if test "$with_modules" != 'no' ; then
20936 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
cristy3ed852e2009-09-05 21:47:34 +000020938$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20939 with_modules='no'
20940 fi
20941fi
20942if test "$with_modules" != 'no'; then
20943
cristy8b350f62009-11-15 23:12:43 +000020944$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020945
20946fi
cristy73bd4a52010-10-05 11:24:23 +000020947 if test "$with_modules" != 'no'; then
20948 WITH_MODULES_TRUE=
20949 WITH_MODULES_FALSE='#'
20950else
20951 WITH_MODULES_TRUE='#'
20952 WITH_MODULES_FALSE=
20953fi
20954
cristy3ed852e2009-09-05 21:47:34 +000020955
20956# Enable building/use of libltdl if we are building shared libraries regardless
20957# of whether modules are built or not.
20958with_ltdl='no'
20959if test "$libtool_build_shared_libs" != 'no'; then
20960 with_ltdl='yes'
20961fi
20962
cristy73bd4a52010-10-05 11:24:23 +000020963 if test "$with_ltdl" != 'no'; then
20964 WITH_LTDL_TRUE=
20965 WITH_LTDL_FALSE='#'
20966else
20967 WITH_LTDL_TRUE='#'
20968 WITH_LTDL_FALSE=
20969fi
20970
cristy3ed852e2009-09-05 21:47:34 +000020971if test "$with_ltdl" != 'no'; then
20972
cristy8b350f62009-11-15 23:12:43 +000020973$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020974
20975
20976 # Set DLLDFLAGS
20977 if test X"$enable_shared" = Xyes; then
20978 DLLDFLAGS=-export-dynamic
20979
20980 fi
20981fi
20982
20983# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020984# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020985# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020986if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020987 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20988else
20989 enable_delegate_build='no'
20990fi
20991
20992
20993# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020994if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020995 enableval=$enable_deprecated; enable_deprecated=$enableval
20996else
20997 enable_deprecated='no'
20998fi
20999
21000
21001if test "$enable_deprecated" = 'yes'; then
21002
cristy8b350f62009-11-15 23:12:43 +000021003$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021004
21005else
21006 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21007fi
21008
21009# Build a version of ImageMagick which operates uninstalled.
21010# Used to build distributions located via MAGICK_HOME / executable path
21011# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021012if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021013 enableval=$enable_installed; enable_installed=$enableval
21014else
21015 enable_installed='yes'
21016fi
21017
21018
21019if test "$enable_installed" = 'yes'; then
21020
cristy8b350f62009-11-15 23:12:43 +000021021$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021022
21023else
21024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21025fi
21026
21027# Permit enciphering and deciphering image pixels.
21028# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021029if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021030 enableval=$enable_cipher; enable_cipher=$enableval
21031else
21032 enable_cipher='yes'
21033fi
21034
21035
21036if test "$enable_cipher" = 'yes'; then
21037
cristy8b350f62009-11-15 23:12:43 +000021038$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021039
21040fi
21041
21042# Build an embeddable version of ImageMagick.
21043# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000021044if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021045 enableval=$enable_embeddable; enable_embeddable=$enableval
21046else
21047 enable_embeddable='no'
21048fi
21049
21050
21051if test "$enable_embeddable" = 'yes'; then
21052
cristy8b350f62009-11-15 23:12:43 +000021053$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021054
21055fi
21056
21057# Build a high dynamic range version of ImageMagick.
21058# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021059if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021060 enableval=$enable_hdri; enable_hdri=$enableval
21061else
21062 enable_hdri='no'
21063fi
21064
21065
21066MAGICK_HDRI=""
21067if test "$enable_hdri" = 'yes'; then
21068 MAGICK_HDRI="HDRI"
21069
cristy8b350f62009-11-15 23:12:43 +000021070$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021071
cristyfd9dcd42010-08-08 18:07:02 +000021072 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021073fi
21074
cristy3ed852e2009-09-05 21:47:34 +000021075# Build a version of ImageMagick with assert statements.
21076# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021077if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021078 enableval=$enable_assert; enable_assert=$enableval
21079else
21080 enable_assert='yes'
21081fi
21082
21083
21084if test "$enable_assert" = 'no'; then
21085
cristy8b350f62009-11-15 23:12:43 +000021086$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021087
21088fi
21089
21090# Add configure option --enable-maintainer-mode which enables dependency
21091# checking and generation useful to package maintainers. This is made an
21092# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000021093
21094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21095$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21096 # Check whether --enable-maintainer-mode was given.
21097if test "${enable_maintainer_mode+set}" = set; then :
21098 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21099else
21100 USE_MAINTAINER_MODE=no
21101fi
21102
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21104$as_echo "$USE_MAINTAINER_MODE" >&6; }
21105 if test $USE_MAINTAINER_MODE = yes; then
21106 MAINTAINER_MODE_TRUE=
21107 MAINTAINER_MODE_FALSE='#'
21108else
21109 MAINTAINER_MODE_TRUE='#'
21110 MAINTAINER_MODE_FALSE=
21111fi
21112
21113 MAINT=$MAINTAINER_MODE_TRUE
21114
21115
cristy3ed852e2009-09-05 21:47:34 +000021116
21117
21118# Enable ccmalloc memory debugging support
21119# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21122else
21123 enable_ccmalloc='no'
21124fi
21125
21126
21127# Enable Electric Fence memory debugging support
21128# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021129if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021130 enableval=$enable_efence; enable_efence=$enableval
21131else
21132 enable_efence='no'
21133fi
21134
21135
21136# Enable prof-based profiling support
21137# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021138if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 enableval=$enable_prof; enable_prof=$enableval
21140else
21141 enable_prof='no'
21142fi
21143
21144
21145# Enable gprof-based profiling support
21146# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021147if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021148 enableval=$enable_gprof; enable_gprof=$enableval
21149else
21150 enable_gprof='no'
21151fi
21152
21153
21154# Enable gcov-based profiling support
21155# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021156if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021157 enableval=$enable_gcov; enable_gcov=$enableval
21158else
21159 enable_gcov='no'
21160fi
21161
21162
21163enable_profiling='no'
21164if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21165 enable_profiling='yes'
21166 if test "$libtool_build_shared_libs" = 'yes'; then
21167 echo "Warning: Can not profile code using shared libraries"
21168 fi
21169fi
21170
21171# Magick API method prefix
21172
21173# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021174if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021175 withval=$with_method_prefix; with_method_prefix=$enableval
21176else
21177 with_method_prefix=''
21178fi
21179
21180
21181if test "$with_method_prefix" != ''; then
21182
21183cat >>confdefs.h <<_ACEOF
21184#define NAMESPACE_PREFIX $with_method_prefix
21185_ACEOF
21186
21187fi
21188
21189# Number of bits in a Quantum
21190
21191# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021192if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021193 withval=$with_quantum_depth; with_quantum_depth=$withval
21194else
21195 with_quantum_depth=16
21196fi
21197
21198
21199if test "$with_quantum_depth" != '8'; then
21200 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21201fi
21202
21203case "${with_quantum_depth}" in
21204 8 ) ;;
21205 16 ) ;;
21206 32 ) ;;
21207 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021208 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021209esac
cristycdae12a2010-09-19 02:24:31 +000021210if test "$enable_hdri" = 'yes'; then
21211 with_quantum_depth=16
21212fi
cristy3ed852e2009-09-05 21:47:34 +000021213QUANTUM_DEPTH="$with_quantum_depth"
21214
21215cat >>confdefs.h <<_ACEOF
21216#define QUANTUM_DEPTH $QUANTUM_DEPTH
21217_ACEOF
21218
21219
21220# Set pixel cache threshold
21221
21222# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021223if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021224 withval=$with_cache; with_cache=$withval
21225else
21226 with_cache=''
21227fi
21228
21229
21230if test "$with_cache" != ''; then
21231
21232cat >>confdefs.h <<_ACEOF
21233#define PixelCacheThreshold $with_cache
21234_ACEOF
21235
21236 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21237fi
21238
21239# Disable/Enable support for full delegate paths
21240
21241# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021242if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021243 withval=$with_frozenpaths; with_frozenpaths=$withval
21244else
21245 with_frozenpaths='no'
21246fi
21247
21248
21249# Enable build/install of Magick++
21250
21251# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021252if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021253 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21254else
21255 with_magick_plus_plus='yes'
21256fi
21257
21258
21259# Disable build/install of PerlMagick.
21260
21261# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021262if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021263 withval=$with_perl; with_perl=$withval
21264else
cristyb5f4e2f2010-04-25 00:49:11 +000021265 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021266fi
21267
21268
21269# Options to pass when configuring PerlMagick
21270
21271# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021272if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021273 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021274fi
21275
21276
cristy3ed852e2009-09-05 21:47:34 +000021277
21278# Enable umem, object-caching memory allocation library.
21279
21280# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021281if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021282 withval=$with_umem; with_umem=$withval
21283else
21284 with_umem='no'
21285fi
21286
21287if test "$with_umem" != 'yes' ; then
21288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21289fi
21290
21291#
21292# Specify path to shared libstdc++ if not in normal location
21293#
21294
21295# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021296if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021297 withval=$with_libstdc; with_libstdc=$withval
21298else
21299 with_libstdc=''
21300fi
21301
21302
21303if test "$with_libstdc" != ''; then
21304 if test -d "$with_libstdc"; then
21305 LIBSTDCLDFLAGS="-L$with_libstdc"
21306 fi
21307fi
21308
21309
21310# Does gcc required -traditional?
21311if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021313$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021314if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021315 $as_echo_n "(cached) " >&6
21316else
21317 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021319/* end confdefs.h. */
21320#include <sgtty.h>
21321Autoconf TIOCGETP
21322_ACEOF
21323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021324 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021325 ac_cv_prog_gcc_traditional=yes
21326else
21327 ac_cv_prog_gcc_traditional=no
21328fi
21329rm -f conftest*
21330
21331
21332 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021334/* end confdefs.h. */
21335#include <termio.h>
21336Autoconf TCGETA
21337_ACEOF
21338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021339 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 ac_cv_prog_gcc_traditional=yes
21341fi
21342rm -f conftest*
21343
21344 fi
21345fi
cristy8b350f62009-11-15 23:12:43 +000021346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021347$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21348 if test $ac_cv_prog_gcc_traditional = yes; then
21349 CC="$CC -traditional"
21350 fi
21351fi
21352
21353
21354########
21355#
21356# Set defines required to build DLLs and modules using MinGW
21357#
21358########
21359# These options are set for multi-thread DLL module build
21360# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21361# module: _DLL
21362# executable/Magick++: _DLL _MAGICKMOD_
21363MODULE_EXTRA_CPPFLAGS=''
21364LIBRARY_EXTRA_CPPFLAGS=''
21365if test "${native_win32_build}" = 'yes'; then
21366 if test "${libtool_build_shared_libs}" = 'yes'; then
21367 CPPFLAGS="$CPPFLAGS -D_DLL"
21368 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21369 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21370 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21371 if test "$with_modules" = 'yes'; then
21372 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21373 else
21374 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21375 fi
21376 else
21377 CPPFLAGS="$CPPFLAGS -D_LIB"
21378 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21379 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21380 fi
21381 if test "$with_threads" = 'yes'; then
21382 CPPFLAGS="$CPPFLAGS -D_MT"
21383 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21384 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21385 fi
21386fi
21387
21388
21389
21390# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021392$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021393if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021394 $as_echo_n "(cached) " >&6
21395else
cristy8b350f62009-11-15 23:12:43 +000021396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021397/* end confdefs.h. */
21398#include <stdlib.h>
21399#include <stdarg.h>
21400#include <string.h>
21401#include <float.h>
21402
21403int
21404main ()
21405{
21406
21407 ;
21408 return 0;
21409}
21410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021411if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021412 ac_cv_header_stdc=yes
21413else
cristy8b350f62009-11-15 23:12:43 +000021414 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021415fi
cristy3ed852e2009-09-05 21:47:34 +000021416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417
21418if test $ac_cv_header_stdc = yes; then
21419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021421/* end confdefs.h. */
21422#include <string.h>
21423
21424_ACEOF
21425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021426 $EGREP "memchr" >/dev/null 2>&1; then :
21427
cristy3ed852e2009-09-05 21:47:34 +000021428else
21429 ac_cv_header_stdc=no
21430fi
21431rm -f conftest*
21432
21433fi
21434
21435if test $ac_cv_header_stdc = yes; then
21436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021438/* end confdefs.h. */
21439#include <stdlib.h>
21440
21441_ACEOF
21442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021443 $EGREP "free" >/dev/null 2>&1; then :
21444
cristy3ed852e2009-09-05 21:47:34 +000021445else
21446 ac_cv_header_stdc=no
21447fi
21448rm -f conftest*
21449
21450fi
21451
21452if test $ac_cv_header_stdc = yes; then
21453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021454 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021455 :
21456else
cristy8b350f62009-11-15 23:12:43 +000021457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021458/* end confdefs.h. */
21459#include <ctype.h>
21460#include <stdlib.h>
21461#if ((' ' & 0x0FF) == 0x020)
21462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21464#else
21465# define ISLOWER(c) \
21466 (('a' <= (c) && (c) <= 'i') \
21467 || ('j' <= (c) && (c) <= 'r') \
21468 || ('s' <= (c) && (c) <= 'z'))
21469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21470#endif
21471
21472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21473int
21474main ()
21475{
21476 int i;
21477 for (i = 0; i < 256; i++)
21478 if (XOR (islower (i), ISLOWER (i))
21479 || toupper (i) != TOUPPER (i))
21480 return 2;
21481 return 0;
21482}
21483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021484if ac_fn_c_try_run "$LINENO"; then :
21485
cristy3ed852e2009-09-05 21:47:34 +000021486else
cristy8b350f62009-11-15 23:12:43 +000021487 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021488fi
cristy8b350f62009-11-15 23:12:43 +000021489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21490 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021491fi
21492
cristy3ed852e2009-09-05 21:47:34 +000021493fi
21494fi
cristy8b350f62009-11-15 23:12:43 +000021495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021496$as_echo "$ac_cv_header_stdc" >&6; }
21497if test $ac_cv_header_stdc = yes; then
21498
cristy8b350f62009-11-15 23:12:43 +000021499$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021500
21501fi
21502
21503if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021504 { $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 +000021505 header files. Compilation cannot proceed. Please install the ANSI C
21506 headers and rerun this script." >&5
21507$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21508 header files. Compilation cannot proceed. Please install the ANSI C
21509 headers and rerun this script." >&2;};
21510fi
cristya0b81c32010-01-22 02:54:33 +000021511
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21513$as_echo_n "checking whether to enable assertions... " >&6; }
21514 # Check whether --enable-assert was given.
21515if test "${enable_assert+set}" = set; then :
21516 enableval=$enable_assert; ac_enable_assert=$enableval
21517 if test "x$enableval" = xno; then :
21518
21519$as_echo "#define NDEBUG 1" >>confdefs.h
21520
21521elif test "x$enableval" != xyes; then :
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21523$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21524 ac_enable_assert=yes
21525fi
21526else
21527 ac_enable_assert=yes
21528fi
21529
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21531$as_echo "$ac_enable_assert" >&6; }
21532
cristy3ed852e2009-09-05 21:47:34 +000021533ac_header_dirent=no
21534for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21535 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021537$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021538if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021539 $as_echo_n "(cached) " >&6
21540else
cristy8b350f62009-11-15 23:12:43 +000021541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021542/* end confdefs.h. */
21543#include <sys/types.h>
21544#include <$ac_hdr>
21545
21546int
21547main ()
21548{
21549if ((DIR *) 0)
21550return 0;
21551 ;
21552 return 0;
21553}
21554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021556 eval "$as_ac_Header=yes"
21557else
cristy8b350f62009-11-15 23:12:43 +000021558 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021559fi
cristy3ed852e2009-09-05 21:47:34 +000021560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561fi
cristy8b350f62009-11-15 23:12:43 +000021562eval ac_res=\$$as_ac_Header
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021564$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021566 cat >>confdefs.h <<_ACEOF
21567#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21568_ACEOF
21569
21570ac_header_dirent=$ac_hdr; break
21571fi
21572
21573done
21574# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21575if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021577$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021578if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021579 $as_echo_n "(cached) " >&6
21580else
21581 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021583/* end confdefs.h. */
21584
21585/* Override any GCC internal prototype to avoid an error.
21586 Use char because int might match the return type of a GCC
21587 builtin and then its argument prototype would still apply. */
21588#ifdef __cplusplus
21589extern "C"
21590#endif
21591char opendir ();
21592int
21593main ()
21594{
21595return opendir ();
21596 ;
21597 return 0;
21598}
21599_ACEOF
21600for ac_lib in '' dir; do
21601 if test -z "$ac_lib"; then
21602 ac_res="none required"
21603 else
21604 ac_res=-l$ac_lib
21605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21606 fi
cristy8b350f62009-11-15 23:12:43 +000021607 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021608 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021609fi
cristy8b350f62009-11-15 23:12:43 +000021610rm -f core conftest.err conftest.$ac_objext \
21611 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021612 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021613 break
21614fi
21615done
cristyda16f162011-02-19 23:52:17 +000021616if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021617
cristy3ed852e2009-09-05 21:47:34 +000021618else
21619 ac_cv_search_opendir=no
21620fi
21621rm conftest.$ac_ext
21622LIBS=$ac_func_search_save_LIBS
21623fi
cristy8b350f62009-11-15 23:12:43 +000021624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021625$as_echo "$ac_cv_search_opendir" >&6; }
21626ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021627if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21629
21630fi
21631
21632else
cristy8b350f62009-11-15 23:12:43 +000021633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021634$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021635if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021636 $as_echo_n "(cached) " >&6
21637else
21638 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021640/* end confdefs.h. */
21641
21642/* Override any GCC internal prototype to avoid an error.
21643 Use char because int might match the return type of a GCC
21644 builtin and then its argument prototype would still apply. */
21645#ifdef __cplusplus
21646extern "C"
21647#endif
21648char opendir ();
21649int
21650main ()
21651{
21652return opendir ();
21653 ;
21654 return 0;
21655}
21656_ACEOF
21657for ac_lib in '' x; do
21658 if test -z "$ac_lib"; then
21659 ac_res="none required"
21660 else
21661 ac_res=-l$ac_lib
21662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21663 fi
cristy8b350f62009-11-15 23:12:43 +000021664 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021665 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021666fi
cristy8b350f62009-11-15 23:12:43 +000021667rm -f core conftest.err conftest.$ac_objext \
21668 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021669 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 break
21671fi
21672done
cristyda16f162011-02-19 23:52:17 +000021673if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021674
cristy3ed852e2009-09-05 21:47:34 +000021675else
21676 ac_cv_search_opendir=no
21677fi
21678rm conftest.$ac_ext
21679LIBS=$ac_func_search_save_LIBS
21680fi
cristy8b350f62009-11-15 23:12:43 +000021681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021682$as_echo "$ac_cv_search_opendir" >&6; }
21683ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021684if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21686
21687fi
21688
21689fi
21690
21691
21692# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021693for 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 +000021694do :
21695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21696ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021698 cat >>confdefs.h <<_ACEOF
21699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21700_ACEOF
21701
21702fi
21703
21704done
21705
21706
21707########
21708#
21709# Checks for typedefs, structures, and compiler characteristics.
21710#
21711########
21712
cristy8b350f62009-11-15 23:12:43 +000021713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021714$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021715if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 $as_echo_n "(cached) " >&6
21717else
cristy8b350f62009-11-15 23:12:43 +000021718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021719/* end confdefs.h. */
21720
21721#include <stdbool.h>
21722#ifndef bool
21723 "error: bool is not defined"
21724#endif
21725#ifndef false
21726 "error: false is not defined"
21727#endif
21728#if false
21729 "error: false is not 0"
21730#endif
21731#ifndef true
21732 "error: true is not defined"
21733#endif
21734#if true != 1
21735 "error: true is not 1"
21736#endif
21737#ifndef __bool_true_false_are_defined
21738 "error: __bool_true_false_are_defined is not defined"
21739#endif
21740
21741 struct s { _Bool s: 1; _Bool t; } s;
21742
21743 char a[true == 1 ? 1 : -1];
21744 char b[false == 0 ? 1 : -1];
21745 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21746 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021747 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021748 char f[(_Bool) 0.0 == false ? 1 : -1];
21749 char g[true];
21750 char h[sizeof (_Bool)];
21751 char i[sizeof s.t];
21752 enum { j = false, k = true, l = false * true, m = true * 256 };
21753 /* The following fails for
21754 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21755 _Bool n[m];
21756 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21757 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021758 /* Catch a bug in an HP-UX C compiler. See
21759 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21760 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21761 */
21762 _Bool q = true;
21763 _Bool *pq = &q;
21764
21765int
21766main ()
21767{
21768
cristyda16f162011-02-19 23:52:17 +000021769 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021770 *pq |= q;
21771 *pq |= ! q;
21772 /* Refer to every declared value, to avoid compiler optimizations. */
21773 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21774 + !m + !n + !o + !p + !q + !pq);
21775
21776 ;
21777 return 0;
21778}
21779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021781 ac_cv_header_stdbool_h=yes
21782else
cristy8b350f62009-11-15 23:12:43 +000021783 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021784fi
cristy3ed852e2009-09-05 21:47:34 +000021785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786fi
cristy8b350f62009-11-15 23:12:43 +000021787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021788$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021789ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021790if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021791
21792cat >>confdefs.h <<_ACEOF
21793#define HAVE__BOOL 1
21794_ACEOF
21795
21796
21797fi
21798
21799if test $ac_cv_header_stdbool_h = yes; then
21800
cristy8b350f62009-11-15 23:12:43 +000021801$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021802
21803fi
21804
cristy8b350f62009-11-15 23:12:43 +000021805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021806$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021807if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021808 $as_echo_n "(cached) " >&6
21809else
cristy8b350f62009-11-15 23:12:43 +000021810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021811/* end confdefs.h. */
21812
21813int
21814main ()
21815{
21816
21817volatile int x;
21818int * volatile y = (int *) 0;
21819return !x && !y;
21820 ;
21821 return 0;
21822}
21823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 ac_cv_c_volatile=yes
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021828fi
cristy3ed852e2009-09-05 21:47:34 +000021829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830fi
cristy8b350f62009-11-15 23:12:43 +000021831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$ac_cv_c_volatile" >&6; }
21833if test $ac_cv_c_volatile = no; then
21834
cristy8b350f62009-11-15 23:12:43 +000021835$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021836
21837fi
21838
cristy8b350f62009-11-15 23:12:43 +000021839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021840$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021841if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021842 $as_echo_n "(cached) " >&6
21843else
cristy8b350f62009-11-15 23:12:43 +000021844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021845/* end confdefs.h. */
21846#define x(y) #y
21847
21848char *s = x(teststring);
21849_ACEOF
21850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021851 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021852 ac_cv_c_stringize=no
21853else
21854 ac_cv_c_stringize=yes
21855fi
21856rm -f conftest*
21857
21858fi
cristy8b350f62009-11-15 23:12:43 +000021859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021860$as_echo "$ac_cv_c_stringize" >&6; }
21861if test $ac_cv_c_stringize = yes; then
21862
cristy8b350f62009-11-15 23:12:43 +000021863$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021864
21865fi
21866
cristy8b350f62009-11-15 23:12:43 +000021867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021868$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021869if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021870 $as_echo_n "(cached) " >&6
21871else
cristy8b350f62009-11-15 23:12:43 +000021872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021873/* end confdefs.h. */
21874#include <sys/types.h>
21875#include <sys/stat.h>
21876
21877#if defined S_ISBLK && defined S_IFDIR
21878extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21879#endif
21880
21881#if defined S_ISBLK && defined S_IFCHR
21882extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21883#endif
21884
21885#if defined S_ISLNK && defined S_IFREG
21886extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21887#endif
21888
21889#if defined S_ISSOCK && defined S_IFREG
21890extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21891#endif
21892
21893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021894if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 ac_cv_header_stat_broken=no
21896else
cristy8b350f62009-11-15 23:12:43 +000021897 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021898fi
cristy3ed852e2009-09-05 21:47:34 +000021899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900fi
cristy8b350f62009-11-15 23:12:43 +000021901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021902$as_echo "$ac_cv_header_stat_broken" >&6; }
21903if test $ac_cv_header_stat_broken = yes; then
21904
cristy8b350f62009-11-15 23:12:43 +000021905$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021906
21907fi
21908
cristy8b350f62009-11-15 23:12:43 +000021909{ $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 +000021910$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021911if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021912 $as_echo_n "(cached) " >&6
21913else
cristy8b350f62009-11-15 23:12:43 +000021914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021915/* end confdefs.h. */
21916#include <sys/types.h>
21917#include <sys/time.h>
21918#include <time.h>
21919
21920int
21921main ()
21922{
21923if ((struct tm *) 0)
21924return 0;
21925 ;
21926 return 0;
21927}
21928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021929if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021930 ac_cv_header_time=yes
21931else
cristy8b350f62009-11-15 23:12:43 +000021932 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021933fi
cristy3ed852e2009-09-05 21:47:34 +000021934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21935fi
cristy8b350f62009-11-15 23:12:43 +000021936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021937$as_echo "$ac_cv_header_time" >&6; }
21938if test $ac_cv_header_time = yes; then
21939
cristy8b350f62009-11-15 23:12:43 +000021940$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021941
21942fi
21943
cristy8b350f62009-11-15 23:12:43 +000021944{ $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 +000021945$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021946if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021947 $as_echo_n "(cached) " >&6
21948else
cristy8b350f62009-11-15 23:12:43 +000021949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021950/* end confdefs.h. */
21951#include <sys/types.h>
21952#include <time.h>
21953
21954int
21955main ()
21956{
21957struct tm tm;
21958 int *p = &tm.tm_sec;
21959 return !p;
21960 ;
21961 return 0;
21962}
21963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021964if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021965 ac_cv_struct_tm=time.h
21966else
cristy8b350f62009-11-15 23:12:43 +000021967 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021968fi
cristy3ed852e2009-09-05 21:47:34 +000021969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970fi
cristy8b350f62009-11-15 23:12:43 +000021971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021972$as_echo "$ac_cv_struct_tm" >&6; }
21973if test $ac_cv_struct_tm = sys/time.h; then
21974
cristy8b350f62009-11-15 23:12:43 +000021975$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021976
21977fi
21978
cristy92703d82010-04-26 00:18:18 +000021979ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21980#include <$ac_cv_struct_tm>
21981
21982"
cristyda16f162011-02-19 23:52:17 +000021983if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021984
21985cat >>confdefs.h <<_ACEOF
21986#define HAVE_STRUCT_TM_TM_ZONE 1
21987_ACEOF
21988
21989
21990fi
21991
21992if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21993
21994$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21995
21996else
21997 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21998"
cristyda16f162011-02-19 23:52:17 +000021999if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022000 ac_have_decl=1
22001else
22002 ac_have_decl=0
22003fi
22004
22005cat >>confdefs.h <<_ACEOF
22006#define HAVE_DECL_TZNAME $ac_have_decl
22007_ACEOF
22008
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22010$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022011if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022012 $as_echo_n "(cached) " >&6
22013else
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015/* end confdefs.h. */
22016#include <time.h>
22017#if !HAVE_DECL_TZNAME
22018extern char *tzname[];
22019#endif
22020
22021int
22022main ()
22023{
22024return tzname[0][0];
22025 ;
22026 return 0;
22027}
22028_ACEOF
22029if ac_fn_c_try_link "$LINENO"; then :
22030 ac_cv_var_tzname=yes
22031else
22032 ac_cv_var_tzname=no
22033fi
22034rm -f core conftest.err conftest.$ac_objext \
22035 conftest$ac_exeext conftest.$ac_ext
22036fi
22037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22038$as_echo "$ac_cv_var_tzname" >&6; }
22039 if test $ac_cv_var_tzname = yes; then
22040
22041$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22042
22043 fi
22044fi
22045
cristy8b350f62009-11-15 23:12:43 +000022046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022047$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022048if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 $as_echo_n "(cached) " >&6
22050else
22051 echo '#! /bin/cat
22052exit 69
22053' >conftest
22054chmod u+x conftest
22055(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22056if test $? -ne 69; then
22057 ac_cv_sys_interpreter=yes
22058else
22059 ac_cv_sys_interpreter=no
22060fi
22061rm -f conftest
22062fi
cristy8b350f62009-11-15 23:12:43 +000022063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022064$as_echo "$ac_cv_sys_interpreter" >&6; }
22065interpval=$ac_cv_sys_interpreter
22066
22067
cristy3ed852e2009-09-05 21:47:34 +000022068# If the C compiler supports the keyword inline, do nothing. Otherwise
22069# define inline to __inline__ or __inline if it accepts one of those,
22070# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022072$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022073if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022074 $as_echo_n "(cached) " >&6
22075else
22076 ac_cv_c_inline=no
22077for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022079/* end confdefs.h. */
22080#ifndef __cplusplus
22081typedef int foo_t;
22082static $ac_kw foo_t static_foo () {return 0; }
22083$ac_kw foo_t foo () {return 0; }
22084#endif
22085
22086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022088 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022089fi
cristy3ed852e2009-09-05 21:47:34 +000022090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22091 test "$ac_cv_c_inline" != no && break
22092done
22093
22094fi
cristy8b350f62009-11-15 23:12:43 +000022095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022096$as_echo "$ac_cv_c_inline" >&6; }
22097
cristy3ed852e2009-09-05 21:47:34 +000022098case $ac_cv_c_inline in
22099 inline | yes) ;;
22100 *)
22101 case $ac_cv_c_inline in
22102 no) ac_val=;;
22103 *) ac_val=$ac_cv_c_inline;;
22104 esac
22105 cat >>confdefs.h <<_ACEOF
22106#ifndef __cplusplus
22107#define inline $ac_val
22108#endif
22109_ACEOF
22110 ;;
22111esac
22112
22113
22114# If the C compiler supports the keyword restrict, do nothing. Otherwise
22115# define restrict to __restrict__ or __restrict if it accepts one of those,
22116# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022118$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022119if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022120 $as_echo_n "(cached) " >&6
22121else
22122 ac_cv_c_restrict=no
22123 # The order here caters to the fact that C++ does not require restrict.
22124 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022126/* end confdefs.h. */
22127typedef int * int_ptr;
22128 int foo (int_ptr $ac_kw ip) {
22129 return ip[0];
22130 }
22131int
22132main ()
22133{
22134int s[1];
22135 int * $ac_kw t = s;
22136 t[0] = 0;
22137 return foo(t)
22138 ;
22139 return 0;
22140}
22141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022143 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022144fi
cristy3ed852e2009-09-05 21:47:34 +000022145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22146 test "$ac_cv_c_restrict" != no && break
22147 done
22148
22149fi
cristy8b350f62009-11-15 23:12:43 +000022150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022151$as_echo "$ac_cv_c_restrict" >&6; }
22152
cristy3ed852e2009-09-05 21:47:34 +000022153 case $ac_cv_c_restrict in
22154 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022155 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022156 ;;
22157 *) cat >>confdefs.h <<_ACEOF
22158#define restrict $ac_cv_c_restrict
22159_ACEOF
22160 ;;
22161 esac
22162
22163
22164# If words are stored with the most significant byte first (like
22165# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022167$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022168if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 $as_echo_n "(cached) " >&6
22170else
22171 ac_cv_c_bigendian=unknown
22172 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022174/* end confdefs.h. */
22175#ifndef __APPLE_CC__
22176 not a universal capable compiler
22177 #endif
22178 typedef int dummy;
22179
22180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022182
22183 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022184 # there are at least two -arch flags with different values.
22185 ac_arch=
22186 ac_prev=
22187 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22188 if test -n "$ac_prev"; then
22189 case $ac_word in
22190 i?86 | x86_64 | ppc | ppc64)
22191 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22192 ac_arch=$ac_word
22193 else
22194 ac_cv_c_bigendian=universal
22195 break
22196 fi
22197 ;;
22198 esac
22199 ac_prev=
22200 elif test "x$ac_word" = "x-arch"; then
22201 ac_prev=arch
22202 fi
22203 done
cristy3ed852e2009-09-05 21:47:34 +000022204fi
cristy3ed852e2009-09-05 21:47:34 +000022205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206 if test $ac_cv_c_bigendian = unknown; then
22207 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022209/* end confdefs.h. */
22210#include <sys/types.h>
22211 #include <sys/param.h>
22212
22213int
22214main ()
22215{
22216#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22217 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22218 && LITTLE_ENDIAN)
22219 bogus endian macros
22220 #endif
22221
22222 ;
22223 return 0;
22224}
22225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022227 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022229/* end confdefs.h. */
22230#include <sys/types.h>
22231 #include <sys/param.h>
22232
22233int
22234main ()
22235{
22236#if BYTE_ORDER != BIG_ENDIAN
22237 not big endian
22238 #endif
22239
22240 ;
22241 return 0;
22242}
22243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022244if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022245 ac_cv_c_bigendian=yes
22246else
cristy8b350f62009-11-15 23:12:43 +000022247 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022248fi
cristy3ed852e2009-09-05 21:47:34 +000022249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022250fi
cristy3ed852e2009-09-05 21:47:34 +000022251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 fi
22253 if test $ac_cv_c_bigendian = unknown; then
22254 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022256/* end confdefs.h. */
22257#include <limits.h>
22258
22259int
22260main ()
22261{
22262#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22263 bogus endian macros
22264 #endif
22265
22266 ;
22267 return 0;
22268}
22269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022271 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022273/* end confdefs.h. */
22274#include <limits.h>
22275
22276int
22277main ()
22278{
22279#ifndef _BIG_ENDIAN
22280 not big endian
22281 #endif
22282
22283 ;
22284 return 0;
22285}
22286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022287if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022288 ac_cv_c_bigendian=yes
22289else
cristy8b350f62009-11-15 23:12:43 +000022290 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022291fi
cristy3ed852e2009-09-05 21:47:34 +000022292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022293fi
cristy3ed852e2009-09-05 21:47:34 +000022294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 fi
22296 if test $ac_cv_c_bigendian = unknown; then
22297 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022298 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022299 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022301/* end confdefs.h. */
22302short int ascii_mm[] =
22303 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22304 short int ascii_ii[] =
22305 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22306 int use_ascii (int i) {
22307 return ascii_mm[i] + ascii_ii[i];
22308 }
22309 short int ebcdic_ii[] =
22310 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22311 short int ebcdic_mm[] =
22312 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22313 int use_ebcdic (int i) {
22314 return ebcdic_mm[i] + ebcdic_ii[i];
22315 }
22316 extern int foo;
22317
22318int
22319main ()
22320{
22321return use_ascii (foo) == use_ebcdic (foo);
22322 ;
22323 return 0;
22324}
22325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022326if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22328 ac_cv_c_bigendian=yes
22329 fi
22330 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22331 if test "$ac_cv_c_bigendian" = unknown; then
22332 ac_cv_c_bigendian=no
22333 else
22334 # finding both strings is unlikely to happen, but who knows?
22335 ac_cv_c_bigendian=unknown
22336 fi
22337 fi
cristy3ed852e2009-09-05 21:47:34 +000022338fi
cristy3ed852e2009-09-05 21:47:34 +000022339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22340else
cristy8b350f62009-11-15 23:12:43 +000022341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022342/* end confdefs.h. */
22343$ac_includes_default
22344int
22345main ()
22346{
22347
22348 /* Are we little or big endian? From Harbison&Steele. */
22349 union
22350 {
22351 long int l;
22352 char c[sizeof (long int)];
22353 } u;
22354 u.l = 1;
22355 return u.c[sizeof (long int) - 1] == 1;
22356
22357 ;
22358 return 0;
22359}
22360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022361if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022362 ac_cv_c_bigendian=no
22363else
cristy8b350f62009-11-15 23:12:43 +000022364 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022365fi
cristy8b350f62009-11-15 23:12:43 +000022366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22367 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022368fi
22369
cristy3ed852e2009-09-05 21:47:34 +000022370 fi
22371fi
cristy8b350f62009-11-15 23:12:43 +000022372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022373$as_echo "$ac_cv_c_bigendian" >&6; }
22374 case $ac_cv_c_bigendian in #(
22375 yes)
cristy8b350f62009-11-15 23:12:43 +000022376 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022377;; #(
22378 no)
22379 ;; #(
22380 universal)
22381
cristy8b350f62009-11-15 23:12:43 +000022382$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022383
22384 ;; #(
22385 *)
cristy98dddb52010-11-04 00:30:15 +000022386 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022387 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022388 esac
22389
22390
cristy501c8042011-05-26 17:46:28 +000022391# Define to a suitable type, if standard headers do not define it.
22392ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22393case $ac_cv_c_int8_t in #(
22394 no|yes) ;; #(
22395 *)
cristy3ed852e2009-09-05 21:47:34 +000022396
22397cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022398#define int8_t $ac_cv_c_int8_t
22399_ACEOF
22400;;
22401esac
22402
22403ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22404case $ac_cv_c_int16_t in #(
22405 no|yes) ;; #(
22406 *)
22407
22408cat >>confdefs.h <<_ACEOF
22409#define int16_t $ac_cv_c_int16_t
22410_ACEOF
22411;;
22412esac
22413
22414ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22415case $ac_cv_c_int32_t in #(
22416 no|yes) ;; #(
22417 *)
22418
22419cat >>confdefs.h <<_ACEOF
22420#define int32_t $ac_cv_c_int32_t
22421_ACEOF
22422;;
22423esac
22424
22425ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22426case $ac_cv_c_int64_t in #(
22427 no|yes) ;; #(
22428 *)
22429
22430cat >>confdefs.h <<_ACEOF
22431#define int64_t $ac_cv_c_int64_t
22432_ACEOF
22433;;
22434esac
22435
22436
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22438$as_echo_n "checking for long long int... " >&6; }
22439if ${ac_cv_type_long_long_int+:} false; then :
22440 $as_echo_n "(cached) " >&6
22441else
22442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22443/* end confdefs.h. */
22444
22445 /* For now, do not test the preprocessor; as of 2007 there are too many
22446 implementations with broken preprocessors. Perhaps this can
22447 be revisited in 2012. In the meantime, code should not expect
22448 #if to work with literals wider than 32 bits. */
22449 /* Test literals. */
22450 long long int ll = 9223372036854775807ll;
22451 long long int nll = -9223372036854775807LL;
22452 unsigned long long int ull = 18446744073709551615ULL;
22453 /* Test constant expressions. */
22454 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22455 ? 1 : -1)];
22456 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22457 ? 1 : -1)];
22458 int i = 63;
22459int
22460main ()
22461{
22462/* Test availability of runtime routines for shift and division. */
22463 long long int llmax = 9223372036854775807ll;
22464 unsigned long long int ullmax = 18446744073709551615ull;
22465 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22466 | (llmax / ll) | (llmax % ll)
22467 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22468 | (ullmax / ull) | (ullmax % ull));
22469 ;
22470 return 0;
22471}
22472
22473_ACEOF
22474if ac_fn_c_try_link "$LINENO"; then :
22475 if test "$cross_compiling" = yes; then :
22476 ac_cv_type_long_long_int=yes
22477else
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479/* end confdefs.h. */
22480#include <limits.h>
22481 #ifndef LLONG_MAX
22482 # define HALF \
22483 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22484 # define LLONG_MAX (HALF - 1 + HALF)
22485 #endif
22486int
22487main ()
22488{
22489long long int n = 1;
22490 int i;
22491 for (i = 0; ; i++)
22492 {
22493 long long int m = n << i;
22494 if (m >> i != n)
22495 return 1;
22496 if (LLONG_MAX / 2 < m)
22497 break;
22498 }
22499 return 0;
22500 ;
22501 return 0;
22502}
22503_ACEOF
22504if ac_fn_c_try_run "$LINENO"; then :
22505 ac_cv_type_long_long_int=yes
22506else
22507 ac_cv_type_long_long_int=no
22508fi
22509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22510 conftest.$ac_objext conftest.beam conftest.$ac_ext
22511fi
22512
22513else
22514 ac_cv_type_long_long_int=no
22515fi
22516rm -f core conftest.err conftest.$ac_objext \
22517 conftest$ac_exeext conftest.$ac_ext
22518fi
22519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22520$as_echo "$ac_cv_type_long_long_int" >&6; }
22521 if test $ac_cv_type_long_long_int = yes; then
22522
22523$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22524
22525 fi
22526
22527
22528
22529 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22530if test "x$ac_cv_type_intmax_t" = xyes; then :
22531
22532$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22533
22534else
22535 test $ac_cv_type_long_long_int = yes \
22536 && ac_type='long long int' \
22537 || ac_type='long int'
22538
22539cat >>confdefs.h <<_ACEOF
22540#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022541_ACEOF
22542
22543fi
22544
22545
cristy501c8042011-05-26 17:46:28 +000022546
22547 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22548if test "x$ac_cv_type_intptr_t" = xyes; then :
22549
22550$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022551
cristy3ed852e2009-09-05 21:47:34 +000022552else
cristy501c8042011-05-26 17:46:28 +000022553 for ac_type in 'int' 'long int' 'long long int'; do
22554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555/* end confdefs.h. */
22556$ac_includes_default
22557int
22558main ()
22559{
22560static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22561test_array [0] = 0
22562
22563 ;
22564 return 0;
22565}
22566_ACEOF
22567if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022568
22569cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022570#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022571_ACEOF
22572
cristy501c8042011-05-26 17:46:28 +000022573 ac_type=
22574fi
22575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576 test -z "$ac_type" && break
22577 done
cristy3ed852e2009-09-05 21:47:34 +000022578fi
22579
22580
cristy3ed852e2009-09-05 21:47:34 +000022581
cristy501c8042011-05-26 17:46:28 +000022582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22583$as_echo_n "checking for long double... " >&6; }
22584if ${ac_cv_type_long_double+:} false; then :
22585 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022586else
cristy501c8042011-05-26 17:46:28 +000022587 if test "$GCC" = yes; then
22588 ac_cv_type_long_double=yes
22589 else
22590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22591/* end confdefs.h. */
22592/* The Stardent Vistra knows sizeof (long double), but does
22593 not support it. */
22594 long double foo = 0.0L;
22595int
22596main ()
22597{
22598static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22599 sizeof (double) <= sizeof (long double))];
22600test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022601
cristy501c8042011-05-26 17:46:28 +000022602 ;
22603 return 0;
22604}
cristy3ed852e2009-09-05 21:47:34 +000022605_ACEOF
cristy501c8042011-05-26 17:46:28 +000022606if ac_fn_c_try_compile "$LINENO"; then :
22607 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022608else
cristy501c8042011-05-26 17:46:28 +000022609 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022610fi
cristy501c8042011-05-26 17:46:28 +000022611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 fi
cristy3ed852e2009-09-05 21:47:34 +000022613fi
cristy501c8042011-05-26 17:46:28 +000022614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22615$as_echo "$ac_cv_type_long_double" >&6; }
22616 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022617
cristy501c8042011-05-26 17:46:28 +000022618$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022619
cristy501c8042011-05-26 17:46:28 +000022620 fi
22621
cristy3ed852e2009-09-05 21:47:34 +000022622
cristy8b350f62009-11-15 23:12:43 +000022623 { $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 +000022624$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022625if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022626 $as_echo_n "(cached) " >&6
22627else
cristy8b350f62009-11-15 23:12:43 +000022628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022629/* end confdefs.h. */
22630#include <float.h>
22631 long double const a[] =
22632 {
22633 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22634 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22635 };
22636 long double
22637 f (long double x)
22638 {
22639 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22640 + (x ? f (x) : 'c'));
22641 }
22642
22643int
22644main ()
22645{
22646static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22647 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22648 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22649 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22650 && (int) LDBL_EPSILON == 0
22651 )];
22652test_array [0] = 0
22653
22654 ;
22655 return 0;
22656}
22657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022658if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022659 ac_cv_type_long_double_wider=yes
22660else
cristy8b350f62009-11-15 23:12:43 +000022661 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022662fi
cristy3ed852e2009-09-05 21:47:34 +000022663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22664fi
cristy8b350f62009-11-15 23:12:43 +000022665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022666$as_echo "$ac_cv_type_long_double_wider" >&6; }
22667 if test $ac_cv_type_long_double_wider = yes; then
22668
cristy8b350f62009-11-15 23:12:43 +000022669$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022670
22671 fi
22672
22673
cristy501c8042011-05-26 17:46:28 +000022674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22675$as_echo_n "checking for long long int... " >&6; }
22676if ${ac_cv_type_long_long_int+:} false; then :
22677 $as_echo_n "(cached) " >&6
22678else
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680/* end confdefs.h. */
22681
22682 /* For now, do not test the preprocessor; as of 2007 there are too many
22683 implementations with broken preprocessors. Perhaps this can
22684 be revisited in 2012. In the meantime, code should not expect
22685 #if to work with literals wider than 32 bits. */
22686 /* Test literals. */
22687 long long int ll = 9223372036854775807ll;
22688 long long int nll = -9223372036854775807LL;
22689 unsigned long long int ull = 18446744073709551615ULL;
22690 /* Test constant expressions. */
22691 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22692 ? 1 : -1)];
22693 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22694 ? 1 : -1)];
22695 int i = 63;
22696int
22697main ()
22698{
22699/* Test availability of runtime routines for shift and division. */
22700 long long int llmax = 9223372036854775807ll;
22701 unsigned long long int ullmax = 18446744073709551615ull;
22702 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22703 | (llmax / ll) | (llmax % ll)
22704 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22705 | (ullmax / ull) | (ullmax % ull));
22706 ;
22707 return 0;
22708}
22709
22710_ACEOF
22711if ac_fn_c_try_link "$LINENO"; then :
22712 if test "$cross_compiling" = yes; then :
22713 ac_cv_type_long_long_int=yes
22714else
22715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716/* end confdefs.h. */
22717#include <limits.h>
22718 #ifndef LLONG_MAX
22719 # define HALF \
22720 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22721 # define LLONG_MAX (HALF - 1 + HALF)
22722 #endif
22723int
22724main ()
22725{
22726long long int n = 1;
22727 int i;
22728 for (i = 0; ; i++)
22729 {
22730 long long int m = n << i;
22731 if (m >> i != n)
22732 return 1;
22733 if (LLONG_MAX / 2 < m)
22734 break;
22735 }
22736 return 0;
22737 ;
22738 return 0;
22739}
22740_ACEOF
22741if ac_fn_c_try_run "$LINENO"; then :
22742 ac_cv_type_long_long_int=yes
22743else
22744 ac_cv_type_long_long_int=no
22745fi
22746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22747 conftest.$ac_objext conftest.beam conftest.$ac_ext
22748fi
22749
22750else
22751 ac_cv_type_long_long_int=no
22752fi
22753rm -f core conftest.err conftest.$ac_objext \
22754 conftest$ac_exeext conftest.$ac_ext
22755fi
22756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22757$as_echo "$ac_cv_type_long_long_int" >&6; }
22758 if test $ac_cv_type_long_long_int = yes; then
22759
22760$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22761
22762 fi
22763
22764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22765$as_echo_n "checking for mbstate_t... " >&6; }
22766if ${ac_cv_type_mbstate_t+:} false; then :
22767 $as_echo_n "(cached) " >&6
22768else
22769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22770/* end confdefs.h. */
22771$ac_includes_default
22772# include <wchar.h>
22773int
22774main ()
22775{
22776mbstate_t x; return sizeof x;
22777 ;
22778 return 0;
22779}
22780_ACEOF
22781if ac_fn_c_try_compile "$LINENO"; then :
22782 ac_cv_type_mbstate_t=yes
22783else
22784 ac_cv_type_mbstate_t=no
22785fi
22786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787fi
22788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22789$as_echo "$ac_cv_type_mbstate_t" >&6; }
22790 if test $ac_cv_type_mbstate_t = yes; then
22791
22792$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22793
22794 else
22795
22796$as_echo "#define mbstate_t int" >>confdefs.h
22797
22798 fi
22799ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22800if test "x$ac_cv_type_mode_t" = xyes; then :
22801
22802else
22803
22804cat >>confdefs.h <<_ACEOF
22805#define mode_t int
22806_ACEOF
22807
22808fi
22809
22810ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22811if test "x$ac_cv_type_off_t" = xyes; then :
22812
22813else
22814
22815cat >>confdefs.h <<_ACEOF
22816#define off_t long int
22817_ACEOF
22818
22819fi
22820
22821ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22822if test "x$ac_cv_type_pid_t" = xyes; then :
22823
22824else
22825
22826cat >>confdefs.h <<_ACEOF
22827#define pid_t int
22828_ACEOF
22829
22830fi
22831
22832ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22833if test "x$ac_cv_type_size_t" = xyes; then :
22834
22835else
22836
22837cat >>confdefs.h <<_ACEOF
22838#define size_t unsigned int
22839_ACEOF
22840
22841fi
22842
22843ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22844if test "x$ac_cv_type_ssize_t" = xyes; then :
22845
22846else
22847
22848cat >>confdefs.h <<_ACEOF
22849#define ssize_t int
22850_ACEOF
22851
22852fi
22853
22854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22855$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22856if ${ac_cv_type_uid_t+:} false; then :
22857 $as_echo_n "(cached) " >&6
22858else
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860/* end confdefs.h. */
22861#include <sys/types.h>
22862
22863_ACEOF
22864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22865 $EGREP "uid_t" >/dev/null 2>&1; then :
22866 ac_cv_type_uid_t=yes
22867else
22868 ac_cv_type_uid_t=no
22869fi
22870rm -f conftest*
22871
22872fi
22873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22874$as_echo "$ac_cv_type_uid_t" >&6; }
22875if test $ac_cv_type_uid_t = no; then
22876
22877$as_echo "#define uid_t int" >>confdefs.h
22878
22879
22880$as_echo "#define gid_t int" >>confdefs.h
22881
22882fi
22883
22884ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22885case $ac_cv_c_uint8_t in #(
22886 no|yes) ;; #(
22887 *)
22888
22889$as_echo "#define _UINT8_T 1" >>confdefs.h
22890
22891
22892cat >>confdefs.h <<_ACEOF
22893#define uint8_t $ac_cv_c_uint8_t
22894_ACEOF
22895;;
22896 esac
22897
22898ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22899case $ac_cv_c_uint16_t in #(
22900 no|yes) ;; #(
22901 *)
22902
22903
22904cat >>confdefs.h <<_ACEOF
22905#define uint16_t $ac_cv_c_uint16_t
22906_ACEOF
22907;;
22908 esac
22909
22910ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22911case $ac_cv_c_uint32_t in #(
22912 no|yes) ;; #(
22913 *)
22914
22915$as_echo "#define _UINT32_T 1" >>confdefs.h
22916
22917
22918cat >>confdefs.h <<_ACEOF
22919#define uint32_t $ac_cv_c_uint32_t
22920_ACEOF
22921;;
22922 esac
22923
22924ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22925case $ac_cv_c_uint64_t in #(
22926 no|yes) ;; #(
22927 *)
22928
22929$as_echo "#define _UINT64_T 1" >>confdefs.h
22930
22931
22932cat >>confdefs.h <<_ACEOF
22933#define uint64_t $ac_cv_c_uint64_t
22934_ACEOF
22935;;
22936 esac
22937
22938
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22940$as_echo_n "checking for unsigned long long int... " >&6; }
22941if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22942 $as_echo_n "(cached) " >&6
22943else
22944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945/* end confdefs.h. */
22946
22947 /* For now, do not test the preprocessor; as of 2007 there are too many
22948 implementations with broken preprocessors. Perhaps this can
22949 be revisited in 2012. In the meantime, code should not expect
22950 #if to work with literals wider than 32 bits. */
22951 /* Test literals. */
22952 long long int ll = 9223372036854775807ll;
22953 long long int nll = -9223372036854775807LL;
22954 unsigned long long int ull = 18446744073709551615ULL;
22955 /* Test constant expressions. */
22956 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22957 ? 1 : -1)];
22958 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22959 ? 1 : -1)];
22960 int i = 63;
22961int
22962main ()
22963{
22964/* Test availability of runtime routines for shift and division. */
22965 long long int llmax = 9223372036854775807ll;
22966 unsigned long long int ullmax = 18446744073709551615ull;
22967 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22968 | (llmax / ll) | (llmax % ll)
22969 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22970 | (ullmax / ull) | (ullmax % ull));
22971 ;
22972 return 0;
22973}
22974
22975_ACEOF
22976if ac_fn_c_try_link "$LINENO"; then :
22977 ac_cv_type_unsigned_long_long_int=yes
22978else
22979 ac_cv_type_unsigned_long_long_int=no
22980fi
22981rm -f core conftest.err conftest.$ac_objext \
22982 conftest$ac_exeext conftest.$ac_ext
22983fi
22984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22985$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22986 if test $ac_cv_type_unsigned_long_long_int = yes; then
22987
22988$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22989
22990 fi
22991
22992
22993
22994 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22995if test "x$ac_cv_type_uintmax_t" = xyes; then :
22996
22997$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22998
22999else
23000 test $ac_cv_type_unsigned_long_long_int = yes \
23001 && ac_type='unsigned long long int' \
23002 || ac_type='unsigned long int'
23003
23004cat >>confdefs.h <<_ACEOF
23005#define uintmax_t $ac_type
23006_ACEOF
23007
23008fi
23009
23010
23011
23012 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23013if test "x$ac_cv_type_uintptr_t" = xyes; then :
23014
23015$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23016
23017else
23018 for ac_type in 'unsigned int' 'unsigned long int' \
23019 'unsigned long long int'; do
23020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23021/* end confdefs.h. */
23022$ac_includes_default
23023int
23024main ()
23025{
23026static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23027test_array [0] = 0
23028
23029 ;
23030 return 0;
23031}
23032_ACEOF
23033if ac_fn_c_try_compile "$LINENO"; then :
23034
23035cat >>confdefs.h <<_ACEOF
23036#define uintptr_t $ac_type
23037_ACEOF
23038
23039 ac_type=
23040fi
23041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23042 test -z "$ac_type" && break
23043 done
23044fi
23045
23046
23047
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23049$as_echo_n "checking for unsigned long long int... " >&6; }
23050if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23051 $as_echo_n "(cached) " >&6
23052else
23053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23054/* end confdefs.h. */
23055
23056 /* For now, do not test the preprocessor; as of 2007 there are too many
23057 implementations with broken preprocessors. Perhaps this can
23058 be revisited in 2012. In the meantime, code should not expect
23059 #if to work with literals wider than 32 bits. */
23060 /* Test literals. */
23061 long long int ll = 9223372036854775807ll;
23062 long long int nll = -9223372036854775807LL;
23063 unsigned long long int ull = 18446744073709551615ULL;
23064 /* Test constant expressions. */
23065 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23066 ? 1 : -1)];
23067 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23068 ? 1 : -1)];
23069 int i = 63;
23070int
23071main ()
23072{
23073/* Test availability of runtime routines for shift and division. */
23074 long long int llmax = 9223372036854775807ll;
23075 unsigned long long int ullmax = 18446744073709551615ull;
23076 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23077 | (llmax / ll) | (llmax % ll)
23078 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23079 | (ullmax / ull) | (ullmax % ull));
23080 ;
23081 return 0;
23082}
23083
23084_ACEOF
23085if ac_fn_c_try_link "$LINENO"; then :
23086 ac_cv_type_unsigned_long_long_int=yes
23087else
23088 ac_cv_type_unsigned_long_long_int=no
23089fi
23090rm -f core conftest.err conftest.$ac_objext \
23091 conftest$ac_exeext conftest.$ac_ext
23092fi
23093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23094$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23095 if test $ac_cv_type_unsigned_long_long_int = yes; then
23096
23097$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23098
23099 fi
23100
23101
cristy3ed852e2009-09-05 21:47:34 +000023102# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23103# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023105$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023106if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 $as_echo_n "(cached) " >&6
23108else
cristy8b350f62009-11-15 23:12:43 +000023109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023110/* end confdefs.h. */
23111$ac_includes_default
23112int
23113main ()
23114{
23115static int test_array [1 - 2 * !(((char) -1) < 0)];
23116test_array [0] = 0
23117
23118 ;
23119 return 0;
23120}
23121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023122if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023123 ac_cv_c_char_unsigned=no
23124else
cristy8b350f62009-11-15 23:12:43 +000023125 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023126fi
cristy3ed852e2009-09-05 21:47:34 +000023127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128fi
cristy8b350f62009-11-15 23:12:43 +000023129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023130$as_echo "$ac_cv_c_char_unsigned" >&6; }
23131if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023132 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023133
23134fi
23135
23136
23137# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23138# The cast to long int works around a bug in the HP C Compiler
23139# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23140# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23141# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023143$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023144if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023145 $as_echo_n "(cached) " >&6
23146else
cristy8b350f62009-11-15 23:12:43 +000023147 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 +000023148
cristy3ed852e2009-09-05 21:47:34 +000023149else
cristy8b350f62009-11-15 23:12:43 +000023150 if test "$ac_cv_type_signed_short" = yes; then
23151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023153as_fn_error 77 "cannot compute sizeof (signed short)
23154See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023155 else
23156 ac_cv_sizeof_signed_short=0
23157 fi
23158fi
cristy8b350f62009-11-15 23:12:43 +000023159
cristy3ed852e2009-09-05 21:47:34 +000023160fi
cristy8b350f62009-11-15 23:12:43 +000023161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023162$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23163
23164
23165
23166cat >>confdefs.h <<_ACEOF
23167#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23168_ACEOF
23169
23170
23171
23172# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23173# The cast to long int works around a bug in the HP C Compiler
23174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23176# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023178$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023179if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023180 $as_echo_n "(cached) " >&6
23181else
cristy8b350f62009-11-15 23:12:43 +000023182 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 +000023183
cristy3ed852e2009-09-05 21:47:34 +000023184else
cristy8b350f62009-11-15 23:12:43 +000023185 if test "$ac_cv_type_unsigned_short" = yes; then
23186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023188as_fn_error 77 "cannot compute sizeof (unsigned short)
23189See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023190 else
23191 ac_cv_sizeof_unsigned_short=0
23192 fi
23193fi
cristy8b350f62009-11-15 23:12:43 +000023194
cristy3ed852e2009-09-05 21:47:34 +000023195fi
cristy8b350f62009-11-15 23:12:43 +000023196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023197$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23198
23199
23200
23201cat >>confdefs.h <<_ACEOF
23202#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23203_ACEOF
23204
23205
23206
23207# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23208# The cast to long int works around a bug in the HP C Compiler
23209# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23210# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23211# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023213$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023214if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023215 $as_echo_n "(cached) " >&6
23216else
cristy8b350f62009-11-15 23:12:43 +000023217 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 +000023218
cristy3ed852e2009-09-05 21:47:34 +000023219else
cristy8b350f62009-11-15 23:12:43 +000023220 if test "$ac_cv_type_signed_int" = yes; then
23221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023223as_fn_error 77 "cannot compute sizeof (signed int)
23224See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023225 else
23226 ac_cv_sizeof_signed_int=0
23227 fi
23228fi
cristy8b350f62009-11-15 23:12:43 +000023229
cristy3ed852e2009-09-05 21:47:34 +000023230fi
cristy8b350f62009-11-15 23:12:43 +000023231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023232$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23233
23234
23235
23236cat >>confdefs.h <<_ACEOF
23237#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23238_ACEOF
23239
23240
23241
23242# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23243# The cast to long int works around a bug in the HP C Compiler
23244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23246# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023248$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023249if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023250 $as_echo_n "(cached) " >&6
23251else
cristy8b350f62009-11-15 23:12:43 +000023252 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 +000023253
cristy3ed852e2009-09-05 21:47:34 +000023254else
cristy8b350f62009-11-15 23:12:43 +000023255 if test "$ac_cv_type_unsigned_int" = yes; then
23256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023258as_fn_error 77 "cannot compute sizeof (unsigned int)
23259See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023260 else
23261 ac_cv_sizeof_unsigned_int=0
23262 fi
23263fi
cristy8b350f62009-11-15 23:12:43 +000023264
cristy3ed852e2009-09-05 21:47:34 +000023265fi
cristy8b350f62009-11-15 23:12:43 +000023266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023267$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23268
23269
23270
23271cat >>confdefs.h <<_ACEOF
23272#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23273_ACEOF
23274
23275
23276
23277# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23278# The cast to long int works around a bug in the HP C Compiler
23279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23281# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023283$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023284if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023285 $as_echo_n "(cached) " >&6
23286else
cristy8b350f62009-11-15 23:12:43 +000023287 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 +000023288
cristy3ed852e2009-09-05 21:47:34 +000023289else
cristy8b350f62009-11-15 23:12:43 +000023290 if test "$ac_cv_type_signed_long" = yes; then
23291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023293as_fn_error 77 "cannot compute sizeof (signed long)
23294See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023295 else
23296 ac_cv_sizeof_signed_long=0
23297 fi
23298fi
cristy8b350f62009-11-15 23:12:43 +000023299
cristy3ed852e2009-09-05 21:47:34 +000023300fi
cristy8b350f62009-11-15 23:12:43 +000023301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023302$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23303
23304
23305
23306cat >>confdefs.h <<_ACEOF
23307#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23308_ACEOF
23309
23310
23311
23312# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23313# The cast to long int works around a bug in the HP C Compiler
23314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23316# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023318$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023319if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023320 $as_echo_n "(cached) " >&6
23321else
cristy8b350f62009-11-15 23:12:43 +000023322 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 +000023323
cristy3ed852e2009-09-05 21:47:34 +000023324else
cristy8b350f62009-11-15 23:12:43 +000023325 if test "$ac_cv_type_unsigned_long" = yes; then
23326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023328as_fn_error 77 "cannot compute sizeof (unsigned long)
23329See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023330 else
23331 ac_cv_sizeof_unsigned_long=0
23332 fi
23333fi
cristy8b350f62009-11-15 23:12:43 +000023334
cristy3ed852e2009-09-05 21:47:34 +000023335fi
cristy8b350f62009-11-15 23:12:43 +000023336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023337$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23338
23339
23340
23341cat >>confdefs.h <<_ACEOF
23342#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23343_ACEOF
23344
23345
23346
23347# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23348# 'signed long long' is not supported then the value defined is zero.
23349# The cast to long int works around a bug in the HP C Compiler
23350# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23351# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23352# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023354$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023355if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023356 $as_echo_n "(cached) " >&6
23357else
cristy8b350f62009-11-15 23:12:43 +000023358 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 +000023359
cristy3ed852e2009-09-05 21:47:34 +000023360else
cristy8b350f62009-11-15 23:12:43 +000023361 if test "$ac_cv_type_signed_long_long" = yes; then
23362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023364as_fn_error 77 "cannot compute sizeof (signed long long)
23365See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023366 else
23367 ac_cv_sizeof_signed_long_long=0
23368 fi
23369fi
cristy8b350f62009-11-15 23:12:43 +000023370
cristy3ed852e2009-09-05 21:47:34 +000023371fi
cristy8b350f62009-11-15 23:12:43 +000023372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23374
23375
23376
23377cat >>confdefs.h <<_ACEOF
23378#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23379_ACEOF
23380
23381
23382
23383# Obtain size of a 'unsigned long long' and define as
23384# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23385# supported then the value defined is zero.
23386# The cast to long int works around a bug in the HP C Compiler
23387# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23388# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23389# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023392if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023393 $as_echo_n "(cached) " >&6
23394else
cristy8b350f62009-11-15 23:12:43 +000023395 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 +000023396
cristy3ed852e2009-09-05 21:47:34 +000023397else
cristy8b350f62009-11-15 23:12:43 +000023398 if test "$ac_cv_type_unsigned_long_long" = yes; then
23399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023401as_fn_error 77 "cannot compute sizeof (unsigned long long)
23402See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023403 else
23404 ac_cv_sizeof_unsigned_long_long=0
23405 fi
23406fi
cristy8b350f62009-11-15 23:12:43 +000023407
cristy3ed852e2009-09-05 21:47:34 +000023408fi
cristy8b350f62009-11-15 23:12:43 +000023409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023410$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23411
23412
23413
23414cat >>confdefs.h <<_ACEOF
23415#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23416_ACEOF
23417
23418
23419
23420# Obtain size of off_t and define as SIZEOF_OFF_T
23421# The cast to long int works around a bug in the HP C Compiler
23422# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23423# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23424# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023426$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023427if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 $as_echo_n "(cached) " >&6
23429else
cristy8b350f62009-11-15 23:12:43 +000023430 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 +000023431
cristy3ed852e2009-09-05 21:47:34 +000023432else
cristy8b350f62009-11-15 23:12:43 +000023433 if test "$ac_cv_type_off_t" = yes; then
23434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023436as_fn_error 77 "cannot compute sizeof (off_t)
23437See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023438 else
23439 ac_cv_sizeof_off_t=0
23440 fi
23441fi
cristy8b350f62009-11-15 23:12:43 +000023442
cristy3ed852e2009-09-05 21:47:34 +000023443fi
cristy8b350f62009-11-15 23:12:43 +000023444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023445$as_echo "$ac_cv_sizeof_off_t" >&6; }
23446
23447
23448
23449cat >>confdefs.h <<_ACEOF
23450#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23451_ACEOF
23452
23453
23454
23455# Obtain size of size_t and define as SIZEOF_SIZE_T
23456# The cast to long int works around a bug in the HP C Compiler
23457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23459# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023461$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023462if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023463 $as_echo_n "(cached) " >&6
23464else
cristy8b350f62009-11-15 23:12:43 +000023465 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 +000023466
cristy3ed852e2009-09-05 21:47:34 +000023467else
cristy8b350f62009-11-15 23:12:43 +000023468 if test "$ac_cv_type_size_t" = yes; then
23469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023471as_fn_error 77 "cannot compute sizeof (size_t)
23472See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023473 else
23474 ac_cv_sizeof_size_t=0
23475 fi
23476fi
cristy8b350f62009-11-15 23:12:43 +000023477
cristy3ed852e2009-09-05 21:47:34 +000023478fi
cristy8b350f62009-11-15 23:12:43 +000023479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023480$as_echo "$ac_cv_sizeof_size_t" >&6; }
23481
23482
23483
23484cat >>confdefs.h <<_ACEOF
23485#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23486_ACEOF
23487
23488
23489
cristy330e9352010-06-01 18:42:49 +000023490# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23491# The cast to long int works around a bug in the HP C Compiler
23492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23494# This bug is HP SR number 8606223364.
23495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23496$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023497if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023498 $as_echo_n "(cached) " >&6
23499else
23500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23501
23502else
23503 if test "$ac_cv_type_ssize_t" = yes; then
23504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023506as_fn_error 77 "cannot compute sizeof (ssize_t)
23507See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023508 else
23509 ac_cv_sizeof_ssize_t=0
23510 fi
23511fi
23512
23513fi
23514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23515$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23516
23517
23518
23519cat >>confdefs.h <<_ACEOF
23520#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23521_ACEOF
23522
23523
23524
cristy3ed852e2009-09-05 21:47:34 +000023525# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23526# The cast to long int works around a bug in the HP C Compiler
23527# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23528# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23529# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023531$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023532if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023533 $as_echo_n "(cached) " >&6
23534else
cristy8b350f62009-11-15 23:12:43 +000023535 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 +000023536
cristy3ed852e2009-09-05 21:47:34 +000023537else
cristy8b350f62009-11-15 23:12:43 +000023538 if test "$ac_cv_type_unsigned_intp" = yes; then
23539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023541as_fn_error 77 "cannot compute sizeof (unsigned int*)
23542See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023543 else
23544 ac_cv_sizeof_unsigned_intp=0
23545 fi
23546fi
cristy8b350f62009-11-15 23:12:43 +000023547
cristy3ed852e2009-09-05 21:47:34 +000023548fi
cristy8b350f62009-11-15 23:12:43 +000023549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023550$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23551
23552
23553
23554cat >>confdefs.h <<_ACEOF
23555#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23556_ACEOF
23557
23558
23559
23560#
23561# Compute sized types for current CPU and compiler options.
23562#
23563
cristy8b350f62009-11-15 23:12:43 +000023564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo_n "checking for signed 8-bit type... " >&6; }
23566INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000023567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023568$as_echo "$INT8_T" >&6; }
23569
23570
cristy8b350f62009-11-15 23:12:43 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23573UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000023574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo "$UINT8_T" >&6; }
23576
23577
cristy8b350f62009-11-15 23:12:43 +000023578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo_n "checking for signed 16-bit type... " >&6; }
23580INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000023581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023582$as_echo "$INT16_T" >&6; }
23583
23584
cristy8b350f62009-11-15 23:12:43 +000023585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023586$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23587UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000023588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023589$as_echo "$UINT16_T" >&6; }
23590
23591
cristy8b350f62009-11-15 23:12:43 +000023592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023593$as_echo_n "checking for signed 32-bit type... " >&6; }
23594INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023595INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023596if test $ac_cv_sizeof_signed_int -eq 4; then
23597 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023598 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023599elif test $ac_cv_sizeof_signed_long -eq 4; then
23600 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023601 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023602fi
cristy8b350f62009-11-15 23:12:43 +000023603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023604$as_echo "$INT32_T" >&6; }
23605
23606
cristy6d5e20f2011-04-25 13:48:54 +000023607
cristy8b350f62009-11-15 23:12:43 +000023608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023609$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23610UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023611UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023612if test $ac_cv_sizeof_unsigned_int -eq 4; then
23613 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023614 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023615elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23616 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023617 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023618fi
cristy8b350f62009-11-15 23:12:43 +000023619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023620$as_echo "$UINT32_T" >&6; }
23621
23622
cristy6d5e20f2011-04-25 13:48:54 +000023623
cristy8b350f62009-11-15 23:12:43 +000023624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023625$as_echo_n "checking for signed 64-bit type... " >&6; }
23626INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023627INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023628if test $ac_cv_sizeof_signed_long -eq 8; then
23629 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023630 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023631elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23632 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023633 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023634fi
cristy6d5e20f2011-04-25 13:48:54 +000023635case "${build_os}" in
23636 mingw* )
23637 INT64_F='"I64"'
23638 ;;
23639esac
cristy8b350f62009-11-15 23:12:43 +000023640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023641$as_echo "$INT64_T" >&6; }
23642
23643
cristy6d5e20f2011-04-25 13:48:54 +000023644
cristy8b350f62009-11-15 23:12:43 +000023645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023646$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23647UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023648UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023649if test $ac_cv_sizeof_unsigned_long -eq 8; then
23650 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023651 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023652elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23653 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023654 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023655fi
cristy6d5e20f2011-04-25 13:48:54 +000023656case "${build_os}" in
23657 mingw* )
23658 UINT64_F='"I64"'
23659 ;;
23660esac
cristy8b350f62009-11-15 23:12:43 +000023661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023662$as_echo "$UINT64_T" >&6; }
23663
23664
cristy6d5e20f2011-04-25 13:48:54 +000023665
cristy8b350f62009-11-15 23:12:43 +000023666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023667$as_echo_n "checking for unsigned maximum type... " >&6; }
23668UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023669UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023670if test "$UINT64_T" != 'none'; then
23671 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023672 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023673elif test "$UINT32_T" != 'none'; then
23674 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023675 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023676fi
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo "$UINTMAX_T" >&6; }
23679
23680
cristy6d5e20f2011-04-25 13:48:54 +000023681
cristy8b350f62009-11-15 23:12:43 +000023682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023683$as_echo_n "checking for pointer difference type... " >&6; }
23684UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023685UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023686if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23687 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023688 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023689elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23690 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023691 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023692fi
cristy8b350f62009-11-15 23:12:43 +000023693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023694$as_echo "$UINTPTR_T" >&6; }
23695
23696
cristy6d5e20f2011-04-25 13:48:54 +000023697
cristy8b350f62009-11-15 23:12:43 +000023698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023699$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023701/* end confdefs.h. */
23702
23703int
23704main ()
23705{
23706{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23707 ;
23708 return 0;
23709}
23710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023711if ac_fn_c_try_compile "$LINENO"; then :
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo "yes" >&6; }
23714else
cristy8b350f62009-11-15 23:12:43 +000023715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023720/* end confdefs.h. */
23721
23722int
23723main ()
23724{
23725{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23726 ;
23727 return 0;
23728}
23729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023730if ac_fn_c_try_compile "$LINENO"; then :
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023732$as_echo "yes" >&6; }
23733
cristy8b350f62009-11-15 23:12:43 +000023734$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023735
23736else
cristy8b350f62009-11-15 23:12:43 +000023737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023738$as_echo "no" >&6; }
23739
cristy8b350f62009-11-15 23:12:43 +000023740$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023741
23742fi
cristy3ed852e2009-09-05 21:47:34 +000023743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744fi
cristy3ed852e2009-09-05 21:47:34 +000023745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746
23747########
23748#
23749# Check for functions
23750#
23751########
cristy73bd4a52010-10-05 11:24:23 +000023752for ac_header in stdlib.h unistd.h
23753do :
23754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023757 cat >>confdefs.h <<_ACEOF
23758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23759_ACEOF
23760
23761fi
23762
23763done
23764
23765for ac_func in getpagesize
23766do :
23767 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023768if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023769 cat >>confdefs.h <<_ACEOF
23770#define HAVE_GETPAGESIZE 1
23771_ACEOF
23772
23773fi
23774done
23775
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23777$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023778if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023779 $as_echo_n "(cached) " >&6
23780else
23781 if test "$cross_compiling" = yes; then :
23782 magick_cv_func_mmap_fileio=no
23783else
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785/* end confdefs.h. */
23786$ac_includes_default
23787/* malloc might have been renamed as rpl_malloc. */
23788#undef malloc
23789
23790/*
23791 This test is derived from GNU Autoconf's similar macro.
23792 The purpose of this test is to verify that files may be memory
23793 mapped, and that memory mapping and file I/O are coherent.
23794
23795 The test creates a test file, memory maps the file, updates
23796 the file using the memory map, and then reads the file using
23797 file I/O to verify that the file contains the updates.
23798*/
23799
23800#include <fcntl.h>
23801#include <sys/mman.h>
23802
23803#if !STDC_HEADERS && !HAVE_STDLIB_H
23804char *malloc ();
23805#endif
23806
23807/* This mess was copied from the GNU getpagesize.h. */
23808#if !HAVE_GETPAGESIZE
23809/* Assume that all systems that can run configure have sys/param.h. */
23810# if !HAVE_SYS_PARAM_H
23811# define HAVE_SYS_PARAM_H 1
23812# endif
23813
23814# ifdef _SC_PAGESIZE
23815# define getpagesize() sysconf(_SC_PAGESIZE)
23816# else /* no _SC_PAGESIZE */
23817# if HAVE_SYS_PARAM_H
23818# include <sys/param.h>
23819# ifdef EXEC_PAGESIZE
23820# define getpagesize() EXEC_PAGESIZE
23821# else /* no EXEC_PAGESIZE */
23822# ifdef NBPG
23823# define getpagesize() NBPG * CLSIZE
23824# ifndef CLSIZE
23825# define CLSIZE 1
23826# endif /* no CLSIZE */
23827# else /* no NBPG */
23828# ifdef NBPC
23829# define getpagesize() NBPC
23830# else /* no NBPC */
23831# ifdef PAGESIZE
23832# define getpagesize() PAGESIZE
23833# endif /* PAGESIZE */
23834# endif /* no NBPC */
23835# endif /* no NBPG */
23836# endif /* no EXEC_PAGESIZE */
23837# else /* no HAVE_SYS_PARAM_H */
23838# define getpagesize() 8192 /* punt totally */
23839# endif /* no HAVE_SYS_PARAM_H */
23840# endif /* no _SC_PAGESIZE */
23841
23842#endif /* no HAVE_GETPAGESIZE */
23843
23844int
23845main ()
23846{
23847 char *data, *data2, *data3;
23848 int i, pagesize;
23849 int fd;
23850
23851 pagesize = getpagesize ();
23852
23853 /* First, make a file with some known garbage in it. */
23854 data = (char *) malloc (pagesize);
23855 if (!data)
23856 exit (1);
23857 for (i = 0; i < pagesize; ++i)
23858 *(data + i) = rand ();
23859 umask (0);
23860 fd = creat ("conftest.mmap", 0600);
23861 if (fd < 0)
23862 exit (1);
23863 if (write (fd, data, pagesize) != pagesize)
23864 exit (1);
23865 close (fd);
23866
23867 /* Mmap the file as read/write/shared and verify that we see the
23868 same garbage. */
23869 fd = open ("conftest.mmap", O_RDWR);
23870 if (fd < 0)
23871 exit (1);
23872 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23873 if (data2 == 0)
23874 exit (1);
23875 for (i = 0; i < pagesize; ++i)
23876 if (*(data + i) != *(data2 + i))
23877 exit (1);
23878
23879 /* Finally, make sure that changes to the mapped area
23880 percolate back to the file as seen by read(). */
23881 for (i = 0; i < pagesize; ++i)
23882 *(data2 + i) = *(data2 + i) + 1;
23883 data3 = (char *) malloc (pagesize);
23884 if (!data3)
23885 exit (1);
23886 if (read (fd, data3, pagesize) != pagesize)
23887 exit (1);
23888 for (i = 0; i < pagesize; ++i)
23889 if (*(data2 + i) != *(data3 + i))
23890 exit (1);
23891 close (fd);
23892 exit (0);
23893}
23894_ACEOF
23895if ac_fn_c_try_run "$LINENO"; then :
23896 magick_cv_func_mmap_fileio=yes
23897else
23898 magick_cv_func_mmap_fileio=no
23899fi
23900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23901 conftest.$ac_objext conftest.beam conftest.$ac_ext
23902fi
23903
23904fi
23905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23906$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23907if test $magick_cv_func_mmap_fileio = yes; then
23908
23909$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23910
23911fi
23912rm -f conftest.mmap
23913
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023916if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 $as_echo_n "(cached) " >&6
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023920 ac_cv_func_closedir_void=yes
23921else
cristy8b350f62009-11-15 23:12:43 +000023922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023923/* end confdefs.h. */
23924$ac_includes_default
23925#include <$ac_header_dirent>
23926#ifndef __cplusplus
23927int closedir ();
23928#endif
23929
23930int
23931main ()
23932{
23933return closedir (opendir (".")) != 0;
23934 ;
23935 return 0;
23936}
23937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023938if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023939 ac_cv_func_closedir_void=no
23940else
cristy8b350f62009-11-15 23:12:43 +000023941 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023942fi
cristy8b350f62009-11-15 23:12:43 +000023943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23944 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023945fi
23946
cristy3ed852e2009-09-05 21:47:34 +000023947fi
cristy8b350f62009-11-15 23:12:43 +000023948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023949$as_echo "$ac_cv_func_closedir_void" >&6; }
23950if test $ac_cv_func_closedir_void = yes; then
23951
cristy8b350f62009-11-15 23:12:43 +000023952$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023953
23954fi
23955
cristycd4c5312009-11-22 01:19:08 +000023956
23957
23958
23959 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023960do :
23961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023962ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23963"
cristy98dddb52010-11-04 00:30:15 +000023964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023965 cat >>confdefs.h <<_ACEOF
23966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23967_ACEOF
23968
23969fi
23970
23971done
23972
cristycd4c5312009-11-22 01:19:08 +000023973
23974
23975
23976
23977
23978
23979
cristy3ed852e2009-09-05 21:47:34 +000023980for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023981do :
23982 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023983if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023984 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023985#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023986_ACEOF
23987
23988fi
23989done
23990
cristy8b350f62009-11-15 23:12:43 +000023991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023992$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023993if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023994 $as_echo_n "(cached) " >&6
23995else
cristy8b350f62009-11-15 23:12:43 +000023996 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023997 ac_cv_func_mmap_fixed_mapped=no
23998else
cristy8b350f62009-11-15 23:12:43 +000023999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024000/* end confdefs.h. */
24001$ac_includes_default
24002/* malloc might have been renamed as rpl_malloc. */
24003#undef malloc
24004
24005/* Thanks to Mike Haertel and Jim Avera for this test.
24006 Here is a matrix of mmap possibilities:
24007 mmap private not fixed
24008 mmap private fixed at somewhere currently unmapped
24009 mmap private fixed at somewhere already mapped
24010 mmap shared not fixed
24011 mmap shared fixed at somewhere currently unmapped
24012 mmap shared fixed at somewhere already mapped
24013 For private mappings, we should verify that changes cannot be read()
24014 back from the file, nor mmap's back from the file at a different
24015 address. (There have been systems where private was not correctly
24016 implemented like the infamous i386 svr4.0, and systems where the
24017 VM page cache was not coherent with the file system buffer cache
24018 like early versions of FreeBSD and possibly contemporary NetBSD.)
24019 For shared mappings, we should conversely verify that changes get
24020 propagated back to all the places they're supposed to be.
24021
24022 Grep wants private fixed already mapped.
24023 The main things grep needs to know about mmap are:
24024 * does it exist and is it safe to write into the mmap'd area
24025 * how to use it (BSD variants) */
24026
24027#include <fcntl.h>
24028#include <sys/mman.h>
24029
24030#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24031char *malloc ();
24032#endif
24033
24034/* This mess was copied from the GNU getpagesize.h. */
24035#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024036# ifdef _SC_PAGESIZE
24037# define getpagesize() sysconf(_SC_PAGESIZE)
24038# else /* no _SC_PAGESIZE */
24039# ifdef HAVE_SYS_PARAM_H
24040# include <sys/param.h>
24041# ifdef EXEC_PAGESIZE
24042# define getpagesize() EXEC_PAGESIZE
24043# else /* no EXEC_PAGESIZE */
24044# ifdef NBPG
24045# define getpagesize() NBPG * CLSIZE
24046# ifndef CLSIZE
24047# define CLSIZE 1
24048# endif /* no CLSIZE */
24049# else /* no NBPG */
24050# ifdef NBPC
24051# define getpagesize() NBPC
24052# else /* no NBPC */
24053# ifdef PAGESIZE
24054# define getpagesize() PAGESIZE
24055# endif /* PAGESIZE */
24056# endif /* no NBPC */
24057# endif /* no NBPG */
24058# endif /* no EXEC_PAGESIZE */
24059# else /* no HAVE_SYS_PARAM_H */
24060# define getpagesize() 8192 /* punt totally */
24061# endif /* no HAVE_SYS_PARAM_H */
24062# endif /* no _SC_PAGESIZE */
24063
24064#endif /* no HAVE_GETPAGESIZE */
24065
24066int
24067main ()
24068{
24069 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024070 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024071 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024072 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024073
24074 pagesize = getpagesize ();
24075
24076 /* First, make a file with some known garbage in it. */
24077 data = (char *) malloc (pagesize);
24078 if (!data)
24079 return 1;
24080 for (i = 0; i < pagesize; ++i)
24081 *(data + i) = rand ();
24082 umask (0);
24083 fd = creat ("conftest.mmap", 0600);
24084 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024085 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024086 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024087 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024088 close (fd);
24089
cristycd4c5312009-11-22 01:19:08 +000024090 /* Next, check that the tail of a page is zero-filled. File must have
24091 non-zero length, otherwise we risk SIGBUS for entire page. */
24092 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24093 if (fd2 < 0)
24094 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024095 cdata2 = "";
24096 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024097 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024098 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024099 if (data2 == MAP_FAILED)
24100 return 6;
24101 for (i = 0; i < pagesize; ++i)
24102 if (*(data2 + i))
24103 return 7;
24104 close (fd2);
24105 if (munmap (data2, pagesize))
24106 return 8;
24107
cristy3ed852e2009-09-05 21:47:34 +000024108 /* Next, try to mmap the file at a fixed address which already has
24109 something else allocated at it. If we can, also make sure that
24110 we see the same garbage. */
24111 fd = open ("conftest.mmap", O_RDWR);
24112 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024113 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024114 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24115 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024116 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024117 for (i = 0; i < pagesize; ++i)
24118 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024119 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024120
24121 /* Finally, make sure that changes to the mapped area do not
24122 percolate back to the file as seen by read(). (This is a bug on
24123 some variants of i386 svr4.0.) */
24124 for (i = 0; i < pagesize; ++i)
24125 *(data2 + i) = *(data2 + i) + 1;
24126 data3 = (char *) malloc (pagesize);
24127 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024128 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024129 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024130 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024131 for (i = 0; i < pagesize; ++i)
24132 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024133 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024134 close (fd);
24135 return 0;
24136}
24137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024138if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024139 ac_cv_func_mmap_fixed_mapped=yes
24140else
cristy8b350f62009-11-15 23:12:43 +000024141 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024142fi
cristy8b350f62009-11-15 23:12:43 +000024143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24144 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024145fi
24146
cristy3ed852e2009-09-05 21:47:34 +000024147fi
cristy8b350f62009-11-15 23:12:43 +000024148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024149$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24150if test $ac_cv_func_mmap_fixed_mapped = yes; then
24151
cristy8b350f62009-11-15 23:12:43 +000024152$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024153
24154fi
cristycd4c5312009-11-22 01:19:08 +000024155rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024156
cristy3ed852e2009-09-05 21:47:34 +000024157for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024158do :
24159 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024160if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024161 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024162#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024163_ACEOF
24164
24165fi
24166
24167done
24168
cristy3ed852e2009-09-05 21:47:34 +000024169for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024170do :
24171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24172ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024173if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024174 cat >>confdefs.h <<_ACEOF
24175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24176_ACEOF
24177
24178fi
24179done
24180
24181if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024184if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 $as_echo_n "(cached) " >&6
24186else
cristy8b350f62009-11-15 23:12:43 +000024187 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024188 ac_cv_func_fork_works=cross
24189else
cristy8b350f62009-11-15 23:12:43 +000024190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024191/* end confdefs.h. */
24192$ac_includes_default
24193int
24194main ()
24195{
24196
24197 /* By Ruediger Kuhlmann. */
24198 return fork () < 0;
24199
24200 ;
24201 return 0;
24202}
24203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024204if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 ac_cv_func_fork_works=yes
24206else
cristy8b350f62009-11-15 23:12:43 +000024207 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024208fi
cristy8b350f62009-11-15 23:12:43 +000024209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24210 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024211fi
24212
cristy3ed852e2009-09-05 21:47:34 +000024213fi
cristy8b350f62009-11-15 23:12:43 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo "$ac_cv_func_fork_works" >&6; }
24216
24217else
24218 ac_cv_func_fork_works=$ac_cv_func_fork
24219fi
24220if test "x$ac_cv_func_fork_works" = xcross; then
24221 case $host in
24222 *-*-amigaos* | *-*-msdosdjgpp*)
24223 # Override, as these systems have only a dummy fork() stub
24224 ac_cv_func_fork_works=no
24225 ;;
24226 *)
24227 ac_cv_func_fork_works=yes
24228 ;;
24229 esac
cristy8b350f62009-11-15 23:12:43 +000024230 { $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 +000024231$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24232fi
24233ac_cv_func_vfork_works=$ac_cv_func_vfork
24234if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024237if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024238 $as_echo_n "(cached) " >&6
24239else
cristy8b350f62009-11-15 23:12:43 +000024240 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024241 ac_cv_func_vfork_works=cross
24242else
cristy8b350f62009-11-15 23:12:43 +000024243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024244/* end confdefs.h. */
24245/* Thanks to Paul Eggert for this test. */
24246$ac_includes_default
24247#include <sys/wait.h>
24248#ifdef HAVE_VFORK_H
24249# include <vfork.h>
24250#endif
24251/* On some sparc systems, changes by the child to local and incoming
24252 argument registers are propagated back to the parent. The compiler
24253 is told about this with #include <vfork.h>, but some compilers
24254 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24255 static variable whose address is put into a register that is
24256 clobbered by the vfork. */
24257static void
24258#ifdef __cplusplus
24259sparc_address_test (int arg)
24260# else
24261sparc_address_test (arg) int arg;
24262#endif
24263{
24264 static pid_t child;
24265 if (!child) {
24266 child = vfork ();
24267 if (child < 0) {
24268 perror ("vfork");
24269 _exit(2);
24270 }
24271 if (!child) {
24272 arg = getpid();
24273 write(-1, "", 0);
24274 _exit (arg);
24275 }
24276 }
24277}
24278
24279int
24280main ()
24281{
24282 pid_t parent = getpid ();
24283 pid_t child;
24284
24285 sparc_address_test (0);
24286
24287 child = vfork ();
24288
24289 if (child == 0) {
24290 /* Here is another test for sparc vfork register problems. This
24291 test uses lots of local variables, at least as many local
24292 variables as main has allocated so far including compiler
24293 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24294 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24295 reuse the register of parent for one of the local variables,
24296 since it will think that parent can't possibly be used any more
24297 in this routine. Assigning to the local variable will thus
24298 munge parent in the parent process. */
24299 pid_t
24300 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24301 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24302 /* Convince the compiler that p..p7 are live; otherwise, it might
24303 use the same hardware register for all 8 local variables. */
24304 if (p != p1 || p != p2 || p != p3 || p != p4
24305 || p != p5 || p != p6 || p != p7)
24306 _exit(1);
24307
24308 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24309 from child file descriptors. If the child closes a descriptor
24310 before it execs or exits, this munges the parent's descriptor
24311 as well. Test for this by closing stdout in the child. */
24312 _exit(close(fileno(stdout)) != 0);
24313 } else {
24314 int status;
24315 struct stat st;
24316
24317 while (wait(&status) != child)
24318 ;
24319 return (
24320 /* Was there some problem with vforking? */
24321 child < 0
24322
24323 /* Did the child fail? (This shouldn't happen.) */
24324 || status
24325
24326 /* Did the vfork/compiler bug occur? */
24327 || parent != getpid()
24328
24329 /* Did the file descriptor bug occur? */
24330 || fstat(fileno(stdout), &st) != 0
24331 );
24332 }
24333}
24334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024335if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024336 ac_cv_func_vfork_works=yes
24337else
cristy8b350f62009-11-15 23:12:43 +000024338 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024339fi
cristy8b350f62009-11-15 23:12:43 +000024340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24341 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024342fi
24343
cristy3ed852e2009-09-05 21:47:34 +000024344fi
cristy8b350f62009-11-15 23:12:43 +000024345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo "$ac_cv_func_vfork_works" >&6; }
24347
24348fi;
24349if test "x$ac_cv_func_fork_works" = xcross; then
24350 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024351 { $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 +000024352$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24353fi
24354
24355if test "x$ac_cv_func_vfork_works" = xyes; then
24356
cristy8b350f62009-11-15 23:12:43 +000024357$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024358
24359else
24360
cristy8b350f62009-11-15 23:12:43 +000024361$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024362
24363fi
24364if test "x$ac_cv_func_fork_works" = xyes; then
24365
cristy8b350f62009-11-15 23:12:43 +000024366$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024367
24368fi
24369
cristy8b350f62009-11-15 23:12:43 +000024370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024371$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024372if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024373 $as_echo_n "(cached) " >&6
24374else
cristy8b350f62009-11-15 23:12:43 +000024375 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024376 ac_cv_func_memcmp_working=no
24377else
cristy8b350f62009-11-15 23:12:43 +000024378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024379/* end confdefs.h. */
24380$ac_includes_default
24381int
24382main ()
24383{
24384
24385 /* Some versions of memcmp are not 8-bit clean. */
24386 char c0 = '\100', c1 = '\200', c2 = '\201';
24387 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24388 return 1;
24389
24390 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24391 or more and with at least one buffer not starting on a 4-byte boundary.
24392 William Lewis provided this test program. */
24393 {
24394 char foo[21];
24395 char bar[21];
24396 int i;
24397 for (i = 0; i < 4; i++)
24398 {
24399 char *a = foo + i;
24400 char *b = bar + i;
24401 strcpy (a, "--------01111111");
24402 strcpy (b, "--------10000000");
24403 if (memcmp (a, b, 16) >= 0)
24404 return 1;
24405 }
24406 return 0;
24407 }
24408
24409 ;
24410 return 0;
24411}
24412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024413if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024414 ac_cv_func_memcmp_working=yes
24415else
cristy8b350f62009-11-15 23:12:43 +000024416 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024417fi
cristy8b350f62009-11-15 23:12:43 +000024418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24419 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024420fi
24421
cristy3ed852e2009-09-05 21:47:34 +000024422fi
cristy8b350f62009-11-15 23:12:43 +000024423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024424$as_echo "$ac_cv_func_memcmp_working" >&6; }
24425test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24426 *" memcmp.$ac_objext "* ) ;;
24427 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24428 ;;
24429esac
24430
24431
cristy3ed852e2009-09-05 21:47:34 +000024432for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024433do :
24434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24435ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024437 cat >>confdefs.h <<_ACEOF
24438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24439_ACEOF
24440
24441fi
24442
24443done
24444
cristy8b350f62009-11-15 23:12:43 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024447if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 $as_echo_n "(cached) " >&6
24449else
24450 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24451 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24452 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024454/* end confdefs.h. */
24455$ac_includes_default
24456#ifdef HAVE_SYS_SELECT_H
24457# include <sys/select.h>
24458#endif
24459#ifdef HAVE_SYS_SOCKET_H
24460# include <sys/socket.h>
24461#endif
24462
24463int
24464main ()
24465{
24466extern int select ($ac_arg1,
24467 $ac_arg234, $ac_arg234, $ac_arg234,
24468 $ac_arg5);
24469 ;
24470 return 0;
24471}
24472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024473if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024474 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024475fi
cristy3ed852e2009-09-05 21:47:34 +000024476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477 done
24478 done
24479done
24480# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024481: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024482
24483fi
cristy8b350f62009-11-15 23:12:43 +000024484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo "$ac_cv_func_select_args" >&6; }
24486ac_save_IFS=$IFS; IFS=','
24487set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24488IFS=$ac_save_IFS
24489shift
24490
24491cat >>confdefs.h <<_ACEOF
24492#define SELECT_TYPE_ARG1 $1
24493_ACEOF
24494
24495
24496cat >>confdefs.h <<_ACEOF
24497#define SELECT_TYPE_ARG234 ($2)
24498_ACEOF
24499
24500
24501cat >>confdefs.h <<_ACEOF
24502#define SELECT_TYPE_ARG5 ($3)
24503_ACEOF
24504
24505rm -f conftest*
24506
cristyda16f162011-02-19 23:52:17 +000024507if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024508 $as_echo_n "(cached) " >&6
24509else
24510 ac_cv_func_setvbuf_reversed=no
24511fi
24512
24513
cristy8b350f62009-11-15 23:12:43 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024516if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024517 $as_echo_n "(cached) " >&6
24518else
cristy8b350f62009-11-15 23:12:43 +000024519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024520/* end confdefs.h. */
24521#include <sys/types.h>
24522#include <signal.h>
24523
24524int
24525main ()
24526{
24527return *(signal (0, 0)) (0) == 1;
24528 ;
24529 return 0;
24530}
24531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024532if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 ac_cv_type_signal=int
24534else
cristy8b350f62009-11-15 23:12:43 +000024535 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024536fi
cristy3ed852e2009-09-05 21:47:34 +000024537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538fi
cristy8b350f62009-11-15 23:12:43 +000024539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024540$as_echo "$ac_cv_type_signal" >&6; }
24541
24542cat >>confdefs.h <<_ACEOF
24543#define RETSIGTYPE $ac_cv_type_signal
24544_ACEOF
24545
24546
cristy8b350f62009-11-15 23:12:43 +000024547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024549if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 $as_echo_n "(cached) " >&6
24551else
cristy8b350f62009-11-15 23:12:43 +000024552 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024553 ac_cv_func_strtod=no
24554else
cristy8b350f62009-11-15 23:12:43 +000024555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024556/* end confdefs.h. */
24557
24558$ac_includes_default
24559#ifndef strtod
24560double strtod ();
24561#endif
24562int
24563main()
24564{
24565 {
24566 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24567 char *string = " +69";
24568 char *term;
24569 double value;
24570 value = strtod (string, &term);
24571 if (value != 69 || term != (string + 4))
24572 return 1;
24573 }
24574
24575 {
24576 /* Under Solaris 2.4, strtod returns the wrong value for the
24577 terminating character under some conditions. */
24578 char *string = "NaN";
24579 char *term;
24580 strtod (string, &term);
24581 if (term != string && *(term - 1) == 0)
24582 return 1;
24583 }
24584 return 0;
24585}
24586
24587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024588if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024589 ac_cv_func_strtod=yes
24590else
cristy8b350f62009-11-15 23:12:43 +000024591 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024592fi
cristy8b350f62009-11-15 23:12:43 +000024593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24594 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024595fi
24596
cristy3ed852e2009-09-05 21:47:34 +000024597fi
cristy8b350f62009-11-15 23:12:43 +000024598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024599$as_echo "$ac_cv_func_strtod" >&6; }
24600if test $ac_cv_func_strtod = no; then
24601 case " $LIBOBJS " in
24602 *" strtod.$ac_objext "* ) ;;
24603 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24604 ;;
24605esac
24606
cristy8b350f62009-11-15 23:12:43 +000024607ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024608if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024609
cristy3ed852e2009-09-05 21:47:34 +000024610fi
24611
cristy3ed852e2009-09-05 21:47:34 +000024612if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024614$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024615if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024616 $as_echo_n "(cached) " >&6
24617else
24618 ac_check_lib_save_LIBS=$LIBS
24619LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024621/* end confdefs.h. */
24622
24623/* Override any GCC internal prototype to avoid an error.
24624 Use char because int might match the return type of a GCC
24625 builtin and then its argument prototype would still apply. */
24626#ifdef __cplusplus
24627extern "C"
24628#endif
24629char pow ();
24630int
24631main ()
24632{
24633return pow ();
24634 ;
24635 return 0;
24636}
24637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024639 ac_cv_lib_m_pow=yes
24640else
cristy8b350f62009-11-15 23:12:43 +000024641 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024642fi
cristy8b350f62009-11-15 23:12:43 +000024643rm -f core conftest.err conftest.$ac_objext \
24644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024645LIBS=$ac_check_lib_save_LIBS
24646fi
cristy8b350f62009-11-15 23:12:43 +000024647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024648$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024649if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024650 POW_LIB=-lm
24651else
cristy8b350f62009-11-15 23:12:43 +000024652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024653$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24654fi
24655
24656fi
24657
24658fi
24659
cristy3ed852e2009-09-05 21:47:34 +000024660for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024661do :
24662 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024663if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024664 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024665#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024666_ACEOF
24667
cristy8b350f62009-11-15 23:12:43 +000024668ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024669if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024670
cristy8b350f62009-11-15 23:12:43 +000024671$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024672
24673fi
24674
24675fi
24676done
24677
24678
24679
cristy161b9262010-03-20 19:34:32 +000024680#
24681# Find math library
24682#
24683MATH_LIBS=''
24684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24685$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024686if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024687 $as_echo_n "(cached) " >&6
24688else
24689 ac_check_lib_save_LIBS=$LIBS
24690LIBS="-lm $LIBS"
24691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24692/* end confdefs.h. */
24693
24694/* Override any GCC internal prototype to avoid an error.
24695 Use char because int might match the return type of a GCC
24696 builtin and then its argument prototype would still apply. */
24697#ifdef __cplusplus
24698extern "C"
24699#endif
24700char sqrt ();
24701int
24702main ()
24703{
24704return sqrt ();
24705 ;
24706 return 0;
24707}
24708_ACEOF
24709if ac_fn_c_try_link "$LINENO"; then :
24710 ac_cv_lib_m_sqrt=yes
24711else
24712 ac_cv_lib_m_sqrt=no
24713fi
24714rm -f core conftest.err conftest.$ac_objext \
24715 conftest$ac_exeext conftest.$ac_ext
24716LIBS=$ac_check_lib_save_LIBS
24717fi
24718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24719$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024720if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024721 MATH_LIBS="-lm"
24722fi
24723
24724LIBS="$MATH_LIBS $LIBS"
24725
24726
cristy5d0cd952011-05-19 21:21:41 +000024727for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000024728do :
24729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24730ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024731if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024732 cat >>confdefs.h <<_ACEOF
24733#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24734_ACEOF
24735
24736fi
24737done
24738
24739
cristye43a45e2009-09-28 14:49:00 +000024740#
24741# Check for clock_gettime().
24742#
cristy8b350f62009-11-15 23:12:43 +000024743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024744$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024745if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024746 $as_echo_n "(cached) " >&6
24747else
24748 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024750/* end confdefs.h. */
24751
24752/* Override any GCC internal prototype to avoid an error.
24753 Use char because int might match the return type of a GCC
24754 builtin and then its argument prototype would still apply. */
24755#ifdef __cplusplus
24756extern "C"
24757#endif
24758char clock_gettime ();
24759int
24760main ()
24761{
24762return clock_gettime ();
24763 ;
24764 return 0;
24765}
24766_ACEOF
24767for ac_lib in '' rt; do
24768 if test -z "$ac_lib"; then
24769 ac_res="none required"
24770 else
24771 ac_res=-l$ac_lib
24772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24773 fi
cristy8b350f62009-11-15 23:12:43 +000024774 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024775 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024776fi
cristy8b350f62009-11-15 23:12:43 +000024777rm -f core conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024779 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024780 break
24781fi
24782done
cristyda16f162011-02-19 23:52:17 +000024783if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024784
cristye43a45e2009-09-28 14:49:00 +000024785else
24786 ac_cv_search_clock_gettime=no
24787fi
24788rm conftest.$ac_ext
24789LIBS=$ac_func_search_save_LIBS
24790fi
cristy8b350f62009-11-15 23:12:43 +000024791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024792$as_echo "$ac_cv_search_clock_gettime" >&6; }
24793ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024794if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24796
24797
cristy8b350f62009-11-15 23:12:43 +000024798$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024799
cristy8b350f62009-11-15 23:12:43 +000024800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024801$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024803/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024804
24805 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024806int
24807main ()
24808{
24809clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024810 ;
24811 return 0;
24812}
24813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024814if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024815
cristy8b350f62009-11-15 23:12:43 +000024816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024817$as_echo "yes" >&6; }
24818
cristy8b350f62009-11-15 23:12:43 +000024819$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024820
24821
24822else
cristy8b350f62009-11-15 23:12:43 +000024823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024824$as_echo "no" >&6; }
24825
24826fi
cristye43a45e2009-09-28 14:49:00 +000024827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828
24829else
24830
cristy8b350f62009-11-15 23:12:43 +000024831 for ac_func in gettimeofday ftime
24832do :
24833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24834ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024835if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024836 cat >>confdefs.h <<_ACEOF
24837#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24838_ACEOF
24839 break
24840fi
24841done
24842
24843
24844
24845fi
24846
24847
cristy3ed852e2009-09-05 21:47:34 +000024848########
24849#
24850# Check for function prototypes
24851#
24852########
24853
cristy8b350f62009-11-15 23:12:43 +000024854ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024855#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024856"
cristyda16f162011-02-19 23:52:17 +000024857if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024858 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024859else
cristy8b350f62009-11-15 23:12:43 +000024860 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024861fi
24862
cristy3ed852e2009-09-05 21:47:34 +000024863cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024864#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024866ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024867#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024868"
cristyda16f162011-02-19 23:52:17 +000024869if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024870 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024871else
cristy8b350f62009-11-15 23:12:43 +000024872 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024873fi
24874
cristy3ed852e2009-09-05 21:47:34 +000024875cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024876#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024877_ACEOF
24878
24879
cristy8b350f62009-11-15 23:12:43 +000024880ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024881#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024882"
cristyda16f162011-02-19 23:52:17 +000024883if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024884 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024885else
cristy8b350f62009-11-15 23:12:43 +000024886 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024887fi
24888
cristy3ed852e2009-09-05 21:47:34 +000024889cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024890#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024891_ACEOF
24892
24893
cristy8b350f62009-11-15 23:12:43 +000024894ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024895#include <stdio.h>
24896#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024897"
cristyda16f162011-02-19 23:52:17 +000024898if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024899 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024900else
cristy8b350f62009-11-15 23:12:43 +000024901 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024902fi
24903
cristy3ed852e2009-09-05 21:47:34 +000024904cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024905#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024906_ACEOF
24907
24908
cristy3ed852e2009-09-05 21:47:34 +000024909########
24910#
24911# C++ Support Tests (For Magick++)
24912#
24913########
24914have_magick_plus_plus='no'
24915if test "$with_magick_plus_plus" = 'yes'; then
24916 OLIBS="$LIBS"
24917 LIBS=''
24918 ac_ext=cpp
24919ac_cpp='$CXXCPP $CPPFLAGS'
24920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24923
24924
24925 # Full set of headers used...
24926 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24927 # functional iomanip iosfwd iostream iterator list string strstream utility
24928 ac_ext=cpp
24929ac_cpp='$CXXCPP $CPPFLAGS'
24930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24933
24934 ac_ext=cpp
24935ac_cpp='$CXXCPP $CPPFLAGS'
24936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24939if test -z "$CXX"; then
24940 if test -n "$CCC"; then
24941 CXX=$CCC
24942 else
24943 if test -n "$ac_tool_prefix"; then
24944 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24945 do
24946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024950if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024951 $as_echo_n "(cached) " >&6
24952else
24953 if test -n "$CXX"; then
24954 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24955else
24956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24957for as_dir in $PATH
24958do
24959 IFS=$as_save_IFS
24960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24963 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024965 break 2
24966 fi
24967done
cristy8b350f62009-11-15 23:12:43 +000024968 done
cristy3ed852e2009-09-05 21:47:34 +000024969IFS=$as_save_IFS
24970
24971fi
24972fi
24973CXX=$ac_cv_prog_CXX
24974if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024976$as_echo "$CXX" >&6; }
24977else
cristy8b350f62009-11-15 23:12:43 +000024978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024979$as_echo "no" >&6; }
24980fi
24981
24982
24983 test -n "$CXX" && break
24984 done
24985fi
24986if test -z "$CXX"; then
24987 ac_ct_CXX=$CXX
24988 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24989do
24990 # Extract the first word of "$ac_prog", so it can be a program name with args.
24991set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024994if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 $as_echo_n "(cached) " >&6
24996else
24997 if test -n "$ac_ct_CXX"; then
24998 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24999else
25000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25001for as_dir in $PATH
25002do
25003 IFS=$as_save_IFS
25004 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25007 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025009 break 2
25010 fi
25011done
cristy8b350f62009-11-15 23:12:43 +000025012 done
cristy3ed852e2009-09-05 21:47:34 +000025013IFS=$as_save_IFS
25014
25015fi
25016fi
25017ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25018if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025020$as_echo "$ac_ct_CXX" >&6; }
25021else
cristy8b350f62009-11-15 23:12:43 +000025022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025023$as_echo "no" >&6; }
25024fi
25025
25026
25027 test -n "$ac_ct_CXX" && break
25028done
25029
25030 if test "x$ac_ct_CXX" = x; then
25031 CXX="g++"
25032 else
25033 case $cross_compiling:$ac_tool_warned in
25034yes:)
cristy8b350f62009-11-15 23:12:43 +000025035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25037ac_tool_warned=yes ;;
25038esac
25039 CXX=$ac_ct_CXX
25040 fi
25041fi
25042
25043 fi
25044fi
25045# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025047set X $ac_compile
25048ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025049for ac_option in --version -v -V -qversion; do
25050 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025051case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25054esac
cristy8b350f62009-11-15 23:12:43 +000025055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25056$as_echo "$ac_try_echo"; } >&5
25057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025058 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025059 if test -s conftest.err; then
25060 sed '10a\
25061... rest of stderr output deleted ...
25062 10q' conftest.err >conftest.er1
25063 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025064 fi
cristycd4c5312009-11-22 01:19:08 +000025065 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }
25068done
cristy3ed852e2009-09-05 21:47:34 +000025069
cristy8b350f62009-11-15 23:12:43 +000025070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025071$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025072if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025073 $as_echo_n "(cached) " >&6
25074else
cristy8b350f62009-11-15 23:12:43 +000025075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025076/* end confdefs.h. */
25077
25078int
25079main ()
25080{
25081#ifndef __GNUC__
25082 choke me
25083#endif
25084
25085 ;
25086 return 0;
25087}
25088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025089if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025090 ac_compiler_gnu=yes
25091else
cristy8b350f62009-11-15 23:12:43 +000025092 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025093fi
cristy3ed852e2009-09-05 21:47:34 +000025094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25096
25097fi
cristy8b350f62009-11-15 23:12:43 +000025098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025099$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25100if test $ac_compiler_gnu = yes; then
25101 GXX=yes
25102else
25103 GXX=
25104fi
25105ac_test_CXXFLAGS=${CXXFLAGS+set}
25106ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025108$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025109if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025110 $as_echo_n "(cached) " >&6
25111else
25112 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25113 ac_cxx_werror_flag=yes
25114 ac_cv_prog_cxx_g=no
25115 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117/* end confdefs.h. */
25118
25119int
25120main ()
25121{
25122
25123 ;
25124 return 0;
25125}
25126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025127if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025128 ac_cv_prog_cxx_g=yes
25129else
cristy8b350f62009-11-15 23:12:43 +000025130 CXXFLAGS=""
25131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025132/* end confdefs.h. */
25133
25134int
25135main ()
25136{
25137
25138 ;
25139 return 0;
25140}
25141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025142if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025143
cristy8b350f62009-11-15 23:12:43 +000025144else
25145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025146 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025148/* end confdefs.h. */
25149
25150int
25151main ()
25152{
25153
25154 ;
25155 return 0;
25156}
25157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025158if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025159 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025160fi
cristy3ed852e2009-09-05 21:47:34 +000025161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162fi
cristy3ed852e2009-09-05 21:47:34 +000025163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164fi
cristy3ed852e2009-09-05 21:47:34 +000025165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25166 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25167fi
cristy8b350f62009-11-15 23:12:43 +000025168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025169$as_echo "$ac_cv_prog_cxx_g" >&6; }
25170if test "$ac_test_CXXFLAGS" = set; then
25171 CXXFLAGS=$ac_save_CXXFLAGS
25172elif test $ac_cv_prog_cxx_g = yes; then
25173 if test "$GXX" = yes; then
25174 CXXFLAGS="-g -O2"
25175 else
25176 CXXFLAGS="-g"
25177 fi
25178else
25179 if test "$GXX" = yes; then
25180 CXXFLAGS="-O2"
25181 else
25182 CXXFLAGS=
25183 fi
25184fi
25185ac_ext=cpp
25186ac_cpp='$CXXCPP $CPPFLAGS'
25187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25190
cristy73bd4a52010-10-05 11:24:23 +000025191depcc="$CXX" am_compiler_list=
25192
25193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25194$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025195if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025196 $as_echo_n "(cached) " >&6
25197else
25198 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25199 # We make a subdir and do the tests there. Otherwise we can end up
25200 # making bogus files that we don't know about and never remove. For
25201 # instance it was reported that on HP-UX the gcc test will end up
25202 # making a dummy file named `D' -- because `-MD' means `put the output
25203 # in D'.
25204 mkdir conftest.dir
25205 # Copy depcomp to subdir because otherwise we won't find it if we're
25206 # using a relative directory.
25207 cp "$am_depcomp" conftest.dir
25208 cd conftest.dir
25209 # We will build objects and dependencies in a subdirectory because
25210 # it helps to detect inapplicable dependency modes. For instance
25211 # both Tru64's cc and ICC support -MD to output dependencies as a
25212 # side effect of compilation, but ICC will put the dependencies in
25213 # the current directory while Tru64 will put them in the object
25214 # directory.
25215 mkdir sub
25216
25217 am_cv_CXX_dependencies_compiler_type=none
25218 if test "$am_compiler_list" = ""; then
25219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25220 fi
25221 am__universal=false
25222 case " $depcc " in #(
25223 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25224 esac
25225
25226 for depmode in $am_compiler_list; do
25227 # Setup a source with many dependencies, because some compilers
25228 # like to wrap large dependency lists on column 80 (with \), and
25229 # we should not choose a depcomp mode which is confused by this.
25230 #
25231 # We need to recreate these files for each test, as the compiler may
25232 # overwrite some of them when testing with obscure command lines.
25233 # This happens at least with the AIX C compiler.
25234 : > sub/conftest.c
25235 for i in 1 2 3 4 5 6; do
25236 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25237 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25238 # Solaris 8's {/usr,}/bin/sh.
25239 touch sub/conftst$i.h
25240 done
25241 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25242
25243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25244 # mode. It turns out that the SunPro C++ compiler does not properly
25245 # handle `-M -o', and we need to detect this. Also, some Intel
25246 # versions had trouble with output in subdirs
25247 am__obj=sub/conftest.${OBJEXT-o}
25248 am__minus_obj="-o $am__obj"
25249 case $depmode in
25250 gcc)
25251 # This depmode causes a compiler race in universal mode.
25252 test "$am__universal" = false || continue
25253 ;;
25254 nosideeffect)
25255 # after this tag, mechanisms are not by side-effect, so they'll
25256 # only be used when explicitly requested
25257 if test "x$enable_dependency_tracking" = xyes; then
25258 continue
25259 else
25260 break
25261 fi
25262 ;;
25263 msvisualcpp | msvcmsys)
25264 # This compiler won't grok `-c -o', but also, the minuso test has
25265 # not run yet. These depmodes are late enough in the game, and
25266 # so weak that their functioning should not be impacted.
25267 am__obj=conftest.${OBJEXT-o}
25268 am__minus_obj=
25269 ;;
25270 none) break ;;
25271 esac
25272 if depmode=$depmode \
25273 source=sub/conftest.c object=$am__obj \
25274 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25275 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25276 >/dev/null 2>conftest.err &&
25277 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25278 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25279 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25280 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25281 # icc doesn't choke on unknown options, it will just issue warnings
25282 # or remarks (even with -Werror). So we grep stderr for any message
25283 # that says an option was ignored or not supported.
25284 # When given -MP, icc 7.0 and 7.1 complain thusly:
25285 # icc: Command line warning: ignoring option '-M'; no argument required
25286 # The diagnosis changed in icc 8.0:
25287 # icc: Command line remark: option '-MP' not supported
25288 if (grep 'ignoring option' conftest.err ||
25289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25290 am_cv_CXX_dependencies_compiler_type=$depmode
25291 break
25292 fi
25293 fi
25294 done
25295
25296 cd ..
25297 rm -rf conftest.dir
25298else
25299 am_cv_CXX_dependencies_compiler_type=none
25300fi
25301
25302fi
25303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25304$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25305CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25306
25307 if
25308 test "x$enable_dependency_tracking" != xno \
25309 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25310 am__fastdepCXX_TRUE=
25311 am__fastdepCXX_FALSE='#'
25312else
25313 am__fastdepCXX_TRUE='#'
25314 am__fastdepCXX_FALSE=
25315fi
25316
25317
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25319$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025320if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025321 $as_echo_n "(cached) " >&6
25322else
25323
25324 ac_ext=cpp
25325ac_cpp='$CXXCPP $CPPFLAGS'
25326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25329
25330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25331/* end confdefs.h. */
25332
25333int f(int x){return 1;}
25334int f(char x){return 1;}
25335int f(bool x){return 1;}
25336
25337int
25338main ()
25339{
25340bool b = true; return f(b);
25341 ;
25342 return 0;
25343}
25344_ACEOF
25345if ac_fn_cxx_try_compile "$LINENO"; then :
25346 ax_cv_cxx_bool=yes
25347else
25348 ax_cv_cxx_bool=no
25349fi
25350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351 ac_ext=cpp
25352ac_cpp='$CXXCPP $CPPFLAGS'
25353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25356
25357
25358fi
25359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25360$as_echo "$ax_cv_cxx_bool" >&6; }
25361if test "$ax_cv_cxx_bool" = yes; then
25362
25363$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25364
25365fi
25366
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25368$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025369if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025370 $as_echo_n "(cached) " >&6
25371else
25372
25373 ac_ext=cpp
25374ac_cpp='$CXXCPP $CPPFLAGS'
25375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25378
25379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380/* end confdefs.h. */
25381namespace Outer { namespace Inner { int i = 0; }}
25382int
25383main ()
25384{
25385using namespace Outer::Inner; return i;
25386 ;
25387 return 0;
25388}
25389_ACEOF
25390if ac_fn_cxx_try_compile "$LINENO"; then :
25391 ax_cv_cxx_namespaces=yes
25392else
25393 ax_cv_cxx_namespaces=no
25394fi
25395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396 ac_ext=cpp
25397ac_cpp='$CXXCPP $CPPFLAGS'
25398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25401
25402
25403fi
25404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25405$as_echo "$ax_cv_cxx_namespaces" >&6; }
25406if test "$ax_cv_cxx_namespaces" = yes; then
25407
25408$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25409
25410fi
25411
25412
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25414$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025415if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025416 $as_echo_n "(cached) " >&6
25417else
25418
25419 ac_ext=cpp
25420ac_cpp='$CXXCPP $CPPFLAGS'
25421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25424
25425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426/* end confdefs.h. */
25427#include <iostream>
25428 std::istream& is = std::cin;
25429int
25430main ()
25431{
25432
25433 ;
25434 return 0;
25435}
25436_ACEOF
25437if ac_fn_cxx_try_compile "$LINENO"; then :
25438 ax_cv_cxx_have_std_namespace=yes
25439else
25440 ax_cv_cxx_have_std_namespace=no
25441fi
25442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25443 ac_ext=cpp
25444ac_cpp='$CXXCPP $CPPFLAGS'
25445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25448
25449
25450fi
25451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25452$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25453 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25454
25455$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25456
25457 fi
25458
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25460$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025461if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025462 $as_echo_n "(cached) " >&6
25463else
25464
25465
25466 ac_ext=cpp
25467ac_cpp='$CXXCPP $CPPFLAGS'
25468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25471
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473/* end confdefs.h. */
25474#include <iostream>
25475#include <map>
25476#include <iomanip>
25477#include <cmath>
25478#ifdef HAVE_NAMESPACES
25479using namespace std;
25480#endif
25481int
25482main ()
25483{
25484return 0;
25485 ;
25486 return 0;
25487}
25488_ACEOF
25489if ac_fn_cxx_try_compile "$LINENO"; then :
25490 ac_cv_cxx_have_std_libs=yes
25491else
25492 ac_cv_cxx_have_std_libs=no
25493fi
25494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25495 ac_ext=cpp
25496ac_cpp='$CXXCPP $CPPFLAGS'
25497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25500
25501
25502fi
25503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25504$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25505if test "$ac_cv_cxx_have_std_libs" = yes; then
25506
25507$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25508
25509fi
25510
cristy3ed852e2009-09-05 21:47:34 +000025511
25512 OPENMP_CXXFLAGS=
25513 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025514if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025515 enableval=$enable_openmp;
25516fi
25517
25518 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25520$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025521if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025522 $as_echo_n "(cached) " >&6
25523else
cristy8b350f62009-11-15 23:12:43 +000025524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25525/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025526
25527#ifndef _OPENMP
25528 choke me
25529#endif
25530#include <omp.h>
25531int main () { return omp_get_num_threads (); }
25532
25533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025534if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025535 ac_cv_prog_cxx_openmp='none needed'
25536else
cristy8b350f62009-11-15 23:12:43 +000025537 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025538 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25539 ac_save_CXXFLAGS=$CXXFLAGS
25540 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025543
25544#ifndef _OPENMP
25545 choke me
25546#endif
25547#include <omp.h>
25548int main () { return omp_get_num_threads (); }
25549
25550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025551if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025552 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025553fi
cristy8b350f62009-11-15 23:12:43 +000025554rm -f core conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025556 CXXFLAGS=$ac_save_CXXFLAGS
25557 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25558 break
25559 fi
25560 done
25561fi
cristy8b350f62009-11-15 23:12:43 +000025562rm -f core conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025564fi
cristy8b350f62009-11-15 23:12:43 +000025565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025566$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25567 case $ac_cv_prog_cxx_openmp in #(
25568 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025569 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025570 *)
cristy8b350f62009-11-15 23:12:43 +000025571 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025572 esac
25573 fi
25574
25575
25576 ac_ext=c
25577ac_cpp='$CPP $CPPFLAGS'
25578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25580ac_compiler_gnu=$ac_cv_c_compiler_gnu
25581
25582
cristy8b350f62009-11-15 23:12:43 +000025583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025584$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25585 if \
cristy964cb7f2010-04-25 23:18:00 +000025586 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025587 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025588 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025589 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025590 have_magick_plus_plus='yes'
25591 else
25592 have_magick_plus_plus='no (failed tests)'
25593 fi
cristy8b350f62009-11-15 23:12:43 +000025594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000025595$as_echo "$have_magick_plus_plus" >&6; }
25596 LIBS="$OLIBS"
25597fi
cristy73bd4a52010-10-05 11:24:23 +000025598 if test "$have_magick_plus_plus" = 'yes'; then
25599 WITH_MAGICK_PLUS_PLUS_TRUE=
25600 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25601else
25602 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25603 WITH_MAGICK_PLUS_PLUS_FALSE=
25604fi
25605
cristy3ed852e2009-09-05 21:47:34 +000025606
25607# Only check for delegate libraries in subdirectories if requested.
25608if test "$enable_delegate_build" != 'no'; then
25609 # Check for delegate sub-directories and add -I & -L options as required.
25610 # This presumes that delegates are installed as detailed in the ImageMagick
25611 # README. If delegates are installed in a standard location where the
25612 # compiler will automatically find them then these options should not be
25613 # required.
25614
25615 #
25616 # Most delegates have includes in the same directory as the library, but not all...
25617 #
25618 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025619 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 +000025620 if test -d "$builddir/$dir"; then
25621 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25622 else
25623 if test -d "$srcdirfull/$dir"; then
25624 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25625 fi
25626 fi
25627 done
25628
25629 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025630 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 +000025631 if test -d "$builddir/$dir/.libs"; then
25632 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25633 else
25634 if test -d "$srcdirfull/$dir/.libs"; then
25635 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25636 fi
25637 fi
25638 if test -d "$builddir/$dir"; then
25639 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25640 else
25641 if test -d "$srcdirfull/$dir"; then
25642 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25643 fi
25644 fi
25645 done
25646fi
25647
25648# Assume that delegate headers reside under same directory as ImageMagick
25649# installation prefix.
25650MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25651
25652#
25653# Find the X11 RGB database
25654#
cristy8b350f62009-11-15 23:12:43 +000025655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025656$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025657if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025658 $as_echo_n "(cached) " >&6
25659else
25660 # Look for the header file in a standard set of common directories.
25661# Check X11 before X11Rn because it is often a symlink to the current release.
25662 for ac_dir in \
25663 /lib/usr/lib/X11 \
25664 /usr/X11/lib \
25665 /usr/X11R4/lib \
25666 /usr/X11R5/lib \
25667 /usr/X11R6/lib \
25668 /usr/X11R7/lib \
25669 /usr/X386/lib \
25670 /usr/XFree86/lib/X11 \
25671 /usr/athena/lib \
25672 /usr/lib \
25673 /usr/lib/X11 \
25674 /usr/lib/X11R4 \
25675 /usr/lib/X11R5 \
25676 /usr/lib/X11R6 \
25677 /usr/lib/X11R7 \
25678 /usr/local/X11/lib \
25679 /usr/local/X11R4/lib \
25680 /usr/local/X11R5/lib \
25681 /usr/local/X11R6/lib \
25682 /usr/local/lib \
25683 /usr/local/lib/X11 \
25684 /usr/local/lib/X11R4 \
25685 /usr/local/lib/X11R5 \
25686 /usr/local/lib/X11R6 \
25687 /usr/local/lib/X11R7 \
25688 /usr/local/x11r5/lib \
25689 /usr/lpp/Xamples/lib \
25690 /usr/openwin/lib \
25691 /usr/openwin/share/lib \
25692 /usr/unsupported/lib \
25693 /usr/x386/lib \
25694 ; do
25695 if test -f "$ac_dir/X11/rgb.txt"; then
25696 im_cv_x_configure="$ac_dir/X11/"
25697 break
25698 elif test -f "$ac_dir/rgb.txt"; then
25699 im_cv_x_configure="$ac_dir/"
25700 break
25701 fi
25702
25703 done
25704fi
cristy8b350f62009-11-15 23:12:43 +000025705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025706$as_echo "$im_cv_x_configure" >&6; }
25707X11_CONFIGURE_PATH="$im_cv_x_configure"
25708case "${build_os}" in
25709 mingw* )
25710 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25711 ;;
25712esac
25713
25714cat >>confdefs.h <<_ACEOF
25715#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25716_ACEOF
25717
25718
25719#
25720# Find OpenMP library
25721#
25722GOMP_LIBS=''
25723if test "$enable_openmp" != 'no'; then
25724 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025726$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025727if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 $as_echo_n "(cached) " >&6
25729else
25730 ac_check_lib_save_LIBS=$LIBS
25731LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025733/* end confdefs.h. */
25734
25735/* Override any GCC internal prototype to avoid an error.
25736 Use char because int might match the return type of a GCC
25737 builtin and then its argument prototype would still apply. */
25738#ifdef __cplusplus
25739extern "C"
25740#endif
25741char GOMP_parallel_start ();
25742int
25743main ()
25744{
25745return GOMP_parallel_start ();
25746 ;
25747 return 0;
25748}
25749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025750if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025751 ac_cv_lib_gomp_GOMP_parallel_start=yes
25752else
cristy8b350f62009-11-15 23:12:43 +000025753 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025754fi
cristy8b350f62009-11-15 23:12:43 +000025755rm -f core conftest.err conftest.$ac_objext \
25756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025757LIBS=$ac_check_lib_save_LIBS
25758fi
cristy8b350f62009-11-15 23:12:43 +000025759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025760$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025761if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025762 GOMP_LIBS="-lgomp"
25763fi
25764 # gcc
25765 else
cristy8b350f62009-11-15 23:12:43 +000025766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025767$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025768if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025769 $as_echo_n "(cached) " >&6
25770else
25771 ac_check_lib_save_LIBS=$LIBS
25772LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025774/* end confdefs.h. */
25775
25776/* Override any GCC internal prototype to avoid an error.
25777 Use char because int might match the return type of a GCC
25778 builtin and then its argument prototype would still apply. */
25779#ifdef __cplusplus
25780extern "C"
25781#endif
25782char sunw_mp_register_warn ();
25783int
25784main ()
25785{
25786return sunw_mp_register_warn ();
25787 ;
25788 return 0;
25789}
25790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025791if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025792 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25793else
cristy8b350f62009-11-15 23:12:43 +000025794 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025795fi
cristy8b350f62009-11-15 23:12:43 +000025796rm -f core conftest.err conftest.$ac_objext \
25797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025798LIBS=$ac_check_lib_save_LIBS
25799fi
cristy8b350f62009-11-15 23:12:43 +000025800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025801$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025802if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025803 GOMP_LIBS="-lmtsk"
25804fi
25805 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025807$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025808if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025809 $as_echo_n "(cached) " >&6
25810else
25811 ac_check_lib_save_LIBS=$LIBS
25812LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025814/* end confdefs.h. */
25815
25816/* Override any GCC internal prototype to avoid an error.
25817 Use char because int might match the return type of a GCC
25818 builtin and then its argument prototype would still apply. */
25819#ifdef __cplusplus
25820extern "C"
25821#endif
25822char _xlsmpFlush ();
25823int
25824main ()
25825{
25826return _xlsmpFlush ();
25827 ;
25828 return 0;
25829}
25830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025832 ac_cv_lib_xlsmp__xlsmpFlush=yes
25833else
cristy8b350f62009-11-15 23:12:43 +000025834 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025835fi
cristy8b350f62009-11-15 23:12:43 +000025836rm -f core conftest.err conftest.$ac_objext \
25837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025838LIBS=$ac_check_lib_save_LIBS
25839fi
cristy8b350f62009-11-15 23:12:43 +000025840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025841$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025842if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025843 GOMP_LIBS="-lxlsmp"
25844fi
25845 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025847$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025848if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025849 $as_echo_n "(cached) " >&6
25850else
25851 ac_check_lib_save_LIBS=$LIBS
25852LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025854/* end confdefs.h. */
25855
25856/* Override any GCC internal prototype to avoid an error.
25857 Use char because int might match the return type of a GCC
25858 builtin and then its argument prototype would still apply. */
25859#ifdef __cplusplus
25860extern "C"
25861#endif
25862char mp_destroy ();
25863int
25864main ()
25865{
25866return mp_destroy ();
25867 ;
25868 return 0;
25869}
25870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025872 ac_cv_lib_mp_mp_destroy=yes
25873else
cristy8b350f62009-11-15 23:12:43 +000025874 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025875fi
cristy8b350f62009-11-15 23:12:43 +000025876rm -f core conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025878LIBS=$ac_check_lib_save_LIBS
25879fi
cristy8b350f62009-11-15 23:12:43 +000025880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025881$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025882if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025883 GOMP_LIBS="-lmp"
25884fi
25885 # SGI IRIX 6.5 MIPSpro C/C++
25886 fi
25887 LIBS="$GOMP_LIBS $LIBS"
25888fi
25889
25890
25891#
25892# Find Posix threads library
25893#
25894THREAD_LIBS=''
25895if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25896
25897 if test "x$PTHREAD_LIBS" = "x"; then
25898 case "${host_cpu}-${host_os}" in
25899 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025900
25901
25902
25903ac_ext=c
25904ac_cpp='$CPP $CPPFLAGS'
25905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25907ac_compiler_gnu=$ac_cv_c_compiler_gnu
25908
25909magick_pthread_lib_ok=no
25910
25911LIB=-lc_r
25912save_LIBS="$LIBS"
25913LIBS="$LIBS $LIB"
25914
25915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25916$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25918/* end confdefs.h. */
25919#include <pthread.h>
25920int
25921main ()
25922{
25923 pthread_t th;
25924 pthread_join(th, 0);
25925 pthread_attr_init(0);
25926 pthread_cleanup_push(0, 0);
25927 pthread_create(0,0,0,0);
25928 pthread_cleanup_pop(0);
25929 ;
25930 return 0;
25931}
25932_ACEOF
25933if ac_fn_c_try_link "$LINENO"; then :
25934 magick_pthread_lib_ok=yes
25935fi
25936rm -f core conftest.err conftest.$ac_objext \
25937 conftest$ac_exeext conftest.$ac_ext
25938
25939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25940$as_echo "${magick_pthread_lib_ok}" >&6; }
25941if test "$magick_pthread_lib_ok" = yes
25942then
25943 PTHREAD_LIBS=-lc_r
25944 :
25945else
25946
25947 :
25948fi
25949
25950LIBS="$save_LIBS"
25951
25952ac_ext=c
25953ac_cpp='$CPP $CPPFLAGS'
25954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25956ac_compiler_gnu=$ac_cv_c_compiler_gnu
25957
25958 ;;
cristy3ed852e2009-09-05 21:47:34 +000025959 esac
25960 fi
25961
25962 for lib in pthread pthreads; do
25963 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025964
25965
25966
25967ac_ext=c
25968ac_cpp='$CPP $CPPFLAGS'
25969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25971ac_compiler_gnu=$ac_cv_c_compiler_gnu
25972
25973magick_pthread_lib_ok=no
25974
25975LIB=-l$lib
25976save_LIBS="$LIBS"
25977LIBS="$LIBS $LIB"
25978
25979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25980$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982/* end confdefs.h. */
25983#include <pthread.h>
25984int
25985main ()
25986{
25987 pthread_t th;
25988 pthread_join(th, 0);
25989 pthread_attr_init(0);
25990 pthread_cleanup_push(0, 0);
25991 pthread_create(0,0,0,0);
25992 pthread_cleanup_pop(0);
25993 ;
25994 return 0;
25995}
25996_ACEOF
25997if ac_fn_c_try_link "$LINENO"; then :
25998 magick_pthread_lib_ok=yes
25999fi
26000rm -f core conftest.err conftest.$ac_objext \
26001 conftest$ac_exeext conftest.$ac_ext
26002
26003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26004$as_echo "${magick_pthread_lib_ok}" >&6; }
26005if test "$magick_pthread_lib_ok" = yes
26006then
26007 PTHREAD_LIBS=-l$lib
26008 :
26009else
26010
26011 :
26012fi
26013
26014LIBS="$save_LIBS"
26015
26016ac_ext=c
26017ac_cpp='$CPP $CPPFLAGS'
26018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020ac_compiler_gnu=$ac_cv_c_compiler_gnu
26021
26022
cristy3ed852e2009-09-05 21:47:34 +000026023 fi
26024 done
26025
26026 THREAD_LIBS="$PTHREAD_LIBS"
26027 LIBS="$LIBS $THREAD_LIBS"
26028fi
26029
26030
26031#
26032# Check for umem.
26033#
26034have_umem='no'
26035UMEM_LIBS=''
26036if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026040$as_echo "" >&6; }
26041 failed=0
26042 passed=0
cristy8b350f62009-11-15 23:12:43 +000026043 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026044if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026045 passed=`expr $passed + 1`
26046else
26047 failed=`expr $failed + 1`
26048fi
26049
26050
cristy8b350f62009-11-15 23:12:43 +000026051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026052$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026053if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026054 $as_echo_n "(cached) " >&6
26055else
26056 ac_check_lib_save_LIBS=$LIBS
26057LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026059/* end confdefs.h. */
26060
26061/* Override any GCC internal prototype to avoid an error.
26062 Use char because int might match the return type of a GCC
26063 builtin and then its argument prototype would still apply. */
26064#ifdef __cplusplus
26065extern "C"
26066#endif
26067char umem_alloc ();
26068int
26069main ()
26070{
26071return umem_alloc ();
26072 ;
26073 return 0;
26074}
26075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026076if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026077 ac_cv_lib_umem_umem_alloc=yes
26078else
cristy8b350f62009-11-15 23:12:43 +000026079 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026080fi
cristy8b350f62009-11-15 23:12:43 +000026081rm -f core conftest.err conftest.$ac_objext \
26082 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026083LIBS=$ac_check_lib_save_LIBS
26084fi
cristy8b350f62009-11-15 23:12:43 +000026085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026086$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026087if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026088 passed=`expr $passed + 1`
26089else
26090 failed=`expr $failed + 1`
26091fi
26092
cristy8b350f62009-11-15 23:12:43 +000026093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026094$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026095if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026096 $as_echo_n "(cached) " >&6
26097else
26098 ac_check_lib_save_LIBS=$LIBS
26099LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026101/* end confdefs.h. */
26102
26103/* Override any GCC internal prototype to avoid an error.
26104 Use char because int might match the return type of a GCC
26105 builtin and then its argument prototype would still apply. */
26106#ifdef __cplusplus
26107extern "C"
26108#endif
26109char umem_free ();
26110int
26111main ()
26112{
26113return umem_free ();
26114 ;
26115 return 0;
26116}
26117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026118if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026119 ac_cv_lib_umem_umem_free=yes
26120else
cristy8b350f62009-11-15 23:12:43 +000026121 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026122fi
cristy8b350f62009-11-15 23:12:43 +000026123rm -f core conftest.err conftest.$ac_objext \
26124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026125LIBS=$ac_check_lib_save_LIBS
26126fi
cristy8b350f62009-11-15 23:12:43 +000026127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026128$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026129if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026130 passed=`expr $passed + 1`
26131else
26132 failed=`expr $failed + 1`
26133fi
26134
cristy8b350f62009-11-15 23:12:43 +000026135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026136$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26137 if test $passed -gt 0; then
26138 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo "no -- some components failed test" >&6; }
26141 have_umem='no (failed tests)'
26142 else
26143 UMEM_LIBS='-lumem'
26144 LIBS="$UMEM_LIBS $LIBS"
26145
cristy8b350f62009-11-15 23:12:43 +000026146$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026147
cristy8b350f62009-11-15 23:12:43 +000026148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026149$as_echo "yes" >&6; }
26150 have_umem='yes'
26151 fi
26152 else
cristy8b350f62009-11-15 23:12:43 +000026153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026154$as_echo "no" >&6; }
26155 fi
26156fi
cristy73bd4a52010-10-05 11:24:23 +000026157 if test "$have_umem" = 'yes'; then
26158 HasUMEM_TRUE=
26159 HasUMEM_FALSE='#'
26160else
26161 HasUMEM_TRUE='#'
26162 HasUMEM_FALSE=
26163fi
26164
cristy3ed852e2009-09-05 21:47:34 +000026165
26166
26167#
26168# Add support for ccmalloc memory debugging library if requested
26169#
26170have_ccmalloc='no'
26171CCMALLOC_LIBS=''
26172if test "$enable_ccmalloc" = 'yes'; then
26173 # Extract the first word of "ccmalloc", so it can be a program name with args.
26174set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026176$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026177if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026178 $as_echo_n "(cached) " >&6
26179else
26180 case $CCMALLOCDelegate in
26181 [\\/]* | ?:[\\/]*)
26182 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26183 ;;
26184 *)
26185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26186for as_dir in $PATH
26187do
26188 IFS=$as_save_IFS
26189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26192 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194 break 2
26195 fi
26196done
cristy8b350f62009-11-15 23:12:43 +000026197 done
cristy3ed852e2009-09-05 21:47:34 +000026198IFS=$as_save_IFS
26199
26200 ;;
26201esac
26202fi
26203CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26204if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo "$CCMALLOCDelegate" >&6; }
26207else
cristy8b350f62009-11-15 23:12:43 +000026208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026209$as_echo "no" >&6; }
26210fi
26211
26212
26213 if test -n "$CCMALLOCDelegate"; then
26214 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26215 OLIBS="$LIBS"
26216 # Assume that gcc is used with ccmalloc.
26217 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026219$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026220if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026221 $as_echo_n "(cached) " >&6
26222else
26223 ac_check_lib_save_LIBS=$LIBS
26224LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026226/* end confdefs.h. */
26227
26228/* Override any GCC internal prototype to avoid an error.
26229 Use char because int might match the return type of a GCC
26230 builtin and then its argument prototype would still apply. */
26231#ifdef __cplusplus
26232extern "C"
26233#endif
26234char ccmalloc_malloc ();
26235int
26236main ()
26237{
26238return ccmalloc_malloc ();
26239 ;
26240 return 0;
26241}
26242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026244 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26245else
cristy8b350f62009-11-15 23:12:43 +000026246 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026247fi
cristy8b350f62009-11-15 23:12:43 +000026248rm -f core conftest.err conftest.$ac_objext \
26249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026250LIBS=$ac_check_lib_save_LIBS
26251fi
cristy8b350f62009-11-15 23:12:43 +000026252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026253$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026254if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026255 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26256fi
26257
26258 if test -n "$CCMALLOC_LIBS"; then
26259 LIBS="$OLIBS"
26260 LIBS="$LIBS $CCMALLOC_LIBS"
26261 have_ccmalloc='yes'
26262 else
26263 LIBS="$OLIBS"
26264 fi
26265 fi
26266fi
26267
26268#
26269# Add support for efence memory debugging library if requested
26270#
26271if test "$enable_efence" = 'yes'; then
26272 EFENCE_LIBS='-lefence'
26273 LIBS="$EFENCE_LIBS $LIBS"
26274fi
26275
cristy3ed852e2009-09-05 21:47:34 +000026276
26277#
26278# Check for BZLIB
26279#
26280
26281
26282# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026283if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026284 withval=$with_bzlib; with_bzlib=$withval
26285else
26286 with_bzlib='yes'
26287fi
26288
26289
26290if test "$with_bzlib" != 'yes'; then
26291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26292fi
26293
26294have_bzlib='no'
26295if test "$with_bzlib" != 'no'; then
26296 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026298$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026302$as_echo "" >&6; }
26303 failed=0
26304 passed=0
26305 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026306 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026307if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026308 passed=`expr $passed + 1`
26309else
26310 failed=`expr $failed + 1`
26311fi
26312
26313
cristy8b350f62009-11-15 23:12:43 +000026314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026315$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026316if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026317 $as_echo_n "(cached) " >&6
26318else
26319 ac_check_lib_save_LIBS=$LIBS
26320LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026322/* end confdefs.h. */
26323
26324/* Override any GCC internal prototype to avoid an error.
26325 Use char because int might match the return type of a GCC
26326 builtin and then its argument prototype would still apply. */
26327#ifdef __cplusplus
26328extern "C"
26329#endif
26330char BZ2_bzDecompress ();
26331int
26332main ()
26333{
26334return BZ2_bzDecompress ();
26335 ;
26336 return 0;
26337}
26338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026340 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26341else
cristy8b350f62009-11-15 23:12:43 +000026342 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026343fi
cristy8b350f62009-11-15 23:12:43 +000026344rm -f core conftest.err conftest.$ac_objext \
26345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026346LIBS=$ac_check_lib_save_LIBS
26347fi
cristy8b350f62009-11-15 23:12:43 +000026348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026349$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026350if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026351 found_libbz=`expr $found_libbz + 1`
26352fi
26353
26354 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026357if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 $as_echo_n "(cached) " >&6
26359else
26360 ac_check_lib_save_LIBS=$LIBS
26361LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026363/* end confdefs.h. */
26364
26365/* Override any GCC internal prototype to avoid an error.
26366 Use char because int might match the return type of a GCC
26367 builtin and then its argument prototype would still apply. */
26368#ifdef __cplusplus
26369extern "C"
26370#endif
26371char _imp__BZ2_decompress ();
26372int
26373main ()
26374{
26375return _imp__BZ2_decompress ();
26376 ;
26377 return 0;
26378}
26379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26382else
cristy8b350f62009-11-15 23:12:43 +000026383 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026384fi
cristy8b350f62009-11-15 23:12:43 +000026385rm -f core conftest.err conftest.$ac_objext \
26386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026387LIBS=$ac_check_lib_save_LIBS
26388fi
cristy8b350f62009-11-15 23:12:43 +000026389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026390$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026391if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 found_libbz=`expr $found_libbz + 1`
26393fi
26394
26395 fi
26396 if test $found_libbz -gt 0; then
26397 passed=`expr $passed + 1`
26398 else
26399 failed=`expr $failed + 1`
26400 fi
cristy8b350f62009-11-15 23:12:43 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026402$as_echo_n "checking if BZLIB package is complete... " >&6; }
26403 if test $passed -gt 0; then
26404 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026406$as_echo "no -- some components failed test" >&6; }
26407 have_bzlib='no (failed tests)'
26408 else
26409 BZLIB_LIBS='-lbz2'
26410 LIBS="$BZLIB_LIBS $LIBS"
26411
cristy8b350f62009-11-15 23:12:43 +000026412$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026413
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo "yes" >&6; }
26416 have_bzlib='yes'
26417 fi
26418 else
cristy8b350f62009-11-15 23:12:43 +000026419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026420$as_echo "no" >&6; }
26421 fi
26422fi
cristy73bd4a52010-10-05 11:24:23 +000026423 if test "$have_bzlib" = 'yes'; then
26424 BZLIB_DELEGATE_TRUE=
26425 BZLIB_DELEGATE_FALSE='#'
26426else
26427 BZLIB_DELEGATE_TRUE='#'
26428 BZLIB_DELEGATE_FALSE=
26429fi
26430
cristy3ed852e2009-09-05 21:47:34 +000026431
26432
26433#
26434# Find the X11 include and library directories.
26435#
26436IPC_LIBS=''
26437X11_LIBS=''
26438XEXT_LIBS=''
26439XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026441$as_echo_n "checking for X... " >&6; }
26442
26443
26444# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026445if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026446 withval=$with_x;
26447fi
26448
26449# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26450if test "x$with_x" = xno; then
26451 # The user explicitly disabled X.
26452 have_x=disabled
26453else
26454 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026455 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026456 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026457 $as_echo_n "(cached) " >&6
26458else
26459 # One or both of the vars are not set, and there is no cached value.
26460ac_x_includes=no ac_x_libraries=no
26461rm -f -r conftest.dir
26462if mkdir conftest.dir; then
26463 cd conftest.dir
26464 cat >Imakefile <<'_ACEOF'
26465incroot:
26466 @echo incroot='${INCROOT}'
26467usrlibdir:
26468 @echo usrlibdir='${USRLIBDIR}'
26469libdir:
26470 @echo libdir='${LIBDIR}'
26471_ACEOF
26472 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026473 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026474 for ac_var in incroot usrlibdir libdir; do
26475 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26476 done
26477 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26478 for ac_extension in a so sl dylib la dll; do
26479 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26480 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26481 ac_im_usrlibdir=$ac_im_libdir; break
26482 fi
26483 done
26484 # Screen out bogus values from the imake configuration. They are
26485 # bogus both because they are the default anyway, and because
26486 # using them would break gcc on systems where it needs fixed includes.
26487 case $ac_im_incroot in
26488 /usr/include) ac_x_includes= ;;
26489 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26490 esac
26491 case $ac_im_usrlibdir in
26492 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26493 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26494 esac
26495 fi
26496 cd ..
26497 rm -f -r conftest.dir
26498fi
26499
26500# Standard set of common directories for X headers.
26501# Check X11 before X11Rn because it is often a symlink to the current release.
26502ac_x_header_dirs='
26503/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026504/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026505/usr/X11R6/include
26506/usr/X11R5/include
26507/usr/X11R4/include
26508
26509/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026510/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026511/usr/include/X11R6
26512/usr/include/X11R5
26513/usr/include/X11R4
26514
26515/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026516/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026517/usr/local/X11R6/include
26518/usr/local/X11R5/include
26519/usr/local/X11R4/include
26520
26521/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026522/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026523/usr/local/include/X11R6
26524/usr/local/include/X11R5
26525/usr/local/include/X11R4
26526
26527/usr/X386/include
26528/usr/x386/include
26529/usr/XFree86/include/X11
26530
26531/usr/include
26532/usr/local/include
26533/usr/unsupported/include
26534/usr/athena/include
26535/usr/local/x11r5/include
26536/usr/lpp/Xamples/include
26537
26538/usr/openwin/include
26539/usr/openwin/share/include'
26540
26541if test "$ac_x_includes" = no; then
26542 # Guess where to find include files, by looking for Xlib.h.
26543 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026545/* end confdefs.h. */
26546#include <X11/Xlib.h>
26547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026548if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026549 # We can compile using X headers with no special include directory.
26550ac_x_includes=
26551else
cristyc7083c12009-10-14 03:16:55 +000026552 for ac_dir in $ac_x_header_dirs; do
26553 if test -r "$ac_dir/X11/Xlib.h"; then
26554 ac_x_includes=$ac_dir
26555 break
26556 fi
26557done
26558fi
cristyda16f162011-02-19 23:52:17 +000026559rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026560fi # $ac_x_includes = no
26561
26562if test "$ac_x_libraries" = no; then
26563 # Check for the libraries.
26564 # See if we find them without any special options.
26565 # Don't add to $LIBS permanently.
26566 ac_save_LIBS=$LIBS
26567 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026569/* end confdefs.h. */
26570#include <X11/Xlib.h>
26571int
26572main ()
26573{
26574XrmInitialize ()
26575 ;
26576 return 0;
26577}
26578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026579if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026580 LIBS=$ac_save_LIBS
26581# We can link X programs with no special library path.
26582ac_x_libraries=
26583else
cristy8b350f62009-11-15 23:12:43 +000026584 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026585for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26586do
26587 # Don't even attempt the hair of trying to link an X program!
26588 for ac_extension in a so sl dylib la dll; do
26589 if test -r "$ac_dir/libX11.$ac_extension"; then
26590 ac_x_libraries=$ac_dir
26591 break 2
26592 fi
26593 done
26594done
26595fi
cristy8b350f62009-11-15 23:12:43 +000026596rm -f core conftest.err conftest.$ac_objext \
26597 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026598fi # $ac_x_libraries = no
26599
26600case $ac_x_includes,$ac_x_libraries in #(
26601 no,* | *,no | *\'*)
26602 # Didn't find X, or a directory has "'" in its name.
26603 ac_cv_have_x="have_x=no";; #(
26604 *)
26605 # Record where we found X for the cache.
26606 ac_cv_have_x="have_x=yes\
26607 ac_x_includes='$ac_x_includes'\
26608 ac_x_libraries='$ac_x_libraries'"
26609esac
26610fi
26611;; #(
26612 *) have_x=yes;;
26613 esac
26614 eval "$ac_cv_have_x"
26615fi # $with_x != no
26616
26617if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026619$as_echo "$have_x" >&6; }
26620 no_x=yes
26621else
26622 # If each of the values was on the command line, it overrides each guess.
26623 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26624 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26625 # Update the cache value to reflect the command line values.
26626 ac_cv_have_x="have_x=yes\
26627 ac_x_includes='$x_includes'\
26628 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026630$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26631fi
26632
cristy3ed852e2009-09-05 21:47:34 +000026633if test "$no_x" = yes; then
26634 # Not all programs may use this symbol, but it does not hurt to define it.
26635
cristy8b350f62009-11-15 23:12:43 +000026636$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026637
26638 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26639else
26640 if test -n "$x_includes"; then
26641 X_CFLAGS="$X_CFLAGS -I$x_includes"
26642 fi
26643
26644 # It would also be nice to do this for all -L options, not just this one.
26645 if test -n "$x_libraries"; then
26646 X_LIBS="$X_LIBS -L$x_libraries"
26647 # For Solaris; some versions of Sun CC require a space after -R and
26648 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026650$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26651 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26652 ac_xsave_c_werror_flag=$ac_c_werror_flag
26653 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026655/* end confdefs.h. */
26656
26657int
26658main ()
26659{
26660
26661 ;
26662 return 0;
26663}
26664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026665if ac_fn_c_try_link "$LINENO"; then :
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "no" >&6; }
26668 X_LIBS="$X_LIBS -R$x_libraries"
26669else
cristy8b350f62009-11-15 23:12:43 +000026670 LIBS="$ac_xsave_LIBS -R $x_libraries"
26671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026672/* end confdefs.h. */
26673
26674int
26675main ()
26676{
26677
26678 ;
26679 return 0;
26680}
26681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026682if ac_fn_c_try_link "$LINENO"; then :
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026684$as_echo "yes" >&6; }
26685 X_LIBS="$X_LIBS -R $x_libraries"
26686else
cristy8b350f62009-11-15 23:12:43 +000026687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026688$as_echo "neither works" >&6; }
26689fi
cristy8b350f62009-11-15 23:12:43 +000026690rm -f core conftest.err conftest.$ac_objext \
26691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026692fi
cristy8b350f62009-11-15 23:12:43 +000026693rm -f core conftest.err conftest.$ac_objext \
26694 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026695 ac_c_werror_flag=$ac_xsave_c_werror_flag
26696 LIBS=$ac_xsave_LIBS
26697 fi
26698
26699 # Check for system-dependent libraries X programs must link with.
26700 # Do this before checking for the system-independent R6 libraries
26701 # (-lICE), since we may need -lsocket or whatever for X linking.
26702
26703 if test "$ISC" = yes; then
26704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26705 else
26706 # Martyn Johnson says this is needed for Ultrix, if the X
26707 # libraries were built with DECnet support. And Karl Berry says
26708 # the Alpha needs dnet_stub (dnet does not exist).
26709 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026711/* end confdefs.h. */
26712
26713/* Override any GCC internal prototype to avoid an error.
26714 Use char because int might match the return type of a GCC
26715 builtin and then its argument prototype would still apply. */
26716#ifdef __cplusplus
26717extern "C"
26718#endif
26719char XOpenDisplay ();
26720int
26721main ()
26722{
26723return XOpenDisplay ();
26724 ;
26725 return 0;
26726}
26727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026729
cristy8b350f62009-11-15 23:12:43 +000026730else
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026733if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026734 $as_echo_n "(cached) " >&6
26735else
26736 ac_check_lib_save_LIBS=$LIBS
26737LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026739/* end confdefs.h. */
26740
26741/* Override any GCC internal prototype to avoid an error.
26742 Use char because int might match the return type of a GCC
26743 builtin and then its argument prototype would still apply. */
26744#ifdef __cplusplus
26745extern "C"
26746#endif
26747char dnet_ntoa ();
26748int
26749main ()
26750{
26751return dnet_ntoa ();
26752 ;
26753 return 0;
26754}
26755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 ac_cv_lib_dnet_dnet_ntoa=yes
26758else
cristy8b350f62009-11-15 23:12:43 +000026759 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026760fi
cristy8b350f62009-11-15 23:12:43 +000026761rm -f core conftest.err conftest.$ac_objext \
26762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026763LIBS=$ac_check_lib_save_LIBS
26764fi
cristy8b350f62009-11-15 23:12:43 +000026765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026766$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026767if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026768 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26769fi
26770
26771 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026774if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026775 $as_echo_n "(cached) " >&6
26776else
26777 ac_check_lib_save_LIBS=$LIBS
26778LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026780/* end confdefs.h. */
26781
26782/* Override any GCC internal prototype to avoid an error.
26783 Use char because int might match the return type of a GCC
26784 builtin and then its argument prototype would still apply. */
26785#ifdef __cplusplus
26786extern "C"
26787#endif
26788char dnet_ntoa ();
26789int
26790main ()
26791{
26792return dnet_ntoa ();
26793 ;
26794 return 0;
26795}
26796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026798 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26799else
cristy8b350f62009-11-15 23:12:43 +000026800 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026801fi
cristy8b350f62009-11-15 23:12:43 +000026802rm -f core conftest.err conftest.$ac_objext \
26803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026804LIBS=$ac_check_lib_save_LIBS
26805fi
cristy8b350f62009-11-15 23:12:43 +000026806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026808if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26810fi
26811
26812 fi
26813fi
cristy8b350f62009-11-15 23:12:43 +000026814rm -f core conftest.err conftest.$ac_objext \
26815 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026816 LIBS="$ac_xsave_LIBS"
26817
26818 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26819 # to get the SysV transport functions.
26820 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26821 # needs -lnsl.
26822 # The nsl library prevents programs from opening the X display
26823 # on Irix 5.2, according to T.E. Dickey.
26824 # The functions gethostbyname, getservbyname, and inet_addr are
26825 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026826 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026827if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026828
cristy3ed852e2009-09-05 21:47:34 +000026829fi
26830
cristy3ed852e2009-09-05 21:47:34 +000026831 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026834if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026835 $as_echo_n "(cached) " >&6
26836else
26837 ac_check_lib_save_LIBS=$LIBS
26838LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026840/* end confdefs.h. */
26841
26842/* Override any GCC internal prototype to avoid an error.
26843 Use char because int might match the return type of a GCC
26844 builtin and then its argument prototype would still apply. */
26845#ifdef __cplusplus
26846extern "C"
26847#endif
26848char gethostbyname ();
26849int
26850main ()
26851{
26852return gethostbyname ();
26853 ;
26854 return 0;
26855}
26856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026858 ac_cv_lib_nsl_gethostbyname=yes
26859else
cristy8b350f62009-11-15 23:12:43 +000026860 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026861fi
cristy8b350f62009-11-15 23:12:43 +000026862rm -f core conftest.err conftest.$ac_objext \
26863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026864LIBS=$ac_check_lib_save_LIBS
26865fi
cristy8b350f62009-11-15 23:12:43 +000026866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026867$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026868if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26870fi
26871
26872 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026874$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026875if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026876 $as_echo_n "(cached) " >&6
26877else
26878 ac_check_lib_save_LIBS=$LIBS
26879LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026881/* end confdefs.h. */
26882
26883/* Override any GCC internal prototype to avoid an error.
26884 Use char because int might match the return type of a GCC
26885 builtin and then its argument prototype would still apply. */
26886#ifdef __cplusplus
26887extern "C"
26888#endif
26889char gethostbyname ();
26890int
26891main ()
26892{
26893return gethostbyname ();
26894 ;
26895 return 0;
26896}
26897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026898if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026899 ac_cv_lib_bsd_gethostbyname=yes
26900else
cristy8b350f62009-11-15 23:12:43 +000026901 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026902fi
cristy8b350f62009-11-15 23:12:43 +000026903rm -f core conftest.err conftest.$ac_objext \
26904 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026905LIBS=$ac_check_lib_save_LIBS
26906fi
cristy8b350f62009-11-15 23:12:43 +000026907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026908$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026909if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26911fi
26912
26913 fi
26914 fi
26915
26916 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26917 # socket/setsockopt and other routines are undefined under SCO ODT
26918 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26919 # on later versions), says Simon Leinen: it contains gethostby*
26920 # variants that don't use the name server (or something). -lsocket
26921 # must be given before -lnsl if both are needed. We assume that
26922 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026923 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026924if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026925
cristy3ed852e2009-09-05 21:47:34 +000026926fi
26927
cristy3ed852e2009-09-05 21:47:34 +000026928 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026930$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026931if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026932 $as_echo_n "(cached) " >&6
26933else
26934 ac_check_lib_save_LIBS=$LIBS
26935LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026937/* end confdefs.h. */
26938
26939/* Override any GCC internal prototype to avoid an error.
26940 Use char because int might match the return type of a GCC
26941 builtin and then its argument prototype would still apply. */
26942#ifdef __cplusplus
26943extern "C"
26944#endif
26945char connect ();
26946int
26947main ()
26948{
26949return connect ();
26950 ;
26951 return 0;
26952}
26953_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026954if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026955 ac_cv_lib_socket_connect=yes
26956else
cristy8b350f62009-11-15 23:12:43 +000026957 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026958fi
cristy8b350f62009-11-15 23:12:43 +000026959rm -f core conftest.err conftest.$ac_objext \
26960 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026961LIBS=$ac_check_lib_save_LIBS
26962fi
cristy8b350f62009-11-15 23:12:43 +000026963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026964$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026965if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026966 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26967fi
26968
26969 fi
26970
26971 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026972 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026973if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026974
cristy3ed852e2009-09-05 21:47:34 +000026975fi
26976
cristy3ed852e2009-09-05 21:47:34 +000026977 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026979$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026980if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026981 $as_echo_n "(cached) " >&6
26982else
26983 ac_check_lib_save_LIBS=$LIBS
26984LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026986/* end confdefs.h. */
26987
26988/* Override any GCC internal prototype to avoid an error.
26989 Use char because int might match the return type of a GCC
26990 builtin and then its argument prototype would still apply. */
26991#ifdef __cplusplus
26992extern "C"
26993#endif
26994char remove ();
26995int
26996main ()
26997{
26998return remove ();
26999 ;
27000 return 0;
27001}
27002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027003if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027004 ac_cv_lib_posix_remove=yes
27005else
cristy8b350f62009-11-15 23:12:43 +000027006 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027007fi
cristy8b350f62009-11-15 23:12:43 +000027008rm -f core conftest.err conftest.$ac_objext \
27009 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027010LIBS=$ac_check_lib_save_LIBS
27011fi
cristy8b350f62009-11-15 23:12:43 +000027012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027014if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27016fi
27017
27018 fi
27019
27020 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027021 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027022if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027023
cristy3ed852e2009-09-05 21:47:34 +000027024fi
27025
cristy3ed852e2009-09-05 21:47:34 +000027026 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027028$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027029if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 $as_echo_n "(cached) " >&6
27031else
27032 ac_check_lib_save_LIBS=$LIBS
27033LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027035/* end confdefs.h. */
27036
27037/* Override any GCC internal prototype to avoid an error.
27038 Use char because int might match the return type of a GCC
27039 builtin and then its argument prototype would still apply. */
27040#ifdef __cplusplus
27041extern "C"
27042#endif
27043char shmat ();
27044int
27045main ()
27046{
27047return shmat ();
27048 ;
27049 return 0;
27050}
27051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027052if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027053 ac_cv_lib_ipc_shmat=yes
27054else
cristy8b350f62009-11-15 23:12:43 +000027055 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027056fi
cristy8b350f62009-11-15 23:12:43 +000027057rm -f core conftest.err conftest.$ac_objext \
27058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027059LIBS=$ac_check_lib_save_LIBS
27060fi
cristy8b350f62009-11-15 23:12:43 +000027061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027062$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027063if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027064 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27065fi
27066
27067 fi
27068 fi
27069
27070 # Check for libraries that X11R6 Xt/Xaw programs need.
27071 ac_save_LDFLAGS=$LDFLAGS
27072 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27073 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27074 # check for ICE first), but we must link in the order -lSM -lICE or
27075 # we get undefined symbols. So assume we have SM if we have ICE.
27076 # These have to be linked with before -lX11, unlike the other
27077 # libraries we check for below, so use a different variable.
27078 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027080$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027081if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 $as_echo_n "(cached) " >&6
27083else
27084 ac_check_lib_save_LIBS=$LIBS
27085LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027087/* end confdefs.h. */
27088
27089/* Override any GCC internal prototype to avoid an error.
27090 Use char because int might match the return type of a GCC
27091 builtin and then its argument prototype would still apply. */
27092#ifdef __cplusplus
27093extern "C"
27094#endif
27095char IceConnectionNumber ();
27096int
27097main ()
27098{
27099return IceConnectionNumber ();
27100 ;
27101 return 0;
27102}
27103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027105 ac_cv_lib_ICE_IceConnectionNumber=yes
27106else
cristy8b350f62009-11-15 23:12:43 +000027107 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027108fi
cristy8b350f62009-11-15 23:12:43 +000027109rm -f core conftest.err conftest.$ac_objext \
27110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027111LIBS=$ac_check_lib_save_LIBS
27112fi
cristy8b350f62009-11-15 23:12:43 +000027113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027114$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027115if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027116 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27117fi
27118
27119 LDFLAGS=$ac_save_LDFLAGS
27120
27121fi
27122
27123if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027129$as_echo "" >&6; }
27130 LDFLAGS="$LDFLAGS $X_LIBS"
27131 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27132 LIBS="$X11_LIBS $LIBS"
27133 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27134
27135
cristy8b350f62009-11-15 23:12:43 +000027136$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027137
27138 #
27139 # Check for X11 shared memory extension
27140 #
27141 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027142 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027143if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027144 have_shmctl='yes'
27145fi
27146
27147 if test "$have_shmctl" != 'yes'; then
27148 PERSIST_LIBS=$LIBS
27149 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027151/* end confdefs.h. */
27152
27153/* Override any GCC internal prototype to avoid an error.
27154 Use char because int might match the return type of a GCC
27155 builtin and then its argument prototype would still apply. */
27156#ifdef __cplusplus
27157extern "C"
27158#endif
27159char shmctl ();
27160int
27161main ()
27162{
27163return shmctl ();
27164 ;
27165 return 0;
27166}
27167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027170fi
cristy8b350f62009-11-15 23:12:43 +000027171rm -f core conftest.err conftest.$ac_objext \
27172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027173 LIBS=$PERSIST_LIBS
27174 fi
27175
27176 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027179if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 $as_echo_n "(cached) " >&6
27181else
27182 ac_check_lib_save_LIBS=$LIBS
27183LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027185/* end confdefs.h. */
27186
27187/* Override any GCC internal prototype to avoid an error.
27188 Use char because int might match the return type of a GCC
27189 builtin and then its argument prototype would still apply. */
27190#ifdef __cplusplus
27191extern "C"
27192#endif
27193char XShmAttach ();
27194int
27195main ()
27196{
27197return XShmAttach ();
27198 ;
27199 return 0;
27200}
27201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 ac_cv_lib_Xext_XShmAttach=yes
27204else
cristy8b350f62009-11-15 23:12:43 +000027205 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027206fi
cristy8b350f62009-11-15 23:12:43 +000027207rm -f core conftest.err conftest.$ac_objext \
27208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027209LIBS=$ac_check_lib_save_LIBS
27210fi
cristy8b350f62009-11-15 23:12:43 +000027211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027212$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027213if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027215$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027216
27217fi
27218
27219 fi
27220
27221 #
27222 # Check for X11 shape extension
27223 #
cristy8b350f62009-11-15 23:12:43 +000027224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027226if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 $as_echo_n "(cached) " >&6
27228else
27229 ac_check_lib_save_LIBS=$LIBS
27230LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027232/* end confdefs.h. */
27233
27234/* Override any GCC internal prototype to avoid an error.
27235 Use char because int might match the return type of a GCC
27236 builtin and then its argument prototype would still apply. */
27237#ifdef __cplusplus
27238extern "C"
27239#endif
27240char XShapeCombineMask ();
27241int
27242main ()
27243{
27244return XShapeCombineMask ();
27245 ;
27246 return 0;
27247}
27248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027250 ac_cv_lib_Xext_XShapeCombineMask=yes
27251else
cristy8b350f62009-11-15 23:12:43 +000027252 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027253fi
cristy8b350f62009-11-15 23:12:43 +000027254rm -f core conftest.err conftest.$ac_objext \
27255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027256LIBS=$ac_check_lib_save_LIBS
27257fi
cristy8b350f62009-11-15 23:12:43 +000027258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027260if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027261 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027262$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027263
27264fi
27265
cristy8b350f62009-11-15 23:12:43 +000027266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027267$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027268if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 $as_echo_n "(cached) " >&6
27270else
27271 ac_check_lib_save_LIBS=$LIBS
27272LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027274/* end confdefs.h. */
27275
27276/* Override any GCC internal prototype to avoid an error.
27277 Use char because int might match the return type of a GCC
27278 builtin and then its argument prototype would still apply. */
27279#ifdef __cplusplus
27280extern "C"
27281#endif
27282char XtSetEventDispatcher ();
27283int
27284main ()
27285{
27286return XtSetEventDispatcher ();
27287 ;
27288 return 0;
27289}
27290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027291if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027292 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27293else
cristy8b350f62009-11-15 23:12:43 +000027294 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027295fi
cristy8b350f62009-11-15 23:12:43 +000027296rm -f core conftest.err conftest.$ac_objext \
27297 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027298LIBS=$ac_check_lib_save_LIBS
27299fi
cristy8b350f62009-11-15 23:12:43 +000027300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027301$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027302if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027303 XT_LIBS='-lXt'
27304fi
27305
27306 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27307fi
27308if test "$no_x" != 'yes'; then
27309 have_x='yes'
27310else
27311 have_x='no'
27312fi
cristy73bd4a52010-10-05 11:24:23 +000027313 if test "$have_x" = 'yes'; then
27314 X11_DELEGATE_TRUE=
27315 X11_DELEGATE_FALSE='#'
27316else
27317 X11_DELEGATE_TRUE='#'
27318 X11_DELEGATE_FALSE=
27319fi
27320
cristy3ed852e2009-09-05 21:47:34 +000027321
27322
27323
27324
27325#
27326# Check for ZLIB
27327#
27328
27329# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027330if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027331 withval=$with_zlib; with_zlib=$withval
27332else
27333 with_zlib='yes'
27334fi
27335
27336
27337if test "$with_zlib" != 'yes'; then
27338 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27339fi
27340
27341have_zlib='no'
27342ZLIB_LIBS=''
27343if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "" >&6; }
27350 ZLIB_LIBS=''
27351 failed=0
27352 passed=0
cristy8b350f62009-11-15 23:12:43 +000027353 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027354if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 passed=`expr $passed + 1`
27356else
27357 failed=`expr $failed + 1`
27358fi
27359
27360
cristy8b350f62009-11-15 23:12:43 +000027361 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027362if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027363 passed=`expr $passed + 1`
27364else
27365 failed=`expr $failed + 1`
27366fi
27367
27368
cristy8b350f62009-11-15 23:12:43 +000027369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027370$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027371if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027372 $as_echo_n "(cached) " >&6
27373else
27374 ac_check_lib_save_LIBS=$LIBS
27375LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027377/* end confdefs.h. */
27378
27379/* Override any GCC internal prototype to avoid an error.
27380 Use char because int might match the return type of a GCC
27381 builtin and then its argument prototype would still apply. */
27382#ifdef __cplusplus
27383extern "C"
27384#endif
27385char compress ();
27386int
27387main ()
27388{
27389return compress ();
27390 ;
27391 return 0;
27392}
27393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027395 ac_cv_lib_z_compress=yes
27396else
cristy8b350f62009-11-15 23:12:43 +000027397 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027398fi
cristy8b350f62009-11-15 23:12:43 +000027399rm -f core conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027401LIBS=$ac_check_lib_save_LIBS
27402fi
cristy8b350f62009-11-15 23:12:43 +000027403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027404$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027405if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 passed=`expr $passed + 1`
27407else
27408 failed=`expr $failed + 1`
27409fi
27410
cristy8b350f62009-11-15 23:12:43 +000027411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027413if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027414 $as_echo_n "(cached) " >&6
27415else
27416 ac_check_lib_save_LIBS=$LIBS
27417LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027419/* end confdefs.h. */
27420
27421/* Override any GCC internal prototype to avoid an error.
27422 Use char because int might match the return type of a GCC
27423 builtin and then its argument prototype would still apply. */
27424#ifdef __cplusplus
27425extern "C"
27426#endif
27427char uncompress ();
27428int
27429main ()
27430{
27431return uncompress ();
27432 ;
27433 return 0;
27434}
27435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027437 ac_cv_lib_z_uncompress=yes
27438else
cristy8b350f62009-11-15 23:12:43 +000027439 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027440fi
cristy8b350f62009-11-15 23:12:43 +000027441rm -f core conftest.err conftest.$ac_objext \
27442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027443LIBS=$ac_check_lib_save_LIBS
27444fi
cristy8b350f62009-11-15 23:12:43 +000027445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027446$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027447if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027448 passed=`expr $passed + 1`
27449else
27450 failed=`expr $failed + 1`
27451fi
27452
cristy8b350f62009-11-15 23:12:43 +000027453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027454$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027455if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027456 $as_echo_n "(cached) " >&6
27457else
27458 ac_check_lib_save_LIBS=$LIBS
27459LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027461/* end confdefs.h. */
27462
27463/* Override any GCC internal prototype to avoid an error.
27464 Use char because int might match the return type of a GCC
27465 builtin and then its argument prototype would still apply. */
27466#ifdef __cplusplus
27467extern "C"
27468#endif
27469char deflate ();
27470int
27471main ()
27472{
27473return deflate ();
27474 ;
27475 return 0;
27476}
27477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027479 ac_cv_lib_z_deflate=yes
27480else
cristy8b350f62009-11-15 23:12:43 +000027481 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027482fi
cristy8b350f62009-11-15 23:12:43 +000027483rm -f core conftest.err conftest.$ac_objext \
27484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027485LIBS=$ac_check_lib_save_LIBS
27486fi
cristy8b350f62009-11-15 23:12:43 +000027487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027489if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027490 passed=`expr $passed + 1`
27491else
27492 failed=`expr $failed + 1`
27493fi
27494
cristy8b350f62009-11-15 23:12:43 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027496$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027497if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027498 $as_echo_n "(cached) " >&6
27499else
27500 ac_check_lib_save_LIBS=$LIBS
27501LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027503/* end confdefs.h. */
27504
27505/* Override any GCC internal prototype to avoid an error.
27506 Use char because int might match the return type of a GCC
27507 builtin and then its argument prototype would still apply. */
27508#ifdef __cplusplus
27509extern "C"
27510#endif
27511char inflate ();
27512int
27513main ()
27514{
27515return inflate ();
27516 ;
27517 return 0;
27518}
27519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027520if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027521 ac_cv_lib_z_inflate=yes
27522else
cristy8b350f62009-11-15 23:12:43 +000027523 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027524fi
cristy8b350f62009-11-15 23:12:43 +000027525rm -f core conftest.err conftest.$ac_objext \
27526 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027527LIBS=$ac_check_lib_save_LIBS
27528fi
cristy8b350f62009-11-15 23:12:43 +000027529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027531if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027532 passed=`expr $passed + 1`
27533else
27534 failed=`expr $failed + 1`
27535fi
27536
cristy8b350f62009-11-15 23:12:43 +000027537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027539if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027540 $as_echo_n "(cached) " >&6
27541else
27542 ac_check_lib_save_LIBS=$LIBS
27543LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027545/* end confdefs.h. */
27546
27547/* Override any GCC internal prototype to avoid an error.
27548 Use char because int might match the return type of a GCC
27549 builtin and then its argument prototype would still apply. */
27550#ifdef __cplusplus
27551extern "C"
27552#endif
27553char gzseek ();
27554int
27555main ()
27556{
27557return gzseek ();
27558 ;
27559 return 0;
27560}
27561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027562if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 ac_cv_lib_z_gzseek=yes
27564else
cristy8b350f62009-11-15 23:12:43 +000027565 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027566fi
cristy8b350f62009-11-15 23:12:43 +000027567rm -f core conftest.err conftest.$ac_objext \
27568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027569LIBS=$ac_check_lib_save_LIBS
27570fi
cristy8b350f62009-11-15 23:12:43 +000027571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027572$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027573if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 passed=`expr $passed + 1`
27575else
27576 failed=`expr $failed + 1`
27577fi
27578
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027581if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 $as_echo_n "(cached) " >&6
27583else
27584 ac_check_lib_save_LIBS=$LIBS
27585LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027587/* end confdefs.h. */
27588
27589/* Override any GCC internal prototype to avoid an error.
27590 Use char because int might match the return type of a GCC
27591 builtin and then its argument prototype would still apply. */
27592#ifdef __cplusplus
27593extern "C"
27594#endif
27595char gztell ();
27596int
27597main ()
27598{
27599return gztell ();
27600 ;
27601 return 0;
27602}
27603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 ac_cv_lib_z_gztell=yes
27606else
cristy8b350f62009-11-15 23:12:43 +000027607 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027608fi
cristy8b350f62009-11-15 23:12:43 +000027609rm -f core conftest.err conftest.$ac_objext \
27610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027611LIBS=$ac_check_lib_save_LIBS
27612fi
cristy8b350f62009-11-15 23:12:43 +000027613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027615if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027616 passed=`expr $passed + 1`
27617else
27618 failed=`expr $failed + 1`
27619fi
27620
cristy8b350f62009-11-15 23:12:43 +000027621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027622$as_echo_n "checking if ZLIB package is complete... " >&6; }
27623 if test $passed -gt 0; then
27624 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo "no -- some components failed test" >&6; }
27627 have_zlib='no (failed tests)'
27628 else
27629 ZLIB_LIBS='-lz'
27630 LIBS="$ZLIB_LIBS $LIBS"
27631
cristy8b350f62009-11-15 23:12:43 +000027632$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027633
cristy8b350f62009-11-15 23:12:43 +000027634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027635$as_echo "yes" >&6; }
27636 have_zlib='yes'
27637 fi
27638 else
cristy8b350f62009-11-15 23:12:43 +000027639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027640$as_echo "no" >&6; }
27641 fi
27642fi
cristy73bd4a52010-10-05 11:24:23 +000027643 if test "$have_zlib" = 'yes'; then
27644 ZLIB_DELEGATE_TRUE=
27645 ZLIB_DELEGATE_FALSE='#'
27646else
27647 ZLIB_DELEGATE_TRUE='#'
27648 ZLIB_DELEGATE_FALSE=
27649fi
27650
cristy3ed852e2009-09-05 21:47:34 +000027651
27652
27653#
27654# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27655#
27656LIB_DL=''
27657if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027659$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027660if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027661 $as_echo_n "(cached) " >&6
27662else
27663 ac_check_lib_save_LIBS=$LIBS
27664LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027666/* end confdefs.h. */
27667
27668/* Override any GCC internal prototype to avoid an error.
27669 Use char because int might match the return type of a GCC
27670 builtin and then its argument prototype would still apply. */
27671#ifdef __cplusplus
27672extern "C"
27673#endif
27674char dlopen ();
27675int
27676main ()
27677{
27678return dlopen ();
27679 ;
27680 return 0;
27681}
27682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027683if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027684 ac_cv_lib_dl_dlopen=yes
27685else
cristy8b350f62009-11-15 23:12:43 +000027686 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027687fi
cristy8b350f62009-11-15 23:12:43 +000027688rm -f core conftest.err conftest.$ac_objext \
27689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027690LIBS=$ac_check_lib_save_LIBS
27691fi
cristy8b350f62009-11-15 23:12:43 +000027692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027693$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027694if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027695 LIB_DL='-ldl'
27696fi
27697
27698 LIBS="$LIB_DL $LIBS"
27699fi
27700
27701
27702
27703#
27704# Check for Autotrace delegate library.
27705#
27706
27707# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027708if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027709 withval=$with_autotrace; with_autotrace=$withval
27710else
27711 with_autotrace='no'
27712fi
27713
27714
27715if test "$with_autotrace" != 'yes'; then
27716 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27717fi
27718
27719have_autotrace='no'
27720AUTOTRACE_CFLAGS=""
27721AUTOTRACE_LIBS=""
27722AUTOTRACE_PKG=""
27723if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027726
27727pkg_failed=no
27728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27729$as_echo_n "checking for AUTOTRACE... " >&6; }
27730
27731if test -n "$AUTOTRACE_CFLAGS"; then
27732 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27733 elif test -n "$PKG_CONFIG"; then
27734 if test -n "$PKG_CONFIG" && \
27735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27736 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27737 ac_status=$?
27738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27739 test $ac_status = 0; }; then
27740 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27741else
27742 pkg_failed=yes
27743fi
27744 else
27745 pkg_failed=untried
27746fi
27747if test -n "$AUTOTRACE_LIBS"; then
27748 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27749 elif test -n "$PKG_CONFIG"; then
27750 if test -n "$PKG_CONFIG" && \
27751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27752 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27753 ac_status=$?
27754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27755 test $ac_status = 0; }; then
27756 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27757else
27758 pkg_failed=yes
27759fi
27760 else
27761 pkg_failed=untried
27762fi
27763
27764
27765
27766if test $pkg_failed = yes; then
27767
27768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27769 _pkg_short_errors_supported=yes
27770else
27771 _pkg_short_errors_supported=no
27772fi
27773 if test $_pkg_short_errors_supported = yes; then
27774 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27775 else
27776 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27777 fi
27778 # Put the nasty error message in config.log where it belongs
27779 echo "$AUTOTRACE_PKG_ERRORS" >&5
27780
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27782$as_echo "no" >&6; }
27783 have_autotrace=no
27784elif test $pkg_failed = untried; then
27785 have_autotrace=no
27786else
27787 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27788 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27790$as_echo "yes" >&6; }
27791 have_autotrace=yes
27792fi
cristy8b350f62009-11-15 23:12:43 +000027793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027794$as_echo "" >&6; }
27795fi
27796
27797if test "$have_autotrace" = 'yes'; then
27798 failed=0
27799
cristy8b350f62009-11-15 23:12:43 +000027800$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027801
27802 if test "$with_modules" = 'no'; then
27803 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27804 fi
27805fi
27806
cristy73bd4a52010-10-05 11:24:23 +000027807 if test "$have_autotrace" = 'yes'; then
27808 AUTOTRACE_DELEGATE_TRUE=
27809 AUTOTRACE_DELEGATE_FALSE='#'
27810else
27811 AUTOTRACE_DELEGATE_TRUE='#'
27812 AUTOTRACE_DELEGATE_FALSE=
27813fi
27814
cristy3ed852e2009-09-05 21:47:34 +000027815
27816
27817
27818
27819#
27820# Check for Display Postscript delegate library.
27821#
27822
27823# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027824if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 withval=$with_dps; with_dps=$withval
27826else
27827 with_dps='yes'
27828fi
27829
27830
27831if test "$with_dps" != 'yes'; then
27832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27833fi
27834
27835have_dps='no'
27836DPS_LIBS=''
27837if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027843$as_echo "" >&6; }
27844 failed=0
27845 passed=0
27846 PERSIST_CPPFLAGS="$CPPFLAGS"
27847 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027848 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 +000027849if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 passed=`expr $passed + 1`
27851else
27852 failed=`expr $failed + 1`
27853fi
27854
27855
27856 # DPS issues:
27857 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27858 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27859 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27860 # ImageMagick itself doesn't use -lXt.
27861 have_libdps='no'
27862 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027864$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027865if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 $as_echo_n "(cached) " >&6
27867else
27868 ac_check_lib_save_LIBS=$LIBS
27869LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027871/* end confdefs.h. */
27872
27873/* Override any GCC internal prototype to avoid an error.
27874 Use char because int might match the return type of a GCC
27875 builtin and then its argument prototype would still apply. */
27876#ifdef __cplusplus
27877extern "C"
27878#endif
27879char DPSInitialize ();
27880int
27881main ()
27882{
27883return DPSInitialize ();
27884 ;
27885 return 0;
27886}
27887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 ac_cv_lib_dps_DPSInitialize=yes
27890else
cristy8b350f62009-11-15 23:12:43 +000027891 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027892fi
cristy8b350f62009-11-15 23:12:43 +000027893rm -f core conftest.err conftest.$ac_objext \
27894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027895LIBS=$ac_check_lib_save_LIBS
27896fi
cristy8b350f62009-11-15 23:12:43 +000027897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027899if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027900 have_libdps='yes'
27901else
27902 have_libdps='no'
27903fi
27904
27905 if test "$have_libdps" != 'yes'; then
27906 # Unset cache variable so we can try again.
27907 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027909$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027910if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027911 $as_echo_n "(cached) " >&6
27912else
27913 ac_check_lib_save_LIBS=$LIBS
27914LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027916/* end confdefs.h. */
27917
27918/* Override any GCC internal prototype to avoid an error.
27919 Use char because int might match the return type of a GCC
27920 builtin and then its argument prototype would still apply. */
27921#ifdef __cplusplus
27922extern "C"
27923#endif
27924char DPSInitialize ();
27925int
27926main ()
27927{
27928return DPSInitialize ();
27929 ;
27930 return 0;
27931}
27932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027934 ac_cv_lib_dps_DPSInitialize=yes
27935else
cristy8b350f62009-11-15 23:12:43 +000027936 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027937fi
cristy8b350f62009-11-15 23:12:43 +000027938rm -f core conftest.err conftest.$ac_objext \
27939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027940LIBS=$ac_check_lib_save_LIBS
27941fi
cristy8b350f62009-11-15 23:12:43 +000027942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027943$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027944if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027945 have_libdps='yes'
27946else
27947 have_libdps='no'
27948fi
27949
27950 if test "$have_libdps" = 'yes'; then
27951 LIBDPS_XT='-lXt'
27952 fi
27953 fi
27954 if test "$have_libdps" = 'yes'; then
27955 passed=`expr $passed + 1`
27956 else
27957 failed=`expr $failed + 1`
27958 fi
cristy8b350f62009-11-15 23:12:43 +000027959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027960$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027961if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027962 $as_echo_n "(cached) " >&6
27963else
27964 ac_check_lib_save_LIBS=$LIBS
27965LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027967/* end confdefs.h. */
27968
27969/* Override any GCC internal prototype to avoid an error.
27970 Use char because int might match the return type of a GCC
27971 builtin and then its argument prototype would still apply. */
27972#ifdef __cplusplus
27973extern "C"
27974#endif
27975char XDPSPixelsPerPoint ();
27976int
27977main ()
27978{
27979return XDPSPixelsPerPoint ();
27980 ;
27981 return 0;
27982}
27983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027985 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27986else
cristy8b350f62009-11-15 23:12:43 +000027987 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027988fi
cristy8b350f62009-11-15 23:12:43 +000027989rm -f core conftest.err conftest.$ac_objext \
27990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027991LIBS=$ac_check_lib_save_LIBS
27992fi
cristy8b350f62009-11-15 23:12:43 +000027993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027994$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027995if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027996 passed=`expr $passed + 1`
27997else
27998 failed=`expr $failed + 1`
27999fi
28000
cristy8b350f62009-11-15 23:12:43 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028002$as_echo_n "checking if DPS package is complete... " >&6; }
28003 if test $passed -gt 0; then
28004 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028006$as_echo "no -- some components failed test" >&6; }
28007 have_dps='no (failed tests)'
28008 CPPFLAGS="$PERSIST_CPPFLAGS"
28009 else
28010 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28011 LIBS="$DPS_LIBS $LIBS"
28012
cristy8b350f62009-11-15 23:12:43 +000028013$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028014
cristy8b350f62009-11-15 23:12:43 +000028015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028016$as_echo "yes" >&6; }
28017 have_dps='yes'
28018 fi
28019 else
cristy8b350f62009-11-15 23:12:43 +000028020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028021$as_echo "no" >&6; }
28022 CPPFLAGS=$PERSIST_CPPFLAGS
28023 fi
28024fi
cristy73bd4a52010-10-05 11:24:23 +000028025 if test "$have_dps" = 'yes'; then
28026 DPS_DELEGATE_TRUE=
28027 DPS_DELEGATE_FALSE='#'
28028else
28029 DPS_DELEGATE_TRUE='#'
28030 DPS_DELEGATE_FALSE=
28031fi
28032
cristy3ed852e2009-09-05 21:47:34 +000028033
28034
28035
28036#
28037# Check for DJVU delegate library.
28038#
28039
28040# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028041if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028042 withval=$with_djvu; with_djvu=$withval
28043else
28044 with_djvu='yes'
28045fi
28046
28047
28048if test "$with_djvu" != 'yes'; then
28049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28050fi
28051
28052have_djvu='no'
28053DJVU_LIBS=''
28054if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028056$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028060$as_echo "" >&6; }
28061 failed=0
28062 passed=0
cristy8b350f62009-11-15 23:12:43 +000028063 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 +000028064if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 passed=`expr $passed + 1`
28066else
28067 failed=`expr $failed + 1`
28068fi
28069
28070
cristy8b350f62009-11-15 23:12:43 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028073if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028074 $as_echo_n "(cached) " >&6
28075else
28076 ac_check_lib_save_LIBS=$LIBS
28077LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028079/* end confdefs.h. */
28080
28081/* Override any GCC internal prototype to avoid an error.
28082 Use char because int might match the return type of a GCC
28083 builtin and then its argument prototype would still apply. */
28084#ifdef __cplusplus
28085extern "C"
28086#endif
28087char ddjvu_context_create ();
28088int
28089main ()
28090{
28091return ddjvu_context_create ();
28092 ;
28093 return 0;
28094}
28095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028097 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28098else
cristy8b350f62009-11-15 23:12:43 +000028099 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028100fi
cristy8b350f62009-11-15 23:12:43 +000028101rm -f core conftest.err conftest.$ac_objext \
28102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028103LIBS=$ac_check_lib_save_LIBS
28104fi
cristy8b350f62009-11-15 23:12:43 +000028105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028106$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028107if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028108 passed=`expr $passed + 1`
28109else
28110 failed=`expr $failed + 1`
28111fi
28112
cristy8b350f62009-11-15 23:12:43 +000028113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028114$as_echo_n "checking if DJVU package is complete... " >&6; }
28115 if test $passed -gt 0; then
28116 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028118$as_echo "no -- some components failed test" >&6; }
28119 have_djvu='no (failed tests)'
28120 else
28121 DJVU_LIBS='-ldjvulibre'
28122 LIBS="$DJVU_LIBS $LIBS"
28123
cristy8b350f62009-11-15 23:12:43 +000028124$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028125
cristy8b350f62009-11-15 23:12:43 +000028126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028127$as_echo "yes" >&6; }
28128 have_djvu='yes'
28129 fi
28130 else
cristy8b350f62009-11-15 23:12:43 +000028131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028132$as_echo "no" >&6; }
28133 fi
28134fi
cristy73bd4a52010-10-05 11:24:23 +000028135 if test "$have_djvu" = 'yes'; then
28136 DJVU_DELEGATE_TRUE=
28137 DJVU_DELEGATE_FALSE='#'
28138else
28139 DJVU_DELEGATE_TRUE='#'
28140 DJVU_DELEGATE_FALSE=
28141fi
28142
cristy3ed852e2009-09-05 21:47:34 +000028143
28144
28145
28146#
cristy430a7312010-01-21 20:44:04 +000028147# Set DejaVu font directory.
28148#
28149
28150# Check whether --with-dejavu-font-dir was given.
28151if test "${with_dejavu_font_dir+set}" = set; then :
28152 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28153else
28154 with_dejavu_font_dir='default'
28155fi
28156
28157
28158if test "$with_dejavu_font_dir" != 'default'; then
28159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28160fi
28161
28162
28163#
cristy3ed852e2009-09-05 21:47:34 +000028164# Check for FFTW delegate library.
28165#
28166
28167# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028168if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028169 withval=$with_fftw; with_fftw=$withval
28170else
28171 with_fftw='yes'
28172fi
28173
28174
28175if test "$with_fftw" != 'yes'; then
28176 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28177fi
28178
28179have_fftw='no'
28180FFTW_LIBS=''
28181if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028183$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000028185$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028187$as_echo "" >&6; }
28188 failed=0
28189 passed=0
cristy8b350f62009-11-15 23:12:43 +000028190 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028191if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028192 passed=`expr $passed + 1`
28193else
28194 failed=`expr $failed + 1`
28195fi
28196
28197
cristy8b350f62009-11-15 23:12:43 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000028199$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028200if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028201 $as_echo_n "(cached) " >&6
28202else
28203 ac_check_lib_save_LIBS=$LIBS
28204LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028206/* end confdefs.h. */
28207
28208/* Override any GCC internal prototype to avoid an error.
28209 Use char because int might match the return type of a GCC
28210 builtin and then its argument prototype would still apply. */
28211#ifdef __cplusplus
28212extern "C"
28213#endif
28214char fftw_execute ();
28215int
28216main ()
28217{
28218return fftw_execute ();
28219 ;
28220 return 0;
28221}
28222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028224 ac_cv_lib_fftw3_fftw_execute=yes
28225else
cristy8b350f62009-11-15 23:12:43 +000028226 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000028227fi
cristy8b350f62009-11-15 23:12:43 +000028228rm -f core conftest.err conftest.$ac_objext \
28229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028230LIBS=$ac_check_lib_save_LIBS
28231fi
cristy8b350f62009-11-15 23:12:43 +000028232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000028233$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000028234if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028235 passed=`expr $passed + 1`
28236else
28237 failed=`expr $failed + 1`
28238fi
28239
cristy8b350f62009-11-15 23:12:43 +000028240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028241$as_echo_n "checking if FFTW package is complete... " >&6; }
28242 if test $passed -gt 0; then
28243 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028245$as_echo "no -- some components failed test" >&6; }
28246 have_fftw='no (failed tests)'
28247 else
28248 FFTW_LIBS='-lfftw3'
28249 LIBS="$FFTW_LIBS $LIBS"
28250
cristy8b350f62009-11-15 23:12:43 +000028251$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028252
cristy8b350f62009-11-15 23:12:43 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo "yes" >&6; }
28255 have_fftw='yes'
28256 fi
28257 else
cristy8b350f62009-11-15 23:12:43 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo "no" >&6; }
28260 fi
28261fi
cristy73bd4a52010-10-05 11:24:23 +000028262 if test "$have_fftw" = 'yes'; then
28263 FFTW_DELEGATE_TRUE=
28264 FFTW_DELEGATE_FALSE='#'
28265else
28266 FFTW_DELEGATE_TRUE='#'
28267 FFTW_DELEGATE_FALSE=
28268fi
28269
cristy3ed852e2009-09-05 21:47:34 +000028270
28271
28272
28273#
28274# Check for FlashPIX delegate library.
28275#
28276
28277# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028278if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 withval=$with_fpx; with_fpx=$withval
28280else
28281 with_fpx='yes'
28282fi
28283
28284
28285if test "$with_fpx" != 'yes'; then
28286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28287fi
28288
28289have_fpx='no'
28290FPX_LIBS=''
28291if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028295$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo "" >&6; }
28298 failed=0
28299 passed=0
28300 ac_ext=cpp
28301ac_cpp='$CXXCPP $CPPFLAGS'
28302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28305
28306
cristy8b350f62009-11-15 23:12:43 +000028307ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028308if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028309 passed=`expr $passed + 1`
28310else
28311 failed=`expr $failed + 1`
28312fi
28313
28314
cristy8b350f62009-11-15 23:12:43 +000028315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028317if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 $as_echo_n "(cached) " >&6
28319else
28320 ac_check_lib_save_LIBS=$LIBS
28321LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028323/* end confdefs.h. */
28324
28325/* Override any GCC internal prototype to avoid an error.
28326 Use char because int might match the return type of a GCC
28327 builtin and then its argument prototype would still apply. */
28328#ifdef __cplusplus
28329extern "C"
28330#endif
28331char FPX_OpenImageByFilename ();
28332int
28333main ()
28334{
28335return FPX_OpenImageByFilename ();
28336 ;
28337 return 0;
28338}
28339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028340if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028341 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28342else
cristy8b350f62009-11-15 23:12:43 +000028343 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028344fi
cristy8b350f62009-11-15 23:12:43 +000028345rm -f core conftest.err conftest.$ac_objext \
28346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028347LIBS=$ac_check_lib_save_LIBS
28348fi
cristy8b350f62009-11-15 23:12:43 +000028349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028351if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 passed=`expr $passed + 1`
28353else
28354 failed=`expr $failed + 1`
28355fi
28356
28357 ac_ext=c
28358ac_cpp='$CPP $CPPFLAGS'
28359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28361ac_compiler_gnu=$ac_cv_c_compiler_gnu
28362
cristy8b350f62009-11-15 23:12:43 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28365 if test $passed -gt 0; then
28366 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028368$as_echo "no -- some components failed test" >&6; }
28369 have_fpx='no (failed tests)'
28370 else
28371 FPX_LIBS='-lfpx'
28372
cristy8b350f62009-11-15 23:12:43 +000028373$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028374
cristy8b350f62009-11-15 23:12:43 +000028375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028376$as_echo "yes" >&6; }
28377 have_fpx='yes'
28378 PERLMAINCC="$CXX"
28379 fi
28380 else
cristy8b350f62009-11-15 23:12:43 +000028381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028382$as_echo "no" >&6; }
28383 fi
28384fi
cristy73bd4a52010-10-05 11:24:23 +000028385 if test "$have_fpx" = 'yes'; then
28386 FPX_DELEGATE_TRUE=
28387 FPX_DELEGATE_FALSE='#'
28388else
28389 FPX_DELEGATE_TRUE='#'
28390 FPX_DELEGATE_FALSE=
28391fi
28392
cristy3ed852e2009-09-05 21:47:34 +000028393
28394
28395
28396#
28397# Check for fontconfig delegate library.
28398#
28399
28400# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028401if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028402 withval=$with_fontconfig; with_fontconfig=$withval
28403else
28404 with_fontconfig=$have_x
28405fi
28406
28407
28408if test "$with_fontconfig" != 'yes'; then
28409 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28410fi
28411
28412have_fontconfig='no'
28413FONTCONFIG_CFLAGS=""
28414FONTCONFIG_LIBS=""
28415FONTCONFIG_PKG=""
28416if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028418$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028419
28420pkg_failed=no
28421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28422$as_echo_n "checking for FONTCONFIG... " >&6; }
28423
28424if test -n "$FONTCONFIG_CFLAGS"; then
28425 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28426 elif test -n "$PKG_CONFIG"; then
28427 if test -n "$PKG_CONFIG" && \
28428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28429 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28430 ac_status=$?
28431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28432 test $ac_status = 0; }; then
28433 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28434else
28435 pkg_failed=yes
28436fi
28437 else
28438 pkg_failed=untried
28439fi
28440if test -n "$FONTCONFIG_LIBS"; then
28441 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28442 elif test -n "$PKG_CONFIG"; then
28443 if test -n "$PKG_CONFIG" && \
28444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28445 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28446 ac_status=$?
28447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28448 test $ac_status = 0; }; then
28449 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28450else
28451 pkg_failed=yes
28452fi
28453 else
28454 pkg_failed=untried
28455fi
28456
28457
28458
28459if test $pkg_failed = yes; then
28460
28461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28462 _pkg_short_errors_supported=yes
28463else
28464 _pkg_short_errors_supported=no
28465fi
28466 if test $_pkg_short_errors_supported = yes; then
28467 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28468 else
28469 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28470 fi
28471 # Put the nasty error message in config.log where it belongs
28472 echo "$FONTCONFIG_PKG_ERRORS" >&5
28473
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28475$as_echo "no" >&6; }
28476 have_fontconfig=no
28477elif test $pkg_failed = untried; then
28478 have_fontconfig=no
28479else
28480 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28481 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28483$as_echo "yes" >&6; }
28484 have_fontconfig=yes
28485fi
cristy8b350f62009-11-15 23:12:43 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo "" >&6; }
28488fi
28489
28490if test "$have_fontconfig" = 'yes'; then
28491
cristy8b350f62009-11-15 23:12:43 +000028492$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028493
cristyd09bcf92010-03-25 03:04:45 +000028494 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028495 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028496 fi
cristy3ed852e2009-09-05 21:47:34 +000028497fi
28498
cristy73bd4a52010-10-05 11:24:23 +000028499 if test "$have_fontconfig" = 'yes'; then
28500 FONTCONFIG_DELEGATE_TRUE=
28501 FONTCONFIG_DELEGATE_FALSE='#'
28502else
28503 FONTCONFIG_DELEGATE_TRUE='#'
28504 FONTCONFIG_DELEGATE_FALSE=
28505fi
28506
cristy3ed852e2009-09-05 21:47:34 +000028507
28508
28509
28510
28511#
28512# Check for freetype delegate library.
28513#
28514
28515# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028516if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028517 withval=$with_freetype; with_freetype=$withval
28518else
28519 with_freetype='yes'
28520fi
28521
28522
28523
28524if test "$with_freetype" != 'yes'; then
28525 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28526fi
28527
28528have_freetype='no'
28529FREETYPE_LIBS=''
28530if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000028534$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028536$as_echo "" >&6; }
28537 failed=0
28538 passed=0
cristy66291112009-10-03 22:44:36 +000028539 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028540 PERSIST_CPPFLAGS="$CPPFLAGS"
28541 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28542 :
28543 else
28544 freetype_config=''
28545 for ac_prog in freetype-config
28546do
28547 # Extract the first word of "$ac_prog", so it can be a program name with args.
28548set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028551if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028552 $as_echo_n "(cached) " >&6
28553else
28554 if test -n "$freetype_config"; then
28555 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28556else
28557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28558for as_dir in $PATH
28559do
28560 IFS=$as_save_IFS
28561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28564 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028566 break 2
28567 fi
28568done
cristy8b350f62009-11-15 23:12:43 +000028569 done
cristy3ed852e2009-09-05 21:47:34 +000028570IFS=$as_save_IFS
28571
28572fi
28573fi
28574freetype_config=$ac_cv_prog_freetype_config
28575if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000028576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028577$as_echo "$freetype_config" >&6; }
28578else
cristy8b350f62009-11-15 23:12:43 +000028579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028580$as_echo "no" >&6; }
28581fi
28582
28583
28584 test -n "$freetype_config" && break
28585done
28586 if test -n "$freetype_config"; then
28587 freetype_cflags=`$freetype_config --cflags`
28588 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000028589 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000028590 CPPFLAGS="$freetype_cflags $CPPFLAGS"
28591 fi
28592 fi
28593
28594 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028597if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 $as_echo_n "(cached) " >&6
28599else
28600 ac_check_lib_save_LIBS=$LIBS
28601LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028603/* end confdefs.h. */
28604
28605/* Override any GCC internal prototype to avoid an error.
28606 Use char because int might match the return type of a GCC
28607 builtin and then its argument prototype would still apply. */
28608#ifdef __cplusplus
28609extern "C"
28610#endif
28611char FT_Init_FreeType ();
28612int
28613main ()
28614{
28615return FT_Init_FreeType ();
28616 ;
28617 return 0;
28618}
28619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028621 ac_cv_lib_freetype_FT_Init_FreeType=yes
28622else
cristy8b350f62009-11-15 23:12:43 +000028623 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000028624fi
cristy8b350f62009-11-15 23:12:43 +000028625rm -f core conftest.err conftest.$ac_objext \
28626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028627LIBS=$ac_check_lib_save_LIBS
28628fi
cristy8b350f62009-11-15 23:12:43 +000028629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000028630$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000028631if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028632 FREETYPE_LIBS='-lfreetype'
28633fi
28634
28635 if test "$FREETYPE_LIBS" != ''; then
28636 passed=`expr $passed + 1`
28637 else
28638 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000028639 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028640 fi
28641 fi
28642
cristy8b350f62009-11-15 23:12:43 +000028643 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028644if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028645 FT2BUILD_H='#include <ft2build.h>'
28646else
28647 ft2build=''
28648fi
28649
28650
cristy8b350f62009-11-15 23:12:43 +000028651 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28652"
cristyda16f162011-02-19 23:52:17 +000028653if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028654 have_freetype_h='yes'
28655else
28656 have_freetype_h='no'
28657fi
28658
28659
28660 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28661 passed=`expr $passed + 1`
28662 else
28663 failed=`expr $failed + 1`
28664 CPPFLAGS="$PERSIST_CPPFLAGS"
28665 fi
28666
cristy8b350f62009-11-15 23:12:43 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028668$as_echo_n "checking if FreeType package is complete... " >&6; }
28669 if test $passed -gt 0; then
28670 if test $failed -gt 0; then
28671 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028673$as_echo "no -- some components failed test" >&6; }
28674 have_freetype='no (failed tests)'
28675 else
28676 LIBS="$FREETYPE_LIBS $LIBS"
28677
cristy8b350f62009-11-15 23:12:43 +000028678$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028679
28680 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28681
cristy8b350f62009-11-15 23:12:43 +000028682$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028683
28684 fi
cristy8b350f62009-11-15 23:12:43 +000028685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028686$as_echo "yes" >&6; }
28687 have_freetype='yes'
28688 fi
28689 else
cristy8b350f62009-11-15 23:12:43 +000028690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028691$as_echo "no" >&6; }
28692 fi
28693fi
cristy73bd4a52010-10-05 11:24:23 +000028694 if test "$have_freetype" = 'yes'; then
28695 FREETYPE_DELEGATE_TRUE=
28696 FREETYPE_DELEGATE_FALSE='#'
28697else
28698 FREETYPE_DELEGATE_TRUE='#'
28699 FREETYPE_DELEGATE_FALSE=
28700fi
28701
cristy3ed852e2009-09-05 21:47:34 +000028702
28703
28704
28705
28706#
28707# Check for Ghostscript library or framework.
28708#
28709# Test for iapi.h & test for gsapi_new_instance in -lgs
28710# or -framework Ghostscript
28711
28712
28713# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028714if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028715 withval=$with_gslib; with_gslib=$withval
28716else
28717 with_gslib='no'
28718fi
28719
28720
cristyb7931f12009-09-25 10:22:21 +000028721gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028722if test "$with_gslib" != 'yes'; then
28723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28724fi
28725
28726have_gslib='no'
28727GS_LIBS=''
28728if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028730$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028734$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028735 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028736 failed=0
28737 passed=0
cristy8b350f62009-11-15 23:12:43 +000028738 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 +000028739if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028740 passed=`expr $passed + 1`
28741else
28742 failed=`expr $failed + 1`
28743fi
28744
28745
cristy8b350f62009-11-15 23:12:43 +000028746 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 +000028747if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028748 passed=`expr $passed + 1`
28749else
28750 failed=`expr $failed + 1`
28751fi
28752
28753
cristy73bd4a52010-10-05 11:24:23 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28755$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028756if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028757 $as_echo_n "(cached) " >&6
28758else
28759 ac_check_framework_save_LIBS=$LIBS
28760LIBS="-framework Ghostscript $LIBS"
28761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28762/* end confdefs.h. */
28763
28764/* Override any GCC internal prototype to avoid an error.
28765 Use char because int might match the return type of a GCC
28766 builtin and then its argument prototype would still apply. */
28767#ifdef __cplusplus
28768extern "C"
28769#endif
28770char gsapi_new_instance ();
28771int
28772main ()
28773{
28774return gsapi_new_instance ();
28775 ;
28776 return 0;
28777}
28778_ACEOF
28779if ac_fn_c_try_link "$LINENO"; then :
28780 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28781else
28782 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28783fi
28784rm -f core conftest.err conftest.$ac_objext \
28785 conftest$ac_exeext conftest.$ac_ext
28786LIBS=$ac_check_framework_save_LIBS
28787fi
28788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28789$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28790if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28791 framework=`expr $framework + 1`
28792else
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028794$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028795if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028796 $as_echo_n "(cached) " >&6
28797else
28798 ac_check_lib_save_LIBS=$LIBS
28799LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028801/* end confdefs.h. */
28802
28803/* Override any GCC internal prototype to avoid an error.
28804 Use char because int might match the return type of a GCC
28805 builtin and then its argument prototype would still apply. */
28806#ifdef __cplusplus
28807extern "C"
28808#endif
28809char gsapi_new_instance ();
28810int
28811main ()
28812{
28813return gsapi_new_instance ();
28814 ;
28815 return 0;
28816}
28817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028818if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028819 ac_cv_lib_gs_gsapi_new_instance=yes
28820else
cristy8b350f62009-11-15 23:12:43 +000028821 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028822fi
cristy8b350f62009-11-15 23:12:43 +000028823rm -f core conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028825LIBS=$ac_check_lib_save_LIBS
28826fi
cristy8b350f62009-11-15 23:12:43 +000028827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028828$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028829if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028830 passed=`expr $passed + 1`
28831else
28832 failed=`expr $failed + 1`
28833fi
cristy73bd4a52010-10-05 11:24:23 +000028834
28835fi
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28838 if test $passed -gt 0; then
28839 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028841$as_echo "no -- some components failed test" >&6; }
28842 have_gslib='no (failed tests)'
28843 else
28844 if test $framework -gt 0; then
28845 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028846 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028848$as_echo "yes, using framework." >&6; }
28849 else
cristy8b350f62009-11-15 23:12:43 +000028850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028851$as_echo "yes, using library." >&6; }
28852 GS_LIBS='-lgs'
28853 fi
28854 LIBS="$GS_LIBS $LIBS"
28855
cristy8b350f62009-11-15 23:12:43 +000028856$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028857
28858 have_gslib='yes'
28859 fi
28860 else
cristy8b350f62009-11-15 23:12:43 +000028861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028862$as_echo "no" >&6; }
28863 fi
28864fi
cristy73bd4a52010-10-05 11:24:23 +000028865 if test "$have_gslib" = 'yes'; then
28866 GS_DELEGATE_TRUE=
28867 GS_DELEGATE_FALSE='#'
28868else
28869 GS_DELEGATE_TRUE='#'
28870 GS_DELEGATE_FALSE=
28871fi
28872
cristy3ed852e2009-09-05 21:47:34 +000028873
28874
28875# Set default font search path
28876
28877# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028878if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028879 withval=$with_fontpath; with_fontpath=$withval
28880else
28881 with_fontpath=''
28882fi
28883
28884
28885if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28886 with_fontpath=''
28887else
28888
28889cat >>confdefs.h <<_ACEOF
28890#define MAGICK_FONT_PATH "$with_fontpath"
28891_ACEOF
28892
28893fi
28894if test "$with_fontpath=" != ''; then
28895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28896fi
28897
28898# Set Ghostscript font directory
28899
28900# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028901if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28903else
28904 with_gs_font_dir='default'
28905fi
28906
28907
28908if test "$with_gs_font_dir" != 'default'; then
28909 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28910fi
28911
28912
28913#
28914# Check for GVC delegate library.
28915#
28916
28917# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028918if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028919 withval=$with_gvc; with_gvc=$withval
28920else
28921 with_gvc='yes'
28922fi
28923
28924
28925if test "$with_gvc" != 'yes'; then
28926 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28927fi
28928
28929GVC_PKG=""
28930if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028932$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028933
28934pkg_failed=no
28935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28936$as_echo_n "checking for GVC... " >&6; }
28937
28938if test -n "$GVC_CFLAGS"; then
28939 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28940 elif test -n "$PKG_CONFIG"; then
28941 if test -n "$PKG_CONFIG" && \
28942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28943 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28944 ac_status=$?
28945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28946 test $ac_status = 0; }; then
28947 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28948else
28949 pkg_failed=yes
28950fi
28951 else
28952 pkg_failed=untried
28953fi
28954if test -n "$GVC_LIBS"; then
28955 pkg_cv_GVC_LIBS="$GVC_LIBS"
28956 elif test -n "$PKG_CONFIG"; then
28957 if test -n "$PKG_CONFIG" && \
28958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28959 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28960 ac_status=$?
28961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28962 test $ac_status = 0; }; then
28963 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28964else
28965 pkg_failed=yes
28966fi
28967 else
28968 pkg_failed=untried
28969fi
28970
28971
28972
28973if test $pkg_failed = yes; then
28974
28975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28976 _pkg_short_errors_supported=yes
28977else
28978 _pkg_short_errors_supported=no
28979fi
28980 if test $_pkg_short_errors_supported = yes; then
28981 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28982 else
28983 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28984 fi
28985 # Put the nasty error message in config.log where it belongs
28986 echo "$GVC_PKG_ERRORS" >&5
28987
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989$as_echo "no" >&6; }
28990 have_gvc=no
28991elif test $pkg_failed = untried; then
28992 have_gvc=no
28993else
28994 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28995 GVC_LIBS=$pkg_cv_GVC_LIBS
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28997$as_echo "yes" >&6; }
28998 have_gvc=yes
28999fi
cristy8b350f62009-11-15 23:12:43 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029001$as_echo "" >&6; }
29002fi
29003
29004if test "$have_gvc" = 'yes'; then
29005
cristy8b350f62009-11-15 23:12:43 +000029006$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029007
29008 if test "$with_modules" = 'no'; then
29009 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29010 fi
29011fi
29012
cristy73bd4a52010-10-05 11:24:23 +000029013 if test "$have_gvc" = 'yes'; then
29014 GVC_DELEGATE_TRUE=
29015 GVC_DELEGATE_FALSE='#'
29016else
29017 GVC_DELEGATE_TRUE='#'
29018 GVC_DELEGATE_FALSE=
29019fi
29020
cristy3ed852e2009-09-05 21:47:34 +000029021
29022
29023
29024
29025#
29026# Check for JBIG delegate library.
29027#
29028
29029
29030# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029031if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029032 withval=$with_jbig; with_jbig=$withval
29033else
29034 with_jbig='yes'
29035fi
29036
29037
29038have_jbig='no'
29039JBIG_LIBS=''
29040if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029042$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029044$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029046$as_echo "" >&6; }
29047 failed=0
29048 passed=0
cristy8b350f62009-11-15 23:12:43 +000029049 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029050if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029051 passed=`expr $passed + 1`
29052else
29053 failed=`expr $failed + 1`
29054fi
29055
29056
cristy8b350f62009-11-15 23:12:43 +000029057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029058$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029059if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029060 $as_echo_n "(cached) " >&6
29061else
29062 ac_check_lib_save_LIBS=$LIBS
29063LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029065/* end confdefs.h. */
29066
29067/* Override any GCC internal prototype to avoid an error.
29068 Use char because int might match the return type of a GCC
29069 builtin and then its argument prototype would still apply. */
29070#ifdef __cplusplus
29071extern "C"
29072#endif
29073char jbg_dec_init ();
29074int
29075main ()
29076{
29077return jbg_dec_init ();
29078 ;
29079 return 0;
29080}
29081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029082if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029083 ac_cv_lib_jbig_jbg_dec_init=yes
29084else
cristy8b350f62009-11-15 23:12:43 +000029085 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029086fi
cristy8b350f62009-11-15 23:12:43 +000029087rm -f core conftest.err conftest.$ac_objext \
29088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029089LIBS=$ac_check_lib_save_LIBS
29090fi
cristy8b350f62009-11-15 23:12:43 +000029091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029092$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029093if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029094 passed=`expr $passed + 1`
29095else
29096 failed=`expr $failed + 1`
29097fi
29098
cristy8b350f62009-11-15 23:12:43 +000029099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029100$as_echo_n "checking if JBIG package is complete... " >&6; }
29101 if test $passed -gt 0; then
29102 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029104$as_echo "no -- some components failed test" >&6; }
29105 have_jbig='no (failed tests)'
29106 else
29107 JBIG_LIBS='-ljbig'
29108 LIBS="$JBIG_LIBS $LIBS"
29109
cristy8b350f62009-11-15 23:12:43 +000029110$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029111
cristy8b350f62009-11-15 23:12:43 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029113$as_echo "yes" >&6; }
29114 have_jbig='yes'
29115 fi
29116 else
cristy8b350f62009-11-15 23:12:43 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029118$as_echo "no" >&6; }
29119 fi
29120fi
cristy73bd4a52010-10-05 11:24:23 +000029121 if test "$have_jbig" = 'yes'; then
29122 JBIG_DELEGATE_TRUE=
29123 JBIG_DELEGATE_FALSE='#'
29124else
29125 JBIG_DELEGATE_TRUE='#'
29126 JBIG_DELEGATE_FALSE=
29127fi
29128
cristy3ed852e2009-09-05 21:47:34 +000029129
29130
29131
29132#
29133# Check for JPEG delegate library.
29134#
29135
29136# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029137if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029138 withval=$with_jpeg; with_jpeg=$withval
29139else
29140 with_jpeg='yes'
29141fi
29142
29143
29144if test "$with_jpeg" != 'yes'; then
29145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29146fi
29147
29148have_jpeg='no'
29149JPEG_LIBS=''
29150if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029152$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029154$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029156$as_echo "" >&6; }
29157 failed=0
29158 passed=0
cristy8b350f62009-11-15 23:12:43 +000029159 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029160if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029161 passed=`expr $passed + 1`
29162else
29163 failed=`expr $failed + 1`
29164fi
29165
29166
cristy8b350f62009-11-15 23:12:43 +000029167 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029168if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029169 passed=`expr $passed + 1`
29170else
29171 failed=`expr $failed + 1`
29172fi
29173
29174
cristy8b350f62009-11-15 23:12:43 +000029175 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029176if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029177 passed=`expr $passed + 1`
29178else
29179 failed=`expr $failed + 1`
29180fi
29181
29182
cristy8b350f62009-11-15 23:12:43 +000029183 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029184if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029185 passed=`expr $passed + 1`
29186else
29187 failed=`expr $failed + 1`
29188fi
29189
29190
cristy8b350f62009-11-15 23:12:43 +000029191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029192$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029193if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029194 $as_echo_n "(cached) " >&6
29195else
29196 ac_check_lib_save_LIBS=$LIBS
29197LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029199/* end confdefs.h. */
29200
29201/* Override any GCC internal prototype to avoid an error.
29202 Use char because int might match the return type of a GCC
29203 builtin and then its argument prototype would still apply. */
29204#ifdef __cplusplus
29205extern "C"
29206#endif
29207char jpeg_read_header ();
29208int
29209main ()
29210{
29211return jpeg_read_header ();
29212 ;
29213 return 0;
29214}
29215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029217 ac_cv_lib_jpeg_jpeg_read_header=yes
29218else
cristy8b350f62009-11-15 23:12:43 +000029219 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029220fi
cristy8b350f62009-11-15 23:12:43 +000029221rm -f core conftest.err conftest.$ac_objext \
29222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029223LIBS=$ac_check_lib_save_LIBS
29224fi
cristy8b350f62009-11-15 23:12:43 +000029225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029226$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029227if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029228 passed=`expr $passed + 1`
29229else
29230 failed=`expr $failed + 1`
29231fi
29232
29233
29234# Test for compatible JPEG library
29235if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029237$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029238if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029239 $as_echo_n "(cached) " >&6
29240else
cristy8b350f62009-11-15 23:12:43 +000029241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029242/* end confdefs.h. */
29243#include <stdio.h>
29244#include <stdlib.h>
29245#include <jpeglib.h>
29246
29247int
29248main ()
29249{
29250
29251#if JPEG_LIB_VERSION < 62
29252#error IJG JPEG library must be version 6b or newer!
29253#endif
29254return 0;
29255
29256 ;
29257 return 0;
29258}
29259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029260if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029261 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29262else
cristy8b350f62009-11-15 23:12:43 +000029263 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029264fi
cristy3ed852e2009-09-05 21:47:34 +000029265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29266fi
cristy8b350f62009-11-15 23:12:43 +000029267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29269fi
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo_n "checking if JPEG package is complete... " >&6; }
29272 if test $passed -gt 0; then
29273 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029275$as_echo "no -- some components failed test" >&6; }
29276 have_jpeg='no (failed tests)'
29277 else
29278 JPEG_LIBS='-ljpeg'
29279 LIBS="$JPEG_LIBS $LIBS"
29280
cristy8b350f62009-11-15 23:12:43 +000029281$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029282
cristy8b350f62009-11-15 23:12:43 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029284$as_echo "yes" >&6; }
29285 have_jpeg='yes'
29286 fi
29287 else
cristy8b350f62009-11-15 23:12:43 +000029288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029289$as_echo "no" >&6; }
29290 fi
29291fi
cristy73bd4a52010-10-05 11:24:23 +000029292 if test "$have_jpeg" = 'yes'; then
29293 JPEG_DELEGATE_TRUE=
29294 JPEG_DELEGATE_FALSE='#'
29295else
29296 JPEG_DELEGATE_TRUE='#'
29297 JPEG_DELEGATE_FALSE=
29298fi
29299
cristy3ed852e2009-09-05 21:47:34 +000029300
29301
29302
29303#
29304# Check for JPEG Version 2 delegate library.
29305#
29306
29307# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029308if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029309 withval=$with_jp2; with_jp2=$withval
29310else
29311 with_jp2='yes'
29312fi
29313
29314
29315if test "$with_jp2" != 'yes'; then
29316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29317fi
29318
29319have_jp2='no'
29320JP2_LIBS=''
29321if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029323$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029325$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029327$as_echo "" >&6; }
29328 failed=0
29329 passed=0
cristy8b350f62009-11-15 23:12:43 +000029330 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 +000029331if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029332 passed=`expr $passed + 1`
29333else
29334 failed=`expr $failed + 1`
29335fi
29336
29337
cristy8b350f62009-11-15 23:12:43 +000029338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029339$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029340if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029341 $as_echo_n "(cached) " >&6
29342else
29343 ac_check_lib_save_LIBS=$LIBS
29344LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029346/* end confdefs.h. */
29347
29348/* Override any GCC internal prototype to avoid an error.
29349 Use char because int might match the return type of a GCC
29350 builtin and then its argument prototype would still apply. */
29351#ifdef __cplusplus
29352extern "C"
29353#endif
29354char jas_stream_fopen ();
29355int
29356main ()
29357{
29358return jas_stream_fopen ();
29359 ;
29360 return 0;
29361}
29362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029364 ac_cv_lib_jasper_jas_stream_fopen=yes
29365else
cristy8b350f62009-11-15 23:12:43 +000029366 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029367fi
cristy8b350f62009-11-15 23:12:43 +000029368rm -f core conftest.err conftest.$ac_objext \
29369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029370LIBS=$ac_check_lib_save_LIBS
29371fi
cristy8b350f62009-11-15 23:12:43 +000029372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029373$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029374if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029375 passed=`expr $passed + 1`
29376else
29377 failed=`expr $failed + 1`
29378fi
29379
cristy8b350f62009-11-15 23:12:43 +000029380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29382 if test $passed -gt 0; then
29383 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029385$as_echo "no -- some components failed test" >&6; }
29386 have_jp2='no (failed tests)'
29387 else
29388 JP2_LIBS='-ljasper'
29389 LIBS="$JP2_LIBS $LIBS"
29390
cristy8b350f62009-11-15 23:12:43 +000029391$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029392
cristy8b350f62009-11-15 23:12:43 +000029393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029394$as_echo "yes" >&6; }
29395 have_jp2='yes'
29396 fi
29397 else
cristy8b350f62009-11-15 23:12:43 +000029398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029399$as_echo "no" >&6; }
29400 fi
29401fi
cristy73bd4a52010-10-05 11:24:23 +000029402 if test "$have_jp2" = 'yes'; then
29403 JP2_DELEGATE_TRUE=
29404 JP2_DELEGATE_FALSE='#'
29405else
29406 JP2_DELEGATE_TRUE='#'
29407 JP2_DELEGATE_FALSE=
29408fi
29409
cristy3ed852e2009-09-05 21:47:34 +000029410
29411
29412
29413#
29414# Check for LCMS delegate library.
29415#
cristy71203402010-06-18 13:12:03 +000029416# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029417
29418# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029419if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 withval=$with_lcms; with_lcms=$withval
29421else
29422 with_lcms='yes'
29423fi
29424
cristy71203402010-06-18 13:12:03 +000029425if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029426 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29427fi
29428
cristy71203402010-06-18 13:12:03 +000029429# Disable LCMS2.
29430
29431# Check whether --with-lcms2 was given.
29432if test "${with_lcms2+set}" = set; then :
29433 withval=$with_lcms2; with_lcms2=$withval
29434else
29435 with_lcms2='yes'
29436fi
29437
29438if test "$with_lcms2" != 'yes' ; then
29439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29440fi
29441
29442have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029443LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029444if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029446$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29448$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029450$as_echo "" >&6; }
29451 failed=0
29452 passed=0
29453 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029454
29455 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029456 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029457if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029458 have_lcms_header='yes'
29459fi
29460
29461
29462 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029463
29464$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29465
cristy71203402010-06-18 13:12:03 +000029466 passed=`expr $passed + 1`
29467 fi
29468
29469 # Check for <lcms2/lcms2.h)
29470 if test "$have_lcms_header" != 'yes'; then
29471 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 +000029472if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029473 have_lcms_header='yes'
29474fi
29475
29476
cristy71203402010-06-18 13:12:03 +000029477 if test "$have_lcms_header" = 'yes'; then
29478 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029479
cristy71203402010-06-18 13:12:03 +000029480$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029481
cristy71203402010-06-18 13:12:03 +000029482 fi
cristyd09bcf92010-03-25 03:04:45 +000029483 fi
cristy71203402010-06-18 13:12:03 +000029484
29485 # Failed to find lcms header?
29486 if test "$have_lcms_header" != 'yes'; then
29487 failed=`expr $failed + 1`
29488 fi
29489
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29491$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029492if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029493 $as_echo_n "(cached) " >&6
29494else
29495 ac_check_lib_save_LIBS=$LIBS
29496LIBS="-llcms2 $LIBS"
29497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29498/* end confdefs.h. */
29499
29500/* Override any GCC internal prototype to avoid an error.
29501 Use char because int might match the return type of a GCC
29502 builtin and then its argument prototype would still apply. */
29503#ifdef __cplusplus
29504extern "C"
29505#endif
cristy71203402010-06-18 13:12:03 +000029506char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029507int
29508main ()
29509{
cristy71203402010-06-18 13:12:03 +000029510return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029511 ;
29512 return 0;
29513}
29514_ACEOF
29515if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029516 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029517else
cristy71203402010-06-18 13:12:03 +000029518 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029519fi
29520rm -f core conftest.err conftest.$ac_objext \
29521 conftest$ac_exeext conftest.$ac_ext
29522LIBS=$ac_check_lib_save_LIBS
29523fi
cristy71203402010-06-18 13:12:03 +000029524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29525$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029526if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029527 passed=`expr $passed + 1`
29528else
29529 failed=`expr $failed + 1`
29530fi
29531
cristy71203402010-06-18 13:12:03 +000029532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29533$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029534 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029535 if test $failed -gt 0; then
29536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000029537$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029538 have_lcms2='no (failed tests)'
29539 else
29540 LCMS_LIBS='-llcms2'
29541 LIBS="$LCMS_LIBS $LIBS"
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000029543$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029544 have_lcms2='yes'
29545 fi
cristyd09bcf92010-03-25 03:04:45 +000029546 else
cristy71203402010-06-18 13:12:03 +000029547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000029548$as_echo "no" >&6; }
29549 fi
29550fi
29551
cristy71203402010-06-18 13:12:03 +000029552#
29553# Check for LCMS v1 (1.11 or later)
29554#
29555if test $have_lcms2 = 'yes'; then
29556 with_lcms='no'
29557fi
29558
29559have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029560if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29562$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29564$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29566$as_echo "" >&6; }
29567 failed=0
29568 passed=0
29569 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029570
29571 # Check for <lcms.h>
29572 if test "$have_lcms_header" != 'yes'; then
29573 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029574if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029575 have_lcms_header='yes'
29576fi
29577
29578
cristy71203402010-06-18 13:12:03 +000029579 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029580 passed=`expr $passed + 1`
29581
cristy8b350f62009-11-15 23:12:43 +000029582$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029583
cristy71203402010-06-18 13:12:03 +000029584 fi
29585 fi
29586
29587 # Check for <lcms/lcms.h>
29588 if test "$have_lcms_header" != 'yes'; then
29589 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 +000029590if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029591 have_lcms_header='yes'
29592fi
29593
29594
cristy71203402010-06-18 13:12:03 +000029595 if test "$have_lcms_header" = 'yes'; then
29596 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029597
cristy8b350f62009-11-15 23:12:43 +000029598$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029599
cristy71203402010-06-18 13:12:03 +000029600 fi
cristy3ed852e2009-09-05 21:47:34 +000029601 fi
cristy71203402010-06-18 13:12:03 +000029602
29603 # Failed to find lcms header?
29604 if test "$have_lcms_header" != 'yes'; then
29605 failed=`expr $failed + 1`
29606 fi
29607
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29609$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029610if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029611 $as_echo_n "(cached) " >&6
29612else
29613 ac_check_lib_save_LIBS=$LIBS
29614LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029616/* end confdefs.h. */
29617
29618/* Override any GCC internal prototype to avoid an error.
29619 Use char because int might match the return type of a GCC
29620 builtin and then its argument prototype would still apply. */
29621#ifdef __cplusplus
29622extern "C"
29623#endif
cristy71203402010-06-18 13:12:03 +000029624char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029625int
29626main ()
29627{
cristy71203402010-06-18 13:12:03 +000029628return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029629 ;
29630 return 0;
29631}
29632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029633if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029634 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029635else
cristy71203402010-06-18 13:12:03 +000029636 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029637fi
cristy8b350f62009-11-15 23:12:43 +000029638rm -f core conftest.err conftest.$ac_objext \
29639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029640LIBS=$ac_check_lib_save_LIBS
29641fi
cristy71203402010-06-18 13:12:03 +000029642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29643$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029644if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029645 passed=`expr $passed + 1`
29646else
29647 failed=`expr $failed + 1`
29648fi
29649
cristy8b350f62009-11-15 23:12:43 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029651$as_echo_n "checking if LCMS package is complete... " >&6; }
29652 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029653 if test $failed -gt 0; then
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029655$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029656 have_lcms='no (failed tests)'
29657 else
29658 LCMS_LIBS='-llcms'
29659 LIBS="$LCMS_LIBS $LIBS"
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029661$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029662 have_lcms='yes'
29663 fi
cristy3ed852e2009-09-05 21:47:34 +000029664 else
cristy71203402010-06-18 13:12:03 +000029665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029666$as_echo "no" >&6; }
29667 fi
29668fi
cristy71203402010-06-18 13:12:03 +000029669
cristy73bd4a52010-10-05 11:24:23 +000029670 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29671 LCMS_DELEGATE_TRUE=
29672 LCMS_DELEGATE_FALSE='#'
29673else
29674 LCMS_DELEGATE_TRUE='#'
29675 LCMS_DELEGATE_FALSE=
29676fi
29677
cristy71203402010-06-18 13:12:03 +000029678if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29679
29680$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29681
29682fi
29683
cristy3ed852e2009-09-05 21:47:34 +000029684
29685
29686
29687#
29688# Check for the LQR (Liquid Rescale) delegate library.
29689#
29690
29691# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029692if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029693 withval=$with_lqr; with_lqr=$withval
29694else
29695 with_lqr='yes'
29696fi
29697
29698
29699if test "$with_lqr" != 'yes'; then
29700 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29701fi
29702
29703have_lqr='no'
29704LQR_CFLAGS=""
29705LQR_LIBS=""
29706LQR_PKG=""
29707if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029709$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029710
29711pkg_failed=no
29712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29713$as_echo_n "checking for LQR... " >&6; }
29714
29715if test -n "$LQR_CFLAGS"; then
29716 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29717 elif test -n "$PKG_CONFIG"; then
29718 if test -n "$PKG_CONFIG" && \
29719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29720 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29721 ac_status=$?
29722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29723 test $ac_status = 0; }; then
29724 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29725else
29726 pkg_failed=yes
29727fi
29728 else
29729 pkg_failed=untried
29730fi
29731if test -n "$LQR_LIBS"; then
29732 pkg_cv_LQR_LIBS="$LQR_LIBS"
29733 elif test -n "$PKG_CONFIG"; then
29734 if test -n "$PKG_CONFIG" && \
29735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29736 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29737 ac_status=$?
29738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29739 test $ac_status = 0; }; then
29740 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29741else
29742 pkg_failed=yes
29743fi
29744 else
29745 pkg_failed=untried
29746fi
29747
29748
29749
29750if test $pkg_failed = yes; then
29751
29752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29753 _pkg_short_errors_supported=yes
29754else
29755 _pkg_short_errors_supported=no
29756fi
29757 if test $_pkg_short_errors_supported = yes; then
29758 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29759 else
29760 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29761 fi
29762 # Put the nasty error message in config.log where it belongs
29763 echo "$LQR_PKG_ERRORS" >&5
29764
29765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29766$as_echo "no" >&6; }
29767 have_lqr=no
29768elif test $pkg_failed = untried; then
29769 have_lqr=no
29770else
29771 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29772 LQR_LIBS=$pkg_cv_LQR_LIBS
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29774$as_echo "yes" >&6; }
29775 have_lqr=yes
29776fi
cristy8b350f62009-11-15 23:12:43 +000029777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029778$as_echo "" >&6; }
29779fi
29780
29781if test "$have_lqr" = 'yes'; then
29782
cristy8b350f62009-11-15 23:12:43 +000029783$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029784
29785 CFLAGS="$LQR_CFLAGS $CFLAGS"
29786fi
29787
cristy73bd4a52010-10-05 11:24:23 +000029788 if test "$have_lqr" = 'yes'; then
29789 LQR_DELEGATE_TRUE=
29790 LQR_DELEGATE_FALSE='#'
29791else
29792 LQR_DELEGATE_TRUE='#'
29793 LQR_DELEGATE_FALSE=
29794fi
29795
cristy3ed852e2009-09-05 21:47:34 +000029796
29797
29798
29799
cristyfbb0ef02010-12-19 02:32:11 +000029800# Disable LZMA (lzma library)
29801
29802# Check whether --with-lzma was given.
29803if test "${with_lzma+set}" = set; then :
29804 withval=$with_lzma; with_lzma=$withval
29805else
29806 with_lzma='yes'
29807fi
29808
29809if test "$with_lzma" != 'yes' ; then
29810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29811fi
29812
29813#
29814# Check for LZMA
29815#
29816have_lzma='no'
29817LZMA_LIBS=''
29818if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29820$as_echo "-------------------------------------------------------------" >&6; }
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29822$as_echo_n "checking for LZMA... " >&6; }
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29824$as_echo "" >&6; }
29825 failed=0
29826 passed=0
29827 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029828if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029829 passed=`expr $passed + 1`
29830else
29831 failed=`expr $failed + 1`
29832fi
29833
29834
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29836$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029837if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029838 $as_echo_n "(cached) " >&6
29839else
29840 ac_check_lib_save_LIBS=$LIBS
29841LIBS="-llzma $LIBS"
29842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29843/* end confdefs.h. */
29844
29845/* Override any GCC internal prototype to avoid an error.
29846 Use char because int might match the return type of a GCC
29847 builtin and then its argument prototype would still apply. */
29848#ifdef __cplusplus
29849extern "C"
29850#endif
29851char lzma_code ();
29852int
29853main ()
29854{
29855return lzma_code ();
29856 ;
29857 return 0;
29858}
29859_ACEOF
29860if ac_fn_c_try_link "$LINENO"; then :
29861 ac_cv_lib_lzma_lzma_code=yes
29862else
29863 ac_cv_lib_lzma_lzma_code=no
29864fi
29865rm -f core conftest.err conftest.$ac_objext \
29866 conftest$ac_exeext conftest.$ac_ext
29867LIBS=$ac_check_lib_save_LIBS
29868fi
29869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29870$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029871if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029872 passed=`expr $passed + 1`
29873else
29874 failed=`expr $failed + 1`
29875fi
29876
29877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29878$as_echo_n "checking if LZMA package is complete... " >&6; }
29879 if test $passed -gt 0; then
29880 if test $failed -gt 0; then
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29882$as_echo "no -- some components failed test" >&6; }
29883 have_lzma='no (failed tests)'
29884 else
29885 LZMA_LIBS='-llzma'
29886 LIBS="$LZMA_LIBS $LIBS"
29887
29888$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29889
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29891$as_echo "yes" >&6; }
29892 have_lzma='yes'
29893 fi
29894 else
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29896$as_echo "no" >&6; }
29897 fi
29898fi
29899 if test "$have_lzma" = 'yes'; then
29900 LZMA_DELEGATE_TRUE=
29901 LZMA_DELEGATE_FALSE='#'
29902else
29903 LZMA_DELEGATE_TRUE='#'
29904 LZMA_DELEGATE_FALSE=
29905fi
29906
29907
29908
29909
cristy3ed852e2009-09-05 21:47:34 +000029910#
29911# Check for the OpenEXR delegate library.
29912#
29913
29914# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029915if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029916 withval=$with_openexr; with_openexr=$withval
29917else
29918 with_openexr='yes'
29919fi
29920
29921
29922if test "$with_openexr" != 'yes'; then
29923 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29924fi
29925
29926have_openexr='no'
29927OPENEXR_CFLAGS=""
29928OPENEXR_LIBS=""
29929OPENEXR_PKG=""
29930if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029932$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029933
29934pkg_failed=no
29935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29936$as_echo_n "checking for OPENEXR... " >&6; }
29937
29938if test -n "$OPENEXR_CFLAGS"; then
29939 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29940 elif test -n "$PKG_CONFIG"; then
29941 if test -n "$PKG_CONFIG" && \
29942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29943 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29944 ac_status=$?
29945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29946 test $ac_status = 0; }; then
29947 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29948else
29949 pkg_failed=yes
29950fi
29951 else
29952 pkg_failed=untried
29953fi
29954if test -n "$OPENEXR_LIBS"; then
29955 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29956 elif test -n "$PKG_CONFIG"; then
29957 if test -n "$PKG_CONFIG" && \
29958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29959 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29960 ac_status=$?
29961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29962 test $ac_status = 0; }; then
29963 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29964else
29965 pkg_failed=yes
29966fi
29967 else
29968 pkg_failed=untried
29969fi
29970
29971
29972
29973if test $pkg_failed = yes; then
29974
29975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29976 _pkg_short_errors_supported=yes
29977else
29978 _pkg_short_errors_supported=no
29979fi
29980 if test $_pkg_short_errors_supported = yes; then
29981 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29982 else
29983 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29984 fi
29985 # Put the nasty error message in config.log where it belongs
29986 echo "$OPENEXR_PKG_ERRORS" >&5
29987
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29989$as_echo "no" >&6; }
29990 have_openexr=no
29991elif test $pkg_failed = untried; then
29992 have_openexr=no
29993else
29994 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29995 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29997$as_echo "yes" >&6; }
29998 have_openexr=yes
29999fi
cristy8b350f62009-11-15 23:12:43 +000030000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030001$as_echo "" >&6; }
30002fi
30003
30004if test "$have_openexr" = 'yes'; then
30005
cristy8b350f62009-11-15 23:12:43 +000030006$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030007
30008 if test "$with_modules" = 'no'; then
30009 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30010 fi
30011fi
30012
cristy73bd4a52010-10-05 11:24:23 +000030013 if test "$have_openexr" = 'yes'; then
30014 OPENEXR_DELEGATE_TRUE=
30015 OPENEXR_DELEGATE_FALSE='#'
30016else
30017 OPENEXR_DELEGATE_TRUE='#'
30018 OPENEXR_DELEGATE_FALSE=
30019fi
30020
cristy3ed852e2009-09-05 21:47:34 +000030021
30022
30023
30024
30025#
30026# Check for PNG delegate library.
30027#
30028
30029# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030030if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030031 withval=$with_png; with_png=$withval
30032else
30033 with_png='yes'
30034fi
30035
30036
30037if test "$with_png" != 'yes'; then
30038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30039fi
30040
30041have_png='no'
30042PNG_LIBS=''
30043if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030047$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030049$as_echo "" >&6; }
30050 failed=0
30051 passed=0
cristy8b350f62009-11-15 23:12:43 +000030052 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030053if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030054 passed=`expr $passed + 1`
30055else
30056 failed=`expr $failed + 1`
30057fi
30058
30059
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030062if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030063 $as_echo_n "(cached) " >&6
30064else
30065 ac_check_lib_save_LIBS=$LIBS
30066LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030068/* end confdefs.h. */
30069
30070/* Override any GCC internal prototype to avoid an error.
30071 Use char because int might match the return type of a GCC
30072 builtin and then its argument prototype would still apply. */
30073#ifdef __cplusplus
30074extern "C"
30075#endif
30076char png_get_io_ptr ();
30077int
30078main ()
30079{
30080return png_get_io_ptr ();
30081 ;
30082 return 0;
30083}
30084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030085if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030086 ac_cv_lib_png_png_get_io_ptr=yes
30087else
cristy8b350f62009-11-15 23:12:43 +000030088 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000030089fi
cristy8b350f62009-11-15 23:12:43 +000030090rm -f core conftest.err conftest.$ac_objext \
30091 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030092LIBS=$ac_check_lib_save_LIBS
30093fi
cristy8b350f62009-11-15 23:12:43 +000030094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000030095$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000030096if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030097 passed=`expr $passed + 1`
30098else
30099 failed=`expr $failed + 1`
30100fi
30101
cristy8b350f62009-11-15 23:12:43 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo_n "checking if PNG package is complete... " >&6; }
30104 if test $passed -gt 0; then
30105 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030107$as_echo "no -- some components failed test" >&6; }
30108 have_png='no (failed tests)'
30109 else
30110 PNG_LIBS='-lpng'
30111 LIBS="$PNG_LIBS $LIBS"
30112
cristy8b350f62009-11-15 23:12:43 +000030113$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030114
cristy8b350f62009-11-15 23:12:43 +000030115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030116$as_echo "yes" >&6; }
30117 have_png='yes'
30118 fi
30119 else
cristy8b350f62009-11-15 23:12:43 +000030120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030121$as_echo "no" >&6; }
30122 fi
30123fi
cristy73bd4a52010-10-05 11:24:23 +000030124 if test "$have_png" = 'yes'; then
30125 PNG_DELEGATE_TRUE=
30126 PNG_DELEGATE_FALSE='#'
30127else
30128 PNG_DELEGATE_TRUE='#'
30129 PNG_DELEGATE_FALSE=
30130fi
30131
cristy3ed852e2009-09-05 21:47:34 +000030132
30133
30134
30135#
30136# Check for RSVG delegate library.
30137#
30138
30139# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030140if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030141 withval=$with_rsvg; with_rsvg=$withval
30142else
30143 with_rsvg=$have_x
30144fi
30145
30146
30147if test "$with_rsvg" != 'yes'; then
30148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30149fi
30150
30151have_rsvg='no'
30152have_cairo='no'
30153RSVG_CFLAGS=""
30154RSVG_LIBS=""
30155RSVG_PKG=""
30156if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030158$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030159
30160pkg_failed=no
30161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30162$as_echo_n "checking for RSVG... " >&6; }
30163
30164if test -n "$RSVG_CFLAGS"; then
30165 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30166 elif test -n "$PKG_CONFIG"; then
30167 if test -n "$PKG_CONFIG" && \
30168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30169 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30170 ac_status=$?
30171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30172 test $ac_status = 0; }; then
30173 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30174else
30175 pkg_failed=yes
30176fi
30177 else
30178 pkg_failed=untried
30179fi
30180if test -n "$RSVG_LIBS"; then
30181 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30182 elif test -n "$PKG_CONFIG"; then
30183 if test -n "$PKG_CONFIG" && \
30184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30185 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30186 ac_status=$?
30187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30188 test $ac_status = 0; }; then
30189 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30190else
30191 pkg_failed=yes
30192fi
30193 else
30194 pkg_failed=untried
30195fi
30196
30197
30198
30199if test $pkg_failed = yes; then
30200
30201if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30202 _pkg_short_errors_supported=yes
30203else
30204 _pkg_short_errors_supported=no
30205fi
30206 if test $_pkg_short_errors_supported = yes; then
30207 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30208 else
30209 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30210 fi
30211 # Put the nasty error message in config.log where it belongs
30212 echo "$RSVG_PKG_ERRORS" >&5
30213
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30215$as_echo "no" >&6; }
30216 have_rsvg=no
30217elif test $pkg_failed = untried; then
30218 have_rsvg=no
30219else
30220 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30221 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30223$as_echo "yes" >&6; }
30224 have_rsvg=yes
30225fi
cristy8b350f62009-11-15 23:12:43 +000030226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030227$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030228
30229pkg_failed=no
30230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30231$as_echo_n "checking for CAIRO_SVG... " >&6; }
30232
30233if test -n "$CAIRO_SVG_CFLAGS"; then
30234 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30235 elif test -n "$PKG_CONFIG"; then
30236 if test -n "$PKG_CONFIG" && \
30237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30238 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30239 ac_status=$?
30240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30241 test $ac_status = 0; }; then
30242 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30243else
30244 pkg_failed=yes
30245fi
30246 else
30247 pkg_failed=untried
30248fi
30249if test -n "$CAIRO_SVG_LIBS"; then
30250 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30251 elif test -n "$PKG_CONFIG"; then
30252 if test -n "$PKG_CONFIG" && \
30253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30254 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30255 ac_status=$?
30256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30257 test $ac_status = 0; }; then
30258 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30259else
30260 pkg_failed=yes
30261fi
30262 else
30263 pkg_failed=untried
30264fi
30265
30266
30267
30268if test $pkg_failed = yes; then
30269
30270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30271 _pkg_short_errors_supported=yes
30272else
30273 _pkg_short_errors_supported=no
30274fi
30275 if test $_pkg_short_errors_supported = yes; then
30276 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30277 else
30278 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30279 fi
30280 # Put the nasty error message in config.log where it belongs
30281 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30282
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30284$as_echo "no" >&6; }
30285 have_cairo=no
30286elif test $pkg_failed = untried; then
30287 have_cairo=no
30288else
30289 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30290 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30292$as_echo "yes" >&6; }
30293 have_cairo=yes
30294fi
cristy8b350f62009-11-15 23:12:43 +000030295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030296$as_echo "" >&6; }
30297fi
30298
30299if test "$have_rsvg" = 'yes'; then
30300
cristy8b350f62009-11-15 23:12:43 +000030301$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030302
30303 if test "$with_modules" = 'no'; then
30304 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30305 fi
30306fi
30307
30308if test "$have_cairo" = 'yes'; then
30309
cristy8b350f62009-11-15 23:12:43 +000030310$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030311
30312 if test "$with_modules" = 'no'; then
30313 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30314 fi
30315fi
30316
cristy73bd4a52010-10-05 11:24:23 +000030317 if test "$have_rsvg" = 'yes'; then
30318 RSVG_DELEGATE_TRUE=
30319 RSVG_DELEGATE_FALSE='#'
30320else
30321 RSVG_DELEGATE_TRUE='#'
30322 RSVG_DELEGATE_FALSE=
30323fi
30324
30325 if test "$have_cairo" = 'yes'; then
30326 CAIRO_DELEGATE_TRUE=
30327 CAIRO_DELEGATE_FALSE='#'
30328else
30329 CAIRO_DELEGATE_TRUE='#'
30330 CAIRO_DELEGATE_FALSE=
30331fi
30332
cristy3ed852e2009-09-05 21:47:34 +000030333
30334
30335
30336
30337#
30338# Check for TIFF delegate library.
30339#
30340
30341# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030342if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030343 withval=$with_tiff; with_tiff=$withval
30344else
30345 with_tiff='yes'
30346fi
30347
30348
30349if test "$with_tiff" != 'yes'; then
30350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30351fi
30352
30353have_tiff='no'
30354TIFF_LIBS=''
30355if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030357$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030359$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030361$as_echo "" >&6; }
30362 failed=0
30363 passed=0
cristy8b350f62009-11-15 23:12:43 +000030364 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030365if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030366 passed=`expr $passed + 1`
30367else
30368 failed=`expr $failed + 1`
30369fi
30370
30371
cristy8b350f62009-11-15 23:12:43 +000030372 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030373if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030374 passed=`expr $passed + 1`
30375else
30376 failed=`expr $failed + 1`
30377fi
30378
30379
cristy8b350f62009-11-15 23:12:43 +000030380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030381$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030382if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030383 $as_echo_n "(cached) " >&6
30384else
30385 ac_check_lib_save_LIBS=$LIBS
30386LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030388/* end confdefs.h. */
30389
30390/* Override any GCC internal prototype to avoid an error.
30391 Use char because int might match the return type of a GCC
30392 builtin and then its argument prototype would still apply. */
30393#ifdef __cplusplus
30394extern "C"
30395#endif
30396char TIFFOpen ();
30397int
30398main ()
30399{
30400return TIFFOpen ();
30401 ;
30402 return 0;
30403}
30404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030406 ac_cv_lib_tiff_TIFFOpen=yes
30407else
cristy8b350f62009-11-15 23:12:43 +000030408 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030409fi
cristy8b350f62009-11-15 23:12:43 +000030410rm -f core conftest.err conftest.$ac_objext \
30411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030412LIBS=$ac_check_lib_save_LIBS
30413fi
cristy8b350f62009-11-15 23:12:43 +000030414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030415$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030416if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030417 passed=`expr $passed + 1`
30418else
30419 failed=`expr $failed + 1`
30420fi
30421
cristy8b350f62009-11-15 23:12:43 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030423$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030424if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030425 $as_echo_n "(cached) " >&6
30426else
30427 ac_check_lib_save_LIBS=$LIBS
30428LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030430/* end confdefs.h. */
30431
30432/* Override any GCC internal prototype to avoid an error.
30433 Use char because int might match the return type of a GCC
30434 builtin and then its argument prototype would still apply. */
30435#ifdef __cplusplus
30436extern "C"
30437#endif
30438char TIFFClientOpen ();
30439int
30440main ()
30441{
30442return TIFFClientOpen ();
30443 ;
30444 return 0;
30445}
30446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030448 ac_cv_lib_tiff_TIFFClientOpen=yes
30449else
cristy8b350f62009-11-15 23:12:43 +000030450 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030451fi
cristy8b350f62009-11-15 23:12:43 +000030452rm -f core conftest.err conftest.$ac_objext \
30453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030454LIBS=$ac_check_lib_save_LIBS
30455fi
cristy8b350f62009-11-15 23:12:43 +000030456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030457$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030458if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030459 passed=`expr $passed + 1`
30460else
30461 failed=`expr $failed + 1`
30462fi
30463
cristyb97f1002010-07-26 14:02:57 +000030464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30465$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030466if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030467 $as_echo_n "(cached) " >&6
30468else
30469 ac_check_lib_save_LIBS=$LIBS
30470LIBS="-ltiff $LIBS"
30471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30472/* end confdefs.h. */
30473
30474/* Override any GCC internal prototype to avoid an error.
30475 Use char because int might match the return type of a GCC
30476 builtin and then its argument prototype would still apply. */
30477#ifdef __cplusplus
30478extern "C"
30479#endif
30480char TIFFIsBigEndian ();
30481int
30482main ()
30483{
30484return TIFFIsBigEndian ();
30485 ;
30486 return 0;
30487}
30488_ACEOF
30489if ac_fn_c_try_link "$LINENO"; then :
30490 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30491else
30492 ac_cv_lib_tiff_TIFFIsBigEndian=no
30493fi
30494rm -f core conftest.err conftest.$ac_objext \
30495 conftest$ac_exeext conftest.$ac_ext
30496LIBS=$ac_check_lib_save_LIBS
30497fi
30498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30499$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030500if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030501 passed=`expr $passed + 1`
30502else
30503 failed=`expr $failed + 1`
30504fi
30505
cristy8b350f62009-11-15 23:12:43 +000030506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030507$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030508if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030509 $as_echo_n "(cached) " >&6
30510else
30511 ac_check_lib_save_LIBS=$LIBS
30512LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030514/* end confdefs.h. */
30515
30516/* Override any GCC internal prototype to avoid an error.
30517 Use char because int might match the return type of a GCC
30518 builtin and then its argument prototype would still apply. */
30519#ifdef __cplusplus
30520extern "C"
30521#endif
30522char TIFFIsByteSwapped ();
30523int
30524main ()
30525{
30526return TIFFIsByteSwapped ();
30527 ;
30528 return 0;
30529}
30530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030531if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030532 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30533else
cristy8b350f62009-11-15 23:12:43 +000030534 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030535fi
cristy8b350f62009-11-15 23:12:43 +000030536rm -f core conftest.err conftest.$ac_objext \
30537 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030538LIBS=$ac_check_lib_save_LIBS
30539fi
cristy8b350f62009-11-15 23:12:43 +000030540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030541$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030542if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030543 passed=`expr $passed + 1`
30544else
30545 failed=`expr $failed + 1`
30546fi
30547
cristy8b350f62009-11-15 23:12:43 +000030548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030549$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030550if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030551 $as_echo_n "(cached) " >&6
30552else
30553 ac_check_lib_save_LIBS=$LIBS
30554LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030556/* end confdefs.h. */
30557
30558/* Override any GCC internal prototype to avoid an error.
30559 Use char because int might match the return type of a GCC
30560 builtin and then its argument prototype would still apply. */
30561#ifdef __cplusplus
30562extern "C"
30563#endif
30564char TIFFReadRGBATile ();
30565int
30566main ()
30567{
30568return TIFFReadRGBATile ();
30569 ;
30570 return 0;
30571}
30572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030573if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030574 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30575else
cristy8b350f62009-11-15 23:12:43 +000030576 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030577fi
cristy8b350f62009-11-15 23:12:43 +000030578rm -f core conftest.err conftest.$ac_objext \
30579 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030580LIBS=$ac_check_lib_save_LIBS
30581fi
cristy8b350f62009-11-15 23:12:43 +000030582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030583$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030584if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030585 passed=`expr $passed + 1`
30586else
30587 failed=`expr $failed + 1`
30588fi
30589
cristy8b350f62009-11-15 23:12:43 +000030590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030592if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030593 $as_echo_n "(cached) " >&6
30594else
30595 ac_check_lib_save_LIBS=$LIBS
30596LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030598/* end confdefs.h. */
30599
30600/* Override any GCC internal prototype to avoid an error.
30601 Use char because int might match the return type of a GCC
30602 builtin and then its argument prototype would still apply. */
30603#ifdef __cplusplus
30604extern "C"
30605#endif
30606char TIFFReadRGBAStrip ();
30607int
30608main ()
30609{
30610return TIFFReadRGBAStrip ();
30611 ;
30612 return 0;
30613}
30614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030615if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030616 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30617else
cristy8b350f62009-11-15 23:12:43 +000030618 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000030619fi
cristy8b350f62009-11-15 23:12:43 +000030620rm -f core conftest.err conftest.$ac_objext \
30621 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030622LIBS=$ac_check_lib_save_LIBS
30623fi
cristy8b350f62009-11-15 23:12:43 +000030624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000030625$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000030626if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030627 passed=`expr $passed + 1`
30628else
30629 failed=`expr $failed + 1`
30630fi
30631
cristy8b350f62009-11-15 23:12:43 +000030632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030633$as_echo_n "checking if TIFF package is complete... " >&6; }
30634 if test $passed -gt 0; then
30635 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030637$as_echo "no -- some components failed test" >&6; }
30638 have_tiff='no (failed tests)'
30639 else
30640 TIFF_LIBS='-ltiff'
30641 LIBS="$TIFF_LIBS $LIBS"
30642
cristy8b350f62009-11-15 23:12:43 +000030643$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030644
cristy8b350f62009-11-15 23:12:43 +000030645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030646$as_echo "yes" >&6; }
30647 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000030648 for ac_header in tiffconf.h
30649do :
30650 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030651if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030652 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030653#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000030654_ACEOF
30655
30656fi
30657
30658done
30659
cristy8b350f62009-11-15 23:12:43 +000030660 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000030661 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30662 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000030663do :
30664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30665ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000030666if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000030667 cat >>confdefs.h <<_ACEOF
30668#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30669_ACEOF
30670
30671fi
30672done
30673
30674 fi
30675 else
cristy8b350f62009-11-15 23:12:43 +000030676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677$as_echo "no" >&6; }
30678 fi
30679fi
cristy73bd4a52010-10-05 11:24:23 +000030680 if test "$have_tiff" = 'yes'; then
30681 TIFF_DELEGATE_TRUE=
30682 TIFF_DELEGATE_FALSE='#'
30683else
30684 TIFF_DELEGATE_TRUE='#'
30685 TIFF_DELEGATE_FALSE=
30686fi
30687
cristy3ed852e2009-09-05 21:47:34 +000030688
30689
30690
30691#
cristyb1860752011-03-14 00:27:46 +000030692# Check for WEBP delegate library.
30693#
30694
30695# Check whether --with-webp was given.
30696if test "${with_webp+set}" = set; then :
30697 withval=$with_webp; with_webp=$withval
30698else
30699 with_webp='yes'
30700fi
30701
30702
30703if test "$with_webp" != 'yes'; then
30704 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30705fi
30706
30707have_webp='no'
30708WEBP_LIBS=''
30709if test "$with_webp" != 'no'; then
30710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30711$as_echo "-------------------------------------------------------------" >&6; }
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
30713$as_echo_n "checking for WEBP... " >&6; }
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30715$as_echo "" >&6; }
30716 failed=0
30717 passed=0
30718 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
30719if test "x$ac_cv_header_webp_decode_h" = xyes; then :
30720 passed=`expr $passed + 1`
30721else
30722 failed=`expr $failed + 1`
30723fi
30724
30725
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
30727$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
30728if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
30729 $as_echo_n "(cached) " >&6
30730else
30731 ac_check_lib_save_LIBS=$LIBS
30732LIBS="-lwebp $LIBS"
30733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30734/* end confdefs.h. */
30735
30736/* Override any GCC internal prototype to avoid an error.
30737 Use char because int might match the return type of a GCC
30738 builtin and then its argument prototype would still apply. */
30739#ifdef __cplusplus
30740extern "C"
30741#endif
30742char WebPDecodeRGB ();
30743int
30744main ()
30745{
30746return WebPDecodeRGB ();
30747 ;
30748 return 0;
30749}
30750_ACEOF
30751if ac_fn_c_try_link "$LINENO"; then :
30752 ac_cv_lib_webp_WebPDecodeRGB=yes
30753else
30754 ac_cv_lib_webp_WebPDecodeRGB=no
30755fi
30756rm -f core conftest.err conftest.$ac_objext \
30757 conftest$ac_exeext conftest.$ac_ext
30758LIBS=$ac_check_lib_save_LIBS
30759fi
30760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30761$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30762if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30763 passed=`expr $passed + 1`
30764else
30765 failed=`expr $failed + 1`
30766fi
30767
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30769$as_echo_n "checking if WEBP package is complete... " >&6; }
30770 if test $passed -gt 0; then
30771 if test $failed -gt 0; then
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30773$as_echo "no -- some components failed test" >&6; }
30774 have_webp='no (failed tests)'
30775 else
30776 WEBP_LIBS='-lwebp'
30777 LIBS="$WEBP_LIBS $LIBS"
30778
30779$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30780
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30782$as_echo "yes" >&6; }
30783 have_webp='yes'
30784 fi
30785 else
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30787$as_echo "no" >&6; }
30788 fi
30789fi
30790 if test "$have_webp" = 'yes'; then
30791 WEBP_DELEGATE_TRUE=
30792 WEBP_DELEGATE_FALSE='#'
30793else
30794 WEBP_DELEGATE_TRUE='#'
30795 WEBP_DELEGATE_FALSE=
30796fi
30797
30798
30799
30800
30801#
cristy3ed852e2009-09-05 21:47:34 +000030802# Set Windows font directory.
30803#
30804
30805# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030806if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030807 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30808else
30809 with_windows_font_dir=''
30810fi
30811
30812if test "$with_windows_font_dir" != '' ; then
30813 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30814fi
30815
30816
30817#
30818# Check for WMF delegate library.
30819#
30820
30821# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030822if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030823 withval=$with_wmf; with_wmf=$withval
30824else
cristy8d63d1d2010-01-06 20:38:37 +000030825 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030826fi
30827
30828
30829if test "$with_wmf" != 'yes'; then
30830 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30831fi
30832
30833have_wmf='no'
30834WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030835if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030839$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030841$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000030842 failed=0
30843 passed=0
30844 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030845if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030846 passed=`expr $passed + 1`
30847else
30848 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030849fi
30850
30851
cristy735e8942010-04-02 20:32:57 +000030852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30853$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030854if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030855 $as_echo_n "(cached) " >&6
30856else
30857 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000030858LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030860/* end confdefs.h. */
30861
30862/* Override any GCC internal prototype to avoid an error.
30863 Use char because int might match the return type of a GCC
30864 builtin and then its argument prototype would still apply. */
30865#ifdef __cplusplus
30866extern "C"
30867#endif
cristy735e8942010-04-02 20:32:57 +000030868char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030869int
30870main ()
30871{
cristy735e8942010-04-02 20:32:57 +000030872return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030873 ;
30874 return 0;
30875}
30876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030877if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030878 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030879else
cristy735e8942010-04-02 20:32:57 +000030880 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030881fi
cristy8b350f62009-11-15 23:12:43 +000030882rm -f core conftest.err conftest.$ac_objext \
30883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030884LIBS=$ac_check_lib_save_LIBS
30885fi
cristy735e8942010-04-02 20:32:57 +000030886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30887$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030888if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030889 passed=`expr $passed + 1`
30890else
30891 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030892fi
30893
cristy735e8942010-04-02 20:32:57 +000030894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30895$as_echo_n "checking if WMF package is complete... " >&6; }
30896 if test $passed -gt 0; then
30897 if test $failed -gt 0; then
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30899$as_echo "no -- some components failed test" >&6; }
30900 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030901 else
cristy735e8942010-04-02 20:32:57 +000030902 WMF_LIBS='-lwmf -lwmflite'
30903 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030904
cristy8b350f62009-11-15 23:12:43 +000030905$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030906
cristy735e8942010-04-02 20:32:57 +000030907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030908$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030909 have_wmf='yes'
30910 fi
cristy3ed852e2009-09-05 21:47:34 +000030911 else
cristy8b350f62009-11-15 23:12:43 +000030912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030913$as_echo "no" >&6; }
30914 fi
30915fi
cristy73bd4a52010-10-05 11:24:23 +000030916 if test "$have_wmf" = 'yes'; then
30917 WMF_DELEGATE_TRUE=
30918 WMF_DELEGATE_FALSE='#'
30919else
30920 WMF_DELEGATE_TRUE='#'
30921 WMF_DELEGATE_FALSE=
30922fi
30923
cristy3ed852e2009-09-05 21:47:34 +000030924
30925
30926
30927
cristy735e8942010-04-02 20:32:57 +000030928
cristy3ed852e2009-09-05 21:47:34 +000030929#
30930# Check for XML delegate library.
30931#
30932
30933# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030934if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030935 withval=$with_xml; with_xml=$withval
30936else
30937 with_xml=$have_x
30938fi
30939
30940
30941if test "$with_xml" != 'yes' ; then
30942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30943fi
30944
30945have_xml='no'
30946XML_LIBS=''
30947if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030949$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030951$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030953$as_echo "" >&6; }
30954 PERSIST_LDFLAGS=$LDFLAGS
30955 PERSIST_CPPFLAGS=$CPPFLAGS
30956 xml2_config=''
30957 for ac_prog in xml2-config
30958do
30959 # Extract the first word of "$ac_prog", so it can be a program name with args.
30960set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030963if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030964 $as_echo_n "(cached) " >&6
30965else
30966 if test -n "$xml2_config"; then
30967 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30968else
30969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30970for as_dir in $PATH
30971do
30972 IFS=$as_save_IFS
30973 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30976 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030978 break 2
30979 fi
30980done
cristy8b350f62009-11-15 23:12:43 +000030981 done
cristy3ed852e2009-09-05 21:47:34 +000030982IFS=$as_save_IFS
30983
30984fi
30985fi
30986xml2_config=$ac_cv_prog_xml2_config
30987if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030989$as_echo "$xml2_config" >&6; }
30990else
cristy8b350f62009-11-15 23:12:43 +000030991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030992$as_echo "no" >&6; }
30993fi
30994
30995
30996 test -n "$xml2_config" && break
30997done
30998 if test -n "$xml2_config"; then
30999 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31000 # the shared library installed under /usr/lib, whereas the package
31001 # installs itself under $prefix/libxml and $prefix/lib.
31002 xml2_prefix=`xml2-config --prefix`
31003 if test -d "${xml2_prefix}/include/libxml2"; then
31004 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31005 fi
31006 if test "${xml2_prefix}" != '/usr'; then
31007 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31008 fi
31009 fi
31010 failed=0
31011 passed=0
cristy8b350f62009-11-15 23:12:43 +000031012 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031013if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031014 passed=`expr $passed + 1`
31015else
31016 failed=`expr $failed + 1`
31017fi
31018
31019
cristy8b350f62009-11-15 23:12:43 +000031020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000031021$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031022if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031023 $as_echo_n "(cached) " >&6
31024else
31025 ac_check_lib_save_LIBS=$LIBS
31026LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031028/* end confdefs.h. */
31029
31030/* Override any GCC internal prototype to avoid an error.
31031 Use char because int might match the return type of a GCC
31032 builtin and then its argument prototype would still apply. */
31033#ifdef __cplusplus
31034extern "C"
31035#endif
31036char xmlParseExternalEntity ();
31037int
31038main ()
31039{
31040return xmlParseExternalEntity ();
31041 ;
31042 return 0;
31043}
31044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031045if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031046 ac_cv_lib_xml2_xmlParseExternalEntity=yes
31047else
cristy8b350f62009-11-15 23:12:43 +000031048 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000031049fi
cristy8b350f62009-11-15 23:12:43 +000031050rm -f core conftest.err conftest.$ac_objext \
31051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031052LIBS=$ac_check_lib_save_LIBS
31053fi
cristy8b350f62009-11-15 23:12:43 +000031054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000031055$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000031056if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031057 passed=`expr $passed + 1`
31058else
31059 failed=`expr $failed + 1`
31060fi
31061
cristy8b350f62009-11-15 23:12:43 +000031062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031063$as_echo_n "checking if XML package is complete... " >&6; }
31064 if test $passed -gt 0; then
31065 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000031066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067$as_echo "no -- some components failed test" >&6; }
31068 have_xml='no (failed tests)'
31069 LDFLAGS="$PERSIST_LDFLAGS"
31070 CPPFLAGS="$PERSIST_CPPFLAGS"
31071 else
31072 XML_LIBS='-lxml2'
31073 LIBS="$XML_LIBS $LIBS"
31074
cristy8b350f62009-11-15 23:12:43 +000031075$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031076
cristy8b350f62009-11-15 23:12:43 +000031077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000031078$as_echo "yes" >&6; }
31079 have_xml='yes'
31080 fi
31081 else
cristy8b350f62009-11-15 23:12:43 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031083$as_echo "no" >&6; }
31084 fi
31085fi
cristy73bd4a52010-10-05 11:24:23 +000031086 if test "$have_xml" = 'yes'; then
31087 XML_DELEGATE_TRUE=
31088 XML_DELEGATE_FALSE='#'
31089else
31090 XML_DELEGATE_TRUE='#'
31091 XML_DELEGATE_FALSE=
31092fi
31093
cristy3ed852e2009-09-05 21:47:34 +000031094
31095
31096
31097# Substitute compiler name to build/link PerlMagick
31098#
31099
31100
31101#
31102# Configure install Paths
31103#
31104
31105# Subdirectory under lib to place ImageMagick lib files
31106LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31107
31108cat >>confdefs.h <<_ACEOF
31109#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31110_ACEOF
31111
31112
31113# Path to ImageMagick bin directory
31114EXECUTABLE_PATH="${BIN_DIR}"
31115DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31116case "${build_os}" in
31117 mingw* )
31118 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31119 ;;
31120esac
31121
31122cat >>confdefs.h <<_ACEOF
31123#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31124_ACEOF
31125
31126
31127
31128# Path to ImageMagick lib
31129LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31130DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31131case "${build_os}" in
31132 mingw* )
31133 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31134 ;;
31135esac
31136
31137cat >>confdefs.h <<_ACEOF
31138#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31139_ACEOF
31140
31141
31142
cristy3ed852e2009-09-05 21:47:34 +000031143#
31144# Subdirectory under lib to place ImageMagick coder module files
31145CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31146
31147cat >>confdefs.h <<_ACEOF
31148#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31149_ACEOF
31150
31151CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31152DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31153case "${build_os}" in
31154 mingw* )
31155 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31156 ;;
31157esac
31158
31159cat >>confdefs.h <<_ACEOF
31160#define CODER_PATH "$DEFINE_CODER_PATH"
31161_ACEOF
31162
31163
31164
31165#
31166# Subdirectory under lib to place ImageMagick filter module files
31167FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31168
31169cat >>confdefs.h <<_ACEOF
31170#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31171_ACEOF
31172
31173FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31174DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31175case "${build_os}" in
31176 mingw* )
31177 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31178 ;;
31179esac
31180
31181cat >>confdefs.h <<_ACEOF
31182#define FILTER_PATH "$DEFINE_FILTER_PATH"
31183_ACEOF
31184
31185
31186
31187#
31188# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031189DOCUMENTATION_RELATIVE_PATH=""
31190DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31191DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031192case "${build_os}" in
31193 mingw* )
31194 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31195 ;;
31196esac
31197
31198cat >>confdefs.h <<_ACEOF
31199#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31200_ACEOF
31201
31202
31203
cristy3cf8a722011-03-20 23:32:22 +000031204# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031205CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031206
31207cat >>confdefs.h <<_ACEOF
31208#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31209_ACEOF
31210
31211CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31212DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31213case "${build_os}" in
31214 mingw* )
31215 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31216 ;;
31217esac
31218
31219cat >>confdefs.h <<_ACEOF
31220#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31221_ACEOF
31222
31223
31224
31225# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031226SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031227
31228cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031229#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031230_ACEOF
31231
cristy4f820712011-04-01 12:35:43 +000031232SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31233DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031234case "${build_os}" in
31235 mingw* )
cristy4f820712011-04-01 12:35:43 +000031236 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031237 ;;
31238esac
31239
31240cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031241#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031242_ACEOF
31243
31244
31245
31246#
31247# program_transform_name is formed for use in a Makefile, so create a
31248# modified version for use in a shell script.
31249configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31250
31251# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000031252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031253$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031255$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031257$as_echo "" >&6; }
31258AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031259BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031260BZIPDelegateDefault='bzip2'
31261BrowseDelegateDefault='xdg-open'
31262CGMDecodeDelegateDefault='ralcgm'
31263CatDelegateDefault='cat'
31264DNGDecodeDelegateDefault='ufraw-batch'
31265GVCDecodeDelegateDefault='dot'
31266DVIDecodeDelegateDefault='dvips'
31267EchoDelegateDefault='echo'
31268EditorDelegateDefault='xterm'
31269FIGDecodeDelegateDefault='fig2dev'
31270ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31271DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31272MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31273GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031274HPGLDecodeDelegateDefault='hp2xx'
31275HTMLDecodeDelegateDefault='html2ps'
31276ILBMDecodeDelegateDefault='ilbmtoppm'
31277ILBMEncodeDelegateDefault='ppmtoilbm'
31278LPDelegateDefault='lp'
31279LPRDelegateDefault='lpr'
31280LZWDecodeDelegateDefault='uncompress'
31281LZWEncodeDelegateDefault='compress'
31282LaunchDelegateDefault='gimp'
31283MANDelegateDefault='groff'
31284MPEGDecodeDelegateDefault='ffmpeg'
31285MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031286MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031287MVDelegateDefault='mv'
31288PCLDelegateDefault='pcl6'
31289PGPDecodeDelegateDefault='pgpv'
31290POVDelegateDefault='povray'
31291if test "$native_win32_build" = 'yes'; then
31292 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031293elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031294 PSDelegateDefault='gsc'
31295else
31296 PSDelegateDefault='gs'
31297fi
31298RLEEncodeDelegateDefault='rawtorle'
31299RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031300RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031301SCANDecodeDelegateDefault='scanimage'
31302TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031303UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031304WMFDecodeDelegateDefault='wmf2eps'
31305WWWDecodeDelegateDefault='curl'
31306XPSDelegateDefault='gxps'
31307ZipDelegateDefault='gzip'
31308
31309# Search for delegates
31310# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31311set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031313$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031314if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031315 $as_echo_n "(cached) " >&6
31316else
31317 case $AutotraceDecodeDelegate in
31318 [\\/]* | ?:[\\/]*)
31319 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31320 ;;
31321 *)
31322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31323for as_dir in $PATH
31324do
31325 IFS=$as_save_IFS
31326 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31329 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031331 break 2
31332 fi
31333done
cristy8b350f62009-11-15 23:12:43 +000031334 done
cristy3ed852e2009-09-05 21:47:34 +000031335IFS=$as_save_IFS
31336
31337 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31338 ;;
31339esac
31340fi
31341AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31342if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo "$AutotraceDecodeDelegate" >&6; }
31345else
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "no" >&6; }
31348fi
31349
31350
cristy3ed852e2009-09-05 21:47:34 +000031351# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31352set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031354$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031355if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031356 $as_echo_n "(cached) " >&6
31357else
31358 case $BlenderDecodeDelegate in
31359 [\\/]* | ?:[\\/]*)
31360 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31361 ;;
31362 *)
31363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31364for as_dir in $PATH
31365do
31366 IFS=$as_save_IFS
31367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31370 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031372 break 2
31373 fi
31374done
cristy8b350f62009-11-15 23:12:43 +000031375 done
cristy3ed852e2009-09-05 21:47:34 +000031376IFS=$as_save_IFS
31377
31378 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31379 ;;
31380esac
31381fi
31382BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31383if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385$as_echo "$BlenderDecodeDelegate" >&6; }
31386else
cristy8b350f62009-11-15 23:12:43 +000031387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031388$as_echo "no" >&6; }
31389fi
31390
31391
31392# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31393set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031396if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031397 $as_echo_n "(cached) " >&6
31398else
31399 case $BZIPDelegate in
31400 [\\/]* | ?:[\\/]*)
31401 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31402 ;;
31403 *)
31404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31405for as_dir in $PATH
31406do
31407 IFS=$as_save_IFS
31408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31411 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413 break 2
31414 fi
31415done
cristy8b350f62009-11-15 23:12:43 +000031416 done
cristy3ed852e2009-09-05 21:47:34 +000031417IFS=$as_save_IFS
31418
31419 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31420 ;;
31421esac
31422fi
31423BZIPDelegate=$ac_cv_path_BZIPDelegate
31424if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo "$BZIPDelegate" >&6; }
31427else
cristy8b350f62009-11-15 23:12:43 +000031428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031429$as_echo "no" >&6; }
31430fi
31431
31432
31433# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31434set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031437if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031438 $as_echo_n "(cached) " >&6
31439else
31440 case $BrowseDelegate in
31441 [\\/]* | ?:[\\/]*)
31442 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31443 ;;
31444 *)
31445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31446for as_dir in $PATH
31447do
31448 IFS=$as_save_IFS
31449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31452 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031454 break 2
31455 fi
31456done
cristy8b350f62009-11-15 23:12:43 +000031457 done
cristy3ed852e2009-09-05 21:47:34 +000031458IFS=$as_save_IFS
31459
31460 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31461 ;;
31462esac
31463fi
31464BrowseDelegate=$ac_cv_path_BrowseDelegate
31465if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031467$as_echo "$BrowseDelegate" >&6; }
31468else
cristy8b350f62009-11-15 23:12:43 +000031469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031470$as_echo "no" >&6; }
31471fi
31472
31473
31474# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31475set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031478if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031479 $as_echo_n "(cached) " >&6
31480else
31481 case $CGMDecodeDelegate in
31482 [\\/]* | ?:[\\/]*)
31483 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31484 ;;
31485 *)
31486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31487for as_dir in $PATH
31488do
31489 IFS=$as_save_IFS
31490 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31493 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031495 break 2
31496 fi
31497done
cristy8b350f62009-11-15 23:12:43 +000031498 done
cristy3ed852e2009-09-05 21:47:34 +000031499IFS=$as_save_IFS
31500
31501 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31502 ;;
31503esac
31504fi
31505CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31506if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo "$CGMDecodeDelegate" >&6; }
31509else
cristy8b350f62009-11-15 23:12:43 +000031510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031511$as_echo "no" >&6; }
31512fi
31513
31514
31515# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31516set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031519if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031520 $as_echo_n "(cached) " >&6
31521else
31522 case $CatDelegate in
31523 [\\/]* | ?:[\\/]*)
31524 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31525 ;;
31526 *)
31527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31528for as_dir in $PATH
31529do
31530 IFS=$as_save_IFS
31531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31534 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031536 break 2
31537 fi
31538done
cristy8b350f62009-11-15 23:12:43 +000031539 done
cristy3ed852e2009-09-05 21:47:34 +000031540IFS=$as_save_IFS
31541
31542 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31543 ;;
31544esac
31545fi
31546CatDelegate=$ac_cv_path_CatDelegate
31547if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031549$as_echo "$CatDelegate" >&6; }
31550else
cristy8b350f62009-11-15 23:12:43 +000031551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031552$as_echo "no" >&6; }
31553fi
31554
31555
31556# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31557set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031559$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031560if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031561 $as_echo_n "(cached) " >&6
31562else
31563 case $DNGDecodeDelegate in
31564 [\\/]* | ?:[\\/]*)
31565 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31566 ;;
31567 *)
31568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31569for as_dir in $PATH
31570do
31571 IFS=$as_save_IFS
31572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31575 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031577 break 2
31578 fi
31579done
cristy8b350f62009-11-15 23:12:43 +000031580 done
cristy3ed852e2009-09-05 21:47:34 +000031581IFS=$as_save_IFS
31582
31583 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31584 ;;
31585esac
31586fi
31587DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31588if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031590$as_echo "$DNGDecodeDelegate" >&6; }
31591else
cristy8b350f62009-11-15 23:12:43 +000031592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031593$as_echo "no" >&6; }
31594fi
31595
31596
31597# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31598set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031601if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031602 $as_echo_n "(cached) " >&6
31603else
31604 case $GVCDecodeDelegate in
31605 [\\/]* | ?:[\\/]*)
31606 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31607 ;;
31608 *)
31609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31610for as_dir in $PATH
31611do
31612 IFS=$as_save_IFS
31613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31616 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031618 break 2
31619 fi
31620done
cristy8b350f62009-11-15 23:12:43 +000031621 done
cristy3ed852e2009-09-05 21:47:34 +000031622IFS=$as_save_IFS
31623
31624 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31625 ;;
31626esac
31627fi
31628GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31629if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031631$as_echo "$GVCDecodeDelegate" >&6; }
31632else
cristy8b350f62009-11-15 23:12:43 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031634$as_echo "no" >&6; }
31635fi
31636
31637
31638# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31639set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031641$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031642if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031643 $as_echo_n "(cached) " >&6
31644else
31645 case $DVIDecodeDelegate in
31646 [\\/]* | ?:[\\/]*)
31647 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31648 ;;
31649 *)
31650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31651for as_dir in $PATH
31652do
31653 IFS=$as_save_IFS
31654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31657 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031659 break 2
31660 fi
31661done
cristy8b350f62009-11-15 23:12:43 +000031662 done
cristy3ed852e2009-09-05 21:47:34 +000031663IFS=$as_save_IFS
31664
31665 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31666 ;;
31667esac
31668fi
31669DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31670if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031672$as_echo "$DVIDecodeDelegate" >&6; }
31673else
cristy8b350f62009-11-15 23:12:43 +000031674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031675$as_echo "no" >&6; }
31676fi
31677
31678
31679# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31680set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031683if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031684 $as_echo_n "(cached) " >&6
31685else
31686 case $EchoDelegate in
31687 [\\/]* | ?:[\\/]*)
31688 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31689 ;;
31690 *)
31691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31692for as_dir in $PATH
31693do
31694 IFS=$as_save_IFS
31695 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031696 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31698 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031700 break 2
31701 fi
31702done
cristy8b350f62009-11-15 23:12:43 +000031703 done
cristy3ed852e2009-09-05 21:47:34 +000031704IFS=$as_save_IFS
31705
31706 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31707 ;;
31708esac
31709fi
31710EchoDelegate=$ac_cv_path_EchoDelegate
31711if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031713$as_echo "$EchoDelegate" >&6; }
31714else
cristy8b350f62009-11-15 23:12:43 +000031715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031716$as_echo "no" >&6; }
31717fi
31718
31719
31720# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
31721set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031724if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031725 $as_echo_n "(cached) " >&6
31726else
31727 case $EditorDelegate in
31728 [\\/]* | ?:[\\/]*)
31729 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
31730 ;;
31731 *)
31732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31733for as_dir in $PATH
31734do
31735 IFS=$as_save_IFS
31736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31739 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741 break 2
31742 fi
31743done
cristy8b350f62009-11-15 23:12:43 +000031744 done
cristy3ed852e2009-09-05 21:47:34 +000031745IFS=$as_save_IFS
31746
31747 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31748 ;;
31749esac
31750fi
31751EditorDelegate=$ac_cv_path_EditorDelegate
31752if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031754$as_echo "$EditorDelegate" >&6; }
31755else
cristy8b350f62009-11-15 23:12:43 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo "no" >&6; }
31758fi
31759
31760
31761# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31762set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031765if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031766 $as_echo_n "(cached) " >&6
31767else
31768 case $FIGDecodeDelegate in
31769 [\\/]* | ?:[\\/]*)
31770 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31771 ;;
31772 *)
31773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31774for as_dir in $PATH
31775do
31776 IFS=$as_save_IFS
31777 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31780 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031782 break 2
31783 fi
31784done
cristy8b350f62009-11-15 23:12:43 +000031785 done
cristy3ed852e2009-09-05 21:47:34 +000031786IFS=$as_save_IFS
31787
31788 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31789 ;;
31790esac
31791fi
31792FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31793if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031795$as_echo "$FIGDecodeDelegate" >&6; }
31796else
cristy8b350f62009-11-15 23:12:43 +000031797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031798$as_echo "no" >&6; }
31799fi
31800
31801
31802# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31803set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031805$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031806if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031807 $as_echo_n "(cached) " >&6
31808else
31809 case $ConvertDelegate in
31810 [\\/]* | ?:[\\/]*)
31811 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31812 ;;
31813 *)
31814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31815for as_dir in $PATH
31816do
31817 IFS=$as_save_IFS
31818 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31821 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031823 break 2
31824 fi
31825done
cristy8b350f62009-11-15 23:12:43 +000031826 done
cristy3ed852e2009-09-05 21:47:34 +000031827IFS=$as_save_IFS
31828
31829 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31830 ;;
31831esac
31832fi
31833ConvertDelegate=$ac_cv_path_ConvertDelegate
31834if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836$as_echo "$ConvertDelegate" >&6; }
31837else
cristy8b350f62009-11-15 23:12:43 +000031838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031839$as_echo "no" >&6; }
31840fi
31841
31842
31843# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31844set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031847if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031848 $as_echo_n "(cached) " >&6
31849else
31850 case $DisplayDelegate in
31851 [\\/]* | ?:[\\/]*)
31852 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31853 ;;
31854 *)
31855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31856for as_dir in $PATH
31857do
31858 IFS=$as_save_IFS
31859 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31862 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031864 break 2
31865 fi
31866done
cristy8b350f62009-11-15 23:12:43 +000031867 done
cristy3ed852e2009-09-05 21:47:34 +000031868IFS=$as_save_IFS
31869
31870 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31871 ;;
31872esac
31873fi
31874DisplayDelegate=$ac_cv_path_DisplayDelegate
31875if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031877$as_echo "$DisplayDelegate" >&6; }
31878else
cristy8b350f62009-11-15 23:12:43 +000031879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031880$as_echo "no" >&6; }
31881fi
31882
31883
31884# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31885set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031887$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031888if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031889 $as_echo_n "(cached) " >&6
31890else
31891 case $MogrifyDelegate in
31892 [\\/]* | ?:[\\/]*)
31893 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31894 ;;
31895 *)
31896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31897for as_dir in $PATH
31898do
31899 IFS=$as_save_IFS
31900 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31903 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031905 break 2
31906 fi
31907done
cristy8b350f62009-11-15 23:12:43 +000031908 done
cristy3ed852e2009-09-05 21:47:34 +000031909IFS=$as_save_IFS
31910
31911 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31912 ;;
31913esac
31914fi
31915MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31916if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031918$as_echo "$MogrifyDelegate" >&6; }
31919else
cristy8b350f62009-11-15 23:12:43 +000031920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031921$as_echo "no" >&6; }
31922fi
31923
31924
31925# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31926set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031929if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031930 $as_echo_n "(cached) " >&6
31931else
31932 case $GnuplotDecodeDelegate in
31933 [\\/]* | ?:[\\/]*)
31934 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31935 ;;
31936 *)
31937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938for as_dir in $PATH
31939do
31940 IFS=$as_save_IFS
31941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31944 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031946 break 2
31947 fi
31948done
cristy8b350f62009-11-15 23:12:43 +000031949 done
cristy3ed852e2009-09-05 21:47:34 +000031950IFS=$as_save_IFS
31951
31952 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31953 ;;
31954esac
31955fi
31956GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31957if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "$GnuplotDecodeDelegate" >&6; }
31960else
cristy8b350f62009-11-15 23:12:43 +000031961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031962$as_echo "no" >&6; }
31963fi
31964
31965
cristy3ed852e2009-09-05 21:47:34 +000031966# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31967set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031970if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031971 $as_echo_n "(cached) " >&6
31972else
31973 case $HPGLDecodeDelegate in
31974 [\\/]* | ?:[\\/]*)
31975 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31976 ;;
31977 *)
31978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31979for as_dir in $PATH
31980do
31981 IFS=$as_save_IFS
31982 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31985 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031987 break 2
31988 fi
31989done
cristy8b350f62009-11-15 23:12:43 +000031990 done
cristy3ed852e2009-09-05 21:47:34 +000031991IFS=$as_save_IFS
31992
31993 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31994 ;;
31995esac
31996fi
31997HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31998if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000$as_echo "$HPGLDecodeDelegate" >&6; }
32001else
cristy8b350f62009-11-15 23:12:43 +000032002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032003$as_echo "no" >&6; }
32004fi
32005
32006
32007# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32008set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032010$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032011if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032012 $as_echo_n "(cached) " >&6
32013else
32014 case $HTMLDecodeDelegate in
32015 [\\/]* | ?:[\\/]*)
32016 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32017 ;;
32018 *)
32019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32020for as_dir in $PATH
32021do
32022 IFS=$as_save_IFS
32023 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32026 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032028 break 2
32029 fi
32030done
cristy8b350f62009-11-15 23:12:43 +000032031 done
cristy3ed852e2009-09-05 21:47:34 +000032032IFS=$as_save_IFS
32033
32034 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32035 ;;
32036esac
32037fi
32038HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32039if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032041$as_echo "$HTMLDecodeDelegate" >&6; }
32042else
cristy8b350f62009-11-15 23:12:43 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo "no" >&6; }
32045fi
32046
32047
32048# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32049set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032052if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032053 $as_echo_n "(cached) " >&6
32054else
32055 case $ILBMDecodeDelegate in
32056 [\\/]* | ?:[\\/]*)
32057 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32058 ;;
32059 *)
32060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32061for as_dir in $PATH
32062do
32063 IFS=$as_save_IFS
32064 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32067 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032069 break 2
32070 fi
32071done
cristy8b350f62009-11-15 23:12:43 +000032072 done
cristy3ed852e2009-09-05 21:47:34 +000032073IFS=$as_save_IFS
32074
32075 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32076 ;;
32077esac
32078fi
32079ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32080if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032082$as_echo "$ILBMDecodeDelegate" >&6; }
32083else
cristy8b350f62009-11-15 23:12:43 +000032084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085$as_echo "no" >&6; }
32086fi
32087
32088
32089# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32090set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032092$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032093if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032094 $as_echo_n "(cached) " >&6
32095else
32096 case $ILBMEncodeDelegate in
32097 [\\/]* | ?:[\\/]*)
32098 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32099 ;;
32100 *)
32101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32102for as_dir in $PATH
32103do
32104 IFS=$as_save_IFS
32105 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32108 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032110 break 2
32111 fi
32112done
cristy8b350f62009-11-15 23:12:43 +000032113 done
cristy3ed852e2009-09-05 21:47:34 +000032114IFS=$as_save_IFS
32115
32116 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32117 ;;
32118esac
32119fi
32120ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32121if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032123$as_echo "$ILBMEncodeDelegate" >&6; }
32124else
cristy8b350f62009-11-15 23:12:43 +000032125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032126$as_echo "no" >&6; }
32127fi
32128
32129
32130# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32131set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032134if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032135 $as_echo_n "(cached) " >&6
32136else
32137 case $LPDelegate in
32138 [\\/]* | ?:[\\/]*)
32139 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32140 ;;
32141 *)
32142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32143for as_dir in $PATH
32144do
32145 IFS=$as_save_IFS
32146 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32149 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032151 break 2
32152 fi
32153done
cristy8b350f62009-11-15 23:12:43 +000032154 done
cristy3ed852e2009-09-05 21:47:34 +000032155IFS=$as_save_IFS
32156
32157 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32158 ;;
32159esac
32160fi
32161LPDelegate=$ac_cv_path_LPDelegate
32162if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo "$LPDelegate" >&6; }
32165else
cristy8b350f62009-11-15 23:12:43 +000032166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032167$as_echo "no" >&6; }
32168fi
32169
32170
32171# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32172set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032175if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032176 $as_echo_n "(cached) " >&6
32177else
32178 case $LPRDelegate in
32179 [\\/]* | ?:[\\/]*)
32180 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32181 ;;
32182 *)
32183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32184for as_dir in $PATH
32185do
32186 IFS=$as_save_IFS
32187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32190 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032192 break 2
32193 fi
32194done
cristy8b350f62009-11-15 23:12:43 +000032195 done
cristy3ed852e2009-09-05 21:47:34 +000032196IFS=$as_save_IFS
32197
32198 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32199 ;;
32200esac
32201fi
32202LPRDelegate=$ac_cv_path_LPRDelegate
32203if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032205$as_echo "$LPRDelegate" >&6; }
32206else
cristy8b350f62009-11-15 23:12:43 +000032207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032208$as_echo "no" >&6; }
32209fi
32210
32211
32212# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32213set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032216if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032217 $as_echo_n "(cached) " >&6
32218else
32219 case $LZWDecodeDelegate in
32220 [\\/]* | ?:[\\/]*)
32221 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32222 ;;
32223 *)
32224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32225for as_dir in $PATH
32226do
32227 IFS=$as_save_IFS
32228 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32231 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032233 break 2
32234 fi
32235done
cristy8b350f62009-11-15 23:12:43 +000032236 done
cristy3ed852e2009-09-05 21:47:34 +000032237IFS=$as_save_IFS
32238
32239 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32240 ;;
32241esac
32242fi
32243LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32244if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032246$as_echo "$LZWDecodeDelegate" >&6; }
32247else
cristy8b350f62009-11-15 23:12:43 +000032248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032249$as_echo "no" >&6; }
32250fi
32251
32252
32253# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32254set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032257if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032258 $as_echo_n "(cached) " >&6
32259else
32260 case $LZWEncodeDelegate in
32261 [\\/]* | ?:[\\/]*)
32262 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32263 ;;
32264 *)
32265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32266for as_dir in $PATH
32267do
32268 IFS=$as_save_IFS
32269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32272 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274 break 2
32275 fi
32276done
cristy8b350f62009-11-15 23:12:43 +000032277 done
cristy3ed852e2009-09-05 21:47:34 +000032278IFS=$as_save_IFS
32279
32280 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32281 ;;
32282esac
32283fi
32284LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32285if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032287$as_echo "$LZWEncodeDelegate" >&6; }
32288else
cristy8b350f62009-11-15 23:12:43 +000032289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032290$as_echo "no" >&6; }
32291fi
32292
32293
32294# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32295set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032298if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032299 $as_echo_n "(cached) " >&6
32300else
32301 case $LaunchDelegate in
32302 [\\/]* | ?:[\\/]*)
32303 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32304 ;;
32305 *)
32306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32307for as_dir in $PATH
32308do
32309 IFS=$as_save_IFS
32310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32313 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315 break 2
32316 fi
32317done
cristy8b350f62009-11-15 23:12:43 +000032318 done
cristy3ed852e2009-09-05 21:47:34 +000032319IFS=$as_save_IFS
32320
32321 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32322 ;;
32323esac
32324fi
32325LaunchDelegate=$ac_cv_path_LaunchDelegate
32326if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032328$as_echo "$LaunchDelegate" >&6; }
32329else
cristy8b350f62009-11-15 23:12:43 +000032330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032331$as_echo "no" >&6; }
32332fi
32333
32334
32335# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32336set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032339if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032340 $as_echo_n "(cached) " >&6
32341else
32342 case $MANDelegate in
32343 [\\/]* | ?:[\\/]*)
32344 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32345 ;;
32346 *)
32347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348for as_dir in $PATH
32349do
32350 IFS=$as_save_IFS
32351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32354 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356 break 2
32357 fi
32358done
cristy8b350f62009-11-15 23:12:43 +000032359 done
cristy3ed852e2009-09-05 21:47:34 +000032360IFS=$as_save_IFS
32361
32362 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32363 ;;
32364esac
32365fi
32366MANDelegate=$ac_cv_path_MANDelegate
32367if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032369$as_echo "$MANDelegate" >&6; }
32370else
cristy8b350f62009-11-15 23:12:43 +000032371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032372$as_echo "no" >&6; }
32373fi
32374
32375
32376# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32377set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032380if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032381 $as_echo_n "(cached) " >&6
32382else
32383 case $MPEGDecodeDelegate in
32384 [\\/]* | ?:[\\/]*)
32385 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32386 ;;
32387 *)
32388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32389for as_dir in $PATH
32390do
32391 IFS=$as_save_IFS
32392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32395 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397 break 2
32398 fi
32399done
cristy8b350f62009-11-15 23:12:43 +000032400 done
cristy3ed852e2009-09-05 21:47:34 +000032401IFS=$as_save_IFS
32402
32403 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32404 ;;
32405esac
32406fi
32407MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32408if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032410$as_echo "$MPEGDecodeDelegate" >&6; }
32411else
cristy8b350f62009-11-15 23:12:43 +000032412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032413$as_echo "no" >&6; }
32414fi
32415
32416
32417# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32418set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032421if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032422 $as_echo_n "(cached) " >&6
32423else
32424 case $MPEGEncodeDelegate in
32425 [\\/]* | ?:[\\/]*)
32426 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32427 ;;
32428 *)
32429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32430for as_dir in $PATH
32431do
32432 IFS=$as_save_IFS
32433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32436 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438 break 2
32439 fi
32440done
cristy8b350f62009-11-15 23:12:43 +000032441 done
cristy3ed852e2009-09-05 21:47:34 +000032442IFS=$as_save_IFS
32443
32444 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32445 ;;
32446esac
32447fi
32448MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32449if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032451$as_echo "$MPEGEncodeDelegate" >&6; }
32452else
cristy8b350f62009-11-15 23:12:43 +000032453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032454$as_echo "no" >&6; }
32455fi
32456
32457
cristy935c86e2010-06-05 23:50:07 +000032458# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32459set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032462if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032463 $as_echo_n "(cached) " >&6
32464else
32465 case $MrSIDDecodeDelegate in
32466 [\\/]* | ?:[\\/]*)
32467 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32468 ;;
32469 *)
32470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32471for as_dir in $PATH
32472do
32473 IFS=$as_save_IFS
32474 test -z "$as_dir" && as_dir=.
32475 for ac_exec_ext in '' $ac_executable_extensions; do
32476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32477 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32479 break 2
32480 fi
32481done
32482 done
32483IFS=$as_save_IFS
32484
32485 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32486 ;;
32487esac
32488fi
32489MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32490if test -n "$MrSIDDecodeDelegate"; then
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32492$as_echo "$MrSIDDecodeDelegate" >&6; }
32493else
32494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32495$as_echo "no" >&6; }
32496fi
32497
32498
cristy3ed852e2009-09-05 21:47:34 +000032499# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32500set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032503if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032504 $as_echo_n "(cached) " >&6
32505else
32506 case $MVDelegate in
32507 [\\/]* | ?:[\\/]*)
32508 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32509 ;;
32510 *)
32511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32512for as_dir in $PATH
32513do
32514 IFS=$as_save_IFS
32515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32518 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520 break 2
32521 fi
32522done
cristy8b350f62009-11-15 23:12:43 +000032523 done
cristy3ed852e2009-09-05 21:47:34 +000032524IFS=$as_save_IFS
32525
32526 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32527 ;;
32528esac
32529fi
32530MVDelegate=$ac_cv_path_MVDelegate
32531if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo "$MVDelegate" >&6; }
32534else
cristy8b350f62009-11-15 23:12:43 +000032535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032536$as_echo "no" >&6; }
32537fi
32538
32539
32540# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32541set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032544if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032545 $as_echo_n "(cached) " >&6
32546else
32547 case $PCLDelegate in
32548 [\\/]* | ?:[\\/]*)
32549 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32550 ;;
32551 *)
32552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32553for as_dir in $PATH
32554do
32555 IFS=$as_save_IFS
32556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32559 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561 break 2
32562 fi
32563done
cristy8b350f62009-11-15 23:12:43 +000032564 done
cristy3ed852e2009-09-05 21:47:34 +000032565IFS=$as_save_IFS
32566
32567 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32568 ;;
32569esac
32570fi
32571PCLDelegate=$ac_cv_path_PCLDelegate
32572if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo "$PCLDelegate" >&6; }
32575else
cristy8b350f62009-11-15 23:12:43 +000032576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032577$as_echo "no" >&6; }
32578fi
32579
32580
32581# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32582set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032585if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032586 $as_echo_n "(cached) " >&6
32587else
32588 case $PGPDecodeDelegate in
32589 [\\/]* | ?:[\\/]*)
32590 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32591 ;;
32592 *)
32593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32594for as_dir in $PATH
32595do
32596 IFS=$as_save_IFS
32597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32600 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602 break 2
32603 fi
32604done
cristy8b350f62009-11-15 23:12:43 +000032605 done
cristy3ed852e2009-09-05 21:47:34 +000032606IFS=$as_save_IFS
32607
32608 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32609 ;;
32610esac
32611fi
32612PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32613if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032615$as_echo "$PGPDecodeDelegate" >&6; }
32616else
cristy8b350f62009-11-15 23:12:43 +000032617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032618$as_echo "no" >&6; }
32619fi
32620
32621
32622# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32623set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032626if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032627 $as_echo_n "(cached) " >&6
32628else
32629 case $POVDelegate in
32630 [\\/]* | ?:[\\/]*)
32631 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32632 ;;
32633 *)
32634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32635for as_dir in $PATH
32636do
32637 IFS=$as_save_IFS
32638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32641 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643 break 2
32644 fi
32645done
cristy8b350f62009-11-15 23:12:43 +000032646 done
cristy3ed852e2009-09-05 21:47:34 +000032647IFS=$as_save_IFS
32648
32649 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32650 ;;
32651esac
32652fi
32653POVDelegate=$ac_cv_path_POVDelegate
32654if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656$as_echo "$POVDelegate" >&6; }
32657else
cristy8b350f62009-11-15 23:12:43 +000032658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo "no" >&6; }
32660fi
32661
32662
32663for ac_prog in gsx gsc "$PSDelegateDefault"
32664do
32665 # Extract the first word of "$ac_prog", so it can be a program name with args.
32666set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032669if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032670 $as_echo_n "(cached) " >&6
32671else
32672 case $PSDelegate in
32673 [\\/]* | ?:[\\/]*)
32674 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32675 ;;
32676 *)
32677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32678for as_dir in $PATH
32679do
32680 IFS=$as_save_IFS
32681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32684 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032686 break 2
32687 fi
32688done
cristy8b350f62009-11-15 23:12:43 +000032689 done
cristy3ed852e2009-09-05 21:47:34 +000032690IFS=$as_save_IFS
32691
32692 ;;
32693esac
32694fi
32695PSDelegate=$ac_cv_path_PSDelegate
32696if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032698$as_echo "$PSDelegate" >&6; }
32699else
cristy8b350f62009-11-15 23:12:43 +000032700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032701$as_echo "no" >&6; }
32702fi
32703
32704
32705 test -n "$PSDelegate" && break
32706done
32707test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32708
32709# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32710set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032712$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032713if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032714 $as_echo_n "(cached) " >&6
32715else
32716 case $RLEEncodeDelegate in
32717 [\\/]* | ?:[\\/]*)
32718 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
32719 ;;
32720 *)
32721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32722for as_dir in $PATH
32723do
32724 IFS=$as_save_IFS
32725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32728 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032730 break 2
32731 fi
32732done
cristy8b350f62009-11-15 23:12:43 +000032733 done
cristy3ed852e2009-09-05 21:47:34 +000032734IFS=$as_save_IFS
32735
32736 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
32737 ;;
32738esac
32739fi
32740RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32741if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo "$RLEEncodeDelegate" >&6; }
32744else
cristy8b350f62009-11-15 23:12:43 +000032745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032746$as_echo "no" >&6; }
32747fi
32748
32749
32750# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32751set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032754if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032755 $as_echo_n "(cached) " >&6
32756else
32757 case $RMDelegate in
32758 [\\/]* | ?:[\\/]*)
32759 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32760 ;;
32761 *)
32762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32763for as_dir in $PATH
32764do
32765 IFS=$as_save_IFS
32766 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032767 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32769 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771 break 2
32772 fi
32773done
cristy8b350f62009-11-15 23:12:43 +000032774 done
cristy3ed852e2009-09-05 21:47:34 +000032775IFS=$as_save_IFS
32776
32777 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32778 ;;
32779esac
32780fi
32781RMDelegate=$ac_cv_path_RMDelegate
32782if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo "$RMDelegate" >&6; }
32785else
cristy8b350f62009-11-15 23:12:43 +000032786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032787$as_echo "no" >&6; }
32788fi
32789
32790
cristy4689cf02010-02-17 21:15:45 +000032791# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32792set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032795if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032796 $as_echo_n "(cached) " >&6
32797else
32798 case $RSVGDecodeDelegate in
32799 [\\/]* | ?:[\\/]*)
32800 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32801 ;;
32802 *)
32803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32804for as_dir in $PATH
32805do
32806 IFS=$as_save_IFS
32807 test -z "$as_dir" && as_dir=.
32808 for ac_exec_ext in '' $ac_executable_extensions; do
32809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32810 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32812 break 2
32813 fi
32814done
32815 done
32816IFS=$as_save_IFS
32817
32818 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32819 ;;
32820esac
32821fi
32822RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32823if test -n "$RSVGDecodeDelegate"; then
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32825$as_echo "$RSVGDecodeDelegate" >&6; }
32826else
32827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32828$as_echo "no" >&6; }
32829fi
32830
32831
cristy3ed852e2009-09-05 21:47:34 +000032832# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32833set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032836if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032837 $as_echo_n "(cached) " >&6
32838else
32839 case $SCANDecodeDelegate in
32840 [\\/]* | ?:[\\/]*)
32841 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32842 ;;
32843 *)
32844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32845for as_dir in $PATH
32846do
32847 IFS=$as_save_IFS
32848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32851 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853 break 2
32854 fi
32855done
cristy8b350f62009-11-15 23:12:43 +000032856 done
cristy3ed852e2009-09-05 21:47:34 +000032857IFS=$as_save_IFS
32858
32859 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32860 ;;
32861esac
32862fi
32863SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32864if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "$SCANDecodeDelegate" >&6; }
32867else
cristy8b350f62009-11-15 23:12:43 +000032868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo "no" >&6; }
32870fi
32871
32872
32873# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32874set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032877if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032878 $as_echo_n "(cached) " >&6
32879else
32880 case $TXTDelegate in
32881 [\\/]* | ?:[\\/]*)
32882 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32883 ;;
32884 *)
32885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32886for as_dir in $PATH
32887do
32888 IFS=$as_save_IFS
32889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32892 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894 break 2
32895 fi
32896done
cristy8b350f62009-11-15 23:12:43 +000032897 done
cristy3ed852e2009-09-05 21:47:34 +000032898IFS=$as_save_IFS
32899
32900 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32901 ;;
32902esac
32903fi
32904TXTDelegate=$ac_cv_path_TXTDelegate
32905if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "$TXTDelegate" >&6; }
32908else
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo "no" >&6; }
32911fi
32912
32913
cristy5ac9ac82010-07-29 13:24:24 +000032914# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32915set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032918if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032919 $as_echo_n "(cached) " >&6
32920else
32921 case $UniconvertorDelegate in
32922 [\\/]* | ?:[\\/]*)
32923 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32924 ;;
32925 *)
32926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32927for as_dir in $PATH
32928do
32929 IFS=$as_save_IFS
32930 test -z "$as_dir" && as_dir=.
32931 for ac_exec_ext in '' $ac_executable_extensions; do
32932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32933 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32935 break 2
32936 fi
32937done
32938 done
32939IFS=$as_save_IFS
32940
32941 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32942 ;;
32943esac
32944fi
32945UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32946if test -n "$UniconvertorDelegate"; then
32947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32948$as_echo "$UniconvertorDelegate" >&6; }
32949else
32950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32951$as_echo "no" >&6; }
32952fi
32953
32954
cristy3ed852e2009-09-05 21:47:34 +000032955# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32956set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032959if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032960 $as_echo_n "(cached) " >&6
32961else
32962 case $WMFDecodeDelegate in
32963 [\\/]* | ?:[\\/]*)
32964 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32965 ;;
32966 *)
32967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32968for as_dir in $PATH
32969do
32970 IFS=$as_save_IFS
32971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32974 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976 break 2
32977 fi
32978done
cristy8b350f62009-11-15 23:12:43 +000032979 done
cristy3ed852e2009-09-05 21:47:34 +000032980IFS=$as_save_IFS
32981
32982 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32983 ;;
32984esac
32985fi
32986WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32987if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo "$WMFDecodeDelegate" >&6; }
32990else
cristy8b350f62009-11-15 23:12:43 +000032991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo "no" >&6; }
32993fi
32994
32995
32996# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32997set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033000if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033001 $as_echo_n "(cached) " >&6
33002else
33003 case $WWWDecodeDelegate in
33004 [\\/]* | ?:[\\/]*)
33005 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33006 ;;
33007 *)
33008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33009for as_dir in $PATH
33010do
33011 IFS=$as_save_IFS
33012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33015 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017 break 2
33018 fi
33019done
cristy8b350f62009-11-15 23:12:43 +000033020 done
cristy3ed852e2009-09-05 21:47:34 +000033021IFS=$as_save_IFS
33022
33023 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33024 ;;
33025esac
33026fi
33027WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33028if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "$WWWDecodeDelegate" >&6; }
33031else
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "no" >&6; }
33034fi
33035
33036
33037# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33038set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033041if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033042 $as_echo_n "(cached) " >&6
33043else
33044 case $XPSDelegate in
33045 [\\/]* | ?:[\\/]*)
33046 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33047 ;;
33048 *)
33049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33050for as_dir in $PATH
33051do
33052 IFS=$as_save_IFS
33053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33056 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058 break 2
33059 fi
33060done
cristy8b350f62009-11-15 23:12:43 +000033061 done
cristy3ed852e2009-09-05 21:47:34 +000033062IFS=$as_save_IFS
33063
33064 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33065 ;;
33066esac
33067fi
33068XPSDelegate=$ac_cv_path_XPSDelegate
33069if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo "$XPSDelegate" >&6; }
33072else
cristy8b350f62009-11-15 23:12:43 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo "no" >&6; }
33075fi
33076
33077
33078# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33079set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033082if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033083 $as_echo_n "(cached) " >&6
33084else
33085 case $ZipDelegate in
33086 [\\/]* | ?:[\\/]*)
33087 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33088 ;;
33089 *)
33090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33091for as_dir in $PATH
33092do
33093 IFS=$as_save_IFS
33094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33097 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099 break 2
33100 fi
33101done
cristy8b350f62009-11-15 23:12:43 +000033102 done
cristy3ed852e2009-09-05 21:47:34 +000033103IFS=$as_save_IFS
33104
33105 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33106 ;;
33107esac
33108fi
33109ZipDelegate=$ac_cv_path_ZipDelegate
33110if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo "$ZipDelegate" >&6; }
33113else
cristy8b350f62009-11-15 23:12:43 +000033114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo "no" >&6; }
33116fi
33117
33118
33119
33120# Prefer lpr to lp; lp needs options tacked on.
33121if test "$LPRDelegate" != no; then
33122 PrintDelegate="$LPRDelegate"
33123else
33124 PrintDelegate="$LPDelegate -c -s"
33125fi
33126
33127
33128# Installed ImageMagick utiltity paths
33129ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33130DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33131MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33132
33133# Set delegate booleans
33134have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33135have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33136have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33137have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33138have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033139have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033140have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33141have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033142have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33143have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33144
33145#
33146# Test for font directories
33147#
33148type_include_files=''
33149
cristy430a7312010-01-21 20:44:04 +000033150# Dejavu fonts.
33151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33152$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33153dejavu_font_dir=''
33154if test "${with_dejavu_font_dir}" != 'default'; then
33155 dejavu_font_dir="${with_dejavu_font_dir}/"
33156else
33157 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33158 if test -f "${font_dir}DejaVuSerif.ttf"; then
33159 dejavu_font_dir="${font_dir}"
33160 break 1
33161 fi
33162 done
33163fi
33164if test "${dejavu_font_dir}x" != 'x'; then
33165 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33167$as_echo "$dejavu_font_dir" >&6; }
33168else
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33170$as_echo "not found!" >&6; };
33171fi
33172
33173
cristy3ed852e2009-09-05 21:47:34 +000033174# Windows
33175windows_font_dir=''
33176if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33177 windows_font_dir="${with_windows_font_dir}/"
33178fi
cristy430a7312010-01-21 20:44:04 +000033179if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033180 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33181 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33182 fi
33183 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33184 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33185 fi
33186 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33187 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33188 fi
33189fi
cristy430a7312010-01-21 20:44:04 +000033190if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033191 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33192fi
33193
33194
33195# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33198ghostscript_font_dir=''
33199if test "${with_gs_font_dir}" != 'default'; then
33200 ghostscript_font_dir="${with_gs_font_dir}/"
33201else
33202 if test "${native_win32_build}" = 'yes'; then
33203 # Native Windows Build
33204 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33205 if test -f "${font_dir}a010013l.pfb"; then
33206 ghostscript_font_dir="$font_dir"
33207 break 1
33208 fi
33209 done
33210 if test "${PSDelegate}" != 'gswin32c'; then
33211 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33212 fi
33213 else
33214 # Linux / Mac OS X / Unix Build
33215 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
33216 if test -f "${font_dir}a010013l.pfb"; then
33217 ghostscript_font_dir="${font_dir}"
33218 break 1
33219 fi
33220 done
33221 if test "${ghostscript_font_dir}x" = 'x'; then
33222 if test "$PSDelegate" != 'gs'; then
33223 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33224 fi
33225 fi
33226 fi
33227fi
33228if test "${ghostscript_font_dir}x" != 'x'; then
33229 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000033230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231$as_echo "$ghostscript_font_dir" >&6; }
33232else
cristy8b350f62009-11-15 23:12:43 +000033233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000033234$as_echo "not found!" >&6; };
33235fi
33236
33237case "${build_os}" in
33238 mingw* )
33239 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33240 ;;
33241esac
33242
33243
33244
33245#
33246# Handle case where user doesn't want frozen paths
33247#
33248if test "$with_frozenpaths" != 'yes'; then
33249 # Re-set delegate definitions to default (no paths)
33250 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033251 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33252 BZIPDelegate="$BZIPDelegateDefault"
33253 BrowseDelegate="$BrowseDelegateDefault"
33254 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33255 CatDelegate="$CatDelegateDefault"
33256 ConvertDelegate="$ConvertDelegateDefault"
33257 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33258 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33259 EchoDelegate="$EchoDelegateDefault"
33260 EditorDelegate="$EditorDelegateDefault"
33261 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33262 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33263 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33264 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33265 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33266 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33267 LPDelegate="$LPDelegateDefault"
33268 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33269 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33270 LaunchDelegate="$LaunchDelegateDefault"
33271 MANDelegate="$MANDelegateDefault"
33272 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33273 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033274 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033275 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33276 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033277 PCLDelegate="$PCLDelegateDefault"
33278 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33279 POVDelegate="$POVDelegateDefault"
33280 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033281 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33282 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033283 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033284 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33285 ShowImageDelegate="$ShowImageDelegateDefault"
33286 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033287 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033288 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33289 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33290 XPSDelegate="$XPSDelegateDefault"
33291 ZipDelegate="$ZipDelegateDefault"
33292fi
33293
33294# Delegate substitutions
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337#
33338# RPM support.
33339#
33340RPM=''
33341for ac_prog in gnutar gtar tar
33342do
33343 # Extract the first word of "$ac_prog", so it can be a program name with args.
33344set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033346$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033347if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033348 $as_echo_n "(cached) " >&6
33349else
33350 if test -n "$TAR"; then
33351 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33352else
33353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33354for as_dir in $PATH
33355do
33356 IFS=$as_save_IFS
33357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33360 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362 break 2
33363 fi
33364done
cristy8b350f62009-11-15 23:12:43 +000033365 done
cristy3ed852e2009-09-05 21:47:34 +000033366IFS=$as_save_IFS
33367
33368fi
33369fi
33370TAR=$ac_cv_prog_TAR
33371if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033373$as_echo "$TAR" >&6; }
33374else
cristy8b350f62009-11-15 23:12:43 +000033375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo "no" >&6; }
33377fi
33378
33379
33380 test -n "$TAR" && break
33381done
33382
33383for ac_prog in perl
33384do
33385 # Extract the first word of "$ac_prog", so it can be a program name with args.
33386set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033389if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033390 $as_echo_n "(cached) " >&6
33391else
33392 if test -n "$PERL"; then
33393 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33394else
33395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33396for as_dir in $PATH
33397do
33398 IFS=$as_save_IFS
33399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33402 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033404 break 2
33405 fi
33406done
cristy8b350f62009-11-15 23:12:43 +000033407 done
cristy3ed852e2009-09-05 21:47:34 +000033408IFS=$as_save_IFS
33409
33410fi
33411fi
33412PERL=$ac_cv_prog_PERL
33413if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033415$as_echo "$PERL" >&6; }
33416else
cristy8b350f62009-11-15 23:12:43 +000033417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo "no" >&6; }
33419fi
33420
33421
33422 test -n "$PERL" && break
33423done
33424
33425for ac_prog in rpmbuild rpm
33426do
33427 # Extract the first word of "$ac_prog", so it can be a program name with args.
33428set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033431if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033432 $as_echo_n "(cached) " >&6
33433else
33434 if test -n "$RPM"; then
33435 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33436else
33437as_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_prog_RPM="$ac_prog"
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
33452fi
33453fi
33454RPM=$ac_cv_prog_RPM
33455if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033457$as_echo "$RPM" >&6; }
33458else
cristy8b350f62009-11-15 23:12:43 +000033459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460$as_echo "no" >&6; }
33461fi
33462
33463
33464 test -n "$RPM" && break
33465done
33466
33467
cristy73bd4a52010-10-05 11:24:23 +000033468ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33469
33470
33471AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33472
33473
33474AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33475
33476
33477AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33478
33479
33480 if test "x$RPM" != "x" ; then
33481 RPM_DELEGATE_TRUE=
33482 RPM_DELEGATE_FALSE='#'
33483else
33484 RPM_DELEGATE_TRUE='#'
33485 RPM_DELEGATE_FALSE=
33486fi
33487
cristy3ed852e2009-09-05 21:47:34 +000033488
33489#
33490# 7ZIP support (http://p7zip.sourceforge.net/)
33491#
33492P7ZIP=''
33493for ac_prog in 7za
33494do
33495 # Extract the first word of "$ac_prog", so it can be a program name with args.
33496set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033499if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033500 $as_echo_n "(cached) " >&6
33501else
33502 if test -n "$P7ZIP"; then
33503 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33504else
33505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33506for as_dir in $PATH
33507do
33508 IFS=$as_save_IFS
33509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33512 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514 break 2
33515 fi
33516done
cristy8b350f62009-11-15 23:12:43 +000033517 done
cristy3ed852e2009-09-05 21:47:34 +000033518IFS=$as_save_IFS
33519
33520fi
33521fi
33522P7ZIP=$ac_cv_prog_P7ZIP
33523if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo "$P7ZIP" >&6; }
33526else
cristy8b350f62009-11-15 23:12:43 +000033527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo "no" >&6; }
33529fi
33530
33531
33532 test -n "$P7ZIP" && break
33533done
33534
33535
cristy73bd4a52010-10-05 11:24:23 +000033536 if test "x$P7ZIP" != "x" ; then
33537 P7ZIP_DELEGATE_TRUE=
33538 P7ZIP_DELEGATE_FALSE='#'
33539else
33540 P7ZIP_DELEGATE_TRUE='#'
33541 P7ZIP_DELEGATE_FALSE=
33542fi
33543
cristy3ed852e2009-09-05 21:47:34 +000033544
33545#
33546# ZIP support (http://www.info-zip.org/Zip.html)
33547#
33548ZIP=''
33549for ac_prog in zip
33550do
33551 # Extract the first word of "$ac_prog", so it can be a program name with args.
33552set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033555if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033556 $as_echo_n "(cached) " >&6
33557else
33558 if test -n "$ZIP"; then
33559 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33560else
33561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33562for as_dir in $PATH
33563do
33564 IFS=$as_save_IFS
33565 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033566 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33568 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033570 break 2
33571 fi
33572done
cristy8b350f62009-11-15 23:12:43 +000033573 done
cristy3ed852e2009-09-05 21:47:34 +000033574IFS=$as_save_IFS
33575
33576fi
33577fi
33578ZIP=$ac_cv_prog_ZIP
33579if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "$ZIP" >&6; }
33582else
cristy8b350f62009-11-15 23:12:43 +000033583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo "no" >&6; }
33585fi
33586
33587
33588 test -n "$ZIP" && break
33589done
33590
33591
cristy73bd4a52010-10-05 11:24:23 +000033592 if test "x$ZIP" != "x" ; then
33593 ZIP_DELEGATE_TRUE=
33594 ZIP_DELEGATE_FALSE='#'
33595else
33596 ZIP_DELEGATE_TRUE='#'
33597 ZIP_DELEGATE_FALSE=
33598fi
33599
cristy3ed852e2009-09-05 21:47:34 +000033600
33601#
33602# GhostPCL related configuration.
33603#
33604PCLColorDevice=ppmraw
33605PCLCMYKDevice=bmpsep8
33606PCLMonoDevice=pbmraw
33607if test -z "$PCLVersion"; then
33608 PCLVersion='unknown'
33609fi
33610if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033612$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033616$as_echo "" >&6; }
33617 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000033618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033619$as_echo_n "checking for pcl color device... " >&6; }
33620 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33621 :
33622 else
33623 PCLColorDevice=ppmraw
33624 fi
cristy8b350f62009-11-15 23:12:43 +000033625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo "$PCLColorDevice" >&6; }
33627
33628 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033630$as_echo_n "checking for pcl CMYK device... " >&6; }
33631 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33632 :
33633 else
33634 PCLCMYKDevice=$PCLColorDevice
33635 fi
cristy8b350f62009-11-15 23:12:43 +000033636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033637$as_echo "$PCLCMYKDevice" >&6; }
33638
33639 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641$as_echo_n "checking for pcl mono device... " >&6; }
33642 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33643 :
33644 else
33645 PCLMonoDevice=$PCLColorDevice
33646 fi
cristy8b350f62009-11-15 23:12:43 +000033647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033648$as_echo "$PCLMonoDevice" >&6; }
33649fi
33650
33651
33652
33653
33654
33655
33656#
33657# GhostXPS related configuration.
33658#
33659XPSColorDevice=ppmraw
33660XPSCMYKDevice=bmpsep8
33661XPSMonoDevice=pbmraw
33662if test -z "$XPSVersion"; then
33663 XPSVersion='unknown'
33664fi
33665if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033669$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo "" >&6; }
33672 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033674$as_echo_n "checking for xps color device... " >&6; }
33675 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33676 :
33677 else
33678 XPSColorDevice=ppmraw
33679 fi
cristy8b350f62009-11-15 23:12:43 +000033680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681$as_echo "$XPSColorDevice" >&6; }
33682
33683 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo_n "checking for xps CMYK device... " >&6; }
33686 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33687 :
33688 else
33689 XPSCMYKDevice=$XPSColorDevice
33690 fi
cristy8b350f62009-11-15 23:12:43 +000033691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692$as_echo "$XPSCMYKDevice" >&6; }
33693
33694 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696$as_echo_n "checking for xps mono device... " >&6; }
33697 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33698 :
33699 else
33700 XPSMonoDevice=$XPSColorDevice
33701 fi
cristy8b350f62009-11-15 23:12:43 +000033702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033703$as_echo "$XPSMonoDevice" >&6; }
33704fi
33705
33706
33707
33708
33709
33710
33711#
33712# Ghostscript related configuration.
33713#
cristya97426c2011-02-04 01:41:27 +000033714GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000033715GSColorDevice=pnmraw
33716GSCMYKDevice=pam
33717GSMonoDevice=pbmraw
33718GSPDFDevice=pdfwrite
33719GSPSDevice=pswrite
33720GSEPSDevice=epswrite
33721GSVersion='unknown'
33722if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033724$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000033726$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033728$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo_n "checking for Ghostscript version... " >&6; }
33731 if GSVersion=`$PSDelegate --version`; then
33732 :
33733 else
33734 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
33735 fi
cristy8b350f62009-11-15 23:12:43 +000033736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737$as_echo "$GSVersion" >&6; }
33738
33739 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000033740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo_n "checking for gs alpha device... " >&6; }
33742 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33743 :
33744 else
33745 GSAlphaDevice=pnmraw
33746 fi
cristy8b350f62009-11-15 23:12:43 +000033747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo "$GSAlphaDevice" >&6; }
33749
33750 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033752$as_echo_n "checking for gs color device... " >&6; }
33753 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33754 :
33755 else
33756 GSColorDevice=pnmraw
33757 fi
cristy8b350f62009-11-15 23:12:43 +000033758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo "$GSColorDevice" >&6; }
33760
33761 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763$as_echo_n "checking for gs CMYK device... " >&6; }
33764 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33765 :
33766 else
33767 GSCMYKDevice=bmpsep8
33768 fi
cristy8b350f62009-11-15 23:12:43 +000033769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770$as_echo "$GSCMYKDevice" >&6; }
33771
33772 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo_n "checking for gs mono device... " >&6; }
33775 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33776 :
33777 else
33778 GSMonoDevice=$GSColorDevice
33779 fi
cristy8b350f62009-11-15 23:12:43 +000033780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781$as_echo "$GSMonoDevice" >&6; }
33782
33783 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033785$as_echo_n "checking for gs PDF writing device... " >&6; }
33786 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33787 :
33788 else
33789 GSPDFDevice=nodevice
33790 fi
cristy8b350f62009-11-15 23:12:43 +000033791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792$as_echo "$GSPDFDevice" >&6; }
33793
33794 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796$as_echo_n "checking for gs PS writing device... " >&6; }
33797 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33798 :
33799 else
33800 GSPSDevice=nodevice
33801 fi
cristy8b350f62009-11-15 23:12:43 +000033802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033803$as_echo "$GSPSDevice" >&6; }
33804
33805 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033807$as_echo_n "checking for gs EPS writing device... " >&6; }
33808 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33809 :
33810 else
33811 GSEPSDevice=nodevice
33812 fi
cristy8b350f62009-11-15 23:12:43 +000033813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033814$as_echo "$GSEPSDevice" >&6; }
33815fi
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826#
33827# PerlMagick-related configuration
33828#
33829
33830# Look for PERL if PerlMagick requested
33831# If name/path of desired PERL interpreter is specified, look for that one first
33832have_perl='no'
33833if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033835$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033837$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033839$as_echo "" >&6; }
33840 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033842$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033843if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033844 $as_echo_n "(cached) " >&6
33845else
33846 ac_cv_path_PERL="$with_perl"
33847fi
cristy8b350f62009-11-15 23:12:43 +000033848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033849$as_echo "$ac_cv_path_PERL" >&6; };
33850 PERL=$ac_cv_path_PERL
33851 have_perl="$ac_cv_path_PERL"
33852 else
33853 for ac_prog in perl perl5
33854do
33855 # Extract the first word of "$ac_prog", so it can be a program name with args.
33856set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033859if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033860 $as_echo_n "(cached) " >&6
33861else
33862 case $PERL in
33863 [\\/]* | ?:[\\/]*)
33864 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33865 ;;
33866 *)
33867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33868for as_dir in $PATH
33869do
33870 IFS=$as_save_IFS
33871 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33874 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033876 break 2
33877 fi
33878done
cristy8b350f62009-11-15 23:12:43 +000033879 done
cristy3ed852e2009-09-05 21:47:34 +000033880IFS=$as_save_IFS
33881
33882 ;;
33883esac
33884fi
33885PERL=$ac_cv_path_PERL
33886if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033888$as_echo "$PERL" >&6; }
33889else
cristy8b350f62009-11-15 23:12:43 +000033890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033891$as_echo "no" >&6; }
33892fi
33893
33894
33895 test -n "$PERL" && break
33896done
33897 if test "$ac_cv_path_PERL"; then
33898 have_perl="$ac_cv_path_PERL"
33899 fi
33900 fi
33901fi
33902
cristy949301e2010-01-06 01:38:40 +000033903if test "$with_perl" != 'yes' ; then
33904 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33905fi
33906
33907PERL_SUPPORTS_DESTDIR='no'
33908
cristy3ed852e2009-09-05 21:47:34 +000033909with_perl_static='no'
33910with_perl_dynamic='no'
33911if test "$have_perl" != 'no'; then
33912 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33913 with_perl_static='yes'
33914 fi
33915 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33916 with_perl_dynamic='yes'
33917 fi
33918 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033919
33920
33921
33922
33923 if test -n "$PERL"; then :
33924
33925 ax_perl_version="5.8.1"
33926
33927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33928$as_echo_n "checking for perl version... " >&6; }
33929
33930 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33931
33932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33933$as_echo "$perl_version" >&6; }
33934
33935 PERL_VERSION=$perl_version
33936
33937
33938
33939
33940
33941 # Used to indicate true or false condition
33942 ax_compare_version=false
33943
33944 # Convert the two version strings to be compared into a format that
33945 # allows a simple string comparison. The end result is that a version
33946 # string of the form 1.12.5-r617 will be converted to the form
33947 # 0001001200050617. In other words, each number is zero padded to four
33948 # digits, and non digits are removed.
33949
33950 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33951 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33952 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33953 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33954 -e 's/[^0-9]//g'`
33955
33956
33957 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33958 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33959 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33960 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33961 -e 's/[^0-9]//g'`
33962
33963
33964 ax_compare_version=`echo "x$ax_compare_version_A
33965x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33966
33967
33968
33969 if test "$ax_compare_version" = "true" ; then
33970
33971 :
33972 PERL_SUPPORTS_DESTDIR='yes'
33973
33974 else
33975 :
33976 PERL_SUPPORTS_DESTDIR='no'
33977
33978 fi
33979
33980
33981else
33982
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33984$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33985 PERL_SUPPORTS_DESTDIR='no'
33986
cristy3ed852e2009-09-05 21:47:34 +000033987fi
cristy73bd4a52010-10-05 11:24:23 +000033988
33989fi
33990 if test "$have_perl" != 'no'; then
33991 WITH_PERL_TRUE=
33992 WITH_PERL_FALSE='#'
33993else
33994 WITH_PERL_TRUE='#'
33995 WITH_PERL_FALSE=
33996fi
33997
33998 if test $with_perl_static = 'yes'; then
33999 WITH_PERL_STATIC_TRUE=
34000 WITH_PERL_STATIC_FALSE='#'
34001else
34002 WITH_PERL_STATIC_TRUE='#'
34003 WITH_PERL_STATIC_FALSE=
34004fi
34005
34006 if test $with_perl_dynamic = 'yes'; then
34007 WITH_PERL_DYNAMIC_TRUE=
34008 WITH_PERL_DYNAMIC_FALSE='#'
34009else
34010 WITH_PERL_DYNAMIC_TRUE='#'
34011 WITH_PERL_DYNAMIC_FALSE=
34012fi
34013
cristy3ed852e2009-09-05 21:47:34 +000034014
34015
34016# Determine path to pick up MagickCore library from for use with building PerlMagick
34017MAGICKCORE_PATH="${LIB_DIR}"
34018if test $with_perl_static = 'yes'; then
34019 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34020 libtool_objdir=$objdir
34021
34022 # Linker search path to library, followed by -lMagickCore
34023 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
34024fi
34025
34026
34027# Create a simple string containing format names for all delegate libraries
34028DELEGATES=''
34029if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34030if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34031if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34032if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34033if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34034if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34035if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34036if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34037if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34038if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34039if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34040if test "$have_jpeg" = 'yes'; then
34041 DELEGATES="$DELEGATES jpeg";
34042 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34043fi
34044if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034045if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034046if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34047if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034048if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034049if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34050if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34051if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34052if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34053if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34054if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34055if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34056if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34057if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34058
34059
34060
34061#
34062# Handle special compiler flags
34063#
34064
34065# Add '-p' if prof source profiling support enabled
34066if test "$enable_prof" = 'yes'; then
34067 CFLAGS="-p $CFLAGS"
34068 CXXFLAGS="-p $CXXFLAGS"
34069 LDFLAGS="-p $LDFLAGS"
34070fi
34071
34072# Add '-pg' if gprof source profiling support enabled
34073if test "$enable_gprof" = 'yes'; then
34074 CFLAGS="-pg $CFLAGS"
34075 CXXFLAGS="-pg $CXXFLAGS"
34076 LDFLAGS="-pg $LDFLAGS"
34077fi
34078
34079# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34080# This is a gcc-specific feature
34081if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034083$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034084if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034085 $as_echo_n "(cached) " >&6
34086else
34087 ac_check_lib_save_LIBS=$LIBS
34088LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034090/* end confdefs.h. */
34091
34092/* Override any GCC internal prototype to avoid an error.
34093 Use char because int might match the return type of a GCC
34094 builtin and then its argument prototype would still apply. */
34095#ifdef __cplusplus
34096extern "C"
34097#endif
34098char _gcov_init ();
34099int
34100main ()
34101{
34102return _gcov_init ();
34103 ;
34104 return 0;
34105}
34106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034107if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034108 ac_cv_lib_gcov__gcov_init=yes
34109else
cristy8b350f62009-11-15 23:12:43 +000034110 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034111fi
cristy8b350f62009-11-15 23:12:43 +000034112rm -f core conftest.err conftest.$ac_objext \
34113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034114LIBS=$ac_check_lib_save_LIBS
34115fi
cristy8b350f62009-11-15 23:12:43 +000034116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034117$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034118if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034119 cat >>confdefs.h <<_ACEOF
34120#define HAVE_LIBGCOV 1
34121_ACEOF
34122
34123 LIBS="-lgcov $LIBS"
34124
34125fi
34126
cristy8b350f62009-11-15 23:12:43 +000034127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034128$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034129if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034130 $as_echo_n "(cached) " >&6
34131else
34132 ac_check_lib_save_LIBS=$LIBS
34133LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034135/* end confdefs.h. */
34136
34137/* Override any GCC internal prototype to avoid an error.
34138 Use char because int might match the return type of a GCC
34139 builtin and then its argument prototype would still apply. */
34140#ifdef __cplusplus
34141extern "C"
34142#endif
34143char __gcov_init ();
34144int
34145main ()
34146{
34147return __gcov_init ();
34148 ;
34149 return 0;
34150}
34151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034153 ac_cv_lib_gcov___gcov_init=yes
34154else
cristy8b350f62009-11-15 23:12:43 +000034155 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034156fi
cristy8b350f62009-11-15 23:12:43 +000034157rm -f core conftest.err conftest.$ac_objext \
34158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034159LIBS=$ac_check_lib_save_LIBS
34160fi
cristy8b350f62009-11-15 23:12:43 +000034161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034163if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034164 cat >>confdefs.h <<_ACEOF
34165#define HAVE_LIBGCOV 1
34166_ACEOF
34167
34168 LIBS="-lgcov $LIBS"
34169
34170fi
34171
34172 case "$target_os" in
34173 darwin*)
34174 OSX_GCOV_LDFLAG="-Wl,-single_module"
34175 ;;
34176 *)
34177 OSX_GCOV_LDFLAG=""
34178 ;;
34179 esac
34180
34181 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34182 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34183 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34184fi
34185
34186#
34187# Build library dependency list for libMagickCore
34188#
34189
34190MAGICK_LIBLTDL='' # Libltdl for build
34191MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34192MAGICK_LTDLDEPS='' # extra libltdl dependencies
34193if test "$with_ltdl" != 'no'
34194then
34195 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34196 MAGICK_API_LIBLTDL='-lltdl'
34197 fi
34198 MAGICK_LIBLTDL=${LIBLTDL}
34199 MAGICK_LTDLDEPS=${LTDLDEPS}
34200fi
34201
34202
34203
34204if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034205 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 +000034206else
cristyb1860752011-03-14 00:27:46 +000034207 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 +000034208fi
34209
34210
34211#
34212# Remove extraneous spaces from output variables (asthetic)
34213#
34214X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34215X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34216X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34217X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34218
34219CC=`echo $CC | sed -e 's/ */ /g'`
34220CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34221CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34222CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34223DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34224DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34225LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34226TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34227MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34228#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34229
34230# Pass only user-provided LIBS as "global" libraries
34231LIBS=$USER_LIBS
34232
34233#AC_SUBST(CPPFLAGS)
34234
34235#AC_SUBST(LDFLAGS)
34236#AC_SUBST(X_PRE_LIBS)
34237#AC_SUBST(X_LIBS)
34238#AC_SUBST(X_EXTRA_LIBS)
34239
34240MAGICK_CFLAGS=$CFLAGS
34241MAGICK_CXXFLAGS="$CXXFLAGS"
34242MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34243MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34244MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34245MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34246
34247
34248
34249
34250
34251
34252
34253
cristyfd9dcd42010-08-08 18:07:02 +000034254
cristy3ed852e2009-09-05 21:47:34 +000034255# Set configured scripts to executable.
34256ac_config_commands="$ac_config_commands default"
34257
34258ac_config_commands="$ac_config_commands MagickCore-config.in"
34259
34260ac_config_commands="$ac_config_commands Magick-config.in"
34261
34262ac_config_commands="$ac_config_commands MagickWand-config.in"
34263
34264ac_config_commands="$ac_config_commands Wand-config.in"
34265
34266ac_config_commands="$ac_config_commands Magick++-config.in"
34267
34268ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34269
34270
cristy8b350f62009-11-15 23:12:43 +000034271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274$as_echo "Update ImageMagick configuration" >&6; }
34275cat >confcache <<\_ACEOF
34276# This file is a shell script that caches the results of configure
34277# tests run on this system so they can be shared between configure
34278# scripts and configure runs, see configure's option --config-cache.
34279# It is not useful on other systems. If it contains results you don't
34280# want to keep, you may remove or edit it.
34281#
34282# config.status only pays attention to the cache file if you give it
34283# the --recheck option to rerun configure.
34284#
34285# `ac_cv_env_foo' variables (set or unset) will be overridden when
34286# loading this file, other *unset* `ac_cv_foo' will be assigned the
34287# following values.
34288
34289_ACEOF
34290
34291# The following way of writing the cache mishandles newlines in values,
34292# but we know of no workaround that is simple, portable, and efficient.
34293# So, we kill variables containing newlines.
34294# Ultrix sh set writes to stderr and can't be redirected directly,
34295# and sets the high bit in the cache file unless we assign to the vars.
34296(
34297 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34298 eval ac_val=\$$ac_var
34299 case $ac_val in #(
34300 *${as_nl}*)
34301 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034303$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34304 esac
34305 case $ac_var in #(
34306 _ | IFS | as_nl) ;; #(
34307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034308 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034309 esac ;;
34310 esac
34311 done
34312
34313 (set) 2>&1 |
34314 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34315 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034316 # `set' does not quote correctly, so add quotes: double-quote
34317 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034318 sed -n \
34319 "s/'/'\\\\''/g;
34320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34321 ;; #(
34322 *)
34323 # `set' quotes correctly as required by POSIX, so do not add quotes.
34324 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34325 ;;
34326 esac |
34327 sort
34328) |
34329 sed '
34330 /^ac_cv_env_/b end
34331 t clear
34332 :clear
34333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34334 t end
34335 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34336 :end' >>confcache
34337if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34338 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034339 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034340 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034341$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034342 if test ! -f "$cache_file" || test -h "$cache_file"; then
34343 cat confcache >"$cache_file"
34344 else
34345 case $cache_file in #(
34346 */* | ?:*)
34347 mv -f confcache "$cache_file"$$ &&
34348 mv -f "$cache_file"$$ "$cache_file" ;; #(
34349 *)
34350 mv -f confcache "$cache_file" ;;
34351 esac
34352 fi
34353 fi
cristy3ed852e2009-09-05 21:47:34 +000034354 else
cristy8b350f62009-11-15 23:12:43 +000034355 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034356$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34357 fi
34358fi
34359rm -f confcache
34360
34361test "x$prefix" = xNONE && prefix=$ac_default_prefix
34362# Let make expand exec_prefix.
34363test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34364
34365DEFS=-DHAVE_CONFIG_H
34366
34367ac_libobjs=
34368ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034369U=
cristy3ed852e2009-09-05 21:47:34 +000034370for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34371 # 1. Remove the extension, and $U if already installed.
34372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34373 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34375 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034376 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34377 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034378done
34379LIBOBJS=$ac_libobjs
34380
34381LTLIBOBJS=$ac_ltlibobjs
34382
34383
cristy73bd4a52010-10-05 11:24:23 +000034384 if test -n "$EXEEXT"; then
34385 am__EXEEXT_TRUE=
34386 am__EXEEXT_FALSE='#'
34387else
34388 am__EXEEXT_TRUE='#'
34389 am__EXEEXT_FALSE=
34390fi
cristy3ed852e2009-09-05 21:47:34 +000034391
cristy73bd4a52010-10-05 11:24:23 +000034392if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034393 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034394Usually this means the macro was only invoked conditionally." "$LINENO" 5
34395fi
34396if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034397 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034398Usually this means the macro was only invoked conditionally." "$LINENO" 5
34399fi
34400if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034401 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034402Usually this means the macro was only invoked conditionally." "$LINENO" 5
34403fi
34404if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034405 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034406Usually this means the macro was only invoked conditionally." "$LINENO" 5
34407fi
34408if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034409 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034410Usually this means the macro was only invoked conditionally." "$LINENO" 5
34411fi
34412if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034413 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034414Usually this means the macro was only invoked conditionally." "$LINENO" 5
34415fi
34416if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034417 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034418Usually this means the macro was only invoked conditionally." "$LINENO" 5
34419fi
34420if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034421 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034422Usually this means the macro was only invoked conditionally." "$LINENO" 5
34423fi
cristy73bd4a52010-10-05 11:24:23 +000034424if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034425 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034426Usually this means the macro was only invoked conditionally." "$LINENO" 5
34427fi
34428if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034429 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034430Usually this means the macro was only invoked conditionally." "$LINENO" 5
34431fi
34432LT_CONFIG_H=config/config.h
34433
34434 _ltdl_libobjs=
34435 _ltdl_ltlibobjs=
34436 if test -n "$_LT_LIBOBJS"; then
34437 # Remove the extension.
34438 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34439 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34440 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34441 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34442 done
34443 fi
34444 ltdl_LIBOBJS=$_ltdl_libobjs
34445
34446 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34447
34448
34449if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034450 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034451Usually this means the macro was only invoked conditionally." "$LINENO" 5
34452fi
34453if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034454 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034455Usually this means the macro was only invoked conditionally." "$LINENO" 5
34456fi
34457if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034458 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034459Usually this means the macro was only invoked conditionally." "$LINENO" 5
34460fi
34461if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034462 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034463Usually this means the macro was only invoked conditionally." "$LINENO" 5
34464fi
34465
34466if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034467 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034468Usually this means the macro was only invoked conditionally." "$LINENO" 5
34469fi
34470if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034471 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034472Usually this means the macro was only invoked conditionally." "$LINENO" 5
34473fi
34474if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034475 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034476Usually this means the macro was only invoked conditionally." "$LINENO" 5
34477fi
34478if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034479 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034480Usually this means the macro was only invoked conditionally." "$LINENO" 5
34481fi
34482if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034483 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034484Usually this means the macro was only invoked conditionally." "$LINENO" 5
34485fi
34486if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034487 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034488Usually this means the macro was only invoked conditionally." "$LINENO" 5
34489fi
34490if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034491 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034492Usually this means the macro was only invoked conditionally." "$LINENO" 5
34493fi
34494if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034495 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034496Usually this means the macro was only invoked conditionally." "$LINENO" 5
34497fi
34498if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034499 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034500Usually this means the macro was only invoked conditionally." "$LINENO" 5
34501fi
34502if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034503 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034504Usually this means the macro was only invoked conditionally." "$LINENO" 5
34505fi
34506if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034507 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034508Usually this means the macro was only invoked conditionally." "$LINENO" 5
34509fi
34510if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034511 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034512Usually this means the macro was only invoked conditionally." "$LINENO" 5
34513fi
34514if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034515 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034516Usually this means the macro was only invoked conditionally." "$LINENO" 5
34517fi
34518if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034519 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034520Usually this means the macro was only invoked conditionally." "$LINENO" 5
34521fi
34522if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034523 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034524Usually this means the macro was only invoked conditionally." "$LINENO" 5
34525fi
34526if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034527 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034528Usually this means the macro was only invoked conditionally." "$LINENO" 5
34529fi
34530if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034531 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034532Usually this means the macro was only invoked conditionally." "$LINENO" 5
34533fi
34534if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034535 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034536Usually this means the macro was only invoked conditionally." "$LINENO" 5
34537fi
34538if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034539 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034540Usually this means the macro was only invoked conditionally." "$LINENO" 5
34541fi
34542if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034543 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034544Usually this means the macro was only invoked conditionally." "$LINENO" 5
34545fi
cristyfbb0ef02010-12-19 02:32:11 +000034546if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34547 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34548Usually this means the macro was only invoked conditionally." "$LINENO" 5
34549fi
cristy73bd4a52010-10-05 11:24:23 +000034550if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034551 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034552Usually this means the macro was only invoked conditionally." "$LINENO" 5
34553fi
34554if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034555 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034556Usually this means the macro was only invoked conditionally." "$LINENO" 5
34557fi
34558if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034559 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034560Usually this means the macro was only invoked conditionally." "$LINENO" 5
34561fi
34562if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034563 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034564Usually this means the macro was only invoked conditionally." "$LINENO" 5
34565fi
34566if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034567 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034568Usually this means the macro was only invoked conditionally." "$LINENO" 5
34569fi
cristyb1860752011-03-14 00:27:46 +000034570if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34571 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34572Usually this means the macro was only invoked conditionally." "$LINENO" 5
34573fi
cristy73bd4a52010-10-05 11:24:23 +000034574if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034575 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034576Usually this means the macro was only invoked conditionally." "$LINENO" 5
34577fi
34578if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034579 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034580Usually this means the macro was only invoked conditionally." "$LINENO" 5
34581fi
34582if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034583 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034584Usually this means the macro was only invoked conditionally." "$LINENO" 5
34585fi
34586if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034587 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034588Usually this means the macro was only invoked conditionally." "$LINENO" 5
34589fi
34590if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034591 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034592Usually this means the macro was only invoked conditionally." "$LINENO" 5
34593fi
34594if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034595 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034596Usually this means the macro was only invoked conditionally." "$LINENO" 5
34597fi
34598if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034599 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034600Usually this means the macro was only invoked conditionally." "$LINENO" 5
34601fi
34602if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034603 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034604Usually this means the macro was only invoked conditionally." "$LINENO" 5
34605fi
cristy3ed852e2009-09-05 21:47:34 +000034606
cristyda16f162011-02-19 23:52:17 +000034607: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000034608ac_write_fail=0
34609ac_clean_files_save=$ac_clean_files
34610ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000034611{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034612$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034613as_write_fail=0
34614cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034615#! $SHELL
34616# Generated by $as_me.
34617# Run this file to recreate the current configuration.
34618# Compiler output produced by configure, useful for debugging
34619# configure, is in config.log if it exists.
34620
34621debug=false
34622ac_cs_recheck=false
34623ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000034624
cristy8b350f62009-11-15 23:12:43 +000034625SHELL=\${CONFIG_SHELL-$SHELL}
34626export SHELL
34627_ASEOF
34628cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34629## -------------------- ##
34630## M4sh Initialization. ##
34631## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000034632
34633# Be more Bourne compatible
34634DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000034635if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000034636 emulate sh
34637 NULLCMD=:
34638 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34639 # is contrary to our usage. Disable this feature.
34640 alias -g '${1+"$@"}'='"$@"'
34641 setopt NO_GLOB_SUBST
34642else
cristy8b350f62009-11-15 23:12:43 +000034643 case `(set -o) 2>/dev/null` in #(
34644 *posix*) :
34645 set -o posix ;; #(
34646 *) :
34647 ;;
cristy3ed852e2009-09-05 21:47:34 +000034648esac
cristy3ed852e2009-09-05 21:47:34 +000034649fi
34650
34651
cristy3ed852e2009-09-05 21:47:34 +000034652as_nl='
34653'
34654export as_nl
34655# Printing a long string crashes Solaris 7 /usr/bin/printf.
34656as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34657as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34658as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000034659# Prefer a ksh shell builtin over an external printf program on Solaris,
34660# but without wasting forks for bash or zsh.
34661if test -z "$BASH_VERSION$ZSH_VERSION" \
34662 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34663 as_echo='print -r --'
34664 as_echo_n='print -rn --'
34665elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000034666 as_echo='printf %s\n'
34667 as_echo_n='printf %s'
34668else
34669 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34670 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34671 as_echo_n='/usr/ucb/echo -n'
34672 else
34673 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34674 as_echo_n_body='eval
34675 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000034676 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000034677 *"$as_nl"*)
34678 expr "X$arg" : "X\\(.*\\)$as_nl";
34679 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34680 esac;
34681 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34682 '
34683 export as_echo_n_body
34684 as_echo_n='sh -c $as_echo_n_body as_echo'
34685 fi
34686 export as_echo_body
34687 as_echo='sh -c $as_echo_body as_echo'
34688fi
34689
34690# The user is always right.
34691if test "${PATH_SEPARATOR+set}" != set; then
34692 PATH_SEPARATOR=:
34693 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34694 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34695 PATH_SEPARATOR=';'
34696 }
34697fi
34698
cristy3ed852e2009-09-05 21:47:34 +000034699
34700# IFS
34701# We need space, tab and new line, in precisely that order. Quoting is
34702# there to prevent editors from complaining about space-tab.
34703# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34704# splitting by setting IFS to empty value.)
34705IFS=" "" $as_nl"
34706
34707# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000034708as_myself=
cristy8b350f62009-11-15 23:12:43 +000034709case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000034710 *[\\/]* ) as_myself=$0 ;;
34711 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34712for as_dir in $PATH
34713do
34714 IFS=$as_save_IFS
34715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034716 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34717 done
cristy3ed852e2009-09-05 21:47:34 +000034718IFS=$as_save_IFS
34719
34720 ;;
34721esac
34722# We did not find ourselves, most probably we were run as `sh COMMAND'
34723# in which case we are not to be found in the path.
34724if test "x$as_myself" = x; then
34725 as_myself=$0
34726fi
34727if test ! -f "$as_myself"; then
34728 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000034729 exit 1
cristy3ed852e2009-09-05 21:47:34 +000034730fi
34731
cristy8b350f62009-11-15 23:12:43 +000034732# Unset variables that we do not need and which cause bugs (e.g. in
34733# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34734# suppresses any "Segmentation fault" message there. '((' could
34735# trigger a bug in pdksh 5.2.14.
34736for as_var in BASH_ENV ENV MAIL MAILPATH
34737do eval test x\${$as_var+set} = xset \
34738 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000034739done
34740PS1='$ '
34741PS2='> '
34742PS4='+ '
34743
34744# NLS nuisances.
34745LC_ALL=C
34746export LC_ALL
34747LANGUAGE=C
34748export LANGUAGE
34749
cristy8b350f62009-11-15 23:12:43 +000034750# CDPATH.
34751(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34752
34753
cristy98dddb52010-11-04 00:30:15 +000034754# as_fn_error STATUS ERROR [LINENO LOG_FD]
34755# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000034756# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34757# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000034758# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034759as_fn_error ()
34760{
cristy98dddb52010-11-04 00:30:15 +000034761 as_status=$1; test $as_status -eq 0 && as_status=1
34762 if test "$4"; then
34763 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34764 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034765 fi
cristy98dddb52010-11-04 00:30:15 +000034766 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034767 as_fn_exit $as_status
34768} # as_fn_error
34769
34770
34771# as_fn_set_status STATUS
34772# -----------------------
34773# Set $? to STATUS, without forking.
34774as_fn_set_status ()
34775{
34776 return $1
34777} # as_fn_set_status
34778
34779# as_fn_exit STATUS
34780# -----------------
34781# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34782as_fn_exit ()
34783{
34784 set +e
34785 as_fn_set_status $1
34786 exit $1
34787} # as_fn_exit
34788
34789# as_fn_unset VAR
34790# ---------------
34791# Portably unset VAR.
34792as_fn_unset ()
34793{
34794 { eval $1=; unset $1;}
34795}
34796as_unset=as_fn_unset
34797# as_fn_append VAR VALUE
34798# ----------------------
34799# Append the text in VALUE to the end of the definition contained in VAR. Take
34800# advantage of any shell optimizations that allow amortized linear growth over
34801# repeated appends, instead of the typical quadratic growth present in naive
34802# implementations.
34803if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34804 eval 'as_fn_append ()
34805 {
34806 eval $1+=\$2
34807 }'
34808else
34809 as_fn_append ()
34810 {
34811 eval $1=\$$1\$2
34812 }
34813fi # as_fn_append
34814
34815# as_fn_arith ARG...
34816# ------------------
34817# Perform arithmetic evaluation on the ARGs, and store the result in the
34818# global $as_val. Take advantage of shells that can avoid forks. The arguments
34819# must be portable across $(()) and expr.
34820if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34821 eval 'as_fn_arith ()
34822 {
34823 as_val=$(( $* ))
34824 }'
34825else
34826 as_fn_arith ()
34827 {
34828 as_val=`expr "$@" || test $? -eq 1`
34829 }
34830fi # as_fn_arith
34831
34832
cristy3ed852e2009-09-05 21:47:34 +000034833if expr a : '\(a\)' >/dev/null 2>&1 &&
34834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34835 as_expr=expr
34836else
34837 as_expr=false
34838fi
34839
34840if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34841 as_basename=basename
34842else
34843 as_basename=false
34844fi
34845
cristy8b350f62009-11-15 23:12:43 +000034846if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34847 as_dirname=dirname
34848else
34849 as_dirname=false
34850fi
cristy3ed852e2009-09-05 21:47:34 +000034851
cristy3ed852e2009-09-05 21:47:34 +000034852as_me=`$as_basename -- "$0" ||
34853$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34854 X"$0" : 'X\(//\)$' \| \
34855 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34856$as_echo X/"$0" |
34857 sed '/^.*\/\([^/][^/]*\)\/*$/{
34858 s//\1/
34859 q
34860 }
34861 /^X\/\(\/\/\)$/{
34862 s//\1/
34863 q
34864 }
34865 /^X\/\(\/\).*/{
34866 s//\1/
34867 q
34868 }
34869 s/.*/./; q'`
34870
cristy8b350f62009-11-15 23:12:43 +000034871# Avoid depending upon Character Ranges.
34872as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34873as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34874as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34875as_cr_digits='0123456789'
34876as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034877
34878ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034879case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034880-n*)
cristy8b350f62009-11-15 23:12:43 +000034881 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034882 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034883 xy) ECHO_C='\c';;
34884 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34885 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034886 esac;;
34887*)
34888 ECHO_N='-n';;
34889esac
cristy3ed852e2009-09-05 21:47:34 +000034890
34891rm -f conf$$ conf$$.exe conf$$.file
34892if test -d conf$$.dir; then
34893 rm -f conf$$.dir/conf$$.file
34894else
34895 rm -f conf$$.dir
34896 mkdir conf$$.dir 2>/dev/null
34897fi
34898if (echo >conf$$.file) 2>/dev/null; then
34899 if ln -s conf$$.file conf$$ 2>/dev/null; then
34900 as_ln_s='ln -s'
34901 # ... but there are two gotchas:
34902 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34903 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34904 # In both cases, we have to default to `cp -p'.
34905 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34906 as_ln_s='cp -p'
34907 elif ln conf$$.file conf$$ 2>/dev/null; then
34908 as_ln_s=ln
34909 else
34910 as_ln_s='cp -p'
34911 fi
34912else
34913 as_ln_s='cp -p'
34914fi
34915rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34916rmdir conf$$.dir 2>/dev/null
34917
cristy8b350f62009-11-15 23:12:43 +000034918
34919# as_fn_mkdir_p
34920# -------------
34921# Create "$as_dir" as a directory, including parents if necessary.
34922as_fn_mkdir_p ()
34923{
34924
34925 case $as_dir in #(
34926 -*) as_dir=./$as_dir;;
34927 esac
34928 test -d "$as_dir" || eval $as_mkdir_p || {
34929 as_dirs=
34930 while :; do
34931 case $as_dir in #(
34932 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34933 *) as_qdir=$as_dir;;
34934 esac
34935 as_dirs="'$as_qdir' $as_dirs"
34936 as_dir=`$as_dirname -- "$as_dir" ||
34937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34938 X"$as_dir" : 'X\(//\)[^/]' \| \
34939 X"$as_dir" : 'X\(//\)$' \| \
34940 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34941$as_echo X"$as_dir" |
34942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34943 s//\1/
34944 q
34945 }
34946 /^X\(\/\/\)[^/].*/{
34947 s//\1/
34948 q
34949 }
34950 /^X\(\/\/\)$/{
34951 s//\1/
34952 q
34953 }
34954 /^X\(\/\).*/{
34955 s//\1/
34956 q
34957 }
34958 s/.*/./; q'`
34959 test -d "$as_dir" && break
34960 done
34961 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034962 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034963
34964
34965} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034966if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034967 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034968else
34969 test -d ./-p && rmdir ./-p
34970 as_mkdir_p=false
34971fi
34972
34973if test -x / >/dev/null 2>&1; then
34974 as_test_x='test -x'
34975else
34976 if ls -dL / >/dev/null 2>&1; then
34977 as_ls_L_option=L
34978 else
34979 as_ls_L_option=
34980 fi
34981 as_test_x='
34982 eval sh -c '\''
34983 if test -d "$1"; then
34984 test -d "$1/.";
34985 else
cristy8b350f62009-11-15 23:12:43 +000034986 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034987 -*)set "./$1";;
34988 esac;
cristy8b350f62009-11-15 23:12:43 +000034989 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034990 ???[sx]*):;;*)false;;esac;fi
34991 '\'' sh
34992 '
34993fi
34994as_executable_p=$as_test_x
34995
34996# Sed expression to map a string onto a valid CPP name.
34997as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34998
34999# Sed expression to map a string onto a valid variable name.
35000as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35001
35002
35003exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035004## ----------------------------------- ##
35005## Main body of $CONFIG_STATUS script. ##
35006## ----------------------------------- ##
35007_ASEOF
35008test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035009
cristy8b350f62009-11-15 23:12:43 +000035010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35011# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035012# report actual input values of CONFIG_FILES etc. instead of their
35013# values after options handling.
35014ac_log="
cristy4bf6e232011-05-21 01:43:33 +000035015This file was extended by ImageMagick $as_me 6.7.0, which was
cristyda16f162011-02-19 23:52:17 +000035016generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035017
35018 CONFIG_FILES = $CONFIG_FILES
35019 CONFIG_HEADERS = $CONFIG_HEADERS
35020 CONFIG_LINKS = $CONFIG_LINKS
35021 CONFIG_COMMANDS = $CONFIG_COMMANDS
35022 $ $0 $@
35023
35024on `(hostname || uname -n) 2>/dev/null | sed 1q`
35025"
35026
35027_ACEOF
35028
35029case $ac_config_files in *"
35030"*) set x $ac_config_files; shift; ac_config_files=$*;;
35031esac
35032
35033case $ac_config_headers in *"
35034"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35035esac
35036
35037
35038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35039# Files that config.status was made for.
35040config_files="$ac_config_files"
35041config_headers="$ac_config_headers"
35042config_commands="$ac_config_commands"
35043
35044_ACEOF
35045
35046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35047ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035048\`$as_me' instantiates files and other configuration actions
35049from templates according to the current configuration. Unless the files
35050and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035051
cristy8b350f62009-11-15 23:12:43 +000035052Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035053
35054 -h, --help print this help, then exit
35055 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035056 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035057 -q, --quiet, --silent
35058 do not print progress messages
35059 -d, --debug don't remove temporary files
35060 --recheck update $as_me by reconfiguring in the same conditions
35061 --file=FILE[:TEMPLATE]
35062 instantiate the configuration file FILE
35063 --header=FILE[:TEMPLATE]
35064 instantiate the configuration header FILE
35065
35066Configuration files:
35067$config_files
35068
35069Configuration headers:
35070$config_headers
35071
35072Configuration commands:
35073$config_commands
35074
cristy8b350f62009-11-15 23:12:43 +000035075Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035076
35077_ACEOF
35078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035079ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035080ac_cs_version="\\
cristy4bf6e232011-05-21 01:43:33 +000035081ImageMagick config.status 6.7.0
cristyda16f162011-02-19 23:52:17 +000035082configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035083 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035084
cristy98dddb52010-11-04 00:30:15 +000035085Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035086This config.status script is free software; the Free Software Foundation
35087gives unlimited permission to copy, distribute and modify it."
35088
35089ac_pwd='$ac_pwd'
35090srcdir='$srcdir'
35091INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035092MKDIR_P='$MKDIR_P'
35093AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035094test -n "\$AWK" || AWK=awk
35095_ACEOF
35096
35097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35098# The default lists apply if the user does not specify any file.
35099ac_need_defaults=:
35100while test $# != 0
35101do
35102 case $1 in
cristyda16f162011-02-19 23:52:17 +000035103 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35106 ac_shift=:
35107 ;;
cristyda16f162011-02-19 23:52:17 +000035108 --*=)
35109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35110 ac_optarg=
35111 ac_shift=:
35112 ;;
cristy3ed852e2009-09-05 21:47:34 +000035113 *)
35114 ac_option=$1
35115 ac_optarg=$2
35116 ac_shift=shift
35117 ;;
35118 esac
35119
35120 case $ac_option in
35121 # Handling of the options.
35122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35123 ac_cs_recheck=: ;;
35124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35125 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035126 --config | --confi | --conf | --con | --co | --c )
35127 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035128 --debug | --debu | --deb | --de | --d | -d )
35129 debug=: ;;
35130 --file | --fil | --fi | --f )
35131 $ac_shift
35132 case $ac_optarg in
35133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035134 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035135 esac
cristy8b350f62009-11-15 23:12:43 +000035136 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035137 ac_need_defaults=false;;
35138 --header | --heade | --head | --hea )
35139 $ac_shift
35140 case $ac_optarg in
35141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35142 esac
cristy8b350f62009-11-15 23:12:43 +000035143 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035144 ac_need_defaults=false;;
35145 --he | --h)
35146 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035147 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035148Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035149 --help | --hel | -h )
35150 $as_echo "$ac_cs_usage"; exit ;;
35151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35153 ac_cs_silent=: ;;
35154
35155 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035156 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035157Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035158
cristy8b350f62009-11-15 23:12:43 +000035159 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035160 ac_need_defaults=false ;;
35161
35162 esac
35163 shift
35164done
35165
35166ac_configure_extra_args=
35167
35168if $ac_cs_silent; then
35169 exec 6>/dev/null
35170 ac_configure_extra_args="$ac_configure_extra_args --silent"
35171fi
35172
35173_ACEOF
35174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35175if \$ac_cs_recheck; then
35176 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35177 shift
35178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35179 CONFIG_SHELL='$SHELL'
35180 export CONFIG_SHELL
35181 exec "\$@"
35182fi
35183
35184_ACEOF
35185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35186exec 5>>config.log
35187{
35188 echo
35189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35190## Running $as_me. ##
35191_ASBOX
35192 $as_echo "$ac_log"
35193} >&5
35194
35195_ACEOF
35196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035197#
35198# INIT-COMMANDS
35199#
35200PACKAGE="$PACKAGE"
35201AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35202
35203
35204# The HP-UX ksh and POSIX shell print the target directory to stdout
35205# if CDPATH is set.
35206(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35207
35208sed_quote_subst='$sed_quote_subst'
35209double_quote_subst='$double_quote_subst'
35210delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035211SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35212Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35213GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35214EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35215FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35216SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35217ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35218LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35219macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35220macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35221AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35222DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35223OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35224enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35225enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35226pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35227enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35228host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35229host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35230host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35231build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35232build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35233build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35234NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35235LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35236max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35237ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35238exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35239lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35240lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35241lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035242lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35243lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035244reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35245reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35246deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35247file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035248file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35249want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35250sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035251AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35252AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035253archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035254STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35255RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35256old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35257old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35258old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35259lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35260CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35261CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35262compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35263GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35264lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35265lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35266lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35267lt_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 +000035268nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35269lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035270objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35271MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35272lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035273lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035274lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035275lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35276lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35277need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035278MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035279DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35280NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35281LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35282OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35283OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35284libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35285shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35286extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35287archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35288enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35289export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35290whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35291compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35292old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35293old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35294archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35295archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35296module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35297module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35298with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35299allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35300no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35301hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35302hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35303hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35304hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35305hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35306hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35307hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35308hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35309inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35310link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035311always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35312export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35313exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35314include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35315prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035316postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035317file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35318variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35319need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35320need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35321version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35322runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35323shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35324shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35325libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35326library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35327soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35328install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35329postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35330postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35331finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35332finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35333hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35334sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35335sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35336hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35337enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35338enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35339enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35340old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35341striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35342compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35343predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35344postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35345predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35346postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35347compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35348LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35349reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35350reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35351old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35352compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35353GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35354lt_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 +000035355lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035356lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035357lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35358lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35359archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35360enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35361export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35362whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35363compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35364old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35365old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35366archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35367archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35368module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35369module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35370with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35371allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35372no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35373hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35374hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35375hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35376hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35377hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35378hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35379hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35380hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35381inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35382link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035383always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35384export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35385exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35386include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35387prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035388postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035389file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35390hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35391compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35392predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35393postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35394predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35395postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35396compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035397
35398LTCC='$LTCC'
35399LTCFLAGS='$LTCFLAGS'
35400compiler='$compiler_DEFAULT'
35401
cristy0c60a692010-11-04 01:09:47 +000035402# A function that is used when there is no print builtin or printf.
35403func_fallback_echo ()
35404{
35405 eval 'cat <<_LTECHO_EOF
35406\$1
35407_LTECHO_EOF'
35408}
35409
cristy73bd4a52010-10-05 11:24:23 +000035410# Quote evaled strings.
35411for var in SED \
35412GREP \
35413EGREP \
35414FGREP \
cristy0c60a692010-11-04 01:09:47 +000035415SHELL \
35416ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035417LD \
cristy0c60a692010-11-04 01:09:47 +000035418AS \
35419DLLTOOL \
35420OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035421NM \
35422LN_S \
35423lt_SP2NL \
35424lt_NL2SP \
35425reload_flag \
35426deplibs_check_method \
35427file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035428file_magic_glob \
35429want_nocaseglob \
35430sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035431AR \
35432AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035433archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035434STRIP \
35435RANLIB \
35436CC \
35437CFLAGS \
35438compiler \
35439lt_cv_sys_global_symbol_pipe \
35440lt_cv_sys_global_symbol_to_cdecl \
35441lt_cv_sys_global_symbol_to_c_name_address \
35442lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035443nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035444lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035445lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035446lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035447lt_prog_compiler_static \
35448lt_cv_prog_compiler_c_o \
35449need_locks \
cristyda16f162011-02-19 23:52:17 +000035450MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035451DSYMUTIL \
35452NMEDIT \
35453LIPO \
35454OTOOL \
35455OTOOL64 \
35456shrext_cmds \
35457export_dynamic_flag_spec \
35458whole_archive_flag_spec \
35459compiler_needs_object \
35460with_gnu_ld \
35461allow_undefined_flag \
35462no_undefined_flag \
35463hardcode_libdir_flag_spec \
35464hardcode_libdir_flag_spec_ld \
35465hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035466exclude_expsyms \
35467include_expsyms \
35468file_list_spec \
35469variables_saved_for_relink \
35470libname_spec \
35471library_names_spec \
35472soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035473install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035474finish_eval \
35475old_striplib \
35476striplib \
35477compiler_lib_search_dirs \
35478predep_objects \
35479postdep_objects \
35480predeps \
35481postdeps \
35482compiler_lib_search_path \
35483LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035484reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035485compiler_CXX \
35486lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035487lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035488lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035489lt_prog_compiler_static_CXX \
35490lt_cv_prog_compiler_c_o_CXX \
35491export_dynamic_flag_spec_CXX \
35492whole_archive_flag_spec_CXX \
35493compiler_needs_object_CXX \
35494with_gnu_ld_CXX \
35495allow_undefined_flag_CXX \
35496no_undefined_flag_CXX \
35497hardcode_libdir_flag_spec_CXX \
35498hardcode_libdir_flag_spec_ld_CXX \
35499hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035500exclude_expsyms_CXX \
35501include_expsyms_CXX \
35502file_list_spec_CXX \
35503compiler_lib_search_dirs_CXX \
35504predep_objects_CXX \
35505postdep_objects_CXX \
35506predeps_CXX \
35507postdeps_CXX \
35508compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035509 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035510 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035511 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035512 ;;
35513 *)
35514 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35515 ;;
35516 esac
35517done
35518
35519# Double-quote double-evaled strings.
35520for var in reload_cmds \
35521old_postinstall_cmds \
35522old_postuninstall_cmds \
35523old_archive_cmds \
35524extract_expsyms_cmds \
35525old_archive_from_new_cmds \
35526old_archive_from_expsyms_cmds \
35527archive_cmds \
35528archive_expsym_cmds \
35529module_cmds \
35530module_expsym_cmds \
35531export_symbols_cmds \
35532prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000035533postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000035534postinstall_cmds \
35535postuninstall_cmds \
35536finish_cmds \
35537sys_lib_search_path_spec \
35538sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000035539reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035540old_archive_cmds_CXX \
35541old_archive_from_new_cmds_CXX \
35542old_archive_from_expsyms_cmds_CXX \
35543archive_cmds_CXX \
35544archive_expsym_cmds_CXX \
35545module_cmds_CXX \
35546module_expsym_cmds_CXX \
35547export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000035548prelink_cmds_CXX \
35549postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035551 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035553 ;;
35554 *)
35555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35556 ;;
35557 esac
35558done
35559
cristy73bd4a52010-10-05 11:24:23 +000035560ac_aux_dir='$ac_aux_dir'
35561xsi_shell='$xsi_shell'
35562lt_shell_append='$lt_shell_append'
35563
35564# See if we are running on zsh, and set the options which allow our
35565# commands through without removal of \ escapes INIT.
35566if test -n "\${ZSH_VERSION+set}" ; then
35567 setopt NO_GLOB_SUBST
35568fi
35569
35570
35571 PACKAGE='$PACKAGE'
35572 VERSION='$VERSION'
35573 TIMESTAMP='$TIMESTAMP'
35574 RM='$RM'
35575 ofile='$ofile'
35576
35577
35578
35579
35580
35581
cristy3ed852e2009-09-05 21:47:34 +000035582_ACEOF
35583
35584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35585
35586# Handling of arguments.
35587for ac_config_target in $ac_config_targets
35588do
35589 case $ac_config_target in
35590 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000035591 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035592 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35593 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35594 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35595 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35596 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000035597 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000035598 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35599 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35600 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35601 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35602 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
35603 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
35604 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35605 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
35606 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
35607 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
35608 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
35609 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
35610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35611 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35612 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35613 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35614 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35615 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35616 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35617 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35618 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35619 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35620 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35621 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35622 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35623 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35624 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35625 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35626 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
35627 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
35628 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
35629 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
35630 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000035631 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35632 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000035633 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35634 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
35635 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
35636 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
35637 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
35638 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35639 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35640
cristy98dddb52010-11-04 00:30:15 +000035641 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035642 esac
35643done
35644
35645
35646# If the user did not use the arguments to specify the items to instantiate,
35647# then the envvar interface is used. Set only those that are not.
35648# We use the long form for the default assignment because of an extremely
35649# bizarre bug on SunOS 4.1.3.
35650if $ac_need_defaults; then
35651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35654fi
35655
35656# Have a temporary directory for convenience. Make it in the build tree
35657# simply because there is no reason against having it here, and in addition,
35658# creating and moving files from /tmp can sometimes cause problems.
35659# Hook for its removal unless debugging.
35660# Note that there is a small window in which the directory will not be cleaned:
35661# after its creation but before its name has been assigned to `$tmp'.
35662$debug ||
35663{
cristyda16f162011-02-19 23:52:17 +000035664 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000035665 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000035666 : "${ac_tmp:=$tmp}"
35667 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000035668' 0
cristy8b350f62009-11-15 23:12:43 +000035669 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000035670}
35671# Create a (secure) tmp directory for tmp files.
35672
35673{
35674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000035675 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000035676} ||
35677{
35678 tmp=./conf$$-$RANDOM
35679 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000035680} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035681ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000035682
35683# Set up the scripts for CONFIG_FILES section.
35684# No need to generate them if there are no CONFIG_FILES.
35685# This happens for instance with `./config.status config.h'.
35686if test -n "$CONFIG_FILES"; then
35687
35688
cristy8b350f62009-11-15 23:12:43 +000035689ac_cr=`echo X | tr X '\015'`
35690# On cygwin, bash can eat \r inside `` if the user requested igncr.
35691# But we know of no other shell where ac_cr would be empty at this
35692# point, so we can use a bashism as a fallback.
35693if test "x$ac_cr" = x; then
35694 eval ac_cr=\$\'\\r\'
35695fi
cristy3ed852e2009-09-05 21:47:34 +000035696ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35697if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000035698 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000035699else
35700 ac_cs_awk_cr=$ac_cr
35701fi
35702
cristyda16f162011-02-19 23:52:17 +000035703echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000035704_ACEOF
35705
35706
35707{
35708 echo "cat >conf$$subs.awk <<_ACEOF" &&
35709 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35710 echo "_ACEOF"
35711} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35713ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000035714ac_delim='%!_!# '
35715for ac_last_try in false false false false false :; do
35716 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035718
35719 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35720 if test $ac_delim_n = $ac_delim_num; then
35721 break
35722 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035724 else
35725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35726 fi
35727done
35728rm -f conf$$subs.sh
35729
35730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000035731cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035732_ACEOF
35733sed -n '
35734h
35735s/^/S["/; s/!.*/"]=/
35736p
35737g
35738s/^[^!]*!//
35739:repl
35740t repl
35741s/'"$ac_delim"'$//
35742t delim
35743:nl
35744h
cristycd4c5312009-11-22 01:19:08 +000035745s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035746t more1
35747s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35748p
35749n
35750b repl
35751:more1
35752s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35753p
35754g
35755s/.\{148\}//
35756t nl
35757:delim
35758h
cristycd4c5312009-11-22 01:19:08 +000035759s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035760t more2
35761s/["\\]/\\&/g; s/^/"/; s/$/"/
35762p
35763b
35764:more2
35765s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35766p
35767g
35768s/.\{148\}//
35769t delim
35770' <conf$$subs.awk | sed '
35771/^[^""]/{
35772 N
35773 s/\n//
35774}
35775' >>$CONFIG_STATUS || ac_write_fail=1
35776rm -f conf$$subs.awk
35777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35778_ACAWK
cristyda16f162011-02-19 23:52:17 +000035779cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035780 for (key in S) S_is_set[key] = 1
35781 FS = ""
35782
35783}
35784{
35785 line = $ 0
35786 nfields = split(line, field, "@")
35787 substed = 0
35788 len = length(field[1])
35789 for (i = 2; i < nfields; i++) {
35790 key = field[i]
35791 keylen = length(key)
35792 if (S_is_set[key]) {
35793 value = S[key]
35794 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35795 len += length(value) + length(field[++i])
35796 substed = 1
35797 } else
35798 len += 1 + keylen
35799 }
35800
35801 print line
35802}
35803
35804_ACAWK
35805_ACEOF
35806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35807if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35808 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35809else
35810 cat
cristyda16f162011-02-19 23:52:17 +000035811fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035812 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035813_ACEOF
35814
cristy98dddb52010-11-04 00:30:15 +000035815# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35816# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035817# trailing colons and then remove the whole line if VPATH becomes empty
35818# (actually we leave an empty line to preserve line numbers).
35819if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035820 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35821h
35822s///
35823s/^/:/
35824s/[ ]*$/:/
35825s/:\$(srcdir):/:/g
35826s/:\${srcdir}:/:/g
35827s/:@srcdir@:/:/g
35828s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035829s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035830x
35831s/\(=[ ]*\).*/\1/
35832G
35833s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035834s/^[^=]*=[ ]*$//
35835}'
35836fi
35837
35838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35839fi # test -n "$CONFIG_FILES"
35840
35841# Set up the scripts for CONFIG_HEADERS section.
35842# No need to generate them if there are no CONFIG_HEADERS.
35843# This happens for instance with `./config.status Makefile'.
35844if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035845cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035846BEGIN {
35847_ACEOF
35848
35849# Transform confdefs.h into an awk script `defines.awk', embedded as
35850# here-document in config.status, that substitutes the proper values into
35851# config.h.in to produce config.h.
35852
35853# Create a delimiter string that does not exist in confdefs.h, to ease
35854# handling of long lines.
35855ac_delim='%!_!# '
35856for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035857 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35858 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035859 break
35860 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035861 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035862 else
35863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35864 fi
35865done
35866
35867# For the awk script, D is an array of macro values keyed by name,
35868# likewise P contains macro parameters if any. Preserve backslash
35869# newline sequences.
35870
35871ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35872sed -n '
35873s/.\{148\}/&'"$ac_delim"'/g
35874t rset
35875:rset
35876s/^[ ]*#[ ]*define[ ][ ]*/ /
35877t def
35878d
35879:def
35880s/\\$//
35881t bsnl
35882s/["\\]/\\&/g
35883s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35884D["\1"]=" \3"/p
35885s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35886d
35887:bsnl
35888s/["\\]/\\&/g
35889s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35890D["\1"]=" \3\\\\\\n"\\/p
35891t cont
35892s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35893t cont
35894d
35895:cont
35896n
35897s/.\{148\}/&'"$ac_delim"'/g
35898t clear
35899:clear
35900s/\\$//
35901t bsnlc
35902s/["\\]/\\&/g; s/^/"/; s/$/"/p
35903d
35904:bsnlc
35905s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35906b cont
35907' <confdefs.h | sed '
35908s/'"$ac_delim"'/"\\\
35909"/g' >>$CONFIG_STATUS || ac_write_fail=1
35910
35911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35912 for (key in D) D_is_set[key] = 1
35913 FS = ""
35914}
35915/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35916 line = \$ 0
35917 split(line, arg, " ")
35918 if (arg[1] == "#") {
35919 defundef = arg[2]
35920 mac1 = arg[3]
35921 } else {
35922 defundef = substr(arg[1], 2)
35923 mac1 = arg[2]
35924 }
35925 split(mac1, mac2, "(") #)
35926 macro = mac2[1]
35927 prefix = substr(line, 1, index(line, defundef) - 1)
35928 if (D_is_set[macro]) {
35929 # Preserve the white space surrounding the "#".
35930 print prefix "define", macro P[macro] D[macro]
35931 next
35932 } else {
35933 # Replace #undef with comments. This is necessary, for example,
35934 # in the case of _POSIX_SOURCE, which is predefined and required
35935 # on some systems where configure will not decide to define it.
35936 if (defundef == "undef") {
35937 print "/*", prefix defundef, macro, "*/"
35938 next
35939 }
35940 }
35941}
35942{ print }
35943_ACAWK
35944_ACEOF
35945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035946 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035947fi # test -n "$CONFIG_HEADERS"
35948
35949
35950eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35951shift
35952for ac_tag
35953do
35954 case $ac_tag in
35955 :[FHLC]) ac_mode=$ac_tag; continue;;
35956 esac
35957 case $ac_mode$ac_tag in
35958 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035959 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035960 :[FH]-) ac_tag=-:-;;
35961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35962 esac
35963 ac_save_IFS=$IFS
35964 IFS=:
35965 set x $ac_tag
35966 IFS=$ac_save_IFS
35967 shift
35968 ac_file=$1
35969 shift
35970
35971 case $ac_mode in
35972 :L) ac_source=$1;;
35973 :[FH])
35974 ac_file_inputs=
35975 for ac_f
35976 do
35977 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035978 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035979 *) # Look for the file first in the build tree, then in the source tree
35980 # (if the path is not absolute). The absolute path cannot be DOS-style,
35981 # because $ac_f cannot contain `:'.
35982 test -f "$ac_f" ||
35983 case $ac_f in
35984 [\\/$]*) false;;
35985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35986 esac ||
cristy98dddb52010-11-04 00:30:15 +000035987 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035988 esac
35989 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035990 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035991 done
35992
35993 # Let's still pretend it is `configure' which instantiates (i.e., don't
35994 # use $as_me), people would be surprised to read:
35995 # /* config.h. Generated by config.status. */
35996 configure_input='Generated from '`
35997 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35998 `' by configure.'
35999 if test x"$ac_file" != x-; then
36000 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036002$as_echo "$as_me: creating $ac_file" >&6;}
36003 fi
36004 # Neutralize special characters interpreted by sed in replacement strings.
36005 case $configure_input in #(
36006 *\&* | *\|* | *\\* )
36007 ac_sed_conf_input=`$as_echo "$configure_input" |
36008 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36009 *) ac_sed_conf_input=$configure_input;;
36010 esac
36011
36012 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036013 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036015 esac
36016 ;;
36017 esac
36018
36019 ac_dir=`$as_dirname -- "$ac_file" ||
36020$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36021 X"$ac_file" : 'X\(//\)[^/]' \| \
36022 X"$ac_file" : 'X\(//\)$' \| \
36023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36024$as_echo X"$ac_file" |
36025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36026 s//\1/
36027 q
36028 }
36029 /^X\(\/\/\)[^/].*/{
36030 s//\1/
36031 q
36032 }
36033 /^X\(\/\/\)$/{
36034 s//\1/
36035 q
36036 }
36037 /^X\(\/\).*/{
36038 s//\1/
36039 q
36040 }
36041 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036042 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036043 ac_builddir=.
36044
36045case "$ac_dir" in
36046.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36047*)
36048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36049 # A ".." for each directory in $ac_dir_suffix.
36050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36051 case $ac_top_builddir_sub in
36052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36054 esac ;;
36055esac
36056ac_abs_top_builddir=$ac_pwd
36057ac_abs_builddir=$ac_pwd$ac_dir_suffix
36058# for backward compatibility:
36059ac_top_builddir=$ac_top_build_prefix
36060
36061case $srcdir in
36062 .) # We are building in place.
36063 ac_srcdir=.
36064 ac_top_srcdir=$ac_top_builddir_sub
36065 ac_abs_top_srcdir=$ac_pwd ;;
36066 [\\/]* | ?:[\\/]* ) # Absolute name.
36067 ac_srcdir=$srcdir$ac_dir_suffix;
36068 ac_top_srcdir=$srcdir
36069 ac_abs_top_srcdir=$srcdir ;;
36070 *) # Relative name.
36071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36072 ac_top_srcdir=$ac_top_build_prefix$srcdir
36073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36074esac
36075ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36076
36077
36078 case $ac_mode in
36079 :F)
36080 #
36081 # CONFIG_FILE
36082 #
36083
36084 case $INSTALL in
36085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36087 esac
cristy73bd4a52010-10-05 11:24:23 +000036088 ac_MKDIR_P=$MKDIR_P
36089 case $MKDIR_P in
36090 [\\/$]* | ?:[\\/]* ) ;;
36091 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36092 esac
cristy3ed852e2009-09-05 21:47:34 +000036093_ACEOF
36094
36095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36096# If the template does not know about datarootdir, expand it.
36097# FIXME: This hack should be removed a few years after 2.60.
36098ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036099ac_sed_dataroot='
36100/datarootdir/ {
36101 p
36102 q
36103}
36104/@datadir@/p
36105/@docdir@/p
36106/@infodir@/p
36107/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036108/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036109case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36110*datarootdir*) ac_datarootdir_seen=yes;;
36111*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036113$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36114_ACEOF
36115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36116 ac_datarootdir_hack='
36117 s&@datadir@&$datadir&g
36118 s&@docdir@&$docdir&g
36119 s&@infodir@&$infodir&g
36120 s&@localedir@&$localedir&g
36121 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036122 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036123esac
36124_ACEOF
36125
36126# Neutralize VPATH when `$srcdir' = `.'.
36127# Shell code in configure.ac might set extrasub.
36128# FIXME: do we really want to maintain this feature?
36129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36130ac_sed_extra="$ac_vpsub
36131$extrasub
36132_ACEOF
36133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36134:t
36135/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36136s|@configure_input@|$ac_sed_conf_input|;t t
36137s&@top_builddir@&$ac_top_builddir_sub&;t t
36138s&@top_build_prefix@&$ac_top_build_prefix&;t t
36139s&@srcdir@&$ac_srcdir&;t t
36140s&@abs_srcdir@&$ac_abs_srcdir&;t t
36141s&@top_srcdir@&$ac_top_srcdir&;t t
36142s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36143s&@builddir@&$ac_builddir&;t t
36144s&@abs_builddir@&$ac_abs_builddir&;t t
36145s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36146s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036147s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036148$ac_datarootdir_hack
36149"
cristyda16f162011-02-19 23:52:17 +000036150eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36151 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036152
36153test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036154 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36155 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36156 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036158which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036159$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036160which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036161
cristyda16f162011-02-19 23:52:17 +000036162 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036163 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036164 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36165 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036166 esac \
cristy98dddb52010-11-04 00:30:15 +000036167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036168 ;;
36169 :H)
36170 #
36171 # CONFIG_HEADER
36172 #
36173 if test x"$ac_file" != x-; then
36174 {
36175 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036176 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36177 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036179 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036180 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036181$as_echo "$as_me: $ac_file is unchanged" >&6;}
36182 else
36183 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036184 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036186 fi
36187 else
36188 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036190 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036191 fi
cristy73bd4a52010-10-05 11:24:23 +000036192# Compute "$ac_file"'s index in $config_headers.
36193_am_arg="$ac_file"
36194_am_stamp_count=1
36195for _am_header in $config_headers :; do
36196 case $_am_header in
36197 $_am_arg | $_am_arg:* )
36198 break ;;
36199 * )
36200 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36201 esac
36202done
36203echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36204$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36205 X"$_am_arg" : 'X\(//\)[^/]' \| \
36206 X"$_am_arg" : 'X\(//\)$' \| \
36207 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36208$as_echo X"$_am_arg" |
36209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36210 s//\1/
36211 q
36212 }
36213 /^X\(\/\/\)[^/].*/{
36214 s//\1/
36215 q
36216 }
36217 /^X\(\/\/\)$/{
36218 s//\1/
36219 q
36220 }
36221 /^X\(\/\).*/{
36222 s//\1/
36223 q
36224 }
36225 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036226 ;;
36227
cristy8b350f62009-11-15 23:12:43 +000036228 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036229$as_echo "$as_me: executing $ac_file commands" >&6;}
36230 ;;
36231 esac
36232
36233
36234 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000036235 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
36236ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36237ac_prefix_conf_PKG=`echo MagickCore`
36238ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36239ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36240ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36241if test ".$ac_prefix_conf_INP" = "."; then
36242 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36243 case "$ac_file" in
36244 *.h) ac_prefix_conf_INP=$ac_file ;;
36245 *)
36246 esac
36247 test ".$ac_prefix_conf_INP" != "." && break
36248 done
36249fi
36250if test ".$ac_prefix_conf_INP" = "."; then
36251 case "$ac_prefix_conf_OUT" in
36252 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36253 ;;
36254 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36255 ;;
36256 *) ac_prefix_conf_INP=config.h
36257 ;;
36258 esac
36259fi
36260if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036261 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036262else
36263 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36264 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36265 fi fi
36266 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36267$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36268 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036269 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36270 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36271 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36272 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36273 $as_echo "#endif/" >> conftest.prefix
36274 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36275 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36276 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036277 # now executing _script on _DEF input to create _OUT output file
36278 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36279 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36280 echo ' ' >>$tmp/pconfig.h
36281 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36282
36283 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36284 echo ' ' >>$tmp/pconfig.h
36285 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36286 echo "#endif" >>$tmp/pconfig.h
36287 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36288 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36289$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36290 else
36291 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36292$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36293 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36294 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36295 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36296$as_echo X"$ac_prefix_conf_OUT" |
36297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36298 s//\1/
36299 q
36300 }
36301 /^X\(\/\/\)[^/].*/{
36302 s//\1/
36303 q
36304 }
36305 /^X\(\/\/\)$/{
36306 s//\1/
36307 q
36308 }
36309 /^X\(\/\).*/{
36310 s//\1/
36311 q
36312 }
36313 s/.*/./; q'`
36314 as_dir="$ac_dir"; as_fn_mkdir_p
36315 rm -f "$ac_prefix_conf_OUT"
36316 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36317 fi
36318 cp conftest.prefix _configs.sed
36319 else
cristy98dddb52010-11-04 00:30:15 +000036320 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 +000036321 fi
36322 rm -f conftest.*
36323fi
36324 ;;
36325 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36326 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36327 # are listed without --file. Let's play safe and only enable the eval
36328 # if we detect the quoting.
36329 case $CONFIG_FILES in
36330 *\'*) eval set x "$CONFIG_FILES" ;;
36331 *) set x $CONFIG_FILES ;;
36332 esac
36333 shift
36334 for mf
36335 do
36336 # Strip MF so we end up with the name of the file.
36337 mf=`echo "$mf" | sed -e 's/:.*$//'`
36338 # Check whether this is an Automake generated Makefile or not.
36339 # We used to match only the files named `Makefile.in', but
36340 # some people rename them; so instead we look at the file content.
36341 # Grep'ing the first line is not enough: some people post-process
36342 # each Makefile.in and add a new line on top of each file to say so.
36343 # Grep'ing the whole file is not good either: AIX grep has a line
36344 # limit of 2048, but all sed's we know have understand at least 4000.
36345 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36346 dirpart=`$as_dirname -- "$mf" ||
36347$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36348 X"$mf" : 'X\(//\)[^/]' \| \
36349 X"$mf" : 'X\(//\)$' \| \
36350 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36351$as_echo X"$mf" |
36352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36353 s//\1/
36354 q
36355 }
36356 /^X\(\/\/\)[^/].*/{
36357 s//\1/
36358 q
36359 }
36360 /^X\(\/\/\)$/{
36361 s//\1/
36362 q
36363 }
36364 /^X\(\/\).*/{
36365 s//\1/
36366 q
36367 }
36368 s/.*/./; q'`
36369 else
36370 continue
36371 fi
36372 # Extract the definition of DEPDIR, am__include, and am__quote
36373 # from the Makefile without running `make'.
36374 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36375 test -z "$DEPDIR" && continue
36376 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36377 test -z "am__include" && continue
36378 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36379 # When using ansi2knr, U may be empty or an underscore; expand it
36380 U=`sed -n 's/^U = //p' < "$mf"`
36381 # Find all dependency output files, they are included files with
36382 # $(DEPDIR) in their names. We invoke sed twice because it is the
36383 # simplest approach to changing $(DEPDIR) to its actual value in the
36384 # expansion.
36385 for file in `sed -n "
36386 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36388 # Make sure the directory exists.
36389 test -f "$dirpart/$file" && continue
36390 fdir=`$as_dirname -- "$file" ||
36391$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36392 X"$file" : 'X\(//\)[^/]' \| \
36393 X"$file" : 'X\(//\)$' \| \
36394 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36395$as_echo X"$file" |
36396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36397 s//\1/
36398 q
36399 }
36400 /^X\(\/\/\)[^/].*/{
36401 s//\1/
36402 q
36403 }
36404 /^X\(\/\/\)$/{
36405 s//\1/
36406 q
36407 }
36408 /^X\(\/\).*/{
36409 s//\1/
36410 q
36411 }
36412 s/.*/./; q'`
36413 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36414 # echo "creating $dirpart/$file"
36415 echo '# dummy' > "$dirpart/$file"
36416 done
36417 done
36418}
36419 ;;
36420 "libtool":C)
36421
36422 # See if we are running on zsh, and set the options which allow our
36423 # commands through without removal of \ escapes.
36424 if test -n "${ZSH_VERSION+set}" ; then
36425 setopt NO_GLOB_SUBST
36426 fi
36427
36428 cfgfile="${ofile}T"
36429 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36430 $RM "$cfgfile"
36431
36432 cat <<_LT_EOF >> "$cfgfile"
36433#! $SHELL
36434
36435# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36436# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36437# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36438# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36439#
36440# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036441# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36442# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036443# Written by Gordon Matzigkeit, 1996
36444#
36445# This file is part of GNU Libtool.
36446#
36447# GNU Libtool is free software; you can redistribute it and/or
36448# modify it under the terms of the GNU General Public License as
36449# published by the Free Software Foundation; either version 2 of
36450# the License, or (at your option) any later version.
36451#
36452# As a special exception to the GNU General Public License,
36453# if you distribute this file as part of a program or library that
36454# is built using GNU Libtool, you may include this file under the
36455# same distribution terms that you use for the rest of that program.
36456#
36457# GNU Libtool is distributed in the hope that it will be useful,
36458# but WITHOUT ANY WARRANTY; without even the implied warranty of
36459# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36460# GNU General Public License for more details.
36461#
36462# You should have received a copy of the GNU General Public License
36463# along with GNU Libtool; see the file COPYING. If not, a copy
36464# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36465# obtained by writing to the Free Software Foundation, Inc.,
36466# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36467
36468
36469# The names of the tagged configurations supported by this script.
36470available_tags="CXX "
36471
36472# ### BEGIN LIBTOOL CONFIG
36473
36474# A sed program that does not truncate output.
36475SED=$lt_SED
36476
36477# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36478Xsed="\$SED -e 1s/^X//"
36479
36480# A grep program that handles long lines.
36481GREP=$lt_GREP
36482
36483# An ERE matcher.
36484EGREP=$lt_EGREP
36485
36486# A literal string matcher.
36487FGREP=$lt_FGREP
36488
cristy0c60a692010-11-04 01:09:47 +000036489# Shell to use when invoking shell scripts.
36490SHELL=$lt_SHELL
36491
36492# An echo program that protects backslashes.
36493ECHO=$lt_ECHO
36494
cristy73bd4a52010-10-05 11:24:23 +000036495# Which release of libtool.m4 was used?
36496macro_version=$macro_version
36497macro_revision=$macro_revision
36498
36499# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000036500AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000036501
36502# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000036503DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000036504
36505# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000036506OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000036507
36508# Whether or not to build shared libraries.
36509build_libtool_libs=$enable_shared
36510
36511# Whether or not to build static libraries.
36512build_old_libs=$enable_static
36513
36514# What type of objects to build.
36515pic_mode=$pic_mode
36516
36517# Whether or not to optimize for fast installation.
36518fast_install=$enable_fast_install
36519
36520# The host system.
36521host_alias=$host_alias
36522host=$host
36523host_os=$host_os
36524
36525# The build system.
36526build_alias=$build_alias
36527build=$build
36528build_os=$build_os
36529
36530# A BSD- or MS-compatible name lister.
36531NM=$lt_NM
36532
36533# Whether we need soft or hard links.
36534LN_S=$lt_LN_S
36535
36536# What is the maximum length of a command?
36537max_cmd_len=$max_cmd_len
36538
36539# Object file suffix (normally "o").
36540objext=$ac_objext
36541
36542# Executable file suffix (normally "").
36543exeext=$exeext
36544
36545# whether the shell understands "unset".
36546lt_unset=$lt_unset
36547
36548# turn spaces into newlines.
36549SP2NL=$lt_lt_SP2NL
36550
36551# turn newlines into spaces.
36552NL2SP=$lt_lt_NL2SP
36553
cristyda16f162011-02-19 23:52:17 +000036554# convert \$build file names to \$host format.
36555to_host_file_cmd=$lt_cv_to_host_file_cmd
36556
36557# convert \$build files to toolchain format.
36558to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36559
cristy73bd4a52010-10-05 11:24:23 +000036560# Method to check whether dependent libraries are shared objects.
36561deplibs_check_method=$lt_deplibs_check_method
36562
cristyda16f162011-02-19 23:52:17 +000036563# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000036564file_magic_cmd=$lt_file_magic_cmd
36565
cristyda16f162011-02-19 23:52:17 +000036566# How to find potential files when deplibs_check_method = "file_magic".
36567file_magic_glob=$lt_file_magic_glob
36568
36569# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36570want_nocaseglob=$lt_want_nocaseglob
36571
36572# Command to associate shared and link libraries.
36573sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36574
cristy73bd4a52010-10-05 11:24:23 +000036575# The archiver.
36576AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000036577
36578# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000036579AR_FLAGS=$lt_AR_FLAGS
36580
cristyda16f162011-02-19 23:52:17 +000036581# How to feed a file listing to the archiver.
36582archiver_list_spec=$lt_archiver_list_spec
36583
cristy73bd4a52010-10-05 11:24:23 +000036584# A symbol stripping program.
36585STRIP=$lt_STRIP
36586
36587# Commands used to install an old-style archive.
36588RANLIB=$lt_RANLIB
36589old_postinstall_cmds=$lt_old_postinstall_cmds
36590old_postuninstall_cmds=$lt_old_postuninstall_cmds
36591
cristy0c60a692010-11-04 01:09:47 +000036592# Whether to use a lock for old archive extraction.
36593lock_old_archive_extraction=$lock_old_archive_extraction
36594
cristy73bd4a52010-10-05 11:24:23 +000036595# A C compiler.
36596LTCC=$lt_CC
36597
36598# LTCC compiler flags.
36599LTCFLAGS=$lt_CFLAGS
36600
36601# Take the output of nm and produce a listing of raw symbols and C names.
36602global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36603
36604# Transform the output of nm in a proper C declaration.
36605global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36606
36607# Transform the output of nm in a C name address pair.
36608global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36609
36610# Transform the output of nm in a C name address pair when lib prefix is needed.
36611global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36612
cristyda16f162011-02-19 23:52:17 +000036613# Specify filename containing input files for \$NM.
36614nm_file_list_spec=$lt_nm_file_list_spec
36615
36616# The root where to search for dependent libraries,and in which our libraries should be installed.
36617lt_sysroot=$lt_sysroot
36618
cristy73bd4a52010-10-05 11:24:23 +000036619# The name of the directory that contains temporary libtool files.
36620objdir=$objdir
36621
cristy73bd4a52010-10-05 11:24:23 +000036622# Used to examine libraries when file_magic_cmd begins with "file".
36623MAGIC_CMD=$MAGIC_CMD
36624
36625# Must we lock files when doing compilation?
36626need_locks=$lt_need_locks
36627
cristyda16f162011-02-19 23:52:17 +000036628# Manifest tool.
36629MANIFEST_TOOL=$lt_MANIFEST_TOOL
36630
cristy73bd4a52010-10-05 11:24:23 +000036631# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36632DSYMUTIL=$lt_DSYMUTIL
36633
36634# Tool to change global to local symbols on Mac OS X.
36635NMEDIT=$lt_NMEDIT
36636
36637# Tool to manipulate fat objects and archives on Mac OS X.
36638LIPO=$lt_LIPO
36639
36640# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36641OTOOL=$lt_OTOOL
36642
36643# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36644OTOOL64=$lt_OTOOL64
36645
36646# Old archive suffix (normally "a").
36647libext=$libext
36648
36649# Shared library suffix (normally ".so").
36650shrext_cmds=$lt_shrext_cmds
36651
36652# The commands to extract the exported symbol list from a shared archive.
36653extract_expsyms_cmds=$lt_extract_expsyms_cmds
36654
36655# Variables whose values should be saved in libtool wrapper scripts and
36656# restored at link time.
36657variables_saved_for_relink=$lt_variables_saved_for_relink
36658
36659# Do we need the "lib" prefix for modules?
36660need_lib_prefix=$need_lib_prefix
36661
36662# Do we need a version for libraries?
36663need_version=$need_version
36664
36665# Library versioning type.
36666version_type=$version_type
36667
36668# Shared library runtime path variable.
36669runpath_var=$runpath_var
36670
36671# Shared library path variable.
36672shlibpath_var=$shlibpath_var
36673
36674# Is shlibpath searched before the hard-coded library search path?
36675shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36676
36677# Format of library name prefix.
36678libname_spec=$lt_libname_spec
36679
36680# List of archive names. First name is the real one, the rest are links.
36681# The last name is the one that the linker finds with -lNAME
36682library_names_spec=$lt_library_names_spec
36683
36684# The coded name of the library, if different from the real name.
36685soname_spec=$lt_soname_spec
36686
cristy0c60a692010-11-04 01:09:47 +000036687# Permission mode override for installation of shared libraries.
36688install_override_mode=$lt_install_override_mode
36689
cristy73bd4a52010-10-05 11:24:23 +000036690# Command to use after installation of a shared archive.
36691postinstall_cmds=$lt_postinstall_cmds
36692
36693# Command to use after uninstallation of a shared archive.
36694postuninstall_cmds=$lt_postuninstall_cmds
36695
36696# Commands used to finish a libtool library installation in a directory.
36697finish_cmds=$lt_finish_cmds
36698
36699# As "finish_cmds", except a single script fragment to be evaled but
36700# not shown.
36701finish_eval=$lt_finish_eval
36702
36703# Whether we should hardcode library paths into libraries.
36704hardcode_into_libs=$hardcode_into_libs
36705
36706# Compile-time system search path for libraries.
36707sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36708
36709# Run-time system search path for libraries.
36710sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36711
36712# Whether dlopen is supported.
36713dlopen_support=$enable_dlopen
36714
36715# Whether dlopen of programs is supported.
36716dlopen_self=$enable_dlopen_self
36717
36718# Whether dlopen of statically linked programs is supported.
36719dlopen_self_static=$enable_dlopen_self_static
36720
36721# Commands to strip libraries.
36722old_striplib=$lt_old_striplib
36723striplib=$lt_striplib
36724
36725
36726# The linker used to build libraries.
36727LD=$lt_LD
36728
cristy0c60a692010-11-04 01:09:47 +000036729# How to create reloadable object files.
36730reload_flag=$lt_reload_flag
36731reload_cmds=$lt_reload_cmds
36732
cristy73bd4a52010-10-05 11:24:23 +000036733# Commands used to build an old-style archive.
36734old_archive_cmds=$lt_old_archive_cmds
36735
36736# A language specific compiler.
36737CC=$lt_compiler
36738
36739# Is the compiler the GNU compiler?
36740with_gcc=$GCC
36741
36742# Compiler flag to turn off builtin functions.
36743no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36744
cristy73bd4a52010-10-05 11:24:23 +000036745# Additional compiler flags for building library objects.
36746pic_flag=$lt_lt_prog_compiler_pic
36747
cristyda16f162011-02-19 23:52:17 +000036748# How to pass a linker flag through the compiler.
36749wl=$lt_lt_prog_compiler_wl
36750
cristy73bd4a52010-10-05 11:24:23 +000036751# Compiler flag to prevent dynamic linking.
36752link_static_flag=$lt_lt_prog_compiler_static
36753
36754# Does compiler simultaneously support -c and -o options?
36755compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36756
36757# Whether or not to add -lc for building shared libraries.
36758build_libtool_need_lc=$archive_cmds_need_lc
36759
36760# Whether or not to disallow shared libs when runtime libs are static.
36761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36762
36763# Compiler flag to allow reflexive dlopens.
36764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36765
36766# Compiler flag to generate shared objects directly from archives.
36767whole_archive_flag_spec=$lt_whole_archive_flag_spec
36768
36769# Whether the compiler copes with passing no objects directly.
36770compiler_needs_object=$lt_compiler_needs_object
36771
36772# Create an old-style archive from a shared archive.
36773old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36774
36775# Create a temporary old-style archive to link instead of a shared archive.
36776old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36777
36778# Commands used to build a shared archive.
36779archive_cmds=$lt_archive_cmds
36780archive_expsym_cmds=$lt_archive_expsym_cmds
36781
36782# Commands used to build a loadable module if different from building
36783# a shared archive.
36784module_cmds=$lt_module_cmds
36785module_expsym_cmds=$lt_module_expsym_cmds
36786
36787# Whether we are building with GNU ld or not.
36788with_gnu_ld=$lt_with_gnu_ld
36789
36790# Flag that allows shared libraries with undefined symbols to be built.
36791allow_undefined_flag=$lt_allow_undefined_flag
36792
36793# Flag that enforces no undefined symbols.
36794no_undefined_flag=$lt_no_undefined_flag
36795
36796# Flag to hardcode \$libdir into a binary during linking.
36797# This must work even if \$libdir does not exist
36798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36799
36800# If ld is used when linking, flag to hardcode \$libdir into a binary
36801# during linking. This must work even if \$libdir does not exist.
36802hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36803
36804# Whether we need a single "-rpath" flag with a separated argument.
36805hardcode_libdir_separator=$lt_hardcode_libdir_separator
36806
36807# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36808# DIR into the resulting binary.
36809hardcode_direct=$hardcode_direct
36810
36811# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36812# DIR into the resulting binary and the resulting library dependency is
36813# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36814# library is relocated.
36815hardcode_direct_absolute=$hardcode_direct_absolute
36816
36817# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36818# into the resulting binary.
36819hardcode_minus_L=$hardcode_minus_L
36820
36821# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36822# into the resulting binary.
36823hardcode_shlibpath_var=$hardcode_shlibpath_var
36824
36825# Set to "yes" if building a shared library automatically hardcodes DIR
36826# into the library and all subsequent libraries and executables linked
36827# against it.
36828hardcode_automatic=$hardcode_automatic
36829
36830# Set to yes if linker adds runtime paths of dependent libraries
36831# to runtime path list.
36832inherit_rpath=$inherit_rpath
36833
36834# Whether libtool must link a program against all its dependency libraries.
36835link_all_deplibs=$link_all_deplibs
36836
cristy73bd4a52010-10-05 11:24:23 +000036837# Set to "yes" if exported symbols are required.
36838always_export_symbols=$always_export_symbols
36839
36840# The commands to list exported symbols.
36841export_symbols_cmds=$lt_export_symbols_cmds
36842
36843# Symbols that should not be listed in the preloaded symbols.
36844exclude_expsyms=$lt_exclude_expsyms
36845
36846# Symbols that must always be exported.
36847include_expsyms=$lt_include_expsyms
36848
36849# Commands necessary for linking programs (against libraries) with templates.
36850prelink_cmds=$lt_prelink_cmds
36851
cristyda16f162011-02-19 23:52:17 +000036852# Commands necessary for finishing linking programs.
36853postlink_cmds=$lt_postlink_cmds
36854
cristy73bd4a52010-10-05 11:24:23 +000036855# Specify filename containing input files.
36856file_list_spec=$lt_file_list_spec
36857
36858# How to hardcode a shared library path into an executable.
36859hardcode_action=$hardcode_action
36860
36861# The directories searched by this compiler when creating a shared library.
36862compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36863
36864# Dependencies to place before and after the objects being linked to
36865# create a shared library.
36866predep_objects=$lt_predep_objects
36867postdep_objects=$lt_postdep_objects
36868predeps=$lt_predeps
36869postdeps=$lt_postdeps
36870
36871# The library search path used internally by the compiler when linking
36872# a shared library.
36873compiler_lib_search_path=$lt_compiler_lib_search_path
36874
36875# ### END LIBTOOL CONFIG
36876
36877_LT_EOF
36878
36879 case $host_os in
36880 aix3*)
36881 cat <<\_LT_EOF >> "$cfgfile"
36882# AIX sometimes has problems with the GCC collect2 program. For some
36883# reason, if we set the COLLECT_NAMES environment variable, the problems
36884# vanish in a puff of smoke.
36885if test "X${COLLECT_NAMES+set}" != Xset; then
36886 COLLECT_NAMES=
36887 export COLLECT_NAMES
36888fi
36889_LT_EOF
36890 ;;
36891 esac
36892
36893
36894ltmain="$ac_aux_dir/ltmain.sh"
36895
36896
36897 # We use sed instead of cat because bash on DJGPP gets confused if
36898 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36899 # text mode, it properly converts lines to CR/LF. This bash problem
36900 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036901 sed '$q' "$ltmain" >> "$cfgfile" \
36902 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036903
cristyda16f162011-02-19 23:52:17 +000036904 if test x"$xsi_shell" = xyes; then
36905 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36906func_dirname ()\
36907{\
36908\ case ${1} in\
36909\ */*) func_dirname_result="${1%/*}${2}" ;;\
36910\ * ) func_dirname_result="${3}" ;;\
36911\ esac\
36912} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36913 && mv -f "$cfgfile.tmp" "$cfgfile" \
36914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36915test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036916
36917
cristyda16f162011-02-19 23:52:17 +000036918 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36919func_basename ()\
36920{\
36921\ func_basename_result="${1##*/}"\
36922} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36923 && mv -f "$cfgfile.tmp" "$cfgfile" \
36924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36925test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036926
36927
cristyda16f162011-02-19 23:52:17 +000036928 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36929func_dirname_and_basename ()\
36930{\
36931\ case ${1} in\
36932\ */*) func_dirname_result="${1%/*}${2}" ;;\
36933\ * ) func_dirname_result="${3}" ;;\
36934\ esac\
36935\ func_basename_result="${1##*/}"\
36936} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36937 && mv -f "$cfgfile.tmp" "$cfgfile" \
36938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36939test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036940
cristyda16f162011-02-19 23:52:17 +000036941
36942 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36943func_stripname ()\
36944{\
36945\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36946\ # positional parameters, so assign one to ordinary parameter first.\
36947\ func_stripname_result=${3}\
36948\ func_stripname_result=${func_stripname_result#"${1}"}\
36949\ func_stripname_result=${func_stripname_result%"${2}"}\
36950} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36951 && mv -f "$cfgfile.tmp" "$cfgfile" \
36952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36953test 0 -eq $? || _lt_function_replace_fail=:
36954
36955
36956 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36957func_split_long_opt ()\
36958{\
36959\ func_split_long_opt_name=${1%%=*}\
36960\ func_split_long_opt_arg=${1#*=}\
36961} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36962 && mv -f "$cfgfile.tmp" "$cfgfile" \
36963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36964test 0 -eq $? || _lt_function_replace_fail=:
36965
36966
36967 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36968func_split_short_opt ()\
36969{\
36970\ func_split_short_opt_arg=${1#??}\
36971\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36972} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36973 && mv -f "$cfgfile.tmp" "$cfgfile" \
36974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36975test 0 -eq $? || _lt_function_replace_fail=:
36976
36977
36978 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36979func_lo2o ()\
36980{\
36981\ case ${1} in\
36982\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36983\ *) func_lo2o_result=${1} ;;\
36984\ esac\
36985} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36986 && mv -f "$cfgfile.tmp" "$cfgfile" \
36987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36988test 0 -eq $? || _lt_function_replace_fail=:
36989
36990
36991 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36992func_xform ()\
36993{\
36994 func_xform_result=${1%.*}.lo\
36995} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36996 && mv -f "$cfgfile.tmp" "$cfgfile" \
36997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36998test 0 -eq $? || _lt_function_replace_fail=:
36999
37000
37001 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37002func_arith ()\
37003{\
37004 func_arith_result=$(( $* ))\
37005} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37006 && mv -f "$cfgfile.tmp" "$cfgfile" \
37007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37008test 0 -eq $? || _lt_function_replace_fail=:
37009
37010
37011 sed -e '/^func_len ()$/,/^} # func_len /c\
37012func_len ()\
37013{\
37014 func_len_result=${#1}\
37015} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37016 && mv -f "$cfgfile.tmp" "$cfgfile" \
37017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37018test 0 -eq $? || _lt_function_replace_fail=:
37019
37020fi
37021
37022if test x"$lt_shell_append" = xyes; then
37023 sed -e '/^func_append ()$/,/^} # func_append /c\
37024func_append ()\
37025{\
37026 eval "${1}+=\\${2}"\
37027} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37028 && mv -f "$cfgfile.tmp" "$cfgfile" \
37029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37030test 0 -eq $? || _lt_function_replace_fail=:
37031
37032
37033 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37034func_append_quoted ()\
37035{\
37036\ func_quote_for_eval "${2}"\
37037\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37038} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37039 && mv -f "$cfgfile.tmp" "$cfgfile" \
37040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37041test 0 -eq $? || _lt_function_replace_fail=:
37042
37043
37044 # Save a `func_append' function call where possible by direct use of '+='
37045 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37046 && mv -f "$cfgfile.tmp" "$cfgfile" \
37047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37048 test 0 -eq $? || _lt_function_replace_fail=:
37049else
37050 # Save a `func_append' function call even when '+=' is not available
37051 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37052 && mv -f "$cfgfile.tmp" "$cfgfile" \
37053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37054 test 0 -eq $? || _lt_function_replace_fail=:
37055fi
37056
37057if test x"$_lt_function_replace_fail" = x":"; then
37058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37059$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37060fi
37061
37062
37063 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037064 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37065 chmod +x "$ofile"
37066
37067
37068 cat <<_LT_EOF >> "$ofile"
37069
37070# ### BEGIN LIBTOOL TAG CONFIG: CXX
37071
37072# The linker used to build libraries.
37073LD=$lt_LD_CXX
37074
cristy0c60a692010-11-04 01:09:47 +000037075# How to create reloadable object files.
37076reload_flag=$lt_reload_flag_CXX
37077reload_cmds=$lt_reload_cmds_CXX
37078
cristy73bd4a52010-10-05 11:24:23 +000037079# Commands used to build an old-style archive.
37080old_archive_cmds=$lt_old_archive_cmds_CXX
37081
37082# A language specific compiler.
37083CC=$lt_compiler_CXX
37084
37085# Is the compiler the GNU compiler?
37086with_gcc=$GCC_CXX
37087
37088# Compiler flag to turn off builtin functions.
37089no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37090
cristy73bd4a52010-10-05 11:24:23 +000037091# Additional compiler flags for building library objects.
37092pic_flag=$lt_lt_prog_compiler_pic_CXX
37093
cristyda16f162011-02-19 23:52:17 +000037094# How to pass a linker flag through the compiler.
37095wl=$lt_lt_prog_compiler_wl_CXX
37096
cristy73bd4a52010-10-05 11:24:23 +000037097# Compiler flag to prevent dynamic linking.
37098link_static_flag=$lt_lt_prog_compiler_static_CXX
37099
37100# Does compiler simultaneously support -c and -o options?
37101compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37102
37103# Whether or not to add -lc for building shared libraries.
37104build_libtool_need_lc=$archive_cmds_need_lc_CXX
37105
37106# Whether or not to disallow shared libs when runtime libs are static.
37107allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37108
37109# Compiler flag to allow reflexive dlopens.
37110export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37111
37112# Compiler flag to generate shared objects directly from archives.
37113whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37114
37115# Whether the compiler copes with passing no objects directly.
37116compiler_needs_object=$lt_compiler_needs_object_CXX
37117
37118# Create an old-style archive from a shared archive.
37119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37120
37121# Create a temporary old-style archive to link instead of a shared archive.
37122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37123
37124# Commands used to build a shared archive.
37125archive_cmds=$lt_archive_cmds_CXX
37126archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37127
37128# Commands used to build a loadable module if different from building
37129# a shared archive.
37130module_cmds=$lt_module_cmds_CXX
37131module_expsym_cmds=$lt_module_expsym_cmds_CXX
37132
37133# Whether we are building with GNU ld or not.
37134with_gnu_ld=$lt_with_gnu_ld_CXX
37135
37136# Flag that allows shared libraries with undefined symbols to be built.
37137allow_undefined_flag=$lt_allow_undefined_flag_CXX
37138
37139# Flag that enforces no undefined symbols.
37140no_undefined_flag=$lt_no_undefined_flag_CXX
37141
37142# Flag to hardcode \$libdir into a binary during linking.
37143# This must work even if \$libdir does not exist
37144hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37145
37146# If ld is used when linking, flag to hardcode \$libdir into a binary
37147# during linking. This must work even if \$libdir does not exist.
37148hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37149
37150# Whether we need a single "-rpath" flag with a separated argument.
37151hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37152
37153# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37154# DIR into the resulting binary.
37155hardcode_direct=$hardcode_direct_CXX
37156
37157# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37158# DIR into the resulting binary and the resulting library dependency is
37159# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37160# library is relocated.
37161hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37162
37163# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37164# into the resulting binary.
37165hardcode_minus_L=$hardcode_minus_L_CXX
37166
37167# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37168# into the resulting binary.
37169hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37170
37171# Set to "yes" if building a shared library automatically hardcodes DIR
37172# into the library and all subsequent libraries and executables linked
37173# against it.
37174hardcode_automatic=$hardcode_automatic_CXX
37175
37176# Set to yes if linker adds runtime paths of dependent libraries
37177# to runtime path list.
37178inherit_rpath=$inherit_rpath_CXX
37179
37180# Whether libtool must link a program against all its dependency libraries.
37181link_all_deplibs=$link_all_deplibs_CXX
37182
cristy73bd4a52010-10-05 11:24:23 +000037183# Set to "yes" if exported symbols are required.
37184always_export_symbols=$always_export_symbols_CXX
37185
37186# The commands to list exported symbols.
37187export_symbols_cmds=$lt_export_symbols_cmds_CXX
37188
37189# Symbols that should not be listed in the preloaded symbols.
37190exclude_expsyms=$lt_exclude_expsyms_CXX
37191
37192# Symbols that must always be exported.
37193include_expsyms=$lt_include_expsyms_CXX
37194
37195# Commands necessary for linking programs (against libraries) with templates.
37196prelink_cmds=$lt_prelink_cmds_CXX
37197
cristyda16f162011-02-19 23:52:17 +000037198# Commands necessary for finishing linking programs.
37199postlink_cmds=$lt_postlink_cmds_CXX
37200
cristy73bd4a52010-10-05 11:24:23 +000037201# Specify filename containing input files.
37202file_list_spec=$lt_file_list_spec_CXX
37203
37204# How to hardcode a shared library path into an executable.
37205hardcode_action=$hardcode_action_CXX
37206
37207# The directories searched by this compiler when creating a shared library.
37208compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37209
37210# Dependencies to place before and after the objects being linked to
37211# create a shared library.
37212predep_objects=$lt_predep_objects_CXX
37213postdep_objects=$lt_postdep_objects_CXX
37214predeps=$lt_predeps_CXX
37215postdeps=$lt_postdeps_CXX
37216
37217# The library search path used internally by the compiler when linking
37218# a shared library.
37219compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37220
37221# ### END LIBTOOL TAG CONFIG: CXX
37222_LT_EOF
37223
37224 ;;
cristy3ed852e2009-09-05 21:47:34 +000037225 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
37226 "Magick-config.in":C) chmod +x magick/Magick-config ;;
37227 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
37228 "Wand-config.in":C) chmod +x wand/Wand-config ;;
37229 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37230 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37231
37232 esac
37233done # for ac_tag
37234
37235
cristy8b350f62009-11-15 23:12:43 +000037236as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037237_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037238ac_clean_files=$ac_clean_files_save
37239
37240test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037242
37243
37244# configure is writing to config.log, and then calls config.status.
37245# config.status does its own redirection, appending to config.log.
37246# Unfortunately, on DOS this fails, as config.log is still kept open
37247# by configure, so config.status won't be able to write to it; its
37248# output is simply discarded. So we exec the FD to /dev/null,
37249# effectively closing config.log, so it can be properly (re)opened and
37250# appended to by config.status. When coming back to configure, we
37251# need to make the FD available again.
37252if test "$no_create" != yes; then
37253 ac_cs_success=:
37254 ac_config_status_args=
37255 test "$silent" = yes &&
37256 ac_config_status_args="$ac_config_status_args --quiet"
37257 exec 5>/dev/null
37258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37259 exec 5>>config.log
37260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37261 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037262 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037263fi
37264if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037266$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37267fi
37268
37269
37270rm -f magick-version
37271
cristy430a7312010-01-21 20:44:04 +000037272result_dejavu_font_dir='none'
37273if test "${dejavu_font_dir}x" != 'x'; then
37274 result_dejavu_font_dir=$dejavu_font_dir
37275fi
37276
cristy3ed852e2009-09-05 21:47:34 +000037277result_ghostscript_font_dir='none'
37278if test "${ghostscript_font_dir}x" != 'x'; then
37279 result_ghostscript_font_dir=$ghostscript_font_dir
37280fi
37281
37282result_windows_font_dir='none'
37283if test "${windows_font_dir}x" != 'x'; then
37284 result_windows_font_dir=${windows_font_dir}
37285fi
37286
cristy8b350f62009-11-15 23:12:43 +000037287{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000037288ImageMagick is configured as follows. Please verify that this configuration
37289matches your expectations.
37290
37291Host system type: $host
37292Build system type: $build
37293
37294 Option Value
37295-------------------------------------------------------------------------------
37296Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37297Static libraries --enable-static=$enable_static $libtool_build_static_libs
37298Module support --with-modules=$with_modules $with_modules
37299GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37300Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37301High Dynamic Range Imagery
37302 --enable-hdri=$enable_hdri $enable_hdri
37303
37304Delegate Configuration:
37305BZLIB --with-bzlib=$with_bzlib $have_bzlib
37306Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037307Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037308DJVU --with-djvu=$with_djvu $have_djvu
37309DPS --with-dps=$with_dps $have_dps
37310FFTW --with-fftw=$with_fftw $have_fftw
37311FlashPIX --with-fpx=$with_fpx $have_fpx
37312FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37313FreeType --with-freetype=$with_freetype $have_freetype
37314GhostPCL None $PCLDelegate ($PCLVersion)
37315GhostXPS None $XPSDelegate ($XPSVersion)
37316Ghostscript None $PSDelegate ($GSVersion)
37317Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37318Ghostscript lib --with-gslib=$with_gslib $have_gslib
37319Graphviz --with-gvc=$with_gvc $have_gvc
37320JBIG --with-jbig=$with_jbig $have_jbig
37321JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37322JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037323LCMS v1 --with-lcms=$with_lcms $have_lcms
37324LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037325LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037326LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037327Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37328OpenEXR --with-openexr=$with_openexr $have_openexr
37329PERL --with-perl=$with_perl $have_perl
37330PNG --with-png=$with_png $have_png
37331RSVG --with-rsvg=$with_rsvg $have_rsvg
37332TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037333WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037334Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37335WMF --with-wmf=$with_wmf $have_wmf
37336X11 --with-x=$with_x $have_x
37337XML --with-xml=$with_xml $have_xml
37338ZLIB --with-zlib=$with_zlib $have_zlib
37339
37340X11 Configuration:
37341 X_CFLAGS = $X_CFLAGS
37342 X_PRE_LIBS = $X_PRE_LIBS
37343 X_LIBS = $X_LIBS
37344 X_EXTRA_LIBS = $X_EXTRA_LIBS
37345
37346Options used to compile and link:
37347 PREFIX = $PREFIX_DIR
37348 EXEC-PREFIX = $EXEC_PREFIX_DIR
37349 VERSION = $PACKAGE_VERSION
37350 CC = $CC
37351 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037352 CPPFLAGS = $MAGICK_CPPFLAGS
37353 PCFLAGS = $MAGICK_PCFLAGS
37354 DEFS = $DEFS
37355 LDFLAGS = $LDFLAGS
37356 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37357 LIBS = $MAGICK_LIBS
37358 CXX = $CXX
37359 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037360 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037361" >&5
37362$as_echo "
37363ImageMagick is configured as follows. Please verify that this configuration
37364matches your expectations.
37365
37366Host system type: $host
37367Build system type: $build
37368
37369 Option Value
37370-------------------------------------------------------------------------------
37371Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37372Static libraries --enable-static=$enable_static $libtool_build_static_libs
37373Module support --with-modules=$with_modules $with_modules
37374GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37375Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37376High Dynamic Range Imagery
37377 --enable-hdri=$enable_hdri $enable_hdri
37378
37379Delegate Configuration:
37380BZLIB --with-bzlib=$with_bzlib $have_bzlib
37381Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037382Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037383DJVU --with-djvu=$with_djvu $have_djvu
37384DPS --with-dps=$with_dps $have_dps
37385FFTW --with-fftw=$with_fftw $have_fftw
37386FlashPIX --with-fpx=$with_fpx $have_fpx
37387FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37388FreeType --with-freetype=$with_freetype $have_freetype
37389GhostPCL None $PCLDelegate ($PCLVersion)
37390GhostXPS None $XPSDelegate ($XPSVersion)
37391Ghostscript None $PSDelegate ($GSVersion)
37392Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37393Ghostscript lib --with-gslib=$with_gslib $have_gslib
37394Graphviz --with-gvc=$with_gvc $have_gvc
37395JBIG --with-jbig=$with_jbig $have_jbig
37396JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37397JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037398LCMS v1 --with-lcms=$with_lcms $have_lcms
37399LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037400LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037401LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037402Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37403OpenEXR --with-openexr=$with_openexr $have_openexr
37404PERL --with-perl=$with_perl $have_perl
37405PNG --with-png=$with_png $have_png
37406RSVG --with-rsvg=$with_rsvg $have_rsvg
37407TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037408WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037409Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37410WMF --with-wmf=$with_wmf $have_wmf
37411X11 --with-x=$with_x $have_x
37412XML --with-xml=$with_xml $have_xml
37413ZLIB --with-zlib=$with_zlib $have_zlib
37414
37415X11 Configuration:
37416 X_CFLAGS = $X_CFLAGS
37417 X_PRE_LIBS = $X_PRE_LIBS
37418 X_LIBS = $X_LIBS
37419 X_EXTRA_LIBS = $X_EXTRA_LIBS
37420
37421Options used to compile and link:
37422 PREFIX = $PREFIX_DIR
37423 EXEC-PREFIX = $EXEC_PREFIX_DIR
37424 VERSION = $PACKAGE_VERSION
37425 CC = $CC
37426 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037427 CPPFLAGS = $MAGICK_CPPFLAGS
37428 PCFLAGS = $MAGICK_PCFLAGS
37429 DEFS = $DEFS
37430 LDFLAGS = $LDFLAGS
37431 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37432 LIBS = $MAGICK_LIBS
37433 CXX = $CXX
37434 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037435 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037436" >&6; }