blob: 50ad9a965546bd5af93e4e6648d6ef02b76de6a1 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000738WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000742WEBP_LIBS
743WEBP_DELEGATE_FALSE
744WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746TIFF_DELEGATE_FALSE
747TIFF_DELEGATE_TRUE
748CAIRO_DELEGATE_FALSE
749CAIRO_DELEGATE_TRUE
750RSVG_DELEGATE_FALSE
751RSVG_DELEGATE_TRUE
752CAIRO_SVG_LIBS
753CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000754RSVG_LIBS
755RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000756PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000757PNG_DELEGATE_FALSE
758PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000759PANGOFT2_DELEGATE_FALSE
760PANGOFT2_DELEGATE_TRUE
761PANGO_DELEGATE_FALSE
762PANGO_DELEGATE_TRUE
763PANGO_LIBS
764PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000765OPENEXR_DELEGATE_FALSE
766OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000767OPENEXR_LIBS
768OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000769LZMA_DELEGATE_FALSE
770LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000771LZMA_LIBS
772LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000773LQR_DELEGATE_FALSE
774LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775LQR_LIBS
776LQR_CFLAGS
777LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778LCMS_DELEGATE_FALSE
779LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JP2_DELEGATE_FALSE
782JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784JPEG_DELEGATE_FALSE
785JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787JBIG_DELEGATE_FALSE
788JBIG_DELEGATE_TRUE
789GVC_DELEGATE_FALSE
790GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791GVC_LIBS
792GVC_CFLAGS
793GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794GS_DELEGATE_FALSE
795GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797FREETYPE_DELEGATE_FALSE
798FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000799freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000800FONTCONFIG_DELEGATE_FALSE
801FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802FONTCONFIG_LIBS
803FONTCONFIG_CFLAGS
804FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805FPX_DELEGATE_FALSE
806FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808FFTW_DELEGATE_FALSE
809FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811DJVU_DELEGATE_FALSE
812DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814DPS_DELEGATE_FALSE
815DPS_DELEGATE_TRUE
816AUTOTRACE_DELEGATE_FALSE
817AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818AUTOTRACE_LIBS
819AUTOTRACE_CFLAGS
820LIB_DL
821ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822ZLIB_DELEGATE_FALSE
823ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824XEXT_LIBS
825X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826X11_DELEGATE_FALSE
827X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828X_EXTRA_LIBS
829X_LIBS
830X_PRE_LIBS
831X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000832XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000833BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834BZLIB_DELEGATE_FALSE
835BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836CCMALLOCDelegate
837UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838HasUMEM_FALSE
839HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840THREAD_LIBS
841GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842WITH_MAGICK_PLUS_PLUS_FALSE
843WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000845MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000846POW_LIB
847LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000848UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000850UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000851UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000856UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000857UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000858INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000859INT32_T
860UINT16_T
861INT16_T
862UINT8_T
863INT8_T
864LIBRARY_EXTRA_CPPFLAGS
865MODULE_EXTRA_CPPFLAGS
866LIBSTDCLDFLAGS
867PERL_MAKE_OPTIONS
868QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000869MAINT
870MAINTAINER_MODE_FALSE
871MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872MAGICK_HDRI
873DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000874WITH_LTDL_FALSE
875WITH_LTDL_TRUE
876WITH_MODULES_FALSE
877WITH_MODULES_TRUE
878WITH_SHARED_LIBS_FALSE
879WITH_SHARED_LIBS_TRUE
880LTDLOPEN
881LT_CONFIG_H
882CONVENIENCE_LTDL_FALSE
883CONVENIENCE_LTDL_TRUE
884INSTALL_LTDL_FALSE
885INSTALL_LTDL_TRUE
886ARGZ_H
887sys_symbol_underscore
888LIBADD_DL
889LT_DLPREOPEN
890LIBADD_DLD_LINK
891LIBADD_SHL_LOAD
892LIBADD_DLOPEN
893LT_DLLOADERS
894INCLTDL
895LTDLINCL
896LTDLDEPS
897LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000898LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000899CXXCPP
900OTOOL64
901OTOOL
902LIPO
903NMEDIT
904DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000905MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000906RANLIB
cristyda16f162011-02-19 23:52:17 +0000907ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000908AR
909NM
910ac_ct_DUMPBIN
911DUMPBIN
912LIBTOOL
913OBJDUMP
914DLLTOOL
915AS
cristy3ed852e2009-09-05 21:47:34 +0000916LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000917CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000918CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000919OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000920PTHREAD_CFLAGS
921PTHREAD_LIBS
922PTHREAD_CC
923ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000924SHAREARCH_DIR
925INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000926WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000927USING_CL_FALSE
928USING_CL_TRUE
929CYGWIN_BUILD_FALSE
930CYGWIN_BUILD_TRUE
931WIN32_NATIVE_BUILD_FALSE
932WIN32_NATIVE_BUILD_TRUE
933WINGDI32_DELEGATE_FALSE
934WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000935GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000936PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000937LN_S
cristy3ed852e2009-09-05 21:47:34 +0000938LD
cristy73bd4a52010-10-05 11:24:23 +0000939FGREP
940SED
941am__fastdepCXX_FALSE
942am__fastdepCXX_TRUE
943CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000944ac_ct_CXX
945CXXFLAGS
946CXX
cristya0b81c32010-01-22 02:54:33 +0000947EGREP
948GREP
949CPP
cristy73bd4a52010-10-05 11:24:23 +0000950am__fastdepCC_FALSE
951am__fastdepCC_TRUE
952CCDEPMODE
953AMDEPBACKSLASH
954AMDEP_FALSE
955AMDEP_TRUE
956am__quote
957am__include
958DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000959OBJEXT
960EXEEXT
961ac_ct_CC
962CPPFLAGS
963LDFLAGS
964CFLAGS
965CC
966DIRSEP
967MAGICK_FILTER_MODULE_PATH
968MAGICK_CONFIGURE_BUILD_PATH
969MAGICK_CONFIGURE_SRC_PATH
970MAGICK_CODER_MODULE_PATH
971MAN_DIR
972INFO_DIR
973PERSISTINCLUDE_DIR
974INCLUDE_DIR
975LIB_DIR
976LOCALSTATE_DIR
977SHAREDSTATE_DIR
978SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000979DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000980DATA_DIR
981LIBEXEC_DIR
982SBIN_DIR
983BIN_DIR
984EXEC_PREFIX_DIR
985PREFIX_DIR
986CONFIG_STATUS_DEPENDENCIES
987MAGICK_LIB_VERSION_NUMBER
988MAGICK_LIB_VERSION_TEXT
989MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000990AM_BACKSLASH
991AM_DEFAULT_VERBOSITY
992am__untar
993am__tar
994AMTAR
995am__leading_dot
996SET_MAKE
997AWK
998mkdir_p
999MKDIR_P
1000INSTALL_STRIP_PROGRAM
1001STRIP
1002install_sh
1003MAKEINFO
1004AUTOHEADER
1005AUTOMAKE
1006AUTOCONF
1007ACLOCAL
1008VERSION
1009PACKAGE
1010CYGPATH_W
1011am__isrc
1012INSTALL_DATA
1013INSTALL_SCRIPT
1014INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001015PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001016PACKAGE_RELEASE_DATE
1017PACKAGE_LIB_VERSION_NUMBER
1018PACKAGE_LIB_VERSION
1019PACKAGE_CHANGE_DATE
1020PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001021PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001022MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001023MAGICK_LIBRARY_VERSION_INFO
1024MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001025MAGICK_LIBRARY_AGE
1026MAGICK_LIBRARY_REVISION
1027MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001028MAGICK_TARGET_OS
1029MAGICK_TARGET_VENDOR
1030MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001031target_os
1032target_vendor
1033target_cpu
1034target
1035host_os
1036host_vendor
1037host_cpu
1038host
1039build_os
1040build_vendor
1041build_cpu
1042build
1043CONFIGURE_ARGS
1044DISTCHECK_CONFIG_FLAGS
1045target_alias
1046host_alias
1047build_alias
1048LIBS
1049ECHO_T
1050ECHO_N
1051ECHO_C
1052DEFS
1053mandir
1054localedir
1055libdir
1056psdir
1057pdfdir
1058dvidir
1059htmldir
1060infodir
1061docdir
1062oldincludedir
1063includedir
1064localstatedir
1065sharedstatedir
1066sysconfdir
1067datadir
1068datarootdir
1069libexecdir
1070sbindir
1071bindir
1072program_transform_name
1073prefix
1074exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001075PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001076PACKAGE_BUGREPORT
1077PACKAGE_STRING
1078PACKAGE_VERSION
1079PACKAGE_TARNAME
1080PACKAGE_NAME
1081PATH_SEPARATOR
1082SHELL'
1083ac_subst_files=''
1084ac_user_opts='
1085enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001086enable_silent_rules
1087enable_dependency_tracking
1088with_gnu_ld
1089with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001090enable_bounds_checking
1091enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001092with_includearch_dir
1093with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001094with_threads
1095enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001096enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001097enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001098enable_shared
1099enable_static
1100with_pic
1101enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001102with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001103enable_libtool_lock
1104with_included_ltdl
1105with_ltdl_include
1106with_ltdl_lib
1107enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001108with_modules
1109enable_delegate_build
1110enable_deprecated
1111enable_installed
1112enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001113enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001114enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001115enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001116enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001117enable_ccmalloc
1118enable_efence
1119enable_prof
1120enable_gprof
1121enable_gcov
1122with_method_prefix
1123with_quantum_depth
1124with_cache
1125with_frozenpaths
1126with_magick_plus_plus
1127with_perl
1128with_perl_options
1129with_umem
1130with_libstdc
1131with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001132with_x
cristy3ed852e2009-09-05 21:47:34 +00001133with_zlib
1134with_autotrace
1135with_dps
1136with_djvu
cristy430a7312010-01-21 20:44:04 +00001137with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001138with_fftw
1139with_fpx
1140with_fontconfig
1141with_freetype
1142with_gslib
1143with_fontpath
1144with_gs_font_dir
1145with_gvc
1146with_jbig
1147with_jpeg
1148with_jp2
1149with_lcms
cristy71203402010-06-18 13:12:03 +00001150with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001151with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001152with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001153with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001154with_pango
cristy3ed852e2009-09-05 21:47:34 +00001155with_png
1156with_rsvg
1157with_tiff
cristyb1860752011-03-14 00:27:46 +00001158with_webp
cristy3ed852e2009-09-05 21:47:34 +00001159with_windows_font_dir
1160with_wmf
1161with_xml
1162'
1163 ac_precious_vars='build_alias
1164host_alias
1165target_alias
1166CC
1167CFLAGS
1168LDFLAGS
1169LIBS
1170CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001171CPP
cristy3ed852e2009-09-05 21:47:34 +00001172CXX
1173CXXFLAGS
1174CCC
cristy73bd4a52010-10-05 11:24:23 +00001175PKG_CONFIG
1176CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001177XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001178AUTOTRACE_CFLAGS
1179AUTOTRACE_LIBS
1180FONTCONFIG_CFLAGS
1181FONTCONFIG_LIBS
1182GVC_CFLAGS
1183GVC_LIBS
1184LQR_CFLAGS
1185LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001186LZMA_CFLAGS
1187LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001188OPENEXR_CFLAGS
1189OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001190PANGO_CFLAGS
1191PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001192RSVG_CFLAGS
1193RSVG_LIBS
1194CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001195CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001196
1197
1198# Initialize some variables set by options.
1199ac_init_help=
1200ac_init_version=false
1201ac_unrecognized_opts=
1202ac_unrecognized_sep=
1203# The variables have the same names as the options, with
1204# dashes changed to underlines.
1205cache_file=/dev/null
1206exec_prefix=NONE
1207no_create=
1208no_recursion=
1209prefix=NONE
1210program_prefix=NONE
1211program_suffix=NONE
1212program_transform_name=s,x,x,
1213silent=
1214site=
1215srcdir=
1216verbose=
1217x_includes=NONE
1218x_libraries=NONE
1219
1220# Installation directory options.
1221# These are left unexpanded so users can "make install exec_prefix=/foo"
1222# and all the variables that are supposed to be based on exec_prefix
1223# by default will actually change.
1224# Use braces instead of parens because sh, perl, etc. also accept them.
1225# (The list follows the same order as the GNU Coding Standards.)
1226bindir='${exec_prefix}/bin'
1227sbindir='${exec_prefix}/sbin'
1228libexecdir='${exec_prefix}/libexec'
1229datarootdir='${prefix}/share'
1230datadir='${datarootdir}'
1231sysconfdir='${prefix}/etc'
1232sharedstatedir='${prefix}/com'
1233localstatedir='${prefix}/var'
1234includedir='${prefix}/include'
1235oldincludedir='/usr/include'
1236docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237infodir='${datarootdir}/info'
1238htmldir='${docdir}'
1239dvidir='${docdir}'
1240pdfdir='${docdir}'
1241psdir='${docdir}'
1242libdir='${exec_prefix}/lib'
1243localedir='${datarootdir}/locale'
1244mandir='${datarootdir}/man'
1245
1246ac_prev=
1247ac_dashdash=
1248for ac_option
1249do
1250 # If the previous option needs an argument, assign it.
1251 if test -n "$ac_prev"; then
1252 eval $ac_prev=\$ac_option
1253 ac_prev=
1254 continue
1255 fi
1256
1257 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001258 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1259 *=) ac_optarg= ;;
1260 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001261 esac
1262
1263 # Accept the important Cygnus configure options, so we can diagnose typos.
1264
1265 case $ac_dashdash$ac_option in
1266 --)
1267 ac_dashdash=yes ;;
1268
1269 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270 ac_prev=bindir ;;
1271 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272 bindir=$ac_optarg ;;
1273
1274 -build | --build | --buil | --bui | --bu)
1275 ac_prev=build_alias ;;
1276 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277 build_alias=$ac_optarg ;;
1278
1279 -cache-file | --cache-file | --cache-fil | --cache-fi \
1280 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281 ac_prev=cache_file ;;
1282 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284 cache_file=$ac_optarg ;;
1285
1286 --config-cache | -C)
1287 cache_file=config.cache ;;
1288
1289 -datadir | --datadir | --datadi | --datad)
1290 ac_prev=datadir ;;
1291 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292 datadir=$ac_optarg ;;
1293
1294 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295 | --dataroo | --dataro | --datar)
1296 ac_prev=datarootdir ;;
1297 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299 datarootdir=$ac_optarg ;;
1300
1301 -disable-* | --disable-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001305 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"enable_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval enable_$ac_useropt=no ;;
1316
1317 -docdir | --docdir | --docdi | --doc | --do)
1318 ac_prev=docdir ;;
1319 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320 docdir=$ac_optarg ;;
1321
1322 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323 ac_prev=dvidir ;;
1324 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325 dvidir=$ac_optarg ;;
1326
1327 -enable-* | --enable-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001331 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336"enable_$ac_useropt"
1337"*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval enable_$ac_useropt=\$ac_optarg ;;
1342
1343 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345 | --exec | --exe | --ex)
1346 ac_prev=exec_prefix ;;
1347 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349 | --exec=* | --exe=* | --ex=*)
1350 exec_prefix=$ac_optarg ;;
1351
1352 -gas | --gas | --ga | --g)
1353 # Obsolete; use --with-gas.
1354 with_gas=yes ;;
1355
1356 -help | --help | --hel | --he | -h)
1357 ac_init_help=long ;;
1358 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359 ac_init_help=recursive ;;
1360 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361 ac_init_help=short ;;
1362
1363 -host | --host | --hos | --ho)
1364 ac_prev=host_alias ;;
1365 -host=* | --host=* | --hos=* | --ho=*)
1366 host_alias=$ac_optarg ;;
1367
1368 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369 ac_prev=htmldir ;;
1370 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371 | --ht=*)
1372 htmldir=$ac_optarg ;;
1373
1374 -includedir | --includedir | --includedi | --included | --include \
1375 | --includ | --inclu | --incl | --inc)
1376 ac_prev=includedir ;;
1377 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378 | --includ=* | --inclu=* | --incl=* | --inc=*)
1379 includedir=$ac_optarg ;;
1380
1381 -infodir | --infodir | --infodi | --infod | --info | --inf)
1382 ac_prev=infodir ;;
1383 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384 infodir=$ac_optarg ;;
1385
1386 -libdir | --libdir | --libdi | --libd)
1387 ac_prev=libdir ;;
1388 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389 libdir=$ac_optarg ;;
1390
1391 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392 | --libexe | --libex | --libe)
1393 ac_prev=libexecdir ;;
1394 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395 | --libexe=* | --libex=* | --libe=*)
1396 libexecdir=$ac_optarg ;;
1397
1398 -localedir | --localedir | --localedi | --localed | --locale)
1399 ac_prev=localedir ;;
1400 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401 localedir=$ac_optarg ;;
1402
1403 -localstatedir | --localstatedir | --localstatedi | --localstated \
1404 | --localstate | --localstat | --localsta | --localst | --locals)
1405 ac_prev=localstatedir ;;
1406 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408 localstatedir=$ac_optarg ;;
1409
1410 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411 ac_prev=mandir ;;
1412 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413 mandir=$ac_optarg ;;
1414
1415 -nfp | --nfp | --nf)
1416 # Obsolete; use --without-fp.
1417 with_fp=no ;;
1418
1419 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420 | --no-cr | --no-c | -n)
1421 no_create=yes ;;
1422
1423 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1425 no_recursion=yes ;;
1426
1427 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429 | --oldin | --oldi | --old | --ol | --o)
1430 ac_prev=oldincludedir ;;
1431 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434 oldincludedir=$ac_optarg ;;
1435
1436 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437 ac_prev=prefix ;;
1438 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439 prefix=$ac_optarg ;;
1440
1441 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442 | --program-pre | --program-pr | --program-p)
1443 ac_prev=program_prefix ;;
1444 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446 program_prefix=$ac_optarg ;;
1447
1448 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449 | --program-suf | --program-su | --program-s)
1450 ac_prev=program_suffix ;;
1451 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453 program_suffix=$ac_optarg ;;
1454
1455 -program-transform-name | --program-transform-name \
1456 | --program-transform-nam | --program-transform-na \
1457 | --program-transform-n | --program-transform- \
1458 | --program-transform | --program-transfor \
1459 | --program-transfo | --program-transf \
1460 | --program-trans | --program-tran \
1461 | --progr-tra | --program-tr | --program-t)
1462 ac_prev=program_transform_name ;;
1463 -program-transform-name=* | --program-transform-name=* \
1464 | --program-transform-nam=* | --program-transform-na=* \
1465 | --program-transform-n=* | --program-transform-=* \
1466 | --program-transform=* | --program-transfor=* \
1467 | --program-transfo=* | --program-transf=* \
1468 | --program-trans=* | --program-tran=* \
1469 | --progr-tra=* | --program-tr=* | --program-t=*)
1470 program_transform_name=$ac_optarg ;;
1471
1472 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473 ac_prev=pdfdir ;;
1474 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475 pdfdir=$ac_optarg ;;
1476
1477 -psdir | --psdir | --psdi | --psd | --ps)
1478 ac_prev=psdir ;;
1479 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1480 psdir=$ac_optarg ;;
1481
1482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483 | -silent | --silent | --silen | --sile | --sil)
1484 silent=yes ;;
1485
1486 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1487 ac_prev=sbindir ;;
1488 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1489 | --sbi=* | --sb=*)
1490 sbindir=$ac_optarg ;;
1491
1492 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1493 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1494 | --sharedst | --shareds | --shared | --share | --shar \
1495 | --sha | --sh)
1496 ac_prev=sharedstatedir ;;
1497 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1498 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1499 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1500 | --sha=* | --sh=*)
1501 sharedstatedir=$ac_optarg ;;
1502
1503 -site | --site | --sit)
1504 ac_prev=site ;;
1505 -site=* | --site=* | --sit=*)
1506 site=$ac_optarg ;;
1507
1508 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1509 ac_prev=srcdir ;;
1510 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1511 srcdir=$ac_optarg ;;
1512
1513 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1514 | --syscon | --sysco | --sysc | --sys | --sy)
1515 ac_prev=sysconfdir ;;
1516 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1517 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1518 sysconfdir=$ac_optarg ;;
1519
1520 -target | --target | --targe | --targ | --tar | --ta | --t)
1521 ac_prev=target_alias ;;
1522 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1523 target_alias=$ac_optarg ;;
1524
1525 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1526 verbose=yes ;;
1527
1528 -version | --version | --versio | --versi | --vers | -V)
1529 ac_init_version=: ;;
1530
1531 -with-* | --with-*)
1532 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1533 # Reject names that are not valid shell variable names.
1534 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001535 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001536 ac_useropt_orig=$ac_useropt
1537 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538 case $ac_user_opts in
1539 *"
1540"with_$ac_useropt"
1541"*) ;;
1542 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1543 ac_unrecognized_sep=', ';;
1544 esac
1545 eval with_$ac_useropt=\$ac_optarg ;;
1546
1547 -without-* | --without-*)
1548 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1549 # Reject names that are not valid shell variable names.
1550 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001551 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001552 ac_useropt_orig=$ac_useropt
1553 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554 case $ac_user_opts in
1555 *"
1556"with_$ac_useropt"
1557"*) ;;
1558 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1559 ac_unrecognized_sep=', ';;
1560 esac
1561 eval with_$ac_useropt=no ;;
1562
1563 --x)
1564 # Obsolete; use --with-x.
1565 with_x=yes ;;
1566
1567 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1568 | --x-incl | --x-inc | --x-in | --x-i)
1569 ac_prev=x_includes ;;
1570 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1571 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1572 x_includes=$ac_optarg ;;
1573
1574 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1575 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1576 ac_prev=x_libraries ;;
1577 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1578 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1579 x_libraries=$ac_optarg ;;
1580
cristy98dddb52010-11-04 00:30:15 +00001581 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1582Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001583 ;;
1584
1585 *=*)
1586 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1587 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001588 case $ac_envvar in #(
1589 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001590 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001591 esac
cristy3ed852e2009-09-05 21:47:34 +00001592 eval $ac_envvar=\$ac_optarg
1593 export $ac_envvar ;;
1594
1595 *)
1596 # FIXME: should be removed in autoconf 3.0.
1597 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1598 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1599 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001600 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001601 ;;
1602
1603 esac
1604done
1605
1606if test -n "$ac_prev"; then
1607 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001608 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001609fi
1610
1611if test -n "$ac_unrecognized_opts"; then
1612 case $enable_option_checking in
1613 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001614 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001615 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1616 esac
1617fi
1618
1619# Check all directory arguments for consistency.
1620for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1621 datadir sysconfdir sharedstatedir localstatedir includedir \
1622 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1623 libdir localedir mandir
1624do
1625 eval ac_val=\$$ac_var
1626 # Remove trailing slashes.
1627 case $ac_val in
1628 */ )
1629 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1630 eval $ac_var=\$ac_val;;
1631 esac
1632 # Be sure to have absolute directory names.
1633 case $ac_val in
1634 [\\/$]* | ?:[\\/]* ) continue;;
1635 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1636 esac
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001638done
1639
1640# There might be people who depend on the old broken behavior: `$host'
1641# used to hold the argument of --host etc.
1642# FIXME: To remove some day.
1643build=$build_alias
1644host=$host_alias
1645target=$target_alias
1646
1647# FIXME: To remove some day.
1648if test "x$host_alias" != x; then
1649 if test "x$build_alias" = x; then
1650 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001651 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1652 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001653 elif test "x$build_alias" != "x$host_alias"; then
1654 cross_compiling=yes
1655 fi
1656fi
1657
1658ac_tool_prefix=
1659test -n "$host_alias" && ac_tool_prefix=$host_alias-
1660
1661test "$silent" = yes && exec 6>/dev/null
1662
1663
1664ac_pwd=`pwd` && test -n "$ac_pwd" &&
1665ac_ls_di=`ls -di .` &&
1666ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001667 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001668test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001669 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001670
1671
1672# Find the source files, if location was not specified.
1673if test -z "$srcdir"; then
1674 ac_srcdir_defaulted=yes
1675 # Try the directory containing this script, then the parent directory.
1676 ac_confdir=`$as_dirname -- "$as_myself" ||
1677$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1678 X"$as_myself" : 'X\(//\)[^/]' \| \
1679 X"$as_myself" : 'X\(//\)$' \| \
1680 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1681$as_echo X"$as_myself" |
1682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1683 s//\1/
1684 q
1685 }
1686 /^X\(\/\/\)[^/].*/{
1687 s//\1/
1688 q
1689 }
1690 /^X\(\/\/\)$/{
1691 s//\1/
1692 q
1693 }
1694 /^X\(\/\).*/{
1695 s//\1/
1696 q
1697 }
1698 s/.*/./; q'`
1699 srcdir=$ac_confdir
1700 if test ! -r "$srcdir/$ac_unique_file"; then
1701 srcdir=..
1702 fi
1703else
1704 ac_srcdir_defaulted=no
1705fi
1706if test ! -r "$srcdir/$ac_unique_file"; then
1707 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001708 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001709fi
1710ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1711ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001712 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001713 pwd)`
1714# When building in place, set srcdir=.
1715if test "$ac_abs_confdir" = "$ac_pwd"; then
1716 srcdir=.
1717fi
1718# Remove unnecessary trailing slashes from srcdir.
1719# Double slashes in file names in object file debugging info
1720# mess up M-x gdb in Emacs.
1721case $srcdir in
1722*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1723esac
1724for ac_var in $ac_precious_vars; do
1725 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1726 eval ac_env_${ac_var}_value=\$${ac_var}
1727 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1728 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1729done
1730
1731#
1732# Report the --help message.
1733#
1734if test "$ac_init_help" = "long"; then
1735 # Omit some internal or obsolete options to make the list less imposing.
1736 # This message is too long to be a string in the A/UX 3.1 sh.
1737 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001738\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001739
1740Usage: $0 [OPTION]... [VAR=VALUE]...
1741
1742To assign environment variables (e.g., CC, CFLAGS...), specify them as
1743VAR=VALUE. See below for descriptions of some of the useful variables.
1744
1745Defaults for the options are specified in brackets.
1746
1747Configuration:
1748 -h, --help display this help and exit
1749 --help=short display options specific to this package
1750 --help=recursive display the short help of all the included packages
1751 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001752 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001753 --cache-file=FILE cache test results in FILE [disabled]
1754 -C, --config-cache alias for \`--cache-file=config.cache'
1755 -n, --no-create do not create output files
1756 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1757
1758Installation directories:
1759 --prefix=PREFIX install architecture-independent files in PREFIX
1760 [$ac_default_prefix]
1761 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1762 [PREFIX]
1763
1764By default, \`make install' will install all the files in
1765\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1766an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1767for instance \`--prefix=\$HOME'.
1768
1769For better control, use the options below.
1770
1771Fine tuning of the installation directories:
1772 --bindir=DIR user executables [EPREFIX/bin]
1773 --sbindir=DIR system admin executables [EPREFIX/sbin]
1774 --libexecdir=DIR program executables [EPREFIX/libexec]
1775 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1776 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1777 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1778 --libdir=DIR object code libraries [EPREFIX/lib]
1779 --includedir=DIR C header files [PREFIX/include]
1780 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1781 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1782 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1783 --infodir=DIR info documentation [DATAROOTDIR/info]
1784 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1785 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001786 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001787 --htmldir=DIR html documentation [DOCDIR]
1788 --dvidir=DIR dvi documentation [DOCDIR]
1789 --pdfdir=DIR pdf documentation [DOCDIR]
1790 --psdir=DIR ps documentation [DOCDIR]
1791_ACEOF
1792
1793 cat <<\_ACEOF
1794
cristy73bd4a52010-10-05 11:24:23 +00001795Program names:
1796 --program-prefix=PREFIX prepend PREFIX to installed program names
1797 --program-suffix=SUFFIX append SUFFIX to installed program names
1798 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1799
cristy3ed852e2009-09-05 21:47:34 +00001800X features:
1801 --x-includes=DIR X include files are in DIR
1802 --x-libraries=DIR X library files are in DIR
1803
1804System types:
1805 --build=BUILD configure for building on BUILD [guessed]
1806 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1807 --target=TARGET configure for building compilers for TARGET [HOST]
1808_ACEOF
1809fi
1810
1811if test -n "$ac_init_help"; then
1812 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001813 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001814 esac
1815 cat <<\_ACEOF
1816
1817Optional Features:
1818 --disable-option-checking ignore unrecognized --enable/--with options
1819 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1820 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001821 --enable-silent-rules less verbose build output (undo: `make V=1')
1822 --disable-silent-rules verbose build output (undo: `make V=0')
1823 --disable-dependency-tracking speeds up one-time build
1824 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001825 --bounds-checking enable run-time bounds-checking
1826 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001827 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001828 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001829 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001830 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001831 --enable-shared[=PKGS] build shared libraries [default=yes]
1832 --enable-static[=PKGS] build static libraries [default=yes]
1833 --enable-fast-install[=PKGS]
1834 optimize for fast installation [default=yes]
1835 --disable-libtool-lock avoid locking (might break parallel builds)
1836 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001837 --enable-delegate-build look for delegate libraries in build directory
1838 --disable-deprecated exclude deprecated methods in MagickCore and
1839 MagickWand API's
1840 --disable-installed Formally install ImageMagick under PREFIX
1841 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001842 --enable-zero-configuration
1843 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001844 zero-configuration ImageMagick
1845 --enable-hdri accurately represent the wide range of intensity
1846 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001847 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001848 --enable-maintainer-mode enable make rules and dependencies not useful
1849 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001850 --enable-ccmalloc enable 'ccmalloc' memory debug support
1851 --enable-efence enable 'efence' memory debug support
1852 --enable-prof enable 'prof' profiling support
1853 --enable-gprof enable 'gprof' profiling support
1854 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001855 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001856
1857Optional Packages:
1858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001860 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1861 --with-dmalloc use dmalloc, as in
1862 http://www.dmalloc.com/dmalloc.tar.gz
cristy670aa3c2011-11-03 00:54:00 +00001863 --includearch-dir=DIR ARCH specific include directory
1864 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001865 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001866 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001867 both]
cristyda16f162011-02-19 23:52:17 +00001868 --with-sysroot=DIR Search for dependent libraries within DIR
1869 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001870 --with-included-ltdl use the GNU ltdl sources included here
1871 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1872 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001873 --with-modules enable building dynamically loadable modules
1874 --with-method-prefix=PREFIX
1875 prefix MagickCore API methods
1876 --with-quantum-depth=DEPTH
1877 number of bits in a pixel quantum (default 16)
1878 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1879 memory)
1880 --with-frozenpaths freeze delegate paths
1881 --without-magick-plus-plus
1882 disable build/install of Magick++
1883 --with-perl enable build/install of PerlMagick
1884 --with-perl-options=OPTIONS
1885 options to pass on command-line when generating
1886 PerlMagick's build file
1887 --with-umem enable umem memory allocation library support
1888 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1889 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001890 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001891 --without-zlib disable ZLIB support
1892 --with-autotrace enable autotrace support
1893 --without-dps disable Display Postscript support
1894 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001895 --with-dejavu-font-dir=DIR
1896 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-fftw disable FFTW support
1898 --without-fpx disable FlashPIX support
1899 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001900 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001901 --without-gslib enable Ghostscript library support
1902 --with-fontpath=DIR prepend to default font search path
1903 --with-gs-font-dir=DIR Ghostscript font directory
1904 --without-gvc disable GVC support
1905 --without-jbig disable JBIG support
1906 --without-jpeg disable JPEG support
1907 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001908 --without-lcms disable lcms (v1.1X) support
1909 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001910 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001911 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001912 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001913 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-png disable PNG support
1915 --without-rsvg disable RSVG support
1916 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001917 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001918 --with-windows-font-dir=DIR
1919 directory containing MS-Windows fonts
1920 --without-wmf disable WMF support
1921 --without-xml disable XML support
1922
1923Some influential environment variables:
1924 CC C compiler command
1925 CFLAGS C compiler flags
1926 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1927 nonstandard directory <lib dir>
1928 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001929 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001930 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001931 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001932 CXX C++ compiler command
1933 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001934 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001935 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001936 XMKMF Path to xmkmf, Makefile generator for X Window System
1937 AUTOTRACE_CFLAGS
1938 C compiler flags for AUTOTRACE, overriding pkg-config
1939 AUTOTRACE_LIBS
1940 linker flags for AUTOTRACE, overriding pkg-config
1941 FONTCONFIG_CFLAGS
1942 C compiler flags for FONTCONFIG, overriding pkg-config
1943 FONTCONFIG_LIBS
1944 linker flags for FONTCONFIG, overriding pkg-config
1945 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1946 GVC_LIBS linker flags for GVC, overriding pkg-config
1947 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1948 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001949 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1950 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001951 OPENEXR_CFLAGS
1952 C compiler flags for OPENEXR, overriding pkg-config
1953 OPENEXR_LIBS
1954 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001955 PANGO_CFLAGS
1956 C compiler flags for PANGO, overriding pkg-config
1957 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001958 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1959 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1960 CAIRO_SVG_CFLAGS
1961 C compiler flags for CAIRO_SVG, overriding pkg-config
1962 CAIRO_SVG_LIBS
1963 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001964
1965Use these variables to override the choices made by `configure' or to help
1966it to find libraries and programs with nonstandard names/locations.
1967
1968Report bugs to <http://www.imagemagick.org>.
1969_ACEOF
1970ac_status=$?
1971fi
1972
1973if test "$ac_init_help" = "recursive"; then
1974 # If there are subdirs, report their specific --help.
1975 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1976 test -d "$ac_dir" ||
1977 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1978 continue
1979 ac_builddir=.
1980
1981case "$ac_dir" in
1982.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1983*)
1984 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1985 # A ".." for each directory in $ac_dir_suffix.
1986 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1987 case $ac_top_builddir_sub in
1988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1990 esac ;;
1991esac
1992ac_abs_top_builddir=$ac_pwd
1993ac_abs_builddir=$ac_pwd$ac_dir_suffix
1994# for backward compatibility:
1995ac_top_builddir=$ac_top_build_prefix
1996
1997case $srcdir in
1998 .) # We are building in place.
1999 ac_srcdir=.
2000 ac_top_srcdir=$ac_top_builddir_sub
2001 ac_abs_top_srcdir=$ac_pwd ;;
2002 [\\/]* | ?:[\\/]* ) # Absolute name.
2003 ac_srcdir=$srcdir$ac_dir_suffix;
2004 ac_top_srcdir=$srcdir
2005 ac_abs_top_srcdir=$srcdir ;;
2006 *) # Relative name.
2007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2008 ac_top_srcdir=$ac_top_build_prefix$srcdir
2009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2010esac
2011ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2012
2013 cd "$ac_dir" || { ac_status=$?; continue; }
2014 # Check for guested configure.
2015 if test -f "$ac_srcdir/configure.gnu"; then
2016 echo &&
2017 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2018 elif test -f "$ac_srcdir/configure"; then
2019 echo &&
2020 $SHELL "$ac_srcdir/configure" --help=recursive
2021 else
2022 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2023 fi || ac_status=$?
2024 cd "$ac_pwd" || { ac_status=$?; break; }
2025 done
2026fi
2027
2028test -n "$ac_init_help" && exit $ac_status
2029if $ac_init_version; then
2030 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002031ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002032generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002033
cristy98dddb52010-11-04 00:30:15 +00002034Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002035This configure script is free software; the Free Software Foundation
2036gives unlimited permission to copy, distribute and modify it.
2037_ACEOF
2038 exit
2039fi
cristy8b350f62009-11-15 23:12:43 +00002040
2041## ------------------------ ##
2042## Autoconf initialization. ##
2043## ------------------------ ##
2044
2045# ac_fn_c_try_compile LINENO
2046# --------------------------
2047# Try to compile conftest.$ac_ext, and return whether this succeeded.
2048ac_fn_c_try_compile ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext
2052 if { { ac_try="$ac_compile"
2053case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056esac
2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058$as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_compile") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_c_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest.$ac_objext; then :
2071 ac_retval=0
2072else
2073 $as_echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_retval=1
2077fi
cristyda16f162011-02-19 23:52:17 +00002078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002079 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002080
2081} # ac_fn_c_try_compile
2082
cristy95646052009-11-28 23:05:30 +00002083# ac_fn_c_try_cpp LINENO
2084# ----------------------
2085# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2086ac_fn_c_try_cpp ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { { ac_try="$ac_cpp conftest.$ac_ext"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095$as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097 ac_status=$?
2098 if test -s conftest.err; then
2099 grep -v '^ *+' conftest.err >conftest.er1
2100 cat conftest.er1 >&5
2101 mv -f conftest.er1 conftest.err
2102 fi
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002104 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2106 test ! -s conftest.err
2107 }; then :
2108 ac_retval=0
2109else
2110 $as_echo "$as_me: failed program was:" >&5
2111sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 ac_retval=1
2114fi
cristyda16f162011-02-19 23:52:17 +00002115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002116 as_fn_set_status $ac_retval
2117
2118} # ac_fn_c_try_cpp
2119
cristy8b350f62009-11-15 23:12:43 +00002120# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2121# -------------------------------------------------------
2122# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2123# the include files in INCLUDES and setting the cache variable VAR
2124# accordingly.
2125ac_fn_c_check_header_mongrel ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002128 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002131if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002132 $as_echo_n "(cached) " >&6
2133fi
2134eval ac_res=\$$3
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136$as_echo "$ac_res" >&6; }
2137else
2138 # Is the header compilable?
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2140$as_echo_n "checking $2 usability... " >&6; }
2141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$4
2144#include <$2>
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_header_compiler=yes
2148else
2149 ac_header_compiler=no
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2153$as_echo "$ac_header_compiler" >&6; }
2154
2155# Is the header present?
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2157$as_echo_n "checking $2 presence... " >&6; }
2158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160#include <$2>
2161_ACEOF
2162if ac_fn_c_try_cpp "$LINENO"; then :
2163 ac_header_preproc=yes
2164else
2165 ac_header_preproc=no
2166fi
cristyda16f162011-02-19 23:52:17 +00002167rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2169$as_echo "$ac_header_preproc" >&6; }
2170
2171# So? What about this header?
2172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2173 yes:no: )
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2175$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 ;;
2179 no:yes:* )
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2181$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2183$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2185$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2187$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002190( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002191## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002192## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002193 ) | sed "s/^/$as_me: WARNING: /" >&2
2194 ;;
2195esac
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2197$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002198if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002199 $as_echo_n "(cached) " >&6
2200else
2201 eval "$3=\$ac_header_compiler"
2202fi
2203eval ac_res=\$$3
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205$as_echo "$ac_res" >&6; }
2206fi
cristyda16f162011-02-19 23:52:17 +00002207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002208
2209} # ac_fn_c_check_header_mongrel
2210
2211# ac_fn_c_try_run LINENO
2212# ----------------------
2213# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2214# that executables *can* be run.
2215ac_fn_c_try_run ()
2216{
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if { { ac_try="$ac_link"
2219case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224$as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_link") 2>&5
2226 ac_status=$?
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2229 { { case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_try") 2>&5
2236 ac_status=$?
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; }; }; then :
2239 ac_retval=0
2240else
2241 $as_echo "$as_me: program exited with status $ac_status" >&5
2242 $as_echo "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245 ac_retval=$ac_status
2246fi
2247 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002249 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002250
2251} # ac_fn_c_try_run
2252
2253# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2254# -------------------------------------------------------
2255# Tests whether HEADER exists and can be compiled using the include files in
2256# INCLUDES, setting the cache variable VAR accordingly.
2257ac_fn_c_check_header_compile ()
2258{
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002262if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002263 $as_echo_n "(cached) " >&6
2264else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268#include <$2>
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271 eval "$3=yes"
2272else
2273 eval "$3=no"
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276fi
2277eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002281
2282} # ac_fn_c_check_header_compile
2283
cristya0b81c32010-01-22 02:54:33 +00002284# ac_fn_cxx_try_compile LINENO
2285# ----------------------------
2286# Try to compile conftest.$ac_ext, and return whether this succeeded.
2287ac_fn_cxx_try_compile ()
2288{
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext
2291 if { { ac_try="$ac_compile"
2292case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295esac
2296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297$as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_compile") 2>conftest.err
2299 ac_status=$?
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2304 fi
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_cxx_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then :
2310 ac_retval=0
2311else
2312 $as_echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 ac_retval=1
2316fi
cristyda16f162011-02-19 23:52:17 +00002317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002318 as_fn_set_status $ac_retval
2319
2320} # ac_fn_cxx_try_compile
2321
cristy8b350f62009-11-15 23:12:43 +00002322# ac_fn_c_try_link LINENO
2323# -----------------------
2324# Try to link conftest.$ac_ext, and return whether this succeeded.
2325ac_fn_c_try_link ()
2326{
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 rm -f conftest.$ac_objext conftest$ac_exeext
2329 if { { ac_try="$ac_link"
2330case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333esac
2334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335$as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_link") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2342 fi
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && {
2345 test -z "$ac_c_werror_flag" ||
2346 test ! -s conftest.err
2347 } && test -s conftest$ac_exeext && {
2348 test "$cross_compiling" = yes ||
2349 $as_test_x conftest$ac_exeext
2350 }; then :
2351 ac_retval=0
2352else
2353 $as_echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_retval=1
2357fi
2358 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2359 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2360 # interfere with the next link command; also delete a directory that is
2361 # left behind by Apple's compiler. We do this before executing the actions.
2362 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002364 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002365
2366} # ac_fn_c_try_link
2367
cristy73bd4a52010-10-05 11:24:23 +00002368# ac_fn_c_check_func LINENO FUNC VAR
2369# ----------------------------------
2370# Tests whether FUNC exists, setting the cache variable VAR accordingly
2371ac_fn_c_check_func ()
2372{
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2375$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002376if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002377 $as_echo_n "(cached) " >&6
2378else
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380/* end confdefs.h. */
2381/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2383#define $2 innocuous_$2
2384
2385/* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char $2 (); below.
2387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2388 <limits.h> exists even on freestanding compilers. */
2389
2390#ifdef __STDC__
2391# include <limits.h>
2392#else
2393# include <assert.h>
2394#endif
2395
2396#undef $2
2397
2398/* Override any GCC internal prototype to avoid an error.
2399 Use char because int might match the return type of a GCC
2400 builtin and then its argument prototype would still apply. */
2401#ifdef __cplusplus
2402extern "C"
2403#endif
2404char $2 ();
2405/* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408#if defined __stub_$2 || defined __stub___$2
2409choke me
2410#endif
2411
2412int
2413main ()
2414{
2415return $2 ();
2416 ;
2417 return 0;
2418}
2419_ACEOF
2420if ac_fn_c_try_link "$LINENO"; then :
2421 eval "$3=yes"
2422else
2423 eval "$3=no"
2424fi
2425rm -f core conftest.err conftest.$ac_objext \
2426 conftest$ac_exeext conftest.$ac_ext
2427fi
2428eval ac_res=\$$3
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002432
2433} # ac_fn_c_check_func
2434
2435# ac_fn_cxx_try_cpp LINENO
2436# ------------------------
2437# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2438ac_fn_cxx_try_cpp ()
2439{
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 if { { ac_try="$ac_cpp conftest.$ac_ext"
2442case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445esac
2446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447$as_echo "$ac_try_echo"; } >&5
2448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2449 ac_status=$?
2450 if test -s conftest.err; then
2451 grep -v '^ *+' conftest.err >conftest.er1
2452 cat conftest.er1 >&5
2453 mv -f conftest.er1 conftest.err
2454 fi
2455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002456 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002457 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2458 test ! -s conftest.err
2459 }; then :
2460 ac_retval=0
2461else
2462 $as_echo "$as_me: failed program was:" >&5
2463sed 's/^/| /' conftest.$ac_ext >&5
2464
2465 ac_retval=1
2466fi
cristyda16f162011-02-19 23:52:17 +00002467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002468 as_fn_set_status $ac_retval
2469
2470} # ac_fn_cxx_try_cpp
2471
2472# ac_fn_cxx_try_link LINENO
2473# -------------------------
2474# Try to link conftest.$ac_ext, and return whether this succeeded.
2475ac_fn_cxx_try_link ()
2476{
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { { ac_try="$ac_link"
2480case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485$as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_link") 2>conftest.err
2487 ac_status=$?
2488 if test -s conftest.err; then
2489 grep -v '^ *+' conftest.err >conftest.er1
2490 cat conftest.er1 >&5
2491 mv -f conftest.er1 conftest.err
2492 fi
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494 test $ac_status = 0; } && {
2495 test -z "$ac_cxx_werror_flag" ||
2496 test ! -s conftest.err
2497 } && test -s conftest$ac_exeext && {
2498 test "$cross_compiling" = yes ||
2499 $as_test_x conftest$ac_exeext
2500 }; then :
2501 ac_retval=0
2502else
2503 $as_echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_retval=1
2507fi
2508 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2509 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2510 # interfere with the next link command; also delete a directory that is
2511 # left behind by Apple's compiler. We do this before executing the actions.
2512 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002514 as_fn_set_status $ac_retval
2515
2516} # ac_fn_cxx_try_link
2517
cristy98dddb52010-11-04 00:30:15 +00002518# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2519# ---------------------------------------------
2520# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2521# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002522ac_fn_c_check_decl ()
2523{
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002525 as_decl_name=`echo $2|sed 's/ *(.*//'`
2526 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2528$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002529if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002530 $as_echo_n "(cached) " >&6
2531else
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
cristy98dddb52010-11-04 00:30:15 +00002538#ifndef $as_decl_name
2539#ifdef __cplusplus
2540 (void) $as_decl_use;
2541#else
2542 (void) $as_decl_name;
2543#endif
cristy73bd4a52010-10-05 11:24:23 +00002544#endif
2545
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550if ac_fn_c_try_compile "$LINENO"; then :
2551 eval "$3=yes"
2552else
2553 eval "$3=no"
2554fi
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556fi
2557eval ac_res=\$$3
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002561
2562} # ac_fn_c_check_decl
2563
cristy8b350f62009-11-15 23:12:43 +00002564# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2565# -------------------------------------------
2566# Tests whether TYPE exists after having included INCLUDES, setting cache
2567# variable VAR accordingly.
2568ac_fn_c_check_type ()
2569{
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002573if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002574 $as_echo_n "(cached) " >&6
2575else
2576 eval "$3=no"
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578/* end confdefs.h. */
2579$4
2580int
2581main ()
2582{
2583if (sizeof ($2))
2584 return 0;
2585 ;
2586 return 0;
2587}
2588_ACEOF
2589if ac_fn_c_try_compile "$LINENO"; then :
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591/* end confdefs.h. */
2592$4
2593int
2594main ()
2595{
2596if (sizeof (($2)))
2597 return 0;
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"; then :
2603
2604else
2605 eval "$3=yes"
2606fi
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611eval ac_res=\$$3
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002615
2616} # ac_fn_c_check_type
2617
cristy92703d82010-04-26 00:18:18 +00002618# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2619# ----------------------------------------------------
2620# Tries to find if the field MEMBER exists in type AGGR, after including
2621# INCLUDES, setting cache variable VAR accordingly.
2622ac_fn_c_check_member ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2626$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002627if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002628 $as_echo_n "(cached) " >&6
2629else
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631/* end confdefs.h. */
2632$5
2633int
2634main ()
2635{
2636static $2 ac_aggr;
2637if (ac_aggr.$3)
2638return 0;
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643if ac_fn_c_try_compile "$LINENO"; then :
2644 eval "$4=yes"
2645else
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */
2648$5
2649int
2650main ()
2651{
2652static $2 ac_aggr;
2653if (sizeof ac_aggr.$3)
2654return 0;
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659if ac_fn_c_try_compile "$LINENO"; then :
2660 eval "$4=yes"
2661else
2662 eval "$4=no"
2663fi
2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667fi
2668eval ac_res=\$$4
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2670$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002672
2673} # ac_fn_c_check_member
2674
cristy501c8042011-05-26 17:46:28 +00002675# ac_fn_c_find_intX_t LINENO BITS VAR
2676# -----------------------------------
2677# Finds a signed integer type with width BITS, setting cache variable VAR
2678# accordingly.
2679ac_fn_c_find_intX_t ()
2680{
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2683$as_echo_n "checking for int$2_t... " >&6; }
2684if eval \${$3+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686else
2687 eval "$3=no"
2688 # Order is important - never check a type that is potentially smaller
2689 # than half of the expected target width.
2690 for ac_type in int$2_t 'int' 'long int' \
2691 'long long int' 'short int' 'signed char'; do
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693/* end confdefs.h. */
2694$ac_includes_default
2695 enum { N = $2 / 2 - 1 };
2696int
2697main ()
2698{
2699static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2700test_array [0] = 0
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708/* end confdefs.h. */
2709$ac_includes_default
2710 enum { N = $2 / 2 - 1 };
2711int
2712main ()
2713{
2714static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2715 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2716test_array [0] = 0
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723
2724else
2725 case $ac_type in #(
2726 int$2_t) :
2727 eval "$3=yes" ;; #(
2728 *) :
2729 eval "$3=\$ac_type" ;;
2730esac
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 if eval test \"x\$"$3"\" = x"no"; then :
2736
2737else
2738 break
2739fi
2740 done
2741fi
2742eval ac_res=\$$3
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744$as_echo "$ac_res" >&6; }
2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746
2747} # ac_fn_c_find_intX_t
2748
2749# ac_fn_c_find_uintX_t LINENO BITS VAR
2750# ------------------------------------
2751# Finds an unsigned integer type with width BITS, setting cache variable VAR
2752# accordingly.
2753ac_fn_c_find_uintX_t ()
2754{
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2757$as_echo_n "checking for uint$2_t... " >&6; }
2758if eval \${$3+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760else
2761 eval "$3=no"
2762 # Order is important - never check a type that is potentially smaller
2763 # than half of the expected target width.
2764 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2765 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767/* end confdefs.h. */
2768$ac_includes_default
2769int
2770main ()
2771{
2772static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2773test_array [0] = 0
2774
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779if ac_fn_c_try_compile "$LINENO"; then :
2780 case $ac_type in #(
2781 uint$2_t) :
2782 eval "$3=yes" ;; #(
2783 *) :
2784 eval "$3=\$ac_type" ;;
2785esac
2786fi
2787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 if eval test \"x\$"$3"\" = x"no"; then :
2789
2790else
2791 break
2792fi
2793 done
2794fi
2795eval ac_res=\$$3
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2797$as_echo "$ac_res" >&6; }
2798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2799
2800} # ac_fn_c_find_uintX_t
2801
cristy8b350f62009-11-15 23:12:43 +00002802# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2803# --------------------------------------------
2804# Tries to find the compile-time value of EXPR in a program that includes
2805# INCLUDES, setting VAR accordingly. Returns whether the value could be
2806# computed
2807ac_fn_c_compute_int ()
2808{
2809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2810 if test "$cross_compiling" = yes; then
2811 # Depending upon the size, compute the lo and hi bounds.
2812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813/* end confdefs.h. */
2814$4
2815int
2816main ()
2817{
2818static int test_array [1 - 2 * !(($2) >= 0)];
2819test_array [0] = 0
2820
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825if ac_fn_c_try_compile "$LINENO"; then :
2826 ac_lo=0 ac_mid=0
2827 while :; do
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h. */
2830$4
2831int
2832main ()
2833{
2834static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2835test_array [0] = 0
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 ac_hi=$ac_mid; break
2843else
2844 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2845 if test $ac_lo -le $ac_mid; then
2846 ac_lo= ac_hi=
2847 break
2848 fi
2849 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2850fi
2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 done
2853else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h. */
2856$4
2857int
2858main ()
2859{
2860static int test_array [1 - 2 * !(($2) < 0)];
2861test_array [0] = 0
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_hi=-1 ac_mid=-1
2869 while :; do
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h. */
2872$4
2873int
2874main ()
2875{
2876static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2877test_array [0] = 0
2878
2879 ;
2880 return 0;
2881}
2882_ACEOF
2883if ac_fn_c_try_compile "$LINENO"; then :
2884 ac_lo=$ac_mid; break
2885else
2886 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2887 if test $ac_mid -le $ac_hi; then
2888 ac_lo= ac_hi=
2889 break
2890 fi
2891 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2892fi
2893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 done
2895else
2896 ac_lo= ac_hi=
2897fi
2898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899fi
2900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901# Binary search between lo and hi bounds.
2902while test "x$ac_lo" != "x$ac_hi"; do
2903 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905/* end confdefs.h. */
2906$4
2907int
2908main ()
2909{
2910static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2911test_array [0] = 0
2912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917if ac_fn_c_try_compile "$LINENO"; then :
2918 ac_hi=$ac_mid
2919else
2920 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2921fi
2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923done
2924case $ac_lo in #((
2925?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2926'') ac_retval=1 ;;
2927esac
2928 else
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930/* end confdefs.h. */
2931$4
2932static long int longval () { return $2; }
2933static unsigned long int ulongval () { return $2; }
2934#include <stdio.h>
2935#include <stdlib.h>
2936int
2937main ()
2938{
2939
2940 FILE *f = fopen ("conftest.val", "w");
2941 if (! f)
2942 return 1;
2943 if (($2) < 0)
2944 {
2945 long int i = longval ();
2946 if (i != ($2))
2947 return 1;
2948 fprintf (f, "%ld", i);
2949 }
2950 else
2951 {
2952 unsigned long int i = ulongval ();
2953 if (i != ($2))
2954 return 1;
2955 fprintf (f, "%lu", i);
2956 }
2957 /* Do not output a trailing newline, as this causes \r\n confusion
2958 on some platforms. */
2959 return ferror (f) || fclose (f) != 0;
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965if ac_fn_c_try_run "$LINENO"; then :
2966 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2967else
2968 ac_retval=1
2969fi
2970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2971 conftest.$ac_objext conftest.beam conftest.$ac_ext
2972rm -f conftest.val
2973
2974 fi
cristyda16f162011-02-19 23:52:17 +00002975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002976 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002977
2978} # ac_fn_c_compute_int
2979
2980# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2981# ---------------------------------------------------------
2982# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2983# the include files in INCLUDES and setting the cache variable VAR
2984# accordingly.
2985ac_fn_cxx_check_header_mongrel ()
2986{
2987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002988 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2990$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002991if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002992 $as_echo_n "(cached) " >&6
2993fi
2994eval ac_res=\$$3
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2996$as_echo "$ac_res" >&6; }
2997else
2998 # Is the header compilable?
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3000$as_echo_n "checking $2 usability... " >&6; }
3001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h. */
3003$4
3004#include <$2>
3005_ACEOF
3006if ac_fn_cxx_try_compile "$LINENO"; then :
3007 ac_header_compiler=yes
3008else
3009 ac_header_compiler=no
3010fi
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3013$as_echo "$ac_header_compiler" >&6; }
3014
3015# Is the header present?
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3017$as_echo_n "checking $2 presence... " >&6; }
3018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h. */
3020#include <$2>
3021_ACEOF
3022if ac_fn_cxx_try_cpp "$LINENO"; then :
3023 ac_header_preproc=yes
3024else
3025 ac_header_preproc=no
3026fi
cristyda16f162011-02-19 23:52:17 +00003027rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3029$as_echo "$ac_header_preproc" >&6; }
3030
3031# So? What about this header?
3032case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3033 yes:no: )
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3035$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3037$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3038 ;;
3039 no:yes:* )
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3041$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3043$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3045$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3047$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003050( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003051## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003052## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003053 ) | sed "s/^/$as_me: WARNING: /" >&2
3054 ;;
3055esac
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3057$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003058if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003059 $as_echo_n "(cached) " >&6
3060else
3061 eval "$3=\$ac_header_compiler"
3062fi
3063eval ac_res=\$$3
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065$as_echo "$ac_res" >&6; }
3066fi
cristyda16f162011-02-19 23:52:17 +00003067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003068
3069} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003070cat >config.log <<_ACEOF
3071This file contains any messages produced by compilers while
3072running configure, to aid debugging if configure makes a mistake.
3073
cristy29eb34e2011-10-16 00:46:08 +00003074It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003075generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003076
3077 $ $0 $@
3078
3079_ACEOF
3080exec 5>>config.log
3081{
3082cat <<_ASUNAME
3083## --------- ##
3084## Platform. ##
3085## --------- ##
3086
3087hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3088uname -m = `(uname -m) 2>/dev/null || echo unknown`
3089uname -r = `(uname -r) 2>/dev/null || echo unknown`
3090uname -s = `(uname -s) 2>/dev/null || echo unknown`
3091uname -v = `(uname -v) 2>/dev/null || echo unknown`
3092
3093/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3094/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3095
3096/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3097/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3098/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3099/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3100/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3101/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3102/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3103
3104_ASUNAME
3105
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003111 $as_echo "PATH: $as_dir"
3112 done
cristy3ed852e2009-09-05 21:47:34 +00003113IFS=$as_save_IFS
3114
3115} >&5
3116
3117cat >&5 <<_ACEOF
3118
3119
3120## ----------- ##
3121## Core tests. ##
3122## ----------- ##
3123
3124_ACEOF
3125
3126
3127# Keep a trace of the command line.
3128# Strip out --no-create and --no-recursion so they do not pile up.
3129# Strip out --silent because we don't want to record it for future runs.
3130# Also quote any args containing shell meta-characters.
3131# Make two passes to allow for proper duplicate-argument suppression.
3132ac_configure_args=
3133ac_configure_args0=
3134ac_configure_args1=
3135ac_must_keep_next=false
3136for ac_pass in 1 2
3137do
3138 for ac_arg
3139 do
3140 case $ac_arg in
3141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3143 | -silent | --silent | --silen | --sile | --sil)
3144 continue ;;
3145 *\'*)
3146 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 esac
3148 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003150 2)
cristy8b350f62009-11-15 23:12:43 +00003151 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003152 if test $ac_must_keep_next = true; then
3153 ac_must_keep_next=false # Got value, back to normal.
3154 else
3155 case $ac_arg in
3156 *=* | --config-cache | -C | -disable-* | --disable-* \
3157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3159 | -with-* | --with-* | -without-* | --without-* | --x)
3160 case "$ac_configure_args0 " in
3161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3162 esac
3163 ;;
3164 -* ) ac_must_keep_next=true ;;
3165 esac
3166 fi
cristy8b350f62009-11-15 23:12:43 +00003167 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003168 ;;
3169 esac
3170 done
3171done
cristy8b350f62009-11-15 23:12:43 +00003172{ ac_configure_args0=; unset ac_configure_args0;}
3173{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003174
3175# When interrupted or exit'd, cleanup temporary files, and complete
3176# config.log. We remove comments because anyway the quotes in there
3177# would cause problems or look ugly.
3178# WARNING: Use '\'' to represent an apostrophe within the trap.
3179# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3180trap 'exit_status=$?
3181 # Save into config.log some information that might help in debugging.
3182 {
3183 echo
3184
cristy98dddb52010-11-04 00:30:15 +00003185 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003186## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003187## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003188 echo
3189 # The following way of writing the cache mishandles newlines in values,
3190(
3191 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3192 eval ac_val=\$$ac_var
3193 case $ac_val in #(
3194 *${as_nl}*)
3195 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003197$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3198 esac
3199 case $ac_var in #(
3200 _ | IFS | as_nl) ;; #(
3201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003202 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003203 esac ;;
3204 esac
3205 done
3206 (set) 2>&1 |
3207 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3208 *${as_nl}ac_space=\ *)
3209 sed -n \
3210 "s/'\''/'\''\\\\'\'''\''/g;
3211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3212 ;; #(
3213 *)
3214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3215 ;;
3216 esac |
3217 sort
3218)
3219 echo
3220
cristy98dddb52010-11-04 00:30:15 +00003221 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003222## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003223## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003224 echo
3225 for ac_var in $ac_subst_vars
3226 do
3227 eval ac_val=\$$ac_var
3228 case $ac_val in
3229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3230 esac
3231 $as_echo "$ac_var='\''$ac_val'\''"
3232 done | sort
3233 echo
3234
3235 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003236 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003237## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003238## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003239 echo
3240 for ac_var in $ac_subst_files
3241 do
3242 eval ac_val=\$$ac_var
3243 case $ac_val in
3244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3245 esac
3246 $as_echo "$ac_var='\''$ac_val'\''"
3247 done | sort
3248 echo
3249 fi
3250
3251 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003252 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003253## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003254## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003255 echo
3256 cat confdefs.h
3257 echo
3258 fi
3259 test "$ac_signal" != 0 &&
3260 $as_echo "$as_me: caught signal $ac_signal"
3261 $as_echo "$as_me: exit $exit_status"
3262 } >&5
3263 rm -f core *.core core.conftest.* &&
3264 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3265 exit $exit_status
3266' 0
3267for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003268 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003269done
3270ac_signal=0
3271
3272# confdefs.h avoids OS command line length limits that DEFS can exceed.
3273rm -f -r conftest* confdefs.h
3274
cristy8b350f62009-11-15 23:12:43 +00003275$as_echo "/* confdefs.h */" > confdefs.h
3276
cristy3ed852e2009-09-05 21:47:34 +00003277# Predefined preprocessor variables.
3278
3279cat >>confdefs.h <<_ACEOF
3280#define PACKAGE_NAME "$PACKAGE_NAME"
3281_ACEOF
3282
cristy3ed852e2009-09-05 21:47:34 +00003283cat >>confdefs.h <<_ACEOF
3284#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3285_ACEOF
3286
cristy3ed852e2009-09-05 21:47:34 +00003287cat >>confdefs.h <<_ACEOF
3288#define PACKAGE_VERSION "$PACKAGE_VERSION"
3289_ACEOF
3290
cristy3ed852e2009-09-05 21:47:34 +00003291cat >>confdefs.h <<_ACEOF
3292#define PACKAGE_STRING "$PACKAGE_STRING"
3293_ACEOF
3294
cristy3ed852e2009-09-05 21:47:34 +00003295cat >>confdefs.h <<_ACEOF
3296#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3297_ACEOF
3298
cristy8b350f62009-11-15 23:12:43 +00003299cat >>confdefs.h <<_ACEOF
3300#define PACKAGE_URL "$PACKAGE_URL"
3301_ACEOF
3302
cristy3ed852e2009-09-05 21:47:34 +00003303
3304# Let the site file select an alternate cache file if it wants to.
3305# Prefer an explicitly selected file to automatically selected ones.
3306ac_site_file1=NONE
3307ac_site_file2=NONE
3308if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003309 # We do not want a PATH search for config.site.
3310 case $CONFIG_SITE in #((
3311 -*) ac_site_file1=./$CONFIG_SITE;;
3312 */*) ac_site_file1=$CONFIG_SITE;;
3313 *) ac_site_file1=./$CONFIG_SITE;;
3314 esac
cristy3ed852e2009-09-05 21:47:34 +00003315elif test "x$prefix" != xNONE; then
3316 ac_site_file1=$prefix/share/config.site
3317 ac_site_file2=$prefix/etc/config.site
3318else
3319 ac_site_file1=$ac_default_prefix/share/config.site
3320 ac_site_file2=$ac_default_prefix/etc/config.site
3321fi
3322for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3323do
3324 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003325 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003327$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3328 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003329 . "$ac_site_file" \
3330 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332as_fn_error $? "failed to load site script $ac_site_file
3333See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003334 fi
3335done
3336
3337if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003338 # Some versions of bash will fail to source /dev/null (special files
3339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003342$as_echo "$as_me: loading cache $cache_file" >&6;}
3343 case $cache_file in
3344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3345 *) . "./$cache_file";;
3346 esac
3347 fi
3348else
cristy8b350f62009-11-15 23:12:43 +00003349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003350$as_echo "$as_me: creating cache $cache_file" >&6;}
3351 >$cache_file
3352fi
3353
cristycd4c5312009-11-22 01:19:08 +00003354as_fn_append ac_header_list " stdlib.h"
3355as_fn_append ac_header_list " unistd.h"
3356as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003357# Check that the precious variables saved in the cache have kept the same
3358# value.
3359ac_cache_corrupted=false
3360for ac_var in $ac_precious_vars; do
3361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3362 eval ac_new_set=\$ac_env_${ac_var}_set
3363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3364 eval ac_new_val=\$ac_env_${ac_var}_value
3365 case $ac_old_set,$ac_new_set in
3366 set,)
cristy8b350f62009-11-15 23:12:43 +00003367 { $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 +00003368$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3369 ac_cache_corrupted=: ;;
3370 ,set)
cristy8b350f62009-11-15 23:12:43 +00003371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3373 ac_cache_corrupted=: ;;
3374 ,);;
3375 *)
3376 if test "x$ac_old_val" != "x$ac_new_val"; then
3377 # differences in whitespace do not lead to failure.
3378 ac_old_val_w=`echo x $ac_old_val`
3379 ac_new_val_w=`echo x $ac_new_val`
3380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3383 ac_cache_corrupted=:
3384 else
cristy8b350f62009-11-15 23:12:43 +00003385 { $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 +00003386$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3387 eval $ac_var=\$ac_old_val
3388 fi
cristy8b350f62009-11-15 23:12:43 +00003389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003390$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3393 fi;;
3394 esac
3395 # Pass precious variables to config.status.
3396 if test "$ac_new_set" = set; then
3397 case $ac_new_val in
3398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3399 *) ac_arg=$ac_var=$ac_new_val ;;
3400 esac
3401 case " $ac_configure_args " in
3402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003404 esac
3405 fi
3406done
3407if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003413fi
cristy8b350f62009-11-15 23:12:43 +00003414## -------------------- ##
3415## Main body of script. ##
3416## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424
3425
3426ac_aux_dir=
3427for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003428 if test -f "$ac_dir/install-sh"; then
3429 ac_aux_dir=$ac_dir
3430 ac_install_sh="$ac_aux_dir/install-sh -c"
3431 break
3432 elif test -f "$ac_dir/install.sh"; then
3433 ac_aux_dir=$ac_dir
3434 ac_install_sh="$ac_aux_dir/install.sh -c"
3435 break
3436 elif test -f "$ac_dir/shtool"; then
3437 ac_aux_dir=$ac_dir
3438 ac_install_sh="$ac_aux_dir/shtool install -c"
3439 break
3440 fi
cristy3ed852e2009-09-05 21:47:34 +00003441done
3442if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003443 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003444fi
3445
3446# These three variables are undocumented and unsupported,
3447# and are intended to be withdrawn in a future Autoconf release.
3448# They can cause serious problems if a builder's source tree is in a directory
3449# whose full name contains unusual characters.
3450ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3451ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3452ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3453
3454
3455
3456
3457ac_config_headers="$ac_config_headers config/config.h"
3458
cristy24fc1fe2010-10-23 21:13:01 +00003459
cristy4c08aed2011-07-01 19:47:50 +00003460ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003461
cristy4c08aed2011-07-01 19:47:50 +00003462ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003463
3464
3465#
3466# Save initial user-tunable values
3467#
3468USER_LIBS=$LIBS
3469for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3470 eval isset=\${$var+set}
3471 if test "$isset" = 'set'; then
3472 eval val=$`echo $var`
3473 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3474 fi
3475done
3476
3477
3478CONFIGURE_ARGS="$0 ${ac_configure_args}"
3479
3480
3481# Source file containing package/library versioning information.
3482. ${srcdir}/version.sh
3483
cristy15a88782010-01-31 23:24:49 +00003484echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003485# Make sure we can run config.sub.
3486$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003487 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003488
cristy8b350f62009-11-15 23:12:43 +00003489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003491if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003492 $as_echo_n "(cached) " >&6
3493else
3494 ac_build_alias=$build_alias
3495test "x$ac_build_alias" = x &&
3496 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3497test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003498 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003499ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003501
3502fi
cristy8b350f62009-11-15 23:12:43 +00003503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003504$as_echo "$ac_cv_build" >&6; }
3505case $ac_cv_build in
3506*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003507*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003508esac
3509build=$ac_cv_build
3510ac_save_IFS=$IFS; IFS='-'
3511set x $ac_cv_build
3512shift
3513build_cpu=$1
3514build_vendor=$2
3515shift; shift
3516# Remember, the first character of IFS is used to create $*,
3517# except with old shells:
3518build_os=$*
3519IFS=$ac_save_IFS
3520case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3521
3522
cristy8b350f62009-11-15 23:12:43 +00003523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003524$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003525if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003526 $as_echo_n "(cached) " >&6
3527else
3528 if test "x$host_alias" = x; then
3529 ac_cv_host=$ac_cv_build
3530else
3531 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003533fi
3534
3535fi
cristy8b350f62009-11-15 23:12:43 +00003536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003537$as_echo "$ac_cv_host" >&6; }
3538case $ac_cv_host in
3539*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003540*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003541esac
3542host=$ac_cv_host
3543ac_save_IFS=$IFS; IFS='-'
3544set x $ac_cv_host
3545shift
3546host_cpu=$1
3547host_vendor=$2
3548shift; shift
3549# Remember, the first character of IFS is used to create $*,
3550# except with old shells:
3551host_os=$*
3552IFS=$ac_save_IFS
3553case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3554
3555
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003558if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003559 $as_echo_n "(cached) " >&6
3560else
3561 if test "x$target_alias" = x; then
3562 ac_cv_target=$ac_cv_host
3563else
3564 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003566fi
3567
3568fi
cristy8b350f62009-11-15 23:12:43 +00003569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003570$as_echo "$ac_cv_target" >&6; }
3571case $ac_cv_target in
3572*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003573*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003574esac
3575target=$ac_cv_target
3576ac_save_IFS=$IFS; IFS='-'
3577set x $ac_cv_target
3578shift
3579target_cpu=$1
3580target_vendor=$2
3581shift; shift
3582# Remember, the first character of IFS is used to create $*,
3583# except with old shells:
3584target_os=$*
3585IFS=$ac_save_IFS
3586case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3587
3588
3589# The aliases save the names the user supplied, while $host etc.
3590# will get canonicalized.
3591test -n "$target_alias" &&
3592 test "$program_prefix$program_suffix$program_transform_name" = \
3593 NONENONEs,x,x, &&
3594 program_prefix=${target_alias}-
3595
cristy837d6dc2010-02-27 01:16:57 +00003596
3597
3598
cristy19615b82011-04-13 20:02:01 +00003599MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003600
3601
cristy19615b82011-04-13 20:02:01 +00003602MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003603
3604
cristy19615b82011-04-13 20:02:01 +00003605MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003606
3607
cristy3ed852e2009-09-05 21:47:34 +00003608# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003609MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3610
3611MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3612
cristy1454be72011-12-19 01:52:48 +00003613MAGICK_SVN_REVISION=6216
cristyd694ca32011-03-27 21:42:54 +00003614
3615
cristy3ed852e2009-09-05 21:47:34 +00003616
3617
3618# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3620$as_echo_n "checking whether build environment is sane... " >&6; }
3621# Just in case
3622sleep 1
3623echo timestamp > conftest.file
3624# Reject unsafe characters in $srcdir or the absolute working directory
3625# name. Accept space and tab only in the latter.
3626am_lf='
3627'
3628case `pwd` in
3629 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003630 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003631esac
3632case $srcdir in
3633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003634 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003635esac
cristy3ed852e2009-09-05 21:47:34 +00003636
cristy73bd4a52010-10-05 11:24:23 +00003637# Do `set' in a subshell so we don't clobber the current shell's
3638# arguments. Must try -L first in case configure is actually a
3639# symlink; some systems play weird games with the mod time of symlinks
3640# (eg FreeBSD returns the mod time of the symlink's containing
3641# directory).
3642if (
3643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3644 if test "$*" = "X"; then
3645 # -L didn't work.
3646 set X `ls -t "$srcdir/configure" conftest.file`
3647 fi
3648 rm -f conftest.file
3649 if test "$*" != "X $srcdir/configure conftest.file" \
3650 && test "$*" != "X conftest.file $srcdir/configure"; then
3651
3652 # If neither matched, then we have a broken ls. This can happen
3653 # if, for instance, CONFIG_SHELL is bash and it inherits a
3654 # broken ls alias from the environment. This has actually
3655 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003656 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003657alias in your environment" "$LINENO" 5
3658 fi
3659
3660 test "$2" = conftest.file
3661 )
3662then
3663 # Ok.
3664 :
3665else
cristy98dddb52010-11-04 00:30:15 +00003666 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003667Check your system clock" "$LINENO" 5
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670$as_echo "yes" >&6; }
3671
3672am__api_version='1.11'
3673
3674# Find a good install program. We prefer a C program (faster),
3675# so one script is as good as another. But avoid the broken or
3676# incompatible versions:
3677# SysV /etc/install, /usr/sbin/install
3678# SunOS /usr/etc/install
3679# IRIX /sbin/install
3680# AIX /bin/install
3681# AmigaOS /C/install, which installs bootblocks on floppy discs
3682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685# OS/2's system install, which has a completely different semantic
3686# ./install, which can be erroneously created by make from ./install.sh.
3687# Reject install programs that cannot install multiple files.
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3689$as_echo_n "checking for a BSD-compatible install... " >&6; }
3690if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003691if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003692 $as_echo_n "(cached) " >&6
3693else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 # Account for people who put trailing slashes in PATH elements.
3700case $as_dir/ in #((
3701 ./ | .// | /[cC]/* | \
3702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3704 /usr/ucb/* ) ;;
3705 *)
3706 # OSF1 and SCO ODT 3.0 have their own names for install.
3707 # Don't use installbsd from OSF since it installs stuff as root
3708 # by default.
3709 for ac_prog in ginstall scoinst install; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3712 if test $ac_prog = install &&
3713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # AIX install. It has an incompatible calling convention.
3715 :
3716 elif test $ac_prog = install &&
3717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # program-specific install script used by HP pwplus--don't use.
3719 :
3720 else
3721 rm -rf conftest.one conftest.two conftest.dir
3722 echo one > conftest.one
3723 echo two > conftest.two
3724 mkdir conftest.dir
3725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726 test -s conftest.one && test -s conftest.two &&
3727 test -s conftest.dir/conftest.one &&
3728 test -s conftest.dir/conftest.two
3729 then
3730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731 break 3
3732 fi
3733 fi
3734 fi
3735 done
3736 done
3737 ;;
3738esac
3739
3740 done
3741IFS=$as_save_IFS
3742
3743rm -rf conftest.one conftest.two conftest.dir
3744
3745fi
3746 if test "${ac_cv_path_install+set}" = set; then
3747 INSTALL=$ac_cv_path_install
3748 else
3749 # As a last resort, use the slow shell script. Don't cache a
3750 # value for INSTALL within a source directory, because that will
3751 # break other packages using the cache if that directory is
3752 # removed, or if the value is a relative name.
3753 INSTALL=$ac_install_sh
3754 fi
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3757$as_echo "$INSTALL" >&6; }
3758
3759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760# It thinks the first close brace ends the variable substitution.
3761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3762
3763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3764
3765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3766
3767test "$program_prefix" != NONE &&
3768 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3769# Use a double $ so make ignores it.
3770test "$program_suffix" != NONE &&
3771 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3772# Double any \ or $.
3773# By default was `s,x,x', remove it if useless.
3774ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3775program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3776
3777# expand $ac_aux_dir to an absolute path
3778am_aux_dir=`cd $ac_aux_dir && pwd`
3779
3780if test x"${MISSING+set}" != xset; then
3781 case $am_aux_dir in
3782 *\ * | *\ *)
3783 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3784 *)
3785 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3786 esac
3787fi
3788# Use eval to expand $SHELL
3789if eval "$MISSING --run true"; then
3790 am_missing_run="$MISSING --run "
3791else
3792 am_missing_run=
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3794$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3795fi
3796
3797if test x"${install_sh}" != xset; then
3798 case $am_aux_dir in
3799 *\ * | *\ *)
3800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3801 *)
3802 install_sh="\${SHELL} $am_aux_dir/install-sh"
3803 esac
3804fi
3805
3806# Installed binaries are usually stripped using `strip' when the user
3807# run `make install-strip'. However `strip' might not be the right
3808# tool to use in cross-compilation environments, therefore Automake
3809# will honor the `STRIP' environment variable to overrule this program.
3810if test "$cross_compiling" != no; then
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3813set dummy ${ac_tool_prefix}strip; ac_word=$2
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003816if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003817 $as_echo_n "(cached) " >&6
3818else
3819 if test -n "$STRIP"; then
3820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3821else
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833done
3834 done
3835IFS=$as_save_IFS
3836
3837fi
3838fi
3839STRIP=$ac_cv_prog_STRIP
3840if test -n "$STRIP"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3842$as_echo "$STRIP" >&6; }
3843else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845$as_echo "no" >&6; }
3846fi
3847
3848
3849fi
3850if test -z "$ac_cv_prog_STRIP"; then
3851 ac_ct_STRIP=$STRIP
3852 # Extract the first word of "strip", so it can be a program name with args.
3853set dummy strip; ac_word=$2
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003856if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003857 $as_echo_n "(cached) " >&6
3858else
3859 if test -n "$ac_ct_STRIP"; then
3860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_STRIP="strip"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873done
3874 done
3875IFS=$as_save_IFS
3876
3877fi
3878fi
3879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3880if test -n "$ac_ct_STRIP"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3882$as_echo "$ac_ct_STRIP" >&6; }
3883else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886fi
3887
3888 if test "x$ac_ct_STRIP" = x; then
3889 STRIP=":"
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892yes:)
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895ac_tool_warned=yes ;;
3896esac
3897 STRIP=$ac_ct_STRIP
3898 fi
3899else
3900 STRIP="$ac_cv_prog_STRIP"
3901fi
3902
3903fi
3904INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3905
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3907$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3908if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003909 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003910 $as_echo_n "(cached) " >&6
3911else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in mkdir gmkdir; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3920 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3921 'mkdir (GNU coreutils) '* | \
3922 'mkdir (coreutils) '* | \
3923 'mkdir (fileutils) '4.1*)
3924 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3925 break 3;;
3926 esac
3927 done
3928 done
3929 done
3930IFS=$as_save_IFS
3931
3932fi
3933
3934 test -d ./--version && rmdir ./--version
3935 if test "${ac_cv_path_mkdir+set}" = set; then
3936 MKDIR_P="$ac_cv_path_mkdir -p"
3937 else
3938 # As a last resort, use the slow shell script. Don't cache a
3939 # value for MKDIR_P within a source directory, because that will
3940 # break other packages using the cache if that directory is
3941 # removed, or if the value is a relative name.
3942 MKDIR_P="$ac_install_sh -d"
3943 fi
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3946$as_echo "$MKDIR_P" >&6; }
3947
3948mkdir_p="$MKDIR_P"
3949case $mkdir_p in
3950 [\\/$]* | ?:[\\/]*) ;;
3951 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3952esac
3953
3954for ac_prog in gawk mawk nawk awk
3955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003960if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003961 $as_echo_n "(cached) " >&6
3962else
3963 if test -n "$AWK"; then
3964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_prog_AWK="$ac_prog"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978 done
3979IFS=$as_save_IFS
3980
3981fi
3982fi
3983AWK=$ac_cv_prog_AWK
3984if test -n "$AWK"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3986$as_echo "$AWK" >&6; }
3987else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989$as_echo "no" >&6; }
3990fi
3991
3992
3993 test -n "$AWK" && break
3994done
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3997$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3998set x ${MAKE-make}
3999ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004000if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004001 $as_echo_n "(cached) " >&6
4002else
4003 cat >conftest.make <<\_ACEOF
4004SHELL = /bin/sh
4005all:
4006 @echo '@@@%%%=$(MAKE)=@@@%%%'
4007_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004008# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004009case `${MAKE-make} -f conftest.make 2>/dev/null` in
4010 *@@@%%%=?*=@@@%%%*)
4011 eval ac_cv_prog_make_${ac_make}_set=yes;;
4012 *)
4013 eval ac_cv_prog_make_${ac_make}_set=no;;
4014esac
4015rm -f conftest.make
4016fi
4017if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4019$as_echo "yes" >&6; }
4020 SET_MAKE=
4021else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023$as_echo "no" >&6; }
4024 SET_MAKE="MAKE=${MAKE-make}"
4025fi
4026
4027rm -rf .tst 2>/dev/null
4028mkdir .tst 2>/dev/null
4029if test -d .tst; then
4030 am__leading_dot=.
4031else
4032 am__leading_dot=_
4033fi
4034rmdir .tst 2>/dev/null
4035
cristya448bd22011-10-14 12:38:13 +00004036# Check whether --enable-silent-rules was given.
4037if test "${enable_silent_rules+set}" = set; then :
4038 enableval=$enable_silent_rules;
4039fi
4040
4041case $enable_silent_rules in
4042yes) AM_DEFAULT_VERBOSITY=0;;
4043no) AM_DEFAULT_VERBOSITY=1;;
4044*) AM_DEFAULT_VERBOSITY=1;;
4045esac
4046AM_BACKSLASH='\'
4047
cristy73bd4a52010-10-05 11:24:23 +00004048if test "`cd $srcdir && pwd`" != "`pwd`"; then
4049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4050 # is not polluted with repeated "-I."
4051 am__isrc=' -I$(srcdir)'
4052 # test to see if srcdir already configured
4053 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004054 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004055 fi
4056fi
4057
4058# test whether we have cygpath
4059if test -z "$CYGPATH_W"; then
4060 if (cygpath --version) >/dev/null 2>/dev/null; then
4061 CYGPATH_W='cygpath -w'
4062 else
4063 CYGPATH_W=echo
4064 fi
4065fi
4066
4067
4068# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004069 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004070 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004071
4072
cristya448bd22011-10-14 12:38:13 +00004073cat >>confdefs.h <<_ACEOF
4074#define PACKAGE "$PACKAGE"
4075_ACEOF
4076
4077
4078cat >>confdefs.h <<_ACEOF
4079#define VERSION "$VERSION"
4080_ACEOF
4081
cristy73bd4a52010-10-05 11:24:23 +00004082# Some tools Automake needs.
4083
4084ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4085
4086
4087AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4088
4089
4090AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4091
4092
4093AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4094
4095
4096MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4097
4098# We need awk for the "check" target. The system "awk" is bad on
4099# some platforms.
4100# Always define AMTAR for backward compatibility.
4101
4102AMTAR=${AMTAR-"${am_missing_run}tar"}
4103
4104am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4105
4106
4107
4108
4109
cristy3ed852e2009-09-05 21:47:34 +00004110
4111# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004112# Check whether --enable-silent-rules was given.
4113if test "${enable_silent_rules+set}" = set; then :
4114 enableval=$enable_silent_rules;
4115fi
4116
4117case $enable_silent_rules in
4118yes) AM_DEFAULT_VERBOSITY=0;;
4119no) AM_DEFAULT_VERBOSITY=1;;
4120*) AM_DEFAULT_VERBOSITY=0;;
4121esac
4122AM_BACKSLASH='\'
4123
cristy3ed852e2009-09-05 21:47:34 +00004124
4125MAGICK_LIB_VERSION="0x"
4126if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4127 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4128fi
4129MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4130if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4131 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4132fi
4133MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4134if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4135 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4136fi
4137MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4138
4139
4140# Definition used to define MagickLibVersionText in version.h
4141MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4142
4143
4144# Definition used to define MagickLibVersionNumber in version.h
4145MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4146
4147
4148# Regenerate config.status if ChangeLog or version.sh is updated.
4149CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4150
4151
4152PERLMAINCC=$CC
4153
4154MAGICK_CFLAGS=''
4155MAGICK_CPPFLAGS=$CPPFLAGS_USER
4156MAGICK_PCFLAGS=$CPPFLAGS_USER
4157MAGICK_LDFLAGS=''
4158MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004159MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004160
4161#
4162# Evaluate shell variable equivalents to Makefile directory variables
4163#
4164if test "x$prefix" = xNONE; then
4165 prefix=$ac_default_prefix
4166fi
4167# Let make expand exec_prefix.
4168if test "x$exec_prefix" = xNONE; then
4169 exec_prefix='${prefix}'
4170fi
4171
4172#
4173eval "eval PREFIX_DIR=${prefix}"
4174
4175eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4176
4177eval "eval BIN_DIR=$bindir"
4178
4179eval "eval SBIN_DIR=$sbindir"
4180
4181eval "eval LIBEXEC_DIR=$libexecdir"
4182
4183eval "eval DATA_DIR=$datadir"
4184
cristyd55889c2011-03-27 00:50:24 +00004185eval "eval DOC_DIR=$docdir"
4186
cristy3ed852e2009-09-05 21:47:34 +00004187eval "eval SYSCONF_DIR=$sysconfdir"
4188
4189eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4190
4191eval "eval LOCALSTATE_DIR=$localstatedir"
4192
4193eval "eval LIB_DIR=$libdir"
4194
4195eval "eval INCLUDE_DIR=$includedir"
4196
4197eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4198
4199eval "eval INFO_DIR=$infodir"
4200
4201eval "eval MAN_DIR=$mandir"
4202
4203
4204# Get full paths to source and build directories
4205srcdirfull="`cd $srcdir && pwd`"
4206builddir="`pwd`"
4207
4208#
4209# Compute variables useful for running uninstalled software.
4210#
4211MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4212MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4213MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4214MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4215DIRSEP=':'
4216case "${build_os}" in
4217 mingw* )
4218 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4219 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4220 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4221 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4222 DIRSEP=';'
4223 ;;
4224esac
4225case "${host_os}" in
4226 mingw* )
4227 DIRSEP=';'
4228 ;;
4229esac
4230
4231
4232
4233
4234
4235
cristya0b81c32010-01-22 02:54:33 +00004236
4237#
4238# Enable OS features.
4239#
cristy73bd4a52010-10-05 11:24:23 +00004240DEPDIR="${am__leading_dot}deps"
4241
4242ac_config_commands="$ac_config_commands depfiles"
4243
4244
4245am_make=${MAKE-make}
4246cat > confinc << 'END'
4247am__doit:
4248 @echo this is the am__doit target
4249.PHONY: am__doit
4250END
4251# If we don't find an include directive, just comment out the code.
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4253$as_echo_n "checking for style of include used by $am_make... " >&6; }
4254am__include="#"
4255am__quote=
4256_am_result=none
4257# First try GNU make style include.
4258echo "include confinc" > confmf
4259# Ignore all kinds of additional output from `make'.
4260case `$am_make -s -f confmf 2> /dev/null` in #(
4261*the\ am__doit\ target*)
4262 am__include=include
4263 am__quote=
4264 _am_result=GNU
4265 ;;
4266esac
4267# Now try BSD make style include.
4268if test "$am__include" = "#"; then
4269 echo '.include "confinc"' > confmf
4270 case `$am_make -s -f confmf 2> /dev/null` in #(
4271 *the\ am__doit\ target*)
4272 am__include=.include
4273 am__quote="\""
4274 _am_result=BSD
4275 ;;
4276 esac
4277fi
4278
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4281$as_echo "$_am_result" >&6; }
4282rm -f confinc confmf
4283
4284# Check whether --enable-dependency-tracking was given.
4285if test "${enable_dependency_tracking+set}" = set; then :
4286 enableval=$enable_dependency_tracking;
4287fi
4288
4289if test "x$enable_dependency_tracking" != xno; then
4290 am_depcomp="$ac_aux_dir/depcomp"
4291 AMDEPBACKSLASH='\'
4292fi
4293 if test "x$enable_dependency_tracking" != xno; then
4294 AMDEP_TRUE=
4295 AMDEP_FALSE='#'
4296else
4297 AMDEP_TRUE='#'
4298 AMDEP_FALSE=
4299fi
4300
4301
cristy3ed852e2009-09-05 21:47:34 +00004302ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307if test -n "$ac_tool_prefix"; then
4308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4309set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004311$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004312if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004313 $as_echo_n "(cached) " >&6
4314else
4315 if test -n "$CC"; then
4316 ac_cv_prog_CC="$CC" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004327 break 2
4328 fi
4329done
cristy8b350f62009-11-15 23:12:43 +00004330 done
cristy3ed852e2009-09-05 21:47:34 +00004331IFS=$as_save_IFS
4332
4333fi
4334fi
4335CC=$ac_cv_prog_CC
4336if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004338$as_echo "$CC" >&6; }
4339else
cristy8b350f62009-11-15 23:12:43 +00004340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341$as_echo "no" >&6; }
4342fi
4343
4344
4345fi
4346if test -z "$ac_cv_prog_CC"; then
4347 ac_ct_CC=$CC
4348 # Extract the first word of "gcc", so it can be a program name with args.
4349set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004352if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004353 $as_echo_n "(cached) " >&6
4354else
4355 if test -n "$ac_ct_CC"; then
4356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004367 break 2
4368 fi
4369done
cristy8b350f62009-11-15 23:12:43 +00004370 done
cristy3ed852e2009-09-05 21:47:34 +00004371IFS=$as_save_IFS
4372
4373fi
4374fi
4375ac_ct_CC=$ac_cv_prog_ac_ct_CC
4376if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004378$as_echo "$ac_ct_CC" >&6; }
4379else
cristy8b350f62009-11-15 23:12:43 +00004380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004381$as_echo "no" >&6; }
4382fi
4383
4384 if test "x$ac_ct_CC" = x; then
4385 CC=""
4386 else
4387 case $cross_compiling:$ac_tool_warned in
4388yes:)
cristy8b350f62009-11-15 23:12:43 +00004389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391ac_tool_warned=yes ;;
4392esac
4393 CC=$ac_ct_CC
4394 fi
4395else
4396 CC="$ac_cv_prog_CC"
4397fi
4398
4399if test -z "$CC"; then
4400 if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004405if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004406 $as_echo_n "(cached) " >&6
4407else
4408 if test -n "$CC"; then
4409 ac_cv_prog_CC="$CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420 break 2
4421 fi
4422done
cristy8b350f62009-11-15 23:12:43 +00004423 done
cristy3ed852e2009-09-05 21:47:34 +00004424IFS=$as_save_IFS
4425
4426fi
4427fi
4428CC=$ac_cv_prog_CC
4429if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004431$as_echo "$CC" >&6; }
4432else
cristy8b350f62009-11-15 23:12:43 +00004433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004434$as_echo "no" >&6; }
4435fi
4436
4437
4438 fi
4439fi
4440if test -z "$CC"; then
4441 # Extract the first word of "cc", so it can be a program name with args.
4442set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004444$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004445if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004446 $as_echo_n "(cached) " >&6
4447else
4448 if test -n "$CC"; then
4449 ac_cv_prog_CC="$CC" # Let the user override the test.
4450else
4451 ac_prog_rejected=no
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4460 ac_prog_rejected=yes
4461 continue
4462 fi
4463 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004465 break 2
4466 fi
4467done
cristy8b350f62009-11-15 23:12:43 +00004468 done
cristy3ed852e2009-09-05 21:47:34 +00004469IFS=$as_save_IFS
4470
4471if test $ac_prog_rejected = yes; then
4472 # We found a bogon in the path, so make sure we never use it.
4473 set dummy $ac_cv_prog_CC
4474 shift
4475 if test $# != 0; then
4476 # We chose a different compiler from the bogus one.
4477 # However, it has the same basename, so the bogon will be chosen
4478 # first if we set CC to just the basename; use the full file name.
4479 shift
4480 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4481 fi
4482fi
4483fi
4484fi
4485CC=$ac_cv_prog_CC
4486if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo "$CC" >&6; }
4489else
cristy8b350f62009-11-15 23:12:43 +00004490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo "no" >&6; }
4492fi
4493
4494
4495fi
4496if test -z "$CC"; then
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog in cl.exe
4499 do
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004504if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004505 $as_echo_n "(cached) " >&6
4506else
4507 if test -n "$CC"; then
4508 ac_cv_prog_CC="$CC" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519 break 2
4520 fi
4521done
cristy8b350f62009-11-15 23:12:43 +00004522 done
cristy3ed852e2009-09-05 21:47:34 +00004523IFS=$as_save_IFS
4524
4525fi
4526fi
4527CC=$ac_cv_prog_CC
4528if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "$CC" >&6; }
4531else
cristy8b350f62009-11-15 23:12:43 +00004532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo "no" >&6; }
4534fi
4535
4536
4537 test -n "$CC" && break
4538 done
4539fi
4540if test -z "$CC"; then
4541 ac_ct_CC=$CC
4542 for ac_prog in cl.exe
4543do
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004548if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$ac_ct_CC"; then
4552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004559 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563 break 2
4564 fi
4565done
cristy8b350f62009-11-15 23:12:43 +00004566 done
cristy3ed852e2009-09-05 21:47:34 +00004567IFS=$as_save_IFS
4568
4569fi
4570fi
4571ac_ct_CC=$ac_cv_prog_ac_ct_CC
4572if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "$ac_ct_CC" >&6; }
4575else
cristy8b350f62009-11-15 23:12:43 +00004576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004577$as_echo "no" >&6; }
4578fi
4579
4580
4581 test -n "$ac_ct_CC" && break
4582done
4583
4584 if test "x$ac_ct_CC" = x; then
4585 CC=""
4586 else
4587 case $cross_compiling:$ac_tool_warned in
4588yes:)
cristy8b350f62009-11-15 23:12:43 +00004589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591ac_tool_warned=yes ;;
4592esac
4593 CC=$ac_ct_CC
4594 fi
4595fi
4596
4597fi
4598
4599
cristy8b350f62009-11-15 23:12:43 +00004600test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004602as_fn_error $? "no acceptable C compiler found in \$PATH
4603See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004604
4605# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004606$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607set X $ac_compile
4608ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004609for ac_option in --version -v -V -qversion; do
4610 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
cristy8b350f62009-11-15 23:12:43 +00004615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616$as_echo "$ac_try_echo"; } >&5
4617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004618 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004619 if test -s conftest.err; then
4620 sed '10a\
4621... rest of stderr output deleted ...
4622 10q' conftest.err >conftest.er1
4623 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004624 fi
cristycd4c5312009-11-22 01:19:08 +00004625 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627 test $ac_status = 0; }
4628done
cristy3ed852e2009-09-05 21:47:34 +00004629
cristy8b350f62009-11-15 23:12:43 +00004630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004631/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004632
cristy3ed852e2009-09-05 21:47:34 +00004633int
4634main ()
4635{
4636
4637 ;
4638 return 0;
4639}
4640_ACEOF
4641ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004642ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004643# Try to create an executable without -o first, disregard a.out.
4644# It will help us diagnose broken compilers, and finding out an intuition
4645# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4647$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004648ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4649
4650# The possible output files:
4651ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4652
4653ac_rmfiles=
4654for ac_file in $ac_files
4655do
4656 case $ac_file in
4657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4658 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4659 esac
4660done
4661rm -f $ac_rmfiles
4662
cristy8b350f62009-11-15 23:12:43 +00004663if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004664case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667esac
cristy8b350f62009-11-15 23:12:43 +00004668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004670 (eval "$ac_link_default") 2>&5
4671 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4675# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4676# in a Makefile. We should not override ac_cv_exeext if it was cached,
4677# so that the user can short-circuit this test for compilers unknown to
4678# Autoconf.
4679for ac_file in $ac_files ''
4680do
4681 test -f "$ac_file" || continue
4682 case $ac_file in
4683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4684 ;;
4685 [ab].out )
4686 # We found the default executable, but exeext='' is most
4687 # certainly right.
4688 break;;
4689 *.* )
cristy8b350f62009-11-15 23:12:43 +00004690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004691 then :; else
4692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4693 fi
4694 # We set ac_cv_exeext here because the later test for it is not
4695 # safe: cross compilers may not add the suffix if given an `-o'
4696 # argument, so we may need to know it at that point already.
4697 # Even if this section looks crufty: it has the advantage of
4698 # actually working.
4699 break;;
4700 * )
4701 break;;
4702 esac
4703done
4704test "$ac_cv_exeext" = no && ac_cv_exeext=
4705
4706else
4707 ac_file=''
4708fi
cristy8b350f62009-11-15 23:12:43 +00004709if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711$as_echo "no" >&6; }
4712$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004713sed 's/^/| /' conftest.$ac_ext >&5
4714
cristy8b350f62009-11-15 23:12:43 +00004715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004717as_fn_error 77 "C compiler cannot create executables
4718See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4721$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004722fi
cristycd4c5312009-11-22 01:19:08 +00004723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4724$as_echo_n "checking for C compiler default output file name... " >&6; }
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4726$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004727ac_exeext=$ac_cv_exeext
4728
cristycd4c5312009-11-22 01:19:08 +00004729rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004730ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004733if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004734case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737esac
cristy8b350f62009-11-15 23:12:43 +00004738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004740 (eval "$ac_link") 2>&5
4741 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004744 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4745# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4746# work properly (i.e., refer to `conftest.exe'), while it won't with
4747# `rm'.
4748for ac_file in conftest.exe conftest conftest.*; do
4749 test -f "$ac_file" || continue
4750 case $ac_file in
4751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4753 break;;
4754 * ) break;;
4755 esac
4756done
4757else
cristy8b350f62009-11-15 23:12:43 +00004758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004760as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4761See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004762fi
cristycd4c5312009-11-22 01:19:08 +00004763rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004765$as_echo "$ac_cv_exeext" >&6; }
4766
4767rm -f conftest.$ac_ext
4768EXEEXT=$ac_cv_exeext
4769ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772#include <stdio.h>
4773int
4774main ()
4775{
4776FILE *f = fopen ("conftest.out", "w");
4777 return ferror (f) || fclose (f) != 0;
4778
4779 ;
4780 return 0;
4781}
4782_ACEOF
4783ac_clean_files="$ac_clean_files conftest.out"
4784# Check that the compiler produces executables we can run. If not, either
4785# the compiler is broken, or we cross compile.
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4787$as_echo_n "checking whether we are cross compiling... " >&6; }
4788if test "$cross_compiling" != yes; then
4789 { { ac_try="$ac_link"
4790case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793esac
4794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795$as_echo "$ac_try_echo"; } >&5
4796 (eval "$ac_link") 2>&5
4797 ac_status=$?
4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }
4800 if { ac_try='./conftest$ac_cv_exeext'
4801 { { case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804esac
4805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4806$as_echo "$ac_try_echo"; } >&5
4807 (eval "$ac_try") 2>&5
4808 ac_status=$?
4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810 test $ac_status = 0; }; }; then
4811 cross_compiling=no
4812 else
4813 if test "$cross_compiling" = maybe; then
4814 cross_compiling=yes
4815 else
4816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004818as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004819If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004820See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004821 fi
4822 fi
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4825$as_echo "$cross_compiling" >&6; }
4826
4827rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4828ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004831if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004832 $as_echo_n "(cached) " >&6
4833else
cristy8b350f62009-11-15 23:12:43 +00004834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004835/* end confdefs.h. */
4836
4837int
4838main ()
4839{
4840
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004846if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004847case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850esac
cristy8b350f62009-11-15 23:12:43 +00004851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004853 (eval "$ac_compile") 2>&5
4854 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004857 for ac_file in conftest.o conftest.obj conftest.*; do
4858 test -f "$ac_file" || continue;
4859 case $ac_file in
4860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4862 break;;
4863 esac
4864done
4865else
4866 $as_echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
cristy8b350f62009-11-15 23:12:43 +00004869{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004871as_fn_error $? "cannot compute suffix of object files: cannot compile
4872See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004873fi
cristy3ed852e2009-09-05 21:47:34 +00004874rm -f conftest.$ac_cv_objext conftest.$ac_ext
4875fi
cristy8b350f62009-11-15 23:12:43 +00004876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004877$as_echo "$ac_cv_objext" >&6; }
4878OBJEXT=$ac_cv_objext
4879ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004882if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004883 $as_echo_n "(cached) " >&6
4884else
cristy8b350f62009-11-15 23:12:43 +00004885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004886/* end confdefs.h. */
4887
4888int
4889main ()
4890{
4891#ifndef __GNUC__
4892 choke me
4893#endif
4894
4895 ;
4896 return 0;
4897}
4898_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004899if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004900 ac_compiler_gnu=yes
4901else
cristy8b350f62009-11-15 23:12:43 +00004902 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004903fi
cristy3ed852e2009-09-05 21:47:34 +00004904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905ac_cv_c_compiler_gnu=$ac_compiler_gnu
4906
4907fi
cristy8b350f62009-11-15 23:12:43 +00004908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004909$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4910if test $ac_compiler_gnu = yes; then
4911 GCC=yes
4912else
4913 GCC=
4914fi
4915ac_test_CFLAGS=${CFLAGS+set}
4916ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004918$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004919if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004920 $as_echo_n "(cached) " >&6
4921else
4922 ac_save_c_werror_flag=$ac_c_werror_flag
4923 ac_c_werror_flag=yes
4924 ac_cv_prog_cc_g=no
4925 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004927/* end confdefs.h. */
4928
4929int
4930main ()
4931{
4932
4933 ;
4934 return 0;
4935}
4936_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004937if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004938 ac_cv_prog_cc_g=yes
4939else
cristy8b350f62009-11-15 23:12:43 +00004940 CFLAGS=""
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004942/* end confdefs.h. */
4943
4944int
4945main ()
4946{
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004952if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004953
cristy8b350f62009-11-15 23:12:43 +00004954else
4955 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004956 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004958/* end confdefs.h. */
4959
4960int
4961main ()
4962{
4963
4964 ;
4965 return 0;
4966}
4967_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004968if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004969 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004970fi
cristy3ed852e2009-09-05 21:47:34 +00004971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972fi
cristy3ed852e2009-09-05 21:47:34 +00004973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974fi
cristy3ed852e2009-09-05 21:47:34 +00004975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_c_werror_flag=$ac_save_c_werror_flag
4977fi
cristy8b350f62009-11-15 23:12:43 +00004978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004979$as_echo "$ac_cv_prog_cc_g" >&6; }
4980if test "$ac_test_CFLAGS" = set; then
4981 CFLAGS=$ac_save_CFLAGS
4982elif test $ac_cv_prog_cc_g = yes; then
4983 if test "$GCC" = yes; then
4984 CFLAGS="-g -O2"
4985 else
4986 CFLAGS="-g"
4987 fi
4988else
4989 if test "$GCC" = yes; then
4990 CFLAGS="-O2"
4991 else
4992 CFLAGS=
4993 fi
4994fi
cristy8b350f62009-11-15 23:12:43 +00004995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004997if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004998 $as_echo_n "(cached) " >&6
4999else
5000 ac_cv_prog_cc_c89=no
5001ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005003/* end confdefs.h. */
5004#include <stdarg.h>
5005#include <stdio.h>
5006#include <sys/types.h>
5007#include <sys/stat.h>
5008/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5009struct buf { int x; };
5010FILE * (*rcsopen) (struct buf *, struct stat *, int);
5011static char *e (p, i)
5012 char **p;
5013 int i;
5014{
5015 return p[i];
5016}
5017static char *f (char * (*g) (char **, int), char **p, ...)
5018{
5019 char *s;
5020 va_list v;
5021 va_start (v,p);
5022 s = g (p, va_arg (v,int));
5023 va_end (v);
5024 return s;
5025}
5026
5027/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5028 function prototypes and stuff, but not '\xHH' hex character constants.
5029 These don't provoke an error unfortunately, instead are silently treated
5030 as 'x'. The following induces an error, until -std is added to get
5031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5032 array size at least. It's necessary to write '\x00'==0 to get something
5033 that's true only with -std. */
5034int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5035
5036/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5037 inside strings and character constants. */
5038#define FOO(x) 'x'
5039int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5040
5041int test (int i, double x);
5042struct s1 {int (*f) (int a);};
5043struct s2 {int (*f) (double a);};
5044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5045int argc;
5046char **argv;
5047int
5048main ()
5049{
5050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5051 ;
5052 return 0;
5053}
5054_ACEOF
5055for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5057do
5058 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005059 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005060 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005061fi
cristy3ed852e2009-09-05 21:47:34 +00005062rm -f core conftest.err conftest.$ac_objext
5063 test "x$ac_cv_prog_cc_c89" != "xno" && break
5064done
5065rm -f conftest.$ac_ext
5066CC=$ac_save_CC
5067
5068fi
5069# AC_CACHE_VAL
5070case "x$ac_cv_prog_cc_c89" in
5071 x)
cristy8b350f62009-11-15 23:12:43 +00005072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005073$as_echo "none needed" >&6; } ;;
5074 xno)
cristy8b350f62009-11-15 23:12:43 +00005075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005076$as_echo "unsupported" >&6; } ;;
5077 *)
5078 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005080$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5081esac
cristy8b350f62009-11-15 23:12:43 +00005082if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005083
cristy8b350f62009-11-15 23:12:43 +00005084fi
cristy3ed852e2009-09-05 21:47:34 +00005085
5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005091
cristy73bd4a52010-10-05 11:24:23 +00005092depcc="$CC" am_compiler_list=
5093
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5095$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005096if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005097 $as_echo_n "(cached) " >&6
5098else
5099 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5100 # We make a subdir and do the tests there. Otherwise we can end up
5101 # making bogus files that we don't know about and never remove. For
5102 # instance it was reported that on HP-UX the gcc test will end up
5103 # making a dummy file named `D' -- because `-MD' means `put the output
5104 # in D'.
5105 mkdir conftest.dir
5106 # Copy depcomp to subdir because otherwise we won't find it if we're
5107 # using a relative directory.
5108 cp "$am_depcomp" conftest.dir
5109 cd conftest.dir
5110 # We will build objects and dependencies in a subdirectory because
5111 # it helps to detect inapplicable dependency modes. For instance
5112 # both Tru64's cc and ICC support -MD to output dependencies as a
5113 # side effect of compilation, but ICC will put the dependencies in
5114 # the current directory while Tru64 will put them in the object
5115 # directory.
5116 mkdir sub
5117
5118 am_cv_CC_dependencies_compiler_type=none
5119 if test "$am_compiler_list" = ""; then
5120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5121 fi
5122 am__universal=false
5123 case " $depcc " in #(
5124 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5125 esac
5126
5127 for depmode in $am_compiler_list; do
5128 # Setup a source with many dependencies, because some compilers
5129 # like to wrap large dependency lists on column 80 (with \), and
5130 # we should not choose a depcomp mode which is confused by this.
5131 #
5132 # We need to recreate these files for each test, as the compiler may
5133 # overwrite some of them when testing with obscure command lines.
5134 # This happens at least with the AIX C compiler.
5135 : > sub/conftest.c
5136 for i in 1 2 3 4 5 6; do
5137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5138 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5139 # Solaris 8's {/usr,}/bin/sh.
5140 touch sub/conftst$i.h
5141 done
5142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5143
5144 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5145 # mode. It turns out that the SunPro C++ compiler does not properly
5146 # handle `-M -o', and we need to detect this. Also, some Intel
5147 # versions had trouble with output in subdirs
5148 am__obj=sub/conftest.${OBJEXT-o}
5149 am__minus_obj="-o $am__obj"
5150 case $depmode in
5151 gcc)
5152 # This depmode causes a compiler race in universal mode.
5153 test "$am__universal" = false || continue
5154 ;;
5155 nosideeffect)
5156 # after this tag, mechanisms are not by side-effect, so they'll
5157 # only be used when explicitly requested
5158 if test "x$enable_dependency_tracking" = xyes; then
5159 continue
5160 else
5161 break
5162 fi
5163 ;;
5164 msvisualcpp | msvcmsys)
5165 # This compiler won't grok `-c -o', but also, the minuso test has
5166 # not run yet. These depmodes are late enough in the game, and
5167 # so weak that their functioning should not be impacted.
5168 am__obj=conftest.${OBJEXT-o}
5169 am__minus_obj=
5170 ;;
5171 none) break ;;
5172 esac
5173 if depmode=$depmode \
5174 source=sub/conftest.c object=$am__obj \
5175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5176 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5177 >/dev/null 2>conftest.err &&
5178 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5179 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5180 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5181 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5182 # icc doesn't choke on unknown options, it will just issue warnings
5183 # or remarks (even with -Werror). So we grep stderr for any message
5184 # that says an option was ignored or not supported.
5185 # When given -MP, icc 7.0 and 7.1 complain thusly:
5186 # icc: Command line warning: ignoring option '-M'; no argument required
5187 # The diagnosis changed in icc 8.0:
5188 # icc: Command line remark: option '-MP' not supported
5189 if (grep 'ignoring option' conftest.err ||
5190 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5191 am_cv_CC_dependencies_compiler_type=$depmode
5192 break
5193 fi
5194 fi
5195 done
5196
5197 cd ..
5198 rm -rf conftest.dir
5199else
5200 am_cv_CC_dependencies_compiler_type=none
5201fi
5202
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5205$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5206CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5207
5208 if
5209 test "x$enable_dependency_tracking" != xno \
5210 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5211 am__fastdepCC_TRUE=
5212 am__fastdepCC_FALSE='#'
5213else
5214 am__fastdepCC_TRUE='#'
5215 am__fastdepCC_FALSE=
5216fi
5217
5218
cristy3ed852e2009-09-05 21:47:34 +00005219
cristya0b81c32010-01-22 02:54:33 +00005220ac_ext=c
5221ac_cpp='$CPP $CPPFLAGS'
5222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224ac_compiler_gnu=$ac_cv_c_compiler_gnu
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5226$as_echo_n "checking how to run the C preprocessor... " >&6; }
5227# On Suns, sometimes $CPP names a directory.
5228if test -n "$CPP" && test -d "$CPP"; then
5229 CPP=
5230fi
5231if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005232 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005233 $as_echo_n "(cached) " >&6
5234else
5235 # Double quotes because CPP needs to be expanded
5236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5237 do
5238 ac_preproc_ok=false
5239for ac_c_preproc_warn_flag in '' yes
5240do
5241 # Use a header file that comes with gcc, so configuring glibc
5242 # with a fresh cross-compiler works.
5243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5244 # <limits.h> exists even on freestanding compilers.
5245 # On the NeXT, cc -E runs the code through the compiler's parser,
5246 # not just through cpp. "Syntax error" is here to catch this case.
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248/* end confdefs.h. */
5249#ifdef __STDC__
5250# include <limits.h>
5251#else
5252# include <assert.h>
5253#endif
5254 Syntax error
5255_ACEOF
5256if ac_fn_c_try_cpp "$LINENO"; then :
5257
5258else
5259 # Broken: fails on valid input.
5260continue
5261fi
cristyda16f162011-02-19 23:52:17 +00005262rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005263
5264 # OK, works on sane cases. Now check whether nonexistent headers
5265 # can be detected and how.
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h. */
5268#include <ac_nonexistent.h>
5269_ACEOF
5270if ac_fn_c_try_cpp "$LINENO"; then :
5271 # Broken: success on invalid input.
5272continue
5273else
5274 # Passes both tests.
5275ac_preproc_ok=:
5276break
5277fi
cristyda16f162011-02-19 23:52:17 +00005278rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005279
5280done
5281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005282rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005283if $ac_preproc_ok; then :
5284 break
5285fi
5286
5287 done
5288 ac_cv_prog_CPP=$CPP
5289
5290fi
5291 CPP=$ac_cv_prog_CPP
5292else
5293 ac_cv_prog_CPP=$CPP
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5296$as_echo "$CPP" >&6; }
5297ac_preproc_ok=false
5298for ac_c_preproc_warn_flag in '' yes
5299do
5300 # Use a header file that comes with gcc, so configuring glibc
5301 # with a fresh cross-compiler works.
5302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303 # <limits.h> exists even on freestanding compilers.
5304 # On the NeXT, cc -E runs the code through the compiler's parser,
5305 # not just through cpp. "Syntax error" is here to catch this case.
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h. */
5308#ifdef __STDC__
5309# include <limits.h>
5310#else
5311# include <assert.h>
5312#endif
5313 Syntax error
5314_ACEOF
5315if ac_fn_c_try_cpp "$LINENO"; then :
5316
5317else
5318 # Broken: fails on valid input.
5319continue
5320fi
cristyda16f162011-02-19 23:52:17 +00005321rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005322
5323 # OK, works on sane cases. Now check whether nonexistent headers
5324 # can be detected and how.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h. */
5327#include <ac_nonexistent.h>
5328_ACEOF
5329if ac_fn_c_try_cpp "$LINENO"; then :
5330 # Broken: success on invalid input.
5331continue
5332else
5333 # Passes both tests.
5334ac_preproc_ok=:
5335break
5336fi
cristyda16f162011-02-19 23:52:17 +00005337rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005338
5339done
5340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005341rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005342if $ac_preproc_ok; then :
5343
5344else
5345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005347as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5348See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005349fi
5350
5351ac_ext=c
5352ac_cpp='$CPP $CPPFLAGS'
5353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5359$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005360if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005361 $as_echo_n "(cached) " >&6
5362else
5363 if test -z "$GREP"; then
5364 ac_path_GREP_found=false
5365 # Loop through the user's path and test for each of PROGNAME-LIST
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_prog in grep ggrep; do
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5374 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5375# Check for GNU ac_path_GREP and select it if it is found.
5376 # Check for GNU $ac_path_GREP
5377case `"$ac_path_GREP" --version 2>&1` in
5378*GNU*)
5379 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5380*)
5381 ac_count=0
5382 $as_echo_n 0123456789 >"conftest.in"
5383 while :
5384 do
5385 cat "conftest.in" "conftest.in" >"conftest.tmp"
5386 mv "conftest.tmp" "conftest.in"
5387 cp "conftest.in" "conftest.nl"
5388 $as_echo 'GREP' >> "conftest.nl"
5389 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5391 as_fn_arith $ac_count + 1 && ac_count=$as_val
5392 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5393 # Best one so far, save it but keep looking for a better one
5394 ac_cv_path_GREP="$ac_path_GREP"
5395 ac_path_GREP_max=$ac_count
5396 fi
5397 # 10*(2^10) chars as input seems more than enough
5398 test $ac_count -gt 10 && break
5399 done
5400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5401esac
5402
5403 $ac_path_GREP_found && break 3
5404 done
5405 done
5406 done
5407IFS=$as_save_IFS
5408 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005409 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005410 fi
5411else
5412 ac_cv_path_GREP=$GREP
5413fi
5414
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5417$as_echo "$ac_cv_path_GREP" >&6; }
5418 GREP="$ac_cv_path_GREP"
5419
5420
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5422$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005423if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005424 $as_echo_n "(cached) " >&6
5425else
5426 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5427 then ac_cv_path_EGREP="$GREP -E"
5428 else
5429 if test -z "$EGREP"; then
5430 ac_path_EGREP_found=false
5431 # Loop through the user's path and test for each of PROGNAME-LIST
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5434do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_prog in egrep; do
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5440 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5441# Check for GNU ac_path_EGREP and select it if it is found.
5442 # Check for GNU $ac_path_EGREP
5443case `"$ac_path_EGREP" --version 2>&1` in
5444*GNU*)
5445 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5446*)
5447 ac_count=0
5448 $as_echo_n 0123456789 >"conftest.in"
5449 while :
5450 do
5451 cat "conftest.in" "conftest.in" >"conftest.tmp"
5452 mv "conftest.tmp" "conftest.in"
5453 cp "conftest.in" "conftest.nl"
5454 $as_echo 'EGREP' >> "conftest.nl"
5455 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5457 as_fn_arith $ac_count + 1 && ac_count=$as_val
5458 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5459 # Best one so far, save it but keep looking for a better one
5460 ac_cv_path_EGREP="$ac_path_EGREP"
5461 ac_path_EGREP_max=$ac_count
5462 fi
5463 # 10*(2^10) chars as input seems more than enough
5464 test $ac_count -gt 10 && break
5465 done
5466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5467esac
5468
5469 $ac_path_EGREP_found && break 3
5470 done
5471 done
5472 done
5473IFS=$as_save_IFS
5474 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005475 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005476 fi
5477else
5478 ac_cv_path_EGREP=$EGREP
5479fi
5480
5481 fi
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5484$as_echo "$ac_cv_path_EGREP" >&6; }
5485 EGREP="$ac_cv_path_EGREP"
5486
5487
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5489$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005490if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005491 $as_echo_n "(cached) " >&6
5492else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495#include <stdlib.h>
5496#include <stdarg.h>
5497#include <string.h>
5498#include <float.h>
5499
5500int
5501main ()
5502{
5503
5504 ;
5505 return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_compile "$LINENO"; then :
5509 ac_cv_header_stdc=yes
5510else
5511 ac_cv_header_stdc=no
5512fi
5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514
5515if test $ac_cv_header_stdc = yes; then
5516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h. */
5519#include <string.h>
5520
5521_ACEOF
5522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5523 $EGREP "memchr" >/dev/null 2>&1; then :
5524
5525else
5526 ac_cv_header_stdc=no
5527fi
5528rm -f conftest*
5529
5530fi
5531
5532if test $ac_cv_header_stdc = yes; then
5533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535/* end confdefs.h. */
5536#include <stdlib.h>
5537
5538_ACEOF
5539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540 $EGREP "free" >/dev/null 2>&1; then :
5541
5542else
5543 ac_cv_header_stdc=no
5544fi
5545rm -f conftest*
5546
5547fi
5548
5549if test $ac_cv_header_stdc = yes; then
5550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5551 if test "$cross_compiling" = yes; then :
5552 :
5553else
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h. */
5556#include <ctype.h>
5557#include <stdlib.h>
5558#if ((' ' & 0x0FF) == 0x020)
5559# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5561#else
5562# define ISLOWER(c) \
5563 (('a' <= (c) && (c) <= 'i') \
5564 || ('j' <= (c) && (c) <= 'r') \
5565 || ('s' <= (c) && (c) <= 'z'))
5566# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5567#endif
5568
5569#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570int
5571main ()
5572{
5573 int i;
5574 for (i = 0; i < 256; i++)
5575 if (XOR (islower (i), ISLOWER (i))
5576 || toupper (i) != TOUPPER (i))
5577 return 2;
5578 return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_run "$LINENO"; then :
5582
5583else
5584 ac_cv_header_stdc=no
5585fi
5586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5587 conftest.$ac_objext conftest.beam conftest.$ac_ext
5588fi
5589
5590fi
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5593$as_echo "$ac_cv_header_stdc" >&6; }
5594if test $ac_cv_header_stdc = yes; then
5595
5596$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5597
5598fi
5599
5600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5602 inttypes.h stdint.h unistd.h
5603do :
5604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5605ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5606"
cristy98dddb52010-11-04 00:30:15 +00005607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005608 cat >>confdefs.h <<_ACEOF
5609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5610_ACEOF
5611
5612fi
5613
5614done
5615
5616
5617
5618 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 +00005619if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005620 MINIX=yes
5621else
5622 MINIX=
5623fi
5624
5625
5626 if test "$MINIX" = yes; then
5627
5628$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5629
5630
5631$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5632
5633
5634$as_echo "#define _MINIX 1" >>confdefs.h
5635
5636 fi
5637
5638
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5640$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005641if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005642 $as_echo_n "(cached) " >&6
5643else
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645/* end confdefs.h. */
5646
5647# define __EXTENSIONS__ 1
5648 $ac_includes_default
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658 ac_cv_safe_to_define___extensions__=yes
5659else
5660 ac_cv_safe_to_define___extensions__=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5665$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5666 test $ac_cv_safe_to_define___extensions__ = yes &&
5667 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5668
5669 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5670
5671 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5672
5673 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5674
5675 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5676
5677
5678
5679# Check for programs
5680ac_ext=c
5681ac_cpp='$CPP $CPPFLAGS'
5682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5687set dummy ${ac_tool_prefix}gcc; ac_word=$2
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005690if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005691 $as_echo_n "(cached) " >&6
5692else
5693 if test -n "$CC"; then
5694 ac_cv_prog_CC="$CC" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707done
5708 done
5709IFS=$as_save_IFS
5710
5711fi
5712fi
5713CC=$ac_cv_prog_CC
5714if test -n "$CC"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5716$as_echo "$CC" >&6; }
5717else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719$as_echo "no" >&6; }
5720fi
5721
5722
5723fi
5724if test -z "$ac_cv_prog_CC"; then
5725 ac_ct_CC=$CC
5726 # Extract the first word of "gcc", so it can be a program name with args.
5727set dummy gcc; ac_word=$2
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005730if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005731 $as_echo_n "(cached) " >&6
5732else
5733 if test -n "$ac_ct_CC"; then
5734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_ac_ct_CC="gcc"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747done
5748 done
5749IFS=$as_save_IFS
5750
5751fi
5752fi
5753ac_ct_CC=$ac_cv_prog_ac_ct_CC
5754if test -n "$ac_ct_CC"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5756$as_echo "$ac_ct_CC" >&6; }
5757else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
5760fi
5761
5762 if test "x$ac_ct_CC" = x; then
5763 CC=""
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766yes:)
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769ac_tool_warned=yes ;;
5770esac
5771 CC=$ac_ct_CC
5772 fi
5773else
5774 CC="$ac_cv_prog_CC"
5775fi
5776
5777if test -z "$CC"; then
5778 if test -n "$ac_tool_prefix"; then
5779 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5780set dummy ${ac_tool_prefix}cc; ac_word=$2
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005783if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005784 $as_echo_n "(cached) " >&6
5785else
5786 if test -n "$CC"; then
5787 ac_cv_prog_CC="$CC" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_prog_CC="${ac_tool_prefix}cc"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5799 fi
5800done
5801 done
5802IFS=$as_save_IFS
5803
5804fi
5805fi
5806CC=$ac_cv_prog_CC
5807if test -n "$CC"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5809$as_echo "$CC" >&6; }
5810else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
5813fi
5814
5815
5816 fi
5817fi
5818if test -z "$CC"; then
5819 # Extract the first word of "cc", so it can be a program name with args.
5820set dummy cc; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005823if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005824 $as_echo_n "(cached) " >&6
5825else
5826 if test -n "$CC"; then
5827 ac_cv_prog_CC="$CC" # Let the user override the test.
5828else
5829 ac_prog_rejected=no
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5838 ac_prog_rejected=yes
5839 continue
5840 fi
5841 ac_cv_prog_CC="cc"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846 done
5847IFS=$as_save_IFS
5848
5849if test $ac_prog_rejected = yes; then
5850 # We found a bogon in the path, so make sure we never use it.
5851 set dummy $ac_cv_prog_CC
5852 shift
5853 if test $# != 0; then
5854 # We chose a different compiler from the bogus one.
5855 # However, it has the same basename, so the bogon will be chosen
5856 # first if we set CC to just the basename; use the full file name.
5857 shift
5858 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5859 fi
5860fi
5861fi
5862fi
5863CC=$ac_cv_prog_CC
5864if test -n "$CC"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5866$as_echo "$CC" >&6; }
5867else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869$as_echo "no" >&6; }
5870fi
5871
5872
5873fi
5874if test -z "$CC"; then
5875 if test -n "$ac_tool_prefix"; then
5876 for ac_prog in cl.exe
5877 do
5878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005882if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005883 $as_echo_n "(cached) " >&6
5884else
5885 if test -n "$CC"; then
5886 ac_cv_prog_CC="$CC" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899done
5900 done
5901IFS=$as_save_IFS
5902
5903fi
5904fi
5905CC=$ac_cv_prog_CC
5906if test -n "$CC"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5908$as_echo "$CC" >&6; }
5909else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
5913
5914
5915 test -n "$CC" && break
5916 done
5917fi
5918if test -z "$CC"; then
5919 ac_ct_CC=$CC
5920 for ac_prog in cl.exe
5921do
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923set dummy $ac_prog; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005926if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005927 $as_echo_n "(cached) " >&6
5928else
5929 if test -n "$ac_ct_CC"; then
5930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_ac_ct_CC="$ac_prog"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944 done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949ac_ct_CC=$ac_cv_prog_ac_ct_CC
5950if test -n "$ac_ct_CC"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5952$as_echo "$ac_ct_CC" >&6; }
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958
5959 test -n "$ac_ct_CC" && break
5960done
5961
5962 if test "x$ac_ct_CC" = x; then
5963 CC=""
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966yes:)
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971 CC=$ac_ct_CC
5972 fi
5973fi
5974
5975fi
5976
5977
5978test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005980as_fn_error $? "no acceptable C compiler found in \$PATH
5981See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005982
5983# Provide some information about the compiler.
5984$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5985set X $ac_compile
5986ac_compiler=$2
5987for ac_option in --version -v -V -qversion; do
5988 { { ac_try="$ac_compiler $ac_option >&5"
5989case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992esac
5993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5994$as_echo "$ac_try_echo"; } >&5
5995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5996 ac_status=$?
5997 if test -s conftest.err; then
5998 sed '10a\
5999... rest of stderr output deleted ...
6000 10q' conftest.err >conftest.er1
6001 cat conftest.er1 >&5
6002 fi
6003 rm -f conftest.er1 conftest.err
6004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005 test $ac_status = 0; }
6006done
6007
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6009$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006010if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006011 $as_echo_n "(cached) " >&6
6012else
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h. */
6015
6016int
6017main ()
6018{
6019#ifndef __GNUC__
6020 choke me
6021#endif
6022
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_compiler_gnu=yes
6029else
6030 ac_compiler_gnu=no
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033ac_cv_c_compiler_gnu=$ac_compiler_gnu
6034
6035fi
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6037$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6038if test $ac_compiler_gnu = yes; then
6039 GCC=yes
6040else
6041 GCC=
6042fi
6043ac_test_CFLAGS=${CFLAGS+set}
6044ac_save_CFLAGS=$CFLAGS
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6046$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006047if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006048 $as_echo_n "(cached) " >&6
6049else
6050 ac_save_c_werror_flag=$ac_c_werror_flag
6051 ac_c_werror_flag=yes
6052 ac_cv_prog_cc_g=no
6053 CFLAGS="-g"
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h. */
6056
6057int
6058main ()
6059{
6060
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066 ac_cv_prog_cc_g=yes
6067else
6068 CFLAGS=""
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h. */
6071
6072int
6073main ()
6074{
6075
6076 ;
6077 return 0;
6078}
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"; then :
6081
6082else
6083 ac_c_werror_flag=$ac_save_c_werror_flag
6084 CFLAGS="-g"
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h. */
6087
6088int
6089main ()
6090{
6091
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096if ac_fn_c_try_compile "$LINENO"; then :
6097 ac_cv_prog_cc_g=yes
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 ac_c_werror_flag=$ac_save_c_werror_flag
6105fi
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6107$as_echo "$ac_cv_prog_cc_g" >&6; }
6108if test "$ac_test_CFLAGS" = set; then
6109 CFLAGS=$ac_save_CFLAGS
6110elif test $ac_cv_prog_cc_g = yes; then
6111 if test "$GCC" = yes; then
6112 CFLAGS="-g -O2"
6113 else
6114 CFLAGS="-g"
6115 fi
6116else
6117 if test "$GCC" = yes; then
6118 CFLAGS="-O2"
6119 else
6120 CFLAGS=
6121 fi
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6124$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006125if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006126 $as_echo_n "(cached) " >&6
6127else
6128 ac_cv_prog_cc_c89=no
6129ac_save_CC=$CC
6130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h. */
6132#include <stdarg.h>
6133#include <stdio.h>
6134#include <sys/types.h>
6135#include <sys/stat.h>
6136/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6137struct buf { int x; };
6138FILE * (*rcsopen) (struct buf *, struct stat *, int);
6139static char *e (p, i)
6140 char **p;
6141 int i;
6142{
6143 return p[i];
6144}
6145static char *f (char * (*g) (char **, int), char **p, ...)
6146{
6147 char *s;
6148 va_list v;
6149 va_start (v,p);
6150 s = g (p, va_arg (v,int));
6151 va_end (v);
6152 return s;
6153}
6154
6155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6156 function prototypes and stuff, but not '\xHH' hex character constants.
6157 These don't provoke an error unfortunately, instead are silently treated
6158 as 'x'. The following induces an error, until -std is added to get
6159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6160 array size at least. It's necessary to write '\x00'==0 to get something
6161 that's true only with -std. */
6162int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6163
6164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6165 inside strings and character constants. */
6166#define FOO(x) 'x'
6167int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6168
6169int test (int i, double x);
6170struct s1 {int (*f) (int a);};
6171struct s2 {int (*f) (double a);};
6172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6173int argc;
6174char **argv;
6175int
6176main ()
6177{
6178return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6179 ;
6180 return 0;
6181}
6182_ACEOF
6183for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6185do
6186 CC="$ac_save_CC $ac_arg"
6187 if ac_fn_c_try_compile "$LINENO"; then :
6188 ac_cv_prog_cc_c89=$ac_arg
6189fi
6190rm -f core conftest.err conftest.$ac_objext
6191 test "x$ac_cv_prog_cc_c89" != "xno" && break
6192done
6193rm -f conftest.$ac_ext
6194CC=$ac_save_CC
6195
6196fi
6197# AC_CACHE_VAL
6198case "x$ac_cv_prog_cc_c89" in
6199 x)
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6201$as_echo "none needed" >&6; } ;;
6202 xno)
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6204$as_echo "unsupported" >&6; } ;;
6205 *)
6206 CC="$CC $ac_cv_prog_cc_c89"
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6208$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6209esac
6210if test "x$ac_cv_prog_cc_c89" != xno; then :
6211
6212fi
6213
6214ac_ext=c
6215ac_cpp='$CPP $CPPFLAGS'
6216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219
cristy73bd4a52010-10-05 11:24:23 +00006220depcc="$CC" am_compiler_list=
6221
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6223$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006224if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006225 $as_echo_n "(cached) " >&6
6226else
6227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6228 # We make a subdir and do the tests there. Otherwise we can end up
6229 # making bogus files that we don't know about and never remove. For
6230 # instance it was reported that on HP-UX the gcc test will end up
6231 # making a dummy file named `D' -- because `-MD' means `put the output
6232 # in D'.
6233 mkdir conftest.dir
6234 # Copy depcomp to subdir because otherwise we won't find it if we're
6235 # using a relative directory.
6236 cp "$am_depcomp" conftest.dir
6237 cd conftest.dir
6238 # We will build objects and dependencies in a subdirectory because
6239 # it helps to detect inapplicable dependency modes. For instance
6240 # both Tru64's cc and ICC support -MD to output dependencies as a
6241 # side effect of compilation, but ICC will put the dependencies in
6242 # the current directory while Tru64 will put them in the object
6243 # directory.
6244 mkdir sub
6245
6246 am_cv_CC_dependencies_compiler_type=none
6247 if test "$am_compiler_list" = ""; then
6248 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6249 fi
6250 am__universal=false
6251 case " $depcc " in #(
6252 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6253 esac
6254
6255 for depmode in $am_compiler_list; do
6256 # Setup a source with many dependencies, because some compilers
6257 # like to wrap large dependency lists on column 80 (with \), and
6258 # we should not choose a depcomp mode which is confused by this.
6259 #
6260 # We need to recreate these files for each test, as the compiler may
6261 # overwrite some of them when testing with obscure command lines.
6262 # This happens at least with the AIX C compiler.
6263 : > sub/conftest.c
6264 for i in 1 2 3 4 5 6; do
6265 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6266 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6267 # Solaris 8's {/usr,}/bin/sh.
6268 touch sub/conftst$i.h
6269 done
6270 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6271
6272 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6273 # mode. It turns out that the SunPro C++ compiler does not properly
6274 # handle `-M -o', and we need to detect this. Also, some Intel
6275 # versions had trouble with output in subdirs
6276 am__obj=sub/conftest.${OBJEXT-o}
6277 am__minus_obj="-o $am__obj"
6278 case $depmode in
6279 gcc)
6280 # This depmode causes a compiler race in universal mode.
6281 test "$am__universal" = false || continue
6282 ;;
6283 nosideeffect)
6284 # after this tag, mechanisms are not by side-effect, so they'll
6285 # only be used when explicitly requested
6286 if test "x$enable_dependency_tracking" = xyes; then
6287 continue
6288 else
6289 break
6290 fi
6291 ;;
6292 msvisualcpp | msvcmsys)
6293 # This compiler won't grok `-c -o', but also, the minuso test has
6294 # not run yet. These depmodes are late enough in the game, and
6295 # so weak that their functioning should not be impacted.
6296 am__obj=conftest.${OBJEXT-o}
6297 am__minus_obj=
6298 ;;
6299 none) break ;;
6300 esac
6301 if depmode=$depmode \
6302 source=sub/conftest.c object=$am__obj \
6303 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6304 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6305 >/dev/null 2>conftest.err &&
6306 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6307 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6308 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6309 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6310 # icc doesn't choke on unknown options, it will just issue warnings
6311 # or remarks (even with -Werror). So we grep stderr for any message
6312 # that says an option was ignored or not supported.
6313 # When given -MP, icc 7.0 and 7.1 complain thusly:
6314 # icc: Command line warning: ignoring option '-M'; no argument required
6315 # The diagnosis changed in icc 8.0:
6316 # icc: Command line remark: option '-MP' not supported
6317 if (grep 'ignoring option' conftest.err ||
6318 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6319 am_cv_CC_dependencies_compiler_type=$depmode
6320 break
6321 fi
6322 fi
6323 done
6324
6325 cd ..
6326 rm -rf conftest.dir
6327else
6328 am_cv_CC_dependencies_compiler_type=none
6329fi
6330
6331fi
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6333$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6334CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6335
6336 if
6337 test "x$enable_dependency_tracking" != xno \
6338 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6339 am__fastdepCC_TRUE=
6340 am__fastdepCC_FALSE='#'
6341else
6342 am__fastdepCC_TRUE='#'
6343 am__fastdepCC_FALSE=
6344fi
6345
6346
cristy95646052009-11-28 23:05:30 +00006347ac_ext=cpp
6348ac_cpp='$CXXCPP $CPPFLAGS'
6349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6352if test -z "$CXX"; then
6353 if test -n "$CCC"; then
6354 CXX=$CCC
6355 else
6356 if test -n "$ac_tool_prefix"; then
6357 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6358 do
6359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006363if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006364 $as_echo_n "(cached) " >&6
6365else
6366 if test -n "$CXX"; then
6367 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380done
6381 done
6382IFS=$as_save_IFS
6383
6384fi
6385fi
6386CXX=$ac_cv_prog_CXX
6387if test -n "$CXX"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6389$as_echo "$CXX" >&6; }
6390else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392$as_echo "no" >&6; }
6393fi
6394
6395
6396 test -n "$CXX" && break
6397 done
6398fi
6399if test -z "$CXX"; then
6400 ac_ct_CXX=$CXX
6401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6402do
6403 # Extract the first word of "$ac_prog", so it can be a program name with args.
6404set dummy $ac_prog; ac_word=$2
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006407if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006408 $as_echo_n "(cached) " >&6
6409else
6410 if test -n "$ac_ct_CXX"; then
6411 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6412else
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_ac_ct_CXX="$ac_prog"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6423 fi
6424done
6425 done
6426IFS=$as_save_IFS
6427
6428fi
6429fi
6430ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6431if test -n "$ac_ct_CXX"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6433$as_echo "$ac_ct_CXX" >&6; }
6434else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
6437fi
6438
6439
6440 test -n "$ac_ct_CXX" && break
6441done
6442
6443 if test "x$ac_ct_CXX" = x; then
6444 CXX="g++"
6445 else
6446 case $cross_compiling:$ac_tool_warned in
6447yes:)
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450ac_tool_warned=yes ;;
6451esac
6452 CXX=$ac_ct_CXX
6453 fi
6454fi
6455
6456 fi
6457fi
6458# Provide some information about the compiler.
6459$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6460set X $ac_compile
6461ac_compiler=$2
6462for ac_option in --version -v -V -qversion; do
6463 { { ac_try="$ac_compiler $ac_option >&5"
6464case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
6468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6469$as_echo "$ac_try_echo"; } >&5
6470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6471 ac_status=$?
6472 if test -s conftest.err; then
6473 sed '10a\
6474... rest of stderr output deleted ...
6475 10q' conftest.err >conftest.er1
6476 cat conftest.er1 >&5
6477 fi
6478 rm -f conftest.er1 conftest.err
6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; }
6481done
6482
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6484$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006485if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006486 $as_echo_n "(cached) " >&6
6487else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489/* end confdefs.h. */
6490
6491int
6492main ()
6493{
6494#ifndef __GNUC__
6495 choke me
6496#endif
6497
6498 ;
6499 return 0;
6500}
6501_ACEOF
6502if ac_fn_cxx_try_compile "$LINENO"; then :
6503 ac_compiler_gnu=yes
6504else
6505 ac_compiler_gnu=no
6506fi
6507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6509
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6512$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6513if test $ac_compiler_gnu = yes; then
6514 GXX=yes
6515else
6516 GXX=
6517fi
6518ac_test_CXXFLAGS=${CXXFLAGS+set}
6519ac_save_CXXFLAGS=$CXXFLAGS
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6521$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006522if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006523 $as_echo_n "(cached) " >&6
6524else
6525 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6526 ac_cxx_werror_flag=yes
6527 ac_cv_prog_cxx_g=no
6528 CXXFLAGS="-g"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h. */
6531
6532int
6533main ()
6534{
6535
6536 ;
6537 return 0;
6538}
6539_ACEOF
6540if ac_fn_cxx_try_compile "$LINENO"; then :
6541 ac_cv_prog_cxx_g=yes
6542else
6543 CXXFLAGS=""
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h. */
6546
6547int
6548main ()
6549{
6550
6551 ;
6552 return 0;
6553}
6554_ACEOF
6555if ac_fn_cxx_try_compile "$LINENO"; then :
6556
6557else
6558 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6559 CXXFLAGS="-g"
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h. */
6562
6563int
6564main ()
6565{
6566
6567 ;
6568 return 0;
6569}
6570_ACEOF
6571if ac_fn_cxx_try_compile "$LINENO"; then :
6572 ac_cv_prog_cxx_g=yes
6573fi
6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575fi
6576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6580fi
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6582$as_echo "$ac_cv_prog_cxx_g" >&6; }
6583if test "$ac_test_CXXFLAGS" = set; then
6584 CXXFLAGS=$ac_save_CXXFLAGS
6585elif test $ac_cv_prog_cxx_g = yes; then
6586 if test "$GXX" = yes; then
6587 CXXFLAGS="-g -O2"
6588 else
6589 CXXFLAGS="-g"
6590 fi
6591else
6592 if test "$GXX" = yes; then
6593 CXXFLAGS="-O2"
6594 else
6595 CXXFLAGS=
6596 fi
6597fi
6598ac_ext=c
6599ac_cpp='$CPP $CPPFLAGS'
6600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603
cristy73bd4a52010-10-05 11:24:23 +00006604depcc="$CXX" am_compiler_list=
6605
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6607$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006608if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006609 $as_echo_n "(cached) " >&6
6610else
6611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6612 # We make a subdir and do the tests there. Otherwise we can end up
6613 # making bogus files that we don't know about and never remove. For
6614 # instance it was reported that on HP-UX the gcc test will end up
6615 # making a dummy file named `D' -- because `-MD' means `put the output
6616 # in D'.
6617 mkdir conftest.dir
6618 # Copy depcomp to subdir because otherwise we won't find it if we're
6619 # using a relative directory.
6620 cp "$am_depcomp" conftest.dir
6621 cd conftest.dir
6622 # We will build objects and dependencies in a subdirectory because
6623 # it helps to detect inapplicable dependency modes. For instance
6624 # both Tru64's cc and ICC support -MD to output dependencies as a
6625 # side effect of compilation, but ICC will put the dependencies in
6626 # the current directory while Tru64 will put them in the object
6627 # directory.
6628 mkdir sub
6629
6630 am_cv_CXX_dependencies_compiler_type=none
6631 if test "$am_compiler_list" = ""; then
6632 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6633 fi
6634 am__universal=false
6635 case " $depcc " in #(
6636 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6637 esac
6638
6639 for depmode in $am_compiler_list; do
6640 # Setup a source with many dependencies, because some compilers
6641 # like to wrap large dependency lists on column 80 (with \), and
6642 # we should not choose a depcomp mode which is confused by this.
6643 #
6644 # We need to recreate these files for each test, as the compiler may
6645 # overwrite some of them when testing with obscure command lines.
6646 # This happens at least with the AIX C compiler.
6647 : > sub/conftest.c
6648 for i in 1 2 3 4 5 6; do
6649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6651 # Solaris 8's {/usr,}/bin/sh.
6652 touch sub/conftst$i.h
6653 done
6654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6655
6656 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6657 # mode. It turns out that the SunPro C++ compiler does not properly
6658 # handle `-M -o', and we need to detect this. Also, some Intel
6659 # versions had trouble with output in subdirs
6660 am__obj=sub/conftest.${OBJEXT-o}
6661 am__minus_obj="-o $am__obj"
6662 case $depmode in
6663 gcc)
6664 # This depmode causes a compiler race in universal mode.
6665 test "$am__universal" = false || continue
6666 ;;
6667 nosideeffect)
6668 # after this tag, mechanisms are not by side-effect, so they'll
6669 # only be used when explicitly requested
6670 if test "x$enable_dependency_tracking" = xyes; then
6671 continue
6672 else
6673 break
6674 fi
6675 ;;
6676 msvisualcpp | msvcmsys)
6677 # This compiler won't grok `-c -o', but also, the minuso test has
6678 # not run yet. These depmodes are late enough in the game, and
6679 # so weak that their functioning should not be impacted.
6680 am__obj=conftest.${OBJEXT-o}
6681 am__minus_obj=
6682 ;;
6683 none) break ;;
6684 esac
6685 if depmode=$depmode \
6686 source=sub/conftest.c object=$am__obj \
6687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6688 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6689 >/dev/null 2>conftest.err &&
6690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6692 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6694 # icc doesn't choke on unknown options, it will just issue warnings
6695 # or remarks (even with -Werror). So we grep stderr for any message
6696 # that says an option was ignored or not supported.
6697 # When given -MP, icc 7.0 and 7.1 complain thusly:
6698 # icc: Command line warning: ignoring option '-M'; no argument required
6699 # The diagnosis changed in icc 8.0:
6700 # icc: Command line remark: option '-MP' not supported
6701 if (grep 'ignoring option' conftest.err ||
6702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6703 am_cv_CXX_dependencies_compiler_type=$depmode
6704 break
6705 fi
6706 fi
6707 done
6708
6709 cd ..
6710 rm -rf conftest.dir
6711else
6712 am_cv_CXX_dependencies_compiler_type=none
6713fi
6714
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6717$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6718CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6719
6720 if
6721 test "x$enable_dependency_tracking" != xno \
6722 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6723 am__fastdepCXX_TRUE=
6724 am__fastdepCXX_FALSE='#'
6725else
6726 am__fastdepCXX_TRUE='#'
6727 am__fastdepCXX_FALSE=
6728fi
6729
6730
cristy8b350f62009-11-15 23:12:43 +00006731 case $ac_cv_prog_cc_stdc in #(
6732 no) :
6733 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6734 *) :
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006736$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006737if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006738 $as_echo_n "(cached) " >&6
6739else
6740 ac_cv_prog_cc_c99=no
6741ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006743/* end confdefs.h. */
6744#include <stdarg.h>
6745#include <stdbool.h>
6746#include <stdlib.h>
6747#include <wchar.h>
6748#include <stdio.h>
6749
6750// Check varargs macros. These examples are taken from C99 6.10.3.5.
6751#define debug(...) fprintf (stderr, __VA_ARGS__)
6752#define showlist(...) puts (#__VA_ARGS__)
6753#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6754static void
6755test_varargs_macros (void)
6756{
6757 int x = 1234;
6758 int y = 5678;
6759 debug ("Flag");
6760 debug ("X = %d\n", x);
6761 showlist (The first, second, and third items.);
6762 report (x>y, "x is %d but y is %d", x, y);
6763}
6764
6765// Check long long types.
6766#define BIG64 18446744073709551615ull
6767#define BIG32 4294967295ul
6768#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6769#if !BIG_OK
6770 your preprocessor is broken;
6771#endif
6772#if BIG_OK
6773#else
6774 your preprocessor is broken;
6775#endif
6776static long long int bignum = -9223372036854775807LL;
6777static unsigned long long int ubignum = BIG64;
6778
6779struct incomplete_array
6780{
6781 int datasize;
6782 double data[];
6783};
6784
6785struct named_init {
6786 int number;
6787 const wchar_t *name;
6788 double average;
6789};
6790
6791typedef const char *ccp;
6792
6793static inline int
6794test_restrict (ccp restrict text)
6795{
6796 // See if C++-style comments work.
6797 // Iterate through items via the restricted pointer.
6798 // Also check for declarations in for loops.
6799 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6800 continue;
6801 return 0;
6802}
6803
6804// Check varargs and va_copy.
6805static void
6806test_varargs (const char *format, ...)
6807{
6808 va_list args;
6809 va_start (args, format);
6810 va_list args_copy;
6811 va_copy (args_copy, args);
6812
6813 const char *str;
6814 int number;
6815 float fnumber;
6816
6817 while (*format)
6818 {
6819 switch (*format++)
6820 {
6821 case 's': // string
6822 str = va_arg (args_copy, const char *);
6823 break;
6824 case 'd': // int
6825 number = va_arg (args_copy, int);
6826 break;
6827 case 'f': // float
6828 fnumber = va_arg (args_copy, double);
6829 break;
6830 default:
6831 break;
6832 }
6833 }
6834 va_end (args_copy);
6835 va_end (args);
6836}
6837
6838int
6839main ()
6840{
6841
6842 // Check bool.
6843 _Bool success = false;
6844
6845 // Check restrict.
6846 if (test_restrict ("String literal") == 0)
6847 success = true;
6848 char *restrict newvar = "Another string";
6849
6850 // Check varargs.
6851 test_varargs ("s, d' f .", "string", 65, 34.234);
6852 test_varargs_macros ();
6853
6854 // Check flexible array members.
6855 struct incomplete_array *ia =
6856 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6857 ia->datasize = 10;
6858 for (int i = 0; i < ia->datasize; ++i)
6859 ia->data[i] = i * 1.234;
6860
6861 // Check named initializers.
6862 struct named_init ni = {
6863 .number = 34,
6864 .name = L"Test wide string",
6865 .average = 543.34343,
6866 };
6867
6868 ni.number = 58;
6869
6870 int dynamic_array[ni.number];
6871 dynamic_array[ni.number - 1] = 543;
6872
6873 // work around unused variable warnings
6874 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6875 || dynamic_array[ni.number - 1] != 543);
6876
6877 ;
6878 return 0;
6879}
6880_ACEOF
6881for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6882do
6883 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006884 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006885 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006886fi
cristy3ed852e2009-09-05 21:47:34 +00006887rm -f core conftest.err conftest.$ac_objext
6888 test "x$ac_cv_prog_cc_c99" != "xno" && break
6889done
6890rm -f conftest.$ac_ext
6891CC=$ac_save_CC
6892
6893fi
6894# AC_CACHE_VAL
6895case "x$ac_cv_prog_cc_c99" in
6896 x)
cristy8b350f62009-11-15 23:12:43 +00006897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006898$as_echo "none needed" >&6; } ;;
6899 xno)
cristy8b350f62009-11-15 23:12:43 +00006900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006901$as_echo "unsupported" >&6; } ;;
6902 *)
6903 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006905$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6906esac
cristy8b350f62009-11-15 23:12:43 +00006907if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006908 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6909else
cristy8b350f62009-11-15 23:12:43 +00006910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006911$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006912if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006913 $as_echo_n "(cached) " >&6
6914else
6915 ac_cv_prog_cc_c89=no
6916ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006918/* end confdefs.h. */
6919#include <stdarg.h>
6920#include <stdio.h>
6921#include <sys/types.h>
6922#include <sys/stat.h>
6923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6924struct buf { int x; };
6925FILE * (*rcsopen) (struct buf *, struct stat *, int);
6926static char *e (p, i)
6927 char **p;
6928 int i;
6929{
6930 return p[i];
6931}
6932static char *f (char * (*g) (char **, int), char **p, ...)
6933{
6934 char *s;
6935 va_list v;
6936 va_start (v,p);
6937 s = g (p, va_arg (v,int));
6938 va_end (v);
6939 return s;
6940}
6941
6942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6943 function prototypes and stuff, but not '\xHH' hex character constants.
6944 These don't provoke an error unfortunately, instead are silently treated
6945 as 'x'. The following induces an error, until -std is added to get
6946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6947 array size at least. It's necessary to write '\x00'==0 to get something
6948 that's true only with -std. */
6949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6950
6951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6952 inside strings and character constants. */
6953#define FOO(x) 'x'
6954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6955
6956int test (int i, double x);
6957struct s1 {int (*f) (int a);};
6958struct s2 {int (*f) (double a);};
6959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6960int argc;
6961char **argv;
6962int
6963main ()
6964{
6965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6966 ;
6967 return 0;
6968}
6969_ACEOF
6970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6972do
6973 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006974 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006975 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006976fi
cristy3ed852e2009-09-05 21:47:34 +00006977rm -f core conftest.err conftest.$ac_objext
6978 test "x$ac_cv_prog_cc_c89" != "xno" && break
6979done
6980rm -f conftest.$ac_ext
6981CC=$ac_save_CC
6982
6983fi
6984# AC_CACHE_VAL
6985case "x$ac_cv_prog_cc_c89" in
6986 x)
cristy8b350f62009-11-15 23:12:43 +00006987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006988$as_echo "none needed" >&6; } ;;
6989 xno)
cristy8b350f62009-11-15 23:12:43 +00006990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006991$as_echo "unsupported" >&6; } ;;
6992 *)
6993 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6996esac
cristy8b350f62009-11-15 23:12:43 +00006997if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006998 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6999else
7000 ac_cv_prog_cc_stdc=no
7001fi
7002
cristy3ed852e2009-09-05 21:47:34 +00007003fi
cristy3ed852e2009-09-05 21:47:34 +00007004 ;;
7005esac
cristy8b350f62009-11-15 23:12:43 +00007006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007008 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007009 $as_echo_n "(cached) " >&6
7010fi
7011
cristy8b350f62009-11-15 23:12:43 +00007012 case $ac_cv_prog_cc_stdc in #(
7013 no) :
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7015$as_echo "unsupported" >&6; } ;; #(
7016 '') :
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7018$as_echo "none needed" >&6; } ;; #(
7019 *) :
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007021$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7022esac
7023
cristy3ed852e2009-09-05 21:47:34 +00007024ac_ext=c
7025ac_cpp='$CPP $CPPFLAGS'
7026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007030$as_echo_n "checking how to run the C preprocessor... " >&6; }
7031# On Suns, sometimes $CPP names a directory.
7032if test -n "$CPP" && test -d "$CPP"; then
7033 CPP=
7034fi
7035if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007036 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007037 $as_echo_n "(cached) " >&6
7038else
7039 # Double quotes because CPP needs to be expanded
7040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7041 do
7042 ac_preproc_ok=false
7043for ac_c_preproc_warn_flag in '' yes
7044do
7045 # Use a header file that comes with gcc, so configuring glibc
7046 # with a fresh cross-compiler works.
7047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048 # <limits.h> exists even on freestanding compilers.
7049 # On the NeXT, cc -E runs the code through the compiler's parser,
7050 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007052/* end confdefs.h. */
7053#ifdef __STDC__
7054# include <limits.h>
7055#else
7056# include <assert.h>
7057#endif
7058 Syntax error
7059_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007060if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007061
cristy8b350f62009-11-15 23:12:43 +00007062else
cristy3ed852e2009-09-05 21:47:34 +00007063 # Broken: fails on valid input.
7064continue
7065fi
cristyda16f162011-02-19 23:52:17 +00007066rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007067
7068 # OK, works on sane cases. Now check whether nonexistent headers
7069 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007071/* end confdefs.h. */
7072#include <ac_nonexistent.h>
7073_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007074if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007075 # Broken: success on invalid input.
7076continue
7077else
cristy3ed852e2009-09-05 21:47:34 +00007078 # Passes both tests.
7079ac_preproc_ok=:
7080break
7081fi
cristyda16f162011-02-19 23:52:17 +00007082rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007083
7084done
7085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007086rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007087if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007088 break
7089fi
7090
7091 done
7092 ac_cv_prog_CPP=$CPP
7093
7094fi
7095 CPP=$ac_cv_prog_CPP
7096else
7097 ac_cv_prog_CPP=$CPP
7098fi
cristy8b350f62009-11-15 23:12:43 +00007099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo "$CPP" >&6; }
7101ac_preproc_ok=false
7102for ac_c_preproc_warn_flag in '' yes
7103do
7104 # Use a header file that comes with gcc, so configuring glibc
7105 # with a fresh cross-compiler works.
7106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107 # <limits.h> exists even on freestanding compilers.
7108 # On the NeXT, cc -E runs the code through the compiler's parser,
7109 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007111/* end confdefs.h. */
7112#ifdef __STDC__
7113# include <limits.h>
7114#else
7115# include <assert.h>
7116#endif
7117 Syntax error
7118_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007119if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007120
cristy8b350f62009-11-15 23:12:43 +00007121else
cristy3ed852e2009-09-05 21:47:34 +00007122 # Broken: fails on valid input.
7123continue
7124fi
cristyda16f162011-02-19 23:52:17 +00007125rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007126
7127 # OK, works on sane cases. Now check whether nonexistent headers
7128 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007130/* end confdefs.h. */
7131#include <ac_nonexistent.h>
7132_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007133if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007134 # Broken: success on invalid input.
7135continue
7136else
cristy3ed852e2009-09-05 21:47:34 +00007137 # Passes both tests.
7138ac_preproc_ok=:
7139break
7140fi
cristyda16f162011-02-19 23:52:17 +00007141rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007142
7143done
7144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007145rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007146if $ac_preproc_ok; then :
7147
cristy3ed852e2009-09-05 21:47:34 +00007148else
cristy8b350f62009-11-15 23:12:43 +00007149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007151as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7152See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007153fi
7154
7155ac_ext=c
7156ac_cpp='$CPP $CPPFLAGS'
7157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160
cristy73bd4a52010-10-05 11:24:23 +00007161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7162$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007163if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007164 $as_echo_n "(cached) " >&6
7165else
7166 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7167 for ac_i in 1 2 3 4 5 6 7; do
7168 ac_script="$ac_script$as_nl$ac_script"
7169 done
7170 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7171 { ac_script=; unset ac_script;}
7172 if test -z "$SED"; then
7173 ac_path_SED_found=false
7174 # Loop through the user's path and test for each of PROGNAME-LIST
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_prog in sed gsed; do
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7183 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7184# Check for GNU ac_path_SED and select it if it is found.
7185 # Check for GNU $ac_path_SED
7186case `"$ac_path_SED" --version 2>&1` in
7187*GNU*)
7188 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7189*)
7190 ac_count=0
7191 $as_echo_n 0123456789 >"conftest.in"
7192 while :
7193 do
7194 cat "conftest.in" "conftest.in" >"conftest.tmp"
7195 mv "conftest.tmp" "conftest.in"
7196 cp "conftest.in" "conftest.nl"
7197 $as_echo '' >> "conftest.nl"
7198 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7200 as_fn_arith $ac_count + 1 && ac_count=$as_val
7201 if test $ac_count -gt ${ac_path_SED_max-0}; then
7202 # Best one so far, save it but keep looking for a better one
7203 ac_cv_path_SED="$ac_path_SED"
7204 ac_path_SED_max=$ac_count
7205 fi
7206 # 10*(2^10) chars as input seems more than enough
7207 test $ac_count -gt 10 && break
7208 done
7209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7210esac
7211
7212 $ac_path_SED_found && break 3
7213 done
7214 done
7215 done
7216IFS=$as_save_IFS
7217 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007218 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007219 fi
7220else
7221 ac_cv_path_SED=$SED
7222fi
7223
7224fi
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7226$as_echo "$ac_cv_path_SED" >&6; }
7227 SED="$ac_cv_path_SED"
7228 rm -f conftest.sed
7229
7230test -z "$SED" && SED=sed
7231Xsed="$SED -e 1s/^X//"
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7244$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007245if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007246 $as_echo_n "(cached) " >&6
7247else
7248 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7249 then ac_cv_path_FGREP="$GREP -F"
7250 else
7251 if test -z "$FGREP"; then
7252 ac_path_FGREP_found=false
7253 # Loop through the user's path and test for each of PROGNAME-LIST
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_prog in fgrep; do
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7262 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7263# Check for GNU ac_path_FGREP and select it if it is found.
7264 # Check for GNU $ac_path_FGREP
7265case `"$ac_path_FGREP" --version 2>&1` in
7266*GNU*)
7267 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7268*)
7269 ac_count=0
7270 $as_echo_n 0123456789 >"conftest.in"
7271 while :
7272 do
7273 cat "conftest.in" "conftest.in" >"conftest.tmp"
7274 mv "conftest.tmp" "conftest.in"
7275 cp "conftest.in" "conftest.nl"
7276 $as_echo 'FGREP' >> "conftest.nl"
7277 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7279 as_fn_arith $ac_count + 1 && ac_count=$as_val
7280 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7281 # Best one so far, save it but keep looking for a better one
7282 ac_cv_path_FGREP="$ac_path_FGREP"
7283 ac_path_FGREP_max=$ac_count
7284 fi
7285 # 10*(2^10) chars as input seems more than enough
7286 test $ac_count -gt 10 && break
7287 done
7288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7289esac
7290
7291 $ac_path_FGREP_found && break 3
7292 done
7293 done
7294 done
7295IFS=$as_save_IFS
7296 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007297 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007298 fi
7299else
7300 ac_cv_path_FGREP=$FGREP
7301fi
7302
7303 fi
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7306$as_echo "$ac_cv_path_FGREP" >&6; }
7307 FGREP="$ac_cv_path_FGREP"
7308
7309
7310test -z "$GREP" && GREP=grep
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
cristy0c60a692010-11-04 01:09:47 +00007328ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7329ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7330ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7331
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7333$as_echo_n "checking how to print strings... " >&6; }
7334# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007335if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007336 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7337 ECHO='print -r --'
7338elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7339 ECHO='printf %s\n'
7340else
7341 # Use this function as a fallback that always works.
7342 func_fallback_echo ()
7343 {
7344 eval 'cat <<_LTECHO_EOF
7345$1
7346_LTECHO_EOF'
7347 }
7348 ECHO='func_fallback_echo'
7349fi
7350
7351# func_echo_all arg...
7352# Invoke $ECHO with all args, space-separated.
7353func_echo_all ()
7354{
7355 $ECHO ""
7356}
7357
7358case "$ECHO" in
7359 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7360$as_echo "printf" >&6; } ;;
7361 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7362$as_echo "print -r" >&6; } ;;
7363 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7364$as_echo "cat" >&6; } ;;
7365esac
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
cristy73bd4a52010-10-05 11:24:23 +00007380
7381
7382# Check whether --with-gnu-ld was given.
7383if test "${with_gnu_ld+set}" = set; then :
7384 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7385else
7386 with_gnu_ld=no
7387fi
7388
7389ac_prog=ld
7390if test "$GCC" = yes; then
7391 # Check if gcc -print-prog-name=ld gives a path.
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7393$as_echo_n "checking for ld used by $CC... " >&6; }
7394 case $host in
7395 *-*-mingw*)
7396 # gcc leaves a trailing carriage return which upsets mingw
7397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7398 *)
7399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7400 esac
7401 case $ac_prog in
7402 # Accept absolute paths.
7403 [\\/]* | ?:[\\/]*)
7404 re_direlt='/[^/][^/]*/\.\./'
7405 # Canonicalize the pathname of ld
7406 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7407 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7408 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7409 done
7410 test -z "$LD" && LD="$ac_prog"
7411 ;;
7412 "")
7413 # If it fails, then pretend we aren't using GCC.
7414 ac_prog=ld
7415 ;;
7416 *)
7417 # If it is relative, then search for the first ld in PATH.
7418 with_gnu_ld=unknown
7419 ;;
7420 esac
7421elif test "$with_gnu_ld" = yes; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7423$as_echo_n "checking for GNU ld... " >&6; }
7424else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7426$as_echo_n "checking for non-GNU ld... " >&6; }
7427fi
cristyda16f162011-02-19 23:52:17 +00007428if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007429 $as_echo_n "(cached) " >&6
7430else
7431 if test -z "$LD"; then
7432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7433 for ac_dir in $PATH; do
7434 IFS="$lt_save_ifs"
7435 test -z "$ac_dir" && ac_dir=.
7436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7437 lt_cv_path_LD="$ac_dir/$ac_prog"
7438 # Check to see if the program is GNU ld. I'd rather use --version,
7439 # but apparently some variants of GNU ld only accept -v.
7440 # Break only if it was the GNU/non-GNU ld that we prefer.
7441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7442 *GNU* | *'with BFD'*)
7443 test "$with_gnu_ld" != no && break
7444 ;;
7445 *)
7446 test "$with_gnu_ld" != yes && break
7447 ;;
7448 esac
7449 fi
7450 done
7451 IFS="$lt_save_ifs"
7452else
7453 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7454fi
7455fi
7456
7457LD="$lt_cv_path_LD"
7458if test -n "$LD"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7460$as_echo "$LD" >&6; }
7461else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
cristy98dddb52010-11-04 00:30:15 +00007465test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7467$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007468if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007469 $as_echo_n "(cached) " >&6
7470else
7471 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7472case `$LD -v 2>&1 </dev/null` in
7473*GNU* | *'with BFD'*)
7474 lt_cv_prog_gnu_ld=yes
7475 ;;
7476*)
7477 lt_cv_prog_gnu_ld=no
7478 ;;
7479esac
7480fi
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7482$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7483with_gnu_ld=$lt_cv_prog_gnu_ld
7484
7485
7486
7487
7488
7489
7490
7491
7492
cristy3ed852e2009-09-05 21:47:34 +00007493
cristy837d6dc2010-02-27 01:16:57 +00007494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7495$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007496if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007497 $as_echo_n "(cached) " >&6
7498else
7499 ac_cv_prog_cc_c99=no
7500ac_save_CC=$CC
7501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h. */
7503#include <stdarg.h>
7504#include <stdbool.h>
7505#include <stdlib.h>
7506#include <wchar.h>
7507#include <stdio.h>
7508
7509// Check varargs macros. These examples are taken from C99 6.10.3.5.
7510#define debug(...) fprintf (stderr, __VA_ARGS__)
7511#define showlist(...) puts (#__VA_ARGS__)
7512#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7513static void
7514test_varargs_macros (void)
7515{
7516 int x = 1234;
7517 int y = 5678;
7518 debug ("Flag");
7519 debug ("X = %d\n", x);
7520 showlist (The first, second, and third items.);
7521 report (x>y, "x is %d but y is %d", x, y);
7522}
7523
7524// Check long long types.
7525#define BIG64 18446744073709551615ull
7526#define BIG32 4294967295ul
7527#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7528#if !BIG_OK
7529 your preprocessor is broken;
7530#endif
7531#if BIG_OK
7532#else
7533 your preprocessor is broken;
7534#endif
7535static long long int bignum = -9223372036854775807LL;
7536static unsigned long long int ubignum = BIG64;
7537
7538struct incomplete_array
7539{
7540 int datasize;
7541 double data[];
7542};
7543
7544struct named_init {
7545 int number;
7546 const wchar_t *name;
7547 double average;
7548};
7549
7550typedef const char *ccp;
7551
7552static inline int
7553test_restrict (ccp restrict text)
7554{
7555 // See if C++-style comments work.
7556 // Iterate through items via the restricted pointer.
7557 // Also check for declarations in for loops.
7558 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7559 continue;
7560 return 0;
7561}
7562
7563// Check varargs and va_copy.
7564static void
7565test_varargs (const char *format, ...)
7566{
7567 va_list args;
7568 va_start (args, format);
7569 va_list args_copy;
7570 va_copy (args_copy, args);
7571
7572 const char *str;
7573 int number;
7574 float fnumber;
7575
7576 while (*format)
7577 {
7578 switch (*format++)
7579 {
7580 case 's': // string
7581 str = va_arg (args_copy, const char *);
7582 break;
7583 case 'd': // int
7584 number = va_arg (args_copy, int);
7585 break;
7586 case 'f': // float
7587 fnumber = va_arg (args_copy, double);
7588 break;
7589 default:
7590 break;
7591 }
7592 }
7593 va_end (args_copy);
7594 va_end (args);
7595}
7596
7597int
7598main ()
7599{
7600
7601 // Check bool.
7602 _Bool success = false;
7603
7604 // Check restrict.
7605 if (test_restrict ("String literal") == 0)
7606 success = true;
7607 char *restrict newvar = "Another string";
7608
7609 // Check varargs.
7610 test_varargs ("s, d' f .", "string", 65, 34.234);
7611 test_varargs_macros ();
7612
7613 // Check flexible array members.
7614 struct incomplete_array *ia =
7615 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7616 ia->datasize = 10;
7617 for (int i = 0; i < ia->datasize; ++i)
7618 ia->data[i] = i * 1.234;
7619
7620 // Check named initializers.
7621 struct named_init ni = {
7622 .number = 34,
7623 .name = L"Test wide string",
7624 .average = 543.34343,
7625 };
7626
7627 ni.number = 58;
7628
7629 int dynamic_array[ni.number];
7630 dynamic_array[ni.number - 1] = 543;
7631
7632 // work around unused variable warnings
7633 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7634 || dynamic_array[ni.number - 1] != 543);
7635
7636 ;
7637 return 0;
7638}
7639_ACEOF
7640for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7641do
7642 CC="$ac_save_CC $ac_arg"
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644 ac_cv_prog_cc_c99=$ac_arg
7645fi
7646rm -f core conftest.err conftest.$ac_objext
7647 test "x$ac_cv_prog_cc_c99" != "xno" && break
7648done
7649rm -f conftest.$ac_ext
7650CC=$ac_save_CC
7651
7652fi
7653# AC_CACHE_VAL
7654case "x$ac_cv_prog_cc_c99" in
7655 x)
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7657$as_echo "none needed" >&6; } ;;
7658 xno)
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7660$as_echo "unsupported" >&6; } ;;
7661 *)
7662 CC="$CC $ac_cv_prog_cc_c99"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7664$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7665esac
7666if test "x$ac_cv_prog_cc_c99" != xno; then :
7667
7668fi
7669
7670
cristy73bd4a52010-10-05 11:24:23 +00007671if test "x$CC" != xcc; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7673$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7674else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7676$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7677fi
7678set dummy $CC; ac_cc=`$as_echo "$2" |
7679 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007680if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007681 $as_echo_n "(cached) " >&6
7682else
cristy73bd4a52010-10-05 11:24:23 +00007683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h. */
7685
7686int
7687main ()
7688{
7689
7690 ;
7691 return 0;
7692}
7693_ACEOF
7694# Make sure it works both with $CC and with simple cc.
7695# We do the test twice because some compilers refuse to overwrite an
7696# existing .o file with -o, though they will create one.
7697ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7698rm -f conftest2.*
7699if { { case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702esac
7703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704$as_echo "$ac_try_echo"; } >&5
7705 (eval "$ac_try") 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; } &&
7709 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712esac
7713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7714$as_echo "$ac_try_echo"; } >&5
7715 (eval "$ac_try") 2>&5
7716 ac_status=$?
7717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718 test $ac_status = 0; };
7719then
7720 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7721 if test "x$CC" != xcc; then
7722 # Test first that cc exists at all.
7723 if { ac_try='cc -c conftest.$ac_ext >&5'
7724 { { case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7727esac
7728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7729$as_echo "$ac_try_echo"; } >&5
7730 (eval "$ac_try") 2>&5
7731 ac_status=$?
7732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733 test $ac_status = 0; }; }; then
7734 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7735 rm -f conftest2.*
7736 if { { case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739esac
7740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7741$as_echo "$ac_try_echo"; } >&5
7742 (eval "$ac_try") 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; } &&
7746 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749esac
7750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7751$as_echo "$ac_try_echo"; } >&5
7752 (eval "$ac_try") 2>&5
7753 ac_status=$?
7754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755 test $ac_status = 0; };
7756 then
7757 # cc works too.
7758 :
7759 else
7760 # cc exists but doesn't like -o.
7761 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7762 fi
7763 fi
7764 fi
7765else
7766 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7767fi
7768rm -f core conftest*
7769
7770fi
7771if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7773$as_echo "yes" >&6; }
7774else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
7777
7778$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7779
7780fi
7781
7782# FIXME: we rely on the cache variable name because
7783# there is no other way.
7784set dummy $CC
7785am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7786eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7787if test "$am_t" != yes; then
7788 # Losing compiler, so override with the script.
7789 # FIXME: It is wrong to rewrite CC.
7790 # But if we don't then we get into trouble of one sort or another.
7791 # A longer-term fix would be to have automake use am__CC in this case,
7792 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7793 CC="$am_aux_dir/compile $CC"
7794fi
7795
7796
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7798$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007799if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007800 $as_echo_n "(cached) " >&6
7801else
7802 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007803 ac_ext=c
7804ac_cpp='$CPP $CPPFLAGS'
7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809 ac_save_CFLAGS="$CFLAGS"
7810for 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" #
7811do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */
7814
7815int
7816main ()
7817{
cristy24fc1fe2010-10-23 21:13:01 +00007818
cristy73bd4a52010-10-05 11:24:23 +00007819 ;
7820 return 0;
7821}
7822_ACEOF
7823if ac_fn_c_try_compile "$LINENO"; then :
7824 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7825fi
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827done
7828 CFLAGS="$ac_save_CFLAGS"
7829 ac_ext=c
7830ac_cpp='$CPP $CPPFLAGS'
7831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7838$as_echo "$ac_cv_cflags_warn_all" >&6; }
7839case ".$ac_cv_cflags_warn_all" in
7840 .ok|.ok,*) ;;
7841 .|.no|.no,*)
7842 ;;
7843 *)
7844 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7845 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7846 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7847 ac_status=$?
7848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849 test $ac_status = 0; }
7850 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7851 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7852 ac_status=$?
7853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7854 test $ac_status = 0; }
7855 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7856 fi
7857 ;;
nicolas6237c462010-10-05 06:11:49 +00007858esac
cristy3ed852e2009-09-05 21:47:34 +00007859
cristya0b81c32010-01-22 02:54:33 +00007860
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7862$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7863set x ${MAKE-make}
7864ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007865if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007866 $as_echo_n "(cached) " >&6
7867else
7868 cat >conftest.make <<\_ACEOF
7869SHELL = /bin/sh
7870all:
7871 @echo '@@@%%%=$(MAKE)=@@@%%%'
7872_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007873# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007874case `${MAKE-make} -f conftest.make 2>/dev/null` in
7875 *@@@%%%=?*=@@@%%%*)
7876 eval ac_cv_prog_make_${ac_make}_set=yes;;
7877 *)
7878 eval ac_cv_prog_make_${ac_make}_set=no;;
7879esac
7880rm -f conftest.make
7881fi
7882if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884$as_echo "yes" >&6; }
7885 SET_MAKE=
7886else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888$as_echo "no" >&6; }
7889 SET_MAKE="MAKE=${MAKE-make}"
7890fi
7891
cristy8b350f62009-11-15 23:12:43 +00007892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007893$as_echo_n "checking whether ln -s works... " >&6; }
7894LN_S=$as_ln_s
7895if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007897$as_echo "yes" >&6; }
7898else
cristy8b350f62009-11-15 23:12:43 +00007899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007900$as_echo "no, using $LN_S" >&6; }
7901fi
7902
cristy73bd4a52010-10-05 11:24:23 +00007903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7904$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7905
7906# Check whether --with-dmalloc was given.
7907if test "${with_dmalloc+set}" = set; then :
7908 withval=$with_dmalloc; if test "$withval" = yes; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910$as_echo "yes" >&6; }
7911
7912$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7913
7914 LIBS="$LIBS -ldmalloc"
7915 LDFLAGS="$LDFLAGS -g"
7916else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
7919fi
7920else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7928$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007929if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007930 $as_echo_n "(cached) " >&6
7931else
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h. */
7934#include <stdlib.h>
7935 static void foo(void) __attribute__ ((unused));
7936 static void
7937 foo(void) {
7938 exit(1);
7939 }
7940
7941int
7942main ()
7943{
7944
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949if ac_fn_c_try_compile "$LINENO"; then :
7950 ax_cv___attribute__=yes
7951else
7952 ax_cv___attribute__=no
7953
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956
7957fi
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7959$as_echo "$ax_cv___attribute__" >&6; }
7960 if test "$ax_cv___attribute__" = "yes"; then
7961
7962$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7963
7964 fi
7965
7966
7967
7968if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7971set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007974if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007975 $as_echo_n "(cached) " >&6
7976else
7977 case $PKG_CONFIG in
7978 [\\/]* | ?:[\\/]*)
7979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7980 ;;
7981 *)
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993done
7994 done
7995IFS=$as_save_IFS
7996
7997 ;;
7998esac
7999fi
8000PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8001if test -n "$PKG_CONFIG"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8003$as_echo "$PKG_CONFIG" >&6; }
8004else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010fi
8011if test -z "$ac_cv_path_PKG_CONFIG"; then
8012 ac_pt_PKG_CONFIG=$PKG_CONFIG
8013 # Extract the first word of "pkg-config", so it can be a program name with args.
8014set dummy pkg-config; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008017if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008018 $as_echo_n "(cached) " >&6
8019else
8020 case $ac_pt_PKG_CONFIG in
8021 [\\/]* | ?:[\\/]*)
8022 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8023 ;;
8024 *)
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036done
8037 done
8038IFS=$as_save_IFS
8039
8040 ;;
8041esac
8042fi
8043ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8044if test -n "$ac_pt_PKG_CONFIG"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8046$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8047else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050fi
8051
8052 if test "x$ac_pt_PKG_CONFIG" = x; then
8053 PKG_CONFIG=""
8054 else
8055 case $cross_compiling:$ac_tool_warned in
8056yes:)
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8059ac_tool_warned=yes ;;
8060esac
8061 PKG_CONFIG=$ac_pt_PKG_CONFIG
8062 fi
8063else
8064 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8065fi
8066
8067fi
8068if test -n "$PKG_CONFIG"; then
8069 _pkg_min_version=0.9.0
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8071$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8072 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8074$as_echo "yes" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077$as_echo "no" >&6; }
8078 PKG_CONFIG=""
8079 fi
8080
8081fi
cristy3ed852e2009-09-05 21:47:34 +00008082
8083#
cristy3ed852e2009-09-05 21:47:34 +00008084# Enable run-time checking.
8085#
8086# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008087if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008088 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8089else
8090 enable_bounds_checking='no'
8091fi
8092
8093
8094if test "$enable_bounds_checking" = yes; then
8095
cristy8b350f62009-11-15 23:12:43 +00008096$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008097
8098fi
8099
8100#
8101# Tests for Windows
8102#
8103
8104
cristy73bd4a52010-10-05 11:24:23 +00008105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8106$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008107if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008108 $as_echo_n "(cached) " >&6
8109else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h. */
8112
8113int
8114main ()
8115{
8116#ifndef _MSC_VER
8117 choke me
8118#endif
8119
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124if ac_fn_c_try_compile "$LINENO"; then :
8125 ax_compiler_ms=yes
8126else
8127 ax_compiler_ms=no
8128fi
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130ax_cv_c_compiler_ms=$ax_compiler_ms
8131
8132fi
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8134$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008135
8136GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008137native_win32_build='no'
8138cygwin_build='no'
8139case "${host_os}" in
8140 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008141 cygwin_build='yes'
8142 GDI32_LIBS='-lgdi32'
8143 ;;
8144 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008145 native_win32_build='yes'
8146 GDI32_LIBS='-lgdi32'
8147 ;;
8148esac
8149if test "${GDI32_LIBS}x" != 'x'; then
8150
cristy8b350f62009-11-15 23:12:43 +00008151$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008152
8153fi
8154
cristy73bd4a52010-10-05 11:24:23 +00008155 if test "${GDI32_LIBS}x" != 'x' ; then
8156 WINGDI32_DELEGATE_TRUE=
8157 WINGDI32_DELEGATE_FALSE='#'
8158else
8159 WINGDI32_DELEGATE_TRUE='#'
8160 WINGDI32_DELEGATE_FALSE=
8161fi
8162
8163 if test "${native_win32_build}" = 'yes' ; then
8164 WIN32_NATIVE_BUILD_TRUE=
8165 WIN32_NATIVE_BUILD_FALSE='#'
8166else
8167 WIN32_NATIVE_BUILD_TRUE='#'
8168 WIN32_NATIVE_BUILD_FALSE=
8169fi
8170
8171 if test "${cygwin_build}" = 'yes' ; then
8172 CYGWIN_BUILD_TRUE=
8173 CYGWIN_BUILD_FALSE='#'
8174else
8175 CYGWIN_BUILD_TRUE='#'
8176 CYGWIN_BUILD_FALSE=
8177fi
8178
8179 if test "x${CC}" = 'xcl.exe' ; then
8180 USING_CL_TRUE=
8181 USING_CL_FALSE='#'
8182else
8183 USING_CL_TRUE='#'
8184 USING_CL_FALSE=
8185fi
8186
cristy3ed852e2009-09-05 21:47:34 +00008187
8188WinPathScript="${srcdirfull}/winpath.sh"
8189
8190
8191#
8192# Compiler flags tweaks
8193#
8194if test "${GCC}" != "yes"; then
8195 case "${host}" in
8196 *-*-hpux* )
8197 # aCC: HP ANSI C++ B3910B A.03.34
8198 CFLAGS="${CFLAGS} -Wp,-H30000"
8199 if test -n "${CXXFLAGS}"; then
8200 CXXFLAGS='-AA'
8201 else
8202 CXXFLAGS="${CXXFLAGS} -AA"
8203 fi
8204 ;;
8205 *-dec-osf5.* )
8206 # Compaq alphaev68-dec-osf5.1 compiler
8207 if test -n "${CXXFLAGS}"; then
8208 CXXFLAGS='-std strict_ansi -noimplicit_include'
8209 else
8210 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8211 fi
8212 esac
8213fi
8214
8215# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008217$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008218if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008219 $as_echo_n "(cached) " >&6
8220else
8221
8222im_cv_ld_lazyload='none'
8223case "${host}" in
8224 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8225 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8226 im_cv_ld_lazyload='-Wl,-zlazyload'
8227 fi
8228 ;;
8229esac
8230
8231fi
cristy8b350f62009-11-15 23:12:43 +00008232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008233$as_echo "$im_cv_ld_lazyload" >&6; }
8234if test "${im_cv_ld_lazyload}" != 'none' ; then
8235 if test -z "${LDFLAGS}" ; then
8236 LDFLAGS="${im_cv_ld_lazyload}"
8237 else
8238 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8239 fi
8240fi
8241
8242case "$host" in
8243*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008244 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008245if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008246 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8247else
8248 build_osxuniversal=no
8249fi
8250
8251
8252 if test "${build_osxuniversal}" != no ; then
8253 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008254 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008255Please re-run configure with these options:
8256 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008257 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008258 fi
8259 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8260 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8261 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8262 fi
8263 ;;
8264esac
8265
cristy0151ae12011-10-28 16:32:29 +00008266#
8267# ARCH specific include directory
8268#
8269
cristy670aa3c2011-11-03 00:54:00 +00008270# Check whether --with-includearch-dir was given.
8271if test "${with_includearch_dir+set}" = set; then :
8272 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008273else
cristy670aa3c2011-11-03 00:54:00 +00008274 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008275fi
8276
8277
cristy670aa3c2011-11-03 00:54:00 +00008278eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008279
cristy0151ae12011-10-28 16:32:29 +00008280
8281#
8282# ARCH specific configuration directory
8283#
8284
cristy670aa3c2011-11-03 00:54:00 +00008285# Check whether --with-sharearch-dir was given.
8286if test "${with_sharearch_dir+set}" = set; then :
8287 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008288else
cristy408ebcd2011-11-14 01:36:57 +00008289 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008290fi
8291
8292
cristy670aa3c2011-11-03 00:54:00 +00008293eval "eval SHAREARCH_DIR=$sharearch_dir"
8294SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008295
cristy0151ae12011-10-28 16:32:29 +00008296
8297#
cristy3ed852e2009-09-05 21:47:34 +00008298# Enable support for threads
8299
8300# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008301if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008302 withval=$with_threads; with_threads=$withval
8303else
8304 with_threads='yes'
8305fi
8306
8307
8308have_threads=no
8309if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008310
8311
cristy73bd4a52010-10-05 11:24:23 +00008312ac_ext=c
8313ac_cpp='$CPP $CPPFLAGS'
8314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317
8318ax_pthread_ok=no
8319
8320# We used to check for pthread.h first, but this fails if pthread.h
8321# requires special compiler flags (e.g. on True64 or Sequent).
8322# It gets checked for in the link test anyway.
8323
8324# First of all, check if the user has set any of the PTHREAD_LIBS,
8325# etcetera environment variables, and if threads linking works using
8326# them:
8327if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8328 save_CFLAGS="$CFLAGS"
8329 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8330 save_LIBS="$LIBS"
8331 LIBS="$PTHREAD_LIBS $LIBS"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8333$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h. */
8336
8337/* Override any GCC internal prototype to avoid an error.
8338 Use char because int might match the return type of a GCC
8339 builtin and then its argument prototype would still apply. */
8340#ifdef __cplusplus
8341extern "C"
8342#endif
8343char pthread_join ();
8344int
8345main ()
8346{
8347return pthread_join ();
8348 ;
8349 return 0;
8350}
8351_ACEOF
8352if ac_fn_c_try_link "$LINENO"; then :
8353 ax_pthread_ok=yes
8354fi
8355rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8358$as_echo "$ax_pthread_ok" >&6; }
8359 if test x"$ax_pthread_ok" = xno; then
8360 PTHREAD_LIBS=""
8361 PTHREAD_CFLAGS=""
8362 fi
8363 LIBS="$save_LIBS"
8364 CFLAGS="$save_CFLAGS"
8365fi
8366
8367# We must check for the threads library under a number of different
8368# names; the ordering is very important because some systems
8369# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8370# libraries is broken (non-POSIX).
8371
8372# Create a list of thread flags to try. Items starting with a "-" are
8373# C compiler flags, and other items are library names, except for "none"
8374# which indicates that we try without any flags at all, and "pthread-config"
8375# which is a program returning the flags for the Pth emulation library.
8376
8377ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8378
8379# The ordering *is* (sometimes) important. Some notes on the
8380# individual items follow:
8381
8382# pthreads: AIX (must check this before -lpthread)
8383# none: in case threads are in libc; should be tried before -Kthread and
8384# other compiler flags to prevent continual compiler warnings
8385# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8386# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8387# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8388# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8389# -pthreads: Solaris/gcc
8390# -mthreads: Mingw32/gcc, Lynx/gcc
8391# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8392# doesn't hurt to check since this sometimes defines pthreads too;
8393# also defines -D_REENTRANT)
8394# ... -mt is also the pthreads flag for HP/aCC
8395# pthread: Linux, etcetera
8396# --thread-safe: KAI C++
8397# pthread-config: use pthread-config program (for GNU Pth library)
8398
8399case "${host_cpu}-${host_os}" in
8400 *solaris*)
8401
8402 # On Solaris (at least, for some versions), libc contains stubbed
8403 # (non-functional) versions of the pthreads routines, so link-based
8404 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8405 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8406 # a function called by this macro, so we could check for that, but
8407 # who knows whether they'll stub that too in a future libc.) So,
8408 # we'll just look for -pthreads and -lpthread first:
8409
8410 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8411 ;;
8412
cristya316db12011-10-24 00:49:45 +00008413 *-darwin*)
8414 ax_pthread_flags="-pthread $ax_pthread_flags"
8415 ;;
cristy73bd4a52010-10-05 11:24:23 +00008416esac
8417
8418if test x"$ax_pthread_ok" = xno; then
8419for flag in $ax_pthread_flags; do
8420
8421 case $flag in
8422 none)
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8424$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8425 ;;
8426
8427 -*)
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8429$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8430 PTHREAD_CFLAGS="$flag"
8431 ;;
8432
cristya316db12011-10-24 00:49:45 +00008433 pthread-config)
8434 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008435set dummy pthread-config; ac_word=$2
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008438if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008439 $as_echo_n "(cached) " >&6
8440else
8441 if test -n "$ax_pthread_config"; then
8442 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8451 ac_cv_prog_ax_pthread_config="yes"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455done
8456 done
8457IFS=$as_save_IFS
8458
8459 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8460fi
8461fi
8462ax_pthread_config=$ac_cv_prog_ax_pthread_config
8463if test -n "$ax_pthread_config"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8465$as_echo "$ax_pthread_config" >&6; }
8466else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
8469fi
8470
8471
cristya316db12011-10-24 00:49:45 +00008472 if test x"$ax_pthread_config" = xno; then continue; fi
8473 PTHREAD_CFLAGS="`pthread-config --cflags`"
8474 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8475 ;;
cristy73bd4a52010-10-05 11:24:23 +00008476
8477 *)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8479$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8480 PTHREAD_LIBS="-l$flag"
8481 ;;
8482 esac
8483
8484 save_LIBS="$LIBS"
8485 save_CFLAGS="$CFLAGS"
8486 LIBS="$PTHREAD_LIBS $LIBS"
8487 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8488
8489 # Check for various functions. We must include pthread.h,
8490 # since some functions may be macros. (On the Sequent, we
8491 # need a special flag -Kthread to make this header compile.)
8492 # We check for pthread_join because it is in -lpthread on IRIX
8493 # while pthread_create is in libc. We check for pthread_attr_init
8494 # due to DEC craziness with -lpthreads. We check for
8495 # pthread_cleanup_push because it is one of the few pthread
8496 # functions on Solaris that doesn't have a non-functional libc stub.
8497 # We try pthread_create on general principles.
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h. */
8500#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008501 static void routine(void *a) { a = 0; }
8502 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008503int
8504main ()
8505{
8506pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008507 pthread_create(&th, 0, start_routine, 0);
8508 pthread_join(th, 0);
8509 pthread_attr_init(&attr);
8510 pthread_cleanup_push(routine, 0);
8511 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008512 ;
8513 return 0;
8514}
8515_ACEOF
8516if ac_fn_c_try_link "$LINENO"; then :
8517 ax_pthread_ok=yes
8518fi
8519rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8521
8522 LIBS="$save_LIBS"
8523 CFLAGS="$save_CFLAGS"
8524
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8526$as_echo "$ax_pthread_ok" >&6; }
8527 if test "x$ax_pthread_ok" = xyes; then
8528 break;
8529 fi
8530
8531 PTHREAD_LIBS=""
8532 PTHREAD_CFLAGS=""
8533done
8534fi
8535
8536# Various other checks:
8537if test "x$ax_pthread_ok" = xyes; then
8538 save_LIBS="$LIBS"
8539 LIBS="$PTHREAD_LIBS $LIBS"
8540 save_CFLAGS="$CFLAGS"
8541 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8542
8543 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008545$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008546 attr_name=unknown
8547 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008549/* end confdefs.h. */
8550#include <pthread.h>
8551int
8552main ()
8553{
cristya316db12011-10-24 00:49:45 +00008554int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008555 ;
8556 return 0;
8557}
8558_ACEOF
8559if ac_fn_c_try_link "$LINENO"; then :
8560 attr_name=$attr; break
8561fi
8562rm -f core conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008564 done
cristy73bd4a52010-10-05 11:24:23 +00008565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8566$as_echo "$attr_name" >&6; }
8567 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8568
8569cat >>confdefs.h <<_ACEOF
8570#define PTHREAD_CREATE_JOINABLE $attr_name
8571_ACEOF
8572
8573 fi
8574
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8576$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8577 flag=no
8578 case "${host_cpu}-${host_os}" in
8579 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8580 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8581 esac
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8583$as_echo "${flag}" >&6; }
8584 if test "x$flag" != xno; then
8585 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8586 fi
8587
cristya316db12011-10-24 00:49:45 +00008588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8589$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8590if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592else
8593
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h. */
8596
8597 #include <pthread.h>
8598int
8599main ()
8600{
8601int i = PTHREAD_PRIO_INHERIT;
8602 ;
8603 return 0;
8604}
8605_ACEOF
8606if ac_fn_c_try_link "$LINENO"; then :
8607 ax_cv_PTHREAD_PRIO_INHERIT=yes
8608else
8609 ax_cv_PTHREAD_PRIO_INHERIT=no
8610fi
8611rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613
8614fi
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8616$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8617 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8618
8619$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8620
8621fi
8622
cristy73bd4a52010-10-05 11:24:23 +00008623 LIBS="$save_LIBS"
8624 CFLAGS="$save_CFLAGS"
8625
8626 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008627 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008628 for ac_prog in xlc_r cc_r
8629do
8630 # Extract the first word of "$ac_prog", so it can be a program name with args.
8631set dummy $ac_prog; ac_word=$2
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008634if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008635 $as_echo_n "(cached) " >&6
8636else
8637 if test -n "$PTHREAD_CC"; then
8638 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8639else
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_prog_PTHREAD_CC="$ac_prog"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8650 fi
8651done
8652 done
8653IFS=$as_save_IFS
8654
8655fi
8656fi
8657PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8658if test -n "$PTHREAD_CC"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8660$as_echo "$PTHREAD_CC" >&6; }
8661else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663$as_echo "no" >&6; }
8664fi
8665
8666
8667 test -n "$PTHREAD_CC" && break
8668done
8669test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8670
8671 else
8672 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008673 fi
cristy73bd4a52010-10-05 11:24:23 +00008674else
8675 PTHREAD_CC="$CC"
8676fi
8677
8678
8679
8680
8681
8682# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8683if test x"$ax_pthread_ok" = xyes; then
8684
8685$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8686
8687 :
8688else
8689 ax_pthread_ok=no
8690
8691fi
8692ac_ext=c
8693ac_cpp='$CPP $CPPFLAGS'
8694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8696ac_compiler_gnu=$ac_cv_c_compiler_gnu
8697
8698
cristy7acf8fb2010-09-23 19:58:53 +00008699 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008700 have_threads=yes
8701 DEF_THREAD="$PTHREAD_CFLAGS"
8702 CFLAGS="$CFLAGS $DEF_THREAD"
8703 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8704 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008705 { $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 +00008706$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8707 CC="$PTHREAD_CC"
8708 fi
cristy55bf91c2010-09-24 00:29:41 +00008709
8710$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8711
cristy3ed852e2009-09-05 21:47:34 +00008712 fi
8713fi
8714
8715# Enable support for OpenMP
8716if test "$have_threads" != 'yes'; then
8717 ac_cv_prog_c_openmp=unsupported
8718fi
8719
8720 OPENMP_CFLAGS=
8721 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008722if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008723 enableval=$enable_openmp;
8724fi
8725
8726 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008728$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008729if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008730 $as_echo_n "(cached) " >&6
8731else
cristy8b350f62009-11-15 23:12:43 +00008732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008734
8735#ifndef _OPENMP
8736 choke me
8737#endif
8738#include <omp.h>
8739int main () { return omp_get_num_threads (); }
8740
8741_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008743 ac_cv_prog_c_openmp='none needed'
8744else
cristy8b350f62009-11-15 23:12:43 +00008745 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008746 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8747 ac_save_CFLAGS=$CFLAGS
8748 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008751
8752#ifndef _OPENMP
8753 choke me
8754#endif
8755#include <omp.h>
8756int main () { return omp_get_num_threads (); }
8757
8758_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008759if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008760 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008761fi
cristy8b350f62009-11-15 23:12:43 +00008762rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008764 CFLAGS=$ac_save_CFLAGS
8765 if test "$ac_cv_prog_c_openmp" != unsupported; then
8766 break
8767 fi
8768 done
8769fi
cristy8b350f62009-11-15 23:12:43 +00008770rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008772fi
cristy8b350f62009-11-15 23:12:43 +00008773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008774$as_echo "$ac_cv_prog_c_openmp" >&6; }
8775 case $ac_cv_prog_c_openmp in #(
8776 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008777 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008778 *)
cristy8b350f62009-11-15 23:12:43 +00008779 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008780 esac
8781 fi
8782
8783
8784CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8785MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8786
cristy391f1ce2010-09-09 17:23:28 +00008787if test "$enable_openmp" != no; then
8788 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8789 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8790 fi
8791fi
cristy3ed852e2009-09-05 21:47:34 +00008792
cristy736173a2009-09-20 21:18:22 +00008793# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008794
8795
cristy73bd4a52010-10-05 11:24:23 +00008796ac_ext=c
8797ac_cpp='$CPP $CPPFLAGS'
8798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8800ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801
8802ax_pthread_ok=no
8803
8804# We used to check for pthread.h first, but this fails if pthread.h
8805# requires special compiler flags (e.g. on True64 or Sequent).
8806# It gets checked for in the link test anyway.
8807
8808# First of all, check if the user has set any of the PTHREAD_LIBS,
8809# etcetera environment variables, and if threads linking works using
8810# them:
8811if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8812 save_CFLAGS="$CFLAGS"
8813 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8814 save_LIBS="$LIBS"
8815 LIBS="$PTHREAD_LIBS $LIBS"
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8817$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h. */
8820
8821/* Override any GCC internal prototype to avoid an error.
8822 Use char because int might match the return type of a GCC
8823 builtin and then its argument prototype would still apply. */
8824#ifdef __cplusplus
8825extern "C"
8826#endif
8827char pthread_join ();
8828int
8829main ()
8830{
8831return pthread_join ();
8832 ;
8833 return 0;
8834}
8835_ACEOF
8836if ac_fn_c_try_link "$LINENO"; then :
8837 ax_pthread_ok=yes
8838fi
8839rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8842$as_echo "$ax_pthread_ok" >&6; }
8843 if test x"$ax_pthread_ok" = xno; then
8844 PTHREAD_LIBS=""
8845 PTHREAD_CFLAGS=""
8846 fi
8847 LIBS="$save_LIBS"
8848 CFLAGS="$save_CFLAGS"
8849fi
8850
8851# We must check for the threads library under a number of different
8852# names; the ordering is very important because some systems
8853# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8854# libraries is broken (non-POSIX).
8855
8856# Create a list of thread flags to try. Items starting with a "-" are
8857# C compiler flags, and other items are library names, except for "none"
8858# which indicates that we try without any flags at all, and "pthread-config"
8859# which is a program returning the flags for the Pth emulation library.
8860
8861ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8862
8863# The ordering *is* (sometimes) important. Some notes on the
8864# individual items follow:
8865
8866# pthreads: AIX (must check this before -lpthread)
8867# none: in case threads are in libc; should be tried before -Kthread and
8868# other compiler flags to prevent continual compiler warnings
8869# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8870# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8871# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8872# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8873# -pthreads: Solaris/gcc
8874# -mthreads: Mingw32/gcc, Lynx/gcc
8875# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8876# doesn't hurt to check since this sometimes defines pthreads too;
8877# also defines -D_REENTRANT)
8878# ... -mt is also the pthreads flag for HP/aCC
8879# pthread: Linux, etcetera
8880# --thread-safe: KAI C++
8881# pthread-config: use pthread-config program (for GNU Pth library)
8882
8883case "${host_cpu}-${host_os}" in
8884 *solaris*)
8885
8886 # On Solaris (at least, for some versions), libc contains stubbed
8887 # (non-functional) versions of the pthreads routines, so link-based
8888 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8889 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8890 # a function called by this macro, so we could check for that, but
8891 # who knows whether they'll stub that too in a future libc.) So,
8892 # we'll just look for -pthreads and -lpthread first:
8893
8894 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8895 ;;
8896
cristya316db12011-10-24 00:49:45 +00008897 *-darwin*)
8898 ax_pthread_flags="-pthread $ax_pthread_flags"
8899 ;;
cristy73bd4a52010-10-05 11:24:23 +00008900esac
8901
8902if test x"$ax_pthread_ok" = xno; then
8903for flag in $ax_pthread_flags; do
8904
8905 case $flag in
8906 none)
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8908$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8909 ;;
8910
8911 -*)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8913$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8914 PTHREAD_CFLAGS="$flag"
8915 ;;
8916
cristya316db12011-10-24 00:49:45 +00008917 pthread-config)
8918 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008919set dummy pthread-config; ac_word=$2
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008922if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008923 $as_echo_n "(cached) " >&6
8924else
8925 if test -n "$ax_pthread_config"; then
8926 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8927else
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8935 ac_cv_prog_ax_pthread_config="yes"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940 done
8941IFS=$as_save_IFS
8942
8943 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8944fi
8945fi
8946ax_pthread_config=$ac_cv_prog_ax_pthread_config
8947if test -n "$ax_pthread_config"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8949$as_echo "$ax_pthread_config" >&6; }
8950else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
8953fi
8954
8955
cristya316db12011-10-24 00:49:45 +00008956 if test x"$ax_pthread_config" = xno; then continue; fi
8957 PTHREAD_CFLAGS="`pthread-config --cflags`"
8958 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8959 ;;
cristy73bd4a52010-10-05 11:24:23 +00008960
8961 *)
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8963$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8964 PTHREAD_LIBS="-l$flag"
8965 ;;
8966 esac
8967
8968 save_LIBS="$LIBS"
8969 save_CFLAGS="$CFLAGS"
8970 LIBS="$PTHREAD_LIBS $LIBS"
8971 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8972
8973 # Check for various functions. We must include pthread.h,
8974 # since some functions may be macros. (On the Sequent, we
8975 # need a special flag -Kthread to make this header compile.)
8976 # We check for pthread_join because it is in -lpthread on IRIX
8977 # while pthread_create is in libc. We check for pthread_attr_init
8978 # due to DEC craziness with -lpthreads. We check for
8979 # pthread_cleanup_push because it is one of the few pthread
8980 # functions on Solaris that doesn't have a non-functional libc stub.
8981 # We try pthread_create on general principles.
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h. */
8984#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008985 static void routine(void *a) { a = 0; }
8986 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008987int
8988main ()
8989{
8990pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008991 pthread_create(&th, 0, start_routine, 0);
8992 pthread_join(th, 0);
8993 pthread_attr_init(&attr);
8994 pthread_cleanup_push(routine, 0);
8995 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008996 ;
8997 return 0;
8998}
8999_ACEOF
9000if ac_fn_c_try_link "$LINENO"; then :
9001 ax_pthread_ok=yes
9002fi
9003rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005
9006 LIBS="$save_LIBS"
9007 CFLAGS="$save_CFLAGS"
9008
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9010$as_echo "$ax_pthread_ok" >&6; }
9011 if test "x$ax_pthread_ok" = xyes; then
9012 break;
9013 fi
9014
9015 PTHREAD_LIBS=""
9016 PTHREAD_CFLAGS=""
9017done
9018fi
9019
9020# Various other checks:
9021if test "x$ax_pthread_ok" = xyes; then
9022 save_LIBS="$LIBS"
9023 LIBS="$PTHREAD_LIBS $LIBS"
9024 save_CFLAGS="$CFLAGS"
9025 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9026
9027 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009029$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009030 attr_name=unknown
9031 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009033/* end confdefs.h. */
9034#include <pthread.h>
9035int
9036main ()
9037{
cristya316db12011-10-24 00:49:45 +00009038int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009039 ;
9040 return 0;
9041}
9042_ACEOF
9043if ac_fn_c_try_link "$LINENO"; then :
9044 attr_name=$attr; break
9045fi
9046rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009048 done
cristy73bd4a52010-10-05 11:24:23 +00009049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9050$as_echo "$attr_name" >&6; }
9051 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9052
9053cat >>confdefs.h <<_ACEOF
9054#define PTHREAD_CREATE_JOINABLE $attr_name
9055_ACEOF
9056
9057 fi
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9060$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9061 flag=no
9062 case "${host_cpu}-${host_os}" in
9063 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9064 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9065 esac
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9067$as_echo "${flag}" >&6; }
9068 if test "x$flag" != xno; then
9069 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9070 fi
9071
cristya316db12011-10-24 00:49:45 +00009072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9073$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9074if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076else
9077
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h. */
9080
9081 #include <pthread.h>
9082int
9083main ()
9084{
9085int i = PTHREAD_PRIO_INHERIT;
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090if ac_fn_c_try_link "$LINENO"; then :
9091 ax_cv_PTHREAD_PRIO_INHERIT=yes
9092else
9093 ax_cv_PTHREAD_PRIO_INHERIT=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9100$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9101 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9102
9103$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9104
9105fi
9106
cristy73bd4a52010-10-05 11:24:23 +00009107 LIBS="$save_LIBS"
9108 CFLAGS="$save_CFLAGS"
9109
9110 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009111 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009112 for ac_prog in xlc_r cc_r
9113do
9114 # Extract the first word of "$ac_prog", so it can be a program name with args.
9115set dummy $ac_prog; ac_word=$2
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009118if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009119 $as_echo_n "(cached) " >&6
9120else
9121 if test -n "$PTHREAD_CC"; then
9122 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9123else
9124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125for as_dir in $PATH
9126do
9127 IFS=$as_save_IFS
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9131 ac_cv_prog_PTHREAD_CC="$ac_prog"
9132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 break 2
9134 fi
9135done
9136 done
9137IFS=$as_save_IFS
9138
9139fi
9140fi
9141PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9142if test -n "$PTHREAD_CC"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9144$as_echo "$PTHREAD_CC" >&6; }
9145else
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147$as_echo "no" >&6; }
9148fi
9149
9150
9151 test -n "$PTHREAD_CC" && break
9152done
9153test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9154
9155 else
9156 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009157 fi
cristy73bd4a52010-10-05 11:24:23 +00009158else
9159 PTHREAD_CC="$CC"
9160fi
9161
9162
9163
9164
9165
9166# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9167if test x"$ax_pthread_ok" = xyes; then
9168
9169$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9170
9171 :
9172else
9173 ax_pthread_ok=no
9174
9175fi
9176ac_ext=c
9177ac_cpp='$CPP $CPPFLAGS'
9178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9180ac_compiler_gnu=$ac_cv_c_compiler_gnu
9181
9182
9183
9184# Check whether --enable-opencl was given.
9185if test "${enable_opencl+set}" = set; then :
9186 enableval=$enable_opencl; disable_opencl=$enableval
9187else
9188 disable_opencl='yes'
9189fi
9190
9191
9192if test "$disable_opencl" = 'yes'; then
9193 ac_ext=c
9194ac_cpp='$CPP $CPPFLAGS'
9195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9197ac_compiler_gnu=$ac_cv_c_compiler_gnu
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9200$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009201if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009202 $as_echo_n "(cached) " >&6
9203else
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h. */
9206
9207int
9208main ()
9209{
9210#ifndef _MSC_VER
9211 choke me
9212#endif
9213
9214 ;
9215 return 0;
9216}
9217_ACEOF
9218if ac_fn_c_try_compile "$LINENO"; then :
9219 ax_compiler_ms=yes
9220else
9221 ax_compiler_ms=no
9222fi
9223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9224ax_cv_c_compiler_ms=$ax_compiler_ms
9225
9226fi
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9228$as_echo "$ax_cv_c_compiler_ms" >&6; }
9229 if test X$ax_compiler_ms = Xno; then :
9230 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9231fi
9232
9233 ax_save_CPPFLAGS=$CPPFLAGS
9234 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9235 for ac_header in CL/cl.h OpenCL/cl.h
9236do :
9237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9238ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009240 cat >>confdefs.h <<_ACEOF
9241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9242_ACEOF
9243
9244fi
9245
9246done
9247
9248 CPPFLAGS=$ax_save_CPPFLAGS
9249
9250 for ac_header in windows.h
9251do :
9252 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009253if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009254 cat >>confdefs.h <<_ACEOF
9255#define HAVE_WINDOWS_H 1
9256_ACEOF
9257
9258fi
9259
9260done
9261
9262
9263
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9266$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009267if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009268 $as_echo_n "(cached) " >&6
9269else
9270 ax_cv_check_cl_libcl=no
9271 case $host_cpu in
9272 x86_64) ax_check_cl_libdir=lib64 ;;
9273 *) ax_check_cl_libdir=lib ;;
9274 esac
9275 ax_save_CPPFLAGS=$CPPFLAGS
9276 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9277 ax_save_LIBS=$LIBS
9278 LIBS=""
9279 ax_check_libs="-lOpenCL -lCL -lclparser"
9280 for ax_lib in $ax_check_libs; do
9281 if test X$ax_compiler_ms = Xyes; then :
9282 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9283else
9284 ax_try_lib=$ax_lib
9285fi
9286 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288/* end confdefs.h. */
9289
9290 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9291 # include <windows.h>
9292 # endif
9293 # ifdef HAVE_CL_CL_H
9294 # include <CL/cl.h>
9295 # elif defined(HAVE_OPENCL_CL_H)
9296 # include <OpenCL/cl.h>
9297 # else
9298 # error no CL.h
9299 # endif
9300int
9301main ()
9302{
9303clCreateContextFromType(0,0,0,0,0)
9304 ;
9305 return 0;
9306}
9307_ACEOF
9308if ac_fn_c_try_link "$LINENO"; then :
9309 ax_cv_check_cl_libcl=$ax_try_lib; break
9310else
9311 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"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313/* end confdefs.h. */
9314
9315 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9316 # include <windows.h>
9317 # endif
9318 # ifdef HAVE_CL_CL_H
9319 # include <CL/cl.h>
9320 # elif defined(HAVE_OPENCL_CL_H)
9321 # include <OpenCL/cl.h>
9322 # else
9323 # error no CL.h
9324 # endif
9325int
9326main ()
9327{
9328clCreateContextFromType(0,0,0,0,0)
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333if ac_fn_c_try_link "$LINENO"; then :
9334 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9335else
cristy78c5a0c2010-12-04 20:00:59 +00009336 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 +00009337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h. */
9339
9340 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9341 # include <windows.h>
9342 # endif
9343 # ifdef HAVE_CL_CL_H
9344 # include <CL/cl.h>
9345 # elif defined(HAVE_OPENCL_CL_H)
9346 # include <OpenCL/cl.h>
9347 # else
9348 # error no CL.h
9349 # endif
9350int
9351main ()
9352{
9353clCreateContextFromType(0,0,0,0,0)
9354 ;
9355 return 0;
9356}
9357_ACEOF
9358if ac_fn_c_try_link "$LINENO"; then :
9359 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9360fi
9361rm -f core conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363fi
9364rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366fi
9367rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369 done
9370
9371 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009372 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h. */
9375
9376 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9377 # include <windows.h>
9378 # endif
9379 # ifdef HAVE_CL_CL_H
9380 # include <CL/cl.h>
9381 # elif defined(HAVE_OPENCL_CL_H)
9382 # include <OpenCL/cl.h>
9383 # else
9384 # error no CL.h
9385 # endif
9386int
9387main ()
9388{
9389clCreateContextFromType(0,0,0,0,0)
9390 ;
9391 return 0;
9392}
9393_ACEOF
9394if ac_fn_c_try_link "$LINENO"; then :
9395 ax_cv_check_cl_libcl=$LIBS
9396fi
9397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399fi
9400
9401 LIBS=$ax_save_LIBS
9402 CPPFLAGS=$ax_save_CPPFLAGS
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9405$as_echo "$ax_cv_check_cl_libcl" >&6; }
9406
9407 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9408 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9409else
9410 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9411$as_echo "#define _OPENCL 1" >>confdefs.h
9412
9413fi
9414 ac_ext=c
9415ac_cpp='$CPP $CPPFLAGS'
9416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9418ac_compiler_gnu=$ac_cv_c_compiler_gnu
9419
9420fi
9421
9422
9423
9424
cristyc7083c12009-10-14 03:16:55 +00009425CFLAGS="$CL_CFLAGS $CFLAGS"
9426LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009427
cristy391f1ce2010-09-09 17:23:28 +00009428if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009429 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009430 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9431 fi
cristyfd9dcd42010-08-08 18:07:02 +00009432fi
cristy2e8b51d2009-10-17 18:26:15 +00009433
cristy3ed852e2009-09-05 21:47:34 +00009434########
9435#
9436# Check for large file support
9437#
9438########
9439# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009440if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009441 enableval=$enable_largefile;
9442fi
9443
9444if test "$enable_largefile" != no; then
9445
cristy8b350f62009-11-15 23:12:43 +00009446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009447$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009448if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009449 $as_echo_n "(cached) " >&6
9450else
9451 ac_cv_sys_largefile_CC=no
9452 if test "$GCC" != yes; then
9453 ac_save_CC=$CC
9454 while :; do
9455 # IRIX 6.2 and later do not support large files by default,
9456 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009458/* end confdefs.h. */
9459#include <sys/types.h>
9460 /* Check that off_t can represent 2**63 - 1 correctly.
9461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9462 since some C++ compilers masquerading as C compilers
9463 incorrectly reject 9223372036854775807. */
9464#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9466 && LARGE_OFF_T % 2147483647 == 1)
9467 ? 1 : -1];
9468int
9469main ()
9470{
9471
9472 ;
9473 return 0;
9474}
9475_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009476 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009477 break
cristy3ed852e2009-09-05 21:47:34 +00009478fi
cristy3ed852e2009-09-05 21:47:34 +00009479rm -f core conftest.err conftest.$ac_objext
9480 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009481 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009482 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009483fi
cristy3ed852e2009-09-05 21:47:34 +00009484rm -f core conftest.err conftest.$ac_objext
9485 break
9486 done
9487 CC=$ac_save_CC
9488 rm -f conftest.$ac_ext
9489 fi
9490fi
cristy8b350f62009-11-15 23:12:43 +00009491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009492$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9493 if test "$ac_cv_sys_largefile_CC" != no; then
9494 CC=$CC$ac_cv_sys_largefile_CC
9495 fi
9496
cristy8b350f62009-11-15 23:12:43 +00009497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009498$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009499if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009500 $as_echo_n "(cached) " >&6
9501else
9502 while :; do
cristy8b350f62009-11-15 23:12:43 +00009503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009504/* end confdefs.h. */
9505#include <sys/types.h>
9506 /* Check that off_t can represent 2**63 - 1 correctly.
9507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9508 since some C++ compilers masquerading as C compilers
9509 incorrectly reject 9223372036854775807. */
9510#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9512 && LARGE_OFF_T % 2147483647 == 1)
9513 ? 1 : -1];
9514int
9515main ()
9516{
9517
9518 ;
9519 return 0;
9520}
9521_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009522if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009523 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009524fi
cristy3ed852e2009-09-05 21:47:34 +00009525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009527/* end confdefs.h. */
9528#define _FILE_OFFSET_BITS 64
9529#include <sys/types.h>
9530 /* Check that off_t can represent 2**63 - 1 correctly.
9531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9532 since some C++ compilers masquerading as C compilers
9533 incorrectly reject 9223372036854775807. */
9534#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9536 && LARGE_OFF_T % 2147483647 == 1)
9537 ? 1 : -1];
9538int
9539main ()
9540{
9541
9542 ;
9543 return 0;
9544}
9545_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009546if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009547 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009548fi
cristy3ed852e2009-09-05 21:47:34 +00009549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 ac_cv_sys_file_offset_bits=unknown
9551 break
9552done
9553fi
cristy8b350f62009-11-15 23:12:43 +00009554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009555$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9556case $ac_cv_sys_file_offset_bits in #(
9557 no | unknown) ;;
9558 *)
9559cat >>confdefs.h <<_ACEOF
9560#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9561_ACEOF
9562;;
9563esac
9564rm -rf conftest*
9565 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009567$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009568if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009569 $as_echo_n "(cached) " >&6
9570else
9571 while :; do
cristy8b350f62009-11-15 23:12:43 +00009572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009573/* end confdefs.h. */
9574#include <sys/types.h>
9575 /* Check that off_t can represent 2**63 - 1 correctly.
9576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9577 since some C++ compilers masquerading as C compilers
9578 incorrectly reject 9223372036854775807. */
9579#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9581 && LARGE_OFF_T % 2147483647 == 1)
9582 ? 1 : -1];
9583int
9584main ()
9585{
9586
9587 ;
9588 return 0;
9589}
9590_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009591if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009592 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009593fi
cristy3ed852e2009-09-05 21:47:34 +00009594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009596/* end confdefs.h. */
9597#define _LARGE_FILES 1
9598#include <sys/types.h>
9599 /* Check that off_t can represent 2**63 - 1 correctly.
9600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9601 since some C++ compilers masquerading as C compilers
9602 incorrectly reject 9223372036854775807. */
9603#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9605 && LARGE_OFF_T % 2147483647 == 1)
9606 ? 1 : -1];
9607int
9608main ()
9609{
9610
9611 ;
9612 return 0;
9613}
9614_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009615if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009616 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009617fi
cristy3ed852e2009-09-05 21:47:34 +00009618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 ac_cv_sys_large_files=unknown
9620 break
9621done
9622fi
cristy8b350f62009-11-15 23:12:43 +00009623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009624$as_echo "$ac_cv_sys_large_files" >&6; }
9625case $ac_cv_sys_large_files in #(
9626 no | unknown) ;;
9627 *)
9628cat >>confdefs.h <<_ACEOF
9629#define _LARGE_FILES $ac_cv_sys_large_files
9630_ACEOF
9631;;
9632esac
9633rm -rf conftest*
9634 fi
9635fi
9636
cristy8b350f62009-11-15 23:12:43 +00009637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009638$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009639if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009640 $as_echo_n "(cached) " >&6
9641else
9642 while :; do
cristy8b350f62009-11-15 23:12:43 +00009643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009644/* end confdefs.h. */
9645#include <sys/types.h> /* for off_t */
9646 #include <stdio.h>
9647int
9648main ()
9649{
9650int (*fp) (FILE *, off_t, int) = fseeko;
9651 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9652 ;
9653 return 0;
9654}
9655_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009656if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009657 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009658fi
cristy8b350f62009-11-15 23:12:43 +00009659rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009662/* end confdefs.h. */
9663#define _LARGEFILE_SOURCE 1
9664#include <sys/types.h> /* for off_t */
9665 #include <stdio.h>
9666int
9667main ()
9668{
9669int (*fp) (FILE *, off_t, int) = fseeko;
9670 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9671 ;
9672 return 0;
9673}
9674_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009676 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009677fi
cristy8b350f62009-11-15 23:12:43 +00009678rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009680 ac_cv_sys_largefile_source=unknown
9681 break
9682done
9683fi
cristy8b350f62009-11-15 23:12:43 +00009684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009685$as_echo "$ac_cv_sys_largefile_source" >&6; }
9686case $ac_cv_sys_largefile_source in #(
9687 no | unknown) ;;
9688 *)
9689cat >>confdefs.h <<_ACEOF
9690#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9691_ACEOF
9692;;
9693esac
9694rm -rf conftest*
9695
9696# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9697# in glibc 2.1.3, but that breaks too many other things.
9698# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9699if test $ac_cv_sys_largefile_source != unknown; then
9700
cristy8b350f62009-11-15 23:12:43 +00009701$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009702
9703fi
9704
9705LFS_CPPFLAGS=''
9706if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009707 case $ac_cv_sys_file_offset_bits in
9708 no)
9709 # nothing to do here as the host supports LFS fine
9710 ;;
9711 unknown)
cristy8b350f62009-11-15 23:12:43 +00009712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009713$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009714 if test "$cross_compiling" = yes; then :
9715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009717as_fn_error $? "cannot run test program while cross compiling
9718See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009719else
cristy8b350f62009-11-15 23:12:43 +00009720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009722#include <unistd.h>
9723 main () {
9724 exit(!(sizeof(off_t) == 8));
9725 }
cristyda16f162011-02-19 23:52:17 +00009726int
9727main ()
9728{
9729
9730 ;
9731 return 0;
9732}
cristy3ed852e2009-09-05 21:47:34 +00009733_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009734if ac_fn_c_try_run "$LINENO"; then :
9735 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009736
cristy09b53e12011-10-14 12:47:22 +00009737 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9738$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009739else
cristy09b53e12011-10-14 12:47:22 +00009740 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9741$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009742fi
cristy8b350f62009-11-15 23:12:43 +00009743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9744 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009745fi
9746
cristyc1e0cc12011-09-21 16:41:16 +00009747 ;;
9748 *)
9749 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9750 ;;
9751 esac
cristy3ed852e2009-09-05 21:47:34 +00009752 if test "$ac_cv_sys_large_files" != 'no'; then
9753 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9754 fi
9755 if test "$ac_cv_sys_largefile_source" != 'no'; then
9756 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9757 fi
9758fi
9759
9760
cristy3ed852e2009-09-05 21:47:34 +00009761# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009762enable_dlopen=yes
9763
9764
9765
9766case `pwd` in
9767 *\ * | *\ *)
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9769$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9770esac
9771
9772
9773
cristy99bd5232011-12-07 14:38:20 +00009774macro_version='2.4.2'
9775macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +00009776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789ltmain="$ac_aux_dir/ltmain.sh"
9790
cristy0c60a692010-11-04 01:09:47 +00009791# Backslashify metacharacters that are still active within
9792# double-quoted strings.
9793sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9794
9795# Same as above, but do not quote variable references.
9796double_quote_subst='s/\(["`\\]\)/\\\1/g'
9797
9798# Sed substitution to delay expansion of an escaped shell variable in a
9799# double_quote_subst'ed string.
9800delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9801
9802# Sed substitution to delay expansion of an escaped single quote.
9803delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9804
9805# Sed substitution to avoid accidental globbing in evaled expressions
9806no_glob_subst='s/\*/\\\*/g'
9807
cristy73bd4a52010-10-05 11:24:23 +00009808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9809$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009810if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009811 $as_echo_n "(cached) " >&6
9812else
9813 if test -n "$NM"; then
9814 # Let the user override the test.
9815 lt_cv_path_NM="$NM"
9816else
9817 lt_nm_to_check="${ac_tool_prefix}nm"
9818 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9819 lt_nm_to_check="$lt_nm_to_check nm"
9820 fi
9821 for lt_tmp_nm in $lt_nm_to_check; do
9822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9823 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9824 IFS="$lt_save_ifs"
9825 test -z "$ac_dir" && ac_dir=.
9826 tmp_nm="$ac_dir/$lt_tmp_nm"
9827 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9828 # Check to see if the nm accepts a BSD-compat flag.
9829 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9830 # nm: unknown option "B" ignored
9831 # Tru64's nm complains that /dev/null is an invalid object file
9832 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9833 */dev/null* | *'Invalid file or object type'*)
9834 lt_cv_path_NM="$tmp_nm -B"
9835 break
9836 ;;
9837 *)
9838 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9839 */dev/null*)
9840 lt_cv_path_NM="$tmp_nm -p"
9841 break
9842 ;;
9843 *)
9844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9845 continue # so that we can try to find one that supports BSD flags
9846 ;;
9847 esac
9848 ;;
9849 esac
9850 fi
9851 done
9852 IFS="$lt_save_ifs"
9853 done
9854 : ${lt_cv_path_NM=no}
9855fi
9856fi
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9858$as_echo "$lt_cv_path_NM" >&6; }
9859if test "$lt_cv_path_NM" != "no"; then
9860 NM="$lt_cv_path_NM"
9861else
9862 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009863 if test -n "$DUMPBIN"; then :
9864 # Let the user override the test.
9865 else
9866 if test -n "$ac_tool_prefix"; then
9867 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009868 do
9869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009873if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009874 $as_echo_n "(cached) " >&6
9875else
9876 if test -n "$DUMPBIN"; then
9877 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9878else
9879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880for as_dir in $PATH
9881do
9882 IFS=$as_save_IFS
9883 test -z "$as_dir" && as_dir=.
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9886 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 break 2
9889 fi
9890done
9891 done
9892IFS=$as_save_IFS
9893
9894fi
9895fi
9896DUMPBIN=$ac_cv_prog_DUMPBIN
9897if test -n "$DUMPBIN"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9899$as_echo "$DUMPBIN" >&6; }
9900else
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902$as_echo "no" >&6; }
9903fi
9904
9905
9906 test -n "$DUMPBIN" && break
9907 done
9908fi
9909if test -z "$DUMPBIN"; then
9910 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009911 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009912do
9913 # Extract the first word of "$ac_prog", so it can be a program name with args.
9914set dummy $ac_prog; ac_word=$2
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009917if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009918 $as_echo_n "(cached) " >&6
9919else
9920 if test -n "$ac_ct_DUMPBIN"; then
9921 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9922else
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9933 fi
9934done
9935 done
9936IFS=$as_save_IFS
9937
9938fi
9939fi
9940ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9941if test -n "$ac_ct_DUMPBIN"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9943$as_echo "$ac_ct_DUMPBIN" >&6; }
9944else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
9947fi
9948
9949
9950 test -n "$ac_ct_DUMPBIN" && break
9951done
9952
9953 if test "x$ac_ct_DUMPBIN" = x; then
9954 DUMPBIN=":"
9955 else
9956 case $cross_compiling:$ac_tool_warned in
9957yes:)
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9960ac_tool_warned=yes ;;
9961esac
9962 DUMPBIN=$ac_ct_DUMPBIN
9963 fi
9964fi
9965
cristy0c60a692010-11-04 01:09:47 +00009966 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9967 *COFF*)
9968 DUMPBIN="$DUMPBIN -symbols"
9969 ;;
9970 *)
9971 DUMPBIN=:
9972 ;;
9973 esac
9974 fi
cristy73bd4a52010-10-05 11:24:23 +00009975
9976 if test "$DUMPBIN" != ":"; then
9977 NM="$DUMPBIN"
9978 fi
9979fi
9980test -z "$NM" && NM=nm
9981
9982
9983
9984
9985
9986
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9988$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009989if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009990 $as_echo_n "(cached) " >&6
9991else
9992 lt_cv_nm_interface="BSD nm"
9993 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009994 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009995 (eval "$ac_compile" 2>conftest.err)
9996 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009997 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009998 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9999 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010000 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010001 cat conftest.out >&5
10002 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10003 lt_cv_nm_interface="MS dumpbin"
10004 fi
10005 rm -f conftest*
10006fi
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10008$as_echo "$lt_cv_nm_interface" >&6; }
10009
10010# find the maximum length of command line arguments
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10012$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010013if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010014 $as_echo_n "(cached) " >&6
10015else
10016 i=0
10017 teststring="ABCD"
10018
10019 case $build_os in
10020 msdosdjgpp*)
10021 # On DJGPP, this test can blow up pretty badly due to problems in libc
10022 # (any single argument exceeding 2000 bytes causes a buffer overrun
10023 # during glob expansion). Even if it were fixed, the result of this
10024 # check would be larger than it should be.
10025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10026 ;;
10027
10028 gnu*)
10029 # Under GNU Hurd, this test is not required because there is
10030 # no limit to the length of command line arguments.
10031 # Libtool will interpret -1 as no limit whatsoever
10032 lt_cv_sys_max_cmd_len=-1;
10033 ;;
10034
10035 cygwin* | mingw* | cegcc*)
10036 # On Win9x/ME, this test blows up -- it succeeds, but takes
10037 # about 5 minutes as the teststring grows exponentially.
10038 # Worse, since 9x/ME are not pre-emptively multitasking,
10039 # you end up with a "frozen" computer, even though with patience
10040 # the test eventually succeeds (with a max line length of 256k).
10041 # Instead, let's just punt: use the minimum linelength reported by
10042 # all of the supported platforms: 8192 (on NT/2K/XP).
10043 lt_cv_sys_max_cmd_len=8192;
10044 ;;
10045
cristy0c60a692010-11-04 01:09:47 +000010046 mint*)
10047 # On MiNT this can take a long time and run out of memory.
10048 lt_cv_sys_max_cmd_len=8192;
10049 ;;
10050
cristy73bd4a52010-10-05 11:24:23 +000010051 amigaos*)
10052 # On AmigaOS with pdksh, this test takes hours, literally.
10053 # So we just punt and use a minimum line length of 8192.
10054 lt_cv_sys_max_cmd_len=8192;
10055 ;;
10056
10057 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10058 # This has been around since 386BSD, at least. Likely further.
10059 if test -x /sbin/sysctl; then
10060 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10061 elif test -x /usr/sbin/sysctl; then
10062 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10063 else
10064 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10065 fi
10066 # And add a safety zone
10067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10069 ;;
10070
10071 interix*)
10072 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10073 lt_cv_sys_max_cmd_len=196608
10074 ;;
10075
cristy99bd5232011-12-07 14:38:20 +000010076 os2*)
10077 # The test takes a long time on OS/2.
10078 lt_cv_sys_max_cmd_len=8192
10079 ;;
10080
cristy73bd4a52010-10-05 11:24:23 +000010081 osf*)
10082 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10083 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10084 # nice to cause kernel panics so lets avoid the loop below.
10085 # First set a reasonable default.
10086 lt_cv_sys_max_cmd_len=16384
10087 #
10088 if test -x /sbin/sysconfig; then
10089 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10090 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10091 esac
10092 fi
10093 ;;
10094 sco3.2v5*)
10095 lt_cv_sys_max_cmd_len=102400
10096 ;;
10097 sysv5* | sco5v6* | sysv4.2uw2*)
10098 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10099 if test -n "$kargmax"; then
10100 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10101 else
10102 lt_cv_sys_max_cmd_len=32768
10103 fi
10104 ;;
10105 *)
10106 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10107 if test -n "$lt_cv_sys_max_cmd_len"; then
10108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10110 else
10111 # Make teststring a little bigger before we do anything with it.
10112 # a 1K string should be a reasonable start.
10113 for i in 1 2 3 4 5 6 7 8 ; do
10114 teststring=$teststring$teststring
10115 done
10116 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10117 # If test is not a shell built-in, we'll probably end up computing a
10118 # maximum length that is only half of the actual maximum length, but
10119 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010120 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010121 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010122 test $i != 17 # 1/2 MB should be enough
10123 do
10124 i=`expr $i + 1`
10125 teststring=$teststring$teststring
10126 done
10127 # Only check the string length outside the loop.
10128 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10129 teststring=
10130 # Add a significant safety factor because C++ compilers can tack on
10131 # massive amounts of additional arguments before passing them to the
10132 # linker. It appears as though 1/2 is a usable value.
10133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10134 fi
10135 ;;
10136 esac
10137
10138fi
10139
10140if test -n $lt_cv_sys_max_cmd_len ; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10142$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10143else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10145$as_echo "none" >&6; }
10146fi
10147max_cmd_len=$lt_cv_sys_max_cmd_len
10148
10149
10150
10151
10152
10153
10154: ${CP="cp -f"}
10155: ${MV="mv -f"}
10156: ${RM="rm -f"}
10157
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10159$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10160# Try some XSI features
10161xsi_shell=no
10162( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010163 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10164 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010165 && eval 'test $(( 1 + 1 )) -eq 2 \
10166 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10167 && xsi_shell=yes
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10169$as_echo "$xsi_shell" >&6; }
10170
10171
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10173$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10174lt_shell_append=no
10175( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10176 >/dev/null 2>&1 \
10177 && lt_shell_append=yes
10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10179$as_echo "$lt_shell_append" >&6; }
10180
10181
10182if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10183 lt_unset=unset
10184else
10185 lt_unset=false
10186fi
10187
10188
10189
10190
10191
10192# test EBCDIC or ASCII
10193case `echo X|tr X '\101'` in
10194 A) # ASCII based system
10195 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10196 lt_SP2NL='tr \040 \012'
10197 lt_NL2SP='tr \015\012 \040\040'
10198 ;;
10199 *) # EBCDIC based system
10200 lt_SP2NL='tr \100 \n'
10201 lt_NL2SP='tr \r\n \100\100'
10202 ;;
10203esac
10204
10205
10206
10207
10208
10209
10210
10211
10212
cristyda16f162011-02-19 23:52:17 +000010213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10214$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10215if ${lt_cv_to_host_file_cmd+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217else
10218 case $host in
10219 *-*-mingw* )
10220 case $build in
10221 *-*-mingw* ) # actually msys
10222 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10223 ;;
10224 *-*-cygwin* )
10225 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10226 ;;
10227 * ) # otherwise, assume *nix
10228 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10229 ;;
10230 esac
10231 ;;
10232 *-*-cygwin* )
10233 case $build in
10234 *-*-mingw* ) # actually msys
10235 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10236 ;;
10237 *-*-cygwin* )
10238 lt_cv_to_host_file_cmd=func_convert_file_noop
10239 ;;
10240 * ) # otherwise, assume *nix
10241 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10242 ;;
10243 esac
10244 ;;
10245 * ) # unhandled hosts (and "normal" native builds)
10246 lt_cv_to_host_file_cmd=func_convert_file_noop
10247 ;;
10248esac
10249
10250fi
10251
10252to_host_file_cmd=$lt_cv_to_host_file_cmd
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10254$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10255
10256
10257
10258
10259
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10261$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10262if ${lt_cv_to_tool_file_cmd+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264else
10265 #assume ordinary cross tools, or native build.
10266lt_cv_to_tool_file_cmd=func_convert_file_noop
10267case $host in
10268 *-*-mingw* )
10269 case $build in
10270 *-*-mingw* ) # actually msys
10271 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10272 ;;
10273 esac
10274 ;;
10275esac
10276
10277fi
10278
10279to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10281$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10282
10283
10284
10285
10286
cristy73bd4a52010-10-05 11:24:23 +000010287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10288$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010289if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010290 $as_echo_n "(cached) " >&6
10291else
10292 lt_cv_ld_reload_flag='-r'
10293fi
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10295$as_echo "$lt_cv_ld_reload_flag" >&6; }
10296reload_flag=$lt_cv_ld_reload_flag
10297case $reload_flag in
10298"" | " "*) ;;
10299*) reload_flag=" $reload_flag" ;;
10300esac
10301reload_cmds='$LD$reload_flag -o $output$reload_objs'
10302case $host_os in
cristyda16f162011-02-19 23:52:17 +000010303 cygwin* | mingw* | pw32* | cegcc*)
10304 if test "$GCC" != yes; then
10305 reload_cmds=false
10306 fi
10307 ;;
cristy73bd4a52010-10-05 11:24:23 +000010308 darwin*)
10309 if test "$GCC" = yes; then
10310 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10311 else
10312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10313 fi
10314 ;;
10315esac
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325if test -n "$ac_tool_prefix"; then
10326 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10327set dummy ${ac_tool_prefix}objdump; ac_word=$2
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010330if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010331 $as_echo_n "(cached) " >&6
10332else
10333 if test -n "$OBJDUMP"; then
10334 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10335else
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10343 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10346 fi
10347done
10348 done
10349IFS=$as_save_IFS
10350
10351fi
10352fi
10353OBJDUMP=$ac_cv_prog_OBJDUMP
10354if test -n "$OBJDUMP"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10356$as_echo "$OBJDUMP" >&6; }
10357else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359$as_echo "no" >&6; }
10360fi
10361
10362
10363fi
10364if test -z "$ac_cv_prog_OBJDUMP"; then
10365 ac_ct_OBJDUMP=$OBJDUMP
10366 # Extract the first word of "objdump", so it can be a program name with args.
10367set dummy objdump; ac_word=$2
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010370if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010371 $as_echo_n "(cached) " >&6
10372else
10373 if test -n "$ac_ct_OBJDUMP"; then
10374 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10375else
10376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377for as_dir in $PATH
10378do
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10383 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10386 fi
10387done
10388 done
10389IFS=$as_save_IFS
10390
10391fi
10392fi
10393ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10394if test -n "$ac_ct_OBJDUMP"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10396$as_echo "$ac_ct_OBJDUMP" >&6; }
10397else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399$as_echo "no" >&6; }
10400fi
10401
10402 if test "x$ac_ct_OBJDUMP" = x; then
10403 OBJDUMP="false"
10404 else
10405 case $cross_compiling:$ac_tool_warned in
10406yes:)
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10409ac_tool_warned=yes ;;
10410esac
10411 OBJDUMP=$ac_ct_OBJDUMP
10412 fi
10413else
10414 OBJDUMP="$ac_cv_prog_OBJDUMP"
10415fi
10416
10417test -z "$OBJDUMP" && OBJDUMP=objdump
10418
10419
10420
10421
10422
10423
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10425$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010426if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010427 $as_echo_n "(cached) " >&6
10428else
10429 lt_cv_file_magic_cmd='$MAGIC_CMD'
10430lt_cv_file_magic_test_file=
10431lt_cv_deplibs_check_method='unknown'
10432# Need to set the preceding variable on all platforms that support
10433# interlibrary dependencies.
10434# 'none' -- dependencies not supported.
10435# `unknown' -- same as none, but documents that we really don't know.
10436# 'pass_all' -- all dependencies passed with no checks.
10437# 'test_compile' -- check by making test program.
10438# 'file_magic [[regex]]' -- check by looking for files in library path
10439# which responds to the $file_magic_cmd with a given extended regex.
10440# If you have `file' or equivalent on your system and you're not sure
10441# whether `pass_all' will *always* work, you probably want this one.
10442
10443case $host_os in
10444aix[4-9]*)
10445 lt_cv_deplibs_check_method=pass_all
10446 ;;
10447
10448beos*)
10449 lt_cv_deplibs_check_method=pass_all
10450 ;;
10451
10452bsdi[45]*)
10453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10454 lt_cv_file_magic_cmd='/usr/bin/file -L'
10455 lt_cv_file_magic_test_file=/shlib/libc.so
10456 ;;
10457
10458cygwin*)
10459 # func_win32_libid is a shell function defined in ltmain.sh
10460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10461 lt_cv_file_magic_cmd='func_win32_libid'
10462 ;;
10463
10464mingw* | pw32*)
10465 # Base MSYS/MinGW do not provide the 'file' command needed by
10466 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10467 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010468 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10469 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010470 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10471 lt_cv_file_magic_cmd='func_win32_libid'
10472 else
cristy0c60a692010-11-04 01:09:47 +000010473 # Keep this pattern in sync with the one in func_win32_libid.
10474 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 +000010475 lt_cv_file_magic_cmd='$OBJDUMP -f'
10476 fi
10477 ;;
10478
cristy0c60a692010-11-04 01:09:47 +000010479cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010480 # use the weaker test based on 'objdump'. See mingw*.
10481 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10482 lt_cv_file_magic_cmd='$OBJDUMP -f'
10483 ;;
10484
10485darwin* | rhapsody*)
10486 lt_cv_deplibs_check_method=pass_all
10487 ;;
10488
10489freebsd* | dragonfly*)
10490 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10491 case $host_cpu in
10492 i*86 )
10493 # Not sure whether the presence of OpenBSD here was a mistake.
10494 # Let's accept both of them until this is cleared up.
10495 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10496 lt_cv_file_magic_cmd=/usr/bin/file
10497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10498 ;;
10499 esac
10500 else
10501 lt_cv_deplibs_check_method=pass_all
10502 fi
10503 ;;
10504
10505gnu*)
10506 lt_cv_deplibs_check_method=pass_all
10507 ;;
10508
cristy0c60a692010-11-04 01:09:47 +000010509haiku*)
10510 lt_cv_deplibs_check_method=pass_all
10511 ;;
10512
cristy73bd4a52010-10-05 11:24:23 +000010513hpux10.20* | hpux11*)
10514 lt_cv_file_magic_cmd=/usr/bin/file
10515 case $host_cpu in
10516 ia64*)
10517 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10518 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10519 ;;
10520 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010521 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 +000010522 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10523 ;;
10524 *)
cristy0c60a692010-11-04 01:09:47 +000010525 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 +000010526 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10527 ;;
10528 esac
10529 ;;
10530
10531interix[3-9]*)
10532 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10534 ;;
10535
10536irix5* | irix6* | nonstopux*)
10537 case $LD in
10538 *-32|*"-32 ") libmagic=32-bit;;
10539 *-n32|*"-n32 ") libmagic=N32;;
10540 *-64|*"-64 ") libmagic=64-bit;;
10541 *) libmagic=never-match;;
10542 esac
10543 lt_cv_deplibs_check_method=pass_all
10544 ;;
10545
cristy99bd5232011-12-07 14:38:20 +000010546# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000010547linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010548 lt_cv_deplibs_check_method=pass_all
10549 ;;
10550
10551netbsd*)
10552 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10554 else
10555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10556 fi
10557 ;;
10558
10559newos6*)
10560 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10561 lt_cv_file_magic_cmd=/usr/bin/file
10562 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10563 ;;
10564
10565*nto* | *qnx*)
10566 lt_cv_deplibs_check_method=pass_all
10567 ;;
10568
10569openbsd*)
10570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10572 else
10573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10574 fi
10575 ;;
10576
10577osf3* | osf4* | osf5*)
10578 lt_cv_deplibs_check_method=pass_all
10579 ;;
10580
10581rdos*)
10582 lt_cv_deplibs_check_method=pass_all
10583 ;;
10584
10585solaris*)
10586 lt_cv_deplibs_check_method=pass_all
10587 ;;
10588
10589sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10590 lt_cv_deplibs_check_method=pass_all
10591 ;;
10592
10593sysv4 | sysv4.3*)
10594 case $host_vendor in
10595 motorola)
10596 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]'
10597 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10598 ;;
10599 ncr)
10600 lt_cv_deplibs_check_method=pass_all
10601 ;;
10602 sequent)
10603 lt_cv_file_magic_cmd='/bin/file'
10604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10605 ;;
10606 sni)
10607 lt_cv_file_magic_cmd='/bin/file'
10608 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10609 lt_cv_file_magic_test_file=/lib/libc.so
10610 ;;
10611 siemens)
10612 lt_cv_deplibs_check_method=pass_all
10613 ;;
10614 pc)
10615 lt_cv_deplibs_check_method=pass_all
10616 ;;
10617 esac
10618 ;;
10619
10620tpf*)
10621 lt_cv_deplibs_check_method=pass_all
10622 ;;
10623esac
10624
10625fi
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10627$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010628
10629file_magic_glob=
10630want_nocaseglob=no
10631if test "$build" = "$host"; then
10632 case $host_os in
10633 mingw* | pw32*)
10634 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10635 want_nocaseglob=yes
10636 else
10637 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10638 fi
10639 ;;
10640 esac
10641fi
10642
cristy73bd4a52010-10-05 11:24:23 +000010643file_magic_cmd=$lt_cv_file_magic_cmd
10644deplibs_check_method=$lt_cv_deplibs_check_method
10645test -z "$deplibs_check_method" && deplibs_check_method=unknown
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
cristyda16f162011-02-19 23:52:17 +000010658
10659
10660
10661
10662
10663
10664
10665
10666
10667
cristy73bd4a52010-10-05 11:24:23 +000010668if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010669 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10670set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010673if ${ac_cv_prog_DLLTOOL+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675else
10676 if test -n "$DLLTOOL"; then
10677 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10678else
10679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $PATH
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10686 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690done
10691 done
10692IFS=$as_save_IFS
10693
10694fi
10695fi
10696DLLTOOL=$ac_cv_prog_DLLTOOL
10697if test -n "$DLLTOOL"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10699$as_echo "$DLLTOOL" >&6; }
10700else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702$as_echo "no" >&6; }
10703fi
10704
10705
10706fi
10707if test -z "$ac_cv_prog_DLLTOOL"; then
10708 ac_ct_DLLTOOL=$DLLTOOL
10709 # Extract the first word of "dlltool", so it can be a program name with args.
10710set dummy dlltool; ac_word=$2
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712$as_echo_n "checking for $ac_word... " >&6; }
10713if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715else
10716 if test -n "$ac_ct_DLLTOOL"; then
10717 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10718else
10719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720for as_dir in $PATH
10721do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10729 fi
10730done
10731 done
10732IFS=$as_save_IFS
10733
10734fi
10735fi
10736ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10737if test -n "$ac_ct_DLLTOOL"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10739$as_echo "$ac_ct_DLLTOOL" >&6; }
10740else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742$as_echo "no" >&6; }
10743fi
10744
10745 if test "x$ac_ct_DLLTOOL" = x; then
10746 DLLTOOL="false"
10747 else
10748 case $cross_compiling:$ac_tool_warned in
10749yes:)
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10752ac_tool_warned=yes ;;
10753esac
10754 DLLTOOL=$ac_ct_DLLTOOL
10755 fi
10756else
10757 DLLTOOL="$ac_cv_prog_DLLTOOL"
10758fi
10759
10760test -z "$DLLTOOL" && DLLTOOL=dlltool
10761
10762
10763
10764
10765
10766
10767
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10769$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10770if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772else
10773 lt_cv_sharedlib_from_linklib_cmd='unknown'
10774
10775case $host_os in
10776cygwin* | mingw* | pw32* | cegcc*)
10777 # two different shell functions defined in ltmain.sh
10778 # decide which to use based on capabilities of $DLLTOOL
10779 case `$DLLTOOL --help 2>&1` in
10780 *--identify-strict*)
10781 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10782 ;;
10783 *)
10784 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10785 ;;
10786 esac
10787 ;;
10788*)
10789 # fallback: assume linklib IS sharedlib
10790 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10791 ;;
10792esac
10793
10794fi
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10796$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10797sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10798test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10799
10800
10801
10802
10803
10804
10805
10806if test -n "$ac_tool_prefix"; then
10807 for ac_prog in ar
10808 do
10809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10812$as_echo_n "checking for $ac_word... " >&6; }
10813if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010814 $as_echo_n "(cached) " >&6
10815else
10816 if test -n "$AR"; then
10817 ac_cv_prog_AR="$AR" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 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 +000010826 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831 done
10832IFS=$as_save_IFS
10833
10834fi
10835fi
10836AR=$ac_cv_prog_AR
10837if test -n "$AR"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10839$as_echo "$AR" >&6; }
10840else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842$as_echo "no" >&6; }
10843fi
10844
10845
cristyda16f162011-02-19 23:52:17 +000010846 test -n "$AR" && break
10847 done
cristy73bd4a52010-10-05 11:24:23 +000010848fi
cristyda16f162011-02-19 23:52:17 +000010849if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010850 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010851 for ac_prog in ar
10852do
10853 # Extract the first word of "$ac_prog", so it can be a program name with args.
10854set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010857if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010858 $as_echo_n "(cached) " >&6
10859else
10860 if test -n "$ac_ct_AR"; then
10861 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10862else
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 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 +000010870 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874done
10875 done
10876IFS=$as_save_IFS
10877
10878fi
10879fi
10880ac_ct_AR=$ac_cv_prog_ac_ct_AR
10881if test -n "$ac_ct_AR"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10883$as_echo "$ac_ct_AR" >&6; }
10884else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
10887fi
10888
cristyda16f162011-02-19 23:52:17 +000010889
10890 test -n "$ac_ct_AR" && break
10891done
10892
cristy73bd4a52010-10-05 11:24:23 +000010893 if test "x$ac_ct_AR" = x; then
10894 AR="false"
10895 else
10896 case $cross_compiling:$ac_tool_warned in
10897yes:)
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10900ac_tool_warned=yes ;;
10901esac
10902 AR=$ac_ct_AR
10903 fi
cristy73bd4a52010-10-05 11:24:23 +000010904fi
10905
cristyda16f162011-02-19 23:52:17 +000010906: ${AR=ar}
10907: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
cristyda16f162011-02-19 23:52:17 +000010919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10920$as_echo_n "checking for archiver @FILE support... " >&6; }
10921if ${lt_cv_ar_at_file+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923else
10924 lt_cv_ar_at_file=no
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h. */
10927
10928int
10929main ()
10930{
10931
10932 ;
10933 return 0;
10934}
10935_ACEOF
10936if ac_fn_c_try_compile "$LINENO"; then :
10937 echo conftest.$ac_objext > conftest.lst
10938 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10940 (eval $lt_ar_try) 2>&5
10941 ac_status=$?
10942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943 test $ac_status = 0; }
10944 if test "$ac_status" -eq 0; then
10945 # Ensure the archiver fails upon bogus file names.
10946 rm -f conftest.$ac_objext libconftest.a
10947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10948 (eval $lt_ar_try) 2>&5
10949 ac_status=$?
10950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10951 test $ac_status = 0; }
10952 if test "$ac_status" -ne 0; then
10953 lt_cv_ar_at_file=@
10954 fi
10955 fi
10956 rm -f conftest.* libconftest.a
10957
10958fi
10959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960
10961fi
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10963$as_echo "$lt_cv_ar_at_file" >&6; }
10964
10965if test "x$lt_cv_ar_at_file" = xno; then
10966 archiver_list_spec=
10967else
10968 archiver_list_spec=$lt_cv_ar_at_file
10969fi
10970
10971
10972
10973
10974
10975
10976
cristy73bd4a52010-10-05 11:24:23 +000010977if test -n "$ac_tool_prefix"; then
10978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10979set dummy ${ac_tool_prefix}strip; ac_word=$2
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010982if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010983 $as_echo_n "(cached) " >&6
10984else
10985 if test -n "$STRIP"; then
10986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10987else
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10995 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10998 fi
10999done
11000 done
11001IFS=$as_save_IFS
11002
11003fi
11004fi
11005STRIP=$ac_cv_prog_STRIP
11006if test -n "$STRIP"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11008$as_echo "$STRIP" >&6; }
11009else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
11012fi
11013
11014
11015fi
11016if test -z "$ac_cv_prog_STRIP"; then
11017 ac_ct_STRIP=$STRIP
11018 # Extract the first word of "strip", so it can be a program name with args.
11019set dummy strip; ac_word=$2
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011022if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011023 $as_echo_n "(cached) " >&6
11024else
11025 if test -n "$ac_ct_STRIP"; then
11026 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11027else
11028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029for as_dir in $PATH
11030do
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11035 ac_cv_prog_ac_ct_STRIP="strip"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11038 fi
11039done
11040 done
11041IFS=$as_save_IFS
11042
11043fi
11044fi
11045ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11046if test -n "$ac_ct_STRIP"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11048$as_echo "$ac_ct_STRIP" >&6; }
11049else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051$as_echo "no" >&6; }
11052fi
11053
11054 if test "x$ac_ct_STRIP" = x; then
11055 STRIP=":"
11056 else
11057 case $cross_compiling:$ac_tool_warned in
11058yes:)
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11061ac_tool_warned=yes ;;
11062esac
11063 STRIP=$ac_ct_STRIP
11064 fi
11065else
11066 STRIP="$ac_cv_prog_STRIP"
11067fi
11068
11069test -z "$STRIP" && STRIP=:
11070
11071
11072
11073
11074
11075
11076if test -n "$ac_tool_prefix"; then
11077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11078set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011081if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011082 $as_echo_n "(cached) " >&6
11083else
11084 if test -n "$RANLIB"; then
11085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11086else
11087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088for as_dir in $PATH
11089do
11090 IFS=$as_save_IFS
11091 test -z "$as_dir" && as_dir=.
11092 for ac_exec_ext in '' $ac_executable_extensions; do
11093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 break 2
11097 fi
11098done
11099 done
11100IFS=$as_save_IFS
11101
11102fi
11103fi
11104RANLIB=$ac_cv_prog_RANLIB
11105if test -n "$RANLIB"; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11107$as_echo "$RANLIB" >&6; }
11108else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110$as_echo "no" >&6; }
11111fi
11112
11113
11114fi
11115if test -z "$ac_cv_prog_RANLIB"; then
11116 ac_ct_RANLIB=$RANLIB
11117 # Extract the first word of "ranlib", so it can be a program name with args.
11118set dummy ranlib; ac_word=$2
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011121if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011122 $as_echo_n "(cached) " >&6
11123else
11124 if test -n "$ac_ct_RANLIB"; then
11125 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11126else
11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_prog_ac_ct_RANLIB="ranlib"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11137 fi
11138done
11139 done
11140IFS=$as_save_IFS
11141
11142fi
11143fi
11144ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11145if test -n "$ac_ct_RANLIB"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11147$as_echo "$ac_ct_RANLIB" >&6; }
11148else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
11151fi
11152
11153 if test "x$ac_ct_RANLIB" = x; then
11154 RANLIB=":"
11155 else
11156 case $cross_compiling:$ac_tool_warned in
11157yes:)
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11160ac_tool_warned=yes ;;
11161esac
11162 RANLIB=$ac_ct_RANLIB
11163 fi
11164else
11165 RANLIB="$ac_cv_prog_RANLIB"
11166fi
11167
11168test -z "$RANLIB" && RANLIB=:
11169
11170
11171
11172
11173
11174
11175# Determine commands to create old-style static archives.
11176old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11177old_postinstall_cmds='chmod 644 $oldlib'
11178old_postuninstall_cmds=
11179
11180if test -n "$RANLIB"; then
11181 case $host_os in
11182 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011183 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011184 ;;
11185 *)
cristy99bd5232011-12-07 14:38:20 +000011186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011187 ;;
11188 esac
cristy99bd5232011-12-07 14:38:20 +000011189 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011190fi
11191
cristy0c60a692010-11-04 01:09:47 +000011192case $host_os in
11193 darwin*)
11194 lock_old_archive_extraction=yes ;;
11195 *)
11196 lock_old_archive_extraction=no ;;
11197esac
11198
11199
11200
11201
11202
11203
cristy73bd4a52010-10-05 11:24:23 +000011204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237# If no C compiler was specified, use CC.
11238LTCC=${LTCC-"$CC"}
11239
11240# If no C compiler flags were specified, use CFLAGS.
11241LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11242
11243# Allow CC to be a program name with arguments.
11244compiler=$CC
11245
11246
11247# Check for command to grab the raw symbol name followed by C symbol from nm.
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11249$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011250if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011251 $as_echo_n "(cached) " >&6
11252else
11253
11254# These are sane defaults that work on at least a few old systems.
11255# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11256
11257# Character class describing NM global symbol codes.
11258symcode='[BCDEGRST]'
11259
11260# Regexp to match symbols that can be accessed directly from C.
11261sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11262
11263# Define system-specific variables.
11264case $host_os in
11265aix*)
11266 symcode='[BCDT]'
11267 ;;
11268cygwin* | mingw* | pw32* | cegcc*)
11269 symcode='[ABCDGISTW]'
11270 ;;
11271hpux*)
11272 if test "$host_cpu" = ia64; then
11273 symcode='[ABCDEGRST]'
11274 fi
11275 ;;
11276irix* | nonstopux*)
11277 symcode='[BCDEGRST]'
11278 ;;
11279osf*)
11280 symcode='[BCDEGQRST]'
11281 ;;
11282solaris*)
11283 symcode='[BDRT]'
11284 ;;
11285sco3.2v5*)
11286 symcode='[DT]'
11287 ;;
11288sysv4.2uw2*)
11289 symcode='[DT]'
11290 ;;
11291sysv5* | sco5v6* | unixware* | OpenUNIX*)
11292 symcode='[ABDT]'
11293 ;;
11294sysv4)
11295 symcode='[DFNSTU]'
11296 ;;
11297esac
11298
11299# If we're using GNU nm, then use its standard symbol codes.
11300case `$NM -V 2>&1` in
11301*GNU* | *'with BFD'*)
11302 symcode='[ABCDGIRSTW]' ;;
11303esac
11304
11305# Transform an extracted symbol line into a proper C declaration.
11306# Some systems (esp. on ia64) link data and code symbols differently,
11307# so use this general approach.
11308lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11309
11310# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011311lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11312lt_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 +000011313
11314# Handle CRLF in mingw tool chain
11315opt_cr=
11316case $build_os in
11317mingw*)
11318 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11319 ;;
11320esac
11321
11322# Try without a prefix underscore, then with it.
11323for ac_symprfx in "" "_"; do
11324
11325 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11326 symxfrm="\\1 $ac_symprfx\\2 \\2"
11327
11328 # Write the raw and C identifiers.
11329 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11330 # Fake it for dumpbin and say T for any non-static function
11331 # and D for any global variable.
11332 # Also find C++ and __fastcall symbols from MSVC++,
11333 # which start with @ or ?.
11334 lt_cv_sys_global_symbol_pipe="$AWK '"\
11335" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011336" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011337" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11338" \$ 0!~/External *\|/{next};"\
11339" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11340" {if(hide[section]) next};"\
11341" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11342" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11343" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11344" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11345" ' prfx=^$ac_symprfx"
11346 else
11347 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11348 fi
cristyda16f162011-02-19 23:52:17 +000011349 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011350
11351 # Check to see that the pipe works correctly.
11352 pipe_works=no
11353
11354 rm -f conftest*
11355 cat > conftest.$ac_ext <<_LT_EOF
11356#ifdef __cplusplus
11357extern "C" {
11358#endif
11359char nm_test_var;
11360void nm_test_func(void);
11361void nm_test_func(void){}
11362#ifdef __cplusplus
11363}
11364#endif
11365int main(){nm_test_var='a';nm_test_func();return(0);}
11366_LT_EOF
11367
11368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11369 (eval $ac_compile) 2>&5
11370 ac_status=$?
11371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11372 test $ac_status = 0; }; then
11373 # Now try to grab the symbols.
11374 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11376 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011377 ac_status=$?
11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; } && test -s "$nlist"; then
11380 # Try sorting and uniquifying the output.
11381 if sort "$nlist" | uniq > "$nlist"T; then
11382 mv -f "$nlist"T "$nlist"
11383 else
11384 rm -f "$nlist"T
11385 fi
11386
11387 # Make sure that we snagged all the symbols we need.
11388 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11389 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11390 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011391/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11392#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11393/* DATA imports from DLLs on WIN32 con't be const, because runtime
11394 relocations are performed -- see ld's documentation on pseudo-relocs. */
11395# define LT_DLSYM_CONST
11396#elif defined(__osf__)
11397/* This system does not cope well with relocations in const data. */
11398# define LT_DLSYM_CONST
11399#else
11400# define LT_DLSYM_CONST const
11401#endif
11402
cristy73bd4a52010-10-05 11:24:23 +000011403#ifdef __cplusplus
11404extern "C" {
11405#endif
11406
11407_LT_EOF
11408 # Now generate the symbol file.
11409 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11410
11411 cat <<_LT_EOF >> conftest.$ac_ext
11412
11413/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011414LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011415 const char *name;
11416 void *address;
11417}
11418lt__PROGRAM__LTX_preloaded_symbols[] =
11419{
11420 { "@PROGRAM@", (void *) 0 },
11421_LT_EOF
11422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11423 cat <<\_LT_EOF >> conftest.$ac_ext
11424 {0, (void *) 0}
11425};
11426
11427/* This works around a problem in FreeBSD linker */
11428#ifdef FREEBSD_WORKAROUND
11429static const void *lt_preloaded_setup() {
11430 return lt__PROGRAM__LTX_preloaded_symbols;
11431}
11432#endif
11433
11434#ifdef __cplusplus
11435}
11436#endif
11437_LT_EOF
11438 # Now try linking the two files.
11439 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011440 lt_globsym_save_LIBS=$LIBS
11441 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011442 LIBS="conftstm.$ac_objext"
11443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11445 (eval $ac_link) 2>&5
11446 ac_status=$?
11447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11449 pipe_works=yes
11450 fi
cristyda16f162011-02-19 23:52:17 +000011451 LIBS=$lt_globsym_save_LIBS
11452 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011453 else
11454 echo "cannot find nm_test_func in $nlist" >&5
11455 fi
11456 else
11457 echo "cannot find nm_test_var in $nlist" >&5
11458 fi
11459 else
11460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11461 fi
11462 else
11463 echo "$progname: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11465 fi
11466 rm -rf conftest* conftst*
11467
11468 # Do not use the global_symbol_pipe unless it works.
11469 if test "$pipe_works" = yes; then
11470 break
11471 else
11472 lt_cv_sys_global_symbol_pipe=
11473 fi
11474done
11475
11476fi
11477
11478if test -z "$lt_cv_sys_global_symbol_pipe"; then
11479 lt_cv_sys_global_symbol_to_cdecl=
11480fi
11481if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11483$as_echo "failed" >&6; }
11484else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11486$as_echo "ok" >&6; }
11487fi
11488
cristyda16f162011-02-19 23:52:17 +000011489# Response file support.
11490if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11491 nm_file_list_spec='@'
11492elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11493 nm_file_list_spec='@'
11494fi
cristy73bd4a52010-10-05 11:24:23 +000011495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
cristyda16f162011-02-19 23:52:17 +000011516
11517
11518
11519
11520
11521
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11523$as_echo_n "checking for sysroot... " >&6; }
11524
11525# Check whether --with-sysroot was given.
11526if test "${with_sysroot+set}" = set; then :
11527 withval=$with_sysroot;
11528else
11529 with_sysroot=no
11530fi
11531
11532
11533lt_sysroot=
11534case ${with_sysroot} in #(
11535 yes)
11536 if test "$GCC" = yes; then
11537 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11538 fi
11539 ;; #(
11540 /*)
11541 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11542 ;; #(
11543 no|'')
11544 ;; #(
11545 *)
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11547$as_echo "${with_sysroot}" >&6; }
11548 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11549 ;;
11550esac
11551
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11553$as_echo "${lt_sysroot:-no}" >&6; }
11554
11555
11556
11557
11558
cristy73bd4a52010-10-05 11:24:23 +000011559# Check whether --enable-libtool-lock was given.
11560if test "${enable_libtool_lock+set}" = set; then :
11561 enableval=$enable_libtool_lock;
11562fi
11563
11564test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11565
11566# Some flags need to be propagated to the compiler or linker for good
11567# libtool support.
11568case $host in
11569ia64-*-hpux*)
11570 # Find out which ABI we are using.
11571 echo 'int i;' > conftest.$ac_ext
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11573 (eval $ac_compile) 2>&5
11574 ac_status=$?
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; }; then
11577 case `/usr/bin/file conftest.$ac_objext` in
11578 *ELF-32*)
11579 HPUX_IA64_MODE="32"
11580 ;;
11581 *ELF-64*)
11582 HPUX_IA64_MODE="64"
11583 ;;
11584 esac
11585 fi
11586 rm -rf conftest*
11587 ;;
11588*-*-irix6*)
11589 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011590 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11592 (eval $ac_compile) 2>&5
11593 ac_status=$?
11594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595 test $ac_status = 0; }; then
11596 if test "$lt_cv_prog_gnu_ld" = yes; then
11597 case `/usr/bin/file conftest.$ac_objext` in
11598 *32-bit*)
11599 LD="${LD-ld} -melf32bsmip"
11600 ;;
11601 *N32*)
11602 LD="${LD-ld} -melf32bmipn32"
11603 ;;
11604 *64-bit*)
11605 LD="${LD-ld} -melf64bmip"
11606 ;;
11607 esac
11608 else
11609 case `/usr/bin/file conftest.$ac_objext` in
11610 *32-bit*)
11611 LD="${LD-ld} -32"
11612 ;;
11613 *N32*)
11614 LD="${LD-ld} -n32"
11615 ;;
11616 *64-bit*)
11617 LD="${LD-ld} -64"
11618 ;;
11619 esac
11620 fi
11621 fi
11622 rm -rf conftest*
11623 ;;
11624
11625x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11626s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11627 # Find out which ABI we are using.
11628 echo 'int i;' > conftest.$ac_ext
11629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11630 (eval $ac_compile) 2>&5
11631 ac_status=$?
11632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633 test $ac_status = 0; }; then
11634 case `/usr/bin/file conftest.o` in
11635 *32-bit*)
11636 case $host in
11637 x86_64-*kfreebsd*-gnu)
11638 LD="${LD-ld} -m elf_i386_fbsd"
11639 ;;
11640 x86_64-*linux*)
11641 LD="${LD-ld} -m elf_i386"
11642 ;;
11643 ppc64-*linux*|powerpc64-*linux*)
11644 LD="${LD-ld} -m elf32ppclinux"
11645 ;;
11646 s390x-*linux*)
11647 LD="${LD-ld} -m elf_s390"
11648 ;;
11649 sparc64-*linux*)
11650 LD="${LD-ld} -m elf32_sparc"
11651 ;;
11652 esac
11653 ;;
11654 *64-bit*)
11655 case $host in
11656 x86_64-*kfreebsd*-gnu)
11657 LD="${LD-ld} -m elf_x86_64_fbsd"
11658 ;;
11659 x86_64-*linux*)
11660 LD="${LD-ld} -m elf_x86_64"
11661 ;;
11662 ppc*-*linux*|powerpc*-*linux*)
11663 LD="${LD-ld} -m elf64ppc"
11664 ;;
11665 s390*-*linux*|s390*-*tpf*)
11666 LD="${LD-ld} -m elf64_s390"
11667 ;;
11668 sparc*-*linux*)
11669 LD="${LD-ld} -m elf64_sparc"
11670 ;;
11671 esac
11672 ;;
11673 esac
11674 fi
11675 rm -rf conftest*
11676 ;;
11677
11678*-*-sco3.2v5*)
11679 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11680 SAVE_CFLAGS="$CFLAGS"
11681 CFLAGS="$CFLAGS -belf"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11683$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011684if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011685 $as_echo_n "(cached) " >&6
11686else
11687 ac_ext=c
11688ac_cpp='$CPP $CPPFLAGS'
11689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11691ac_compiler_gnu=$ac_cv_c_compiler_gnu
11692
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694/* end confdefs.h. */
11695
11696int
11697main ()
11698{
11699
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704if ac_fn_c_try_link "$LINENO"; then :
11705 lt_cv_cc_needs_belf=yes
11706else
11707 lt_cv_cc_needs_belf=no
11708fi
11709rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 ac_ext=c
11712ac_cpp='$CPP $CPPFLAGS'
11713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11715ac_compiler_gnu=$ac_cv_c_compiler_gnu
11716
11717fi
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11719$as_echo "$lt_cv_cc_needs_belf" >&6; }
11720 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11721 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11722 CFLAGS="$SAVE_CFLAGS"
11723 fi
11724 ;;
cristy99bd5232011-12-07 14:38:20 +000011725*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000011726 # Find out which ABI we are using.
11727 echo 'int i;' > conftest.$ac_ext
11728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11729 (eval $ac_compile) 2>&5
11730 ac_status=$?
11731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11732 test $ac_status = 0; }; then
11733 case `/usr/bin/file conftest.o` in
11734 *64-bit*)
11735 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000011736 yes*)
11737 case $host in
11738 i?86-*-solaris*)
11739 LD="${LD-ld} -m elf_x86_64"
11740 ;;
11741 sparc*-*-solaris*)
11742 LD="${LD-ld} -m elf64_sparc"
11743 ;;
11744 esac
11745 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11746 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11747 LD="${LD-ld}_sol2"
11748 fi
11749 ;;
cristy73bd4a52010-10-05 11:24:23 +000011750 *)
11751 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11752 LD="${LD-ld} -64"
11753 fi
11754 ;;
11755 esac
11756 ;;
11757 esac
11758 fi
11759 rm -rf conftest*
11760 ;;
11761esac
11762
11763need_locks="$enable_libtool_lock"
11764
cristyda16f162011-02-19 23:52:17 +000011765if test -n "$ac_tool_prefix"; then
11766 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11767set dummy ${ac_tool_prefix}mt; ac_word=$2
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
11770if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772else
11773 if test -n "$MANIFEST_TOOL"; then
11774 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11775else
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787done
11788 done
11789IFS=$as_save_IFS
11790
11791fi
11792fi
11793MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11794if test -n "$MANIFEST_TOOL"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11796$as_echo "$MANIFEST_TOOL" >&6; }
11797else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
11800fi
11801
11802
11803fi
11804if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11805 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11806 # Extract the first word of "mt", so it can be a program name with args.
11807set dummy mt; ac_word=$2
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
11810if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812else
11813 if test -n "$ac_ct_MANIFEST_TOOL"; then
11814 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11815else
11816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11826 fi
11827done
11828 done
11829IFS=$as_save_IFS
11830
11831fi
11832fi
11833ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11834if test -n "$ac_ct_MANIFEST_TOOL"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11836$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11837else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
11840fi
11841
11842 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11843 MANIFEST_TOOL=":"
11844 else
11845 case $cross_compiling:$ac_tool_warned in
11846yes:)
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11849ac_tool_warned=yes ;;
11850esac
11851 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11852 fi
11853else
11854 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11855fi
11856
11857test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11859$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11860if ${lt_cv_path_mainfest_tool+:} false; then :
11861 $as_echo_n "(cached) " >&6
11862else
11863 lt_cv_path_mainfest_tool=no
11864 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11865 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11866 cat conftest.err >&5
11867 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11868 lt_cv_path_mainfest_tool=yes
11869 fi
11870 rm -f conftest*
11871fi
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11873$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11874if test "x$lt_cv_path_mainfest_tool" != xyes; then
11875 MANIFEST_TOOL=:
11876fi
11877
11878
11879
11880
11881
cristy73bd4a52010-10-05 11:24:23 +000011882
11883 case $host_os in
11884 rhapsody* | darwin*)
11885 if test -n "$ac_tool_prefix"; then
11886 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11887set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011890if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011891 $as_echo_n "(cached) " >&6
11892else
11893 if test -n "$DSYMUTIL"; then
11894 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11895else
11896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $PATH
11898do
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905 break 2
11906 fi
11907done
11908 done
11909IFS=$as_save_IFS
11910
11911fi
11912fi
11913DSYMUTIL=$ac_cv_prog_DSYMUTIL
11914if test -n "$DSYMUTIL"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11916$as_echo "$DSYMUTIL" >&6; }
11917else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919$as_echo "no" >&6; }
11920fi
11921
11922
11923fi
11924if test -z "$ac_cv_prog_DSYMUTIL"; then
11925 ac_ct_DSYMUTIL=$DSYMUTIL
11926 # Extract the first word of "dsymutil", so it can be a program name with args.
11927set dummy dsymutil; ac_word=$2
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011930if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011931 $as_echo_n "(cached) " >&6
11932else
11933 if test -n "$ac_ct_DSYMUTIL"; then
11934 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947done
11948 done
11949IFS=$as_save_IFS
11950
11951fi
11952fi
11953ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11954if test -n "$ac_ct_DSYMUTIL"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11956$as_echo "$ac_ct_DSYMUTIL" >&6; }
11957else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962 if test "x$ac_ct_DSYMUTIL" = x; then
11963 DSYMUTIL=":"
11964 else
11965 case $cross_compiling:$ac_tool_warned in
11966yes:)
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11969ac_tool_warned=yes ;;
11970esac
11971 DSYMUTIL=$ac_ct_DSYMUTIL
11972 fi
11973else
11974 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11975fi
11976
11977 if test -n "$ac_tool_prefix"; then
11978 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11979set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011982if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011983 $as_echo_n "(cached) " >&6
11984else
11985 if test -n "$NMEDIT"; then
11986 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11987else
11988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989for as_dir in $PATH
11990do
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11995 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 break 2
11998 fi
11999done
12000 done
12001IFS=$as_save_IFS
12002
12003fi
12004fi
12005NMEDIT=$ac_cv_prog_NMEDIT
12006if test -n "$NMEDIT"; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12008$as_echo "$NMEDIT" >&6; }
12009else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011$as_echo "no" >&6; }
12012fi
12013
12014
12015fi
12016if test -z "$ac_cv_prog_NMEDIT"; then
12017 ac_ct_NMEDIT=$NMEDIT
12018 # Extract the first word of "nmedit", so it can be a program name with args.
12019set dummy nmedit; ac_word=$2
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012022if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012023 $as_echo_n "(cached) " >&6
12024else
12025 if test -n "$ac_ct_NMEDIT"; then
12026 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12027else
12028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH
12030do
12031 IFS=$as_save_IFS
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12035 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 break 2
12038 fi
12039done
12040 done
12041IFS=$as_save_IFS
12042
12043fi
12044fi
12045ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12046if test -n "$ac_ct_NMEDIT"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12048$as_echo "$ac_ct_NMEDIT" >&6; }
12049else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
12052fi
12053
12054 if test "x$ac_ct_NMEDIT" = x; then
12055 NMEDIT=":"
12056 else
12057 case $cross_compiling:$ac_tool_warned in
12058yes:)
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12061ac_tool_warned=yes ;;
12062esac
12063 NMEDIT=$ac_ct_NMEDIT
12064 fi
12065else
12066 NMEDIT="$ac_cv_prog_NMEDIT"
12067fi
12068
12069 if test -n "$ac_tool_prefix"; then
12070 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12071set dummy ${ac_tool_prefix}lipo; ac_word=$2
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012074if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012075 $as_echo_n "(cached) " >&6
12076else
12077 if test -n "$LIPO"; then
12078 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12087 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091done
12092 done
12093IFS=$as_save_IFS
12094
12095fi
12096fi
12097LIPO=$ac_cv_prog_LIPO
12098if test -n "$LIPO"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12100$as_echo "$LIPO" >&6; }
12101else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
12104fi
12105
12106
12107fi
12108if test -z "$ac_cv_prog_LIPO"; then
12109 ac_ct_LIPO=$LIPO
12110 # Extract the first word of "lipo", so it can be a program name with args.
12111set dummy lipo; ac_word=$2
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012114if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012115 $as_echo_n "(cached) " >&6
12116else
12117 if test -n "$ac_ct_LIPO"; then
12118 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12119else
12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121for as_dir in $PATH
12122do
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12127 ac_cv_prog_ac_ct_LIPO="lipo"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 break 2
12130 fi
12131done
12132 done
12133IFS=$as_save_IFS
12134
12135fi
12136fi
12137ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12138if test -n "$ac_ct_LIPO"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12140$as_echo "$ac_ct_LIPO" >&6; }
12141else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143$as_echo "no" >&6; }
12144fi
12145
12146 if test "x$ac_ct_LIPO" = x; then
12147 LIPO=":"
12148 else
12149 case $cross_compiling:$ac_tool_warned in
12150yes:)
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12153ac_tool_warned=yes ;;
12154esac
12155 LIPO=$ac_ct_LIPO
12156 fi
12157else
12158 LIPO="$ac_cv_prog_LIPO"
12159fi
12160
12161 if test -n "$ac_tool_prefix"; then
12162 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12163set dummy ${ac_tool_prefix}otool; ac_word=$2
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012166if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012167 $as_echo_n "(cached) " >&6
12168else
12169 if test -n "$OTOOL"; then
12170 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12171else
12172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173for as_dir in $PATH
12174do
12175 IFS=$as_save_IFS
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12179 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 break 2
12182 fi
12183done
12184 done
12185IFS=$as_save_IFS
12186
12187fi
12188fi
12189OTOOL=$ac_cv_prog_OTOOL
12190if test -n "$OTOOL"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12192$as_echo "$OTOOL" >&6; }
12193else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
12196fi
12197
12198
12199fi
12200if test -z "$ac_cv_prog_OTOOL"; then
12201 ac_ct_OTOOL=$OTOOL
12202 # Extract the first word of "otool", so it can be a program name with args.
12203set dummy otool; ac_word=$2
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012206if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012207 $as_echo_n "(cached) " >&6
12208else
12209 if test -n "$ac_ct_OTOOL"; then
12210 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12211else
12212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213for as_dir in $PATH
12214do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219 ac_cv_prog_ac_ct_OTOOL="otool"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12222 fi
12223done
12224 done
12225IFS=$as_save_IFS
12226
12227fi
12228fi
12229ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12230if test -n "$ac_ct_OTOOL"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12232$as_echo "$ac_ct_OTOOL" >&6; }
12233else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235$as_echo "no" >&6; }
12236fi
12237
12238 if test "x$ac_ct_OTOOL" = x; then
12239 OTOOL=":"
12240 else
12241 case $cross_compiling:$ac_tool_warned in
12242yes:)
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12245ac_tool_warned=yes ;;
12246esac
12247 OTOOL=$ac_ct_OTOOL
12248 fi
12249else
12250 OTOOL="$ac_cv_prog_OTOOL"
12251fi
12252
12253 if test -n "$ac_tool_prefix"; then
12254 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12255set dummy ${ac_tool_prefix}otool64; ac_word=$2
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012258if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012259 $as_echo_n "(cached) " >&6
12260else
12261 if test -n "$OTOOL64"; then
12262 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12263else
12264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265for as_dir in $PATH
12266do
12267 IFS=$as_save_IFS
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 break 2
12274 fi
12275done
12276 done
12277IFS=$as_save_IFS
12278
12279fi
12280fi
12281OTOOL64=$ac_cv_prog_OTOOL64
12282if test -n "$OTOOL64"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12284$as_echo "$OTOOL64" >&6; }
12285else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287$as_echo "no" >&6; }
12288fi
12289
12290
12291fi
12292if test -z "$ac_cv_prog_OTOOL64"; then
12293 ac_ct_OTOOL64=$OTOOL64
12294 # Extract the first word of "otool64", so it can be a program name with args.
12295set dummy otool64; ac_word=$2
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012298if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012299 $as_echo_n "(cached) " >&6
12300else
12301 if test -n "$ac_ct_OTOOL64"; then
12302 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12303else
12304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305for as_dir in $PATH
12306do
12307 IFS=$as_save_IFS
12308 test -z "$as_dir" && as_dir=.
12309 for ac_exec_ext in '' $ac_executable_extensions; do
12310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12311 ac_cv_prog_ac_ct_OTOOL64="otool64"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313 break 2
12314 fi
12315done
12316 done
12317IFS=$as_save_IFS
12318
12319fi
12320fi
12321ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12322if test -n "$ac_ct_OTOOL64"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12324$as_echo "$ac_ct_OTOOL64" >&6; }
12325else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328fi
12329
12330 if test "x$ac_ct_OTOOL64" = x; then
12331 OTOOL64=":"
12332 else
12333 case $cross_compiling:$ac_tool_warned in
12334yes:)
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12337ac_tool_warned=yes ;;
12338esac
12339 OTOOL64=$ac_ct_OTOOL64
12340 fi
12341else
12342 OTOOL64="$ac_cv_prog_OTOOL64"
12343fi
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12372$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012373if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012374 $as_echo_n "(cached) " >&6
12375else
12376 lt_cv_apple_cc_single_mod=no
12377 if test -z "${LT_MULTI_MODULE}"; then
12378 # By default we will add the -single_module flag. You can override
12379 # by either setting the environment variable LT_MULTI_MODULE
12380 # non-empty at configure time, or by adding -multi_module to the
12381 # link flags.
12382 rm -rf libconftest.dylib*
12383 echo "int foo(void){return 1;}" > conftest.c
12384 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12385-dynamiclib -Wl,-single_module conftest.c" >&5
12386 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12387 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12388 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012389 # If there is a non-empty error log, and "single_module"
12390 # appears in it, assume the flag caused a linker warning
12391 if test -s conftest.err && $GREP single_module conftest.err; then
12392 cat conftest.err >&5
12393 # Otherwise, if the output was created with a 0 exit code from
12394 # the compiler, it worked.
12395 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012396 lt_cv_apple_cc_single_mod=yes
12397 else
12398 cat conftest.err >&5
12399 fi
12400 rm -rf libconftest.dylib*
12401 rm -f conftest.*
12402 fi
12403fi
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12405$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012406
cristy73bd4a52010-10-05 11:24:23 +000012407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12408$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012409if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012410 $as_echo_n "(cached) " >&6
12411else
12412 lt_cv_ld_exported_symbols_list=no
12413 save_LDFLAGS=$LDFLAGS
12414 echo "_main" > conftest.sym
12415 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h. */
12418
12419int
12420main ()
12421{
12422
12423 ;
12424 return 0;
12425}
12426_ACEOF
12427if ac_fn_c_try_link "$LINENO"; then :
12428 lt_cv_ld_exported_symbols_list=yes
12429else
12430 lt_cv_ld_exported_symbols_list=no
12431fi
12432rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LDFLAGS="$save_LDFLAGS"
12435
12436fi
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12438$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012439
cristy0c60a692010-11-04 01:09:47 +000012440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12441$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012442if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012443 $as_echo_n "(cached) " >&6
12444else
12445 lt_cv_ld_force_load=no
12446 cat > conftest.c << _LT_EOF
12447int forced_loaded() { return 2;}
12448_LT_EOF
12449 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12450 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12451 echo "$AR cru libconftest.a conftest.o" >&5
12452 $AR cru libconftest.a conftest.o 2>&5
12453 echo "$RANLIB libconftest.a" >&5
12454 $RANLIB libconftest.a 2>&5
12455 cat > conftest.c << _LT_EOF
12456int main() { return 0;}
12457_LT_EOF
12458 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12459 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12460 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012461 if test -s conftest.err && $GREP force_load conftest.err; then
12462 cat conftest.err >&5
12463 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012464 lt_cv_ld_force_load=yes
12465 else
12466 cat conftest.err >&5
12467 fi
12468 rm -f conftest.err libconftest.a conftest conftest.c
12469 rm -rf conftest.dSYM
12470
12471fi
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12473$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012474 case $host_os in
12475 rhapsody* | darwin1.[012])
12476 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12477 darwin1.*)
12478 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12479 darwin*) # darwin 5.x on
12480 # if running on 10.5 or later, the deployment target defaults
12481 # to the OS version, if on x86, and 10.4, the deployment
12482 # target defaults to 10.4. Don't you love it?
12483 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12484 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12485 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12486 10.[012]*)
12487 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12488 10.*)
12489 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12490 esac
12491 ;;
12492 esac
12493 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12494 _lt_dar_single_mod='$single_module'
12495 fi
12496 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12497 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12498 else
12499 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12500 fi
cristy0c60a692010-11-04 01:09:47 +000012501 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012502 _lt_dsymutil='~$DSYMUTIL $lib || :'
12503 else
12504 _lt_dsymutil=
12505 fi
12506 ;;
12507 esac
12508
12509for ac_header in dlfcn.h
12510do :
12511 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12512"
cristyda16f162011-02-19 23:52:17 +000012513if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012514 cat >>confdefs.h <<_ACEOF
12515#define HAVE_DLFCN_H 1
12516_ACEOF
12517
12518fi
12519
12520done
12521
12522
12523
cristy73bd4a52010-10-05 11:24:23 +000012524
cristyda16f162011-02-19 23:52:17 +000012525func_stripname_cnf ()
12526{
12527 case ${2} in
12528 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12529 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12530 esac
12531} # func_stripname_cnf
12532
12533
12534
cristy73bd4a52010-10-05 11:24:23 +000012535
12536
12537# Set options
12538enable_win32_dll=yes
12539
12540case $host in
cristy0c60a692010-11-04 01:09:47 +000012541*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012542 if test -n "$ac_tool_prefix"; then
12543 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12544set dummy ${ac_tool_prefix}as; ac_word=$2
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012547if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012548 $as_echo_n "(cached) " >&6
12549else
12550 if test -n "$AS"; then
12551 ac_cv_prog_AS="$AS" # Let the user override the test.
12552else
12553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in $PATH
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12560 ac_cv_prog_AS="${ac_tool_prefix}as"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12563 fi
12564done
12565 done
12566IFS=$as_save_IFS
12567
12568fi
12569fi
12570AS=$ac_cv_prog_AS
12571if test -n "$AS"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12573$as_echo "$AS" >&6; }
12574else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576$as_echo "no" >&6; }
12577fi
12578
12579
12580fi
12581if test -z "$ac_cv_prog_AS"; then
12582 ac_ct_AS=$AS
12583 # Extract the first word of "as", so it can be a program name with args.
12584set dummy as; ac_word=$2
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012587if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012588 $as_echo_n "(cached) " >&6
12589else
12590 if test -n "$ac_ct_AS"; then
12591 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12592else
12593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594for as_dir in $PATH
12595do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_prog_ac_ct_AS="as"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604done
12605 done
12606IFS=$as_save_IFS
12607
12608fi
12609fi
12610ac_ct_AS=$ac_cv_prog_ac_ct_AS
12611if test -n "$ac_ct_AS"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12613$as_echo "$ac_ct_AS" >&6; }
12614else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616$as_echo "no" >&6; }
12617fi
12618
12619 if test "x$ac_ct_AS" = x; then
12620 AS="false"
12621 else
12622 case $cross_compiling:$ac_tool_warned in
12623yes:)
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12626ac_tool_warned=yes ;;
12627esac
12628 AS=$ac_ct_AS
12629 fi
12630else
12631 AS="$ac_cv_prog_AS"
12632fi
12633
12634 if test -n "$ac_tool_prefix"; then
12635 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12636set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012639if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012640 $as_echo_n "(cached) " >&6
12641else
12642 if test -n "$DLLTOOL"; then
12643 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12644else
12645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646for as_dir in $PATH
12647do
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12655 fi
12656done
12657 done
12658IFS=$as_save_IFS
12659
12660fi
12661fi
12662DLLTOOL=$ac_cv_prog_DLLTOOL
12663if test -n "$DLLTOOL"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12665$as_echo "$DLLTOOL" >&6; }
12666else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
12669fi
12670
12671
12672fi
12673if test -z "$ac_cv_prog_DLLTOOL"; then
12674 ac_ct_DLLTOOL=$DLLTOOL
12675 # Extract the first word of "dlltool", so it can be a program name with args.
12676set dummy dlltool; ac_word=$2
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012679if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012680 $as_echo_n "(cached) " >&6
12681else
12682 if test -n "$ac_ct_DLLTOOL"; then
12683 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12684else
12685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12692 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12695 fi
12696done
12697 done
12698IFS=$as_save_IFS
12699
12700fi
12701fi
12702ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12703if test -n "$ac_ct_DLLTOOL"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12705$as_echo "$ac_ct_DLLTOOL" >&6; }
12706else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
12709fi
12710
12711 if test "x$ac_ct_DLLTOOL" = x; then
12712 DLLTOOL="false"
12713 else
12714 case $cross_compiling:$ac_tool_warned in
12715yes:)
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12718ac_tool_warned=yes ;;
12719esac
12720 DLLTOOL=$ac_ct_DLLTOOL
12721 fi
12722else
12723 DLLTOOL="$ac_cv_prog_DLLTOOL"
12724fi
12725
12726 if test -n "$ac_tool_prefix"; then
12727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12728set dummy ${ac_tool_prefix}objdump; ac_word=$2
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012731if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012732 $as_echo_n "(cached) " >&6
12733else
12734 if test -n "$OBJDUMP"; then
12735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12736else
12737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738for as_dir in $PATH
12739do
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12747 fi
12748done
12749 done
12750IFS=$as_save_IFS
12751
12752fi
12753fi
12754OBJDUMP=$ac_cv_prog_OBJDUMP
12755if test -n "$OBJDUMP"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12757$as_echo "$OBJDUMP" >&6; }
12758else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761fi
12762
12763
12764fi
12765if test -z "$ac_cv_prog_OBJDUMP"; then
12766 ac_ct_OBJDUMP=$OBJDUMP
12767 # Extract the first word of "objdump", so it can be a program name with args.
12768set dummy objdump; ac_word=$2
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012771if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012772 $as_echo_n "(cached) " >&6
12773else
12774 if test -n "$ac_ct_OBJDUMP"; then
12775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788done
12789 done
12790IFS=$as_save_IFS
12791
12792fi
12793fi
12794ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12795if test -n "$ac_ct_OBJDUMP"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12797$as_echo "$ac_ct_OBJDUMP" >&6; }
12798else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
12801fi
12802
12803 if test "x$ac_ct_OBJDUMP" = x; then
12804 OBJDUMP="false"
12805 else
12806 case $cross_compiling:$ac_tool_warned in
12807yes:)
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12810ac_tool_warned=yes ;;
12811esac
12812 OBJDUMP=$ac_ct_OBJDUMP
12813 fi
12814else
12815 OBJDUMP="$ac_cv_prog_OBJDUMP"
12816fi
12817
12818 ;;
12819esac
12820
12821test -z "$AS" && AS=as
12822
12823
12824
12825
12826
12827test -z "$DLLTOOL" && DLLTOOL=dlltool
12828
12829
12830
12831
12832
12833test -z "$OBJDUMP" && OBJDUMP=objdump
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843 # Check whether --enable-shared was given.
12844if test "${enable_shared+set}" = set; then :
12845 enableval=$enable_shared; p=${PACKAGE-default}
12846 case $enableval in
12847 yes) enable_shared=yes ;;
12848 no) enable_shared=no ;;
12849 *)
12850 enable_shared=no
12851 # Look at the argument we got. We use all the common list separators.
12852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12853 for pkg in $enableval; do
12854 IFS="$lt_save_ifs"
12855 if test "X$pkg" = "X$p"; then
12856 enable_shared=yes
12857 fi
12858 done
12859 IFS="$lt_save_ifs"
12860 ;;
12861 esac
12862else
12863 enable_shared=yes
12864fi
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874 # Check whether --enable-static was given.
12875if test "${enable_static+set}" = set; then :
12876 enableval=$enable_static; p=${PACKAGE-default}
12877 case $enableval in
12878 yes) enable_static=yes ;;
12879 no) enable_static=no ;;
12880 *)
12881 enable_static=no
12882 # Look at the argument we got. We use all the common list separators.
12883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12884 for pkg in $enableval; do
12885 IFS="$lt_save_ifs"
12886 if test "X$pkg" = "X$p"; then
12887 enable_static=yes
12888 fi
12889 done
12890 IFS="$lt_save_ifs"
12891 ;;
12892 esac
12893else
12894 enable_static=yes
12895fi
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906# Check whether --with-pic was given.
12907if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000012908 withval=$with_pic; lt_p=${PACKAGE-default}
12909 case $withval in
12910 yes|no) pic_mode=$withval ;;
12911 *)
12912 pic_mode=default
12913 # Look at the argument we got. We use all the common list separators.
12914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12915 for lt_pkg in $withval; do
12916 IFS="$lt_save_ifs"
12917 if test "X$lt_pkg" = "X$lt_p"; then
12918 pic_mode=yes
12919 fi
12920 done
12921 IFS="$lt_save_ifs"
12922 ;;
12923 esac
cristy73bd4a52010-10-05 11:24:23 +000012924else
12925 pic_mode=default
12926fi
12927
12928
12929test -z "$pic_mode" && pic_mode=default
12930
12931
12932
12933
12934
12935
12936
12937 # Check whether --enable-fast-install was given.
12938if test "${enable_fast_install+set}" = set; then :
12939 enableval=$enable_fast_install; p=${PACKAGE-default}
12940 case $enableval in
12941 yes) enable_fast_install=yes ;;
12942 no) enable_fast_install=no ;;
12943 *)
12944 enable_fast_install=no
12945 # Look at the argument we got. We use all the common list separators.
12946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12947 for pkg in $enableval; do
12948 IFS="$lt_save_ifs"
12949 if test "X$pkg" = "X$p"; then
12950 enable_fast_install=yes
12951 fi
12952 done
12953 IFS="$lt_save_ifs"
12954 ;;
12955 esac
12956else
12957 enable_fast_install=yes
12958fi
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970# This can be used to rebuild libtool when needed
12971LIBTOOL_DEPS="$ltmain"
12972
12973# Always use our own libtool.
12974LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
cristy0c60a692010-11-04 01:09:47 +000013000
cristy99bd5232011-12-07 14:38:20 +000013001
13002
13003
13004
cristy73bd4a52010-10-05 11:24:23 +000013005test -z "$LN_S" && LN_S="ln -s"
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020if test -n "${ZSH_VERSION+set}" ; then
13021 setopt NO_GLOB_SUBST
13022fi
13023
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13025$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013026if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013027 $as_echo_n "(cached) " >&6
13028else
13029 rm -f .libs 2>/dev/null
13030mkdir .libs 2>/dev/null
13031if test -d .libs; then
13032 lt_cv_objdir=.libs
13033else
13034 # MS-DOS does not allow filenames that begin with a dot.
13035 lt_cv_objdir=_libs
13036fi
13037rmdir .libs 2>/dev/null
13038fi
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13040$as_echo "$lt_cv_objdir" >&6; }
13041objdir=$lt_cv_objdir
13042
13043
13044
13045
13046
13047cat >>confdefs.h <<_ACEOF
13048#define LT_OBJDIR "$lt_cv_objdir/"
13049_ACEOF
13050
13051
13052
13053
cristy73bd4a52010-10-05 11:24:23 +000013054case $host_os in
13055aix3*)
13056 # AIX sometimes has problems with the GCC collect2 program. For some
13057 # reason, if we set the COLLECT_NAMES environment variable, the problems
13058 # vanish in a puff of smoke.
13059 if test "X${COLLECT_NAMES+set}" != Xset; then
13060 COLLECT_NAMES=
13061 export COLLECT_NAMES
13062 fi
13063 ;;
13064esac
13065
cristy73bd4a52010-10-05 11:24:23 +000013066# Global variables:
13067ofile=libtool
13068can_build_shared=yes
13069
13070# All known linkers require a `.a' archive for static linking (except MSVC,
13071# which needs '.lib').
13072libext=a
13073
13074with_gnu_ld="$lt_cv_prog_gnu_ld"
13075
13076old_CC="$CC"
13077old_CFLAGS="$CFLAGS"
13078
13079# Set sane defaults for various variables
13080test -z "$CC" && CC=cc
13081test -z "$LTCC" && LTCC=$CC
13082test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13083test -z "$LD" && LD=ld
13084test -z "$ac_objext" && ac_objext=o
13085
13086for cc_temp in $compiler""; do
13087 case $cc_temp in
13088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13090 \-*) ;;
13091 *) break;;
13092 esac
13093done
cristy0c60a692010-11-04 01:09:47 +000013094cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013095
13096
13097# Only perform the check for file, if the check method requires it
13098test -z "$MAGIC_CMD" && MAGIC_CMD=file
13099case $deplibs_check_method in
13100file_magic*)
13101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13103$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013104if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013105 $as_echo_n "(cached) " >&6
13106else
13107 case $MAGIC_CMD in
13108[\\/*] | ?:[\\/]*)
13109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13110 ;;
13111*)
13112 lt_save_MAGIC_CMD="$MAGIC_CMD"
13113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13115 for ac_dir in $ac_dummy; do
13116 IFS="$lt_save_ifs"
13117 test -z "$ac_dir" && ac_dir=.
13118 if test -f $ac_dir/${ac_tool_prefix}file; then
13119 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13120 if test -n "$file_magic_test_file"; then
13121 case $deplibs_check_method in
13122 "file_magic "*)
13123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13126 $EGREP "$file_magic_regex" > /dev/null; then
13127 :
13128 else
13129 cat <<_LT_EOF 1>&2
13130
13131*** Warning: the command libtool uses to detect shared libraries,
13132*** $file_magic_cmd, produces output that libtool cannot recognize.
13133*** The result is that libtool may fail to recognize shared libraries
13134*** as such. This will affect the creation of libtool libraries that
13135*** depend on shared libraries, but programs linked with such libtool
13136*** libraries will work regardless of this problem. Nevertheless, you
13137*** may want to report the problem to your system manager and/or to
13138*** bug-libtool@gnu.org
13139
13140_LT_EOF
13141 fi ;;
13142 esac
13143 fi
13144 break
13145 fi
13146 done
13147 IFS="$lt_save_ifs"
13148 MAGIC_CMD="$lt_save_MAGIC_CMD"
13149 ;;
13150esac
13151fi
13152
13153MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13154if test -n "$MAGIC_CMD"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13156$as_echo "$MAGIC_CMD" >&6; }
13157else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
13160fi
13161
13162
13163
13164
13165
13166if test -z "$lt_cv_path_MAGIC_CMD"; then
13167 if test -n "$ac_tool_prefix"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13169$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013170if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013171 $as_echo_n "(cached) " >&6
13172else
13173 case $MAGIC_CMD in
13174[\\/*] | ?:[\\/]*)
13175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13176 ;;
13177*)
13178 lt_save_MAGIC_CMD="$MAGIC_CMD"
13179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13181 for ac_dir in $ac_dummy; do
13182 IFS="$lt_save_ifs"
13183 test -z "$ac_dir" && ac_dir=.
13184 if test -f $ac_dir/file; then
13185 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13186 if test -n "$file_magic_test_file"; then
13187 case $deplibs_check_method in
13188 "file_magic "*)
13189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13192 $EGREP "$file_magic_regex" > /dev/null; then
13193 :
13194 else
13195 cat <<_LT_EOF 1>&2
13196
13197*** Warning: the command libtool uses to detect shared libraries,
13198*** $file_magic_cmd, produces output that libtool cannot recognize.
13199*** The result is that libtool may fail to recognize shared libraries
13200*** as such. This will affect the creation of libtool libraries that
13201*** depend on shared libraries, but programs linked with such libtool
13202*** libraries will work regardless of this problem. Nevertheless, you
13203*** may want to report the problem to your system manager and/or to
13204*** bug-libtool@gnu.org
13205
13206_LT_EOF
13207 fi ;;
13208 esac
13209 fi
13210 break
13211 fi
13212 done
13213 IFS="$lt_save_ifs"
13214 MAGIC_CMD="$lt_save_MAGIC_CMD"
13215 ;;
13216esac
13217fi
13218
13219MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13220if test -n "$MAGIC_CMD"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13222$as_echo "$MAGIC_CMD" >&6; }
13223else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225$as_echo "no" >&6; }
13226fi
13227
13228
13229 else
13230 MAGIC_CMD=:
13231 fi
13232fi
13233
13234 fi
13235 ;;
13236esac
13237
13238# Use C for the default configuration in the libtool script
13239
13240lt_save_CC="$CC"
13241ac_ext=c
13242ac_cpp='$CPP $CPPFLAGS'
13243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245ac_compiler_gnu=$ac_cv_c_compiler_gnu
13246
13247
13248# Source file extension for C test sources.
13249ac_ext=c
13250
13251# Object file extension for compiled C test sources.
13252objext=o
13253objext=$objext
13254
13255# Code to be used in simple compile tests
13256lt_simple_compile_test_code="int some_variable = 0;"
13257
13258# Code to be used in simple link tests
13259lt_simple_link_test_code='int main(){return(0);}'
13260
13261
13262
13263
13264
13265
13266
13267# If no C compiler was specified, use CC.
13268LTCC=${LTCC-"$CC"}
13269
13270# If no C compiler flags were specified, use CFLAGS.
13271LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13272
13273# Allow CC to be a program name with arguments.
13274compiler=$CC
13275
13276# Save the default compiler, since it gets overwritten when the other
13277# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13278compiler_DEFAULT=$CC
13279
13280# save warnings/boilerplate of simple test code
13281ac_outfile=conftest.$ac_objext
13282echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13283eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13284_lt_compiler_boilerplate=`cat conftest.err`
13285$RM conftest*
13286
13287ac_outfile=conftest.$ac_objext
13288echo "$lt_simple_link_test_code" >conftest.$ac_ext
13289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13290_lt_linker_boilerplate=`cat conftest.err`
13291$RM -r conftest*
13292
13293
13294## CAVEAT EMPTOR:
13295## There is no encapsulation within the following macros, do not change
13296## the running order or otherwise move them around unless you know exactly
13297## what you are doing...
13298if test -n "$compiler"; then
13299
13300lt_prog_compiler_no_builtin_flag=
13301
13302if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013303 case $cc_basename in
13304 nvcc*)
13305 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13306 *)
13307 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13308 esac
cristy73bd4a52010-10-05 11:24:23 +000013309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13311$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013312if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013313 $as_echo_n "(cached) " >&6
13314else
13315 lt_cv_prog_compiler_rtti_exceptions=no
13316 ac_outfile=conftest.$ac_objext
13317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13318 lt_compiler_flag="-fno-rtti -fno-exceptions"
13319 # Insert the option either (1) after the last *FLAGS variable, or
13320 # (2) before a word containing "conftest.", or (3) at the end.
13321 # Note that $ac_compile itself does not contain backslashes and begins
13322 # with a dollar sign (not a hyphen), so the echo should work correctly.
13323 # The option is referenced via a variable to avoid confusing sed.
13324 lt_compile=`echo "$ac_compile" | $SED \
13325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13327 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013329 (eval "$lt_compile" 2>conftest.err)
13330 ac_status=$?
13331 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013333 if (exit $ac_status) && test -s "$ac_outfile"; then
13334 # The compiler can only warn and ignore the option if not recognized
13335 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13339 lt_cv_prog_compiler_rtti_exceptions=yes
13340 fi
13341 fi
13342 $RM conftest*
13343
13344fi
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13346$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13347
13348if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13349 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13350else
13351 :
13352fi
13353
13354fi
13355
13356
13357
13358
13359
13360
13361 lt_prog_compiler_wl=
13362lt_prog_compiler_pic=
13363lt_prog_compiler_static=
13364
cristy73bd4a52010-10-05 11:24:23 +000013365
13366 if test "$GCC" = yes; then
13367 lt_prog_compiler_wl='-Wl,'
13368 lt_prog_compiler_static='-static'
13369
13370 case $host_os in
13371 aix*)
13372 # All AIX code is PIC.
13373 if test "$host_cpu" = ia64; then
13374 # AIX 5 now supports IA64 processor
13375 lt_prog_compiler_static='-Bstatic'
13376 fi
13377 ;;
13378
13379 amigaos*)
13380 case $host_cpu in
13381 powerpc)
13382 # see comment about AmigaOS4 .so support
13383 lt_prog_compiler_pic='-fPIC'
13384 ;;
13385 m68k)
13386 # FIXME: we need at least 68020 code to build shared libraries, but
13387 # adding the `-m68020' flag to GCC prevents building anything better,
13388 # like `-m68040'.
13389 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13390 ;;
13391 esac
13392 ;;
13393
13394 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13395 # PIC is the default for these OSes.
13396 ;;
13397
13398 mingw* | cygwin* | pw32* | os2* | cegcc*)
13399 # This hack is so that the source file can tell whether it is being
13400 # built for inclusion in a dll (and should export symbols for example).
13401 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13402 # (--disable-auto-import) libraries
13403 lt_prog_compiler_pic='-DDLL_EXPORT'
13404 ;;
13405
13406 darwin* | rhapsody*)
13407 # PIC is the default on this platform
13408 # Common symbols not allowed in MH_DYLIB files
13409 lt_prog_compiler_pic='-fno-common'
13410 ;;
13411
cristy0c60a692010-11-04 01:09:47 +000013412 haiku*)
13413 # PIC is the default for Haiku.
13414 # The "-static" flag exists, but is broken.
13415 lt_prog_compiler_static=
13416 ;;
13417
cristy73bd4a52010-10-05 11:24:23 +000013418 hpux*)
13419 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13420 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13421 # sets the default TLS model and affects inlining.
13422 case $host_cpu in
13423 hppa*64*)
13424 # +Z the default
13425 ;;
13426 *)
13427 lt_prog_compiler_pic='-fPIC'
13428 ;;
13429 esac
13430 ;;
13431
13432 interix[3-9]*)
13433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13434 # Instead, we relocate shared libraries at runtime.
13435 ;;
13436
13437 msdosdjgpp*)
13438 # Just because we use GCC doesn't mean we suddenly get shared libraries
13439 # on systems that don't support them.
13440 lt_prog_compiler_can_build_shared=no
13441 enable_shared=no
13442 ;;
13443
13444 *nto* | *qnx*)
13445 # QNX uses GNU C++, but need to define -shared option too, otherwise
13446 # it will coredump.
13447 lt_prog_compiler_pic='-fPIC -shared'
13448 ;;
13449
13450 sysv4*MP*)
13451 if test -d /usr/nec; then
13452 lt_prog_compiler_pic=-Kconform_pic
13453 fi
13454 ;;
13455
13456 *)
13457 lt_prog_compiler_pic='-fPIC'
13458 ;;
13459 esac
cristy0c60a692010-11-04 01:09:47 +000013460
13461 case $cc_basename in
13462 nvcc*) # Cuda Compiler Driver 2.2
13463 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013464 if test -n "$lt_prog_compiler_pic"; then
13465 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13466 fi
cristy0c60a692010-11-04 01:09:47 +000013467 ;;
13468 esac
cristy73bd4a52010-10-05 11:24:23 +000013469 else
13470 # PORTME Check for flag to pass linker flags through the system compiler.
13471 case $host_os in
13472 aix*)
13473 lt_prog_compiler_wl='-Wl,'
13474 if test "$host_cpu" = ia64; then
13475 # AIX 5 now supports IA64 processor
13476 lt_prog_compiler_static='-Bstatic'
13477 else
13478 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13479 fi
13480 ;;
13481
13482 mingw* | cygwin* | pw32* | os2* | cegcc*)
13483 # This hack is so that the source file can tell whether it is being
13484 # built for inclusion in a dll (and should export symbols for example).
13485 lt_prog_compiler_pic='-DDLL_EXPORT'
13486 ;;
13487
13488 hpux9* | hpux10* | hpux11*)
13489 lt_prog_compiler_wl='-Wl,'
13490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13491 # not for PA HP-UX.
13492 case $host_cpu in
13493 hppa*64*|ia64*)
13494 # +Z the default
13495 ;;
13496 *)
13497 lt_prog_compiler_pic='+Z'
13498 ;;
13499 esac
13500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13501 lt_prog_compiler_static='${wl}-a ${wl}archive'
13502 ;;
13503
13504 irix5* | irix6* | nonstopux*)
13505 lt_prog_compiler_wl='-Wl,'
13506 # PIC (with -KPIC) is the default.
13507 lt_prog_compiler_static='-non_shared'
13508 ;;
13509
cristy0c60a692010-11-04 01:09:47 +000013510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013511 case $cc_basename in
13512 # old Intel for x86_64 which still supported -KPIC.
13513 ecc*)
13514 lt_prog_compiler_wl='-Wl,'
13515 lt_prog_compiler_pic='-KPIC'
13516 lt_prog_compiler_static='-static'
13517 ;;
13518 # icc used to be incompatible with GCC.
13519 # ICC 10 doesn't accept -KPIC any more.
13520 icc* | ifort*)
13521 lt_prog_compiler_wl='-Wl,'
13522 lt_prog_compiler_pic='-fPIC'
13523 lt_prog_compiler_static='-static'
13524 ;;
13525 # Lahey Fortran 8.1.
13526 lf95*)
13527 lt_prog_compiler_wl='-Wl,'
13528 lt_prog_compiler_pic='--shared'
13529 lt_prog_compiler_static='--static'
13530 ;;
cristyda16f162011-02-19 23:52:17 +000013531 nagfor*)
13532 # NAG Fortran compiler
13533 lt_prog_compiler_wl='-Wl,-Wl,,'
13534 lt_prog_compiler_pic='-PIC'
13535 lt_prog_compiler_static='-Bstatic'
13536 ;;
cristy0c60a692010-11-04 01:09:47 +000013537 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013538 # Portland Group compilers (*not* the Pentium gcc compiler,
13539 # which looks to be a dead project)
13540 lt_prog_compiler_wl='-Wl,'
13541 lt_prog_compiler_pic='-fpic'
13542 lt_prog_compiler_static='-Bstatic'
13543 ;;
13544 ccc*)
13545 lt_prog_compiler_wl='-Wl,'
13546 # All Alpha code is PIC.
13547 lt_prog_compiler_static='-non_shared'
13548 ;;
cristy0c60a692010-11-04 01:09:47 +000013549 xl* | bgxl* | bgf* | mpixl*)
13550 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013551 lt_prog_compiler_wl='-Wl,'
13552 lt_prog_compiler_pic='-qpic'
13553 lt_prog_compiler_static='-qstaticlink'
13554 ;;
13555 *)
13556 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000013557 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000013558 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13559 lt_prog_compiler_pic='-KPIC'
13560 lt_prog_compiler_static='-Bstatic'
13561 lt_prog_compiler_wl=''
13562 ;;
cristy99bd5232011-12-07 14:38:20 +000013563 *Sun\ F* | *Sun*Fortran*)
13564 lt_prog_compiler_pic='-KPIC'
13565 lt_prog_compiler_static='-Bstatic'
13566 lt_prog_compiler_wl='-Qoption ld '
13567 ;;
cristy73bd4a52010-10-05 11:24:23 +000013568 *Sun\ C*)
13569 # Sun C 5.9
13570 lt_prog_compiler_pic='-KPIC'
13571 lt_prog_compiler_static='-Bstatic'
13572 lt_prog_compiler_wl='-Wl,'
13573 ;;
cristy99bd5232011-12-07 14:38:20 +000013574 *Intel*\ [CF]*Compiler*)
13575 lt_prog_compiler_wl='-Wl,'
13576 lt_prog_compiler_pic='-fPIC'
13577 lt_prog_compiler_static='-static'
13578 ;;
13579 *Portland\ Group*)
13580 lt_prog_compiler_wl='-Wl,'
13581 lt_prog_compiler_pic='-fpic'
13582 lt_prog_compiler_static='-Bstatic'
13583 ;;
cristy73bd4a52010-10-05 11:24:23 +000013584 esac
13585 ;;
13586 esac
13587 ;;
13588
13589 newsos6)
13590 lt_prog_compiler_pic='-KPIC'
13591 lt_prog_compiler_static='-Bstatic'
13592 ;;
13593
13594 *nto* | *qnx*)
13595 # QNX uses GNU C++, but need to define -shared option too, otherwise
13596 # it will coredump.
13597 lt_prog_compiler_pic='-fPIC -shared'
13598 ;;
13599
13600 osf3* | osf4* | osf5*)
13601 lt_prog_compiler_wl='-Wl,'
13602 # All OSF/1 code is PIC.
13603 lt_prog_compiler_static='-non_shared'
13604 ;;
13605
13606 rdos*)
13607 lt_prog_compiler_static='-non_shared'
13608 ;;
13609
13610 solaris*)
13611 lt_prog_compiler_pic='-KPIC'
13612 lt_prog_compiler_static='-Bstatic'
13613 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013614 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013615 lt_prog_compiler_wl='-Qoption ld ';;
13616 *)
13617 lt_prog_compiler_wl='-Wl,';;
13618 esac
13619 ;;
13620
13621 sunos4*)
13622 lt_prog_compiler_wl='-Qoption ld '
13623 lt_prog_compiler_pic='-PIC'
13624 lt_prog_compiler_static='-Bstatic'
13625 ;;
13626
13627 sysv4 | sysv4.2uw2* | sysv4.3*)
13628 lt_prog_compiler_wl='-Wl,'
13629 lt_prog_compiler_pic='-KPIC'
13630 lt_prog_compiler_static='-Bstatic'
13631 ;;
13632
13633 sysv4*MP*)
13634 if test -d /usr/nec ;then
13635 lt_prog_compiler_pic='-Kconform_pic'
13636 lt_prog_compiler_static='-Bstatic'
13637 fi
13638 ;;
13639
13640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13641 lt_prog_compiler_wl='-Wl,'
13642 lt_prog_compiler_pic='-KPIC'
13643 lt_prog_compiler_static='-Bstatic'
13644 ;;
13645
13646 unicos*)
13647 lt_prog_compiler_wl='-Wl,'
13648 lt_prog_compiler_can_build_shared=no
13649 ;;
13650
13651 uts4*)
13652 lt_prog_compiler_pic='-pic'
13653 lt_prog_compiler_static='-Bstatic'
13654 ;;
13655
13656 *)
13657 lt_prog_compiler_can_build_shared=no
13658 ;;
13659 esac
13660 fi
13661
13662case $host_os in
13663 # For platforms which do not support PIC, -DPIC is meaningless:
13664 *djgpp*)
13665 lt_prog_compiler_pic=
13666 ;;
13667 *)
13668 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13669 ;;
13670esac
cristy73bd4a52010-10-05 11:24:23 +000013671
cristyda16f162011-02-19 23:52:17 +000013672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13673$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13674if ${lt_cv_prog_compiler_pic+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676else
13677 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13678fi
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13680$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13681lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013682
13683#
13684# Check to make sure the PIC flag actually works.
13685#
13686if test -n "$lt_prog_compiler_pic"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13688$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013689if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013690 $as_echo_n "(cached) " >&6
13691else
13692 lt_cv_prog_compiler_pic_works=no
13693 ac_outfile=conftest.$ac_objext
13694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13696 # Insert the option either (1) after the last *FLAGS variable, or
13697 # (2) before a word containing "conftest.", or (3) at the end.
13698 # Note that $ac_compile itself does not contain backslashes and begins
13699 # with a dollar sign (not a hyphen), so the echo should work correctly.
13700 # The option is referenced via a variable to avoid confusing sed.
13701 lt_compile=`echo "$ac_compile" | $SED \
13702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13704 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013706 (eval "$lt_compile" 2>conftest.err)
13707 ac_status=$?
13708 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013710 if (exit $ac_status) && test -s "$ac_outfile"; then
13711 # The compiler can only warn and ignore the option if not recognized
13712 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13716 lt_cv_prog_compiler_pic_works=yes
13717 fi
13718 fi
13719 $RM conftest*
13720
13721fi
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13723$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13724
13725if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13726 case $lt_prog_compiler_pic in
13727 "" | " "*) ;;
13728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13729 esac
13730else
13731 lt_prog_compiler_pic=
13732 lt_prog_compiler_can_build_shared=no
13733fi
13734
13735fi
13736
13737
13738
13739
13740
13741
cristyda16f162011-02-19 23:52:17 +000013742
13743
13744
13745
13746
cristy73bd4a52010-10-05 11:24:23 +000013747#
13748# Check to make sure the static flag actually works.
13749#
13750wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13752$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013753if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013754 $as_echo_n "(cached) " >&6
13755else
13756 lt_cv_prog_compiler_static_works=no
13757 save_LDFLAGS="$LDFLAGS"
13758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13759 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13761 # The linker can only warn and ignore the option if not recognized
13762 # So say no if there are warnings
13763 if test -s conftest.err; then
13764 # Append any errors to the config.log.
13765 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013766 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13768 if diff conftest.exp conftest.er2 >/dev/null; then
13769 lt_cv_prog_compiler_static_works=yes
13770 fi
13771 else
13772 lt_cv_prog_compiler_static_works=yes
13773 fi
13774 fi
13775 $RM -r conftest*
13776 LDFLAGS="$save_LDFLAGS"
13777
13778fi
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13780$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13781
13782if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13783 :
13784else
13785 lt_prog_compiler_static=
13786fi
13787
13788
13789
13790
13791
13792
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13795$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013796if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013797 $as_echo_n "(cached) " >&6
13798else
13799 lt_cv_prog_compiler_c_o=no
13800 $RM -r conftest 2>/dev/null
13801 mkdir conftest
13802 cd conftest
13803 mkdir out
13804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13805
13806 lt_compiler_flag="-o out/conftest2.$ac_objext"
13807 # Insert the option either (1) after the last *FLAGS variable, or
13808 # (2) before a word containing "conftest.", or (3) at the end.
13809 # Note that $ac_compile itself does not contain backslashes and begins
13810 # with a dollar sign (not a hyphen), so the echo should work correctly.
13811 lt_compile=`echo "$ac_compile" | $SED \
13812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13814 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013816 (eval "$lt_compile" 2>out/conftest.err)
13817 ac_status=$?
13818 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13821 then
13822 # The compiler can only warn and ignore the option if not recognized
13823 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13827 lt_cv_prog_compiler_c_o=yes
13828 fi
13829 fi
13830 chmod u+w . 2>&5
13831 $RM conftest*
13832 # SGI C++ compiler will create directory out/ii_files/ for
13833 # template instantiation
13834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13835 $RM out/* && rmdir out
13836 cd ..
13837 $RM -r conftest
13838 $RM conftest*
13839
13840fi
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13842$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13843
13844
13845
13846
13847
13848
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13850$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013851if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013852 $as_echo_n "(cached) " >&6
13853else
13854 lt_cv_prog_compiler_c_o=no
13855 $RM -r conftest 2>/dev/null
13856 mkdir conftest
13857 cd conftest
13858 mkdir out
13859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13860
13861 lt_compiler_flag="-o out/conftest2.$ac_objext"
13862 # Insert the option either (1) after the last *FLAGS variable, or
13863 # (2) before a word containing "conftest.", or (3) at the end.
13864 # Note that $ac_compile itself does not contain backslashes and begins
13865 # with a dollar sign (not a hyphen), so the echo should work correctly.
13866 lt_compile=`echo "$ac_compile" | $SED \
13867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13869 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013871 (eval "$lt_compile" 2>out/conftest.err)
13872 ac_status=$?
13873 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13876 then
13877 # The compiler can only warn and ignore the option if not recognized
13878 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13882 lt_cv_prog_compiler_c_o=yes
13883 fi
13884 fi
13885 chmod u+w . 2>&5
13886 $RM conftest*
13887 # SGI C++ compiler will create directory out/ii_files/ for
13888 # template instantiation
13889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13890 $RM out/* && rmdir out
13891 cd ..
13892 $RM -r conftest
13893 $RM conftest*
13894
13895fi
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13897$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13898
13899
13900
13901
13902hard_links="nottested"
13903if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13904 # do not overwrite the value of need_locks provided by the user
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13906$as_echo_n "checking if we can lock with hard links... " >&6; }
13907 hard_links=yes
13908 $RM conftest*
13909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13910 touch conftest.a
13911 ln conftest.a conftest.b 2>&5 || hard_links=no
13912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13914$as_echo "$hard_links" >&6; }
13915 if test "$hard_links" = no; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13917$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13918 need_locks=warn
13919 fi
13920else
13921 need_locks=no
13922fi
13923
13924
13925
13926
13927
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13930$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13931
13932 runpath_var=
13933 allow_undefined_flag=
13934 always_export_symbols=no
13935 archive_cmds=
13936 archive_expsym_cmds=
13937 compiler_needs_object=no
13938 enable_shared_with_static_runtimes=no
13939 export_dynamic_flag_spec=
13940 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13941 hardcode_automatic=no
13942 hardcode_direct=no
13943 hardcode_direct_absolute=no
13944 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000013945 hardcode_libdir_separator=
13946 hardcode_minus_L=no
13947 hardcode_shlibpath_var=unsupported
13948 inherit_rpath=no
13949 link_all_deplibs=unknown
13950 module_cmds=
13951 module_expsym_cmds=
13952 old_archive_from_new_cmds=
13953 old_archive_from_expsyms_cmds=
13954 thread_safe_flag_spec=
13955 whole_archive_flag_spec=
13956 # include_expsyms should be a list of space-separated symbols to be *always*
13957 # included in the symbol list
13958 include_expsyms=
13959 # exclude_expsyms can be an extended regexp of symbols to exclude
13960 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13961 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13962 # as well as any symbol that contains `d'.
13963 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13964 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13965 # platforms (ab)use it in PIC code, but their linkers get confused if
13966 # the symbol is explicitly referenced. Since portable code cannot
13967 # rely on this symbol name, it's probably fine to never include it in
13968 # preloaded symbol tables.
13969 # Exclude shared library initialization/finalization symbols.
13970 extract_expsyms_cmds=
13971
13972 case $host_os in
13973 cygwin* | mingw* | pw32* | cegcc*)
13974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13975 # When not using gcc, we currently assume that we are using
13976 # Microsoft Visual C++.
13977 if test "$GCC" != yes; then
13978 with_gnu_ld=no
13979 fi
13980 ;;
13981 interix*)
13982 # we just hope/assume this is gcc and not c89 (= MSVC++)
13983 with_gnu_ld=yes
13984 ;;
13985 openbsd*)
13986 with_gnu_ld=no
13987 ;;
13988 esac
13989
13990 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013991
13992 # On some targets, GNU ld is compatible enough with the native linker
13993 # that we're better off using the native interface for both.
13994 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013995 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013996 case $host_os in
13997 aix*)
13998 # The AIX port of GNU ld has always aspired to compatibility
13999 # with the native linker. However, as the warning in the GNU ld
14000 # block says, versions before 2.19.5* couldn't really create working
14001 # shared libraries, regardless of the interface used.
14002 case `$LD -v 2>&1` in
14003 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14004 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14005 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14006 *)
14007 lt_use_gnu_ld_interface=yes
14008 ;;
14009 esac
14010 ;;
14011 *)
14012 lt_use_gnu_ld_interface=yes
14013 ;;
14014 esac
14015 fi
14016
14017 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014018 # If archive_cmds runs LD, not CC, wlarc should be empty
14019 wlarc='${wl}'
14020
14021 # Set some defaults for GNU ld with shared library support. These
14022 # are reset later if shared libraries are not supported. Putting them
14023 # here allows them to be overridden if necessary.
14024 runpath_var=LD_RUN_PATH
14025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14026 export_dynamic_flag_spec='${wl}--export-dynamic'
14027 # ancient GNU ld didn't support --whole-archive et. al.
14028 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14029 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14030 else
14031 whole_archive_flag_spec=
14032 fi
14033 supports_anon_versioning=no
14034 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014035 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14039 *\ 2.11.*) ;; # other 2.11 versions
14040 *) supports_anon_versioning=yes ;;
14041 esac
14042
14043 # See if GNU ld supports shared libraries.
14044 case $host_os in
14045 aix[3-9]*)
14046 # On AIX/PPC, the GNU linker is very broken
14047 if test "$host_cpu" != ia64; then
14048 ld_shlibs=no
14049 cat <<_LT_EOF 1>&2
14050
cristy0c60a692010-11-04 01:09:47 +000014051*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014052*** to be unable to reliably create shared libraries on AIX.
14053*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014054*** really care for shared libraries, you may want to install binutils
14055*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14056*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014057
14058_LT_EOF
14059 fi
14060 ;;
14061
14062 amigaos*)
14063 case $host_cpu in
14064 powerpc)
14065 # see comment about AmigaOS4 .so support
14066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 archive_expsym_cmds=''
14068 ;;
14069 m68k)
14070 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)'
14071 hardcode_libdir_flag_spec='-L$libdir'
14072 hardcode_minus_L=yes
14073 ;;
14074 esac
14075 ;;
14076
14077 beos*)
14078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14079 allow_undefined_flag=unsupported
14080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14081 # support --undefined. This deserves some investigation. FIXME
14082 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083 else
14084 ld_shlibs=no
14085 fi
14086 ;;
14087
14088 cygwin* | mingw* | pw32* | cegcc*)
14089 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14090 # as there is no search path for DLLs.
14091 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014092 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014093 allow_undefined_flag=unsupported
14094 always_export_symbols=no
14095 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014096 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'
14097 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 +000014098
14099 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14101 # If the export-symbols file already is a .def file (1st line
14102 # is EXPORTS), use it as is; otherwise, prepend...
14103 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14104 cp $export_symbols $output_objdir/$soname.def;
14105 else
14106 echo EXPORTS > $output_objdir/$soname.def;
14107 cat $export_symbols >> $output_objdir/$soname.def;
14108 fi~
14109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14110 else
14111 ld_shlibs=no
14112 fi
14113 ;;
14114
cristy0c60a692010-11-04 01:09:47 +000014115 haiku*)
14116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14117 link_all_deplibs=yes
14118 ;;
14119
cristy73bd4a52010-10-05 11:24:23 +000014120 interix[3-9]*)
14121 hardcode_direct=no
14122 hardcode_shlibpath_var=no
14123 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14124 export_dynamic_flag_spec='${wl}-E'
14125 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14126 # Instead, shared libraries are loaded at an image base (0x10000000 by
14127 # default) and relocated if they conflict, which is a slow very memory
14128 # consuming and fragmenting process. To avoid this, we pick a random,
14129 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14130 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14132 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'
14133 ;;
14134
cristy0c60a692010-11-04 01:09:47 +000014135 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014136 tmp_diet=no
14137 if test "$host_os" = linux-dietlibc; then
14138 case $cc_basename in
14139 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14140 esac
14141 fi
14142 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14143 && test "$tmp_diet" = no
14144 then
cristyda16f162011-02-19 23:52:17 +000014145 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014146 tmp_sharedflag='-shared'
14147 case $cc_basename,$host_cpu in
14148 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014149 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 +000014150 tmp_addflag=' $pic_flag'
14151 ;;
cristy0c60a692010-11-04 01:09:47 +000014152 pgf77* | pgf90* | pgf95* | pgfortran*)
14153 # Portland Group f77 and f90 compilers
14154 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 +000014155 tmp_addflag=' $pic_flag -Mnomain' ;;
14156 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14157 tmp_addflag=' -i_dynamic' ;;
14158 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14159 tmp_addflag=' -i_dynamic -nofor_main' ;;
14160 ifc* | ifort*) # Intel Fortran compiler
14161 tmp_addflag=' -nofor_main' ;;
14162 lf95*) # Lahey Fortran 8.1
14163 whole_archive_flag_spec=
14164 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014165 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014166 tmp_sharedflag='-qmkshrobj'
14167 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014168 nvcc*) # Cuda Compiler Driver 2.2
14169 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'
14170 compiler_needs_object=yes
14171 ;;
cristy73bd4a52010-10-05 11:24:23 +000014172 esac
14173 case `$CC -V 2>&1 | sed 5q` in
14174 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014175 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 +000014176 compiler_needs_object=yes
14177 tmp_sharedflag='-G' ;;
14178 *Sun\ F*) # Sun Fortran 8.3
14179 tmp_sharedflag='-G' ;;
14180 esac
14181 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14182
14183 if test "x$supports_anon_versioning" = xyes; then
14184 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14186 echo "local: *; };" >> $output_objdir/$libname.ver~
14187 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14188 fi
14189
14190 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014191 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014192 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14193 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014195 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014196 if test "x$supports_anon_versioning" = xyes; then
14197 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14199 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014200 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014201 fi
14202 ;;
14203 esac
14204 else
14205 ld_shlibs=no
14206 fi
14207 ;;
14208
14209 netbsd*)
14210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14211 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14212 wlarc=
14213 else
cristyda16f162011-02-19 23:52:17 +000014214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14215 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 +000014216 fi
14217 ;;
14218
14219 solaris*)
14220 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14221 ld_shlibs=no
14222 cat <<_LT_EOF 1>&2
14223
14224*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14225*** create shared libraries on Solaris systems. Therefore, libtool
14226*** is disabling shared libraries support. We urge you to upgrade GNU
14227*** binutils to release 2.9.1 or newer. Another option is to modify
14228*** your PATH or compiler configuration so that the native linker is
14229*** used, and then restart.
14230
14231_LT_EOF
14232 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014233 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14234 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 +000014235 else
14236 ld_shlibs=no
14237 fi
14238 ;;
14239
14240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14241 case `$LD -v 2>&1` in
14242 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14243 ld_shlibs=no
14244 cat <<_LT_EOF 1>&2
14245
14246*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14247*** reliably create shared libraries on SCO systems. Therefore, libtool
14248*** is disabling shared libraries support. We urge you to upgrade GNU
14249*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14250*** your PATH or compiler configuration so that the native linker is
14251*** used, and then restart.
14252
14253_LT_EOF
14254 ;;
14255 *)
14256 # For security reasons, it is highly recommended that you always
14257 # use absolute paths for naming shared libraries, and exclude the
14258 # DT_RUNPATH tag from executables and libraries. But doing so
14259 # requires that you compile everything twice, which is a pain.
14260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14264 else
14265 ld_shlibs=no
14266 fi
14267 ;;
14268 esac
14269 ;;
14270
14271 sunos4*)
14272 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14273 wlarc=
14274 hardcode_direct=yes
14275 hardcode_shlibpath_var=no
14276 ;;
14277
14278 *)
14279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14281 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 +000014282 else
14283 ld_shlibs=no
14284 fi
14285 ;;
14286 esac
14287
14288 if test "$ld_shlibs" = no; then
14289 runpath_var=
14290 hardcode_libdir_flag_spec=
14291 export_dynamic_flag_spec=
14292 whole_archive_flag_spec=
14293 fi
14294 else
14295 # PORTME fill in a description of your system's linker (not GNU ld)
14296 case $host_os in
14297 aix3*)
14298 allow_undefined_flag=unsupported
14299 always_export_symbols=yes
14300 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'
14301 # Note: this linker hardcodes the directories in LIBPATH if there
14302 # are no directories specified by -L.
14303 hardcode_minus_L=yes
14304 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14305 # Neither direct hardcoding nor static linking is supported with a
14306 # broken collect2.
14307 hardcode_direct=unsupported
14308 fi
14309 ;;
14310
14311 aix[4-9]*)
14312 if test "$host_cpu" = ia64; then
14313 # On IA64, the linker does run time linking by default, so we don't
14314 # have to do anything special.
14315 aix_use_runtimelinking=no
14316 exp_sym_flag='-Bexport'
14317 no_entry_flag=""
14318 else
14319 # If we're using GNU nm, then we don't want the "-C" option.
14320 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014321 # Also, AIX nm treats weak defined symbols like other global
14322 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014323 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014324 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 +000014325 else
14326 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'
14327 fi
14328 aix_use_runtimelinking=no
14329
14330 # Test if we are trying to use run time linking or normal
14331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14332 # need to do runtime linking.
14333 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14334 for ld_flag in $LDFLAGS; do
14335 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14336 aix_use_runtimelinking=yes
14337 break
14338 fi
14339 done
14340 ;;
14341 esac
14342
14343 exp_sym_flag='-bexport'
14344 no_entry_flag='-bnoentry'
14345 fi
14346
14347 # When large executables or shared objects are built, AIX ld can
14348 # have problems creating the table of contents. If linking a library
14349 # or program results in "error TOC overflow" add -mminimal-toc to
14350 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14351 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14352
14353 archive_cmds=''
14354 hardcode_direct=yes
14355 hardcode_direct_absolute=yes
14356 hardcode_libdir_separator=':'
14357 link_all_deplibs=yes
14358 file_list_spec='${wl}-f,'
14359
14360 if test "$GCC" = yes; then
14361 case $host_os in aix4.[012]|aix4.[012].*)
14362 # We only want to do this on AIX 4.2 and lower, the check
14363 # below for broken collect2 doesn't work under 4.3+
14364 collect2name=`${CC} -print-prog-name=collect2`
14365 if test -f "$collect2name" &&
14366 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14367 then
14368 # We have reworked collect2
14369 :
14370 else
14371 # We have old collect2
14372 hardcode_direct=unsupported
14373 # It fails to find uninstalled libraries when the uninstalled
14374 # path is not listed in the libpath. Setting hardcode_minus_L
14375 # to unsupported forces relinking
14376 hardcode_minus_L=yes
14377 hardcode_libdir_flag_spec='-L$libdir'
14378 hardcode_libdir_separator=
14379 fi
14380 ;;
14381 esac
14382 shared_flag='-shared'
14383 if test "$aix_use_runtimelinking" = yes; then
14384 shared_flag="$shared_flag "'${wl}-G'
14385 fi
14386 else
14387 # not using gcc
14388 if test "$host_cpu" = ia64; then
14389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14390 # chokes on -Wl,-G. The following line is correct:
14391 shared_flag='-G'
14392 else
14393 if test "$aix_use_runtimelinking" = yes; then
14394 shared_flag='${wl}-G'
14395 else
14396 shared_flag='${wl}-bM:SRE'
14397 fi
14398 fi
14399 fi
14400
14401 export_dynamic_flag_spec='${wl}-bexpall'
14402 # It seems that -bexpall does not export symbols beginning with
14403 # underscore (_), so it is better to generate a list of symbols to export.
14404 always_export_symbols=yes
14405 if test "$aix_use_runtimelinking" = yes; then
14406 # Warning - without using the other runtime loading flags (-brtl),
14407 # -berok will link without error, but may produce a broken library.
14408 allow_undefined_flag='-berok'
14409 # Determine the default libpath from the value encoded in an
14410 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014411 if test "${lt_cv_aix_libpath+set}" = set; then
14412 aix_libpath=$lt_cv_aix_libpath
14413else
14414 if ${lt_cv_aix_libpath_+:} false; then :
14415 $as_echo_n "(cached) " >&6
14416else
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014418/* end confdefs.h. */
14419
14420int
14421main ()
14422{
14423
14424 ;
14425 return 0;
14426}
14427_ACEOF
14428if ac_fn_c_try_link "$LINENO"; then :
14429
cristyda16f162011-02-19 23:52:17 +000014430 lt_aix_libpath_sed='
14431 /Import File Strings/,/^$/ {
14432 /^0/ {
14433 s/^0 *\([^ ]*\) *$/\1/
14434 p
14435 }
14436 }'
14437 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14438 # Check for a 64-bit object if we didn't find anything.
14439 if test -z "$lt_cv_aix_libpath_"; then
14440 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14441 fi
cristy73bd4a52010-10-05 11:24:23 +000014442fi
14443rm -f core conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014445 if test -z "$lt_cv_aix_libpath_"; then
14446 lt_cv_aix_libpath_="/usr/lib:/lib"
14447 fi
14448
14449fi
14450
14451 aix_libpath=$lt_cv_aix_libpath_
14452fi
cristy73bd4a52010-10-05 11:24:23 +000014453
14454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014455 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 +000014456 else
14457 if test "$host_cpu" = ia64; then
14458 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14459 allow_undefined_flag="-z nodefs"
14460 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"
14461 else
14462 # Determine the default libpath from the value encoded in an
14463 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014464 if test "${lt_cv_aix_libpath+set}" = set; then
14465 aix_libpath=$lt_cv_aix_libpath
14466else
14467 if ${lt_cv_aix_libpath_+:} false; then :
14468 $as_echo_n "(cached) " >&6
14469else
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014471/* end confdefs.h. */
14472
14473int
14474main ()
14475{
14476
14477 ;
14478 return 0;
14479}
14480_ACEOF
14481if ac_fn_c_try_link "$LINENO"; then :
14482
cristyda16f162011-02-19 23:52:17 +000014483 lt_aix_libpath_sed='
14484 /Import File Strings/,/^$/ {
14485 /^0/ {
14486 s/^0 *\([^ ]*\) *$/\1/
14487 p
14488 }
14489 }'
14490 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14491 # Check for a 64-bit object if we didn't find anything.
14492 if test -z "$lt_cv_aix_libpath_"; then
14493 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14494 fi
cristy73bd4a52010-10-05 11:24:23 +000014495fi
14496rm -f core conftest.err conftest.$ac_objext \
14497 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014498 if test -z "$lt_cv_aix_libpath_"; then
14499 lt_cv_aix_libpath_="/usr/lib:/lib"
14500 fi
14501
14502fi
14503
14504 aix_libpath=$lt_cv_aix_libpath_
14505fi
cristy73bd4a52010-10-05 11:24:23 +000014506
14507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14508 # Warning - without using the other run time loading flags,
14509 # -berok will link without error, but may produce a broken library.
14510 no_undefined_flag=' ${wl}-bernotok'
14511 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014512 if test "$with_gnu_ld" = yes; then
14513 # We only use this code for GNU lds that support --whole-archive.
14514 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14515 else
14516 # Exported symbols can be pulled into shared objects from archives
14517 whole_archive_flag_spec='$convenience'
14518 fi
cristy73bd4a52010-10-05 11:24:23 +000014519 archive_cmds_need_lc=yes
14520 # This is similar to how AIX traditionally builds its shared libraries.
14521 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'
14522 fi
14523 fi
14524 ;;
14525
14526 amigaos*)
14527 case $host_cpu in
14528 powerpc)
14529 # see comment about AmigaOS4 .so support
14530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14531 archive_expsym_cmds=''
14532 ;;
14533 m68k)
14534 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)'
14535 hardcode_libdir_flag_spec='-L$libdir'
14536 hardcode_minus_L=yes
14537 ;;
14538 esac
14539 ;;
14540
14541 bsdi[45]*)
14542 export_dynamic_flag_spec=-rdynamic
14543 ;;
14544
14545 cygwin* | mingw* | pw32* | cegcc*)
14546 # When not using gcc, we currently assume that we are using
14547 # Microsoft Visual C++.
14548 # hardcode_libdir_flag_spec is actually meaningless, as there is
14549 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014550 case $cc_basename in
14551 cl*)
14552 # Native MSVC
14553 hardcode_libdir_flag_spec=' '
14554 allow_undefined_flag=unsupported
14555 always_export_symbols=yes
14556 file_list_spec='@'
14557 # Tell ltmain to make .lib files, not .a files.
14558 libext=lib
14559 # Tell ltmain to make .dll files, not .so files.
14560 shrext_cmds=".dll"
14561 # FIXME: Setting linknames here is a bad hack.
14562 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14563 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14564 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14565 else
14566 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14567 fi~
14568 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14569 linknames='
14570 # The linker will not automatically build a static lib if we build a DLL.
14571 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14572 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000014573 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000014574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14575 # Don't use ranlib
14576 old_postinstall_cmds='chmod 644 $oldlib'
14577 postlink_cmds='lt_outputfile="@OUTPUT@"~
14578 lt_tool_outputfile="@TOOL_OUTPUT@"~
14579 case $lt_outputfile in
14580 *.exe|*.EXE) ;;
14581 *)
14582 lt_outputfile="$lt_outputfile.exe"
14583 lt_tool_outputfile="$lt_tool_outputfile.exe"
14584 ;;
14585 esac~
14586 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14587 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14588 $RM "$lt_outputfile.manifest";
14589 fi'
14590 ;;
14591 *)
14592 # Assume MSVC wrapper
14593 hardcode_libdir_flag_spec=' '
14594 allow_undefined_flag=unsupported
14595 # Tell ltmain to make .lib files, not .a files.
14596 libext=lib
14597 # Tell ltmain to make .dll files, not .so files.
14598 shrext_cmds=".dll"
14599 # FIXME: Setting linknames here is a bad hack.
14600 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14601 # The linker will automatically build a .lib file if we build a DLL.
14602 old_archive_from_new_cmds='true'
14603 # FIXME: Should let the user specify the lib program.
14604 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14605 enable_shared_with_static_runtimes=yes
14606 ;;
14607 esac
cristy73bd4a52010-10-05 11:24:23 +000014608 ;;
14609
14610 darwin* | rhapsody*)
14611
14612
14613 archive_cmds_need_lc=no
14614 hardcode_direct=no
14615 hardcode_automatic=yes
14616 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014617 if test "$lt_cv_ld_force_load" = "yes"; then
14618 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\"`'
cristy99bd5232011-12-07 14:38:20 +000014619
cristy0c60a692010-11-04 01:09:47 +000014620 else
14621 whole_archive_flag_spec=''
14622 fi
cristy73bd4a52010-10-05 11:24:23 +000014623 link_all_deplibs=yes
14624 allow_undefined_flag="$_lt_dar_allow_undefined"
14625 case $cc_basename in
14626 ifort*) _lt_dar_can_shared=yes ;;
14627 *) _lt_dar_can_shared=$GCC ;;
14628 esac
14629 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014630 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014631 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14632 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14633 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}"
14634 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}"
14635
14636 else
14637 ld_shlibs=no
14638 fi
14639
14640 ;;
14641
14642 dgux*)
14643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 hardcode_libdir_flag_spec='-L$libdir'
14645 hardcode_shlibpath_var=no
14646 ;;
14647
cristy73bd4a52010-10-05 11:24:23 +000014648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14649 # support. Future versions do this automatically, but an explicit c++rt0.o
14650 # does not break anything, and helps significantly (at the cost of a little
14651 # extra space).
14652 freebsd2.2*)
14653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14654 hardcode_libdir_flag_spec='-R$libdir'
14655 hardcode_direct=yes
14656 hardcode_shlibpath_var=no
14657 ;;
14658
14659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000014660 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000014661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14662 hardcode_direct=yes
14663 hardcode_minus_L=yes
14664 hardcode_shlibpath_var=no
14665 ;;
14666
14667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14668 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014670 hardcode_libdir_flag_spec='-R$libdir'
14671 hardcode_direct=yes
14672 hardcode_shlibpath_var=no
14673 ;;
14674
14675 hpux9*)
14676 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014677 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 +000014678 else
14679 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'
14680 fi
14681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14682 hardcode_libdir_separator=:
14683 hardcode_direct=yes
14684
14685 # hardcode_minus_L: Not really in the search PATH,
14686 # but as the default location of the library.
14687 hardcode_minus_L=yes
14688 export_dynamic_flag_spec='${wl}-E'
14689 ;;
14690
14691 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014692 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014693 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 +000014694 else
14695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14696 fi
14697 if test "$with_gnu_ld" = no; then
14698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000014699 hardcode_libdir_separator=:
14700 hardcode_direct=yes
14701 hardcode_direct_absolute=yes
14702 export_dynamic_flag_spec='${wl}-E'
14703 # hardcode_minus_L: Not really in the search PATH,
14704 # but as the default location of the library.
14705 hardcode_minus_L=yes
14706 fi
14707 ;;
14708
14709 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014710 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014711 case $host_cpu in
14712 hppa*64*)
14713 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14714 ;;
14715 ia64*)
cristyda16f162011-02-19 23:52:17 +000014716 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014717 ;;
14718 *)
cristyda16f162011-02-19 23:52:17 +000014719 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 +000014720 ;;
14721 esac
14722 else
14723 case $host_cpu in
14724 hppa*64*)
14725 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14726 ;;
14727 ia64*)
14728 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14729 ;;
14730 *)
cristy0c60a692010-11-04 01:09:47 +000014731
14732 # Older versions of the 11.00 compiler do not understand -b yet
14733 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14735$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014736if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014737 $as_echo_n "(cached) " >&6
14738else
14739 lt_cv_prog_compiler__b=no
14740 save_LDFLAGS="$LDFLAGS"
14741 LDFLAGS="$LDFLAGS -b"
14742 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14743 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14744 # The linker can only warn and ignore the option if not recognized
14745 # So say no if there are warnings
14746 if test -s conftest.err; then
14747 # Append any errors to the config.log.
14748 cat conftest.err 1>&5
14749 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14751 if diff conftest.exp conftest.er2 >/dev/null; then
14752 lt_cv_prog_compiler__b=yes
14753 fi
14754 else
14755 lt_cv_prog_compiler__b=yes
14756 fi
14757 fi
14758 $RM -r conftest*
14759 LDFLAGS="$save_LDFLAGS"
14760
14761fi
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14763$as_echo "$lt_cv_prog_compiler__b" >&6; }
14764
14765if test x"$lt_cv_prog_compiler__b" = xyes; then
14766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14767else
14768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14769fi
14770
cristy73bd4a52010-10-05 11:24:23 +000014771 ;;
14772 esac
14773 fi
14774 if test "$with_gnu_ld" = no; then
14775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14776 hardcode_libdir_separator=:
14777
14778 case $host_cpu in
14779 hppa*64*|ia64*)
14780 hardcode_direct=no
14781 hardcode_shlibpath_var=no
14782 ;;
14783 *)
14784 hardcode_direct=yes
14785 hardcode_direct_absolute=yes
14786 export_dynamic_flag_spec='${wl}-E'
14787
14788 # hardcode_minus_L: Not really in the search PATH,
14789 # but as the default location of the library.
14790 hardcode_minus_L=yes
14791 ;;
14792 esac
14793 fi
14794 ;;
14795
14796 irix5* | irix6* | nonstopux*)
14797 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014798 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 +000014799 # Try to use the -exported_symbol ld option, if it does not
14800 # work, assume that -exports_file does not work either and
14801 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014802 # This should be the same for all languages, so no per-tag cache variable.
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14804$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14805if ${lt_cv_irix_exported_symbol+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807else
14808 save_LDFLAGS="$LDFLAGS"
14809 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014811/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014812int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014813_ACEOF
14814if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014815 lt_cv_irix_exported_symbol=yes
14816else
14817 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014818fi
14819rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014821 LDFLAGS="$save_LDFLAGS"
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14824$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14825 if test "$lt_cv_irix_exported_symbol" = yes; then
14826 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'
14827 fi
cristy73bd4a52010-10-05 11:24:23 +000014828 else
cristy0c60a692010-11-04 01:09:47 +000014829 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'
14830 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 +000014831 fi
14832 archive_cmds_need_lc='no'
14833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14834 hardcode_libdir_separator=:
14835 inherit_rpath=yes
14836 link_all_deplibs=yes
14837 ;;
14838
14839 netbsd*)
14840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14842 else
14843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14844 fi
14845 hardcode_libdir_flag_spec='-R$libdir'
14846 hardcode_direct=yes
14847 hardcode_shlibpath_var=no
14848 ;;
14849
14850 newsos6)
14851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_direct=yes
14853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14854 hardcode_libdir_separator=:
14855 hardcode_shlibpath_var=no
14856 ;;
14857
14858 *nto* | *qnx*)
14859 ;;
14860
14861 openbsd*)
14862 if test -f /usr/libexec/ld.so; then
14863 hardcode_direct=yes
14864 hardcode_shlibpath_var=no
14865 hardcode_direct_absolute=yes
14866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14868 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14870 export_dynamic_flag_spec='${wl}-E'
14871 else
14872 case $host_os in
14873 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14875 hardcode_libdir_flag_spec='-R$libdir'
14876 ;;
14877 *)
14878 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14880 ;;
14881 esac
14882 fi
14883 else
14884 ld_shlibs=no
14885 fi
14886 ;;
14887
14888 os2*)
14889 hardcode_libdir_flag_spec='-L$libdir'
14890 hardcode_minus_L=yes
14891 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014892 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 +000014893 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14894 ;;
14895
14896 osf3*)
14897 if test "$GCC" = yes; then
14898 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014899 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 +000014900 else
14901 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014902 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 +000014903 fi
14904 archive_cmds_need_lc='no'
14905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14906 hardcode_libdir_separator=:
14907 ;;
14908
14909 osf4* | osf5*) # as osf3* with the addition of -msym flag
14910 if test "$GCC" = yes; then
14911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014912 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 +000014913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14914 else
14915 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014916 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 +000014917 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 +000014918 $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 +000014919
14920 # Both c and cxx compiler support -rpath directly
14921 hardcode_libdir_flag_spec='-rpath $libdir'
14922 fi
14923 archive_cmds_need_lc='no'
14924 hardcode_libdir_separator=:
14925 ;;
14926
14927 solaris*)
14928 no_undefined_flag=' -z defs'
14929 if test "$GCC" = yes; then
14930 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014931 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 +000014932 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 +000014933 $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 +000014934 else
14935 case `$CC -V 2>&1` in
14936 *"Compilers 5.0"*)
14937 wlarc=''
14938 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14941 ;;
14942 *)
14943 wlarc='${wl}'
14944 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14946 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14947 ;;
14948 esac
14949 fi
14950 hardcode_libdir_flag_spec='-R$libdir'
14951 hardcode_shlibpath_var=no
14952 case $host_os in
14953 solaris2.[0-5] | solaris2.[0-5].*) ;;
14954 *)
14955 # The compiler driver will combine and reorder linker options,
14956 # but understands `-z linker_flag'. GCC discards it without `$wl',
14957 # but is careful enough not to reorder.
14958 # Supported since Solaris 2.6 (maybe 2.5.1?)
14959 if test "$GCC" = yes; then
14960 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14961 else
14962 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14963 fi
14964 ;;
14965 esac
14966 link_all_deplibs=yes
14967 ;;
14968
14969 sunos4*)
14970 if test "x$host_vendor" = xsequent; then
14971 # Use $CC to link under sequent, because it throws in some extra .o
14972 # files that make .init and .fini sections work.
14973 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14974 else
14975 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14976 fi
14977 hardcode_libdir_flag_spec='-L$libdir'
14978 hardcode_direct=yes
14979 hardcode_minus_L=yes
14980 hardcode_shlibpath_var=no
14981 ;;
14982
14983 sysv4)
14984 case $host_vendor in
14985 sni)
14986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_direct=yes # is this really true???
14988 ;;
14989 siemens)
14990 ## LD is ld it makes a PLAMLIB
14991 ## CC just makes a GrossModule.
14992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14993 reload_cmds='$CC -r -o $output$reload_objs'
14994 hardcode_direct=no
14995 ;;
14996 motorola)
14997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14998 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14999 ;;
15000 esac
15001 runpath_var='LD_RUN_PATH'
15002 hardcode_shlibpath_var=no
15003 ;;
15004
15005 sysv4.3*)
15006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15007 hardcode_shlibpath_var=no
15008 export_dynamic_flag_spec='-Bexport'
15009 ;;
15010
15011 sysv4*MP*)
15012 if test -d /usr/nec; then
15013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15014 hardcode_shlibpath_var=no
15015 runpath_var=LD_RUN_PATH
15016 hardcode_runpath_var=yes
15017 ld_shlibs=yes
15018 fi
15019 ;;
15020
15021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15022 no_undefined_flag='${wl}-z,text'
15023 archive_cmds_need_lc=no
15024 hardcode_shlibpath_var=no
15025 runpath_var='LD_RUN_PATH'
15026
15027 if test "$GCC" = yes; then
15028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 else
15031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15033 fi
15034 ;;
15035
15036 sysv5* | sco3.2v5* | sco5v6*)
15037 # Note: We can NOT use -z defs as we might desire, because we do not
15038 # link with -lc, and that would cause any symbols used from libc to
15039 # always be unresolved, which means just about no library would
15040 # ever link correctly. If we're not using GNU ld we use -z text
15041 # though, which does catch some bad symbols but isn't as heavy-handed
15042 # as -z defs.
15043 no_undefined_flag='${wl}-z,text'
15044 allow_undefined_flag='${wl}-z,nodefs'
15045 archive_cmds_need_lc=no
15046 hardcode_shlibpath_var=no
15047 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15048 hardcode_libdir_separator=':'
15049 link_all_deplibs=yes
15050 export_dynamic_flag_spec='${wl}-Bexport'
15051 runpath_var='LD_RUN_PATH'
15052
15053 if test "$GCC" = yes; then
15054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 else
15057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 fi
15060 ;;
15061
15062 uts4*)
15063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15064 hardcode_libdir_flag_spec='-L$libdir'
15065 hardcode_shlibpath_var=no
15066 ;;
15067
15068 *)
15069 ld_shlibs=no
15070 ;;
15071 esac
15072
15073 if test x$host_vendor = xsni; then
15074 case $host in
15075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15076 export_dynamic_flag_spec='${wl}-Blargedynsym'
15077 ;;
15078 esac
15079 fi
15080 fi
15081
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15083$as_echo "$ld_shlibs" >&6; }
15084test "$ld_shlibs" = no && can_build_shared=no
15085
15086with_gnu_ld=$with_gnu_ld
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102#
15103# Do we need to explicitly link libc?
15104#
15105case "x$archive_cmds_need_lc" in
15106x|xyes)
15107 # Assume -lc should be added
15108 archive_cmds_need_lc=yes
15109
15110 if test "$enable_shared" = yes && test "$GCC" = yes; then
15111 case $archive_cmds in
15112 *'~'*)
15113 # FIXME: we may have to deal with multi-command sequences.
15114 ;;
15115 '$CC '*)
15116 # Test whether the compiler implicitly links with -lc since on some
15117 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15118 # to ld, don't add -lc before -lgcc.
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15120$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015121if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015122 $as_echo_n "(cached) " >&6
15123else
15124 $RM conftest*
15125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015126
cristy0c60a692010-11-04 01:09:47 +000015127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015128 (eval $ac_compile) 2>&5
15129 ac_status=$?
15130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15131 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015132 soname=conftest
15133 lib=conftest
15134 libobjs=conftest.$ac_objext
15135 deplibs=
15136 wl=$lt_prog_compiler_wl
15137 pic_flag=$lt_prog_compiler_pic
15138 compiler_flags=-v
15139 linker_flags=-v
15140 verstring=
15141 output_objdir=.
15142 libname=conftest
15143 lt_save_allow_undefined_flag=$allow_undefined_flag
15144 allow_undefined_flag=
15145 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 +000015146 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15147 ac_status=$?
15148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015150 then
15151 lt_cv_archive_cmds_need_lc=no
15152 else
15153 lt_cv_archive_cmds_need_lc=yes
15154 fi
15155 allow_undefined_flag=$lt_save_allow_undefined_flag
15156 else
15157 cat conftest.err 1>&5
15158 fi
15159 $RM conftest*
15160
15161fi
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15163$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15164 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015165 ;;
15166 esac
15167 fi
15168 ;;
15169esac
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
cristy73bd4a52010-10-05 11:24:23 +000015322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15323$as_echo_n "checking dynamic linker characteristics... " >&6; }
15324
15325if test "$GCC" = yes; then
15326 case $host_os in
15327 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15328 *) lt_awk_arg="/^libraries:/" ;;
15329 esac
cristy0c60a692010-11-04 01:09:47 +000015330 case $host_os in
15331 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15332 *) lt_sed_strip_eq="s,=/,/,g" ;;
15333 esac
15334 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15335 case $lt_search_path_spec in
15336 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015337 # if the path contains ";" then we assume it to be the separator
15338 # otherwise default to the standard path separator (i.e. ":") - it is
15339 # assumed that no part of a normal pathname contains ";" but that should
15340 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015341 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15342 ;;
15343 *)
15344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15345 ;;
15346 esac
cristy73bd4a52010-10-05 11:24:23 +000015347 # Ok, now we have the path, separated by spaces, we can step through it
15348 # and add multilib dir if necessary.
15349 lt_tmp_lt_search_path_spec=
15350 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15351 for lt_sys_path in $lt_search_path_spec; do
15352 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15354 else
15355 test -d "$lt_sys_path" && \
15356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15357 fi
15358 done
cristy0c60a692010-11-04 01:09:47 +000015359 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015360BEGIN {RS=" "; FS="/|\n";} {
15361 lt_foo="";
15362 lt_count=0;
15363 for (lt_i = NF; lt_i > 0; lt_i--) {
15364 if ($lt_i != "" && $lt_i != ".") {
15365 if ($lt_i == "..") {
15366 lt_count++;
15367 } else {
15368 if (lt_count == 0) {
15369 lt_foo="/" $lt_i lt_foo;
15370 } else {
15371 lt_count--;
15372 }
15373 }
15374 }
15375 }
15376 if (lt_foo != "") { lt_freq[lt_foo]++; }
15377 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15378}'`
cristy0c60a692010-11-04 01:09:47 +000015379 # AWK program above erroneously prepends '/' to C:/dos/paths
15380 # for these hosts.
15381 case $host_os in
15382 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15383 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15384 esac
15385 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015386else
15387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15388fi
15389library_names_spec=
15390libname_spec='lib$name'
15391soname_spec=
15392shrext_cmds=".so"
15393postinstall_cmds=
15394postuninstall_cmds=
15395finish_cmds=
15396finish_eval=
15397shlibpath_var=
15398shlibpath_overrides_runpath=unknown
15399version_type=none
15400dynamic_linker="$host_os ld.so"
15401sys_lib_dlsearch_path_spec="/lib /usr/lib"
15402need_lib_prefix=unknown
15403hardcode_into_libs=no
15404
15405# when you set need_version to no, make sure it does not cause -set_version
15406# flags to be left without arguments
15407need_version=unknown
15408
15409case $host_os in
15410aix3*)
cristy99bd5232011-12-07 14:38:20 +000015411 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15413 shlibpath_var=LIBPATH
15414
15415 # AIX 3 has no versioning support, so we append a major version to the name.
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 ;;
15418
15419aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015420 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015421 need_lib_prefix=no
15422 need_version=no
15423 hardcode_into_libs=yes
15424 if test "$host_cpu" = ia64; then
15425 # AIX 5 supports IA64
15426 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 else
15429 # With GCC up to 2.95.x, collect2 would create an import file
15430 # for dependence libraries. The import file would start with
15431 # the line `#! .'. This would cause the generated library to
15432 # depend on `.', always an invalid library. This was fixed in
15433 # development snapshots of GCC prior to 3.0.
15434 case $host_os in
15435 aix4 | aix4.[01] | aix4.[01].*)
15436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15437 echo ' yes '
15438 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15439 :
15440 else
15441 can_build_shared=no
15442 fi
15443 ;;
15444 esac
15445 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15446 # soname into executable. Probably we can add versioning support to
15447 # collect2, so additional links can be useful in future.
15448 if test "$aix_use_runtimelinking" = yes; then
15449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15450 # instead of lib<name>.a to let people know that these are not
15451 # typical AIX shared libraries.
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 else
15454 # We preserve .a as extension for shared libraries through AIX4.2
15455 # and later when we are not doing run time linking.
15456 library_names_spec='${libname}${release}.a $libname.a'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 fi
15459 shlibpath_var=LIBPATH
15460 fi
15461 ;;
15462
15463amigaos*)
15464 case $host_cpu in
15465 powerpc)
15466 # Since July 2007 AmigaOS4 officially supports .so libraries.
15467 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469 ;;
15470 m68k)
15471 library_names_spec='$libname.ixlibrary $libname.a'
15472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015473 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 +000015474 ;;
15475 esac
15476 ;;
15477
15478beos*)
15479 library_names_spec='${libname}${shared_ext}'
15480 dynamic_linker="$host_os ld.so"
15481 shlibpath_var=LIBRARY_PATH
15482 ;;
15483
15484bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015485 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015486 need_version=no
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15493 # the default ld.so.conf also contains /usr/contrib/lib and
15494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15495 # libtool to hard-code these into programs
15496 ;;
15497
15498cygwin* | mingw* | pw32* | cegcc*)
15499 version_type=windows
15500 shrext_cmds=".dll"
15501 need_version=no
15502 need_lib_prefix=no
15503
cristyda16f162011-02-19 23:52:17 +000015504 case $GCC,$cc_basename in
15505 yes,*)
15506 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015507 library_names_spec='$libname.dll.a'
15508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15509 postinstall_cmds='base_file=`basename \${file}`~
15510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15511 dldir=$destdir/`dirname \$dlpath`~
15512 test -d \$dldir || mkdir -p \$dldir~
15513 $install_prog $dir/$dlname \$dldir/$dlname~
15514 chmod a+x \$dldir/$dlname~
15515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15517 fi'
15518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15519 dlpath=$dir/\$dldll~
15520 $RM \$dlpath'
15521 shlibpath_overrides_runpath=yes
15522
15523 case $host_os in
15524 cygwin*)
15525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015527
15528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015529 ;;
15530 mingw* | cegcc*)
15531 # MinGW DLLs use traditional 'lib' prefix
15532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015533 ;;
15534 pw32*)
15535 # pw32 DLLs use 'pw' prefix rather than 'lib'
15536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15537 ;;
15538 esac
cristyda16f162011-02-19 23:52:17 +000015539 dynamic_linker='Win32 ld.exe'
15540 ;;
15541
15542 *,cl*)
15543 # Native MSVC
15544 libname_spec='$name'
15545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15546 library_names_spec='${libname}.dll.lib'
15547
15548 case $build_os in
15549 mingw*)
15550 sys_lib_search_path_spec=
15551 lt_save_ifs=$IFS
15552 IFS=';'
15553 for lt_path in $LIB
15554 do
15555 IFS=$lt_save_ifs
15556 # Let DOS variable expansion print the short 8.3 style file name.
15557 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15558 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15559 done
15560 IFS=$lt_save_ifs
15561 # Convert to MSYS style.
15562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15563 ;;
15564 cygwin*)
15565 # Convert to unix form, then to dos form, then back to unix form
15566 # but this time dos style (no spaces!) so that the unix form looks
15567 # like /cygdrive/c/PROGRA~1:/cygdr...
15568 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15569 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15570 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15571 ;;
15572 *)
15573 sys_lib_search_path_spec="$LIB"
15574 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15575 # It is most probably a Windows format PATH.
15576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15577 else
15578 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15579 fi
15580 # FIXME: find the short name or the path components, as spaces are
15581 # common. (e.g. "Program Files" -> "PROGRA~1")
15582 ;;
15583 esac
15584
15585 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15586 postinstall_cmds='base_file=`basename \${file}`~
15587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15588 dldir=$destdir/`dirname \$dlpath`~
15589 test -d \$dldir || mkdir -p \$dldir~
15590 $install_prog $dir/$dlname \$dldir/$dlname'
15591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15592 dlpath=$dir/\$dldll~
15593 $RM \$dlpath'
15594 shlibpath_overrides_runpath=yes
15595 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015596 ;;
15597
15598 *)
cristyda16f162011-02-19 23:52:17 +000015599 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015600 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015601 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015602 ;;
15603 esac
cristy73bd4a52010-10-05 11:24:23 +000015604 # FIXME: first we should search . and the directory the executable is in
15605 shlibpath_var=PATH
15606 ;;
15607
15608darwin* | rhapsody*)
15609 dynamic_linker="$host_os dyld"
15610 version_type=darwin
15611 need_lib_prefix=no
15612 need_version=no
15613 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15614 soname_spec='${libname}${release}${major}$shared_ext'
15615 shlibpath_overrides_runpath=yes
15616 shlibpath_var=DYLD_LIBRARY_PATH
15617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15618
15619 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15621 ;;
15622
15623dgux*)
cristy99bd5232011-12-07 14:38:20 +000015624 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015625 need_lib_prefix=no
15626 need_version=no
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 ;;
15631
cristy73bd4a52010-10-05 11:24:23 +000015632freebsd* | dragonfly*)
15633 # DragonFly does not have aout. When/if they implement a new
15634 # versioning mechanism, adjust this.
15635 if test -x /usr/bin/objformat; then
15636 objformat=`/usr/bin/objformat`
15637 else
15638 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015639 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000015640 *) objformat=elf ;;
15641 esac
15642 fi
15643 version_type=freebsd-$objformat
15644 case $version_type in
15645 freebsd-elf*)
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15647 need_version=no
15648 need_lib_prefix=no
15649 ;;
15650 freebsd-*)
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15652 need_version=yes
15653 ;;
15654 esac
15655 shlibpath_var=LD_LIBRARY_PATH
15656 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015657 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015658 shlibpath_overrides_runpath=yes
15659 ;;
15660 freebsd3.[01]* | freebsdelf3.[01]*)
15661 shlibpath_overrides_runpath=yes
15662 hardcode_into_libs=yes
15663 ;;
15664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15666 shlibpath_overrides_runpath=no
15667 hardcode_into_libs=yes
15668 ;;
15669 *) # from 4.6 on, and DragonFly
15670 shlibpath_overrides_runpath=yes
15671 hardcode_into_libs=yes
15672 ;;
15673 esac
15674 ;;
15675
15676gnu*)
cristy99bd5232011-12-07 14:38:20 +000015677 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015678 need_lib_prefix=no
15679 need_version=no
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000015683 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000015684 hardcode_into_libs=yes
15685 ;;
15686
cristy0c60a692010-11-04 01:09:47 +000015687haiku*)
cristy99bd5232011-12-07 14:38:20 +000015688 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000015689 need_lib_prefix=no
15690 need_version=no
15691 dynamic_linker="$host_os runtime_loader"
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15693 soname_spec='${libname}${release}${shared_ext}$major'
15694 shlibpath_var=LIBRARY_PATH
15695 shlibpath_overrides_runpath=yes
15696 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15697 hardcode_into_libs=yes
15698 ;;
15699
cristy73bd4a52010-10-05 11:24:23 +000015700hpux9* | hpux10* | hpux11*)
15701 # Give a soname corresponding to the major version so that dld.sl refuses to
15702 # link against other versions.
15703 version_type=sunos
15704 need_lib_prefix=no
15705 need_version=no
15706 case $host_cpu in
15707 ia64*)
15708 shrext_cmds='.so'
15709 hardcode_into_libs=yes
15710 dynamic_linker="$host_os dld.so"
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 if test "X$HPUX_IA64_MODE" = X32; then
15716 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15717 else
15718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15719 fi
15720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15721 ;;
15722 hppa*64*)
15723 shrext_cmds='.sl'
15724 hardcode_into_libs=yes
15725 dynamic_linker="$host_os dld.sl"
15726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15732 ;;
15733 *)
15734 shrext_cmds='.sl'
15735 dynamic_linker="$host_os dld.sl"
15736 shlibpath_var=SHLIB_PATH
15737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 ;;
15741 esac
cristy0c60a692010-11-04 01:09:47 +000015742 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015743 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015744 # or fails outright, so override atomically:
15745 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015746 ;;
15747
15748interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000015749 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015750 need_lib_prefix=no
15751 need_version=no
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=no
15757 hardcode_into_libs=yes
15758 ;;
15759
15760irix5* | irix6* | nonstopux*)
15761 case $host_os in
15762 nonstopux*) version_type=nonstopux ;;
15763 *)
15764 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000015765 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015766 else
15767 version_type=irix
15768 fi ;;
15769 esac
15770 need_lib_prefix=no
15771 need_version=no
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15774 case $host_os in
15775 irix5* | nonstopux*)
15776 libsuff= shlibsuff=
15777 ;;
15778 *)
15779 case $LD in # libtool.m4 will add one of these switches to LD
15780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15781 libsuff= shlibsuff= libmagic=32-bit;;
15782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15783 libsuff=32 shlibsuff=N32 libmagic=N32;;
15784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15786 *) libsuff= shlibsuff= libmagic=never-match;;
15787 esac
15788 ;;
15789 esac
15790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15791 shlibpath_overrides_runpath=no
15792 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15793 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15794 hardcode_into_libs=yes
15795 ;;
15796
15797# No shared lib support for Linux oldld, aout, or coff.
15798linux*oldld* | linux*aout* | linux*coff*)
15799 dynamic_linker=no
15800 ;;
15801
cristy99bd5232011-12-07 14:38:20 +000015802# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000015803linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000015804 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015805 need_lib_prefix=no
15806 need_version=no
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 soname_spec='${libname}${release}${shared_ext}$major'
15809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15810 shlibpath_var=LD_LIBRARY_PATH
15811 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015812
cristy73bd4a52010-10-05 11:24:23 +000015813 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015814 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015815 $as_echo_n "(cached) " >&6
15816else
15817 lt_cv_shlibpath_overrides_runpath=no
15818 save_LDFLAGS=$LDFLAGS
15819 save_libdir=$libdir
15820 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15821 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015823/* end confdefs.h. */
15824
15825int
15826main ()
15827{
15828
15829 ;
15830 return 0;
15831}
15832_ACEOF
15833if ac_fn_c_try_link "$LINENO"; then :
15834 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015835 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015836fi
15837fi
15838rm -f core conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015840 LDFLAGS=$save_LDFLAGS
15841 libdir=$save_libdir
15842
15843fi
15844
15845 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015846
15847 # This implies no fast_install, which is unacceptable.
15848 # Some rework will be needed to allow for fast_install
15849 # before this can be enabled.
15850 hardcode_into_libs=yes
15851
15852 # Add ABI-specific directories to the system library path.
15853 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15854
15855 # Append ld.so.conf contents to the search path
15856 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015857 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 +000015858 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015859
cristy73bd4a52010-10-05 11:24:23 +000015860 fi
15861
15862 # We used to test for /lib/ld.so.1 and disable shared libraries on
15863 # powerpc, because MkLinux only supported shared libraries with the
15864 # GNU dynamic linker. Since this was broken with cross compilers,
15865 # most powerpc-linux boxes support dynamic linking these days and
15866 # people can always --disable-shared, the test was removed, and we
15867 # assume the GNU/Linux dynamic linker is in use.
15868 dynamic_linker='GNU/Linux ld.so'
15869 ;;
15870
15871netbsd*)
15872 version_type=sunos
15873 need_lib_prefix=no
15874 need_version=no
15875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15878 dynamic_linker='NetBSD (a.out) ld.so'
15879 else
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 dynamic_linker='NetBSD ld.elf_so'
15883 fi
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=yes
15886 hardcode_into_libs=yes
15887 ;;
15888
15889newsos6)
cristy99bd5232011-12-07 14:38:20 +000015890 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15894 ;;
15895
15896*nto* | *qnx*)
15897 version_type=qnx
15898 need_lib_prefix=no
15899 need_version=no
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901 soname_spec='${libname}${release}${shared_ext}$major'
15902 shlibpath_var=LD_LIBRARY_PATH
15903 shlibpath_overrides_runpath=no
15904 hardcode_into_libs=yes
15905 dynamic_linker='ldqnx.so'
15906 ;;
15907
15908openbsd*)
15909 version_type=sunos
15910 sys_lib_dlsearch_path_spec="/usr/lib"
15911 need_lib_prefix=no
15912 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15913 case $host_os in
15914 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15915 *) need_version=no ;;
15916 esac
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15919 shlibpath_var=LD_LIBRARY_PATH
15920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15921 case $host_os in
15922 openbsd2.[89] | openbsd2.[89].*)
15923 shlibpath_overrides_runpath=no
15924 ;;
15925 *)
15926 shlibpath_overrides_runpath=yes
15927 ;;
15928 esac
15929 else
15930 shlibpath_overrides_runpath=yes
15931 fi
15932 ;;
15933
15934os2*)
15935 libname_spec='$name'
15936 shrext_cmds=".dll"
15937 need_lib_prefix=no
15938 library_names_spec='$libname${shared_ext} $libname.a'
15939 dynamic_linker='OS/2 ld.exe'
15940 shlibpath_var=LIBPATH
15941 ;;
15942
15943osf3* | osf4* | osf5*)
15944 version_type=osf
15945 need_lib_prefix=no
15946 need_version=no
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15951 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15952 ;;
15953
15954rdos*)
15955 dynamic_linker=no
15956 ;;
15957
15958solaris*)
cristy99bd5232011-12-07 14:38:20 +000015959 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015960 need_lib_prefix=no
15961 need_version=no
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 shlibpath_overrides_runpath=yes
15966 hardcode_into_libs=yes
15967 # ldd complains unless libraries are executable
15968 postinstall_cmds='chmod +x $lib'
15969 ;;
15970
15971sunos4*)
15972 version_type=sunos
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15975 shlibpath_var=LD_LIBRARY_PATH
15976 shlibpath_overrides_runpath=yes
15977 if test "$with_gnu_ld" = yes; then
15978 need_lib_prefix=no
15979 fi
15980 need_version=yes
15981 ;;
15982
15983sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000015984 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 soname_spec='${libname}${release}${shared_ext}$major'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 case $host_vendor in
15989 sni)
15990 shlibpath_overrides_runpath=no
15991 need_lib_prefix=no
15992 runpath_var=LD_RUN_PATH
15993 ;;
15994 siemens)
15995 need_lib_prefix=no
15996 ;;
15997 motorola)
15998 need_lib_prefix=no
15999 need_version=no
16000 shlibpath_overrides_runpath=no
16001 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16002 ;;
16003 esac
16004 ;;
16005
16006sysv4*MP*)
16007 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016008 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016009 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16010 soname_spec='$libname${shared_ext}.$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 fi
16013 ;;
16014
16015sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16016 version_type=freebsd-elf
16017 need_lib_prefix=no
16018 need_version=no
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 shlibpath_overrides_runpath=yes
16023 hardcode_into_libs=yes
16024 if test "$with_gnu_ld" = yes; then
16025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16026 else
16027 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16028 case $host_os in
16029 sco3.2v5*)
16030 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16031 ;;
16032 esac
16033 fi
16034 sys_lib_dlsearch_path_spec='/usr/lib'
16035 ;;
16036
16037tpf*)
16038 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016039 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016040 need_lib_prefix=no
16041 need_version=no
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 shlibpath_overrides_runpath=no
16045 hardcode_into_libs=yes
16046 ;;
16047
16048uts4*)
cristy99bd5232011-12-07 14:38:20 +000016049 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 ;;
16054
16055*)
16056 dynamic_linker=no
16057 ;;
16058esac
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16060$as_echo "$dynamic_linker" >&6; }
16061test "$dynamic_linker" = no && can_build_shared=no
16062
16063variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16064if test "$GCC" = yes; then
16065 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16066fi
16067
16068if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16069 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16070fi
16071if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16072 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16073fi
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
cristy0c60a692010-11-04 01:09:47 +000016161
16162
16163
16164
16165
cristy73bd4a52010-10-05 11:24:23 +000016166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16167$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16168hardcode_action=
16169if test -n "$hardcode_libdir_flag_spec" ||
16170 test -n "$runpath_var" ||
16171 test "X$hardcode_automatic" = "Xyes" ; then
16172
16173 # We can hardcode non-existent directories.
16174 if test "$hardcode_direct" != no &&
16175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16176 # have to relink, otherwise we might link with an installed library
16177 # when we should be linking with a yet-to-be-installed one
16178 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16179 test "$hardcode_minus_L" != no; then
16180 # Linking always hardcodes the temporary library directory.
16181 hardcode_action=relink
16182 else
16183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16184 hardcode_action=immediate
16185 fi
16186else
16187 # We cannot hardcode anything, or else we can only hardcode existing
16188 # directories.
16189 hardcode_action=unsupported
16190fi
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16192$as_echo "$hardcode_action" >&6; }
16193
16194if test "$hardcode_action" = relink ||
16195 test "$inherit_rpath" = yes; then
16196 # Fast installation is not supported
16197 enable_fast_install=no
16198elif test "$shlibpath_overrides_runpath" = yes ||
16199 test "$enable_shared" = no; then
16200 # Fast installation is not necessary
16201 enable_fast_install=needless
16202fi
16203
16204
16205
16206
16207
16208
16209 if test "x$enable_dlopen" != xyes; then
16210 enable_dlopen=unknown
16211 enable_dlopen_self=unknown
16212 enable_dlopen_self_static=unknown
16213else
16214 lt_cv_dlopen=no
16215 lt_cv_dlopen_libs=
16216
16217 case $host_os in
16218 beos*)
16219 lt_cv_dlopen="load_add_on"
16220 lt_cv_dlopen_libs=
16221 lt_cv_dlopen_self=yes
16222 ;;
16223
16224 mingw* | pw32* | cegcc*)
16225 lt_cv_dlopen="LoadLibrary"
16226 lt_cv_dlopen_libs=
16227 ;;
16228
16229 cygwin*)
16230 lt_cv_dlopen="dlopen"
16231 lt_cv_dlopen_libs=
16232 ;;
16233
16234 darwin*)
16235 # if libdl is installed we need to link against it
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16237$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016238if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016239 $as_echo_n "(cached) " >&6
16240else
16241 ac_check_lib_save_LIBS=$LIBS
16242LIBS="-ldl $LIBS"
16243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h. */
16245
16246/* Override any GCC internal prototype to avoid an error.
16247 Use char because int might match the return type of a GCC
16248 builtin and then its argument prototype would still apply. */
16249#ifdef __cplusplus
16250extern "C"
16251#endif
16252char dlopen ();
16253int
16254main ()
16255{
16256return dlopen ();
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261if ac_fn_c_try_link "$LINENO"; then :
16262 ac_cv_lib_dl_dlopen=yes
16263else
16264 ac_cv_lib_dl_dlopen=no
16265fi
16266rm -f core conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16268LIBS=$ac_check_lib_save_LIBS
16269fi
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16271$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016272if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16274else
16275
16276 lt_cv_dlopen="dyld"
16277 lt_cv_dlopen_libs=
16278 lt_cv_dlopen_self=yes
16279
16280fi
16281
16282 ;;
16283
16284 *)
16285 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016286if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016287 lt_cv_dlopen="shl_load"
16288else
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16290$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016291if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016292 $as_echo_n "(cached) " >&6
16293else
16294 ac_check_lib_save_LIBS=$LIBS
16295LIBS="-ldld $LIBS"
16296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h. */
16298
16299/* Override any GCC internal prototype to avoid an error.
16300 Use char because int might match the return type of a GCC
16301 builtin and then its argument prototype would still apply. */
16302#ifdef __cplusplus
16303extern "C"
16304#endif
16305char shl_load ();
16306int
16307main ()
16308{
16309return shl_load ();
16310 ;
16311 return 0;
16312}
16313_ACEOF
16314if ac_fn_c_try_link "$LINENO"; then :
16315 ac_cv_lib_dld_shl_load=yes
16316else
16317 ac_cv_lib_dld_shl_load=no
16318fi
16319rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321LIBS=$ac_check_lib_save_LIBS
16322fi
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16324$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016325if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016326 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16327else
16328 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016329if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016330 lt_cv_dlopen="dlopen"
16331else
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16333$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016334if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016335 $as_echo_n "(cached) " >&6
16336else
16337 ac_check_lib_save_LIBS=$LIBS
16338LIBS="-ldl $LIBS"
16339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h. */
16341
16342/* Override any GCC internal prototype to avoid an error.
16343 Use char because int might match the return type of a GCC
16344 builtin and then its argument prototype would still apply. */
16345#ifdef __cplusplus
16346extern "C"
16347#endif
16348char dlopen ();
16349int
16350main ()
16351{
16352return dlopen ();
16353 ;
16354 return 0;
16355}
16356_ACEOF
16357if ac_fn_c_try_link "$LINENO"; then :
16358 ac_cv_lib_dl_dlopen=yes
16359else
16360 ac_cv_lib_dl_dlopen=no
16361fi
16362rm -f core conftest.err conftest.$ac_objext \
16363 conftest$ac_exeext conftest.$ac_ext
16364LIBS=$ac_check_lib_save_LIBS
16365fi
16366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16367$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016368if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16370else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16372$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016373if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016374 $as_echo_n "(cached) " >&6
16375else
16376 ac_check_lib_save_LIBS=$LIBS
16377LIBS="-lsvld $LIBS"
16378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379/* end confdefs.h. */
16380
16381/* Override any GCC internal prototype to avoid an error.
16382 Use char because int might match the return type of a GCC
16383 builtin and then its argument prototype would still apply. */
16384#ifdef __cplusplus
16385extern "C"
16386#endif
16387char dlopen ();
16388int
16389main ()
16390{
16391return dlopen ();
16392 ;
16393 return 0;
16394}
16395_ACEOF
16396if ac_fn_c_try_link "$LINENO"; then :
16397 ac_cv_lib_svld_dlopen=yes
16398else
16399 ac_cv_lib_svld_dlopen=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403LIBS=$ac_check_lib_save_LIBS
16404fi
16405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16406$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016407if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16409else
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16411$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016412if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016413 $as_echo_n "(cached) " >&6
16414else
16415 ac_check_lib_save_LIBS=$LIBS
16416LIBS="-ldld $LIBS"
16417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418/* end confdefs.h. */
16419
16420/* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
16423#ifdef __cplusplus
16424extern "C"
16425#endif
16426char dld_link ();
16427int
16428main ()
16429{
16430return dld_link ();
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435if ac_fn_c_try_link "$LINENO"; then :
16436 ac_cv_lib_dld_dld_link=yes
16437else
16438 ac_cv_lib_dld_dld_link=no
16439fi
16440rm -f core conftest.err conftest.$ac_objext \
16441 conftest$ac_exeext conftest.$ac_ext
16442LIBS=$ac_check_lib_save_LIBS
16443fi
16444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16445$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016446if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016447 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16448fi
16449
16450
16451fi
16452
16453
16454fi
16455
16456
16457fi
16458
16459
16460fi
16461
16462
16463fi
16464
16465 ;;
16466 esac
16467
16468 if test "x$lt_cv_dlopen" != xno; then
16469 enable_dlopen=yes
16470 else
16471 enable_dlopen=no
16472 fi
16473
16474 case $lt_cv_dlopen in
16475 dlopen)
16476 save_CPPFLAGS="$CPPFLAGS"
16477 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16478
16479 save_LDFLAGS="$LDFLAGS"
16480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16481
16482 save_LIBS="$LIBS"
16483 LIBS="$lt_cv_dlopen_libs $LIBS"
16484
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16486$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016487if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016488 $as_echo_n "(cached) " >&6
16489else
16490 if test "$cross_compiling" = yes; then :
16491 lt_cv_dlopen_self=cross
16492else
16493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16494 lt_status=$lt_dlunknown
16495 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016496#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016497#include "confdefs.h"
16498
16499#if HAVE_DLFCN_H
16500#include <dlfcn.h>
16501#endif
16502
16503#include <stdio.h>
16504
16505#ifdef RTLD_GLOBAL
16506# define LT_DLGLOBAL RTLD_GLOBAL
16507#else
16508# ifdef DL_GLOBAL
16509# define LT_DLGLOBAL DL_GLOBAL
16510# else
16511# define LT_DLGLOBAL 0
16512# endif
16513#endif
16514
16515/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16516 find out it does not work in some platform. */
16517#ifndef LT_DLLAZY_OR_NOW
16518# ifdef RTLD_LAZY
16519# define LT_DLLAZY_OR_NOW RTLD_LAZY
16520# else
16521# ifdef DL_LAZY
16522# define LT_DLLAZY_OR_NOW DL_LAZY
16523# else
16524# ifdef RTLD_NOW
16525# define LT_DLLAZY_OR_NOW RTLD_NOW
16526# else
16527# ifdef DL_NOW
16528# define LT_DLLAZY_OR_NOW DL_NOW
16529# else
16530# define LT_DLLAZY_OR_NOW 0
16531# endif
16532# endif
16533# endif
16534# endif
16535#endif
16536
cristy0c60a692010-11-04 01:09:47 +000016537/* When -fvisbility=hidden is used, assume the code has been annotated
16538 correspondingly for the symbols needed. */
16539#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016540int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016541#endif
16542
cristyda16f162011-02-19 23:52:17 +000016543int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016544int main ()
16545{
16546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16547 int status = $lt_dlunknown;
16548
16549 if (self)
16550 {
16551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016552 else
16553 {
16554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16555 else puts (dlerror ());
16556 }
cristy73bd4a52010-10-05 11:24:23 +000016557 /* dlclose (self); */
16558 }
16559 else
16560 puts (dlerror ());
16561
16562 return status;
16563}
16564_LT_EOF
16565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16566 (eval $ac_link) 2>&5
16567 ac_status=$?
16568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16569 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16570 (./conftest; exit; ) >&5 2>/dev/null
16571 lt_status=$?
16572 case x$lt_status in
16573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16575 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16576 esac
16577 else :
16578 # compilation failed
16579 lt_cv_dlopen_self=no
16580 fi
16581fi
16582rm -fr conftest*
16583
16584
16585fi
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16587$as_echo "$lt_cv_dlopen_self" >&6; }
16588
16589 if test "x$lt_cv_dlopen_self" = xyes; then
16590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16592$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016593if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016594 $as_echo_n "(cached) " >&6
16595else
16596 if test "$cross_compiling" = yes; then :
16597 lt_cv_dlopen_self_static=cross
16598else
16599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16600 lt_status=$lt_dlunknown
16601 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016602#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016603#include "confdefs.h"
16604
16605#if HAVE_DLFCN_H
16606#include <dlfcn.h>
16607#endif
16608
16609#include <stdio.h>
16610
16611#ifdef RTLD_GLOBAL
16612# define LT_DLGLOBAL RTLD_GLOBAL
16613#else
16614# ifdef DL_GLOBAL
16615# define LT_DLGLOBAL DL_GLOBAL
16616# else
16617# define LT_DLGLOBAL 0
16618# endif
16619#endif
16620
16621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16622 find out it does not work in some platform. */
16623#ifndef LT_DLLAZY_OR_NOW
16624# ifdef RTLD_LAZY
16625# define LT_DLLAZY_OR_NOW RTLD_LAZY
16626# else
16627# ifdef DL_LAZY
16628# define LT_DLLAZY_OR_NOW DL_LAZY
16629# else
16630# ifdef RTLD_NOW
16631# define LT_DLLAZY_OR_NOW RTLD_NOW
16632# else
16633# ifdef DL_NOW
16634# define LT_DLLAZY_OR_NOW DL_NOW
16635# else
16636# define LT_DLLAZY_OR_NOW 0
16637# endif
16638# endif
16639# endif
16640# endif
16641#endif
16642
cristy0c60a692010-11-04 01:09:47 +000016643/* When -fvisbility=hidden is used, assume the code has been annotated
16644 correspondingly for the symbols needed. */
16645#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016646int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016647#endif
16648
cristyda16f162011-02-19 23:52:17 +000016649int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016650int main ()
16651{
16652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16653 int status = $lt_dlunknown;
16654
16655 if (self)
16656 {
16657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016658 else
16659 {
16660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16661 else puts (dlerror ());
16662 }
cristy73bd4a52010-10-05 11:24:23 +000016663 /* dlclose (self); */
16664 }
16665 else
16666 puts (dlerror ());
16667
16668 return status;
16669}
16670_LT_EOF
16671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16672 (eval $ac_link) 2>&5
16673 ac_status=$?
16674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16675 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16676 (./conftest; exit; ) >&5 2>/dev/null
16677 lt_status=$?
16678 case x$lt_status in
16679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16681 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16682 esac
16683 else :
16684 # compilation failed
16685 lt_cv_dlopen_self_static=no
16686 fi
16687fi
16688rm -fr conftest*
16689
16690
16691fi
16692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16693$as_echo "$lt_cv_dlopen_self_static" >&6; }
16694 fi
16695
16696 CPPFLAGS="$save_CPPFLAGS"
16697 LDFLAGS="$save_LDFLAGS"
16698 LIBS="$save_LIBS"
16699 ;;
16700 esac
16701
16702 case $lt_cv_dlopen_self in
16703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16704 *) enable_dlopen_self=unknown ;;
16705 esac
16706
16707 case $lt_cv_dlopen_self_static in
16708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16709 *) enable_dlopen_self_static=unknown ;;
16710 esac
16711fi
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729striplib=
16730old_striplib=
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16732$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16733if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16734 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16735 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16737$as_echo "yes" >&6; }
16738else
16739# FIXME - insert some real tests, host_os isn't really good enough
16740 case $host_os in
16741 darwin*)
16742 if test -n "$STRIP" ; then
16743 striplib="$STRIP -x"
16744 old_striplib="$STRIP -S"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16746$as_echo "yes" >&6; }
16747 else
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749$as_echo "no" >&6; }
16750 fi
16751 ;;
16752 *)
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16754$as_echo "no" >&6; }
16755 ;;
16756 esac
16757fi
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770 # Report which library types will actually be built
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16772$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16774$as_echo "$can_build_shared" >&6; }
16775
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16777$as_echo_n "checking whether to build shared libraries... " >&6; }
16778 test "$can_build_shared" = "no" && enable_shared=no
16779
16780 # On AIX, shared libraries and static libraries use the same namespace, and
16781 # are all built from PIC.
16782 case $host_os in
16783 aix3*)
16784 test "$enable_shared" = yes && enable_static=no
16785 if test -n "$RANLIB"; then
16786 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16787 postinstall_cmds='$RANLIB $lib'
16788 fi
16789 ;;
16790
16791 aix[4-9]*)
16792 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16793 test "$enable_shared" = yes && enable_static=no
16794 fi
16795 ;;
16796 esac
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16798$as_echo "$enable_shared" >&6; }
16799
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16801$as_echo_n "checking whether to build static libraries... " >&6; }
16802 # Make sure either enable_shared or enable_static is yes.
16803 test "$enable_shared" = yes || enable_static=yes
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16805$as_echo "$enable_static" >&6; }
16806
16807
16808
16809
16810fi
16811ac_ext=c
16812ac_cpp='$CPP $CPPFLAGS'
16813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16815ac_compiler_gnu=$ac_cv_c_compiler_gnu
16816
16817CC="$lt_save_CC"
16818
cristy0c60a692010-11-04 01:09:47 +000016819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16820 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16821 (test "X$CXX" != "Xg++"))) ; then
16822 ac_ext=cpp
16823ac_cpp='$CXXCPP $CPPFLAGS'
16824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16828$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16829if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016830 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016831 $as_echo_n "(cached) " >&6
16832else
16833 # Double quotes because CXXCPP needs to be expanded
16834 for CXXCPP in "$CXX -E" "/lib/cpp"
16835 do
16836 ac_preproc_ok=false
16837for ac_cxx_preproc_warn_flag in '' yes
16838do
16839 # Use a header file that comes with gcc, so configuring glibc
16840 # with a fresh cross-compiler works.
16841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16842 # <limits.h> exists even on freestanding compilers.
16843 # On the NeXT, cc -E runs the code through the compiler's parser,
16844 # not just through cpp. "Syntax error" is here to catch this case.
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846/* end confdefs.h. */
16847#ifdef __STDC__
16848# include <limits.h>
16849#else
16850# include <assert.h>
16851#endif
16852 Syntax error
16853_ACEOF
16854if ac_fn_cxx_try_cpp "$LINENO"; then :
16855
16856else
16857 # Broken: fails on valid input.
16858continue
16859fi
cristyda16f162011-02-19 23:52:17 +000016860rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016861
16862 # OK, works on sane cases. Now check whether nonexistent headers
16863 # can be detected and how.
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865/* end confdefs.h. */
16866#include <ac_nonexistent.h>
16867_ACEOF
16868if ac_fn_cxx_try_cpp "$LINENO"; then :
16869 # Broken: success on invalid input.
16870continue
16871else
16872 # Passes both tests.
16873ac_preproc_ok=:
16874break
16875fi
cristyda16f162011-02-19 23:52:17 +000016876rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016877
16878done
16879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016880rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016881if $ac_preproc_ok; then :
16882 break
16883fi
16884
16885 done
16886 ac_cv_prog_CXXCPP=$CXXCPP
16887
16888fi
16889 CXXCPP=$ac_cv_prog_CXXCPP
16890else
16891 ac_cv_prog_CXXCPP=$CXXCPP
16892fi
16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16894$as_echo "$CXXCPP" >&6; }
16895ac_preproc_ok=false
16896for ac_cxx_preproc_warn_flag in '' yes
16897do
16898 # Use a header file that comes with gcc, so configuring glibc
16899 # with a fresh cross-compiler works.
16900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16901 # <limits.h> exists even on freestanding compilers.
16902 # On the NeXT, cc -E runs the code through the compiler's parser,
16903 # not just through cpp. "Syntax error" is here to catch this case.
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905/* end confdefs.h. */
16906#ifdef __STDC__
16907# include <limits.h>
16908#else
16909# include <assert.h>
16910#endif
16911 Syntax error
16912_ACEOF
16913if ac_fn_cxx_try_cpp "$LINENO"; then :
16914
16915else
16916 # Broken: fails on valid input.
16917continue
16918fi
cristyda16f162011-02-19 23:52:17 +000016919rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016920
16921 # OK, works on sane cases. Now check whether nonexistent headers
16922 # can be detected and how.
16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924/* end confdefs.h. */
16925#include <ac_nonexistent.h>
16926_ACEOF
16927if ac_fn_cxx_try_cpp "$LINENO"; then :
16928 # Broken: success on invalid input.
16929continue
16930else
16931 # Passes both tests.
16932ac_preproc_ok=:
16933break
16934fi
cristyda16f162011-02-19 23:52:17 +000016935rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016936
16937done
16938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016939rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016940if $ac_preproc_ok; then :
16941
16942else
16943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16945as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16946See \`config.log' for more details" "$LINENO" 5; }
16947fi
16948
16949ac_ext=c
16950ac_cpp='$CPP $CPPFLAGS'
16951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16953ac_compiler_gnu=$ac_cv_c_compiler_gnu
16954
16955else
16956 _lt_caught_CXX_error=yes
16957fi
cristy73bd4a52010-10-05 11:24:23 +000016958
16959ac_ext=cpp
16960ac_cpp='$CXXCPP $CPPFLAGS'
16961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16964
16965archive_cmds_need_lc_CXX=no
16966allow_undefined_flag_CXX=
16967always_export_symbols_CXX=no
16968archive_expsym_cmds_CXX=
16969compiler_needs_object_CXX=no
16970export_dynamic_flag_spec_CXX=
16971hardcode_direct_CXX=no
16972hardcode_direct_absolute_CXX=no
16973hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000016974hardcode_libdir_separator_CXX=
16975hardcode_minus_L_CXX=no
16976hardcode_shlibpath_var_CXX=unsupported
16977hardcode_automatic_CXX=no
16978inherit_rpath_CXX=no
16979module_cmds_CXX=
16980module_expsym_cmds_CXX=
16981link_all_deplibs_CXX=unknown
16982old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016983reload_flag_CXX=$reload_flag
16984reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016985no_undefined_flag_CXX=
16986whole_archive_flag_spec_CXX=
16987enable_shared_with_static_runtimes_CXX=no
16988
16989# Source file extension for C++ test sources.
16990ac_ext=cpp
16991
16992# Object file extension for compiled C++ test sources.
16993objext=o
16994objext_CXX=$objext
16995
16996# No sense in running all these tests if we already determined that
16997# the CXX compiler isn't working. Some variables (like enable_shared)
16998# are currently assumed to apply to all compilers on this platform,
16999# and will be corrupted by setting them based on a non-working compiler.
17000if test "$_lt_caught_CXX_error" != yes; then
17001 # Code to be used in simple compile tests
17002 lt_simple_compile_test_code="int some_variable = 0;"
17003
17004 # Code to be used in simple link tests
17005 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17006
17007 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17008
17009
17010
17011
17012
17013
17014# If no C compiler was specified, use CC.
17015LTCC=${LTCC-"$CC"}
17016
17017# If no C compiler flags were specified, use CFLAGS.
17018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17019
17020# Allow CC to be a program name with arguments.
17021compiler=$CC
17022
17023
17024 # save warnings/boilerplate of simple test code
17025 ac_outfile=conftest.$ac_objext
17026echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17027eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17028_lt_compiler_boilerplate=`cat conftest.err`
17029$RM conftest*
17030
17031 ac_outfile=conftest.$ac_objext
17032echo "$lt_simple_link_test_code" >conftest.$ac_ext
17033eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17034_lt_linker_boilerplate=`cat conftest.err`
17035$RM -r conftest*
17036
17037
17038 # Allow CC to be a program name with arguments.
17039 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017040 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017041 lt_save_LD=$LD
17042 lt_save_GCC=$GCC
17043 GCC=$GXX
17044 lt_save_with_gnu_ld=$with_gnu_ld
17045 lt_save_path_LD=$lt_cv_path_LD
17046 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17047 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17048 else
17049 $as_unset lt_cv_prog_gnu_ld
17050 fi
17051 if test -n "${lt_cv_path_LDCXX+set}"; then
17052 lt_cv_path_LD=$lt_cv_path_LDCXX
17053 else
17054 $as_unset lt_cv_path_LD
17055 fi
17056 test -z "${LDCXX+set}" || LD=$LDCXX
17057 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017058 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017059 compiler=$CC
17060 compiler_CXX=$CC
17061 for cc_temp in $compiler""; do
17062 case $cc_temp in
17063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17065 \-*) ;;
17066 *) break;;
17067 esac
17068done
cristy0c60a692010-11-04 01:09:47 +000017069cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017070
17071
17072 if test -n "$compiler"; then
17073 # We don't want -fno-exception when compiling C++ code, so set the
17074 # no_builtin_flag separately
17075 if test "$GXX" = yes; then
17076 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17077 else
17078 lt_prog_compiler_no_builtin_flag_CXX=
17079 fi
17080
17081 if test "$GXX" = yes; then
17082 # Set up default GNU C++ configuration
17083
17084
17085
17086# Check whether --with-gnu-ld was given.
17087if test "${with_gnu_ld+set}" = set; then :
17088 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17089else
17090 with_gnu_ld=no
17091fi
17092
17093ac_prog=ld
17094if test "$GCC" = yes; then
17095 # Check if gcc -print-prog-name=ld gives a path.
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17097$as_echo_n "checking for ld used by $CC... " >&6; }
17098 case $host in
17099 *-*-mingw*)
17100 # gcc leaves a trailing carriage return which upsets mingw
17101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17102 *)
17103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17104 esac
17105 case $ac_prog in
17106 # Accept absolute paths.
17107 [\\/]* | ?:[\\/]*)
17108 re_direlt='/[^/][^/]*/\.\./'
17109 # Canonicalize the pathname of ld
17110 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17111 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17112 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17113 done
17114 test -z "$LD" && LD="$ac_prog"
17115 ;;
17116 "")
17117 # If it fails, then pretend we aren't using GCC.
17118 ac_prog=ld
17119 ;;
17120 *)
17121 # If it is relative, then search for the first ld in PATH.
17122 with_gnu_ld=unknown
17123 ;;
17124 esac
17125elif test "$with_gnu_ld" = yes; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17127$as_echo_n "checking for GNU ld... " >&6; }
17128else
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17130$as_echo_n "checking for non-GNU ld... " >&6; }
17131fi
cristyda16f162011-02-19 23:52:17 +000017132if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017133 $as_echo_n "(cached) " >&6
17134else
17135 if test -z "$LD"; then
17136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17137 for ac_dir in $PATH; do
17138 IFS="$lt_save_ifs"
17139 test -z "$ac_dir" && ac_dir=.
17140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17141 lt_cv_path_LD="$ac_dir/$ac_prog"
17142 # Check to see if the program is GNU ld. I'd rather use --version,
17143 # but apparently some variants of GNU ld only accept -v.
17144 # Break only if it was the GNU/non-GNU ld that we prefer.
17145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17146 *GNU* | *'with BFD'*)
17147 test "$with_gnu_ld" != no && break
17148 ;;
17149 *)
17150 test "$with_gnu_ld" != yes && break
17151 ;;
17152 esac
17153 fi
17154 done
17155 IFS="$lt_save_ifs"
17156else
17157 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17158fi
17159fi
17160
17161LD="$lt_cv_path_LD"
17162if test -n "$LD"; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17164$as_echo "$LD" >&6; }
17165else
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167$as_echo "no" >&6; }
17168fi
cristy98dddb52010-11-04 00:30:15 +000017169test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17171$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017172if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017173 $as_echo_n "(cached) " >&6
17174else
17175 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17176case `$LD -v 2>&1 </dev/null` in
17177*GNU* | *'with BFD'*)
17178 lt_cv_prog_gnu_ld=yes
17179 ;;
17180*)
17181 lt_cv_prog_gnu_ld=no
17182 ;;
17183esac
17184fi
17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17186$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17187with_gnu_ld=$lt_cv_prog_gnu_ld
17188
17189
17190
17191
17192
17193
17194
17195 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17196 # archiving commands below assume that GNU ld is being used.
17197 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017198 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17199 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 +000017200
17201 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17203
17204 # If archive_cmds runs LD, not CC, wlarc should be empty
17205 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17206 # investigate it a little bit more. (MM)
17207 wlarc='${wl}'
17208
17209 # ancient GNU ld didn't support --whole-archive et. al.
17210 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17211 $GREP 'no-whole-archive' > /dev/null; then
17212 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17213 else
17214 whole_archive_flag_spec_CXX=
17215 fi
17216 else
17217 with_gnu_ld=no
17218 wlarc=
17219
17220 # A generic and very simple default shared library creation
17221 # command for GNU C++ for the case where it uses the native
17222 # linker, instead of GNU ld. If possible, this setting should
17223 # overridden to take advantage of the native linker features on
17224 # the platform it is being used on.
17225 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17226 fi
17227
17228 # Commands to make compiler produce verbose output that lists
17229 # what "hidden" libraries, object files and flags are used when
17230 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017232
17233 else
17234 GXX=no
17235 with_gnu_ld=no
17236 wlarc=
17237 fi
17238
17239 # PORTME: fill in a description of your system's C++ link characteristics
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17241$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17242 ld_shlibs_CXX=yes
17243 case $host_os in
17244 aix3*)
17245 # FIXME: insert proper C++ library support
17246 ld_shlibs_CXX=no
17247 ;;
17248 aix[4-9]*)
17249 if test "$host_cpu" = ia64; then
17250 # On IA64, the linker does run time linking by default, so we don't
17251 # have to do anything special.
17252 aix_use_runtimelinking=no
17253 exp_sym_flag='-Bexport'
17254 no_entry_flag=""
17255 else
17256 aix_use_runtimelinking=no
17257
17258 # Test if we are trying to use run time linking or normal
17259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17260 # need to do runtime linking.
17261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17262 for ld_flag in $LDFLAGS; do
17263 case $ld_flag in
17264 *-brtl*)
17265 aix_use_runtimelinking=yes
17266 break
17267 ;;
17268 esac
17269 done
17270 ;;
17271 esac
17272
17273 exp_sym_flag='-bexport'
17274 no_entry_flag='-bnoentry'
17275 fi
17276
17277 # When large executables or shared objects are built, AIX ld can
17278 # have problems creating the table of contents. If linking a library
17279 # or program results in "error TOC overflow" add -mminimal-toc to
17280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17282
17283 archive_cmds_CXX=''
17284 hardcode_direct_CXX=yes
17285 hardcode_direct_absolute_CXX=yes
17286 hardcode_libdir_separator_CXX=':'
17287 link_all_deplibs_CXX=yes
17288 file_list_spec_CXX='${wl}-f,'
17289
17290 if test "$GXX" = yes; then
17291 case $host_os in aix4.[012]|aix4.[012].*)
17292 # We only want to do this on AIX 4.2 and lower, the check
17293 # below for broken collect2 doesn't work under 4.3+
17294 collect2name=`${CC} -print-prog-name=collect2`
17295 if test -f "$collect2name" &&
17296 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17297 then
17298 # We have reworked collect2
17299 :
17300 else
17301 # We have old collect2
17302 hardcode_direct_CXX=unsupported
17303 # It fails to find uninstalled libraries when the uninstalled
17304 # path is not listed in the libpath. Setting hardcode_minus_L
17305 # to unsupported forces relinking
17306 hardcode_minus_L_CXX=yes
17307 hardcode_libdir_flag_spec_CXX='-L$libdir'
17308 hardcode_libdir_separator_CXX=
17309 fi
17310 esac
17311 shared_flag='-shared'
17312 if test "$aix_use_runtimelinking" = yes; then
17313 shared_flag="$shared_flag "'${wl}-G'
17314 fi
17315 else
17316 # not using gcc
17317 if test "$host_cpu" = ia64; then
17318 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17319 # chokes on -Wl,-G. The following line is correct:
17320 shared_flag='-G'
17321 else
17322 if test "$aix_use_runtimelinking" = yes; then
17323 shared_flag='${wl}-G'
17324 else
17325 shared_flag='${wl}-bM:SRE'
17326 fi
17327 fi
17328 fi
17329
17330 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17331 # It seems that -bexpall does not export symbols beginning with
17332 # underscore (_), so it is better to generate a list of symbols to
17333 # export.
17334 always_export_symbols_CXX=yes
17335 if test "$aix_use_runtimelinking" = yes; then
17336 # Warning - without using the other runtime loading flags (-brtl),
17337 # -berok will link without error, but may produce a broken library.
17338 allow_undefined_flag_CXX='-berok'
17339 # Determine the default libpath from the value encoded in an empty
17340 # executable.
cristyda16f162011-02-19 23:52:17 +000017341 if test "${lt_cv_aix_libpath+set}" = set; then
17342 aix_libpath=$lt_cv_aix_libpath
17343else
17344 if ${lt_cv_aix_libpath__CXX+:} false; then :
17345 $as_echo_n "(cached) " >&6
17346else
17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017348/* end confdefs.h. */
17349
17350int
17351main ()
17352{
17353
17354 ;
17355 return 0;
17356}
17357_ACEOF
17358if ac_fn_cxx_try_link "$LINENO"; then :
17359
cristyda16f162011-02-19 23:52:17 +000017360 lt_aix_libpath_sed='
17361 /Import File Strings/,/^$/ {
17362 /^0/ {
17363 s/^0 *\([^ ]*\) *$/\1/
17364 p
17365 }
17366 }'
17367 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17368 # Check for a 64-bit object if we didn't find anything.
17369 if test -z "$lt_cv_aix_libpath__CXX"; then
17370 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17371 fi
cristy73bd4a52010-10-05 11:24:23 +000017372fi
17373rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017375 if test -z "$lt_cv_aix_libpath__CXX"; then
17376 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17377 fi
17378
17379fi
17380
17381 aix_libpath=$lt_cv_aix_libpath__CXX
17382fi
cristy73bd4a52010-10-05 11:24:23 +000017383
17384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17385
cristy0c60a692010-11-04 01:09:47 +000017386 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 +000017387 else
17388 if test "$host_cpu" = ia64; then
17389 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17390 allow_undefined_flag_CXX="-z nodefs"
17391 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"
17392 else
17393 # Determine the default libpath from the value encoded in an
17394 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017395 if test "${lt_cv_aix_libpath+set}" = set; then
17396 aix_libpath=$lt_cv_aix_libpath
17397else
17398 if ${lt_cv_aix_libpath__CXX+:} false; then :
17399 $as_echo_n "(cached) " >&6
17400else
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017402/* end confdefs.h. */
17403
17404int
17405main ()
17406{
17407
17408 ;
17409 return 0;
17410}
17411_ACEOF
17412if ac_fn_cxx_try_link "$LINENO"; then :
17413
cristyda16f162011-02-19 23:52:17 +000017414 lt_aix_libpath_sed='
17415 /Import File Strings/,/^$/ {
17416 /^0/ {
17417 s/^0 *\([^ ]*\) *$/\1/
17418 p
17419 }
17420 }'
17421 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17422 # Check for a 64-bit object if we didn't find anything.
17423 if test -z "$lt_cv_aix_libpath__CXX"; then
17424 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17425 fi
cristy73bd4a52010-10-05 11:24:23 +000017426fi
17427rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017429 if test -z "$lt_cv_aix_libpath__CXX"; then
17430 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17431 fi
17432
17433fi
17434
17435 aix_libpath=$lt_cv_aix_libpath__CXX
17436fi
cristy73bd4a52010-10-05 11:24:23 +000017437
17438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17439 # Warning - without using the other run time loading flags,
17440 # -berok will link without error, but may produce a broken library.
17441 no_undefined_flag_CXX=' ${wl}-bernotok'
17442 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017443 if test "$with_gnu_ld" = yes; then
17444 # We only use this code for GNU lds that support --whole-archive.
17445 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17446 else
17447 # Exported symbols can be pulled into shared objects from archives
17448 whole_archive_flag_spec_CXX='$convenience'
17449 fi
cristy73bd4a52010-10-05 11:24:23 +000017450 archive_cmds_need_lc_CXX=yes
17451 # This is similar to how AIX traditionally builds its shared
17452 # libraries.
17453 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'
17454 fi
17455 fi
17456 ;;
17457
17458 beos*)
17459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17460 allow_undefined_flag_CXX=unsupported
17461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17462 # support --undefined. This deserves some investigation. FIXME
17463 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464 else
17465 ld_shlibs_CXX=no
17466 fi
17467 ;;
17468
17469 chorus*)
17470 case $cc_basename in
17471 *)
17472 # FIXME: insert proper C++ library support
17473 ld_shlibs_CXX=no
17474 ;;
17475 esac
17476 ;;
17477
17478 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017479 case $GXX,$cc_basename in
17480 ,cl* | no,cl*)
17481 # Native MSVC
17482 # hardcode_libdir_flag_spec is actually meaningless, as there is
17483 # no search path for DLLs.
17484 hardcode_libdir_flag_spec_CXX=' '
17485 allow_undefined_flag_CXX=unsupported
17486 always_export_symbols_CXX=yes
17487 file_list_spec_CXX='@'
17488 # Tell ltmain to make .lib files, not .a files.
17489 libext=lib
17490 # Tell ltmain to make .dll files, not .so files.
17491 shrext_cmds=".dll"
17492 # FIXME: Setting linknames here is a bad hack.
17493 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17494 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17495 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17496 else
17497 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17498 fi~
17499 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17500 linknames='
17501 # The linker will not automatically build a static lib if we build a DLL.
17502 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17503 enable_shared_with_static_runtimes_CXX=yes
17504 # Don't use ranlib
17505 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17506 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17507 lt_tool_outputfile="@TOOL_OUTPUT@"~
17508 case $lt_outputfile in
17509 *.exe|*.EXE) ;;
17510 *)
17511 lt_outputfile="$lt_outputfile.exe"
17512 lt_tool_outputfile="$lt_tool_outputfile.exe"
17513 ;;
17514 esac~
17515 func_to_tool_file "$lt_outputfile"~
17516 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17517 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17518 $RM "$lt_outputfile.manifest";
17519 fi'
17520 ;;
17521 *)
17522 # g++
17523 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17524 # as there is no search path for DLLs.
17525 hardcode_libdir_flag_spec_CXX='-L$libdir'
17526 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17527 allow_undefined_flag_CXX=unsupported
17528 always_export_symbols_CXX=no
17529 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017530
cristyda16f162011-02-19 23:52:17 +000017531 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17532 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'
17533 # If the export-symbols file already is a .def file (1st line
17534 # is EXPORTS), use it as is; otherwise, prepend...
17535 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17536 cp $export_symbols $output_objdir/$soname.def;
17537 else
17538 echo EXPORTS > $output_objdir/$soname.def;
17539 cat $export_symbols >> $output_objdir/$soname.def;
17540 fi~
17541 $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'
17542 else
17543 ld_shlibs_CXX=no
17544 fi
17545 ;;
17546 esac
17547 ;;
cristy73bd4a52010-10-05 11:24:23 +000017548 darwin* | rhapsody*)
17549
17550
17551 archive_cmds_need_lc_CXX=no
17552 hardcode_direct_CXX=no
17553 hardcode_automatic_CXX=yes
17554 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017555 if test "$lt_cv_ld_force_load" = "yes"; then
17556 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\"`'
cristy99bd5232011-12-07 14:38:20 +000017557
cristy0c60a692010-11-04 01:09:47 +000017558 else
17559 whole_archive_flag_spec_CXX=''
17560 fi
cristy73bd4a52010-10-05 11:24:23 +000017561 link_all_deplibs_CXX=yes
17562 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17563 case $cc_basename in
17564 ifort*) _lt_dar_can_shared=yes ;;
17565 *) _lt_dar_can_shared=$GCC ;;
17566 esac
17567 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017568 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017569 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}"
17570 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17571 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}"
17572 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}"
17573 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17574 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}"
17575 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}"
17576 fi
17577
17578 else
17579 ld_shlibs_CXX=no
17580 fi
17581
17582 ;;
17583
17584 dgux*)
17585 case $cc_basename in
17586 ec++*)
17587 # FIXME: insert proper C++ library support
17588 ld_shlibs_CXX=no
17589 ;;
17590 ghcx*)
17591 # Green Hills C++ Compiler
17592 # FIXME: insert proper C++ library support
17593 ld_shlibs_CXX=no
17594 ;;
17595 *)
17596 # FIXME: insert proper C++ library support
17597 ld_shlibs_CXX=no
17598 ;;
17599 esac
17600 ;;
17601
cristy99bd5232011-12-07 14:38:20 +000017602 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017603 # C++ shared libraries reported to be fairly broken before
17604 # switch to ELF
17605 ld_shlibs_CXX=no
17606 ;;
17607
17608 freebsd-elf*)
17609 archive_cmds_need_lc_CXX=no
17610 ;;
17611
17612 freebsd* | dragonfly*)
17613 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17614 # conventions
17615 ld_shlibs_CXX=yes
17616 ;;
17617
17618 gnu*)
17619 ;;
17620
cristy0c60a692010-11-04 01:09:47 +000017621 haiku*)
17622 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623 link_all_deplibs_CXX=yes
17624 ;;
17625
cristy73bd4a52010-10-05 11:24:23 +000017626 hpux9*)
17627 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17628 hardcode_libdir_separator_CXX=:
17629 export_dynamic_flag_spec_CXX='${wl}-E'
17630 hardcode_direct_CXX=yes
17631 hardcode_minus_L_CXX=yes # Not in the search PATH,
17632 # but as the default
17633 # location of the library.
17634
17635 case $cc_basename in
17636 CC*)
17637 # FIXME: insert proper C++ library support
17638 ld_shlibs_CXX=no
17639 ;;
17640 aCC*)
17641 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'
17642 # Commands to make compiler produce verbose output that lists
17643 # what "hidden" libraries, object files and flags are used when
17644 # linking a shared library.
17645 #
17646 # There doesn't appear to be a way to prevent this compiler from
17647 # explicitly linking system object files so we need to strip them
17648 # from the output so that they don't get included in the library
17649 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017650 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 +000017651 ;;
17652 *)
17653 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017654 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 +000017655 else
17656 # FIXME: insert proper C++ library support
17657 ld_shlibs_CXX=no
17658 fi
17659 ;;
17660 esac
17661 ;;
17662
17663 hpux10*|hpux11*)
17664 if test $with_gnu_ld = no; then
17665 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17666 hardcode_libdir_separator_CXX=:
17667
17668 case $host_cpu in
17669 hppa*64*|ia64*)
17670 ;;
17671 *)
17672 export_dynamic_flag_spec_CXX='${wl}-E'
17673 ;;
17674 esac
17675 fi
17676 case $host_cpu in
17677 hppa*64*|ia64*)
17678 hardcode_direct_CXX=no
17679 hardcode_shlibpath_var_CXX=no
17680 ;;
17681 *)
17682 hardcode_direct_CXX=yes
17683 hardcode_direct_absolute_CXX=yes
17684 hardcode_minus_L_CXX=yes # Not in the search PATH,
17685 # but as the default
17686 # location of the library.
17687 ;;
17688 esac
17689
17690 case $cc_basename in
17691 CC*)
17692 # FIXME: insert proper C++ library support
17693 ld_shlibs_CXX=no
17694 ;;
17695 aCC*)
17696 case $host_cpu in
17697 hppa*64*)
17698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17699 ;;
17700 ia64*)
17701 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17702 ;;
17703 *)
17704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17705 ;;
17706 esac
17707 # Commands to make compiler produce verbose output that lists
17708 # what "hidden" libraries, object files and flags are used when
17709 # linking a shared library.
17710 #
17711 # There doesn't appear to be a way to prevent this compiler from
17712 # explicitly linking system object files so we need to strip them
17713 # from the output so that they don't get included in the library
17714 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017715 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 +000017716 ;;
17717 *)
17718 if test "$GXX" = yes; then
17719 if test $with_gnu_ld = no; then
17720 case $host_cpu in
17721 hppa*64*)
17722 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17723 ;;
17724 ia64*)
cristyda16f162011-02-19 23:52:17 +000017725 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 +000017726 ;;
17727 *)
cristyda16f162011-02-19 23:52:17 +000017728 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 +000017729 ;;
17730 esac
17731 fi
17732 else
17733 # FIXME: insert proper C++ library support
17734 ld_shlibs_CXX=no
17735 fi
17736 ;;
17737 esac
17738 ;;
17739
17740 interix[3-9]*)
17741 hardcode_direct_CXX=no
17742 hardcode_shlibpath_var_CXX=no
17743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17744 export_dynamic_flag_spec_CXX='${wl}-E'
17745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17746 # Instead, shared libraries are loaded at an image base (0x10000000 by
17747 # default) and relocated if they conflict, which is a slow very memory
17748 # consuming and fragmenting process. To avoid this, we pick a random,
17749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17750 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17751 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'
17752 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'
17753 ;;
17754 irix5* | irix6*)
17755 case $cc_basename in
17756 CC*)
17757 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017758 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 +000017759
17760 # Archives containing C++ object files must be created using
17761 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17762 # necessary to make sure instantiated templates are included
17763 # in the archive.
17764 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17765 ;;
17766 *)
17767 if test "$GXX" = yes; then
17768 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017769 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 +000017770 else
cristyda16f162011-02-19 23:52:17 +000017771 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 +000017772 fi
17773 fi
17774 link_all_deplibs_CXX=yes
17775 ;;
17776 esac
17777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17778 hardcode_libdir_separator_CXX=:
17779 inherit_rpath_CXX=yes
17780 ;;
17781
cristy0c60a692010-11-04 01:09:47 +000017782 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017783 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 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'
17792 # Commands to make compiler produce verbose output that lists
17793 # what "hidden" libraries, object files and flags are used when
17794 # linking a shared library.
17795 #
17796 # There doesn't appear to be a way to prevent this compiler from
17797 # explicitly linking system object files so we need to strip them
17798 # from the output so that they don't get included in the library
17799 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017800 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 +000017801
17802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17803 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17804
17805 # Archives containing C++ object files must be created using
17806 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17807 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17808 ;;
17809 icpc* | ecpc* )
17810 # Intel C++
17811 with_gnu_ld=yes
17812 # version 8.0 and above of icpc choke on multiply defined symbols
17813 # if we add $predep_objects and $postdep_objects, however 7.1 and
17814 # earlier do not add the objects themselves.
17815 case `$CC -V 2>&1` in
17816 *"Version 7."*)
17817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17818 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'
17819 ;;
17820 *) # Version 8.0 or newer
17821 tmp_idyn=
17822 case $host_cpu in
17823 ia64*) tmp_idyn=' -i_dynamic';;
17824 esac
17825 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17826 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'
17827 ;;
17828 esac
17829 archive_cmds_need_lc_CXX=no
17830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17832 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17833 ;;
17834 pgCC* | pgcpp*)
17835 # Portland Group C++ compiler
17836 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017837 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017838 prelink_cmds_CXX='tpldir=Template.dir~
17839 rm -rf $tpldir~
17840 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017841 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017842 old_archive_cmds_CXX='tpldir=Template.dir~
17843 rm -rf $tpldir~
17844 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017845 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017846 $RANLIB $oldlib'
17847 archive_cmds_CXX='tpldir=Template.dir~
17848 rm -rf $tpldir~
17849 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017850 $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 +000017851 archive_expsym_cmds_CXX='tpldir=Template.dir~
17852 rm -rf $tpldir~
17853 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017854 $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 +000017855 ;;
cristy0c60a692010-11-04 01:09:47 +000017856 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017857 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17858 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'
17859 ;;
17860 esac
17861
17862 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17863 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017864 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 +000017865 ;;
17866 cxx*)
17867 # Compaq C++
17868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17869 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'
17870
17871 runpath_var=LD_RUN_PATH
17872 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17873 hardcode_libdir_separator_CXX=:
17874
17875 # Commands to make compiler produce verbose output that lists
17876 # what "hidden" libraries, object files and flags are used when
17877 # linking a shared library.
17878 #
17879 # There doesn't appear to be a way to prevent this compiler from
17880 # explicitly linking system object files so we need to strip them
17881 # from the output so that they don't get included in the library
17882 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017883 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 +000017884 ;;
cristy0c60a692010-11-04 01:09:47 +000017885 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017886 # IBM XL 8.0 on PPC, with GNU ld
17887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17889 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17890 if test "x$supports_anon_versioning" = xyes; then
17891 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17893 echo "local: *; };" >> $output_objdir/$libname.ver~
17894 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17895 fi
17896 ;;
17897 *)
17898 case `$CC -V 2>&1 | sed 5q` in
17899 *Sun\ C*)
17900 # Sun C++ 5.9
17901 no_undefined_flag_CXX=' -zdefs'
17902 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17903 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'
17904 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017905 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 +000017906 compiler_needs_object_CXX=yes
17907
17908 # Not sure whether something based on
17909 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17910 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017911 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017912
17913 # Archives containing C++ object files must be created using
17914 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17915 # necessary to make sure instantiated templates are included
17916 # in the archive.
17917 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17918 ;;
17919 esac
17920 ;;
17921 esac
17922 ;;
17923
17924 lynxos*)
17925 # FIXME: insert proper C++ library support
17926 ld_shlibs_CXX=no
17927 ;;
17928
17929 m88k*)
17930 # FIXME: insert proper C++ library support
17931 ld_shlibs_CXX=no
17932 ;;
17933
17934 mvs*)
17935 case $cc_basename in
17936 cxx*)
17937 # FIXME: insert proper C++ library support
17938 ld_shlibs_CXX=no
17939 ;;
17940 *)
17941 # FIXME: insert proper C++ library support
17942 ld_shlibs_CXX=no
17943 ;;
17944 esac
17945 ;;
17946
17947 netbsd*)
17948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17949 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17950 wlarc=
17951 hardcode_libdir_flag_spec_CXX='-R$libdir'
17952 hardcode_direct_CXX=yes
17953 hardcode_shlibpath_var_CXX=no
17954 fi
17955 # Workaround some broken pre-1.5 toolchains
17956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17957 ;;
17958
17959 *nto* | *qnx*)
17960 ld_shlibs_CXX=yes
17961 ;;
17962
17963 openbsd2*)
17964 # C++ shared libraries are fairly broken
17965 ld_shlibs_CXX=no
17966 ;;
17967
17968 openbsd*)
17969 if test -f /usr/libexec/ld.so; then
17970 hardcode_direct_CXX=yes
17971 hardcode_shlibpath_var_CXX=no
17972 hardcode_direct_absolute_CXX=yes
17973 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17976 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17977 export_dynamic_flag_spec_CXX='${wl}-E'
17978 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17979 fi
cristy0c60a692010-11-04 01:09:47 +000017980 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017981 else
17982 ld_shlibs_CXX=no
17983 fi
17984 ;;
17985
17986 osf3* | osf4* | osf5*)
17987 case $cc_basename in
17988 KCC*)
17989 # Kuck and Associates, Inc. (KAI) C++ Compiler
17990
17991 # KCC will only create a shared library if the output file
17992 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17993 # to its proper name (with version) after linking.
17994 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'
17995
17996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17997 hardcode_libdir_separator_CXX=:
17998
17999 # Archives containing C++ object files must be created using
18000 # the KAI C++ compiler.
18001 case $host in
18002 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18003 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18004 esac
18005 ;;
18006 RCC*)
18007 # Rational C++ 2.4.1
18008 # FIXME: insert proper C++ library support
18009 ld_shlibs_CXX=no
18010 ;;
18011 cxx*)
18012 case $host in
18013 osf3*)
18014 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018015 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 +000018016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18017 ;;
18018 *)
18019 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018020 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 +000018021 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18022 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018023 $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 +000018024 $RM $lib.exp'
18025 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18026 ;;
18027 esac
18028
18029 hardcode_libdir_separator_CXX=:
18030
18031 # Commands to make compiler produce verbose output that lists
18032 # what "hidden" libraries, object files and flags are used when
18033 # linking a shared library.
18034 #
18035 # There doesn't appear to be a way to prevent this compiler from
18036 # explicitly linking system object files so we need to strip them
18037 # from the output so that they don't get included in the library
18038 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018039 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 +000018040 ;;
18041 *)
18042 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18043 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18044 case $host in
18045 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018046 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 +000018047 ;;
18048 *)
cristyda16f162011-02-19 23:52:17 +000018049 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 +000018050 ;;
18051 esac
18052
18053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18054 hardcode_libdir_separator_CXX=:
18055
18056 # Commands to make compiler produce verbose output that lists
18057 # what "hidden" libraries, object files and flags are used when
18058 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018060
18061 else
18062 # FIXME: insert proper C++ library support
18063 ld_shlibs_CXX=no
18064 fi
18065 ;;
18066 esac
18067 ;;
18068
18069 psos*)
18070 # FIXME: insert proper C++ library support
18071 ld_shlibs_CXX=no
18072 ;;
18073
18074 sunos4*)
18075 case $cc_basename in
18076 CC*)
18077 # Sun C++ 4.x
18078 # FIXME: insert proper C++ library support
18079 ld_shlibs_CXX=no
18080 ;;
18081 lcc*)
18082 # Lucid
18083 # FIXME: insert proper C++ library support
18084 ld_shlibs_CXX=no
18085 ;;
18086 *)
18087 # FIXME: insert proper C++ library support
18088 ld_shlibs_CXX=no
18089 ;;
18090 esac
18091 ;;
18092
18093 solaris*)
18094 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018095 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018096 # Sun C++ 4.2, 5.x and Centerline C++
18097 archive_cmds_need_lc_CXX=yes
18098 no_undefined_flag_CXX=' -zdefs'
18099 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18100 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18101 $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'
18102
18103 hardcode_libdir_flag_spec_CXX='-R$libdir'
18104 hardcode_shlibpath_var_CXX=no
18105 case $host_os in
18106 solaris2.[0-5] | solaris2.[0-5].*) ;;
18107 *)
18108 # The compiler driver will combine and reorder linker options,
18109 # but understands `-z linker_flag'.
18110 # Supported since Solaris 2.6 (maybe 2.5.1?)
18111 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18112 ;;
18113 esac
18114 link_all_deplibs_CXX=yes
18115
cristy0c60a692010-11-04 01:09:47 +000018116 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018117
18118 # Archives containing C++ object files must be created using
18119 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18120 # necessary to make sure instantiated templates are included
18121 # in the archive.
18122 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18123 ;;
18124 gcx*)
18125 # Green Hills C++ Compiler
18126 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18127
18128 # The C++ compiler must be used to create the archive.
18129 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18130 ;;
18131 *)
18132 # GNU C++ compiler with Solaris linker
18133 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18134 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18135 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018136 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 +000018137 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 +000018138 $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 +000018139
18140 # Commands to make compiler produce verbose output that lists
18141 # what "hidden" libraries, object files and flags are used when
18142 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018144 else
18145 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18146 # platform.
18147 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18148 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18149 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18150
18151 # Commands to make compiler produce verbose output that lists
18152 # what "hidden" libraries, object files and flags are used when
18153 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018154 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018155 fi
18156
18157 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18158 case $host_os in
18159 solaris2.[0-5] | solaris2.[0-5].*) ;;
18160 *)
18161 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18162 ;;
18163 esac
18164 fi
18165 ;;
18166 esac
18167 ;;
18168
18169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18170 no_undefined_flag_CXX='${wl}-z,text'
18171 archive_cmds_need_lc_CXX=no
18172 hardcode_shlibpath_var_CXX=no
18173 runpath_var='LD_RUN_PATH'
18174
18175 case $cc_basename in
18176 CC*)
18177 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18178 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18179 ;;
18180 *)
18181 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18182 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183 ;;
18184 esac
18185 ;;
18186
18187 sysv5* | sco3.2v5* | sco5v6*)
18188 # Note: We can NOT use -z defs as we might desire, because we do not
18189 # link with -lc, and that would cause any symbols used from libc to
18190 # always be unresolved, which means just about no library would
18191 # ever link correctly. If we're not using GNU ld we use -z text
18192 # though, which does catch some bad symbols but isn't as heavy-handed
18193 # as -z defs.
18194 no_undefined_flag_CXX='${wl}-z,text'
18195 allow_undefined_flag_CXX='${wl}-z,nodefs'
18196 archive_cmds_need_lc_CXX=no
18197 hardcode_shlibpath_var_CXX=no
18198 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18199 hardcode_libdir_separator_CXX=':'
18200 link_all_deplibs_CXX=yes
18201 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18202 runpath_var='LD_RUN_PATH'
18203
18204 case $cc_basename in
18205 CC*)
18206 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18207 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 +000018208 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18209 '"$old_archive_cmds_CXX"
18210 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18211 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018212 ;;
18213 *)
18214 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18215 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18216 ;;
18217 esac
18218 ;;
18219
18220 tandem*)
18221 case $cc_basename in
18222 NCC*)
18223 # NonStop-UX NCC 3.20
18224 # FIXME: insert proper C++ library support
18225 ld_shlibs_CXX=no
18226 ;;
18227 *)
18228 # FIXME: insert proper C++ library support
18229 ld_shlibs_CXX=no
18230 ;;
18231 esac
18232 ;;
18233
18234 vxworks*)
18235 # FIXME: insert proper C++ library support
18236 ld_shlibs_CXX=no
18237 ;;
18238
18239 *)
18240 # FIXME: insert proper C++ library support
18241 ld_shlibs_CXX=no
18242 ;;
18243 esac
18244
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18246$as_echo "$ld_shlibs_CXX" >&6; }
18247 test "$ld_shlibs_CXX" = no && can_build_shared=no
18248
18249 GCC_CXX="$GXX"
18250 LD_CXX="$LD"
18251
18252 ## CAVEAT EMPTOR:
18253 ## There is no encapsulation within the following macros, do not change
18254 ## the running order or otherwise move them around unless you know exactly
18255 ## what you are doing...
18256 # Dependencies to place before and after the object being linked:
18257predep_objects_CXX=
18258postdep_objects_CXX=
18259predeps_CXX=
18260postdeps_CXX=
18261compiler_lib_search_path_CXX=
18262
18263cat > conftest.$ac_ext <<_LT_EOF
18264class Foo
18265{
18266public:
18267 Foo (void) { a = 0; }
18268private:
18269 int a;
18270};
18271_LT_EOF
18272
cristyda16f162011-02-19 23:52:17 +000018273
18274_lt_libdeps_save_CFLAGS=$CFLAGS
18275case "$CC $CFLAGS " in #(
18276*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18277*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018278*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018279esac
18280
cristy73bd4a52010-10-05 11:24:23 +000018281if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18282 (eval $ac_compile) 2>&5
18283 ac_status=$?
18284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18285 test $ac_status = 0; }; then
18286 # Parse the compiler output and extract the necessary
18287 # objects, libraries and library flags.
18288
18289 # Sentinel used to keep track of whether or not we are before
18290 # the conftest object file.
18291 pre_test_object_deps_done=no
18292
18293 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018294 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018295
18296 -L* | -R* | -l*)
18297 # Some compilers place space between "-{L,R}" and the path.
18298 # Remove the space.
18299 if test $p = "-L" ||
18300 test $p = "-R"; then
18301 prev=$p
18302 continue
cristy73bd4a52010-10-05 11:24:23 +000018303 fi
18304
cristyda16f162011-02-19 23:52:17 +000018305 # Expand the sysroot to ease extracting the directories later.
18306 if test -z "$prev"; then
18307 case $p in
18308 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18309 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18310 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18311 esac
18312 fi
18313 case $p in
18314 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18315 esac
cristy73bd4a52010-10-05 11:24:23 +000018316 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018317 case ${prev} in
18318 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018319 # Internal compiler library paths should come after those
18320 # provided the user. The postdeps already come after the
18321 # user supplied libs so there is no need to process them.
18322 if test -z "$compiler_lib_search_path_CXX"; then
18323 compiler_lib_search_path_CXX="${prev}${p}"
18324 else
18325 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18326 fi
18327 ;;
18328 # The "-l" case would never come before the object being
18329 # linked, so don't bother handling this case.
18330 esac
18331 else
18332 if test -z "$postdeps_CXX"; then
18333 postdeps_CXX="${prev}${p}"
18334 else
18335 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18336 fi
18337 fi
cristyda16f162011-02-19 23:52:17 +000018338 prev=
cristy73bd4a52010-10-05 11:24:23 +000018339 ;;
18340
cristyda16f162011-02-19 23:52:17 +000018341 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018342 *.$objext)
18343 # This assumes that the test object file only shows up
18344 # once in the compiler output.
18345 if test "$p" = "conftest.$objext"; then
18346 pre_test_object_deps_done=yes
18347 continue
18348 fi
18349
18350 if test "$pre_test_object_deps_done" = no; then
18351 if test -z "$predep_objects_CXX"; then
18352 predep_objects_CXX="$p"
18353 else
18354 predep_objects_CXX="$predep_objects_CXX $p"
18355 fi
18356 else
18357 if test -z "$postdep_objects_CXX"; then
18358 postdep_objects_CXX="$p"
18359 else
18360 postdep_objects_CXX="$postdep_objects_CXX $p"
18361 fi
18362 fi
18363 ;;
18364
18365 *) ;; # Ignore the rest.
18366
18367 esac
18368 done
18369
18370 # Clean up.
18371 rm -f a.out a.exe
18372else
18373 echo "libtool.m4: error: problem compiling CXX test program"
18374fi
18375
18376$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018377CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018378
18379# PORTME: override above test on systems where it is broken
18380case $host_os in
18381interix[3-9]*)
18382 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18383 # hack all around it, let's just trust "g++" to DTRT.
18384 predep_objects_CXX=
18385 postdep_objects_CXX=
18386 postdeps_CXX=
18387 ;;
18388
18389linux*)
18390 case `$CC -V 2>&1 | sed 5q` in
18391 *Sun\ C*)
18392 # Sun C++ 5.9
18393
18394 # The more standards-conforming stlport4 library is
18395 # incompatible with the Cstd library. Avoid specifying
18396 # it if it's in CXXFLAGS. Ignore libCrun as
18397 # -library=stlport4 depends on it.
18398 case " $CXX $CXXFLAGS " in
18399 *" -library=stlport4 "*)
18400 solaris_use_stlport4=yes
18401 ;;
18402 esac
18403
18404 if test "$solaris_use_stlport4" != yes; then
18405 postdeps_CXX='-library=Cstd -library=Crun'
18406 fi
18407 ;;
18408 esac
18409 ;;
18410
18411solaris*)
18412 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018413 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018414 # The more standards-conforming stlport4 library is
18415 # incompatible with the Cstd library. Avoid specifying
18416 # it if it's in CXXFLAGS. Ignore libCrun as
18417 # -library=stlport4 depends on it.
18418 case " $CXX $CXXFLAGS " in
18419 *" -library=stlport4 "*)
18420 solaris_use_stlport4=yes
18421 ;;
18422 esac
18423
18424 # Adding this requires a known-good setup of shared libraries for
18425 # Sun compiler versions before 5.6, else PIC objects from an old
18426 # archive will be linked into the output, leading to subtle bugs.
18427 if test "$solaris_use_stlport4" != yes; then
18428 postdeps_CXX='-library=Cstd -library=Crun'
18429 fi
18430 ;;
18431 esac
18432 ;;
18433esac
18434
18435
18436case " $postdeps_CXX " in
18437*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18438esac
18439 compiler_lib_search_dirs_CXX=
18440if test -n "${compiler_lib_search_path_CXX}"; then
18441 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18442fi
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474 lt_prog_compiler_wl_CXX=
18475lt_prog_compiler_pic_CXX=
18476lt_prog_compiler_static_CXX=
18477
cristy73bd4a52010-10-05 11:24:23 +000018478
18479 # C++ specific cases for pic, static, wl, etc.
18480 if test "$GXX" = yes; then
18481 lt_prog_compiler_wl_CXX='-Wl,'
18482 lt_prog_compiler_static_CXX='-static'
18483
18484 case $host_os in
18485 aix*)
18486 # All AIX code is PIC.
18487 if test "$host_cpu" = ia64; then
18488 # AIX 5 now supports IA64 processor
18489 lt_prog_compiler_static_CXX='-Bstatic'
18490 fi
18491 ;;
18492
18493 amigaos*)
18494 case $host_cpu in
18495 powerpc)
18496 # see comment about AmigaOS4 .so support
18497 lt_prog_compiler_pic_CXX='-fPIC'
18498 ;;
18499 m68k)
18500 # FIXME: we need at least 68020 code to build shared libraries, but
18501 # adding the `-m68020' flag to GCC prevents building anything better,
18502 # like `-m68040'.
18503 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18504 ;;
18505 esac
18506 ;;
18507
18508 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18509 # PIC is the default for these OSes.
18510 ;;
18511 mingw* | cygwin* | os2* | pw32* | cegcc*)
18512 # This hack is so that the source file can tell whether it is being
18513 # built for inclusion in a dll (and should export symbols for example).
18514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18515 # (--disable-auto-import) libraries
18516 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18517 ;;
18518 darwin* | rhapsody*)
18519 # PIC is the default on this platform
18520 # Common symbols not allowed in MH_DYLIB files
18521 lt_prog_compiler_pic_CXX='-fno-common'
18522 ;;
18523 *djgpp*)
18524 # DJGPP does not support shared libraries at all
18525 lt_prog_compiler_pic_CXX=
18526 ;;
cristy0c60a692010-11-04 01:09:47 +000018527 haiku*)
18528 # PIC is the default for Haiku.
18529 # The "-static" flag exists, but is broken.
18530 lt_prog_compiler_static_CXX=
18531 ;;
cristy73bd4a52010-10-05 11:24:23 +000018532 interix[3-9]*)
18533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18534 # Instead, we relocate shared libraries at runtime.
18535 ;;
18536 sysv4*MP*)
18537 if test -d /usr/nec; then
18538 lt_prog_compiler_pic_CXX=-Kconform_pic
18539 fi
18540 ;;
18541 hpux*)
18542 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18543 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18544 # sets the default TLS model and affects inlining.
18545 case $host_cpu in
18546 hppa*64*)
18547 ;;
18548 *)
18549 lt_prog_compiler_pic_CXX='-fPIC'
18550 ;;
18551 esac
18552 ;;
18553 *qnx* | *nto*)
18554 # QNX uses GNU C++, but need to define -shared option too, otherwise
18555 # it will coredump.
18556 lt_prog_compiler_pic_CXX='-fPIC -shared'
18557 ;;
18558 *)
18559 lt_prog_compiler_pic_CXX='-fPIC'
18560 ;;
18561 esac
18562 else
18563 case $host_os in
18564 aix[4-9]*)
18565 # All AIX code is PIC.
18566 if test "$host_cpu" = ia64; then
18567 # AIX 5 now supports IA64 processor
18568 lt_prog_compiler_static_CXX='-Bstatic'
18569 else
18570 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18571 fi
18572 ;;
18573 chorus*)
18574 case $cc_basename in
18575 cxch68*)
18576 # Green Hills C++ Compiler
18577 # _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"
18578 ;;
18579 esac
18580 ;;
cristyda16f162011-02-19 23:52:17 +000018581 mingw* | cygwin* | os2* | pw32* | cegcc*)
18582 # This hack is so that the source file can tell whether it is being
18583 # built for inclusion in a dll (and should export symbols for example).
18584 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18585 ;;
cristy73bd4a52010-10-05 11:24:23 +000018586 dgux*)
18587 case $cc_basename in
18588 ec++*)
18589 lt_prog_compiler_pic_CXX='-KPIC'
18590 ;;
18591 ghcx*)
18592 # Green Hills C++ Compiler
18593 lt_prog_compiler_pic_CXX='-pic'
18594 ;;
18595 *)
18596 ;;
18597 esac
18598 ;;
18599 freebsd* | dragonfly*)
18600 # FreeBSD uses GNU C++
18601 ;;
18602 hpux9* | hpux10* | hpux11*)
18603 case $cc_basename in
18604 CC*)
18605 lt_prog_compiler_wl_CXX='-Wl,'
18606 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18607 if test "$host_cpu" != ia64; then
18608 lt_prog_compiler_pic_CXX='+Z'
18609 fi
18610 ;;
18611 aCC*)
18612 lt_prog_compiler_wl_CXX='-Wl,'
18613 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18614 case $host_cpu in
18615 hppa*64*|ia64*)
18616 # +Z the default
18617 ;;
18618 *)
18619 lt_prog_compiler_pic_CXX='+Z'
18620 ;;
18621 esac
18622 ;;
18623 *)
18624 ;;
18625 esac
18626 ;;
18627 interix*)
18628 # This is c89, which is MS Visual C++ (no shared libs)
18629 # Anyone wants to do a port?
18630 ;;
18631 irix5* | irix6* | nonstopux*)
18632 case $cc_basename in
18633 CC*)
18634 lt_prog_compiler_wl_CXX='-Wl,'
18635 lt_prog_compiler_static_CXX='-non_shared'
18636 # CC pic flag -KPIC is the default.
18637 ;;
18638 *)
18639 ;;
18640 esac
18641 ;;
cristy0c60a692010-11-04 01:09:47 +000018642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018643 case $cc_basename in
18644 KCC*)
18645 # KAI C++ Compiler
18646 lt_prog_compiler_wl_CXX='--backend -Wl,'
18647 lt_prog_compiler_pic_CXX='-fPIC'
18648 ;;
18649 ecpc* )
18650 # old Intel C++ for x86_64 which still supported -KPIC.
18651 lt_prog_compiler_wl_CXX='-Wl,'
18652 lt_prog_compiler_pic_CXX='-KPIC'
18653 lt_prog_compiler_static_CXX='-static'
18654 ;;
18655 icpc* )
18656 # Intel C++, used to be incompatible with GCC.
18657 # ICC 10 doesn't accept -KPIC any more.
18658 lt_prog_compiler_wl_CXX='-Wl,'
18659 lt_prog_compiler_pic_CXX='-fPIC'
18660 lt_prog_compiler_static_CXX='-static'
18661 ;;
18662 pgCC* | pgcpp*)
18663 # Portland Group C++ compiler
18664 lt_prog_compiler_wl_CXX='-Wl,'
18665 lt_prog_compiler_pic_CXX='-fpic'
18666 lt_prog_compiler_static_CXX='-Bstatic'
18667 ;;
18668 cxx*)
18669 # Compaq C++
18670 # Make sure the PIC flag is empty. It appears that all Alpha
18671 # Linux and Compaq Tru64 Unix objects are PIC.
18672 lt_prog_compiler_pic_CXX=
18673 lt_prog_compiler_static_CXX='-non_shared'
18674 ;;
cristy0c60a692010-11-04 01:09:47 +000018675 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18676 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018677 lt_prog_compiler_wl_CXX='-Wl,'
18678 lt_prog_compiler_pic_CXX='-qpic'
18679 lt_prog_compiler_static_CXX='-qstaticlink'
18680 ;;
18681 *)
18682 case `$CC -V 2>&1 | sed 5q` in
18683 *Sun\ C*)
18684 # Sun C++ 5.9
18685 lt_prog_compiler_pic_CXX='-KPIC'
18686 lt_prog_compiler_static_CXX='-Bstatic'
18687 lt_prog_compiler_wl_CXX='-Qoption ld '
18688 ;;
18689 esac
18690 ;;
18691 esac
18692 ;;
18693 lynxos*)
18694 ;;
18695 m88k*)
18696 ;;
18697 mvs*)
18698 case $cc_basename in
18699 cxx*)
18700 lt_prog_compiler_pic_CXX='-W c,exportall'
18701 ;;
18702 *)
18703 ;;
18704 esac
18705 ;;
18706 netbsd*)
18707 ;;
18708 *qnx* | *nto*)
18709 # QNX uses GNU C++, but need to define -shared option too, otherwise
18710 # it will coredump.
18711 lt_prog_compiler_pic_CXX='-fPIC -shared'
18712 ;;
18713 osf3* | osf4* | osf5*)
18714 case $cc_basename in
18715 KCC*)
18716 lt_prog_compiler_wl_CXX='--backend -Wl,'
18717 ;;
18718 RCC*)
18719 # Rational C++ 2.4.1
18720 lt_prog_compiler_pic_CXX='-pic'
18721 ;;
18722 cxx*)
18723 # Digital/Compaq C++
18724 lt_prog_compiler_wl_CXX='-Wl,'
18725 # Make sure the PIC flag is empty. It appears that all Alpha
18726 # Linux and Compaq Tru64 Unix objects are PIC.
18727 lt_prog_compiler_pic_CXX=
18728 lt_prog_compiler_static_CXX='-non_shared'
18729 ;;
18730 *)
18731 ;;
18732 esac
18733 ;;
18734 psos*)
18735 ;;
18736 solaris*)
18737 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018738 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018739 # Sun C++ 4.2, 5.x and Centerline C++
18740 lt_prog_compiler_pic_CXX='-KPIC'
18741 lt_prog_compiler_static_CXX='-Bstatic'
18742 lt_prog_compiler_wl_CXX='-Qoption ld '
18743 ;;
18744 gcx*)
18745 # Green Hills C++ Compiler
18746 lt_prog_compiler_pic_CXX='-PIC'
18747 ;;
18748 *)
18749 ;;
18750 esac
18751 ;;
18752 sunos4*)
18753 case $cc_basename in
18754 CC*)
18755 # Sun C++ 4.x
18756 lt_prog_compiler_pic_CXX='-pic'
18757 lt_prog_compiler_static_CXX='-Bstatic'
18758 ;;
18759 lcc*)
18760 # Lucid
18761 lt_prog_compiler_pic_CXX='-pic'
18762 ;;
18763 *)
18764 ;;
18765 esac
18766 ;;
18767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18768 case $cc_basename in
18769 CC*)
18770 lt_prog_compiler_wl_CXX='-Wl,'
18771 lt_prog_compiler_pic_CXX='-KPIC'
18772 lt_prog_compiler_static_CXX='-Bstatic'
18773 ;;
18774 esac
18775 ;;
18776 tandem*)
18777 case $cc_basename in
18778 NCC*)
18779 # NonStop-UX NCC 3.20
18780 lt_prog_compiler_pic_CXX='-KPIC'
18781 ;;
18782 *)
18783 ;;
18784 esac
18785 ;;
18786 vxworks*)
18787 ;;
18788 *)
18789 lt_prog_compiler_can_build_shared_CXX=no
18790 ;;
18791 esac
18792 fi
18793
18794case $host_os in
18795 # For platforms which do not support PIC, -DPIC is meaningless:
18796 *djgpp*)
18797 lt_prog_compiler_pic_CXX=
18798 ;;
18799 *)
18800 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18801 ;;
18802esac
cristy73bd4a52010-10-05 11:24:23 +000018803
cristyda16f162011-02-19 23:52:17 +000018804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18805$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18806if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18807 $as_echo_n "(cached) " >&6
18808else
18809 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18810fi
18811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18812$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18813lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018814
18815#
18816# Check to make sure the PIC flag actually works.
18817#
18818if test -n "$lt_prog_compiler_pic_CXX"; then
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18820$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018821if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018822 $as_echo_n "(cached) " >&6
18823else
18824 lt_cv_prog_compiler_pic_works_CXX=no
18825 ac_outfile=conftest.$ac_objext
18826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18827 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18828 # Insert the option either (1) after the last *FLAGS variable, or
18829 # (2) before a word containing "conftest.", or (3) at the end.
18830 # Note that $ac_compile itself does not contain backslashes and begins
18831 # with a dollar sign (not a hyphen), so the echo should work correctly.
18832 # The option is referenced via a variable to avoid confusing sed.
18833 lt_compile=`echo "$ac_compile" | $SED \
18834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18836 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018838 (eval "$lt_compile" 2>conftest.err)
18839 ac_status=$?
18840 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018842 if (exit $ac_status) && test -s "$ac_outfile"; then
18843 # The compiler can only warn and ignore the option if not recognized
18844 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18848 lt_cv_prog_compiler_pic_works_CXX=yes
18849 fi
18850 fi
18851 $RM conftest*
18852
18853fi
18854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18855$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18856
18857if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18858 case $lt_prog_compiler_pic_CXX in
18859 "" | " "*) ;;
18860 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18861 esac
18862else
18863 lt_prog_compiler_pic_CXX=
18864 lt_prog_compiler_can_build_shared_CXX=no
18865fi
18866
18867fi
18868
18869
18870
cristyda16f162011-02-19 23:52:17 +000018871
18872
cristy73bd4a52010-10-05 11:24:23 +000018873#
18874# Check to make sure the static flag actually works.
18875#
18876wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18878$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018879if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018880 $as_echo_n "(cached) " >&6
18881else
18882 lt_cv_prog_compiler_static_works_CXX=no
18883 save_LDFLAGS="$LDFLAGS"
18884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18885 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18887 # The linker can only warn and ignore the option if not recognized
18888 # So say no if there are warnings
18889 if test -s conftest.err; then
18890 # Append any errors to the config.log.
18891 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018892 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18894 if diff conftest.exp conftest.er2 >/dev/null; then
18895 lt_cv_prog_compiler_static_works_CXX=yes
18896 fi
18897 else
18898 lt_cv_prog_compiler_static_works_CXX=yes
18899 fi
18900 fi
18901 $RM -r conftest*
18902 LDFLAGS="$save_LDFLAGS"
18903
18904fi
18905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18906$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18907
18908if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18909 :
18910else
18911 lt_prog_compiler_static_CXX=
18912fi
18913
18914
18915
18916
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18918$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018919if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018920 $as_echo_n "(cached) " >&6
18921else
18922 lt_cv_prog_compiler_c_o_CXX=no
18923 $RM -r conftest 2>/dev/null
18924 mkdir conftest
18925 cd conftest
18926 mkdir out
18927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18928
18929 lt_compiler_flag="-o out/conftest2.$ac_objext"
18930 # Insert the option either (1) after the last *FLAGS variable, or
18931 # (2) before a word containing "conftest.", or (3) at the end.
18932 # Note that $ac_compile itself does not contain backslashes and begins
18933 # with a dollar sign (not a hyphen), so the echo should work correctly.
18934 lt_compile=`echo "$ac_compile" | $SED \
18935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18937 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018939 (eval "$lt_compile" 2>out/conftest.err)
18940 ac_status=$?
18941 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18944 then
18945 # The compiler can only warn and ignore the option if not recognized
18946 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18950 lt_cv_prog_compiler_c_o_CXX=yes
18951 fi
18952 fi
18953 chmod u+w . 2>&5
18954 $RM conftest*
18955 # SGI C++ compiler will create directory out/ii_files/ for
18956 # template instantiation
18957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18958 $RM out/* && rmdir out
18959 cd ..
18960 $RM -r conftest
18961 $RM conftest*
18962
18963fi
18964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18965$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18966
18967
18968
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18970$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018971if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018972 $as_echo_n "(cached) " >&6
18973else
18974 lt_cv_prog_compiler_c_o_CXX=no
18975 $RM -r conftest 2>/dev/null
18976 mkdir conftest
18977 cd conftest
18978 mkdir out
18979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18980
18981 lt_compiler_flag="-o out/conftest2.$ac_objext"
18982 # Insert the option either (1) after the last *FLAGS variable, or
18983 # (2) before a word containing "conftest.", or (3) at the end.
18984 # Note that $ac_compile itself does not contain backslashes and begins
18985 # with a dollar sign (not a hyphen), so the echo should work correctly.
18986 lt_compile=`echo "$ac_compile" | $SED \
18987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18989 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018991 (eval "$lt_compile" 2>out/conftest.err)
18992 ac_status=$?
18993 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18996 then
18997 # The compiler can only warn and ignore the option if not recognized
18998 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19002 lt_cv_prog_compiler_c_o_CXX=yes
19003 fi
19004 fi
19005 chmod u+w . 2>&5
19006 $RM conftest*
19007 # SGI C++ compiler will create directory out/ii_files/ for
19008 # template instantiation
19009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19010 $RM out/* && rmdir out
19011 cd ..
19012 $RM -r conftest
19013 $RM conftest*
19014
19015fi
19016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19017$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19018
19019
19020
19021
19022hard_links="nottested"
19023if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19024 # do not overwrite the value of need_locks provided by the user
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19026$as_echo_n "checking if we can lock with hard links... " >&6; }
19027 hard_links=yes
19028 $RM conftest*
19029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19030 touch conftest.a
19031 ln conftest.a conftest.b 2>&5 || hard_links=no
19032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19034$as_echo "$hard_links" >&6; }
19035 if test "$hard_links" = no; then
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19037$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19038 need_locks=warn
19039 fi
19040else
19041 need_locks=no
19042fi
19043
19044
19045
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19047$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19048
19049 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019050 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019051 case $host_os in
19052 aix[4-9]*)
19053 # If we're using GNU nm, then we don't want the "-C" option.
19054 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019055 # Also, AIX nm treats weak defined symbols like other global defined
19056 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019057 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019058 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 +000019059 else
19060 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'
19061 fi
19062 ;;
19063 pw32*)
19064 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019065 ;;
cristy73bd4a52010-10-05 11:24:23 +000019066 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019067 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019068 cl*)
19069 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19070 ;;
cristyda16f162011-02-19 23:52:17 +000019071 *)
19072 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'
19073 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19074 ;;
19075 esac
19076 ;;
cristy73bd4a52010-10-05 11:24:23 +000019077 *)
19078 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019079 ;;
cristy73bd4a52010-10-05 11:24:23 +000019080 esac
cristy73bd4a52010-10-05 11:24:23 +000019081
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19083$as_echo "$ld_shlibs_CXX" >&6; }
19084test "$ld_shlibs_CXX" = no && can_build_shared=no
19085
19086with_gnu_ld_CXX=$with_gnu_ld
19087
19088
19089
19090
19091
19092
19093#
19094# Do we need to explicitly link libc?
19095#
19096case "x$archive_cmds_need_lc_CXX" in
19097x|xyes)
19098 # Assume -lc should be added
19099 archive_cmds_need_lc_CXX=yes
19100
19101 if test "$enable_shared" = yes && test "$GCC" = yes; then
19102 case $archive_cmds_CXX in
19103 *'~'*)
19104 # FIXME: we may have to deal with multi-command sequences.
19105 ;;
19106 '$CC '*)
19107 # Test whether the compiler implicitly links with -lc since on some
19108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19109 # to ld, don't add -lc before -lgcc.
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19111$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019112if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019113 $as_echo_n "(cached) " >&6
19114else
19115 $RM conftest*
19116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019117
cristy0c60a692010-11-04 01:09:47 +000019118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019119 (eval $ac_compile) 2>&5
19120 ac_status=$?
19121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19122 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019123 soname=conftest
19124 lib=conftest
19125 libobjs=conftest.$ac_objext
19126 deplibs=
19127 wl=$lt_prog_compiler_wl_CXX
19128 pic_flag=$lt_prog_compiler_pic_CXX
19129 compiler_flags=-v
19130 linker_flags=-v
19131 verstring=
19132 output_objdir=.
19133 libname=conftest
19134 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19135 allow_undefined_flag_CXX=
19136 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 +000019137 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19138 ac_status=$?
19139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19140 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019141 then
19142 lt_cv_archive_cmds_need_lc_CXX=no
19143 else
19144 lt_cv_archive_cmds_need_lc_CXX=yes
19145 fi
19146 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19147 else
19148 cat conftest.err 1>&5
19149 fi
19150 $RM conftest*
19151
19152fi
19153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19154$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19155 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019156 ;;
19157 esac
19158 fi
19159 ;;
19160esac
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
cristy73bd4a52010-10-05 11:24:23 +000019223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19224$as_echo_n "checking dynamic linker characteristics... " >&6; }
19225
19226library_names_spec=
19227libname_spec='lib$name'
19228soname_spec=
19229shrext_cmds=".so"
19230postinstall_cmds=
19231postuninstall_cmds=
19232finish_cmds=
19233finish_eval=
19234shlibpath_var=
19235shlibpath_overrides_runpath=unknown
19236version_type=none
19237dynamic_linker="$host_os ld.so"
19238sys_lib_dlsearch_path_spec="/lib /usr/lib"
19239need_lib_prefix=unknown
19240hardcode_into_libs=no
19241
19242# when you set need_version to no, make sure it does not cause -set_version
19243# flags to be left without arguments
19244need_version=unknown
19245
19246case $host_os in
19247aix3*)
cristy99bd5232011-12-07 14:38:20 +000019248 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19250 shlibpath_var=LIBPATH
19251
19252 # AIX 3 has no versioning support, so we append a major version to the name.
19253 soname_spec='${libname}${release}${shared_ext}$major'
19254 ;;
19255
19256aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019257 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019258 need_lib_prefix=no
19259 need_version=no
19260 hardcode_into_libs=yes
19261 if test "$host_cpu" = ia64; then
19262 # AIX 5 supports IA64
19263 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19264 shlibpath_var=LD_LIBRARY_PATH
19265 else
19266 # With GCC up to 2.95.x, collect2 would create an import file
19267 # for dependence libraries. The import file would start with
19268 # the line `#! .'. This would cause the generated library to
19269 # depend on `.', always an invalid library. This was fixed in
19270 # development snapshots of GCC prior to 3.0.
19271 case $host_os in
19272 aix4 | aix4.[01] | aix4.[01].*)
19273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19274 echo ' yes '
19275 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19276 :
19277 else
19278 can_build_shared=no
19279 fi
19280 ;;
19281 esac
19282 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19283 # soname into executable. Probably we can add versioning support to
19284 # collect2, so additional links can be useful in future.
19285 if test "$aix_use_runtimelinking" = yes; then
19286 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19287 # instead of lib<name>.a to let people know that these are not
19288 # typical AIX shared libraries.
19289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19290 else
19291 # We preserve .a as extension for shared libraries through AIX4.2
19292 # and later when we are not doing run time linking.
19293 library_names_spec='${libname}${release}.a $libname.a'
19294 soname_spec='${libname}${release}${shared_ext}$major'
19295 fi
19296 shlibpath_var=LIBPATH
19297 fi
19298 ;;
19299
19300amigaos*)
19301 case $host_cpu in
19302 powerpc)
19303 # Since July 2007 AmigaOS4 officially supports .so libraries.
19304 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19306 ;;
19307 m68k)
19308 library_names_spec='$libname.ixlibrary $libname.a'
19309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019310 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 +000019311 ;;
19312 esac
19313 ;;
19314
19315beos*)
19316 library_names_spec='${libname}${shared_ext}'
19317 dynamic_linker="$host_os ld.so"
19318 shlibpath_var=LIBRARY_PATH
19319 ;;
19320
19321bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019322 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019323 need_version=no
19324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19325 soname_spec='${libname}${release}${shared_ext}$major'
19326 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19329 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19330 # the default ld.so.conf also contains /usr/contrib/lib and
19331 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19332 # libtool to hard-code these into programs
19333 ;;
19334
19335cygwin* | mingw* | pw32* | cegcc*)
19336 version_type=windows
19337 shrext_cmds=".dll"
19338 need_version=no
19339 need_lib_prefix=no
19340
cristyda16f162011-02-19 23:52:17 +000019341 case $GCC,$cc_basename in
19342 yes,*)
19343 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019344 library_names_spec='$libname.dll.a'
19345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19346 postinstall_cmds='base_file=`basename \${file}`~
19347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19348 dldir=$destdir/`dirname \$dlpath`~
19349 test -d \$dldir || mkdir -p \$dldir~
19350 $install_prog $dir/$dlname \$dldir/$dlname~
19351 chmod a+x \$dldir/$dlname~
19352 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19353 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19354 fi'
19355 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19356 dlpath=$dir/\$dldll~
19357 $RM \$dlpath'
19358 shlibpath_overrides_runpath=yes
19359
19360 case $host_os in
19361 cygwin*)
19362 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19363 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019364
cristy73bd4a52010-10-05 11:24:23 +000019365 ;;
19366 mingw* | cegcc*)
19367 # MinGW DLLs use traditional 'lib' prefix
19368 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019369 ;;
19370 pw32*)
19371 # pw32 DLLs use 'pw' prefix rather than 'lib'
19372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19373 ;;
19374 esac
cristyda16f162011-02-19 23:52:17 +000019375 dynamic_linker='Win32 ld.exe'
19376 ;;
19377
19378 *,cl*)
19379 # Native MSVC
19380 libname_spec='$name'
19381 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19382 library_names_spec='${libname}.dll.lib'
19383
19384 case $build_os in
19385 mingw*)
19386 sys_lib_search_path_spec=
19387 lt_save_ifs=$IFS
19388 IFS=';'
19389 for lt_path in $LIB
19390 do
19391 IFS=$lt_save_ifs
19392 # Let DOS variable expansion print the short 8.3 style file name.
19393 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19394 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19395 done
19396 IFS=$lt_save_ifs
19397 # Convert to MSYS style.
19398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19399 ;;
19400 cygwin*)
19401 # Convert to unix form, then to dos form, then back to unix form
19402 # but this time dos style (no spaces!) so that the unix form looks
19403 # like /cygdrive/c/PROGRA~1:/cygdr...
19404 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19405 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19406 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19407 ;;
19408 *)
19409 sys_lib_search_path_spec="$LIB"
19410 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19411 # It is most probably a Windows format PATH.
19412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19413 else
19414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19415 fi
19416 # FIXME: find the short name or the path components, as spaces are
19417 # common. (e.g. "Program Files" -> "PROGRA~1")
19418 ;;
19419 esac
19420
19421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19422 postinstall_cmds='base_file=`basename \${file}`~
19423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19424 dldir=$destdir/`dirname \$dlpath`~
19425 test -d \$dldir || mkdir -p \$dldir~
19426 $install_prog $dir/$dlname \$dldir/$dlname'
19427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19428 dlpath=$dir/\$dldll~
19429 $RM \$dlpath'
19430 shlibpath_overrides_runpath=yes
19431 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019432 ;;
19433
19434 *)
cristyda16f162011-02-19 23:52:17 +000019435 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019436 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019437 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019438 ;;
19439 esac
cristy73bd4a52010-10-05 11:24:23 +000019440 # FIXME: first we should search . and the directory the executable is in
19441 shlibpath_var=PATH
19442 ;;
19443
19444darwin* | rhapsody*)
19445 dynamic_linker="$host_os dyld"
19446 version_type=darwin
19447 need_lib_prefix=no
19448 need_version=no
19449 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19450 soname_spec='${libname}${release}${major}$shared_ext'
19451 shlibpath_overrides_runpath=yes
19452 shlibpath_var=DYLD_LIBRARY_PATH
19453 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19454
19455 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19456 ;;
19457
19458dgux*)
cristy99bd5232011-12-07 14:38:20 +000019459 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019460 need_lib_prefix=no
19461 need_version=no
19462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19463 soname_spec='${libname}${release}${shared_ext}$major'
19464 shlibpath_var=LD_LIBRARY_PATH
19465 ;;
19466
cristy73bd4a52010-10-05 11:24:23 +000019467freebsd* | dragonfly*)
19468 # DragonFly does not have aout. When/if they implement a new
19469 # versioning mechanism, adjust this.
19470 if test -x /usr/bin/objformat; then
19471 objformat=`/usr/bin/objformat`
19472 else
19473 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019474 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019475 *) objformat=elf ;;
19476 esac
19477 fi
19478 version_type=freebsd-$objformat
19479 case $version_type in
19480 freebsd-elf*)
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19482 need_version=no
19483 need_lib_prefix=no
19484 ;;
19485 freebsd-*)
19486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19487 need_version=yes
19488 ;;
19489 esac
19490 shlibpath_var=LD_LIBRARY_PATH
19491 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019492 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019493 shlibpath_overrides_runpath=yes
19494 ;;
19495 freebsd3.[01]* | freebsdelf3.[01]*)
19496 shlibpath_overrides_runpath=yes
19497 hardcode_into_libs=yes
19498 ;;
19499 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19500 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19501 shlibpath_overrides_runpath=no
19502 hardcode_into_libs=yes
19503 ;;
19504 *) # from 4.6 on, and DragonFly
19505 shlibpath_overrides_runpath=yes
19506 hardcode_into_libs=yes
19507 ;;
19508 esac
19509 ;;
19510
19511gnu*)
cristy99bd5232011-12-07 14:38:20 +000019512 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019513 need_lib_prefix=no
19514 need_version=no
19515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19516 soname_spec='${libname}${release}${shared_ext}$major'
19517 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019518 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019519 hardcode_into_libs=yes
19520 ;;
19521
cristy0c60a692010-11-04 01:09:47 +000019522haiku*)
cristy99bd5232011-12-07 14:38:20 +000019523 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000019524 need_lib_prefix=no
19525 need_version=no
19526 dynamic_linker="$host_os runtime_loader"
19527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19528 soname_spec='${libname}${release}${shared_ext}$major'
19529 shlibpath_var=LIBRARY_PATH
19530 shlibpath_overrides_runpath=yes
19531 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19532 hardcode_into_libs=yes
19533 ;;
19534
cristy73bd4a52010-10-05 11:24:23 +000019535hpux9* | hpux10* | hpux11*)
19536 # Give a soname corresponding to the major version so that dld.sl refuses to
19537 # link against other versions.
19538 version_type=sunos
19539 need_lib_prefix=no
19540 need_version=no
19541 case $host_cpu in
19542 ia64*)
19543 shrext_cmds='.so'
19544 hardcode_into_libs=yes
19545 dynamic_linker="$host_os dld.so"
19546 shlibpath_var=LD_LIBRARY_PATH
19547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19549 soname_spec='${libname}${release}${shared_ext}$major'
19550 if test "X$HPUX_IA64_MODE" = X32; then
19551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19552 else
19553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19554 fi
19555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19556 ;;
19557 hppa*64*)
19558 shrext_cmds='.sl'
19559 hardcode_into_libs=yes
19560 dynamic_linker="$host_os dld.sl"
19561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19564 soname_spec='${libname}${release}${shared_ext}$major'
19565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19567 ;;
19568 *)
19569 shrext_cmds='.sl'
19570 dynamic_linker="$host_os dld.sl"
19571 shlibpath_var=SHLIB_PATH
19572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19574 soname_spec='${libname}${release}${shared_ext}$major'
19575 ;;
19576 esac
cristy0c60a692010-11-04 01:09:47 +000019577 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019578 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019579 # or fails outright, so override atomically:
19580 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019581 ;;
19582
19583interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000019584 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019585 need_lib_prefix=no
19586 need_version=no
19587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19588 soname_spec='${libname}${release}${shared_ext}$major'
19589 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 shlibpath_overrides_runpath=no
19592 hardcode_into_libs=yes
19593 ;;
19594
19595irix5* | irix6* | nonstopux*)
19596 case $host_os in
19597 nonstopux*) version_type=nonstopux ;;
19598 *)
19599 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000019600 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019601 else
19602 version_type=irix
19603 fi ;;
19604 esac
19605 need_lib_prefix=no
19606 need_version=no
19607 soname_spec='${libname}${release}${shared_ext}$major'
19608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19609 case $host_os in
19610 irix5* | nonstopux*)
19611 libsuff= shlibsuff=
19612 ;;
19613 *)
19614 case $LD in # libtool.m4 will add one of these switches to LD
19615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19616 libsuff= shlibsuff= libmagic=32-bit;;
19617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19618 libsuff=32 shlibsuff=N32 libmagic=N32;;
19619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19620 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19621 *) libsuff= shlibsuff= libmagic=never-match;;
19622 esac
19623 ;;
19624 esac
19625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19626 shlibpath_overrides_runpath=no
19627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19629 hardcode_into_libs=yes
19630 ;;
19631
19632# No shared lib support for Linux oldld, aout, or coff.
19633linux*oldld* | linux*aout* | linux*coff*)
19634 dynamic_linker=no
19635 ;;
19636
cristy99bd5232011-12-07 14:38:20 +000019637# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000019638linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000019639 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019640 need_lib_prefix=no
19641 need_version=no
19642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19643 soname_spec='${libname}${release}${shared_ext}$major'
19644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19645 shlibpath_var=LD_LIBRARY_PATH
19646 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019647
cristy73bd4a52010-10-05 11:24:23 +000019648 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019649 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019650 $as_echo_n "(cached) " >&6
19651else
19652 lt_cv_shlibpath_overrides_runpath=no
19653 save_LDFLAGS=$LDFLAGS
19654 save_libdir=$libdir
19655 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19656 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019658/* end confdefs.h. */
19659
19660int
19661main ()
19662{
19663
19664 ;
19665 return 0;
19666}
19667_ACEOF
19668if ac_fn_cxx_try_link "$LINENO"; then :
19669 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019670 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019671fi
19672fi
19673rm -f core conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019675 LDFLAGS=$save_LDFLAGS
19676 libdir=$save_libdir
19677
19678fi
19679
19680 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019681
19682 # This implies no fast_install, which is unacceptable.
19683 # Some rework will be needed to allow for fast_install
19684 # before this can be enabled.
19685 hardcode_into_libs=yes
19686
19687 # Add ABI-specific directories to the system library path.
19688 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19689
19690 # Append ld.so.conf contents to the search path
19691 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019692 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 +000019693 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019694
cristy73bd4a52010-10-05 11:24:23 +000019695 fi
19696
19697 # We used to test for /lib/ld.so.1 and disable shared libraries on
19698 # powerpc, because MkLinux only supported shared libraries with the
19699 # GNU dynamic linker. Since this was broken with cross compilers,
19700 # most powerpc-linux boxes support dynamic linking these days and
19701 # people can always --disable-shared, the test was removed, and we
19702 # assume the GNU/Linux dynamic linker is in use.
19703 dynamic_linker='GNU/Linux ld.so'
19704 ;;
19705
19706netbsd*)
19707 version_type=sunos
19708 need_lib_prefix=no
19709 need_version=no
19710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19713 dynamic_linker='NetBSD (a.out) ld.so'
19714 else
19715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19716 soname_spec='${libname}${release}${shared_ext}$major'
19717 dynamic_linker='NetBSD ld.elf_so'
19718 fi
19719 shlibpath_var=LD_LIBRARY_PATH
19720 shlibpath_overrides_runpath=yes
19721 hardcode_into_libs=yes
19722 ;;
19723
19724newsos6)
cristy99bd5232011-12-07 14:38:20 +000019725 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19727 shlibpath_var=LD_LIBRARY_PATH
19728 shlibpath_overrides_runpath=yes
19729 ;;
19730
19731*nto* | *qnx*)
19732 version_type=qnx
19733 need_lib_prefix=no
19734 need_version=no
19735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19736 soname_spec='${libname}${release}${shared_ext}$major'
19737 shlibpath_var=LD_LIBRARY_PATH
19738 shlibpath_overrides_runpath=no
19739 hardcode_into_libs=yes
19740 dynamic_linker='ldqnx.so'
19741 ;;
19742
19743openbsd*)
19744 version_type=sunos
19745 sys_lib_dlsearch_path_spec="/usr/lib"
19746 need_lib_prefix=no
19747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19748 case $host_os in
19749 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19750 *) need_version=no ;;
19751 esac
19752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19754 shlibpath_var=LD_LIBRARY_PATH
19755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19756 case $host_os in
19757 openbsd2.[89] | openbsd2.[89].*)
19758 shlibpath_overrides_runpath=no
19759 ;;
19760 *)
19761 shlibpath_overrides_runpath=yes
19762 ;;
19763 esac
19764 else
19765 shlibpath_overrides_runpath=yes
19766 fi
19767 ;;
19768
19769os2*)
19770 libname_spec='$name'
19771 shrext_cmds=".dll"
19772 need_lib_prefix=no
19773 library_names_spec='$libname${shared_ext} $libname.a'
19774 dynamic_linker='OS/2 ld.exe'
19775 shlibpath_var=LIBPATH
19776 ;;
19777
19778osf3* | osf4* | osf5*)
19779 version_type=osf
19780 need_lib_prefix=no
19781 need_version=no
19782 soname_spec='${libname}${release}${shared_ext}$major'
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784 shlibpath_var=LD_LIBRARY_PATH
19785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19787 ;;
19788
19789rdos*)
19790 dynamic_linker=no
19791 ;;
19792
19793solaris*)
cristy99bd5232011-12-07 14:38:20 +000019794 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019795 need_lib_prefix=no
19796 need_version=no
19797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 shlibpath_overrides_runpath=yes
19801 hardcode_into_libs=yes
19802 # ldd complains unless libraries are executable
19803 postinstall_cmds='chmod +x $lib'
19804 ;;
19805
19806sunos4*)
19807 version_type=sunos
19808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19810 shlibpath_var=LD_LIBRARY_PATH
19811 shlibpath_overrides_runpath=yes
19812 if test "$with_gnu_ld" = yes; then
19813 need_lib_prefix=no
19814 fi
19815 need_version=yes
19816 ;;
19817
19818sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000019819 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19821 soname_spec='${libname}${release}${shared_ext}$major'
19822 shlibpath_var=LD_LIBRARY_PATH
19823 case $host_vendor in
19824 sni)
19825 shlibpath_overrides_runpath=no
19826 need_lib_prefix=no
19827 runpath_var=LD_RUN_PATH
19828 ;;
19829 siemens)
19830 need_lib_prefix=no
19831 ;;
19832 motorola)
19833 need_lib_prefix=no
19834 need_version=no
19835 shlibpath_overrides_runpath=no
19836 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19837 ;;
19838 esac
19839 ;;
19840
19841sysv4*MP*)
19842 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000019843 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019844 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19845 soname_spec='$libname${shared_ext}.$major'
19846 shlibpath_var=LD_LIBRARY_PATH
19847 fi
19848 ;;
19849
19850sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19851 version_type=freebsd-elf
19852 need_lib_prefix=no
19853 need_version=no
19854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19855 soname_spec='${libname}${release}${shared_ext}$major'
19856 shlibpath_var=LD_LIBRARY_PATH
19857 shlibpath_overrides_runpath=yes
19858 hardcode_into_libs=yes
19859 if test "$with_gnu_ld" = yes; then
19860 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19861 else
19862 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19863 case $host_os in
19864 sco3.2v5*)
19865 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19866 ;;
19867 esac
19868 fi
19869 sys_lib_dlsearch_path_spec='/usr/lib'
19870 ;;
19871
19872tpf*)
19873 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000019874 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019875 need_lib_prefix=no
19876 need_version=no
19877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19878 shlibpath_var=LD_LIBRARY_PATH
19879 shlibpath_overrides_runpath=no
19880 hardcode_into_libs=yes
19881 ;;
19882
19883uts4*)
cristy99bd5232011-12-07 14:38:20 +000019884 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19886 soname_spec='${libname}${release}${shared_ext}$major'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 ;;
19889
19890*)
19891 dynamic_linker=no
19892 ;;
19893esac
19894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19895$as_echo "$dynamic_linker" >&6; }
19896test "$dynamic_linker" = no && can_build_shared=no
19897
19898variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19899if test "$GCC" = yes; then
19900 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19901fi
19902
19903if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19904 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19905fi
19906if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19907 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19908fi
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
cristy0c60a692010-11-04 01:09:47 +000019945
19946
cristy73bd4a52010-10-05 11:24:23 +000019947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19948$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19949hardcode_action_CXX=
19950if test -n "$hardcode_libdir_flag_spec_CXX" ||
19951 test -n "$runpath_var_CXX" ||
19952 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19953
19954 # We can hardcode non-existent directories.
19955 if test "$hardcode_direct_CXX" != no &&
19956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19957 # have to relink, otherwise we might link with an installed library
19958 # when we should be linking with a yet-to-be-installed one
19959 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19960 test "$hardcode_minus_L_CXX" != no; then
19961 # Linking always hardcodes the temporary library directory.
19962 hardcode_action_CXX=relink
19963 else
19964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19965 hardcode_action_CXX=immediate
19966 fi
19967else
19968 # We cannot hardcode anything, or else we can only hardcode existing
19969 # directories.
19970 hardcode_action_CXX=unsupported
19971fi
19972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19973$as_echo "$hardcode_action_CXX" >&6; }
19974
19975if test "$hardcode_action_CXX" = relink ||
19976 test "$inherit_rpath_CXX" = yes; then
19977 # Fast installation is not supported
19978 enable_fast_install=no
19979elif test "$shlibpath_overrides_runpath" = yes ||
19980 test "$enable_shared" = no; then
19981 # Fast installation is not necessary
19982 enable_fast_install=needless
19983fi
19984
19985
19986
19987
19988
19989
19990
19991 fi # test -n "$compiler"
19992
19993 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019994 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019995 LDCXX=$LD
19996 LD=$lt_save_LD
19997 GCC=$lt_save_GCC
19998 with_gnu_ld=$lt_save_with_gnu_ld
19999 lt_cv_path_LDCXX=$lt_cv_path_LD
20000 lt_cv_path_LD=$lt_save_path_LD
20001 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20002 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20003fi # test "$_lt_caught_CXX_error" != yes
20004
20005ac_ext=c
20006ac_cpp='$CPP $CPPFLAGS'
20007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20009ac_compiler_gnu=$ac_cv_c_compiler_gnu
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
cristy99bd5232011-12-07 14:38:20 +000020023
20024
cristy73bd4a52010-10-05 11:24:23 +000020025 ac_config_commands="$ac_config_commands libtool"
20026
20027
20028
20029
20030# Only expand once:
20031
20032
20033
cristy3ed852e2009-09-05 21:47:34 +000020034
20035
20036# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020037
20038
20039
20040
20041
20042
20043
cristy73bd4a52010-10-05 11:24:23 +000020044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20045$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020046if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020047 $as_echo_n "(cached) " >&6
20048else
20049
20050module=yes
20051eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020052module=no
20053eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020054
20055fi
20056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20057$as_echo "$libltdl_cv_shlibext" >&6; }
20058if test -n "$libltdl_cv_shlibext"; then
20059
20060cat >>confdefs.h <<_ACEOF
20061#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20062_ACEOF
20063
20064fi
cristy99bd5232011-12-07 14:38:20 +000020065if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20066
20067cat >>confdefs.h <<_ACEOF
20068#define LT_SHARED_EXT "$libltdl_cv_shrext"
20069_ACEOF
20070
20071fi
cristy73bd4a52010-10-05 11:24:23 +000020072
20073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20074$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020075if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020076 $as_echo_n "(cached) " >&6
20077else
20078 lt_cv_module_path_var="$shlibpath_var"
20079fi
20080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20081$as_echo "$lt_cv_module_path_var" >&6; }
20082if test -n "$lt_cv_module_path_var"; then
20083
20084cat >>confdefs.h <<_ACEOF
20085#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20086_ACEOF
20087
20088fi
20089
20090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20091$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020092if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020093 $as_echo_n "(cached) " >&6
20094else
20095 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20096fi
20097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20098$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20099if test -n "$lt_cv_sys_dlsearch_path"; then
20100 sys_dlsearch_path=
20101 for dir in $lt_cv_sys_dlsearch_path; do
20102 if test -z "$sys_dlsearch_path"; then
20103 sys_dlsearch_path="$dir"
20104 else
20105 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20106 fi
20107 done
20108
20109cat >>confdefs.h <<_ACEOF
20110#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20111_ACEOF
20112
20113fi
20114
20115
20116LT_DLLOADERS=
20117
20118
20119ac_ext=c
20120ac_cpp='$CPP $CPPFLAGS'
20121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123ac_compiler_gnu=$ac_cv_c_compiler_gnu
20124
20125
20126LIBADD_DLOPEN=
20127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20128$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020129if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020130 $as_echo_n "(cached) " >&6
20131else
20132 ac_func_search_save_LIBS=$LIBS
20133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h. */
20135
20136/* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20139#ifdef __cplusplus
20140extern "C"
20141#endif
20142char dlopen ();
20143int
20144main ()
20145{
20146return dlopen ();
20147 ;
20148 return 0;
20149}
20150_ACEOF
20151for ac_lib in '' dl; do
20152 if test -z "$ac_lib"; then
20153 ac_res="none required"
20154 else
20155 ac_res=-l$ac_lib
20156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20157 fi
20158 if ac_fn_c_try_link "$LINENO"; then :
20159 ac_cv_search_dlopen=$ac_res
20160fi
20161rm -f core conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020163 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020164 break
20165fi
20166done
cristyda16f162011-02-19 23:52:17 +000020167if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020168
20169else
20170 ac_cv_search_dlopen=no
20171fi
20172rm conftest.$ac_ext
20173LIBS=$ac_func_search_save_LIBS
20174fi
20175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20176$as_echo "$ac_cv_search_dlopen" >&6; }
20177ac_res=$ac_cv_search_dlopen
20178if test "$ac_res" != no; then :
20179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20180
20181$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20182
20183 if test "$ac_cv_search_dlopen" != "none required" ; then
20184 LIBADD_DLOPEN="-ldl"
20185 fi
20186 libltdl_cv_lib_dl_dlopen="yes"
20187 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20188else
20189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190/* end confdefs.h. */
20191#if HAVE_DLFCN_H
20192# include <dlfcn.h>
20193#endif
20194
20195int
20196main ()
20197{
20198dlopen(0, 0);
20199 ;
20200 return 0;
20201}
20202_ACEOF
20203if ac_fn_c_try_link "$LINENO"; then :
20204
20205$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20206
20207 libltdl_cv_func_dlopen="yes"
20208 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20209else
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20211$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020212if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020213 $as_echo_n "(cached) " >&6
20214else
20215 ac_check_lib_save_LIBS=$LIBS
20216LIBS="-lsvld $LIBS"
20217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218/* end confdefs.h. */
20219
20220/* Override any GCC internal prototype to avoid an error.
20221 Use char because int might match the return type of a GCC
20222 builtin and then its argument prototype would still apply. */
20223#ifdef __cplusplus
20224extern "C"
20225#endif
20226char dlopen ();
20227int
20228main ()
20229{
20230return dlopen ();
20231 ;
20232 return 0;
20233}
20234_ACEOF
20235if ac_fn_c_try_link "$LINENO"; then :
20236 ac_cv_lib_svld_dlopen=yes
20237else
20238 ac_cv_lib_svld_dlopen=no
20239fi
20240rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20242LIBS=$ac_check_lib_save_LIBS
20243fi
20244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20245$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020246if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020247
20248$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20249
20250 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20251 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20252fi
20253
20254fi
20255rm -f core conftest.err conftest.$ac_objext \
20256 conftest$ac_exeext conftest.$ac_ext
20257fi
20258
20259if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20260then
20261 lt_save_LIBS="$LIBS"
20262 LIBS="$LIBS $LIBADD_DLOPEN"
20263 for ac_func in dlerror
20264do :
20265 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020266if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020267 cat >>confdefs.h <<_ACEOF
20268#define HAVE_DLERROR 1
20269_ACEOF
20270
20271fi
20272done
20273
20274 LIBS="$lt_save_LIBS"
20275fi
20276
20277
20278LIBADD_SHL_LOAD=
20279ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020280if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020281
20282$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20283
20284 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20285else
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20287$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020288if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020289 $as_echo_n "(cached) " >&6
20290else
20291 ac_check_lib_save_LIBS=$LIBS
20292LIBS="-ldld $LIBS"
20293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20294/* end confdefs.h. */
20295
20296/* Override any GCC internal prototype to avoid an error.
20297 Use char because int might match the return type of a GCC
20298 builtin and then its argument prototype would still apply. */
20299#ifdef __cplusplus
20300extern "C"
20301#endif
20302char shl_load ();
20303int
20304main ()
20305{
20306return shl_load ();
20307 ;
20308 return 0;
20309}
20310_ACEOF
20311if ac_fn_c_try_link "$LINENO"; then :
20312 ac_cv_lib_dld_shl_load=yes
20313else
20314 ac_cv_lib_dld_shl_load=no
20315fi
20316rm -f core conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318LIBS=$ac_check_lib_save_LIBS
20319fi
20320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20321$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020322if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020323
20324$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20325
20326 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20327 LIBADD_SHL_LOAD="-ldld"
20328fi
20329
20330fi
20331
20332
20333
20334case $host_os in
20335darwin[1567].*)
20336# We only want this for pre-Mac OS X 10.4.
20337 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020338if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020339
20340$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20341
20342 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20343fi
20344
20345 ;;
20346beos*)
20347 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20348 ;;
20349cygwin* | mingw* | os2* | pw32*)
20350 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20351"
cristyda16f162011-02-19 23:52:17 +000020352if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020353 ac_have_decl=1
20354else
20355 ac_have_decl=0
20356fi
20357
20358cat >>confdefs.h <<_ACEOF
20359#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20360_ACEOF
20361
20362 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20363 ;;
20364esac
20365
20366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20367$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020368if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020369 $as_echo_n "(cached) " >&6
20370else
20371 ac_check_lib_save_LIBS=$LIBS
20372LIBS="-ldld $LIBS"
20373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20374/* end confdefs.h. */
20375
20376/* Override any GCC internal prototype to avoid an error.
20377 Use char because int might match the return type of a GCC
20378 builtin and then its argument prototype would still apply. */
20379#ifdef __cplusplus
20380extern "C"
20381#endif
20382char dld_link ();
20383int
20384main ()
20385{
20386return dld_link ();
20387 ;
20388 return 0;
20389}
20390_ACEOF
20391if ac_fn_c_try_link "$LINENO"; then :
20392 ac_cv_lib_dld_dld_link=yes
20393else
20394 ac_cv_lib_dld_dld_link=no
20395fi
20396rm -f core conftest.err conftest.$ac_objext \
20397 conftest$ac_exeext conftest.$ac_ext
20398LIBS=$ac_check_lib_save_LIBS
20399fi
20400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20401$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020402if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020403
20404$as_echo "#define HAVE_DLD 1" >>confdefs.h
20405
20406 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20407fi
20408
20409
20410
20411
20412LT_DLPREOPEN=
20413if test -n "$LT_DLLOADERS"
20414then
20415 for lt_loader in $LT_DLLOADERS; do
20416 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20417 done
20418
20419$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20420
20421fi
20422
20423
20424LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20425
20426
20427ac_ext=c
20428ac_cpp='$CPP $CPPFLAGS'
20429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20431ac_compiler_gnu=$ac_cv_c_compiler_gnu
20432
20433
20434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20435$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020436if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020437 $as_echo_n "(cached) " >&6
20438else
20439 lt_cv_sys_symbol_underscore=no
20440 cat > conftest.$ac_ext <<_LT_EOF
20441void nm_test_func(){}
20442int main(){nm_test_func;return 0;}
20443_LT_EOF
20444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20445 (eval $ac_compile) 2>&5
20446 ac_status=$?
20447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20448 test $ac_status = 0; }; then
20449 # Now try to grab the symbols.
20450 ac_nlist=conftest.nm
20451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20452 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20453 ac_status=$?
20454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20455 test $ac_status = 0; } && test -s "$ac_nlist"; then
20456 # See whether the symbols have a leading underscore.
20457 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20458 lt_cv_sys_symbol_underscore=yes
20459 else
20460 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20461 :
20462 else
20463 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20464 fi
20465 fi
20466 else
20467 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20468 fi
20469 else
20470 echo "configure: failed program was:" >&5
20471 cat conftest.c >&5
20472 fi
20473 rm -rf conftest*
20474
20475fi
20476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20477$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20478 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20479
20480
20481if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20482 if test x"$libltdl_cv_func_dlopen" = xyes ||
20483 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20485$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020486if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020487 $as_echo_n "(cached) " >&6
20488else
20489 libltdl_cv_need_uscore=unknown
20490 save_LIBS="$LIBS"
20491 LIBS="$LIBS $LIBADD_DLOPEN"
20492 if test "$cross_compiling" = yes; then :
20493 libltdl_cv_need_uscore=cross
20494else
20495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20496 lt_status=$lt_dlunknown
20497 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020498#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020499#include "confdefs.h"
20500
20501#if HAVE_DLFCN_H
20502#include <dlfcn.h>
20503#endif
20504
20505#include <stdio.h>
20506
20507#ifdef RTLD_GLOBAL
20508# define LT_DLGLOBAL RTLD_GLOBAL
20509#else
20510# ifdef DL_GLOBAL
20511# define LT_DLGLOBAL DL_GLOBAL
20512# else
20513# define LT_DLGLOBAL 0
20514# endif
20515#endif
20516
20517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20518 find out it does not work in some platform. */
20519#ifndef LT_DLLAZY_OR_NOW
20520# ifdef RTLD_LAZY
20521# define LT_DLLAZY_OR_NOW RTLD_LAZY
20522# else
20523# ifdef DL_LAZY
20524# define LT_DLLAZY_OR_NOW DL_LAZY
20525# else
20526# ifdef RTLD_NOW
20527# define LT_DLLAZY_OR_NOW RTLD_NOW
20528# else
20529# ifdef DL_NOW
20530# define LT_DLLAZY_OR_NOW DL_NOW
20531# else
20532# define LT_DLLAZY_OR_NOW 0
20533# endif
20534# endif
20535# endif
20536# endif
20537#endif
20538
cristy0c60a692010-11-04 01:09:47 +000020539/* When -fvisbility=hidden is used, assume the code has been annotated
20540 correspondingly for the symbols needed. */
20541#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020542int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020543#endif
20544
cristyda16f162011-02-19 23:52:17 +000020545int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020546int main ()
20547{
20548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20549 int status = $lt_dlunknown;
20550
20551 if (self)
20552 {
20553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020554 else
20555 {
20556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20557 else puts (dlerror ());
20558 }
cristy73bd4a52010-10-05 11:24:23 +000020559 /* dlclose (self); */
20560 }
20561 else
20562 puts (dlerror ());
20563
20564 return status;
20565}
20566_LT_EOF
20567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20568 (eval $ac_link) 2>&5
20569 ac_status=$?
20570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20572 (./conftest; exit; ) >&5 2>/dev/null
20573 lt_status=$?
20574 case x$lt_status in
20575 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20576 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20577 x$lt_dlunknown|x*) ;;
20578 esac
20579 else :
20580 # compilation failed
20581
20582 fi
20583fi
20584rm -fr conftest*
20585
20586 LIBS="$save_LIBS"
20587
20588fi
20589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20590$as_echo "$libltdl_cv_need_uscore" >&6; }
20591 fi
20592fi
20593
20594if test x"$libltdl_cv_need_uscore" = xyes; then
20595
20596$as_echo "#define NEED_USCORE 1" >>confdefs.h
20597
20598fi
20599
20600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20601$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020602if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020603 $as_echo_n "(cached) " >&6
20604else
20605 # PORTME does your system automatically load deplibs for dlopen?
20606 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20607 # For now, we just catch OSes we know something about -- in the
20608 # future, we'll try test this programmatically.
20609 lt_cv_sys_dlopen_deplibs=unknown
20610 case $host_os in
20611 aix3*|aix4.1.*|aix4.2.*)
20612 # Unknown whether this is true for these versions of AIX, but
20613 # we want this `case' here to explicitly catch those versions.
20614 lt_cv_sys_dlopen_deplibs=unknown
20615 ;;
20616 aix[4-9]*)
20617 lt_cv_sys_dlopen_deplibs=yes
20618 ;;
20619 amigaos*)
20620 case $host_cpu in
20621 powerpc)
20622 lt_cv_sys_dlopen_deplibs=no
20623 ;;
20624 esac
20625 ;;
20626 darwin*)
20627 # Assuming the user has installed a libdl from somewhere, this is true
20628 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20629 lt_cv_sys_dlopen_deplibs=yes
20630 ;;
20631 freebsd* | dragonfly*)
20632 lt_cv_sys_dlopen_deplibs=yes
20633 ;;
cristy0c60a692010-11-04 01:09:47 +000020634 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020635 # GNU and its variants, using gnu ld.so (Glibc)
20636 lt_cv_sys_dlopen_deplibs=yes
20637 ;;
20638 hpux10*|hpux11*)
20639 lt_cv_sys_dlopen_deplibs=yes
20640 ;;
20641 interix*)
20642 lt_cv_sys_dlopen_deplibs=yes
20643 ;;
20644 irix[12345]*|irix6.[01]*)
20645 # Catch all versions of IRIX before 6.2, and indicate that we don't
20646 # know how it worked for any of those versions.
20647 lt_cv_sys_dlopen_deplibs=unknown
20648 ;;
20649 irix*)
20650 # The case above catches anything before 6.2, and it's known that
20651 # at 6.2 and later dlopen does load deplibs.
20652 lt_cv_sys_dlopen_deplibs=yes
20653 ;;
20654 netbsd*)
20655 lt_cv_sys_dlopen_deplibs=yes
20656 ;;
20657 openbsd*)
20658 lt_cv_sys_dlopen_deplibs=yes
20659 ;;
20660 osf[1234]*)
20661 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20662 # it did *not* use an RPATH in a shared library to find objects the
20663 # library depends on, so we explicitly say `no'.
20664 lt_cv_sys_dlopen_deplibs=no
20665 ;;
20666 osf5.0|osf5.0a|osf5.1)
20667 # dlopen *does* load deplibs and with the right loader patch applied
20668 # it even uses RPATH in a shared library to search for shared objects
20669 # that the library depends on, but there's no easy way to know if that
20670 # patch is installed. Since this is the case, all we can really
20671 # say is unknown -- it depends on the patch being installed. If
20672 # it is, this changes to `yes'. Without it, it would be `no'.
20673 lt_cv_sys_dlopen_deplibs=unknown
20674 ;;
20675 osf*)
20676 # the two cases above should catch all versions of osf <= 5.1. Read
20677 # the comments above for what we know about them.
20678 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20679 # is used to find them so we can finally say `yes'.
20680 lt_cv_sys_dlopen_deplibs=yes
20681 ;;
20682 qnx*)
20683 lt_cv_sys_dlopen_deplibs=yes
20684 ;;
20685 solaris*)
20686 lt_cv_sys_dlopen_deplibs=yes
20687 ;;
20688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20689 libltdl_cv_sys_dlopen_deplibs=yes
20690 ;;
20691 esac
20692
20693fi
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20695$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20696if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20697
20698$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20699
20700fi
20701
20702:
20703
20704for ac_header in argz.h
20705do :
20706 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20707"
cristyda16f162011-02-19 23:52:17 +000020708if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020709 cat >>confdefs.h <<_ACEOF
20710#define HAVE_ARGZ_H 1
20711_ACEOF
20712
20713fi
20714
20715done
20716
20717
20718ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20719# include <argz.h>
20720#endif
20721"
cristyda16f162011-02-19 23:52:17 +000020722if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020723
20724cat >>confdefs.h <<_ACEOF
20725#define HAVE_ERROR_T 1
20726_ACEOF
20727
20728
20729else
20730
20731$as_echo "#define error_t int" >>confdefs.h
20732
20733
20734$as_echo "#define __error_t_defined 1" >>confdefs.h
20735
20736fi
20737
20738
20739ARGZ_H=
20740for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20741 argz_next argz_stringify
20742do :
20743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20744ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020745if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020746 cat >>confdefs.h <<_ACEOF
20747#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20748_ACEOF
20749
20750else
20751 ARGZ_H=argz.h;
20752
20753 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20754
20755fi
20756done
20757
20758
20759if test -z "$ARGZ_H"; then :
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20761$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020762if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020763 $as_echo_n "(cached) " >&6
20764else
20765 case $host_os in #(
20766 *cygwin*)
20767 lt_cv_sys_argz_works=no
20768 if test "$cross_compiling" != no; then
20769 lt_cv_sys_argz_works="guessing no"
20770 else
20771 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20772 save_IFS=$IFS
20773 IFS=-.
20774 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20775 IFS=$save_IFS
20776 lt_os_major=${2-0}
20777 lt_os_minor=${3-0}
20778 lt_os_micro=${4-0}
20779 if test "$lt_os_major" -gt 1 \
20780 || { test "$lt_os_major" -eq 1 \
20781 && { test "$lt_os_minor" -gt 5 \
20782 || { test "$lt_os_minor" -eq 5 \
20783 && test "$lt_os_micro" -gt 24; }; }; }; then
20784 lt_cv_sys_argz_works=yes
20785 fi
20786 fi
20787 ;; #(
20788 *) lt_cv_sys_argz_works=yes ;;
20789 esac
20790fi
20791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20792$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020793 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020794
20795$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20796
20797else
20798 ARGZ_H=argz.h
20799
20800
20801 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20802
20803fi
20804fi
20805
20806
20807
20808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20809$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020810if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020811 $as_echo_n "(cached) " >&6
20812else
20813 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20814 libltdl_cv_preloaded_symbols=yes
20815 else
20816 libltdl_cv_preloaded_symbols=no
20817 fi
20818
20819fi
20820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20821$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20822if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20823
20824$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20825
20826fi
20827
20828# Set options
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840# Check whether --with-included_ltdl was given.
20841if test "${with_included_ltdl+set}" = set; then :
20842 withval=$with_included_ltdl;
20843fi
20844
20845
20846if test "x$with_included_ltdl" != xyes; then
20847 # We are not being forced to use the included libltdl sources, so
20848 # decide whether there is a useful installed version we can use.
20849 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20850
20851"
cristyda16f162011-02-19 23:52:17 +000020852if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020853 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20854 #include <ltdl.h>
20855"
cristyda16f162011-02-19 23:52:17 +000020856if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20858$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020859if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020860 $as_echo_n "(cached) " >&6
20861else
20862 ac_check_lib_save_LIBS=$LIBS
20863LIBS="-lltdl $LIBS"
20864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865/* end confdefs.h. */
20866
20867/* Override any GCC internal prototype to avoid an error.
20868 Use char because int might match the return type of a GCC
20869 builtin and then its argument prototype would still apply. */
20870#ifdef __cplusplus
20871extern "C"
20872#endif
20873char lt_dladvise_preload ();
20874int
20875main ()
20876{
20877return lt_dladvise_preload ();
20878 ;
20879 return 0;
20880}
20881_ACEOF
20882if ac_fn_c_try_link "$LINENO"; then :
20883 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20884else
20885 ac_cv_lib_ltdl_lt_dladvise_preload=no
20886fi
20887rm -f core conftest.err conftest.$ac_objext \
20888 conftest$ac_exeext conftest.$ac_ext
20889LIBS=$ac_check_lib_save_LIBS
20890fi
20891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20892$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020893if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020894 with_included_ltdl=no
20895else
20896 with_included_ltdl=yes
20897fi
20898
20899else
20900 with_included_ltdl=yes
20901fi
20902
20903else
20904 with_included_ltdl=yes
20905fi
20906
20907
20908fi
20909
20910
20911
20912
20913# Check whether --with-ltdl_include was given.
20914if test "${with_ltdl_include+set}" = set; then :
20915 withval=$with_ltdl_include;
20916fi
20917
20918
20919if test -n "$with_ltdl_include"; then
20920 if test -f "$with_ltdl_include/ltdl.h"; then :
20921 else
cristy98dddb52010-11-04 00:30:15 +000020922 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020923 fi
20924else
20925 with_ltdl_include=no
20926fi
20927
20928
20929# Check whether --with-ltdl_lib was given.
20930if test "${with_ltdl_lib+set}" = set; then :
20931 withval=$with_ltdl_lib;
20932fi
20933
20934
20935if test -n "$with_ltdl_lib"; then
20936 if test -f "$with_ltdl_lib/libltdl.la"; then :
20937 else
cristy98dddb52010-11-04 00:30:15 +000020938 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020939 fi
20940else
20941 with_ltdl_lib=no
20942fi
20943
20944case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20945 ,yes,no,no,)
20946 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020947 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020948 "") enable_ltdl_convenience=yes
20949 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20950esac
20951LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20952LTDLDEPS=$LIBLTDL
20953LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20954
20955
20956
20957
20958
20959# For backwards non-gettext consistent compatibility...
20960INCLTDL="$LTDLINCL"
20961
20962
20963 ;;
20964 ,no,no,no,)
20965 # If the included ltdl is not to be used, then use the
20966 # preinstalled libltdl we found.
20967
20968$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20969
20970 LIBLTDL=-lltdl
20971 LTDLDEPS=
20972 LTDLINCL=
20973 ;;
20974 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020975 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020976 ;;
20977 *) with_included_ltdl=no
20978 LIBLTDL="-L$with_ltdl_lib -lltdl"
20979 LTDLDEPS=
20980 LTDLINCL="-I$with_ltdl_include"
20981 ;;
20982esac
20983INCLTDL="$LTDLINCL"
20984
20985# Report our decision...
20986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20987$as_echo_n "checking where to find libltdl headers... " >&6; }
20988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20989$as_echo "$LTDLINCL" >&6; }
20990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20991$as_echo_n "checking where to find libltdl library... " >&6; }
20992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20993$as_echo "$LIBLTDL" >&6; }
20994
20995
20996
20997# Check whether --enable-ltdl-install was given.
20998if test "${enable_ltdl_install+set}" = set; then :
20999 enableval=$enable_ltdl_install;
21000fi
21001
21002
21003case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21004 *yes*) ;;
21005 *) enable_ltdl_convenience=yes ;;
21006esac
21007
21008 if test x"${enable_ltdl_install-no}" != xno; then
21009 INSTALL_LTDL_TRUE=
21010 INSTALL_LTDL_FALSE='#'
21011else
21012 INSTALL_LTDL_TRUE='#'
21013 INSTALL_LTDL_FALSE=
21014fi
21015
21016 if test x"${enable_ltdl_convenience-no}" != xno; then
21017 CONVENIENCE_LTDL_TRUE=
21018 CONVENIENCE_LTDL_FALSE='#'
21019else
21020 CONVENIENCE_LTDL_TRUE='#'
21021 CONVENIENCE_LTDL_FALSE=
21022fi
21023
21024
21025
21026
21027
21028
cristy73bd4a52010-10-05 11:24:23 +000021029# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21030# the user used. This is so that ltdl.h can pick up the parent projects
21031# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21032# definitions required by ltdl.c.
21033# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21034
21035
21036
21037for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21038do :
21039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21040ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21041"
cristy98dddb52010-11-04 00:30:15 +000021042if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021043 cat >>confdefs.h <<_ACEOF
21044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21045_ACEOF
21046
21047fi
21048
21049done
21050
21051
21052for ac_func in closedir opendir readdir
21053do :
21054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21055ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021056if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021057 cat >>confdefs.h <<_ACEOF
21058#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21059_ACEOF
21060
21061else
21062
21063
21064 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21065
21066fi
21067done
21068
21069for ac_func in strlcat strlcpy
21070do :
21071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21072ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021073if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021074 cat >>confdefs.h <<_ACEOF
21075#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21076_ACEOF
21077
21078else
21079
21080
21081 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21082
21083fi
21084done
21085
21086
21087
21088cat >>confdefs.h <<_ACEOF
21089#define LT_LIBEXT "$libext"
21090_ACEOF
21091
21092
cristyda16f162011-02-19 23:52:17 +000021093name=
21094eval "lt_libprefix=\"$libname_spec\""
21095
21096cat >>confdefs.h <<_ACEOF
21097#define LT_LIBPREFIX "$lt_libprefix"
21098_ACEOF
21099
21100
cristy73bd4a52010-10-05 11:24:23 +000021101name=ltdl
cristyda16f162011-02-19 23:52:17 +000021102eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021103
21104
21105
21106
21107
21108
21109
21110
21111# Only expand once:
21112
21113
cristy3ed852e2009-09-05 21:47:34 +000021114
21115# Check to see if building shared libraries
21116libtool_build_shared_libs='no'
21117if test "$enable_shared" = 'yes'; then
21118 libtool_build_shared_libs='yes'
21119fi
21120
21121# Check to see if building static libraries
21122libtool_build_static_libs='no'
21123if test "$enable_static" = 'yes'; then
21124 libtool_build_static_libs='yes'
21125fi
21126
cristy73bd4a52010-10-05 11:24:23 +000021127 if test "${libtool_build_shared_libs}" = 'yes'; then
21128 WITH_SHARED_LIBS_TRUE=
21129 WITH_SHARED_LIBS_FALSE='#'
21130else
21131 WITH_SHARED_LIBS_TRUE='#'
21132 WITH_SHARED_LIBS_FALSE=
21133fi
21134
cristy3ed852e2009-09-05 21:47:34 +000021135#
21136# Enable support for building loadable modules
21137#
21138
21139# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021140if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021141 withval=$with_modules; with_modules=$withval
21142else
cristy5a1cefd2010-01-06 20:42:35 +000021143 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021144fi
21145
21146
21147# Only allow building loadable modules if we are building shared libraries
21148if test "$with_modules" != 'no' ; then
21149 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021150 { $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 +000021151$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21152 with_modules='no'
21153 fi
21154fi
21155if test "$with_modules" != 'no'; then
21156
cristy8b350f62009-11-15 23:12:43 +000021157$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021158
21159fi
cristy73bd4a52010-10-05 11:24:23 +000021160 if test "$with_modules" != 'no'; then
21161 WITH_MODULES_TRUE=
21162 WITH_MODULES_FALSE='#'
21163else
21164 WITH_MODULES_TRUE='#'
21165 WITH_MODULES_FALSE=
21166fi
21167
cristy3ed852e2009-09-05 21:47:34 +000021168
21169# Enable building/use of libltdl if we are building shared libraries regardless
21170# of whether modules are built or not.
21171with_ltdl='no'
21172if test "$libtool_build_shared_libs" != 'no'; then
21173 with_ltdl='yes'
21174fi
21175
cristy73bd4a52010-10-05 11:24:23 +000021176 if test "$with_ltdl" != 'no'; then
21177 WITH_LTDL_TRUE=
21178 WITH_LTDL_FALSE='#'
21179else
21180 WITH_LTDL_TRUE='#'
21181 WITH_LTDL_FALSE=
21182fi
21183
cristy3ed852e2009-09-05 21:47:34 +000021184if test "$with_ltdl" != 'no'; then
21185
cristy8b350f62009-11-15 23:12:43 +000021186$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021187
21188
21189 # Set DLLDFLAGS
21190 if test X"$enable_shared" = Xyes; then
21191 DLLDFLAGS=-export-dynamic
21192
21193 fi
21194fi
21195
21196# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021197# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021198# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021199if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021200 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21201else
21202 enable_delegate_build='no'
21203fi
21204
21205
21206# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021207if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021208 enableval=$enable_deprecated; enable_deprecated=$enableval
21209else
21210 enable_deprecated='no'
21211fi
21212
21213
21214if test "$enable_deprecated" = 'yes'; then
21215
cristy8b350f62009-11-15 23:12:43 +000021216$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021217
21218else
21219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21220fi
21221
21222# Build a version of ImageMagick which operates uninstalled.
21223# Used to build distributions located via MAGICK_HOME / executable path
21224# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021225if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021226 enableval=$enable_installed; enable_installed=$enableval
21227else
21228 enable_installed='yes'
21229fi
21230
21231
21232if test "$enable_installed" = 'yes'; then
21233
cristy8b350f62009-11-15 23:12:43 +000021234$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021235
21236else
21237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21238fi
21239
21240# Permit enciphering and deciphering image pixels.
21241# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021242if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021243 enableval=$enable_cipher; enable_cipher=$enableval
21244else
21245 enable_cipher='yes'
21246fi
21247
21248
21249if test "$enable_cipher" = 'yes'; then
21250
cristy8b350f62009-11-15 23:12:43 +000021251$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021252
21253fi
21254
cristy6e3607c2011-09-13 13:59:17 +000021255# Build a zero-configuration version of ImageMagick.
21256# Check whether --enable-zero-configuration was given.
21257if test "${enable_zero_configuration+set}" = set; then :
21258 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021259else
cristy6e3607c2011-09-13 13:59:17 +000021260 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021261fi
21262
21263
cristy6e3607c2011-09-13 13:59:17 +000021264if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021265
cristy6e3607c2011-09-13 13:59:17 +000021266$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021267
cristy81af5702011-09-13 14:20:58 +000021268 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021269fi
21270
21271# Build a high dynamic range version of ImageMagick.
21272# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021273if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 enableval=$enable_hdri; enable_hdri=$enableval
21275else
21276 enable_hdri='no'
21277fi
21278
21279
21280MAGICK_HDRI=""
21281if test "$enable_hdri" = 'yes'; then
21282 MAGICK_HDRI="HDRI"
21283
cristy8b350f62009-11-15 23:12:43 +000021284$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021285
cristyfd9dcd42010-08-08 18:07:02 +000021286 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021287fi
21288
cristy3ed852e2009-09-05 21:47:34 +000021289# Build a version of ImageMagick with assert statements.
21290# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021291if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021292 enableval=$enable_assert; enable_assert=$enableval
21293else
21294 enable_assert='yes'
21295fi
21296
21297
21298if test "$enable_assert" = 'no'; then
21299
cristy8b350f62009-11-15 23:12:43 +000021300$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021301
21302fi
21303
cristya448bd22011-10-14 12:38:13 +000021304# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021305
21306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21307$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21308 # Check whether --enable-maintainer-mode was given.
21309if test "${enable_maintainer_mode+set}" = set; then :
21310 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21311else
21312 USE_MAINTAINER_MODE=no
21313fi
21314
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21316$as_echo "$USE_MAINTAINER_MODE" >&6; }
21317 if test $USE_MAINTAINER_MODE = yes; then
21318 MAINTAINER_MODE_TRUE=
21319 MAINTAINER_MODE_FALSE='#'
21320else
21321 MAINTAINER_MODE_TRUE='#'
21322 MAINTAINER_MODE_FALSE=
21323fi
21324
21325 MAINT=$MAINTAINER_MODE_TRUE
21326
21327
cristy3ed852e2009-09-05 21:47:34 +000021328
cristy3ed852e2009-09-05 21:47:34 +000021329# Enable ccmalloc memory debugging support
21330# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021331if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021332 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21333else
21334 enable_ccmalloc='no'
21335fi
21336
21337
21338# Enable Electric Fence memory debugging support
21339# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021340if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021341 enableval=$enable_efence; enable_efence=$enableval
21342else
21343 enable_efence='no'
21344fi
21345
21346
21347# Enable prof-based profiling support
21348# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021349if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021350 enableval=$enable_prof; enable_prof=$enableval
21351else
21352 enable_prof='no'
21353fi
21354
21355
21356# Enable gprof-based profiling support
21357# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021358if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 enableval=$enable_gprof; enable_gprof=$enableval
21360else
21361 enable_gprof='no'
21362fi
21363
21364
21365# Enable gcov-based profiling support
21366# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021367if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021368 enableval=$enable_gcov; enable_gcov=$enableval
21369else
21370 enable_gcov='no'
21371fi
21372
21373
21374enable_profiling='no'
21375if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21376 enable_profiling='yes'
21377 if test "$libtool_build_shared_libs" = 'yes'; then
21378 echo "Warning: Can not profile code using shared libraries"
21379 fi
21380fi
21381
21382# Magick API method prefix
21383
21384# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021385if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 withval=$with_method_prefix; with_method_prefix=$enableval
21387else
21388 with_method_prefix=''
21389fi
21390
21391
21392if test "$with_method_prefix" != ''; then
21393
21394cat >>confdefs.h <<_ACEOF
21395#define NAMESPACE_PREFIX $with_method_prefix
21396_ACEOF
21397
21398fi
21399
21400# Number of bits in a Quantum
21401
21402# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021403if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021404 withval=$with_quantum_depth; with_quantum_depth=$withval
21405else
21406 with_quantum_depth=16
21407fi
21408
21409
21410if test "$with_quantum_depth" != '8'; then
21411 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21412fi
21413
21414case "${with_quantum_depth}" in
21415 8 ) ;;
21416 16 ) ;;
21417 32 ) ;;
21418 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021419 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021420esac
21421QUANTUM_DEPTH="$with_quantum_depth"
21422
21423cat >>confdefs.h <<_ACEOF
21424#define QUANTUM_DEPTH $QUANTUM_DEPTH
21425_ACEOF
21426
21427
21428# Set pixel cache threshold
21429
21430# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021431if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021432 withval=$with_cache; with_cache=$withval
21433else
21434 with_cache=''
21435fi
21436
21437
21438if test "$with_cache" != ''; then
21439
21440cat >>confdefs.h <<_ACEOF
21441#define PixelCacheThreshold $with_cache
21442_ACEOF
21443
21444 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21445fi
21446
21447# Disable/Enable support for full delegate paths
21448
21449# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021450if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021451 withval=$with_frozenpaths; with_frozenpaths=$withval
21452else
21453 with_frozenpaths='no'
21454fi
21455
21456
21457# Enable build/install of Magick++
21458
21459# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021460if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021461 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21462else
21463 with_magick_plus_plus='yes'
21464fi
21465
21466
21467# Disable build/install of PerlMagick.
21468
21469# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021470if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 withval=$with_perl; with_perl=$withval
21472else
cristyb5f4e2f2010-04-25 00:49:11 +000021473 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021474fi
21475
21476
21477# Options to pass when configuring PerlMagick
21478
21479# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021480if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021481 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021482fi
21483
21484
cristy3ed852e2009-09-05 21:47:34 +000021485
21486# Enable umem, object-caching memory allocation library.
21487
21488# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021489if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021490 withval=$with_umem; with_umem=$withval
21491else
21492 with_umem='no'
21493fi
21494
21495if test "$with_umem" != 'yes' ; then
21496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21497fi
21498
21499#
21500# Specify path to shared libstdc++ if not in normal location
21501#
21502
21503# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021504if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021505 withval=$with_libstdc; with_libstdc=$withval
21506else
21507 with_libstdc=''
21508fi
21509
21510
21511if test "$with_libstdc" != ''; then
21512 if test -d "$with_libstdc"; then
21513 LIBSTDCLDFLAGS="-L$with_libstdc"
21514 fi
21515fi
21516
21517
21518# Does gcc required -traditional?
21519if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021521$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021522if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021523 $as_echo_n "(cached) " >&6
21524else
21525 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021527/* end confdefs.h. */
21528#include <sgtty.h>
21529Autoconf TIOCGETP
21530_ACEOF
21531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021532 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021533 ac_cv_prog_gcc_traditional=yes
21534else
21535 ac_cv_prog_gcc_traditional=no
21536fi
21537rm -f conftest*
21538
21539
21540 if test $ac_cv_prog_gcc_traditional = no; then
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 <termio.h>
21544Autoconf TCGETA
21545_ACEOF
21546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021547 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021548 ac_cv_prog_gcc_traditional=yes
21549fi
21550rm -f conftest*
21551
21552 fi
21553fi
cristy8b350f62009-11-15 23:12:43 +000021554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021555$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21556 if test $ac_cv_prog_gcc_traditional = yes; then
21557 CC="$CC -traditional"
21558 fi
21559fi
21560
21561
21562########
21563#
21564# Set defines required to build DLLs and modules using MinGW
21565#
21566########
21567# These options are set for multi-thread DLL module build
21568# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21569# module: _DLL
21570# executable/Magick++: _DLL _MAGICKMOD_
21571MODULE_EXTRA_CPPFLAGS=''
21572LIBRARY_EXTRA_CPPFLAGS=''
21573if test "${native_win32_build}" = 'yes'; then
21574 if test "${libtool_build_shared_libs}" = 'yes'; then
21575 CPPFLAGS="$CPPFLAGS -D_DLL"
21576 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21577 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21578 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21579 if test "$with_modules" = 'yes'; then
21580 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21581 else
21582 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21583 fi
21584 else
21585 CPPFLAGS="$CPPFLAGS -D_LIB"
21586 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21587 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21588 fi
21589 if test "$with_threads" = 'yes'; then
21590 CPPFLAGS="$CPPFLAGS -D_MT"
21591 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21592 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21593 fi
21594fi
21595
21596
21597
21598# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021600$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021601if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021602 $as_echo_n "(cached) " >&6
21603else
cristy8b350f62009-11-15 23:12:43 +000021604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021605/* end confdefs.h. */
21606#include <stdlib.h>
21607#include <stdarg.h>
21608#include <string.h>
21609#include <float.h>
21610
21611int
21612main ()
21613{
21614
21615 ;
21616 return 0;
21617}
21618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021619if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021620 ac_cv_header_stdc=yes
21621else
cristy8b350f62009-11-15 23:12:43 +000021622 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021623fi
cristy3ed852e2009-09-05 21:47:34 +000021624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625
21626if test $ac_cv_header_stdc = yes; then
21627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021629/* end confdefs.h. */
21630#include <string.h>
21631
21632_ACEOF
21633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021634 $EGREP "memchr" >/dev/null 2>&1; then :
21635
cristy3ed852e2009-09-05 21:47:34 +000021636else
21637 ac_cv_header_stdc=no
21638fi
21639rm -f conftest*
21640
21641fi
21642
21643if test $ac_cv_header_stdc = yes; then
21644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021646/* end confdefs.h. */
21647#include <stdlib.h>
21648
21649_ACEOF
21650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021651 $EGREP "free" >/dev/null 2>&1; then :
21652
cristy3ed852e2009-09-05 21:47:34 +000021653else
21654 ac_cv_header_stdc=no
21655fi
21656rm -f conftest*
21657
21658fi
21659
21660if test $ac_cv_header_stdc = yes; then
21661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021662 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021663 :
21664else
cristy8b350f62009-11-15 23:12:43 +000021665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021666/* end confdefs.h. */
21667#include <ctype.h>
21668#include <stdlib.h>
21669#if ((' ' & 0x0FF) == 0x020)
21670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21672#else
21673# define ISLOWER(c) \
21674 (('a' <= (c) && (c) <= 'i') \
21675 || ('j' <= (c) && (c) <= 'r') \
21676 || ('s' <= (c) && (c) <= 'z'))
21677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21678#endif
21679
21680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21681int
21682main ()
21683{
21684 int i;
21685 for (i = 0; i < 256; i++)
21686 if (XOR (islower (i), ISLOWER (i))
21687 || toupper (i) != TOUPPER (i))
21688 return 2;
21689 return 0;
21690}
21691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021692if ac_fn_c_try_run "$LINENO"; then :
21693
cristy3ed852e2009-09-05 21:47:34 +000021694else
cristy8b350f62009-11-15 23:12:43 +000021695 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021696fi
cristy8b350f62009-11-15 23:12:43 +000021697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21698 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021699fi
21700
cristy3ed852e2009-09-05 21:47:34 +000021701fi
21702fi
cristy8b350f62009-11-15 23:12:43 +000021703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo "$ac_cv_header_stdc" >&6; }
21705if test $ac_cv_header_stdc = yes; then
21706
cristy8b350f62009-11-15 23:12:43 +000021707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021708
21709fi
21710
21711if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021712 { $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 +000021713 header files. Compilation cannot proceed. Please install the ANSI C
21714 headers and rerun this script." >&5
21715$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21716 header files. Compilation cannot proceed. Please install the ANSI C
21717 headers and rerun this script." >&2;};
21718fi
cristya0b81c32010-01-22 02:54:33 +000021719
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21721$as_echo_n "checking whether to enable assertions... " >&6; }
21722 # Check whether --enable-assert was given.
21723if test "${enable_assert+set}" = set; then :
21724 enableval=$enable_assert; ac_enable_assert=$enableval
21725 if test "x$enableval" = xno; then :
21726
21727$as_echo "#define NDEBUG 1" >>confdefs.h
21728
21729elif test "x$enableval" != xyes; then :
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21731$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21732 ac_enable_assert=yes
21733fi
21734else
21735 ac_enable_assert=yes
21736fi
21737
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21739$as_echo "$ac_enable_assert" >&6; }
21740
cristy3ed852e2009-09-05 21:47:34 +000021741ac_header_dirent=no
21742for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21743 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021745$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021746if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 $as_echo_n "(cached) " >&6
21748else
cristy8b350f62009-11-15 23:12:43 +000021749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021750/* end confdefs.h. */
21751#include <sys/types.h>
21752#include <$ac_hdr>
21753
21754int
21755main ()
21756{
21757if ((DIR *) 0)
21758return 0;
21759 ;
21760 return 0;
21761}
21762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021763if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021764 eval "$as_ac_Header=yes"
21765else
cristy8b350f62009-11-15 23:12:43 +000021766 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021767fi
cristy3ed852e2009-09-05 21:47:34 +000021768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21769fi
cristy8b350f62009-11-15 23:12:43 +000021770eval ac_res=\$$as_ac_Header
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021772$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 cat >>confdefs.h <<_ACEOF
21775#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21776_ACEOF
21777
21778ac_header_dirent=$ac_hdr; break
21779fi
21780
21781done
21782# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21783if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021785$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021786if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021787 $as_echo_n "(cached) " >&6
21788else
21789 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021791/* end confdefs.h. */
21792
21793/* Override any GCC internal prototype to avoid an error.
21794 Use char because int might match the return type of a GCC
21795 builtin and then its argument prototype would still apply. */
21796#ifdef __cplusplus
21797extern "C"
21798#endif
21799char opendir ();
21800int
21801main ()
21802{
21803return opendir ();
21804 ;
21805 return 0;
21806}
21807_ACEOF
21808for ac_lib in '' dir; do
21809 if test -z "$ac_lib"; then
21810 ac_res="none required"
21811 else
21812 ac_res=-l$ac_lib
21813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21814 fi
cristy8b350f62009-11-15 23:12:43 +000021815 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021816 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021817fi
cristy8b350f62009-11-15 23:12:43 +000021818rm -f core conftest.err conftest.$ac_objext \
21819 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021820 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021821 break
21822fi
21823done
cristyda16f162011-02-19 23:52:17 +000021824if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021825
cristy3ed852e2009-09-05 21:47:34 +000021826else
21827 ac_cv_search_opendir=no
21828fi
21829rm conftest.$ac_ext
21830LIBS=$ac_func_search_save_LIBS
21831fi
cristy8b350f62009-11-15 23:12:43 +000021832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021833$as_echo "$ac_cv_search_opendir" >&6; }
21834ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021835if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21837
21838fi
21839
21840else
cristy8b350f62009-11-15 23:12:43 +000021841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021842$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021843if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021844 $as_echo_n "(cached) " >&6
21845else
21846 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021848/* end confdefs.h. */
21849
21850/* Override any GCC internal prototype to avoid an error.
21851 Use char because int might match the return type of a GCC
21852 builtin and then its argument prototype would still apply. */
21853#ifdef __cplusplus
21854extern "C"
21855#endif
21856char opendir ();
21857int
21858main ()
21859{
21860return opendir ();
21861 ;
21862 return 0;
21863}
21864_ACEOF
21865for ac_lib in '' x; do
21866 if test -z "$ac_lib"; then
21867 ac_res="none required"
21868 else
21869 ac_res=-l$ac_lib
21870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21871 fi
cristy8b350f62009-11-15 23:12:43 +000021872 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021873 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021874fi
cristy8b350f62009-11-15 23:12:43 +000021875rm -f core conftest.err conftest.$ac_objext \
21876 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021877 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021878 break
21879fi
21880done
cristyda16f162011-02-19 23:52:17 +000021881if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021882
cristy3ed852e2009-09-05 21:47:34 +000021883else
21884 ac_cv_search_opendir=no
21885fi
21886rm conftest.$ac_ext
21887LIBS=$ac_func_search_save_LIBS
21888fi
cristy8b350f62009-11-15 23:12:43 +000021889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021890$as_echo "$ac_cv_search_opendir" >&6; }
21891ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021892if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21894
21895fi
21896
21897fi
21898
21899
21900# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021901for 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 +000021902do :
21903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21904ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021905if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021906 cat >>confdefs.h <<_ACEOF
21907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21908_ACEOF
21909
21910fi
21911
21912done
21913
21914
21915########
21916#
21917# Checks for typedefs, structures, and compiler characteristics.
21918#
21919########
21920
cristy8b350f62009-11-15 23:12:43 +000021921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021922$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021923if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021924 $as_echo_n "(cached) " >&6
21925else
cristy8b350f62009-11-15 23:12:43 +000021926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021927/* end confdefs.h. */
21928
21929#include <stdbool.h>
21930#ifndef bool
21931 "error: bool is not defined"
21932#endif
21933#ifndef false
21934 "error: false is not defined"
21935#endif
21936#if false
21937 "error: false is not 0"
21938#endif
21939#ifndef true
21940 "error: true is not defined"
21941#endif
21942#if true != 1
21943 "error: true is not 1"
21944#endif
21945#ifndef __bool_true_false_are_defined
21946 "error: __bool_true_false_are_defined is not defined"
21947#endif
21948
21949 struct s { _Bool s: 1; _Bool t; } s;
21950
21951 char a[true == 1 ? 1 : -1];
21952 char b[false == 0 ? 1 : -1];
21953 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21954 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021955 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021956 char f[(_Bool) 0.0 == false ? 1 : -1];
21957 char g[true];
21958 char h[sizeof (_Bool)];
21959 char i[sizeof s.t];
21960 enum { j = false, k = true, l = false * true, m = true * 256 };
21961 /* The following fails for
21962 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21963 _Bool n[m];
21964 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21965 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021966 /* Catch a bug in an HP-UX C compiler. See
21967 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21968 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21969 */
21970 _Bool q = true;
21971 _Bool *pq = &q;
21972
21973int
21974main ()
21975{
21976
cristyda16f162011-02-19 23:52:17 +000021977 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021978 *pq |= q;
21979 *pq |= ! q;
21980 /* Refer to every declared value, to avoid compiler optimizations. */
21981 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21982 + !m + !n + !o + !p + !q + !pq);
21983
21984 ;
21985 return 0;
21986}
21987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021989 ac_cv_header_stdbool_h=yes
21990else
cristy8b350f62009-11-15 23:12:43 +000021991 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021992fi
cristy3ed852e2009-09-05 21:47:34 +000021993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994fi
cristy8b350f62009-11-15 23:12:43 +000021995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021996$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021997ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021998if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021999
22000cat >>confdefs.h <<_ACEOF
22001#define HAVE__BOOL 1
22002_ACEOF
22003
22004
22005fi
22006
22007if test $ac_cv_header_stdbool_h = yes; then
22008
cristy8b350f62009-11-15 23:12:43 +000022009$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022010
22011fi
22012
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022015if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022016 $as_echo_n "(cached) " >&6
22017else
cristy8b350f62009-11-15 23:12:43 +000022018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022019/* end confdefs.h. */
22020
22021int
22022main ()
22023{
22024
22025volatile int x;
22026int * volatile y = (int *) 0;
22027return !x && !y;
22028 ;
22029 return 0;
22030}
22031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022032if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022033 ac_cv_c_volatile=yes
22034else
cristy8b350f62009-11-15 23:12:43 +000022035 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022036fi
cristy3ed852e2009-09-05 21:47:34 +000022037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22038fi
cristy8b350f62009-11-15 23:12:43 +000022039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022040$as_echo "$ac_cv_c_volatile" >&6; }
22041if test $ac_cv_c_volatile = no; then
22042
cristy8b350f62009-11-15 23:12:43 +000022043$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022044
22045fi
22046
cristy8b350f62009-11-15 23:12:43 +000022047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022048$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022049if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022050 $as_echo_n "(cached) " >&6
22051else
cristy8b350f62009-11-15 23:12:43 +000022052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022053/* end confdefs.h. */
22054#define x(y) #y
22055
22056char *s = x(teststring);
22057_ACEOF
22058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022059 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022060 ac_cv_c_stringize=no
22061else
22062 ac_cv_c_stringize=yes
22063fi
22064rm -f conftest*
22065
22066fi
cristy8b350f62009-11-15 23:12:43 +000022067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022068$as_echo "$ac_cv_c_stringize" >&6; }
22069if test $ac_cv_c_stringize = yes; then
22070
cristy8b350f62009-11-15 23:12:43 +000022071$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022072
22073fi
22074
cristy8b350f62009-11-15 23:12:43 +000022075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022076$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022077if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022078 $as_echo_n "(cached) " >&6
22079else
cristy8b350f62009-11-15 23:12:43 +000022080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022081/* end confdefs.h. */
22082#include <sys/types.h>
22083#include <sys/stat.h>
22084
22085#if defined S_ISBLK && defined S_IFDIR
22086extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22087#endif
22088
22089#if defined S_ISBLK && defined S_IFCHR
22090extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22091#endif
22092
22093#if defined S_ISLNK && defined S_IFREG
22094extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22095#endif
22096
22097#if defined S_ISSOCK && defined S_IFREG
22098extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22099#endif
22100
22101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022102if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022103 ac_cv_header_stat_broken=no
22104else
cristy8b350f62009-11-15 23:12:43 +000022105 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022106fi
cristy3ed852e2009-09-05 21:47:34 +000022107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108fi
cristy8b350f62009-11-15 23:12:43 +000022109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022110$as_echo "$ac_cv_header_stat_broken" >&6; }
22111if test $ac_cv_header_stat_broken = yes; then
22112
cristy8b350f62009-11-15 23:12:43 +000022113$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022114
22115fi
22116
cristy8b350f62009-11-15 23:12:43 +000022117{ $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 +000022118$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022119if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022120 $as_echo_n "(cached) " >&6
22121else
cristy8b350f62009-11-15 23:12:43 +000022122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022123/* end confdefs.h. */
22124#include <sys/types.h>
22125#include <sys/time.h>
22126#include <time.h>
22127
22128int
22129main ()
22130{
22131if ((struct tm *) 0)
22132return 0;
22133 ;
22134 return 0;
22135}
22136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022137if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022138 ac_cv_header_time=yes
22139else
cristy8b350f62009-11-15 23:12:43 +000022140 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022141fi
cristy3ed852e2009-09-05 21:47:34 +000022142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143fi
cristy8b350f62009-11-15 23:12:43 +000022144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022145$as_echo "$ac_cv_header_time" >&6; }
22146if test $ac_cv_header_time = yes; then
22147
cristy8b350f62009-11-15 23:12:43 +000022148$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022149
22150fi
22151
cristy8b350f62009-11-15 23:12:43 +000022152{ $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 +000022153$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022154if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022155 $as_echo_n "(cached) " >&6
22156else
cristy8b350f62009-11-15 23:12:43 +000022157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158/* end confdefs.h. */
22159#include <sys/types.h>
22160#include <time.h>
22161
22162int
22163main ()
22164{
22165struct tm tm;
22166 int *p = &tm.tm_sec;
22167 return !p;
22168 ;
22169 return 0;
22170}
22171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022172if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022173 ac_cv_struct_tm=time.h
22174else
cristy8b350f62009-11-15 23:12:43 +000022175 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022176fi
cristy3ed852e2009-09-05 21:47:34 +000022177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178fi
cristy8b350f62009-11-15 23:12:43 +000022179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022180$as_echo "$ac_cv_struct_tm" >&6; }
22181if test $ac_cv_struct_tm = sys/time.h; then
22182
cristy8b350f62009-11-15 23:12:43 +000022183$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022184
22185fi
22186
cristy92703d82010-04-26 00:18:18 +000022187ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22188#include <$ac_cv_struct_tm>
22189
22190"
cristyda16f162011-02-19 23:52:17 +000022191if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022192
22193cat >>confdefs.h <<_ACEOF
22194#define HAVE_STRUCT_TM_TM_ZONE 1
22195_ACEOF
22196
22197
22198fi
22199
22200if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22201
22202$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22203
22204else
22205 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22206"
cristyda16f162011-02-19 23:52:17 +000022207if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022208 ac_have_decl=1
22209else
22210 ac_have_decl=0
22211fi
22212
22213cat >>confdefs.h <<_ACEOF
22214#define HAVE_DECL_TZNAME $ac_have_decl
22215_ACEOF
22216
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22218$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022219if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022220 $as_echo_n "(cached) " >&6
22221else
22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223/* end confdefs.h. */
22224#include <time.h>
22225#if !HAVE_DECL_TZNAME
22226extern char *tzname[];
22227#endif
22228
22229int
22230main ()
22231{
22232return tzname[0][0];
22233 ;
22234 return 0;
22235}
22236_ACEOF
22237if ac_fn_c_try_link "$LINENO"; then :
22238 ac_cv_var_tzname=yes
22239else
22240 ac_cv_var_tzname=no
22241fi
22242rm -f core conftest.err conftest.$ac_objext \
22243 conftest$ac_exeext conftest.$ac_ext
22244fi
22245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22246$as_echo "$ac_cv_var_tzname" >&6; }
22247 if test $ac_cv_var_tzname = yes; then
22248
22249$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22250
22251 fi
22252fi
22253
cristy8b350f62009-11-15 23:12:43 +000022254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022255$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022256if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022257 $as_echo_n "(cached) " >&6
22258else
22259 echo '#! /bin/cat
22260exit 69
22261' >conftest
22262chmod u+x conftest
22263(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22264if test $? -ne 69; then
22265 ac_cv_sys_interpreter=yes
22266else
22267 ac_cv_sys_interpreter=no
22268fi
22269rm -f conftest
22270fi
cristy8b350f62009-11-15 23:12:43 +000022271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022272$as_echo "$ac_cv_sys_interpreter" >&6; }
22273interpval=$ac_cv_sys_interpreter
22274
22275
cristy3ed852e2009-09-05 21:47:34 +000022276# If the C compiler supports the keyword inline, do nothing. Otherwise
22277# define inline to __inline__ or __inline if it accepts one of those,
22278# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022280$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022281if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022282 $as_echo_n "(cached) " >&6
22283else
22284 ac_cv_c_inline=no
22285for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022287/* end confdefs.h. */
22288#ifndef __cplusplus
22289typedef int foo_t;
22290static $ac_kw foo_t static_foo () {return 0; }
22291$ac_kw foo_t foo () {return 0; }
22292#endif
22293
22294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022295if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022296 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022297fi
cristy3ed852e2009-09-05 21:47:34 +000022298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299 test "$ac_cv_c_inline" != no && break
22300done
22301
22302fi
cristy8b350f62009-11-15 23:12:43 +000022303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022304$as_echo "$ac_cv_c_inline" >&6; }
22305
cristy3ed852e2009-09-05 21:47:34 +000022306case $ac_cv_c_inline in
22307 inline | yes) ;;
22308 *)
22309 case $ac_cv_c_inline in
22310 no) ac_val=;;
22311 *) ac_val=$ac_cv_c_inline;;
22312 esac
22313 cat >>confdefs.h <<_ACEOF
22314#ifndef __cplusplus
22315#define inline $ac_val
22316#endif
22317_ACEOF
22318 ;;
22319esac
22320
22321
22322# If the C compiler supports the keyword restrict, do nothing. Otherwise
22323# define restrict to __restrict__ or __restrict if it accepts one of those,
22324# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022326$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022327if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022328 $as_echo_n "(cached) " >&6
22329else
22330 ac_cv_c_restrict=no
22331 # The order here caters to the fact that C++ does not require restrict.
22332 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022334/* end confdefs.h. */
22335typedef int * int_ptr;
22336 int foo (int_ptr $ac_kw ip) {
22337 return ip[0];
22338 }
22339int
22340main ()
22341{
22342int s[1];
22343 int * $ac_kw t = s;
22344 t[0] = 0;
22345 return foo(t)
22346 ;
22347 return 0;
22348}
22349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022350if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022352fi
cristy3ed852e2009-09-05 21:47:34 +000022353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22354 test "$ac_cv_c_restrict" != no && break
22355 done
22356
22357fi
cristy8b350f62009-11-15 23:12:43 +000022358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022359$as_echo "$ac_cv_c_restrict" >&6; }
22360
cristy3ed852e2009-09-05 21:47:34 +000022361 case $ac_cv_c_restrict in
22362 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022363 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022364 ;;
22365 *) cat >>confdefs.h <<_ACEOF
22366#define restrict $ac_cv_c_restrict
22367_ACEOF
22368 ;;
22369 esac
22370
22371
22372# If words are stored with the most significant byte first (like
22373# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022375$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022376if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022377 $as_echo_n "(cached) " >&6
22378else
22379 ac_cv_c_bigendian=unknown
22380 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022382/* end confdefs.h. */
22383#ifndef __APPLE_CC__
22384 not a universal capable compiler
22385 #endif
22386 typedef int dummy;
22387
22388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022389if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022390
22391 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022392 # there are at least two -arch flags with different values.
22393 ac_arch=
22394 ac_prev=
22395 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22396 if test -n "$ac_prev"; then
22397 case $ac_word in
22398 i?86 | x86_64 | ppc | ppc64)
22399 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22400 ac_arch=$ac_word
22401 else
22402 ac_cv_c_bigendian=universal
22403 break
22404 fi
22405 ;;
22406 esac
22407 ac_prev=
22408 elif test "x$ac_word" = "x-arch"; then
22409 ac_prev=arch
22410 fi
22411 done
cristy3ed852e2009-09-05 21:47:34 +000022412fi
cristy3ed852e2009-09-05 21:47:34 +000022413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 if test $ac_cv_c_bigendian = unknown; then
22415 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022417/* end confdefs.h. */
22418#include <sys/types.h>
22419 #include <sys/param.h>
22420
22421int
22422main ()
22423{
22424#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22425 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22426 && LITTLE_ENDIAN)
22427 bogus endian macros
22428 #endif
22429
22430 ;
22431 return 0;
22432}
22433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022434if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022435 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022437/* end confdefs.h. */
22438#include <sys/types.h>
22439 #include <sys/param.h>
22440
22441int
22442main ()
22443{
22444#if BYTE_ORDER != BIG_ENDIAN
22445 not big endian
22446 #endif
22447
22448 ;
22449 return 0;
22450}
22451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022452if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022453 ac_cv_c_bigendian=yes
22454else
cristy8b350f62009-11-15 23:12:43 +000022455 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022456fi
cristy3ed852e2009-09-05 21:47:34 +000022457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022458fi
cristy3ed852e2009-09-05 21:47:34 +000022459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 fi
22461 if test $ac_cv_c_bigendian = unknown; then
22462 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022464/* end confdefs.h. */
22465#include <limits.h>
22466
22467int
22468main ()
22469{
22470#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22471 bogus endian macros
22472 #endif
22473
22474 ;
22475 return 0;
22476}
22477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022478if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022479 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022481/* end confdefs.h. */
22482#include <limits.h>
22483
22484int
22485main ()
22486{
22487#ifndef _BIG_ENDIAN
22488 not big endian
22489 #endif
22490
22491 ;
22492 return 0;
22493}
22494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022495if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022496 ac_cv_c_bigendian=yes
22497else
cristy8b350f62009-11-15 23:12:43 +000022498 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022499fi
cristy3ed852e2009-09-05 21:47:34 +000022500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022501fi
cristy3ed852e2009-09-05 21:47:34 +000022502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 fi
22504 if test $ac_cv_c_bigendian = unknown; then
22505 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022506 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022507 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022509/* end confdefs.h. */
22510short int ascii_mm[] =
22511 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22512 short int ascii_ii[] =
22513 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22514 int use_ascii (int i) {
22515 return ascii_mm[i] + ascii_ii[i];
22516 }
22517 short int ebcdic_ii[] =
22518 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22519 short int ebcdic_mm[] =
22520 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22521 int use_ebcdic (int i) {
22522 return ebcdic_mm[i] + ebcdic_ii[i];
22523 }
22524 extern int foo;
22525
22526int
22527main ()
22528{
22529return use_ascii (foo) == use_ebcdic (foo);
22530 ;
22531 return 0;
22532}
22533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022534if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022535 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22536 ac_cv_c_bigendian=yes
22537 fi
22538 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22539 if test "$ac_cv_c_bigendian" = unknown; then
22540 ac_cv_c_bigendian=no
22541 else
22542 # finding both strings is unlikely to happen, but who knows?
22543 ac_cv_c_bigendian=unknown
22544 fi
22545 fi
cristy3ed852e2009-09-05 21:47:34 +000022546fi
cristy3ed852e2009-09-05 21:47:34 +000022547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548else
cristy8b350f62009-11-15 23:12:43 +000022549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022550/* end confdefs.h. */
22551$ac_includes_default
22552int
22553main ()
22554{
22555
22556 /* Are we little or big endian? From Harbison&Steele. */
22557 union
22558 {
22559 long int l;
22560 char c[sizeof (long int)];
22561 } u;
22562 u.l = 1;
22563 return u.c[sizeof (long int) - 1] == 1;
22564
22565 ;
22566 return 0;
22567}
22568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022569if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022570 ac_cv_c_bigendian=no
22571else
cristy8b350f62009-11-15 23:12:43 +000022572 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022573fi
cristy8b350f62009-11-15 23:12:43 +000022574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22575 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022576fi
22577
cristy3ed852e2009-09-05 21:47:34 +000022578 fi
22579fi
cristy8b350f62009-11-15 23:12:43 +000022580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022581$as_echo "$ac_cv_c_bigendian" >&6; }
22582 case $ac_cv_c_bigendian in #(
22583 yes)
cristy8b350f62009-11-15 23:12:43 +000022584 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022585;; #(
22586 no)
22587 ;; #(
22588 universal)
22589
cristy8b350f62009-11-15 23:12:43 +000022590$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022591
22592 ;; #(
22593 *)
cristy98dddb52010-11-04 00:30:15 +000022594 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022595 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022596 esac
22597
22598
cristy501c8042011-05-26 17:46:28 +000022599# Define to a suitable type, if standard headers do not define it.
22600ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22601case $ac_cv_c_int8_t in #(
22602 no|yes) ;; #(
22603 *)
cristy3ed852e2009-09-05 21:47:34 +000022604
22605cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022606#define int8_t $ac_cv_c_int8_t
22607_ACEOF
22608;;
22609esac
22610
22611ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22612case $ac_cv_c_int16_t in #(
22613 no|yes) ;; #(
22614 *)
22615
22616cat >>confdefs.h <<_ACEOF
22617#define int16_t $ac_cv_c_int16_t
22618_ACEOF
22619;;
22620esac
22621
22622ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22623case $ac_cv_c_int32_t in #(
22624 no|yes) ;; #(
22625 *)
22626
22627cat >>confdefs.h <<_ACEOF
22628#define int32_t $ac_cv_c_int32_t
22629_ACEOF
22630;;
22631esac
22632
22633ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22634case $ac_cv_c_int64_t in #(
22635 no|yes) ;; #(
22636 *)
22637
22638cat >>confdefs.h <<_ACEOF
22639#define int64_t $ac_cv_c_int64_t
22640_ACEOF
22641;;
22642esac
22643
22644
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22646$as_echo_n "checking for long long int... " >&6; }
22647if ${ac_cv_type_long_long_int+:} false; then :
22648 $as_echo_n "(cached) " >&6
22649else
22650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651/* end confdefs.h. */
22652
22653 /* For now, do not test the preprocessor; as of 2007 there are too many
22654 implementations with broken preprocessors. Perhaps this can
22655 be revisited in 2012. In the meantime, code should not expect
22656 #if to work with literals wider than 32 bits. */
22657 /* Test literals. */
22658 long long int ll = 9223372036854775807ll;
22659 long long int nll = -9223372036854775807LL;
22660 unsigned long long int ull = 18446744073709551615ULL;
22661 /* Test constant expressions. */
22662 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22663 ? 1 : -1)];
22664 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22665 ? 1 : -1)];
22666 int i = 63;
22667int
22668main ()
22669{
22670/* Test availability of runtime routines for shift and division. */
22671 long long int llmax = 9223372036854775807ll;
22672 unsigned long long int ullmax = 18446744073709551615ull;
22673 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22674 | (llmax / ll) | (llmax % ll)
22675 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22676 | (ullmax / ull) | (ullmax % ull));
22677 ;
22678 return 0;
22679}
22680
22681_ACEOF
22682if ac_fn_c_try_link "$LINENO"; then :
22683 if test "$cross_compiling" = yes; then :
22684 ac_cv_type_long_long_int=yes
22685else
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687/* end confdefs.h. */
22688#include <limits.h>
22689 #ifndef LLONG_MAX
22690 # define HALF \
22691 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22692 # define LLONG_MAX (HALF - 1 + HALF)
22693 #endif
22694int
22695main ()
22696{
22697long long int n = 1;
22698 int i;
22699 for (i = 0; ; i++)
22700 {
22701 long long int m = n << i;
22702 if (m >> i != n)
22703 return 1;
22704 if (LLONG_MAX / 2 < m)
22705 break;
22706 }
22707 return 0;
22708 ;
22709 return 0;
22710}
22711_ACEOF
22712if ac_fn_c_try_run "$LINENO"; then :
22713 ac_cv_type_long_long_int=yes
22714else
22715 ac_cv_type_long_long_int=no
22716fi
22717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22718 conftest.$ac_objext conftest.beam conftest.$ac_ext
22719fi
22720
22721else
22722 ac_cv_type_long_long_int=no
22723fi
22724rm -f core conftest.err conftest.$ac_objext \
22725 conftest$ac_exeext conftest.$ac_ext
22726fi
22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22728$as_echo "$ac_cv_type_long_long_int" >&6; }
22729 if test $ac_cv_type_long_long_int = yes; then
22730
22731$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22732
22733 fi
22734
22735
22736
22737 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22738if test "x$ac_cv_type_intmax_t" = xyes; then :
22739
22740$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22741
22742else
22743 test $ac_cv_type_long_long_int = yes \
22744 && ac_type='long long int' \
22745 || ac_type='long int'
22746
22747cat >>confdefs.h <<_ACEOF
22748#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022749_ACEOF
22750
22751fi
22752
22753
cristy501c8042011-05-26 17:46:28 +000022754
22755 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22756if test "x$ac_cv_type_intptr_t" = xyes; then :
22757
22758$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022759
cristy3ed852e2009-09-05 21:47:34 +000022760else
cristy501c8042011-05-26 17:46:28 +000022761 for ac_type in 'int' 'long int' 'long long int'; do
22762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22763/* end confdefs.h. */
22764$ac_includes_default
22765int
22766main ()
22767{
22768static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22769test_array [0] = 0
22770
22771 ;
22772 return 0;
22773}
22774_ACEOF
22775if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022776
22777cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022778#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022779_ACEOF
22780
cristy501c8042011-05-26 17:46:28 +000022781 ac_type=
22782fi
22783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784 test -z "$ac_type" && break
22785 done
cristy3ed852e2009-09-05 21:47:34 +000022786fi
22787
22788
cristy3ed852e2009-09-05 21:47:34 +000022789
cristy501c8042011-05-26 17:46:28 +000022790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22791$as_echo_n "checking for long double... " >&6; }
22792if ${ac_cv_type_long_double+:} false; then :
22793 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022794else
cristy501c8042011-05-26 17:46:28 +000022795 if test "$GCC" = yes; then
22796 ac_cv_type_long_double=yes
22797 else
22798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22799/* end confdefs.h. */
22800/* The Stardent Vistra knows sizeof (long double), but does
22801 not support it. */
22802 long double foo = 0.0L;
22803int
22804main ()
22805{
22806static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22807 sizeof (double) <= sizeof (long double))];
22808test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022809
cristy501c8042011-05-26 17:46:28 +000022810 ;
22811 return 0;
22812}
cristy3ed852e2009-09-05 21:47:34 +000022813_ACEOF
cristy501c8042011-05-26 17:46:28 +000022814if ac_fn_c_try_compile "$LINENO"; then :
22815 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022816else
cristy501c8042011-05-26 17:46:28 +000022817 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022818fi
cristy501c8042011-05-26 17:46:28 +000022819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820 fi
cristy3ed852e2009-09-05 21:47:34 +000022821fi
cristy501c8042011-05-26 17:46:28 +000022822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22823$as_echo "$ac_cv_type_long_double" >&6; }
22824 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022825
cristy501c8042011-05-26 17:46:28 +000022826$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022827
cristy501c8042011-05-26 17:46:28 +000022828 fi
22829
cristy3ed852e2009-09-05 21:47:34 +000022830
cristy8b350f62009-11-15 23:12:43 +000022831 { $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 +000022832$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022833if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022834 $as_echo_n "(cached) " >&6
22835else
cristy8b350f62009-11-15 23:12:43 +000022836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022837/* end confdefs.h. */
22838#include <float.h>
22839 long double const a[] =
22840 {
22841 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22842 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22843 };
22844 long double
22845 f (long double x)
22846 {
22847 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22848 + (x ? f (x) : 'c'));
22849 }
22850
22851int
22852main ()
22853{
22854static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22855 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22856 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22857 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22858 && (int) LDBL_EPSILON == 0
22859 )];
22860test_array [0] = 0
22861
22862 ;
22863 return 0;
22864}
22865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022866if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022867 ac_cv_type_long_double_wider=yes
22868else
cristy8b350f62009-11-15 23:12:43 +000022869 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022870fi
cristy3ed852e2009-09-05 21:47:34 +000022871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872fi
cristy8b350f62009-11-15 23:12:43 +000022873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022874$as_echo "$ac_cv_type_long_double_wider" >&6; }
22875 if test $ac_cv_type_long_double_wider = yes; then
22876
cristy8b350f62009-11-15 23:12:43 +000022877$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022878
22879 fi
22880
22881
cristy501c8042011-05-26 17:46:28 +000022882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22883$as_echo_n "checking for long long int... " >&6; }
22884if ${ac_cv_type_long_long_int+:} false; then :
22885 $as_echo_n "(cached) " >&6
22886else
22887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22888/* end confdefs.h. */
22889
22890 /* For now, do not test the preprocessor; as of 2007 there are too many
22891 implementations with broken preprocessors. Perhaps this can
22892 be revisited in 2012. In the meantime, code should not expect
22893 #if to work with literals wider than 32 bits. */
22894 /* Test literals. */
22895 long long int ll = 9223372036854775807ll;
22896 long long int nll = -9223372036854775807LL;
22897 unsigned long long int ull = 18446744073709551615ULL;
22898 /* Test constant expressions. */
22899 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22900 ? 1 : -1)];
22901 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22902 ? 1 : -1)];
22903 int i = 63;
22904int
22905main ()
22906{
22907/* Test availability of runtime routines for shift and division. */
22908 long long int llmax = 9223372036854775807ll;
22909 unsigned long long int ullmax = 18446744073709551615ull;
22910 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22911 | (llmax / ll) | (llmax % ll)
22912 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22913 | (ullmax / ull) | (ullmax % ull));
22914 ;
22915 return 0;
22916}
22917
22918_ACEOF
22919if ac_fn_c_try_link "$LINENO"; then :
22920 if test "$cross_compiling" = yes; then :
22921 ac_cv_type_long_long_int=yes
22922else
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924/* end confdefs.h. */
22925#include <limits.h>
22926 #ifndef LLONG_MAX
22927 # define HALF \
22928 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22929 # define LLONG_MAX (HALF - 1 + HALF)
22930 #endif
22931int
22932main ()
22933{
22934long long int n = 1;
22935 int i;
22936 for (i = 0; ; i++)
22937 {
22938 long long int m = n << i;
22939 if (m >> i != n)
22940 return 1;
22941 if (LLONG_MAX / 2 < m)
22942 break;
22943 }
22944 return 0;
22945 ;
22946 return 0;
22947}
22948_ACEOF
22949if ac_fn_c_try_run "$LINENO"; then :
22950 ac_cv_type_long_long_int=yes
22951else
22952 ac_cv_type_long_long_int=no
22953fi
22954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22955 conftest.$ac_objext conftest.beam conftest.$ac_ext
22956fi
22957
22958else
22959 ac_cv_type_long_long_int=no
22960fi
22961rm -f core conftest.err conftest.$ac_objext \
22962 conftest$ac_exeext conftest.$ac_ext
22963fi
22964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22965$as_echo "$ac_cv_type_long_long_int" >&6; }
22966 if test $ac_cv_type_long_long_int = yes; then
22967
22968$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22969
22970 fi
22971
22972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22973$as_echo_n "checking for mbstate_t... " >&6; }
22974if ${ac_cv_type_mbstate_t+:} false; then :
22975 $as_echo_n "(cached) " >&6
22976else
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978/* end confdefs.h. */
22979$ac_includes_default
22980# include <wchar.h>
22981int
22982main ()
22983{
22984mbstate_t x; return sizeof x;
22985 ;
22986 return 0;
22987}
22988_ACEOF
22989if ac_fn_c_try_compile "$LINENO"; then :
22990 ac_cv_type_mbstate_t=yes
22991else
22992 ac_cv_type_mbstate_t=no
22993fi
22994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995fi
22996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22997$as_echo "$ac_cv_type_mbstate_t" >&6; }
22998 if test $ac_cv_type_mbstate_t = yes; then
22999
23000$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23001
23002 else
23003
23004$as_echo "#define mbstate_t int" >>confdefs.h
23005
23006 fi
23007ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23008if test "x$ac_cv_type_mode_t" = xyes; then :
23009
23010else
23011
23012cat >>confdefs.h <<_ACEOF
23013#define mode_t int
23014_ACEOF
23015
23016fi
23017
23018ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23019if test "x$ac_cv_type_off_t" = xyes; then :
23020
23021else
23022
23023cat >>confdefs.h <<_ACEOF
23024#define off_t long int
23025_ACEOF
23026
23027fi
23028
23029ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23030if test "x$ac_cv_type_pid_t" = xyes; then :
23031
23032else
23033
23034cat >>confdefs.h <<_ACEOF
23035#define pid_t int
23036_ACEOF
23037
23038fi
23039
23040ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23041if test "x$ac_cv_type_size_t" = xyes; then :
23042
23043else
23044
23045cat >>confdefs.h <<_ACEOF
23046#define size_t unsigned int
23047_ACEOF
23048
23049fi
23050
23051ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23052if test "x$ac_cv_type_ssize_t" = xyes; then :
23053
23054else
23055
23056cat >>confdefs.h <<_ACEOF
23057#define ssize_t int
23058_ACEOF
23059
23060fi
23061
23062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23063$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23064if ${ac_cv_type_uid_t+:} false; then :
23065 $as_echo_n "(cached) " >&6
23066else
23067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23068/* end confdefs.h. */
23069#include <sys/types.h>
23070
23071_ACEOF
23072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23073 $EGREP "uid_t" >/dev/null 2>&1; then :
23074 ac_cv_type_uid_t=yes
23075else
23076 ac_cv_type_uid_t=no
23077fi
23078rm -f conftest*
23079
23080fi
23081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23082$as_echo "$ac_cv_type_uid_t" >&6; }
23083if test $ac_cv_type_uid_t = no; then
23084
23085$as_echo "#define uid_t int" >>confdefs.h
23086
23087
23088$as_echo "#define gid_t int" >>confdefs.h
23089
23090fi
23091
23092ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23093case $ac_cv_c_uint8_t in #(
23094 no|yes) ;; #(
23095 *)
23096
23097$as_echo "#define _UINT8_T 1" >>confdefs.h
23098
23099
23100cat >>confdefs.h <<_ACEOF
23101#define uint8_t $ac_cv_c_uint8_t
23102_ACEOF
23103;;
23104 esac
23105
23106ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23107case $ac_cv_c_uint16_t in #(
23108 no|yes) ;; #(
23109 *)
23110
23111
23112cat >>confdefs.h <<_ACEOF
23113#define uint16_t $ac_cv_c_uint16_t
23114_ACEOF
23115;;
23116 esac
23117
23118ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23119case $ac_cv_c_uint32_t in #(
23120 no|yes) ;; #(
23121 *)
23122
23123$as_echo "#define _UINT32_T 1" >>confdefs.h
23124
23125
23126cat >>confdefs.h <<_ACEOF
23127#define uint32_t $ac_cv_c_uint32_t
23128_ACEOF
23129;;
23130 esac
23131
23132ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23133case $ac_cv_c_uint64_t in #(
23134 no|yes) ;; #(
23135 *)
23136
23137$as_echo "#define _UINT64_T 1" >>confdefs.h
23138
23139
23140cat >>confdefs.h <<_ACEOF
23141#define uint64_t $ac_cv_c_uint64_t
23142_ACEOF
23143;;
23144 esac
23145
23146
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23148$as_echo_n "checking for unsigned long long int... " >&6; }
23149if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23150 $as_echo_n "(cached) " >&6
23151else
23152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153/* end confdefs.h. */
23154
23155 /* For now, do not test the preprocessor; as of 2007 there are too many
23156 implementations with broken preprocessors. Perhaps this can
23157 be revisited in 2012. In the meantime, code should not expect
23158 #if to work with literals wider than 32 bits. */
23159 /* Test literals. */
23160 long long int ll = 9223372036854775807ll;
23161 long long int nll = -9223372036854775807LL;
23162 unsigned long long int ull = 18446744073709551615ULL;
23163 /* Test constant expressions. */
23164 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23165 ? 1 : -1)];
23166 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23167 ? 1 : -1)];
23168 int i = 63;
23169int
23170main ()
23171{
23172/* Test availability of runtime routines for shift and division. */
23173 long long int llmax = 9223372036854775807ll;
23174 unsigned long long int ullmax = 18446744073709551615ull;
23175 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23176 | (llmax / ll) | (llmax % ll)
23177 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23178 | (ullmax / ull) | (ullmax % ull));
23179 ;
23180 return 0;
23181}
23182
23183_ACEOF
23184if ac_fn_c_try_link "$LINENO"; then :
23185 ac_cv_type_unsigned_long_long_int=yes
23186else
23187 ac_cv_type_unsigned_long_long_int=no
23188fi
23189rm -f core conftest.err conftest.$ac_objext \
23190 conftest$ac_exeext conftest.$ac_ext
23191fi
23192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23193$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23194 if test $ac_cv_type_unsigned_long_long_int = yes; then
23195
23196$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23197
23198 fi
23199
23200
23201
23202 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23203if test "x$ac_cv_type_uintmax_t" = xyes; then :
23204
23205$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23206
23207else
23208 test $ac_cv_type_unsigned_long_long_int = yes \
23209 && ac_type='unsigned long long int' \
23210 || ac_type='unsigned long int'
23211
23212cat >>confdefs.h <<_ACEOF
23213#define uintmax_t $ac_type
23214_ACEOF
23215
23216fi
23217
23218
23219
23220 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23221if test "x$ac_cv_type_uintptr_t" = xyes; then :
23222
23223$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23224
23225else
23226 for ac_type in 'unsigned int' 'unsigned long int' \
23227 'unsigned long long int'; do
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229/* end confdefs.h. */
23230$ac_includes_default
23231int
23232main ()
23233{
23234static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23235test_array [0] = 0
23236
23237 ;
23238 return 0;
23239}
23240_ACEOF
23241if ac_fn_c_try_compile "$LINENO"; then :
23242
23243cat >>confdefs.h <<_ACEOF
23244#define uintptr_t $ac_type
23245_ACEOF
23246
23247 ac_type=
23248fi
23249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 test -z "$ac_type" && break
23251 done
23252fi
23253
23254
23255
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23257$as_echo_n "checking for unsigned long long int... " >&6; }
23258if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23259 $as_echo_n "(cached) " >&6
23260else
23261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23262/* end confdefs.h. */
23263
23264 /* For now, do not test the preprocessor; as of 2007 there are too many
23265 implementations with broken preprocessors. Perhaps this can
23266 be revisited in 2012. In the meantime, code should not expect
23267 #if to work with literals wider than 32 bits. */
23268 /* Test literals. */
23269 long long int ll = 9223372036854775807ll;
23270 long long int nll = -9223372036854775807LL;
23271 unsigned long long int ull = 18446744073709551615ULL;
23272 /* Test constant expressions. */
23273 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23274 ? 1 : -1)];
23275 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23276 ? 1 : -1)];
23277 int i = 63;
23278int
23279main ()
23280{
23281/* Test availability of runtime routines for shift and division. */
23282 long long int llmax = 9223372036854775807ll;
23283 unsigned long long int ullmax = 18446744073709551615ull;
23284 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23285 | (llmax / ll) | (llmax % ll)
23286 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23287 | (ullmax / ull) | (ullmax % ull));
23288 ;
23289 return 0;
23290}
23291
23292_ACEOF
23293if ac_fn_c_try_link "$LINENO"; then :
23294 ac_cv_type_unsigned_long_long_int=yes
23295else
23296 ac_cv_type_unsigned_long_long_int=no
23297fi
23298rm -f core conftest.err conftest.$ac_objext \
23299 conftest$ac_exeext conftest.$ac_ext
23300fi
23301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23302$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23303 if test $ac_cv_type_unsigned_long_long_int = yes; then
23304
23305$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23306
23307 fi
23308
23309
cristy3ed852e2009-09-05 21:47:34 +000023310# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23311# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023313$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023314if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023315 $as_echo_n "(cached) " >&6
23316else
cristy8b350f62009-11-15 23:12:43 +000023317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023318/* end confdefs.h. */
23319$ac_includes_default
23320int
23321main ()
23322{
23323static int test_array [1 - 2 * !(((char) -1) < 0)];
23324test_array [0] = 0
23325
23326 ;
23327 return 0;
23328}
23329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023330if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023331 ac_cv_c_char_unsigned=no
23332else
cristy8b350f62009-11-15 23:12:43 +000023333 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023334fi
cristy3ed852e2009-09-05 21:47:34 +000023335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336fi
cristy8b350f62009-11-15 23:12:43 +000023337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023338$as_echo "$ac_cv_c_char_unsigned" >&6; }
23339if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023340 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023341
23342fi
23343
23344
23345# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23346# The cast to long int works around a bug in the HP C Compiler
23347# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23348# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23349# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023351$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023352if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023353 $as_echo_n "(cached) " >&6
23354else
cristy8b350f62009-11-15 23:12:43 +000023355 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023356
cristy3ed852e2009-09-05 21:47:34 +000023357else
cristy8b350f62009-11-15 23:12:43 +000023358 if test "$ac_cv_type_signed_short" = yes; then
23359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023361as_fn_error 77 "cannot compute sizeof (signed short)
23362See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023363 else
23364 ac_cv_sizeof_signed_short=0
23365 fi
23366fi
cristy8b350f62009-11-15 23:12:43 +000023367
cristy3ed852e2009-09-05 21:47:34 +000023368fi
cristy8b350f62009-11-15 23:12:43 +000023369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023370$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23371
23372
23373
23374cat >>confdefs.h <<_ACEOF
23375#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23376_ACEOF
23377
23378
23379
23380# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23381# The cast to long int works around a bug in the HP C Compiler
23382# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23383# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23384# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023386$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023387if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023388 $as_echo_n "(cached) " >&6
23389else
cristy8b350f62009-11-15 23:12:43 +000023390 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 +000023391
cristy3ed852e2009-09-05 21:47:34 +000023392else
cristy8b350f62009-11-15 23:12:43 +000023393 if test "$ac_cv_type_unsigned_short" = yes; then
23394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023396as_fn_error 77 "cannot compute sizeof (unsigned short)
23397See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023398 else
23399 ac_cv_sizeof_unsigned_short=0
23400 fi
23401fi
cristy8b350f62009-11-15 23:12:43 +000023402
cristy3ed852e2009-09-05 21:47:34 +000023403fi
cristy8b350f62009-11-15 23:12:43 +000023404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023405$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23406
23407
23408
23409cat >>confdefs.h <<_ACEOF
23410#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23411_ACEOF
23412
23413
23414
23415# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23416# The cast to long int works around a bug in the HP C Compiler
23417# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23418# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23419# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023421$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023422if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023423 $as_echo_n "(cached) " >&6
23424else
cristy8b350f62009-11-15 23:12:43 +000023425 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 +000023426
cristy3ed852e2009-09-05 21:47:34 +000023427else
cristy8b350f62009-11-15 23:12:43 +000023428 if test "$ac_cv_type_signed_int" = yes; then
23429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023431as_fn_error 77 "cannot compute sizeof (signed int)
23432See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023433 else
23434 ac_cv_sizeof_signed_int=0
23435 fi
23436fi
cristy8b350f62009-11-15 23:12:43 +000023437
cristy3ed852e2009-09-05 21:47:34 +000023438fi
cristy8b350f62009-11-15 23:12:43 +000023439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023440$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23441
23442
23443
23444cat >>confdefs.h <<_ACEOF
23445#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23446_ACEOF
23447
23448
23449
23450# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23451# The cast to long int works around a bug in the HP C Compiler
23452# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23453# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23454# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023456$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023457if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023458 $as_echo_n "(cached) " >&6
23459else
cristy8b350f62009-11-15 23:12:43 +000023460 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 +000023461
cristy3ed852e2009-09-05 21:47:34 +000023462else
cristy8b350f62009-11-15 23:12:43 +000023463 if test "$ac_cv_type_unsigned_int" = yes; then
23464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023466as_fn_error 77 "cannot compute sizeof (unsigned int)
23467See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023468 else
23469 ac_cv_sizeof_unsigned_int=0
23470 fi
23471fi
cristy8b350f62009-11-15 23:12:43 +000023472
cristy3ed852e2009-09-05 21:47:34 +000023473fi
cristy8b350f62009-11-15 23:12:43 +000023474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23476
23477
23478
23479cat >>confdefs.h <<_ACEOF
23480#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23481_ACEOF
23482
23483
23484
23485# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23486# The cast to long int works around a bug in the HP C Compiler
23487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23489# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023491$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023492if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023493 $as_echo_n "(cached) " >&6
23494else
cristy8b350f62009-11-15 23:12:43 +000023495 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 +000023496
cristy3ed852e2009-09-05 21:47:34 +000023497else
cristy8b350f62009-11-15 23:12:43 +000023498 if test "$ac_cv_type_signed_long" = yes; then
23499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023501as_fn_error 77 "cannot compute sizeof (signed long)
23502See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023503 else
23504 ac_cv_sizeof_signed_long=0
23505 fi
23506fi
cristy8b350f62009-11-15 23:12:43 +000023507
cristy3ed852e2009-09-05 21:47:34 +000023508fi
cristy8b350f62009-11-15 23:12:43 +000023509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023510$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23511
23512
23513
23514cat >>confdefs.h <<_ACEOF
23515#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23516_ACEOF
23517
23518
23519
23520# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23521# The cast to long int works around a bug in the HP C Compiler
23522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23524# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023526$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023527if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023528 $as_echo_n "(cached) " >&6
23529else
cristy8b350f62009-11-15 23:12:43 +000023530 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 +000023531
cristy3ed852e2009-09-05 21:47:34 +000023532else
cristy8b350f62009-11-15 23:12:43 +000023533 if test "$ac_cv_type_unsigned_long" = yes; then
23534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023536as_fn_error 77 "cannot compute sizeof (unsigned long)
23537See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023538 else
23539 ac_cv_sizeof_unsigned_long=0
23540 fi
23541fi
cristy8b350f62009-11-15 23:12:43 +000023542
cristy3ed852e2009-09-05 21:47:34 +000023543fi
cristy8b350f62009-11-15 23:12:43 +000023544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023545$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23546
23547
23548
23549cat >>confdefs.h <<_ACEOF
23550#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23551_ACEOF
23552
23553
23554
23555# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23556# 'signed long long' is not supported then the value defined is zero.
23557# The cast to long int works around a bug in the HP C Compiler
23558# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23559# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23560# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023562$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023563if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023564 $as_echo_n "(cached) " >&6
23565else
cristy8b350f62009-11-15 23:12:43 +000023566 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 +000023567
cristy3ed852e2009-09-05 21:47:34 +000023568else
cristy8b350f62009-11-15 23:12:43 +000023569 if test "$ac_cv_type_signed_long_long" = yes; then
23570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023572as_fn_error 77 "cannot compute sizeof (signed long long)
23573See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023574 else
23575 ac_cv_sizeof_signed_long_long=0
23576 fi
23577fi
cristy8b350f62009-11-15 23:12:43 +000023578
cristy3ed852e2009-09-05 21:47:34 +000023579fi
cristy8b350f62009-11-15 23:12:43 +000023580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23582
23583
23584
23585cat >>confdefs.h <<_ACEOF
23586#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23587_ACEOF
23588
23589
23590
23591# Obtain size of a 'unsigned long long' and define as
23592# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23593# supported then the value defined is zero.
23594# The cast to long int works around a bug in the HP C Compiler
23595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23597# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023599$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023600if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023601 $as_echo_n "(cached) " >&6
23602else
cristy8b350f62009-11-15 23:12:43 +000023603 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 +000023604
cristy3ed852e2009-09-05 21:47:34 +000023605else
cristy8b350f62009-11-15 23:12:43 +000023606 if test "$ac_cv_type_unsigned_long_long" = yes; then
23607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023609as_fn_error 77 "cannot compute sizeof (unsigned long long)
23610See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023611 else
23612 ac_cv_sizeof_unsigned_long_long=0
23613 fi
23614fi
cristy8b350f62009-11-15 23:12:43 +000023615
cristy3ed852e2009-09-05 21:47:34 +000023616fi
cristy8b350f62009-11-15 23:12:43 +000023617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023618$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23619
23620
23621
23622cat >>confdefs.h <<_ACEOF
23623#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23624_ACEOF
23625
23626
23627
23628# Obtain size of off_t and define as SIZEOF_OFF_T
23629# The cast to long int works around a bug in the HP C Compiler
23630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23632# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023634$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023635if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023636 $as_echo_n "(cached) " >&6
23637else
cristy8b350f62009-11-15 23:12:43 +000023638 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 +000023639
cristy3ed852e2009-09-05 21:47:34 +000023640else
cristy8b350f62009-11-15 23:12:43 +000023641 if test "$ac_cv_type_off_t" = yes; then
23642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023644as_fn_error 77 "cannot compute sizeof (off_t)
23645See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023646 else
23647 ac_cv_sizeof_off_t=0
23648 fi
23649fi
cristy8b350f62009-11-15 23:12:43 +000023650
cristy3ed852e2009-09-05 21:47:34 +000023651fi
cristy8b350f62009-11-15 23:12:43 +000023652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023653$as_echo "$ac_cv_sizeof_off_t" >&6; }
23654
23655
23656
23657cat >>confdefs.h <<_ACEOF
23658#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23659_ACEOF
23660
23661
23662
23663# Obtain size of size_t and define as SIZEOF_SIZE_T
23664# The cast to long int works around a bug in the HP C Compiler
23665# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23666# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23667# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023670if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023671 $as_echo_n "(cached) " >&6
23672else
cristy8b350f62009-11-15 23:12:43 +000023673 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 +000023674
cristy3ed852e2009-09-05 21:47:34 +000023675else
cristy8b350f62009-11-15 23:12:43 +000023676 if test "$ac_cv_type_size_t" = yes; then
23677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023679as_fn_error 77 "cannot compute sizeof (size_t)
23680See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023681 else
23682 ac_cv_sizeof_size_t=0
23683 fi
23684fi
cristy8b350f62009-11-15 23:12:43 +000023685
cristy3ed852e2009-09-05 21:47:34 +000023686fi
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo "$ac_cv_sizeof_size_t" >&6; }
23689
23690
23691
23692cat >>confdefs.h <<_ACEOF
23693#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23694_ACEOF
23695
23696
23697
cristy330e9352010-06-01 18:42:49 +000023698# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23699# The cast to long int works around a bug in the HP C Compiler
23700# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23701# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23702# This bug is HP SR number 8606223364.
23703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23704$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023705if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023706 $as_echo_n "(cached) " >&6
23707else
23708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23709
23710else
23711 if test "$ac_cv_type_ssize_t" = yes; then
23712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023714as_fn_error 77 "cannot compute sizeof (ssize_t)
23715See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023716 else
23717 ac_cv_sizeof_ssize_t=0
23718 fi
23719fi
23720
23721fi
23722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23723$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23724
23725
23726
23727cat >>confdefs.h <<_ACEOF
23728#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23729_ACEOF
23730
23731
23732
cristy3ed852e2009-09-05 21:47:34 +000023733# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23734# The cast to long int works around a bug in the HP C Compiler
23735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23737# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023739$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023740if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023741 $as_echo_n "(cached) " >&6
23742else
cristy8b350f62009-11-15 23:12:43 +000023743 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 +000023744
cristy3ed852e2009-09-05 21:47:34 +000023745else
cristy8b350f62009-11-15 23:12:43 +000023746 if test "$ac_cv_type_unsigned_intp" = yes; then
23747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023749as_fn_error 77 "cannot compute sizeof (unsigned int*)
23750See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023751 else
23752 ac_cv_sizeof_unsigned_intp=0
23753 fi
23754fi
cristy8b350f62009-11-15 23:12:43 +000023755
cristy3ed852e2009-09-05 21:47:34 +000023756fi
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23759
23760
23761
23762cat >>confdefs.h <<_ACEOF
23763#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23764_ACEOF
23765
23766
23767
23768#
23769# Compute sized types for current CPU and compiler options.
23770#
23771
cristy8b350f62009-11-15 23:12:43 +000023772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023773$as_echo_n "checking for signed 8-bit type... " >&6; }
23774INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023775{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23776$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023777
23778
cristy8b350f62009-11-15 23:12:43 +000023779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023780$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23781UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023782{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23783$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023784
23785
cristy8b350f62009-11-15 23:12:43 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo_n "checking for signed 16-bit type... " >&6; }
23788INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23790$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023791
23792
cristy8b350f62009-11-15 23:12:43 +000023793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023794$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23795UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023796{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23797$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023798
23799
cristy8b350f62009-11-15 23:12:43 +000023800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023801$as_echo_n "checking for signed 32-bit type... " >&6; }
23802INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023803INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023804if test $ac_cv_sizeof_signed_int -eq 4; then
23805 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023806 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023807elif test $ac_cv_sizeof_signed_long -eq 4; then
23808 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023809 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023810fi
cristy09b53e12011-10-14 12:47:22 +000023811{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23812$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023813
23814
cristy6d5e20f2011-04-25 13:48:54 +000023815
cristy8b350f62009-11-15 23:12:43 +000023816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023817$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23818UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023819UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023820if test $ac_cv_sizeof_unsigned_int -eq 4; then
23821 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023822 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023823elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23824 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023825 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023826fi
cristy09b53e12011-10-14 12:47:22 +000023827{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23828$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023829
23830
cristy6d5e20f2011-04-25 13:48:54 +000023831
cristy8b350f62009-11-15 23:12:43 +000023832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023833$as_echo_n "checking for signed 64-bit type... " >&6; }
23834INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023835INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023836if test $ac_cv_sizeof_signed_long -eq 8; then
23837 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023838 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023839elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23840 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023841 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023842fi
cristy3a99dcf2011-12-17 01:29:40 +000023843case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023844 mingw* )
23845 INT64_F='"I64"'
23846 ;;
23847esac
cristy09b53e12011-10-14 12:47:22 +000023848{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23849$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023850
23851
cristy6d5e20f2011-04-25 13:48:54 +000023852
cristy8b350f62009-11-15 23:12:43 +000023853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023854$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23855UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023856UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023857if test $ac_cv_sizeof_unsigned_long -eq 8; then
23858 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023859 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023860elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23861 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023862 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023863fi
cristy3a99dcf2011-12-17 01:29:40 +000023864case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023865 mingw* )
23866 UINT64_F='"I64"'
23867 ;;
23868esac
cristy09b53e12011-10-14 12:47:22 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23870$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023871
23872
cristy6d5e20f2011-04-25 13:48:54 +000023873
cristy8b350f62009-11-15 23:12:43 +000023874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023875$as_echo_n "checking for unsigned maximum type... " >&6; }
23876UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023877UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023878if test "$UINT64_T" != 'none'; then
23879 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023880 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023881elif test "$UINT32_T" != 'none'; then
23882 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023883 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023884fi
cristy09b53e12011-10-14 12:47:22 +000023885{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23886$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023887
23888
cristy6d5e20f2011-04-25 13:48:54 +000023889
cristy8b350f62009-11-15 23:12:43 +000023890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023891$as_echo_n "checking for pointer difference type... " >&6; }
23892UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023893UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023894if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23895 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023896 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023897elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23898 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023899 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023900fi
cristy09b53e12011-10-14 12:47:22 +000023901{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23902$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023903
23904
cristy6d5e20f2011-04-25 13:48:54 +000023905
cristy8b350f62009-11-15 23:12:43 +000023906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023907$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023909/* end confdefs.h. */
23910
23911int
23912main ()
23913{
23914{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23915 ;
23916 return 0;
23917}
23918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023919if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023920 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23921$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023922else
cristy09b53e12011-10-14 12:47:22 +000023923 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23924$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023926$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023928/* end confdefs.h. */
23929
23930int
23931main ()
23932{
23933{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23934 ;
23935 return 0;
23936}
23937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023938if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023939 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23940$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023941
cristy8b350f62009-11-15 23:12:43 +000023942$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023943
23944else
cristy09b53e12011-10-14 12:47:22 +000023945 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23946$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023947
cristy8b350f62009-11-15 23:12:43 +000023948$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023949
23950fi
cristy3ed852e2009-09-05 21:47:34 +000023951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23952fi
cristy3ed852e2009-09-05 21:47:34 +000023953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954
23955########
23956#
23957# Check for functions
23958#
23959########
cristy73bd4a52010-10-05 11:24:23 +000023960for ac_header in stdlib.h unistd.h
23961do :
23962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23963ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023965 cat >>confdefs.h <<_ACEOF
23966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23967_ACEOF
23968
23969fi
23970
23971done
23972
23973for ac_func in getpagesize
23974do :
23975 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023976if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023977 cat >>confdefs.h <<_ACEOF
23978#define HAVE_GETPAGESIZE 1
23979_ACEOF
23980
23981fi
23982done
23983
23984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23985$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023986if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023987 $as_echo_n "(cached) " >&6
23988else
23989 if test "$cross_compiling" = yes; then :
23990 magick_cv_func_mmap_fileio=no
23991else
23992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993/* end confdefs.h. */
23994$ac_includes_default
23995/* malloc might have been renamed as rpl_malloc. */
23996#undef malloc
23997
23998/*
23999 This test is derived from GNU Autoconf's similar macro.
24000 The purpose of this test is to verify that files may be memory
24001 mapped, and that memory mapping and file I/O are coherent.
24002
24003 The test creates a test file, memory maps the file, updates
24004 the file using the memory map, and then reads the file using
24005 file I/O to verify that the file contains the updates.
24006*/
24007
24008#include <fcntl.h>
24009#include <sys/mman.h>
24010
24011#if !STDC_HEADERS && !HAVE_STDLIB_H
24012char *malloc ();
24013#endif
24014
24015/* This mess was copied from the GNU getpagesize.h. */
24016#if !HAVE_GETPAGESIZE
24017/* Assume that all systems that can run configure have sys/param.h. */
24018# if !HAVE_SYS_PARAM_H
24019# define HAVE_SYS_PARAM_H 1
24020# endif
24021
24022# ifdef _SC_PAGESIZE
24023# define getpagesize() sysconf(_SC_PAGESIZE)
24024# else /* no _SC_PAGESIZE */
24025# if HAVE_SYS_PARAM_H
24026# include <sys/param.h>
24027# ifdef EXEC_PAGESIZE
24028# define getpagesize() EXEC_PAGESIZE
24029# else /* no EXEC_PAGESIZE */
24030# ifdef NBPG
24031# define getpagesize() NBPG * CLSIZE
24032# ifndef CLSIZE
24033# define CLSIZE 1
24034# endif /* no CLSIZE */
24035# else /* no NBPG */
24036# ifdef NBPC
24037# define getpagesize() NBPC
24038# else /* no NBPC */
24039# ifdef PAGESIZE
24040# define getpagesize() PAGESIZE
24041# endif /* PAGESIZE */
24042# endif /* no NBPC */
24043# endif /* no NBPG */
24044# endif /* no EXEC_PAGESIZE */
24045# else /* no HAVE_SYS_PARAM_H */
24046# define getpagesize() 8192 /* punt totally */
24047# endif /* no HAVE_SYS_PARAM_H */
24048# endif /* no _SC_PAGESIZE */
24049
24050#endif /* no HAVE_GETPAGESIZE */
24051
24052int
24053main ()
24054{
24055 char *data, *data2, *data3;
24056 int i, pagesize;
24057 int fd;
24058
24059 pagesize = getpagesize ();
24060
24061 /* First, make a file with some known garbage in it. */
24062 data = (char *) malloc (pagesize);
24063 if (!data)
24064 exit (1);
24065 for (i = 0; i < pagesize; ++i)
24066 *(data + i) = rand ();
24067 umask (0);
24068 fd = creat ("conftest.mmap", 0600);
24069 if (fd < 0)
24070 exit (1);
24071 if (write (fd, data, pagesize) != pagesize)
24072 exit (1);
24073 close (fd);
24074
24075 /* Mmap the file as read/write/shared and verify that we see the
24076 same garbage. */
24077 fd = open ("conftest.mmap", O_RDWR);
24078 if (fd < 0)
24079 exit (1);
24080 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24081 if (data2 == 0)
24082 exit (1);
24083 for (i = 0; i < pagesize; ++i)
24084 if (*(data + i) != *(data2 + i))
24085 exit (1);
24086
24087 /* Finally, make sure that changes to the mapped area
24088 percolate back to the file as seen by read(). */
24089 for (i = 0; i < pagesize; ++i)
24090 *(data2 + i) = *(data2 + i) + 1;
24091 data3 = (char *) malloc (pagesize);
24092 if (!data3)
24093 exit (1);
24094 if (read (fd, data3, pagesize) != pagesize)
24095 exit (1);
24096 for (i = 0; i < pagesize; ++i)
24097 if (*(data2 + i) != *(data3 + i))
24098 exit (1);
24099 close (fd);
24100 exit (0);
24101}
24102_ACEOF
24103if ac_fn_c_try_run "$LINENO"; then :
24104 magick_cv_func_mmap_fileio=yes
24105else
24106 magick_cv_func_mmap_fileio=no
24107fi
24108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24109 conftest.$ac_objext conftest.beam conftest.$ac_ext
24110fi
24111
24112fi
24113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24114$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24115if test $magick_cv_func_mmap_fileio = yes; then
24116
24117$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24118
24119fi
24120rm -f conftest.mmap
24121
cristy8b350f62009-11-15 23:12:43 +000024122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024123$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024124if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 $as_echo_n "(cached) " >&6
24126else
cristy8b350f62009-11-15 23:12:43 +000024127 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024128 ac_cv_func_closedir_void=yes
24129else
cristy8b350f62009-11-15 23:12:43 +000024130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024131/* end confdefs.h. */
24132$ac_includes_default
24133#include <$ac_header_dirent>
24134#ifndef __cplusplus
24135int closedir ();
24136#endif
24137
24138int
24139main ()
24140{
24141return closedir (opendir (".")) != 0;
24142 ;
24143 return 0;
24144}
24145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024146if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024147 ac_cv_func_closedir_void=no
24148else
cristy8b350f62009-11-15 23:12:43 +000024149 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024150fi
cristy8b350f62009-11-15 23:12:43 +000024151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24152 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024153fi
24154
cristy3ed852e2009-09-05 21:47:34 +000024155fi
cristy8b350f62009-11-15 23:12:43 +000024156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024157$as_echo "$ac_cv_func_closedir_void" >&6; }
24158if test $ac_cv_func_closedir_void = yes; then
24159
cristy8b350f62009-11-15 23:12:43 +000024160$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024161
24162fi
24163
cristycd4c5312009-11-22 01:19:08 +000024164
24165
24166
24167 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024168do :
24169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024170ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24171"
cristy98dddb52010-11-04 00:30:15 +000024172if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024173 cat >>confdefs.h <<_ACEOF
24174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24175_ACEOF
24176
24177fi
24178
24179done
24180
cristycd4c5312009-11-22 01:19:08 +000024181
24182
24183
24184
24185
24186
24187
cristy3ed852e2009-09-05 21:47:34 +000024188for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024189do :
24190 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024191if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024192 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024193#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024194_ACEOF
24195
24196fi
24197done
24198
cristy8b350f62009-11-15 23:12:43 +000024199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024201if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024202 $as_echo_n "(cached) " >&6
24203else
cristy8b350f62009-11-15 23:12:43 +000024204 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 ac_cv_func_mmap_fixed_mapped=no
24206else
cristy8b350f62009-11-15 23:12:43 +000024207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024208/* end confdefs.h. */
24209$ac_includes_default
24210/* malloc might have been renamed as rpl_malloc. */
24211#undef malloc
24212
24213/* Thanks to Mike Haertel and Jim Avera for this test.
24214 Here is a matrix of mmap possibilities:
24215 mmap private not fixed
24216 mmap private fixed at somewhere currently unmapped
24217 mmap private fixed at somewhere already mapped
24218 mmap shared not fixed
24219 mmap shared fixed at somewhere currently unmapped
24220 mmap shared fixed at somewhere already mapped
24221 For private mappings, we should verify that changes cannot be read()
24222 back from the file, nor mmap's back from the file at a different
24223 address. (There have been systems where private was not correctly
24224 implemented like the infamous i386 svr4.0, and systems where the
24225 VM page cache was not coherent with the file system buffer cache
24226 like early versions of FreeBSD and possibly contemporary NetBSD.)
24227 For shared mappings, we should conversely verify that changes get
24228 propagated back to all the places they're supposed to be.
24229
24230 Grep wants private fixed already mapped.
24231 The main things grep needs to know about mmap are:
24232 * does it exist and is it safe to write into the mmap'd area
24233 * how to use it (BSD variants) */
24234
24235#include <fcntl.h>
24236#include <sys/mman.h>
24237
24238#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24239char *malloc ();
24240#endif
24241
24242/* This mess was copied from the GNU getpagesize.h. */
24243#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024244# ifdef _SC_PAGESIZE
24245# define getpagesize() sysconf(_SC_PAGESIZE)
24246# else /* no _SC_PAGESIZE */
24247# ifdef HAVE_SYS_PARAM_H
24248# include <sys/param.h>
24249# ifdef EXEC_PAGESIZE
24250# define getpagesize() EXEC_PAGESIZE
24251# else /* no EXEC_PAGESIZE */
24252# ifdef NBPG
24253# define getpagesize() NBPG * CLSIZE
24254# ifndef CLSIZE
24255# define CLSIZE 1
24256# endif /* no CLSIZE */
24257# else /* no NBPG */
24258# ifdef NBPC
24259# define getpagesize() NBPC
24260# else /* no NBPC */
24261# ifdef PAGESIZE
24262# define getpagesize() PAGESIZE
24263# endif /* PAGESIZE */
24264# endif /* no NBPC */
24265# endif /* no NBPG */
24266# endif /* no EXEC_PAGESIZE */
24267# else /* no HAVE_SYS_PARAM_H */
24268# define getpagesize() 8192 /* punt totally */
24269# endif /* no HAVE_SYS_PARAM_H */
24270# endif /* no _SC_PAGESIZE */
24271
24272#endif /* no HAVE_GETPAGESIZE */
24273
24274int
24275main ()
24276{
24277 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024278 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024279 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024280 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024281
24282 pagesize = getpagesize ();
24283
24284 /* First, make a file with some known garbage in it. */
24285 data = (char *) malloc (pagesize);
24286 if (!data)
24287 return 1;
24288 for (i = 0; i < pagesize; ++i)
24289 *(data + i) = rand ();
24290 umask (0);
24291 fd = creat ("conftest.mmap", 0600);
24292 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024293 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024294 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024295 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024296 close (fd);
24297
cristycd4c5312009-11-22 01:19:08 +000024298 /* Next, check that the tail of a page is zero-filled. File must have
24299 non-zero length, otherwise we risk SIGBUS for entire page. */
24300 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24301 if (fd2 < 0)
24302 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024303 cdata2 = "";
24304 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024305 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024306 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024307 if (data2 == MAP_FAILED)
24308 return 6;
24309 for (i = 0; i < pagesize; ++i)
24310 if (*(data2 + i))
24311 return 7;
24312 close (fd2);
24313 if (munmap (data2, pagesize))
24314 return 8;
24315
cristy3ed852e2009-09-05 21:47:34 +000024316 /* Next, try to mmap the file at a fixed address which already has
24317 something else allocated at it. If we can, also make sure that
24318 we see the same garbage. */
24319 fd = open ("conftest.mmap", O_RDWR);
24320 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024321 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024322 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24323 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024324 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024325 for (i = 0; i < pagesize; ++i)
24326 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024327 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024328
24329 /* Finally, make sure that changes to the mapped area do not
24330 percolate back to the file as seen by read(). (This is a bug on
24331 some variants of i386 svr4.0.) */
24332 for (i = 0; i < pagesize; ++i)
24333 *(data2 + i) = *(data2 + i) + 1;
24334 data3 = (char *) malloc (pagesize);
24335 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024336 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024337 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024338 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024339 for (i = 0; i < pagesize; ++i)
24340 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024341 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024342 close (fd);
24343 return 0;
24344}
24345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024346if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024347 ac_cv_func_mmap_fixed_mapped=yes
24348else
cristy8b350f62009-11-15 23:12:43 +000024349 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024350fi
cristy8b350f62009-11-15 23:12:43 +000024351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24352 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024353fi
24354
cristy3ed852e2009-09-05 21:47:34 +000024355fi
cristy8b350f62009-11-15 23:12:43 +000024356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024357$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24358if test $ac_cv_func_mmap_fixed_mapped = yes; then
24359
cristy8b350f62009-11-15 23:12:43 +000024360$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024361
24362fi
cristycd4c5312009-11-22 01:19:08 +000024363rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024364
cristy3ed852e2009-09-05 21:47:34 +000024365for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024366do :
24367 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024368if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024369 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024370#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024371_ACEOF
24372
24373fi
24374
24375done
24376
cristy3ed852e2009-09-05 21:47:34 +000024377for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024378do :
24379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24380ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024381if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024382 cat >>confdefs.h <<_ACEOF
24383#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24384_ACEOF
24385
24386fi
24387done
24388
24389if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024391$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024392if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024393 $as_echo_n "(cached) " >&6
24394else
cristy8b350f62009-11-15 23:12:43 +000024395 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024396 ac_cv_func_fork_works=cross
24397else
cristy8b350f62009-11-15 23:12:43 +000024398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024399/* end confdefs.h. */
24400$ac_includes_default
24401int
24402main ()
24403{
24404
24405 /* By Ruediger Kuhlmann. */
24406 return fork () < 0;
24407
24408 ;
24409 return 0;
24410}
24411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024412if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024413 ac_cv_func_fork_works=yes
24414else
cristy8b350f62009-11-15 23:12:43 +000024415 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024416fi
cristy8b350f62009-11-15 23:12:43 +000024417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24418 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024419fi
24420
cristy3ed852e2009-09-05 21:47:34 +000024421fi
cristy8b350f62009-11-15 23:12:43 +000024422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024423$as_echo "$ac_cv_func_fork_works" >&6; }
24424
24425else
24426 ac_cv_func_fork_works=$ac_cv_func_fork
24427fi
24428if test "x$ac_cv_func_fork_works" = xcross; then
24429 case $host in
24430 *-*-amigaos* | *-*-msdosdjgpp*)
24431 # Override, as these systems have only a dummy fork() stub
24432 ac_cv_func_fork_works=no
24433 ;;
24434 *)
24435 ac_cv_func_fork_works=yes
24436 ;;
24437 esac
cristy8b350f62009-11-15 23:12:43 +000024438 { $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 +000024439$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24440fi
24441ac_cv_func_vfork_works=$ac_cv_func_vfork
24442if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024444$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024445if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024446 $as_echo_n "(cached) " >&6
24447else
cristy8b350f62009-11-15 23:12:43 +000024448 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024449 ac_cv_func_vfork_works=cross
24450else
cristy8b350f62009-11-15 23:12:43 +000024451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024452/* end confdefs.h. */
24453/* Thanks to Paul Eggert for this test. */
24454$ac_includes_default
24455#include <sys/wait.h>
24456#ifdef HAVE_VFORK_H
24457# include <vfork.h>
24458#endif
24459/* On some sparc systems, changes by the child to local and incoming
24460 argument registers are propagated back to the parent. The compiler
24461 is told about this with #include <vfork.h>, but some compilers
24462 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24463 static variable whose address is put into a register that is
24464 clobbered by the vfork. */
24465static void
24466#ifdef __cplusplus
24467sparc_address_test (int arg)
24468# else
24469sparc_address_test (arg) int arg;
24470#endif
24471{
24472 static pid_t child;
24473 if (!child) {
24474 child = vfork ();
24475 if (child < 0) {
24476 perror ("vfork");
24477 _exit(2);
24478 }
24479 if (!child) {
24480 arg = getpid();
24481 write(-1, "", 0);
24482 _exit (arg);
24483 }
24484 }
24485}
24486
24487int
24488main ()
24489{
24490 pid_t parent = getpid ();
24491 pid_t child;
24492
24493 sparc_address_test (0);
24494
24495 child = vfork ();
24496
24497 if (child == 0) {
24498 /* Here is another test for sparc vfork register problems. This
24499 test uses lots of local variables, at least as many local
24500 variables as main has allocated so far including compiler
24501 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24502 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24503 reuse the register of parent for one of the local variables,
24504 since it will think that parent can't possibly be used any more
24505 in this routine. Assigning to the local variable will thus
24506 munge parent in the parent process. */
24507 pid_t
24508 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24509 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24510 /* Convince the compiler that p..p7 are live; otherwise, it might
24511 use the same hardware register for all 8 local variables. */
24512 if (p != p1 || p != p2 || p != p3 || p != p4
24513 || p != p5 || p != p6 || p != p7)
24514 _exit(1);
24515
24516 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24517 from child file descriptors. If the child closes a descriptor
24518 before it execs or exits, this munges the parent's descriptor
24519 as well. Test for this by closing stdout in the child. */
24520 _exit(close(fileno(stdout)) != 0);
24521 } else {
24522 int status;
24523 struct stat st;
24524
24525 while (wait(&status) != child)
24526 ;
24527 return (
24528 /* Was there some problem with vforking? */
24529 child < 0
24530
24531 /* Did the child fail? (This shouldn't happen.) */
24532 || status
24533
24534 /* Did the vfork/compiler bug occur? */
24535 || parent != getpid()
24536
24537 /* Did the file descriptor bug occur? */
24538 || fstat(fileno(stdout), &st) != 0
24539 );
24540 }
24541}
24542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024543if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024544 ac_cv_func_vfork_works=yes
24545else
cristy8b350f62009-11-15 23:12:43 +000024546 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024547fi
cristy8b350f62009-11-15 23:12:43 +000024548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24549 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024550fi
24551
cristy3ed852e2009-09-05 21:47:34 +000024552fi
cristy8b350f62009-11-15 23:12:43 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024554$as_echo "$ac_cv_func_vfork_works" >&6; }
24555
24556fi;
24557if test "x$ac_cv_func_fork_works" = xcross; then
24558 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024559 { $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 +000024560$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24561fi
24562
24563if test "x$ac_cv_func_vfork_works" = xyes; then
24564
cristy8b350f62009-11-15 23:12:43 +000024565$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024566
24567else
24568
cristy8b350f62009-11-15 23:12:43 +000024569$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024570
24571fi
24572if test "x$ac_cv_func_fork_works" = xyes; then
24573
cristy8b350f62009-11-15 23:12:43 +000024574$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024575
24576fi
24577
cristy8b350f62009-11-15 23:12:43 +000024578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024580if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024581 $as_echo_n "(cached) " >&6
24582else
cristy8b350f62009-11-15 23:12:43 +000024583 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024584 ac_cv_func_memcmp_working=no
24585else
cristy8b350f62009-11-15 23:12:43 +000024586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024587/* end confdefs.h. */
24588$ac_includes_default
24589int
24590main ()
24591{
24592
24593 /* Some versions of memcmp are not 8-bit clean. */
24594 char c0 = '\100', c1 = '\200', c2 = '\201';
24595 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24596 return 1;
24597
24598 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24599 or more and with at least one buffer not starting on a 4-byte boundary.
24600 William Lewis provided this test program. */
24601 {
24602 char foo[21];
24603 char bar[21];
24604 int i;
24605 for (i = 0; i < 4; i++)
24606 {
24607 char *a = foo + i;
24608 char *b = bar + i;
24609 strcpy (a, "--------01111111");
24610 strcpy (b, "--------10000000");
24611 if (memcmp (a, b, 16) >= 0)
24612 return 1;
24613 }
24614 return 0;
24615 }
24616
24617 ;
24618 return 0;
24619}
24620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024621if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024622 ac_cv_func_memcmp_working=yes
24623else
cristy8b350f62009-11-15 23:12:43 +000024624 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024625fi
cristy8b350f62009-11-15 23:12:43 +000024626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24627 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024628fi
24629
cristy3ed852e2009-09-05 21:47:34 +000024630fi
cristy8b350f62009-11-15 23:12:43 +000024631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo "$ac_cv_func_memcmp_working" >&6; }
24633test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24634 *" memcmp.$ac_objext "* ) ;;
24635 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24636 ;;
24637esac
24638
24639
cristy3ed852e2009-09-05 21:47:34 +000024640for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024641do :
24642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24643ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024644if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024645 cat >>confdefs.h <<_ACEOF
24646#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24647_ACEOF
24648
24649fi
24650
24651done
24652
cristy8b350f62009-11-15 23:12:43 +000024653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024654$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024655if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024656 $as_echo_n "(cached) " >&6
24657else
24658 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24659 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24660 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024662/* end confdefs.h. */
24663$ac_includes_default
24664#ifdef HAVE_SYS_SELECT_H
24665# include <sys/select.h>
24666#endif
24667#ifdef HAVE_SYS_SOCKET_H
24668# include <sys/socket.h>
24669#endif
24670
24671int
24672main ()
24673{
24674extern int select ($ac_arg1,
24675 $ac_arg234, $ac_arg234, $ac_arg234,
24676 $ac_arg5);
24677 ;
24678 return 0;
24679}
24680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024681if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024682 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024683fi
cristy3ed852e2009-09-05 21:47:34 +000024684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24685 done
24686 done
24687done
24688# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024689: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024690
24691fi
cristy8b350f62009-11-15 23:12:43 +000024692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024693$as_echo "$ac_cv_func_select_args" >&6; }
24694ac_save_IFS=$IFS; IFS=','
24695set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24696IFS=$ac_save_IFS
24697shift
24698
24699cat >>confdefs.h <<_ACEOF
24700#define SELECT_TYPE_ARG1 $1
24701_ACEOF
24702
24703
24704cat >>confdefs.h <<_ACEOF
24705#define SELECT_TYPE_ARG234 ($2)
24706_ACEOF
24707
24708
24709cat >>confdefs.h <<_ACEOF
24710#define SELECT_TYPE_ARG5 ($3)
24711_ACEOF
24712
24713rm -f conftest*
24714
cristyda16f162011-02-19 23:52:17 +000024715if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024716 $as_echo_n "(cached) " >&6
24717else
24718 ac_cv_func_setvbuf_reversed=no
24719fi
24720
24721
cristy8b350f62009-11-15 23:12:43 +000024722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024723$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024724if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024725 $as_echo_n "(cached) " >&6
24726else
cristy8b350f62009-11-15 23:12:43 +000024727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024728/* end confdefs.h. */
24729#include <sys/types.h>
24730#include <signal.h>
24731
24732int
24733main ()
24734{
24735return *(signal (0, 0)) (0) == 1;
24736 ;
24737 return 0;
24738}
24739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024740if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 ac_cv_type_signal=int
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024744fi
cristy3ed852e2009-09-05 21:47:34 +000024745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746fi
cristy8b350f62009-11-15 23:12:43 +000024747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024748$as_echo "$ac_cv_type_signal" >&6; }
24749
24750cat >>confdefs.h <<_ACEOF
24751#define RETSIGTYPE $ac_cv_type_signal
24752_ACEOF
24753
24754
cristy8b350f62009-11-15 23:12:43 +000024755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024756$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024757if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024758 $as_echo_n "(cached) " >&6
24759else
cristy8b350f62009-11-15 23:12:43 +000024760 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024761 ac_cv_func_strtod=no
24762else
cristy8b350f62009-11-15 23:12:43 +000024763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024764/* end confdefs.h. */
24765
24766$ac_includes_default
24767#ifndef strtod
24768double strtod ();
24769#endif
24770int
24771main()
24772{
24773 {
24774 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24775 char *string = " +69";
24776 char *term;
24777 double value;
24778 value = strtod (string, &term);
24779 if (value != 69 || term != (string + 4))
24780 return 1;
24781 }
24782
24783 {
24784 /* Under Solaris 2.4, strtod returns the wrong value for the
24785 terminating character under some conditions. */
24786 char *string = "NaN";
24787 char *term;
24788 strtod (string, &term);
24789 if (term != string && *(term - 1) == 0)
24790 return 1;
24791 }
24792 return 0;
24793}
24794
24795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024796if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024797 ac_cv_func_strtod=yes
24798else
cristy8b350f62009-11-15 23:12:43 +000024799 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024800fi
cristy8b350f62009-11-15 23:12:43 +000024801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24802 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024803fi
24804
cristy3ed852e2009-09-05 21:47:34 +000024805fi
cristy8b350f62009-11-15 23:12:43 +000024806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024807$as_echo "$ac_cv_func_strtod" >&6; }
24808if test $ac_cv_func_strtod = no; then
24809 case " $LIBOBJS " in
24810 *" strtod.$ac_objext "* ) ;;
24811 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24812 ;;
24813esac
24814
cristy8b350f62009-11-15 23:12:43 +000024815ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024816if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024817
cristy3ed852e2009-09-05 21:47:34 +000024818fi
24819
cristy3ed852e2009-09-05 21:47:34 +000024820if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024822$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024823if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024824 $as_echo_n "(cached) " >&6
24825else
24826 ac_check_lib_save_LIBS=$LIBS
24827LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024829/* end confdefs.h. */
24830
24831/* Override any GCC internal prototype to avoid an error.
24832 Use char because int might match the return type of a GCC
24833 builtin and then its argument prototype would still apply. */
24834#ifdef __cplusplus
24835extern "C"
24836#endif
24837char pow ();
24838int
24839main ()
24840{
24841return pow ();
24842 ;
24843 return 0;
24844}
24845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024847 ac_cv_lib_m_pow=yes
24848else
cristy8b350f62009-11-15 23:12:43 +000024849 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024850fi
cristy8b350f62009-11-15 23:12:43 +000024851rm -f core conftest.err conftest.$ac_objext \
24852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024853LIBS=$ac_check_lib_save_LIBS
24854fi
cristy8b350f62009-11-15 23:12:43 +000024855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024856$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024857if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024858 POW_LIB=-lm
24859else
cristy8b350f62009-11-15 23:12:43 +000024860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024861$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24862fi
24863
24864fi
24865
24866fi
24867
cristy7d4a1d62011-10-13 15:54:12 +000024868ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24869if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24870 ac_have_decl=1
24871else
24872 ac_have_decl=0
24873fi
24874
24875cat >>confdefs.h <<_ACEOF
24876#define HAVE_DECL_STRERROR_R $ac_have_decl
24877_ACEOF
24878
24879for ac_func in strerror_r
24880do :
24881 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24882if test "x$ac_cv_func_strerror_r" = xyes; then :
24883 cat >>confdefs.h <<_ACEOF
24884#define HAVE_STRERROR_R 1
24885_ACEOF
24886
24887fi
24888done
24889
24890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24891$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24892if ${ac_cv_func_strerror_r_char_p+:} false; then :
24893 $as_echo_n "(cached) " >&6
24894else
24895
24896 ac_cv_func_strerror_r_char_p=no
24897 if test $ac_cv_have_decl_strerror_r = yes; then
24898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24899/* end confdefs.h. */
24900$ac_includes_default
24901int
24902main ()
24903{
24904
24905 char buf[100];
24906 char x = *strerror_r (0, buf, sizeof buf);
24907 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024908 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024909
24910 ;
24911 return 0;
24912}
24913_ACEOF
24914if ac_fn_c_try_compile "$LINENO"; then :
24915 ac_cv_func_strerror_r_char_p=yes
24916fi
24917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24918 else
24919 # strerror_r is not declared. Choose between
24920 # systems that have relatively inaccessible declarations for the
24921 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24922 # former has a strerror_r that returns char*, while the latter
24923 # has a strerror_r that returns `int'.
24924 # This test should segfault on the DEC system.
24925 if test "$cross_compiling" = yes; then :
24926 :
24927else
24928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24929/* end confdefs.h. */
24930$ac_includes_default
24931 extern char *strerror_r ();
24932int
24933main ()
24934{
24935char buf[100];
24936 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024937 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024938 ;
24939 return 0;
24940}
24941_ACEOF
24942if ac_fn_c_try_run "$LINENO"; then :
24943 ac_cv_func_strerror_r_char_p=yes
24944fi
24945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24946 conftest.$ac_objext conftest.beam conftest.$ac_ext
24947fi
24948
24949 fi
24950
24951fi
24952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24953$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24954if test $ac_cv_func_strerror_r_char_p = yes; then
24955
24956$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24957
24958fi
24959
cristy3ed852e2009-09-05 21:47:34 +000024960for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024961do :
24962 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024963if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024964 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024965#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024966_ACEOF
24967
cristy8b350f62009-11-15 23:12:43 +000024968ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024969if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024970
cristy8b350f62009-11-15 23:12:43 +000024971$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024972
24973fi
24974
24975fi
24976done
24977
24978
24979
cristy161b9262010-03-20 19:34:32 +000024980#
24981# Find math library
24982#
24983MATH_LIBS=''
24984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24985$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024986if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024987 $as_echo_n "(cached) " >&6
24988else
24989 ac_check_lib_save_LIBS=$LIBS
24990LIBS="-lm $LIBS"
24991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992/* end confdefs.h. */
24993
24994/* Override any GCC internal prototype to avoid an error.
24995 Use char because int might match the return type of a GCC
24996 builtin and then its argument prototype would still apply. */
24997#ifdef __cplusplus
24998extern "C"
24999#endif
25000char sqrt ();
25001int
25002main ()
25003{
25004return sqrt ();
25005 ;
25006 return 0;
25007}
25008_ACEOF
25009if ac_fn_c_try_link "$LINENO"; then :
25010 ac_cv_lib_m_sqrt=yes
25011else
25012 ac_cv_lib_m_sqrt=no
25013fi
25014rm -f core conftest.err conftest.$ac_objext \
25015 conftest$ac_exeext conftest.$ac_ext
25016LIBS=$ac_check_lib_save_LIBS
25017fi
25018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25019$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025020if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025021 MATH_LIBS="-lm"
25022fi
25023
25024LIBS="$MATH_LIBS $LIBS"
25025
25026
cristy82b20722011-11-05 21:52:36 +000025027for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025028do :
25029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025032 cat >>confdefs.h <<_ACEOF
25033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25034_ACEOF
25035
25036fi
25037done
25038
25039
cristye43a45e2009-09-28 14:49:00 +000025040#
25041# Check for clock_gettime().
25042#
cristy8b350f62009-11-15 23:12:43 +000025043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025044$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025045if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025046 $as_echo_n "(cached) " >&6
25047else
25048 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025050/* end confdefs.h. */
25051
25052/* Override any GCC internal prototype to avoid an error.
25053 Use char because int might match the return type of a GCC
25054 builtin and then its argument prototype would still apply. */
25055#ifdef __cplusplus
25056extern "C"
25057#endif
25058char clock_gettime ();
25059int
25060main ()
25061{
25062return clock_gettime ();
25063 ;
25064 return 0;
25065}
25066_ACEOF
25067for ac_lib in '' rt; do
25068 if test -z "$ac_lib"; then
25069 ac_res="none required"
25070 else
25071 ac_res=-l$ac_lib
25072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25073 fi
cristy8b350f62009-11-15 23:12:43 +000025074 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025075 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025076fi
cristy8b350f62009-11-15 23:12:43 +000025077rm -f core conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025079 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025080 break
25081fi
25082done
cristyda16f162011-02-19 23:52:17 +000025083if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025084
cristye43a45e2009-09-28 14:49:00 +000025085else
25086 ac_cv_search_clock_gettime=no
25087fi
25088rm conftest.$ac_ext
25089LIBS=$ac_func_search_save_LIBS
25090fi
cristy8b350f62009-11-15 23:12:43 +000025091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025092$as_echo "$ac_cv_search_clock_gettime" >&6; }
25093ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025094if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25096
25097
cristy8b350f62009-11-15 23:12:43 +000025098$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025099
cristy8b350f62009-11-15 23:12:43 +000025100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025101$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025103/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025104
25105 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025106int
25107main ()
25108{
25109clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025110 ;
25111 return 0;
25112}
25113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025114if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025115
cristy09b53e12011-10-14 12:47:22 +000025116 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25117$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025118
cristy8b350f62009-11-15 23:12:43 +000025119$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025120
25121
25122else
cristy09b53e12011-10-14 12:47:22 +000025123 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25124$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025125
25126fi
cristye43a45e2009-09-28 14:49:00 +000025127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25128
25129else
25130
cristy8b350f62009-11-15 23:12:43 +000025131 for ac_func in gettimeofday ftime
25132do :
25133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25134ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025135if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025136 cat >>confdefs.h <<_ACEOF
25137#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25138_ACEOF
25139 break
25140fi
25141done
25142
25143
25144
25145fi
25146
25147
cristy3ed852e2009-09-05 21:47:34 +000025148########
25149#
25150# Check for function prototypes
25151#
25152########
25153
cristy8b350f62009-11-15 23:12:43 +000025154ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025155#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025156"
cristyda16f162011-02-19 23:52:17 +000025157if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025158 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025159else
cristy8b350f62009-11-15 23:12:43 +000025160 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025161fi
25162
cristy3ed852e2009-09-05 21:47:34 +000025163cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025164#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025166ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025167#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025168"
cristyda16f162011-02-19 23:52:17 +000025169if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025170 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025171else
cristy8b350f62009-11-15 23:12:43 +000025172 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025173fi
25174
cristy3ed852e2009-09-05 21:47:34 +000025175cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025176#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025177_ACEOF
25178
25179
cristy8b350f62009-11-15 23:12:43 +000025180ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025181#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025182"
cristyda16f162011-02-19 23:52:17 +000025183if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025184 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025185else
cristy8b350f62009-11-15 23:12:43 +000025186 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025187fi
25188
cristy3ed852e2009-09-05 21:47:34 +000025189cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025190#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025191_ACEOF
25192
25193
cristy8b350f62009-11-15 23:12:43 +000025194ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025195#include <stdio.h>
25196#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025197"
cristyda16f162011-02-19 23:52:17 +000025198if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025199 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025200else
cristy8b350f62009-11-15 23:12:43 +000025201 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025202fi
25203
cristy3ed852e2009-09-05 21:47:34 +000025204cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025206_ACEOF
25207
25208
cristy3ed852e2009-09-05 21:47:34 +000025209########
25210#
25211# C++ Support Tests (For Magick++)
25212#
25213########
25214have_magick_plus_plus='no'
25215if test "$with_magick_plus_plus" = 'yes'; then
25216 OLIBS="$LIBS"
25217 LIBS=''
25218 ac_ext=cpp
25219ac_cpp='$CXXCPP $CPPFLAGS'
25220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25223
25224
25225 # Full set of headers used...
25226 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25227 # functional iomanip iosfwd iostream iterator list string strstream utility
25228 ac_ext=cpp
25229ac_cpp='$CXXCPP $CPPFLAGS'
25230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25233
25234 ac_ext=cpp
25235ac_cpp='$CXXCPP $CPPFLAGS'
25236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25239if test -z "$CXX"; then
25240 if test -n "$CCC"; then
25241 CXX=$CCC
25242 else
25243 if test -n "$ac_tool_prefix"; then
25244 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25245 do
25246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025250if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025251 $as_echo_n "(cached) " >&6
25252else
25253 if test -n "$CXX"; then
25254 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25255else
25256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25257for as_dir in $PATH
25258do
25259 IFS=$as_save_IFS
25260 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25263 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025265 break 2
25266 fi
25267done
cristy8b350f62009-11-15 23:12:43 +000025268 done
cristy3ed852e2009-09-05 21:47:34 +000025269IFS=$as_save_IFS
25270
25271fi
25272fi
25273CXX=$ac_cv_prog_CXX
25274if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025276$as_echo "$CXX" >&6; }
25277else
cristy8b350f62009-11-15 23:12:43 +000025278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025279$as_echo "no" >&6; }
25280fi
25281
25282
25283 test -n "$CXX" && break
25284 done
25285fi
25286if test -z "$CXX"; then
25287 ac_ct_CXX=$CXX
25288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25289do
25290 # Extract the first word of "$ac_prog", so it can be a program name with args.
25291set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025294if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025295 $as_echo_n "(cached) " >&6
25296else
25297 if test -n "$ac_ct_CXX"; then
25298 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25299else
25300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25301for as_dir in $PATH
25302do
25303 IFS=$as_save_IFS
25304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25307 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025309 break 2
25310 fi
25311done
cristy8b350f62009-11-15 23:12:43 +000025312 done
cristy3ed852e2009-09-05 21:47:34 +000025313IFS=$as_save_IFS
25314
25315fi
25316fi
25317ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25318if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025320$as_echo "$ac_ct_CXX" >&6; }
25321else
cristy8b350f62009-11-15 23:12:43 +000025322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025323$as_echo "no" >&6; }
25324fi
25325
25326
25327 test -n "$ac_ct_CXX" && break
25328done
25329
25330 if test "x$ac_ct_CXX" = x; then
25331 CXX="g++"
25332 else
25333 case $cross_compiling:$ac_tool_warned in
25334yes:)
cristy8b350f62009-11-15 23:12:43 +000025335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25337ac_tool_warned=yes ;;
25338esac
25339 CXX=$ac_ct_CXX
25340 fi
25341fi
25342
25343 fi
25344fi
25345# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025346$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025347set X $ac_compile
25348ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025349for ac_option in --version -v -V -qversion; do
25350 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025351case "(($ac_try" in
25352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353 *) ac_try_echo=$ac_try;;
25354esac
cristy8b350f62009-11-15 23:12:43 +000025355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25356$as_echo "$ac_try_echo"; } >&5
25357 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025358 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025359 if test -s conftest.err; then
25360 sed '10a\
25361... rest of stderr output deleted ...
25362 10q' conftest.err >conftest.er1
25363 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025364 fi
cristycd4c5312009-11-22 01:19:08 +000025365 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }
25368done
cristy3ed852e2009-09-05 21:47:34 +000025369
cristy8b350f62009-11-15 23:12:43 +000025370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025371$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025372if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025373 $as_echo_n "(cached) " >&6
25374else
cristy8b350f62009-11-15 23:12:43 +000025375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025376/* end confdefs.h. */
25377
25378int
25379main ()
25380{
25381#ifndef __GNUC__
25382 choke me
25383#endif
25384
25385 ;
25386 return 0;
25387}
25388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025389if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025390 ac_compiler_gnu=yes
25391else
cristy8b350f62009-11-15 23:12:43 +000025392 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025393fi
cristy3ed852e2009-09-05 21:47:34 +000025394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25396
25397fi
cristy8b350f62009-11-15 23:12:43 +000025398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025399$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25400if test $ac_compiler_gnu = yes; then
25401 GXX=yes
25402else
25403 GXX=
25404fi
25405ac_test_CXXFLAGS=${CXXFLAGS+set}
25406ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025409if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025410 $as_echo_n "(cached) " >&6
25411else
25412 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25413 ac_cxx_werror_flag=yes
25414 ac_cv_prog_cxx_g=no
25415 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025417/* end confdefs.h. */
25418
25419int
25420main ()
25421{
25422
25423 ;
25424 return 0;
25425}
25426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025427if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025428 ac_cv_prog_cxx_g=yes
25429else
cristy8b350f62009-11-15 23:12:43 +000025430 CXXFLAGS=""
25431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025432/* end confdefs.h. */
25433
25434int
25435main ()
25436{
25437
25438 ;
25439 return 0;
25440}
25441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025442if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025443
cristy8b350f62009-11-15 23:12:43 +000025444else
25445 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025446 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025448/* end confdefs.h. */
25449
25450int
25451main ()
25452{
25453
25454 ;
25455 return 0;
25456}
25457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025458if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025459 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025460fi
cristy3ed852e2009-09-05 21:47:34 +000025461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25462fi
cristy3ed852e2009-09-05 21:47:34 +000025463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25464fi
cristy3ed852e2009-09-05 21:47:34 +000025465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25466 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25467fi
cristy8b350f62009-11-15 23:12:43 +000025468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025469$as_echo "$ac_cv_prog_cxx_g" >&6; }
25470if test "$ac_test_CXXFLAGS" = set; then
25471 CXXFLAGS=$ac_save_CXXFLAGS
25472elif test $ac_cv_prog_cxx_g = yes; then
25473 if test "$GXX" = yes; then
25474 CXXFLAGS="-g -O2"
25475 else
25476 CXXFLAGS="-g"
25477 fi
25478else
25479 if test "$GXX" = yes; then
25480 CXXFLAGS="-O2"
25481 else
25482 CXXFLAGS=
25483 fi
25484fi
25485ac_ext=cpp
25486ac_cpp='$CXXCPP $CPPFLAGS'
25487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25490
cristy73bd4a52010-10-05 11:24:23 +000025491depcc="$CXX" am_compiler_list=
25492
25493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25494$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025495if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025496 $as_echo_n "(cached) " >&6
25497else
25498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25499 # We make a subdir and do the tests there. Otherwise we can end up
25500 # making bogus files that we don't know about and never remove. For
25501 # instance it was reported that on HP-UX the gcc test will end up
25502 # making a dummy file named `D' -- because `-MD' means `put the output
25503 # in D'.
25504 mkdir conftest.dir
25505 # Copy depcomp to subdir because otherwise we won't find it if we're
25506 # using a relative directory.
25507 cp "$am_depcomp" conftest.dir
25508 cd conftest.dir
25509 # We will build objects and dependencies in a subdirectory because
25510 # it helps to detect inapplicable dependency modes. For instance
25511 # both Tru64's cc and ICC support -MD to output dependencies as a
25512 # side effect of compilation, but ICC will put the dependencies in
25513 # the current directory while Tru64 will put them in the object
25514 # directory.
25515 mkdir sub
25516
25517 am_cv_CXX_dependencies_compiler_type=none
25518 if test "$am_compiler_list" = ""; then
25519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25520 fi
25521 am__universal=false
25522 case " $depcc " in #(
25523 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25524 esac
25525
25526 for depmode in $am_compiler_list; do
25527 # Setup a source with many dependencies, because some compilers
25528 # like to wrap large dependency lists on column 80 (with \), and
25529 # we should not choose a depcomp mode which is confused by this.
25530 #
25531 # We need to recreate these files for each test, as the compiler may
25532 # overwrite some of them when testing with obscure command lines.
25533 # This happens at least with the AIX C compiler.
25534 : > sub/conftest.c
25535 for i in 1 2 3 4 5 6; do
25536 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25537 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25538 # Solaris 8's {/usr,}/bin/sh.
25539 touch sub/conftst$i.h
25540 done
25541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25542
25543 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25544 # mode. It turns out that the SunPro C++ compiler does not properly
25545 # handle `-M -o', and we need to detect this. Also, some Intel
25546 # versions had trouble with output in subdirs
25547 am__obj=sub/conftest.${OBJEXT-o}
25548 am__minus_obj="-o $am__obj"
25549 case $depmode in
25550 gcc)
25551 # This depmode causes a compiler race in universal mode.
25552 test "$am__universal" = false || continue
25553 ;;
25554 nosideeffect)
25555 # after this tag, mechanisms are not by side-effect, so they'll
25556 # only be used when explicitly requested
25557 if test "x$enable_dependency_tracking" = xyes; then
25558 continue
25559 else
25560 break
25561 fi
25562 ;;
25563 msvisualcpp | msvcmsys)
25564 # This compiler won't grok `-c -o', but also, the minuso test has
25565 # not run yet. These depmodes are late enough in the game, and
25566 # so weak that their functioning should not be impacted.
25567 am__obj=conftest.${OBJEXT-o}
25568 am__minus_obj=
25569 ;;
25570 none) break ;;
25571 esac
25572 if depmode=$depmode \
25573 source=sub/conftest.c object=$am__obj \
25574 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25575 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25576 >/dev/null 2>conftest.err &&
25577 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25579 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25581 # icc doesn't choke on unknown options, it will just issue warnings
25582 # or remarks (even with -Werror). So we grep stderr for any message
25583 # that says an option was ignored or not supported.
25584 # When given -MP, icc 7.0 and 7.1 complain thusly:
25585 # icc: Command line warning: ignoring option '-M'; no argument required
25586 # The diagnosis changed in icc 8.0:
25587 # icc: Command line remark: option '-MP' not supported
25588 if (grep 'ignoring option' conftest.err ||
25589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25590 am_cv_CXX_dependencies_compiler_type=$depmode
25591 break
25592 fi
25593 fi
25594 done
25595
25596 cd ..
25597 rm -rf conftest.dir
25598else
25599 am_cv_CXX_dependencies_compiler_type=none
25600fi
25601
25602fi
25603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25604$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25605CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25606
25607 if
25608 test "x$enable_dependency_tracking" != xno \
25609 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25610 am__fastdepCXX_TRUE=
25611 am__fastdepCXX_FALSE='#'
25612else
25613 am__fastdepCXX_TRUE='#'
25614 am__fastdepCXX_FALSE=
25615fi
25616
25617
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25619$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025620if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025621 $as_echo_n "(cached) " >&6
25622else
25623
25624 ac_ext=cpp
25625ac_cpp='$CXXCPP $CPPFLAGS'
25626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25629
25630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25631/* end confdefs.h. */
25632
25633int f(int x){return 1;}
25634int f(char x){return 1;}
25635int f(bool x){return 1;}
25636
25637int
25638main ()
25639{
25640bool b = true; return f(b);
25641 ;
25642 return 0;
25643}
25644_ACEOF
25645if ac_fn_cxx_try_compile "$LINENO"; then :
25646 ax_cv_cxx_bool=yes
25647else
25648 ax_cv_cxx_bool=no
25649fi
25650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25651 ac_ext=cpp
25652ac_cpp='$CXXCPP $CPPFLAGS'
25653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25656
25657
25658fi
25659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25660$as_echo "$ax_cv_cxx_bool" >&6; }
25661if test "$ax_cv_cxx_bool" = yes; then
25662
25663$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25664
25665fi
25666
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25668$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025669if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025670 $as_echo_n "(cached) " >&6
25671else
25672
25673 ac_ext=cpp
25674ac_cpp='$CXXCPP $CPPFLAGS'
25675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25678
25679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25680/* end confdefs.h. */
25681namespace Outer { namespace Inner { int i = 0; }}
25682int
25683main ()
25684{
25685using namespace Outer::Inner; return i;
25686 ;
25687 return 0;
25688}
25689_ACEOF
25690if ac_fn_cxx_try_compile "$LINENO"; then :
25691 ax_cv_cxx_namespaces=yes
25692else
25693 ax_cv_cxx_namespaces=no
25694fi
25695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25696 ac_ext=cpp
25697ac_cpp='$CXXCPP $CPPFLAGS'
25698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25701
25702
25703fi
25704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25705$as_echo "$ax_cv_cxx_namespaces" >&6; }
25706if test "$ax_cv_cxx_namespaces" = yes; then
25707
25708$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25709
25710fi
25711
25712
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25714$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025715if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025716 $as_echo_n "(cached) " >&6
25717else
25718
25719 ac_ext=cpp
25720ac_cpp='$CXXCPP $CPPFLAGS'
25721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25724
25725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25726/* end confdefs.h. */
25727#include <iostream>
25728 std::istream& is = std::cin;
25729int
25730main ()
25731{
25732
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737if ac_fn_cxx_try_compile "$LINENO"; then :
25738 ax_cv_cxx_have_std_namespace=yes
25739else
25740 ax_cv_cxx_have_std_namespace=no
25741fi
25742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 ac_ext=cpp
25744ac_cpp='$CXXCPP $CPPFLAGS'
25745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25748
25749
25750fi
25751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25752$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25753 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25754
25755$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25756
25757 fi
25758
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25760$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025761if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025762 $as_echo_n "(cached) " >&6
25763else
25764
25765
25766 ac_ext=cpp
25767ac_cpp='$CXXCPP $CPPFLAGS'
25768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25771
25772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773/* end confdefs.h. */
25774#include <iostream>
25775#include <map>
25776#include <iomanip>
25777#include <cmath>
25778#ifdef HAVE_NAMESPACES
25779using namespace std;
25780#endif
25781int
25782main ()
25783{
25784return 0;
25785 ;
25786 return 0;
25787}
25788_ACEOF
25789if ac_fn_cxx_try_compile "$LINENO"; then :
25790 ac_cv_cxx_have_std_libs=yes
25791else
25792 ac_cv_cxx_have_std_libs=no
25793fi
25794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25795 ac_ext=cpp
25796ac_cpp='$CXXCPP $CPPFLAGS'
25797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25800
25801
25802fi
25803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25804$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25805if test "$ac_cv_cxx_have_std_libs" = yes; then
25806
25807$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25808
25809fi
25810
cristy3ed852e2009-09-05 21:47:34 +000025811
25812 OPENMP_CXXFLAGS=
25813 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025814if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025815 enableval=$enable_openmp;
25816fi
25817
25818 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25820$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025821if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025822 $as_echo_n "(cached) " >&6
25823else
cristy8b350f62009-11-15 23:12:43 +000025824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25825/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025826
25827#ifndef _OPENMP
25828 choke me
25829#endif
25830#include <omp.h>
25831int main () { return omp_get_num_threads (); }
25832
25833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025834if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025835 ac_cv_prog_cxx_openmp='none needed'
25836else
cristy8b350f62009-11-15 23:12:43 +000025837 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025838 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25839 ac_save_CXXFLAGS=$CXXFLAGS
25840 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25842/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025843
25844#ifndef _OPENMP
25845 choke me
25846#endif
25847#include <omp.h>
25848int main () { return omp_get_num_threads (); }
25849
25850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025851if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025852 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025853fi
cristy8b350f62009-11-15 23:12:43 +000025854rm -f core conftest.err conftest.$ac_objext \
25855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025856 CXXFLAGS=$ac_save_CXXFLAGS
25857 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25858 break
25859 fi
25860 done
25861fi
cristy8b350f62009-11-15 23:12:43 +000025862rm -f core conftest.err conftest.$ac_objext \
25863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025864fi
cristy8b350f62009-11-15 23:12:43 +000025865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025866$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25867 case $ac_cv_prog_cxx_openmp in #(
25868 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025869 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025870 *)
cristy8b350f62009-11-15 23:12:43 +000025871 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025872 esac
25873 fi
25874
25875
25876 ac_ext=c
25877ac_cpp='$CPP $CPPFLAGS'
25878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25880ac_compiler_gnu=$ac_cv_c_compiler_gnu
25881
25882
cristy8b350f62009-11-15 23:12:43 +000025883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025884$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25885 if \
cristy964cb7f2010-04-25 23:18:00 +000025886 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025887 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025888 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025889 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025890 have_magick_plus_plus='yes'
25891 else
25892 have_magick_plus_plus='no (failed tests)'
25893 fi
cristy09b53e12011-10-14 12:47:22 +000025894 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25895$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025896 LIBS="$OLIBS"
25897fi
cristy73bd4a52010-10-05 11:24:23 +000025898 if test "$have_magick_plus_plus" = 'yes'; then
25899 WITH_MAGICK_PLUS_PLUS_TRUE=
25900 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25901else
25902 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25903 WITH_MAGICK_PLUS_PLUS_FALSE=
25904fi
25905
cristy3ed852e2009-09-05 21:47:34 +000025906
25907# Only check for delegate libraries in subdirectories if requested.
25908if test "$enable_delegate_build" != 'no'; then
25909 # Check for delegate sub-directories and add -I & -L options as required.
25910 # This presumes that delegates are installed as detailed in the ImageMagick
25911 # README. If delegates are installed in a standard location where the
25912 # compiler will automatically find them then these options should not be
25913 # required.
25914
25915 #
25916 # Most delegates have includes in the same directory as the library, but not all...
25917 #
25918 # Includes
cristy2542fc62011-12-06 17:50:25 +000025919 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 webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025920 if test -d "$builddir/$dir"; then
25921 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25922 else
25923 if test -d "$srcdirfull/$dir"; then
25924 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25925 fi
25926 fi
25927 done
25928
25929 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025930 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 webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025931 if test -d "$builddir/$dir/.libs"; then
25932 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25933 else
25934 if test -d "$srcdirfull/$dir/.libs"; then
25935 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25936 fi
25937 fi
25938 if test -d "$builddir/$dir"; then
25939 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25940 else
25941 if test -d "$srcdirfull/$dir"; then
25942 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25943 fi
25944 fi
25945 done
25946fi
25947
25948# Assume that delegate headers reside under same directory as ImageMagick
25949# installation prefix.
25950MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25951
25952#
25953# Find the X11 RGB database
25954#
cristy8b350f62009-11-15 23:12:43 +000025955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025956$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025957if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025958 $as_echo_n "(cached) " >&6
25959else
25960 # Look for the header file in a standard set of common directories.
25961# Check X11 before X11Rn because it is often a symlink to the current release.
25962 for ac_dir in \
25963 /lib/usr/lib/X11 \
25964 /usr/X11/lib \
25965 /usr/X11R4/lib \
25966 /usr/X11R5/lib \
25967 /usr/X11R6/lib \
25968 /usr/X11R7/lib \
25969 /usr/X386/lib \
25970 /usr/XFree86/lib/X11 \
25971 /usr/athena/lib \
25972 /usr/lib \
25973 /usr/lib/X11 \
25974 /usr/lib/X11R4 \
25975 /usr/lib/X11R5 \
25976 /usr/lib/X11R6 \
25977 /usr/lib/X11R7 \
25978 /usr/local/X11/lib \
25979 /usr/local/X11R4/lib \
25980 /usr/local/X11R5/lib \
25981 /usr/local/X11R6/lib \
25982 /usr/local/lib \
25983 /usr/local/lib/X11 \
25984 /usr/local/lib/X11R4 \
25985 /usr/local/lib/X11R5 \
25986 /usr/local/lib/X11R6 \
25987 /usr/local/lib/X11R7 \
25988 /usr/local/x11r5/lib \
25989 /usr/lpp/Xamples/lib \
25990 /usr/openwin/lib \
25991 /usr/openwin/share/lib \
25992 /usr/unsupported/lib \
25993 /usr/x386/lib \
25994 ; do
25995 if test -f "$ac_dir/X11/rgb.txt"; then
25996 im_cv_x_configure="$ac_dir/X11/"
25997 break
25998 elif test -f "$ac_dir/rgb.txt"; then
25999 im_cv_x_configure="$ac_dir/"
26000 break
26001 fi
26002
26003 done
26004fi
cristy8b350f62009-11-15 23:12:43 +000026005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026006$as_echo "$im_cv_x_configure" >&6; }
26007X11_CONFIGURE_PATH="$im_cv_x_configure"
26008case "${build_os}" in
26009 mingw* )
26010 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26011 ;;
26012esac
26013
26014cat >>confdefs.h <<_ACEOF
26015#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26016_ACEOF
26017
26018
26019#
26020# Find OpenMP library
26021#
26022GOMP_LIBS=''
26023if test "$enable_openmp" != 'no'; then
26024 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000026025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026026$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026027if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026028 $as_echo_n "(cached) " >&6
26029else
26030 ac_check_lib_save_LIBS=$LIBS
26031LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026033/* end confdefs.h. */
26034
26035/* Override any GCC internal prototype to avoid an error.
26036 Use char because int might match the return type of a GCC
26037 builtin and then its argument prototype would still apply. */
26038#ifdef __cplusplus
26039extern "C"
26040#endif
26041char GOMP_parallel_start ();
26042int
26043main ()
26044{
26045return GOMP_parallel_start ();
26046 ;
26047 return 0;
26048}
26049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026050if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026051 ac_cv_lib_gomp_GOMP_parallel_start=yes
26052else
cristy8b350f62009-11-15 23:12:43 +000026053 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026054fi
cristy8b350f62009-11-15 23:12:43 +000026055rm -f core conftest.err conftest.$ac_objext \
26056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026057LIBS=$ac_check_lib_save_LIBS
26058fi
cristy8b350f62009-11-15 23:12:43 +000026059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026060$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026061if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026062 GOMP_LIBS="-lgomp"
26063fi
26064 # gcc
26065 else
cristy8b350f62009-11-15 23:12:43 +000026066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026067$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026068if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026069 $as_echo_n "(cached) " >&6
26070else
26071 ac_check_lib_save_LIBS=$LIBS
26072LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026074/* end confdefs.h. */
26075
26076/* Override any GCC internal prototype to avoid an error.
26077 Use char because int might match the return type of a GCC
26078 builtin and then its argument prototype would still apply. */
26079#ifdef __cplusplus
26080extern "C"
26081#endif
26082char sunw_mp_register_warn ();
26083int
26084main ()
26085{
26086return sunw_mp_register_warn ();
26087 ;
26088 return 0;
26089}
26090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026091if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026092 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26093else
cristy8b350f62009-11-15 23:12:43 +000026094 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026095fi
cristy8b350f62009-11-15 23:12:43 +000026096rm -f core conftest.err conftest.$ac_objext \
26097 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026098LIBS=$ac_check_lib_save_LIBS
26099fi
cristy8b350f62009-11-15 23:12:43 +000026100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026101$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026102if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026103 GOMP_LIBS="-lmtsk"
26104fi
26105 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026107$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026108if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026109 $as_echo_n "(cached) " >&6
26110else
26111 ac_check_lib_save_LIBS=$LIBS
26112LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026114/* end confdefs.h. */
26115
26116/* Override any GCC internal prototype to avoid an error.
26117 Use char because int might match the return type of a GCC
26118 builtin and then its argument prototype would still apply. */
26119#ifdef __cplusplus
26120extern "C"
26121#endif
26122char _xlsmpFlush ();
26123int
26124main ()
26125{
26126return _xlsmpFlush ();
26127 ;
26128 return 0;
26129}
26130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026132 ac_cv_lib_xlsmp__xlsmpFlush=yes
26133else
cristy8b350f62009-11-15 23:12:43 +000026134 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026135fi
cristy8b350f62009-11-15 23:12:43 +000026136rm -f core conftest.err conftest.$ac_objext \
26137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026138LIBS=$ac_check_lib_save_LIBS
26139fi
cristy8b350f62009-11-15 23:12:43 +000026140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026141$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026142if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026143 GOMP_LIBS="-lxlsmp"
26144fi
26145 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026147$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026148if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026149 $as_echo_n "(cached) " >&6
26150else
26151 ac_check_lib_save_LIBS=$LIBS
26152LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026154/* end confdefs.h. */
26155
26156/* Override any GCC internal prototype to avoid an error.
26157 Use char because int might match the return type of a GCC
26158 builtin and then its argument prototype would still apply. */
26159#ifdef __cplusplus
26160extern "C"
26161#endif
26162char mp_destroy ();
26163int
26164main ()
26165{
26166return mp_destroy ();
26167 ;
26168 return 0;
26169}
26170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026171if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026172 ac_cv_lib_mp_mp_destroy=yes
26173else
cristy8b350f62009-11-15 23:12:43 +000026174 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026175fi
cristy8b350f62009-11-15 23:12:43 +000026176rm -f core conftest.err conftest.$ac_objext \
26177 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026178LIBS=$ac_check_lib_save_LIBS
26179fi
cristy8b350f62009-11-15 23:12:43 +000026180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026181$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026182if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026183 GOMP_LIBS="-lmp"
26184fi
26185 # SGI IRIX 6.5 MIPSpro C/C++
26186 fi
26187 LIBS="$GOMP_LIBS $LIBS"
26188fi
26189
26190
26191#
26192# Find Posix threads library
26193#
26194THREAD_LIBS=''
26195if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26196
26197 if test "x$PTHREAD_LIBS" = "x"; then
26198 case "${host_cpu}-${host_os}" in
26199 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026200
26201
26202
26203ac_ext=c
26204ac_cpp='$CPP $CPPFLAGS'
26205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26207ac_compiler_gnu=$ac_cv_c_compiler_gnu
26208
26209magick_pthread_lib_ok=no
26210
26211LIB=-lc_r
26212save_LIBS="$LIBS"
26213LIBS="$LIBS $LIB"
26214
26215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26216$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26218/* end confdefs.h. */
26219#include <pthread.h>
26220int
26221main ()
26222{
26223 pthread_t th;
26224 pthread_join(th, 0);
26225 pthread_attr_init(0);
26226 pthread_cleanup_push(0, 0);
26227 pthread_create(0,0,0,0);
26228 pthread_cleanup_pop(0);
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233if ac_fn_c_try_link "$LINENO"; then :
26234 magick_pthread_lib_ok=yes
26235fi
26236rm -f core conftest.err conftest.$ac_objext \
26237 conftest$ac_exeext conftest.$ac_ext
26238
26239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26240$as_echo "${magick_pthread_lib_ok}" >&6; }
26241if test "$magick_pthread_lib_ok" = yes
26242then
26243 PTHREAD_LIBS=-lc_r
26244 :
26245else
26246
26247 :
26248fi
26249
26250LIBS="$save_LIBS"
26251
26252ac_ext=c
26253ac_cpp='$CPP $CPPFLAGS'
26254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26256ac_compiler_gnu=$ac_cv_c_compiler_gnu
26257
26258 ;;
cristy3ed852e2009-09-05 21:47:34 +000026259 esac
26260 fi
26261
26262 for lib in pthread pthreads; do
26263 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026264
26265
26266
26267ac_ext=c
26268ac_cpp='$CPP $CPPFLAGS'
26269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26271ac_compiler_gnu=$ac_cv_c_compiler_gnu
26272
26273magick_pthread_lib_ok=no
26274
26275LIB=-l$lib
26276save_LIBS="$LIBS"
26277LIBS="$LIBS $LIB"
26278
26279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26280$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282/* end confdefs.h. */
26283#include <pthread.h>
26284int
26285main ()
26286{
26287 pthread_t th;
26288 pthread_join(th, 0);
26289 pthread_attr_init(0);
26290 pthread_cleanup_push(0, 0);
26291 pthread_create(0,0,0,0);
26292 pthread_cleanup_pop(0);
26293 ;
26294 return 0;
26295}
26296_ACEOF
26297if ac_fn_c_try_link "$LINENO"; then :
26298 magick_pthread_lib_ok=yes
26299fi
26300rm -f core conftest.err conftest.$ac_objext \
26301 conftest$ac_exeext conftest.$ac_ext
26302
26303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26304$as_echo "${magick_pthread_lib_ok}" >&6; }
26305if test "$magick_pthread_lib_ok" = yes
26306then
26307 PTHREAD_LIBS=-l$lib
26308 :
26309else
26310
26311 :
26312fi
26313
26314LIBS="$save_LIBS"
26315
26316ac_ext=c
26317ac_cpp='$CPP $CPPFLAGS'
26318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26320ac_compiler_gnu=$ac_cv_c_compiler_gnu
26321
26322
cristy3ed852e2009-09-05 21:47:34 +000026323 fi
26324 done
26325
26326 THREAD_LIBS="$PTHREAD_LIBS"
26327 LIBS="$LIBS $THREAD_LIBS"
26328fi
26329
26330
26331#
26332# Check for umem.
26333#
26334have_umem='no'
26335UMEM_LIBS=''
26336if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026338$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026339 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26340$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026341 failed=0
26342 passed=0
cristy8b350f62009-11-15 23:12:43 +000026343 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026344if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026345 passed=`expr $passed + 1`
26346else
26347 failed=`expr $failed + 1`
26348fi
26349
26350
cristy8b350f62009-11-15 23:12:43 +000026351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026352$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026353if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026354 $as_echo_n "(cached) " >&6
26355else
26356 ac_check_lib_save_LIBS=$LIBS
26357LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026359/* end confdefs.h. */
26360
26361/* Override any GCC internal prototype to avoid an error.
26362 Use char because int might match the return type of a GCC
26363 builtin and then its argument prototype would still apply. */
26364#ifdef __cplusplus
26365extern "C"
26366#endif
26367char umem_alloc ();
26368int
26369main ()
26370{
26371return umem_alloc ();
26372 ;
26373 return 0;
26374}
26375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026377 ac_cv_lib_umem_umem_alloc=yes
26378else
cristy8b350f62009-11-15 23:12:43 +000026379 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026380fi
cristy8b350f62009-11-15 23:12:43 +000026381rm -f core conftest.err conftest.$ac_objext \
26382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026383LIBS=$ac_check_lib_save_LIBS
26384fi
cristy8b350f62009-11-15 23:12:43 +000026385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026386$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026387if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026388 passed=`expr $passed + 1`
26389else
26390 failed=`expr $failed + 1`
26391fi
26392
cristy8b350f62009-11-15 23:12:43 +000026393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026394$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026395if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026396 $as_echo_n "(cached) " >&6
26397else
26398 ac_check_lib_save_LIBS=$LIBS
26399LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026401/* end confdefs.h. */
26402
26403/* Override any GCC internal prototype to avoid an error.
26404 Use char because int might match the return type of a GCC
26405 builtin and then its argument prototype would still apply. */
26406#ifdef __cplusplus
26407extern "C"
26408#endif
26409char umem_free ();
26410int
26411main ()
26412{
26413return umem_free ();
26414 ;
26415 return 0;
26416}
26417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026419 ac_cv_lib_umem_umem_free=yes
26420else
cristy8b350f62009-11-15 23:12:43 +000026421 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026422fi
cristy8b350f62009-11-15 23:12:43 +000026423rm -f core conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026425LIBS=$ac_check_lib_save_LIBS
26426fi
cristy8b350f62009-11-15 23:12:43 +000026427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026429if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026430 passed=`expr $passed + 1`
26431else
26432 failed=`expr $failed + 1`
26433fi
26434
cristy8b350f62009-11-15 23:12:43 +000026435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026436$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26437 if test $passed -gt 0; then
26438 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026439 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26440$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026441 have_umem='no (failed tests)'
26442 else
26443 UMEM_LIBS='-lumem'
26444 LIBS="$UMEM_LIBS $LIBS"
26445
cristy8b350f62009-11-15 23:12:43 +000026446$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026447
cristy09b53e12011-10-14 12:47:22 +000026448 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26449$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026450 have_umem='yes'
26451 fi
26452 else
cristy09b53e12011-10-14 12:47:22 +000026453 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26454$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026455 fi
26456fi
cristy73bd4a52010-10-05 11:24:23 +000026457 if test "$have_umem" = 'yes'; then
26458 HasUMEM_TRUE=
26459 HasUMEM_FALSE='#'
26460else
26461 HasUMEM_TRUE='#'
26462 HasUMEM_FALSE=
26463fi
26464
cristy3ed852e2009-09-05 21:47:34 +000026465
26466
26467#
26468# Add support for ccmalloc memory debugging library if requested
26469#
26470have_ccmalloc='no'
26471CCMALLOC_LIBS=''
26472if test "$enable_ccmalloc" = 'yes'; then
26473 # Extract the first word of "ccmalloc", so it can be a program name with args.
26474set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026477if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026478 $as_echo_n "(cached) " >&6
26479else
26480 case $CCMALLOCDelegate in
26481 [\\/]* | ?:[\\/]*)
26482 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26483 ;;
26484 *)
26485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26486for as_dir in $PATH
26487do
26488 IFS=$as_save_IFS
26489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26492 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494 break 2
26495 fi
26496done
cristy8b350f62009-11-15 23:12:43 +000026497 done
cristy3ed852e2009-09-05 21:47:34 +000026498IFS=$as_save_IFS
26499
26500 ;;
26501esac
26502fi
26503CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26504if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026506$as_echo "$CCMALLOCDelegate" >&6; }
26507else
cristy8b350f62009-11-15 23:12:43 +000026508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026509$as_echo "no" >&6; }
26510fi
26511
26512
26513 if test -n "$CCMALLOCDelegate"; then
26514 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26515 OLIBS="$LIBS"
26516 # Assume that gcc is used with ccmalloc.
26517 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026519$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026520if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026521 $as_echo_n "(cached) " >&6
26522else
26523 ac_check_lib_save_LIBS=$LIBS
26524LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026526/* end confdefs.h. */
26527
26528/* Override any GCC internal prototype to avoid an error.
26529 Use char because int might match the return type of a GCC
26530 builtin and then its argument prototype would still apply. */
26531#ifdef __cplusplus
26532extern "C"
26533#endif
26534char ccmalloc_malloc ();
26535int
26536main ()
26537{
26538return ccmalloc_malloc ();
26539 ;
26540 return 0;
26541}
26542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026543if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026544 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26545else
cristy8b350f62009-11-15 23:12:43 +000026546 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026547fi
cristy8b350f62009-11-15 23:12:43 +000026548rm -f core conftest.err conftest.$ac_objext \
26549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026550LIBS=$ac_check_lib_save_LIBS
26551fi
cristy8b350f62009-11-15 23:12:43 +000026552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026554if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026555 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26556fi
26557
26558 if test -n "$CCMALLOC_LIBS"; then
26559 LIBS="$OLIBS"
26560 LIBS="$LIBS $CCMALLOC_LIBS"
26561 have_ccmalloc='yes'
26562 else
26563 LIBS="$OLIBS"
26564 fi
26565 fi
26566fi
26567
26568#
26569# Add support for efence memory debugging library if requested
26570#
26571if test "$enable_efence" = 'yes'; then
26572 EFENCE_LIBS='-lefence'
26573 LIBS="$EFENCE_LIBS $LIBS"
26574fi
26575
cristy3ed852e2009-09-05 21:47:34 +000026576
26577#
26578# Check for BZLIB
26579#
26580
26581
26582# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026583if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 withval=$with_bzlib; with_bzlib=$withval
26585else
26586 with_bzlib='yes'
26587fi
26588
26589
26590if test "$with_bzlib" != 'yes'; then
26591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26592fi
26593
26594have_bzlib='no'
26595if test "$with_bzlib" != 'no'; then
26596 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026597 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26598$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026600$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026601 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26602$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026603 failed=0
26604 passed=0
26605 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026606 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026607if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026608 passed=`expr $passed + 1`
26609else
26610 failed=`expr $failed + 1`
26611fi
26612
26613
cristy8b350f62009-11-15 23:12:43 +000026614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026616if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026617 $as_echo_n "(cached) " >&6
26618else
26619 ac_check_lib_save_LIBS=$LIBS
26620LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026622/* end confdefs.h. */
26623
26624/* Override any GCC internal prototype to avoid an error.
26625 Use char because int might match the return type of a GCC
26626 builtin and then its argument prototype would still apply. */
26627#ifdef __cplusplus
26628extern "C"
26629#endif
26630char BZ2_bzDecompress ();
26631int
26632main ()
26633{
26634return BZ2_bzDecompress ();
26635 ;
26636 return 0;
26637}
26638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026639if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026640 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26641else
cristy8b350f62009-11-15 23:12:43 +000026642 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026643fi
cristy8b350f62009-11-15 23:12:43 +000026644rm -f core conftest.err conftest.$ac_objext \
26645 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026646LIBS=$ac_check_lib_save_LIBS
26647fi
cristy8b350f62009-11-15 23:12:43 +000026648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026649$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026650if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026651 found_libbz=`expr $found_libbz + 1`
26652fi
26653
26654 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026657if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026658 $as_echo_n "(cached) " >&6
26659else
26660 ac_check_lib_save_LIBS=$LIBS
26661LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026663/* end confdefs.h. */
26664
26665/* Override any GCC internal prototype to avoid an error.
26666 Use char because int might match the return type of a GCC
26667 builtin and then its argument prototype would still apply. */
26668#ifdef __cplusplus
26669extern "C"
26670#endif
26671char _imp__BZ2_decompress ();
26672int
26673main ()
26674{
26675return _imp__BZ2_decompress ();
26676 ;
26677 return 0;
26678}
26679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026681 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26682else
cristy8b350f62009-11-15 23:12:43 +000026683 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026684fi
cristy8b350f62009-11-15 23:12:43 +000026685rm -f core conftest.err conftest.$ac_objext \
26686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026687LIBS=$ac_check_lib_save_LIBS
26688fi
cristy8b350f62009-11-15 23:12:43 +000026689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026691if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 found_libbz=`expr $found_libbz + 1`
26693fi
26694
26695 fi
26696 if test $found_libbz -gt 0; then
26697 passed=`expr $passed + 1`
26698 else
26699 failed=`expr $failed + 1`
26700 fi
cristy8b350f62009-11-15 23:12:43 +000026701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026702$as_echo_n "checking if BZLIB package is complete... " >&6; }
26703 if test $passed -gt 0; then
26704 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026705 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26706$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026707 have_bzlib='no (failed tests)'
26708 else
26709 BZLIB_LIBS='-lbz2'
26710 LIBS="$BZLIB_LIBS $LIBS"
26711
cristy8b350f62009-11-15 23:12:43 +000026712$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026713
cristy09b53e12011-10-14 12:47:22 +000026714 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26715$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026716 have_bzlib='yes'
26717 fi
26718 else
cristy09b53e12011-10-14 12:47:22 +000026719 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26720$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026721 fi
26722fi
cristy73bd4a52010-10-05 11:24:23 +000026723 if test "$have_bzlib" = 'yes'; then
26724 BZLIB_DELEGATE_TRUE=
26725 BZLIB_DELEGATE_FALSE='#'
26726else
26727 BZLIB_DELEGATE_TRUE='#'
26728 BZLIB_DELEGATE_FALSE=
26729fi
26730
cristy3ed852e2009-09-05 21:47:34 +000026731
26732
26733#
26734# Find the X11 include and library directories.
26735#
26736IPC_LIBS=''
26737X11_LIBS=''
26738XEXT_LIBS=''
26739XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026741$as_echo_n "checking for X... " >&6; }
26742
26743
26744# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026745if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026746 withval=$with_x;
26747fi
26748
26749# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26750if test "x$with_x" = xno; then
26751 # The user explicitly disabled X.
26752 have_x=disabled
26753else
26754 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026755 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026756 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026757 $as_echo_n "(cached) " >&6
26758else
26759 # One or both of the vars are not set, and there is no cached value.
26760ac_x_includes=no ac_x_libraries=no
26761rm -f -r conftest.dir
26762if mkdir conftest.dir; then
26763 cd conftest.dir
26764 cat >Imakefile <<'_ACEOF'
26765incroot:
26766 @echo incroot='${INCROOT}'
26767usrlibdir:
26768 @echo usrlibdir='${USRLIBDIR}'
26769libdir:
26770 @echo libdir='${LIBDIR}'
26771_ACEOF
26772 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026773 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026774 for ac_var in incroot usrlibdir libdir; do
26775 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26776 done
26777 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26778 for ac_extension in a so sl dylib la dll; do
26779 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26780 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26781 ac_im_usrlibdir=$ac_im_libdir; break
26782 fi
26783 done
26784 # Screen out bogus values from the imake configuration. They are
26785 # bogus both because they are the default anyway, and because
26786 # using them would break gcc on systems where it needs fixed includes.
26787 case $ac_im_incroot in
26788 /usr/include) ac_x_includes= ;;
26789 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26790 esac
26791 case $ac_im_usrlibdir in
26792 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26793 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26794 esac
26795 fi
26796 cd ..
26797 rm -f -r conftest.dir
26798fi
26799
26800# Standard set of common directories for X headers.
26801# Check X11 before X11Rn because it is often a symlink to the current release.
26802ac_x_header_dirs='
26803/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026804/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026805/usr/X11R6/include
26806/usr/X11R5/include
26807/usr/X11R4/include
26808
26809/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026810/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026811/usr/include/X11R6
26812/usr/include/X11R5
26813/usr/include/X11R4
26814
26815/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026816/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026817/usr/local/X11R6/include
26818/usr/local/X11R5/include
26819/usr/local/X11R4/include
26820
26821/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026822/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026823/usr/local/include/X11R6
26824/usr/local/include/X11R5
26825/usr/local/include/X11R4
26826
26827/usr/X386/include
26828/usr/x386/include
26829/usr/XFree86/include/X11
26830
26831/usr/include
26832/usr/local/include
26833/usr/unsupported/include
26834/usr/athena/include
26835/usr/local/x11r5/include
26836/usr/lpp/Xamples/include
26837
26838/usr/openwin/include
26839/usr/openwin/share/include'
26840
26841if test "$ac_x_includes" = no; then
26842 # Guess where to find include files, by looking for Xlib.h.
26843 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026845/* end confdefs.h. */
26846#include <X11/Xlib.h>
26847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026848if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026849 # We can compile using X headers with no special include directory.
26850ac_x_includes=
26851else
cristyc7083c12009-10-14 03:16:55 +000026852 for ac_dir in $ac_x_header_dirs; do
26853 if test -r "$ac_dir/X11/Xlib.h"; then
26854 ac_x_includes=$ac_dir
26855 break
26856 fi
26857done
26858fi
cristyda16f162011-02-19 23:52:17 +000026859rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026860fi # $ac_x_includes = no
26861
26862if test "$ac_x_libraries" = no; then
26863 # Check for the libraries.
26864 # See if we find them without any special options.
26865 # Don't add to $LIBS permanently.
26866 ac_save_LIBS=$LIBS
26867 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026869/* end confdefs.h. */
26870#include <X11/Xlib.h>
26871int
26872main ()
26873{
26874XrmInitialize ()
26875 ;
26876 return 0;
26877}
26878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026879if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026880 LIBS=$ac_save_LIBS
26881# We can link X programs with no special library path.
26882ac_x_libraries=
26883else
cristy8b350f62009-11-15 23:12:43 +000026884 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026885for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26886do
26887 # Don't even attempt the hair of trying to link an X program!
26888 for ac_extension in a so sl dylib la dll; do
26889 if test -r "$ac_dir/libX11.$ac_extension"; then
26890 ac_x_libraries=$ac_dir
26891 break 2
26892 fi
26893 done
26894done
26895fi
cristy8b350f62009-11-15 23:12:43 +000026896rm -f core conftest.err conftest.$ac_objext \
26897 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026898fi # $ac_x_libraries = no
26899
26900case $ac_x_includes,$ac_x_libraries in #(
26901 no,* | *,no | *\'*)
26902 # Didn't find X, or a directory has "'" in its name.
26903 ac_cv_have_x="have_x=no";; #(
26904 *)
26905 # Record where we found X for the cache.
26906 ac_cv_have_x="have_x=yes\
26907 ac_x_includes='$ac_x_includes'\
26908 ac_x_libraries='$ac_x_libraries'"
26909esac
26910fi
26911;; #(
26912 *) have_x=yes;;
26913 esac
26914 eval "$ac_cv_have_x"
26915fi # $with_x != no
26916
26917if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026919$as_echo "$have_x" >&6; }
26920 no_x=yes
26921else
26922 # If each of the values was on the command line, it overrides each guess.
26923 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26924 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26925 # Update the cache value to reflect the command line values.
26926 ac_cv_have_x="have_x=yes\
26927 ac_x_includes='$x_includes'\
26928 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026930$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26931fi
26932
cristy3ed852e2009-09-05 21:47:34 +000026933if test "$no_x" = yes; then
26934 # Not all programs may use this symbol, but it does not hurt to define it.
26935
cristy8b350f62009-11-15 23:12:43 +000026936$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026937
26938 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26939else
26940 if test -n "$x_includes"; then
26941 X_CFLAGS="$X_CFLAGS -I$x_includes"
26942 fi
26943
26944 # It would also be nice to do this for all -L options, not just this one.
26945 if test -n "$x_libraries"; then
26946 X_LIBS="$X_LIBS -L$x_libraries"
26947 # For Solaris; some versions of Sun CC require a space after -R and
26948 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026950$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26951 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26952 ac_xsave_c_werror_flag=$ac_c_werror_flag
26953 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026955/* end confdefs.h. */
26956
26957int
26958main ()
26959{
26960
26961 ;
26962 return 0;
26963}
26964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026965if ac_fn_c_try_link "$LINENO"; then :
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026967$as_echo "no" >&6; }
26968 X_LIBS="$X_LIBS -R$x_libraries"
26969else
cristy8b350f62009-11-15 23:12:43 +000026970 LIBS="$ac_xsave_LIBS -R $x_libraries"
26971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026972/* end confdefs.h. */
26973
26974int
26975main ()
26976{
26977
26978 ;
26979 return 0;
26980}
26981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026982if ac_fn_c_try_link "$LINENO"; then :
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026984$as_echo "yes" >&6; }
26985 X_LIBS="$X_LIBS -R $x_libraries"
26986else
cristy8b350f62009-11-15 23:12:43 +000026987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026988$as_echo "neither works" >&6; }
26989fi
cristy8b350f62009-11-15 23:12:43 +000026990rm -f core conftest.err conftest.$ac_objext \
26991 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026992fi
cristy8b350f62009-11-15 23:12:43 +000026993rm -f core conftest.err conftest.$ac_objext \
26994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026995 ac_c_werror_flag=$ac_xsave_c_werror_flag
26996 LIBS=$ac_xsave_LIBS
26997 fi
26998
26999 # Check for system-dependent libraries X programs must link with.
27000 # Do this before checking for the system-independent R6 libraries
27001 # (-lICE), since we may need -lsocket or whatever for X linking.
27002
27003 if test "$ISC" = yes; then
27004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27005 else
27006 # Martyn Johnson says this is needed for Ultrix, if the X
27007 # libraries were built with DECnet support. And Karl Berry says
27008 # the Alpha needs dnet_stub (dnet does not exist).
27009 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027011/* end confdefs.h. */
27012
27013/* Override any GCC internal prototype to avoid an error.
27014 Use char because int might match the return type of a GCC
27015 builtin and then its argument prototype would still apply. */
27016#ifdef __cplusplus
27017extern "C"
27018#endif
27019char XOpenDisplay ();
27020int
27021main ()
27022{
27023return XOpenDisplay ();
27024 ;
27025 return 0;
27026}
27027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027028if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027029
cristy8b350f62009-11-15 23:12:43 +000027030else
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027032$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027033if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027034 $as_echo_n "(cached) " >&6
27035else
27036 ac_check_lib_save_LIBS=$LIBS
27037LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027039/* end confdefs.h. */
27040
27041/* Override any GCC internal prototype to avoid an error.
27042 Use char because int might match the return type of a GCC
27043 builtin and then its argument prototype would still apply. */
27044#ifdef __cplusplus
27045extern "C"
27046#endif
27047char dnet_ntoa ();
27048int
27049main ()
27050{
27051return dnet_ntoa ();
27052 ;
27053 return 0;
27054}
27055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027056if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027057 ac_cv_lib_dnet_dnet_ntoa=yes
27058else
cristy8b350f62009-11-15 23:12:43 +000027059 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027060fi
cristy8b350f62009-11-15 23:12:43 +000027061rm -f core conftest.err conftest.$ac_objext \
27062 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027063LIBS=$ac_check_lib_save_LIBS
27064fi
cristy8b350f62009-11-15 23:12:43 +000027065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027066$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027067if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27069fi
27070
27071 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027073$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027074if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 $as_echo_n "(cached) " >&6
27076else
27077 ac_check_lib_save_LIBS=$LIBS
27078LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027080/* end confdefs.h. */
27081
27082/* Override any GCC internal prototype to avoid an error.
27083 Use char because int might match the return type of a GCC
27084 builtin and then its argument prototype would still apply. */
27085#ifdef __cplusplus
27086extern "C"
27087#endif
27088char dnet_ntoa ();
27089int
27090main ()
27091{
27092return dnet_ntoa ();
27093 ;
27094 return 0;
27095}
27096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027097if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027098 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27099else
cristy8b350f62009-11-15 23:12:43 +000027100 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027101fi
cristy8b350f62009-11-15 23:12:43 +000027102rm -f core conftest.err conftest.$ac_objext \
27103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027104LIBS=$ac_check_lib_save_LIBS
27105fi
cristy8b350f62009-11-15 23:12:43 +000027106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027108if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027109 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27110fi
27111
27112 fi
27113fi
cristy8b350f62009-11-15 23:12:43 +000027114rm -f core conftest.err conftest.$ac_objext \
27115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027116 LIBS="$ac_xsave_LIBS"
27117
27118 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27119 # to get the SysV transport functions.
27120 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27121 # needs -lnsl.
27122 # The nsl library prevents programs from opening the X display
27123 # on Irix 5.2, according to T.E. Dickey.
27124 # The functions gethostbyname, getservbyname, and inet_addr are
27125 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027126 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027127if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027128
cristy3ed852e2009-09-05 21:47:34 +000027129fi
27130
cristy3ed852e2009-09-05 21:47:34 +000027131 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027133$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027134if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027135 $as_echo_n "(cached) " >&6
27136else
27137 ac_check_lib_save_LIBS=$LIBS
27138LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027140/* end confdefs.h. */
27141
27142/* Override any GCC internal prototype to avoid an error.
27143 Use char because int might match the return type of a GCC
27144 builtin and then its argument prototype would still apply. */
27145#ifdef __cplusplus
27146extern "C"
27147#endif
27148char gethostbyname ();
27149int
27150main ()
27151{
27152return gethostbyname ();
27153 ;
27154 return 0;
27155}
27156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027157if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027158 ac_cv_lib_nsl_gethostbyname=yes
27159else
cristy8b350f62009-11-15 23:12:43 +000027160 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027161fi
cristy8b350f62009-11-15 23:12:43 +000027162rm -f core conftest.err conftest.$ac_objext \
27163 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027164LIBS=$ac_check_lib_save_LIBS
27165fi
cristy8b350f62009-11-15 23:12:43 +000027166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027168if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27170fi
27171
27172 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027175if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 $as_echo_n "(cached) " >&6
27177else
27178 ac_check_lib_save_LIBS=$LIBS
27179LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027181/* end confdefs.h. */
27182
27183/* Override any GCC internal prototype to avoid an error.
27184 Use char because int might match the return type of a GCC
27185 builtin and then its argument prototype would still apply. */
27186#ifdef __cplusplus
27187extern "C"
27188#endif
27189char gethostbyname ();
27190int
27191main ()
27192{
27193return gethostbyname ();
27194 ;
27195 return 0;
27196}
27197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027199 ac_cv_lib_bsd_gethostbyname=yes
27200else
cristy8b350f62009-11-15 23:12:43 +000027201 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027202fi
cristy8b350f62009-11-15 23:12:43 +000027203rm -f core conftest.err conftest.$ac_objext \
27204 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027205LIBS=$ac_check_lib_save_LIBS
27206fi
cristy8b350f62009-11-15 23:12:43 +000027207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027208$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027209if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27211fi
27212
27213 fi
27214 fi
27215
27216 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27217 # socket/setsockopt and other routines are undefined under SCO ODT
27218 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27219 # on later versions), says Simon Leinen: it contains gethostby*
27220 # variants that don't use the name server (or something). -lsocket
27221 # must be given before -lnsl if both are needed. We assume that
27222 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027223 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027224if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027225
cristy3ed852e2009-09-05 21:47:34 +000027226fi
27227
cristy3ed852e2009-09-05 21:47:34 +000027228 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027231if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027232 $as_echo_n "(cached) " >&6
27233else
27234 ac_check_lib_save_LIBS=$LIBS
27235LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027237/* end confdefs.h. */
27238
27239/* Override any GCC internal prototype to avoid an error.
27240 Use char because int might match the return type of a GCC
27241 builtin and then its argument prototype would still apply. */
27242#ifdef __cplusplus
27243extern "C"
27244#endif
27245char connect ();
27246int
27247main ()
27248{
27249return connect ();
27250 ;
27251 return 0;
27252}
27253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 ac_cv_lib_socket_connect=yes
27256else
cristy8b350f62009-11-15 23:12:43 +000027257 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027258fi
cristy8b350f62009-11-15 23:12:43 +000027259rm -f core conftest.err conftest.$ac_objext \
27260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027261LIBS=$ac_check_lib_save_LIBS
27262fi
cristy8b350f62009-11-15 23:12:43 +000027263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027264$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027265if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027266 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27267fi
27268
27269 fi
27270
27271 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027272 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027273if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027274
cristy3ed852e2009-09-05 21:47:34 +000027275fi
27276
cristy3ed852e2009-09-05 21:47:34 +000027277 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027279$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027280if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027281 $as_echo_n "(cached) " >&6
27282else
27283 ac_check_lib_save_LIBS=$LIBS
27284LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027286/* end confdefs.h. */
27287
27288/* Override any GCC internal prototype to avoid an error.
27289 Use char because int might match the return type of a GCC
27290 builtin and then its argument prototype would still apply. */
27291#ifdef __cplusplus
27292extern "C"
27293#endif
27294char remove ();
27295int
27296main ()
27297{
27298return remove ();
27299 ;
27300 return 0;
27301}
27302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027303if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 ac_cv_lib_posix_remove=yes
27305else
cristy8b350f62009-11-15 23:12:43 +000027306 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027307fi
cristy8b350f62009-11-15 23:12:43 +000027308rm -f core conftest.err conftest.$ac_objext \
27309 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027310LIBS=$ac_check_lib_save_LIBS
27311fi
cristy8b350f62009-11-15 23:12:43 +000027312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027313$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027314if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27316fi
27317
27318 fi
27319
27320 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027321 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027322if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027323
cristy3ed852e2009-09-05 21:47:34 +000027324fi
27325
cristy3ed852e2009-09-05 21:47:34 +000027326 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027328$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027329if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 $as_echo_n "(cached) " >&6
27331else
27332 ac_check_lib_save_LIBS=$LIBS
27333LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027335/* end confdefs.h. */
27336
27337/* Override any GCC internal prototype to avoid an error.
27338 Use char because int might match the return type of a GCC
27339 builtin and then its argument prototype would still apply. */
27340#ifdef __cplusplus
27341extern "C"
27342#endif
27343char shmat ();
27344int
27345main ()
27346{
27347return shmat ();
27348 ;
27349 return 0;
27350}
27351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027352if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027353 ac_cv_lib_ipc_shmat=yes
27354else
cristy8b350f62009-11-15 23:12:43 +000027355 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027356fi
cristy8b350f62009-11-15 23:12:43 +000027357rm -f core conftest.err conftest.$ac_objext \
27358 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027359LIBS=$ac_check_lib_save_LIBS
27360fi
cristy8b350f62009-11-15 23:12:43 +000027361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027363if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27365fi
27366
27367 fi
27368 fi
27369
27370 # Check for libraries that X11R6 Xt/Xaw programs need.
27371 ac_save_LDFLAGS=$LDFLAGS
27372 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27373 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27374 # check for ICE first), but we must link in the order -lSM -lICE or
27375 # we get undefined symbols. So assume we have SM if we have ICE.
27376 # These have to be linked with before -lX11, unlike the other
27377 # libraries we check for below, so use a different variable.
27378 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027381if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 $as_echo_n "(cached) " >&6
27383else
27384 ac_check_lib_save_LIBS=$LIBS
27385LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027387/* end confdefs.h. */
27388
27389/* Override any GCC internal prototype to avoid an error.
27390 Use char because int might match the return type of a GCC
27391 builtin and then its argument prototype would still apply. */
27392#ifdef __cplusplus
27393extern "C"
27394#endif
27395char IceConnectionNumber ();
27396int
27397main ()
27398{
27399return IceConnectionNumber ();
27400 ;
27401 return 0;
27402}
27403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 ac_cv_lib_ICE_IceConnectionNumber=yes
27406else
cristy8b350f62009-11-15 23:12:43 +000027407 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027408fi
cristy8b350f62009-11-15 23:12:43 +000027409rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027411LIBS=$ac_check_lib_save_LIBS
27412fi
cristy8b350f62009-11-15 23:12:43 +000027413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027415if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027416 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27417fi
27418
27419 LDFLAGS=$ac_save_LDFLAGS
27420
27421fi
27422
27423if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27425$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027427$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027428 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27429$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027430 LDFLAGS="$LDFLAGS $X_LIBS"
27431 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27432 LIBS="$X11_LIBS $LIBS"
27433 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27434
27435
cristy8b350f62009-11-15 23:12:43 +000027436$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027437
27438 #
27439 # Check for X11 shared memory extension
27440 #
27441 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027442 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027443if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027444 have_shmctl='yes'
27445fi
27446
27447 if test "$have_shmctl" != 'yes'; then
27448 PERSIST_LIBS=$LIBS
27449 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027451/* end confdefs.h. */
27452
27453/* Override any GCC internal prototype to avoid an error.
27454 Use char because int might match the return type of a GCC
27455 builtin and then its argument prototype would still apply. */
27456#ifdef __cplusplus
27457extern "C"
27458#endif
27459char shmctl ();
27460int
27461main ()
27462{
27463return shmctl ();
27464 ;
27465 return 0;
27466}
27467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027469 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027470fi
cristy8b350f62009-11-15 23:12:43 +000027471rm -f core conftest.err conftest.$ac_objext \
27472 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027473 LIBS=$PERSIST_LIBS
27474 fi
27475
27476 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027479if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027480 $as_echo_n "(cached) " >&6
27481else
27482 ac_check_lib_save_LIBS=$LIBS
27483LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027485/* end confdefs.h. */
27486
27487/* Override any GCC internal prototype to avoid an error.
27488 Use char because int might match the return type of a GCC
27489 builtin and then its argument prototype would still apply. */
27490#ifdef __cplusplus
27491extern "C"
27492#endif
27493char XShmAttach ();
27494int
27495main ()
27496{
27497return XShmAttach ();
27498 ;
27499 return 0;
27500}
27501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027503 ac_cv_lib_Xext_XShmAttach=yes
27504else
cristy8b350f62009-11-15 23:12:43 +000027505 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027506fi
cristy8b350f62009-11-15 23:12:43 +000027507rm -f core conftest.err conftest.$ac_objext \
27508 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027509LIBS=$ac_check_lib_save_LIBS
27510fi
cristy8b350f62009-11-15 23:12:43 +000027511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027512$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027513if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027515$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027516
27517fi
27518
27519 fi
27520
27521 #
27522 # Check for X11 shape extension
27523 #
cristy8b350f62009-11-15 23:12:43 +000027524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027525$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027526if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027527 $as_echo_n "(cached) " >&6
27528else
27529 ac_check_lib_save_LIBS=$LIBS
27530LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027532/* end confdefs.h. */
27533
27534/* Override any GCC internal prototype to avoid an error.
27535 Use char because int might match the return type of a GCC
27536 builtin and then its argument prototype would still apply. */
27537#ifdef __cplusplus
27538extern "C"
27539#endif
27540char XShapeCombineMask ();
27541int
27542main ()
27543{
27544return XShapeCombineMask ();
27545 ;
27546 return 0;
27547}
27548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027549if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027550 ac_cv_lib_Xext_XShapeCombineMask=yes
27551else
cristy8b350f62009-11-15 23:12:43 +000027552 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027553fi
cristy8b350f62009-11-15 23:12:43 +000027554rm -f core conftest.err conftest.$ac_objext \
27555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027556LIBS=$ac_check_lib_save_LIBS
27557fi
cristy8b350f62009-11-15 23:12:43 +000027558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027559$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027560if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027561 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027562$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027563
27564fi
27565
cristy8b350f62009-11-15 23:12:43 +000027566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027567$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027568if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027569 $as_echo_n "(cached) " >&6
27570else
27571 ac_check_lib_save_LIBS=$LIBS
27572LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027574/* end confdefs.h. */
27575
27576/* Override any GCC internal prototype to avoid an error.
27577 Use char because int might match the return type of a GCC
27578 builtin and then its argument prototype would still apply. */
27579#ifdef __cplusplus
27580extern "C"
27581#endif
27582char XtSetEventDispatcher ();
27583int
27584main ()
27585{
27586return XtSetEventDispatcher ();
27587 ;
27588 return 0;
27589}
27590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027592 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27593else
cristy8b350f62009-11-15 23:12:43 +000027594 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027595fi
cristy8b350f62009-11-15 23:12:43 +000027596rm -f core conftest.err conftest.$ac_objext \
27597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027598LIBS=$ac_check_lib_save_LIBS
27599fi
cristy8b350f62009-11-15 23:12:43 +000027600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027601$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027602if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027603 XT_LIBS='-lXt'
27604fi
27605
27606 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27607fi
27608if test "$no_x" != 'yes'; then
27609 have_x='yes'
27610else
27611 have_x='no'
27612fi
cristy73bd4a52010-10-05 11:24:23 +000027613 if test "$have_x" = 'yes'; then
27614 X11_DELEGATE_TRUE=
27615 X11_DELEGATE_FALSE='#'
27616else
27617 X11_DELEGATE_TRUE='#'
27618 X11_DELEGATE_FALSE=
27619fi
27620
cristy3ed852e2009-09-05 21:47:34 +000027621
27622
27623
27624
27625#
27626# Check for ZLIB
27627#
27628
27629# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027630if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027631 withval=$with_zlib; with_zlib=$withval
27632else
27633 with_zlib='yes'
27634fi
27635
27636
27637if test "$with_zlib" != 'yes'; then
27638 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27639fi
27640
27641have_zlib='no'
27642ZLIB_LIBS=''
27643if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027644 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27645$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027647$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027648 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27649$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027650 ZLIB_LIBS=''
27651 failed=0
27652 passed=0
cristy8b350f62009-11-15 23:12:43 +000027653 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027654if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027655 passed=`expr $passed + 1`
27656else
27657 failed=`expr $failed + 1`
27658fi
27659
27660
cristy8b350f62009-11-15 23:12:43 +000027661 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027662if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027663 passed=`expr $passed + 1`
27664else
27665 failed=`expr $failed + 1`
27666fi
27667
27668
cristy8b350f62009-11-15 23:12:43 +000027669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027670$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027671if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027672 $as_echo_n "(cached) " >&6
27673else
27674 ac_check_lib_save_LIBS=$LIBS
27675LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027677/* end confdefs.h. */
27678
27679/* Override any GCC internal prototype to avoid an error.
27680 Use char because int might match the return type of a GCC
27681 builtin and then its argument prototype would still apply. */
27682#ifdef __cplusplus
27683extern "C"
27684#endif
27685char compress ();
27686int
27687main ()
27688{
27689return compress ();
27690 ;
27691 return 0;
27692}
27693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027694if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027695 ac_cv_lib_z_compress=yes
27696else
cristy8b350f62009-11-15 23:12:43 +000027697 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027698fi
cristy8b350f62009-11-15 23:12:43 +000027699rm -f core conftest.err conftest.$ac_objext \
27700 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027701LIBS=$ac_check_lib_save_LIBS
27702fi
cristy8b350f62009-11-15 23:12:43 +000027703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027705if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027706 passed=`expr $passed + 1`
27707else
27708 failed=`expr $failed + 1`
27709fi
27710
cristy8b350f62009-11-15 23:12:43 +000027711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027712$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027713if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027714 $as_echo_n "(cached) " >&6
27715else
27716 ac_check_lib_save_LIBS=$LIBS
27717LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027719/* end confdefs.h. */
27720
27721/* Override any GCC internal prototype to avoid an error.
27722 Use char because int might match the return type of a GCC
27723 builtin and then its argument prototype would still apply. */
27724#ifdef __cplusplus
27725extern "C"
27726#endif
27727char uncompress ();
27728int
27729main ()
27730{
27731return uncompress ();
27732 ;
27733 return 0;
27734}
27735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027736if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027737 ac_cv_lib_z_uncompress=yes
27738else
cristy8b350f62009-11-15 23:12:43 +000027739 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027740fi
cristy8b350f62009-11-15 23:12:43 +000027741rm -f core conftest.err conftest.$ac_objext \
27742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027743LIBS=$ac_check_lib_save_LIBS
27744fi
cristy8b350f62009-11-15 23:12:43 +000027745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027746$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027747if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027748 passed=`expr $passed + 1`
27749else
27750 failed=`expr $failed + 1`
27751fi
27752
cristy8b350f62009-11-15 23:12:43 +000027753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027754$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027755if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027756 $as_echo_n "(cached) " >&6
27757else
27758 ac_check_lib_save_LIBS=$LIBS
27759LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027761/* end confdefs.h. */
27762
27763/* Override any GCC internal prototype to avoid an error.
27764 Use char because int might match the return type of a GCC
27765 builtin and then its argument prototype would still apply. */
27766#ifdef __cplusplus
27767extern "C"
27768#endif
27769char deflate ();
27770int
27771main ()
27772{
27773return deflate ();
27774 ;
27775 return 0;
27776}
27777_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027778if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027779 ac_cv_lib_z_deflate=yes
27780else
cristy8b350f62009-11-15 23:12:43 +000027781 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027782fi
cristy8b350f62009-11-15 23:12:43 +000027783rm -f core conftest.err conftest.$ac_objext \
27784 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027785LIBS=$ac_check_lib_save_LIBS
27786fi
cristy8b350f62009-11-15 23:12:43 +000027787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027788$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027789if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027790 passed=`expr $passed + 1`
27791else
27792 failed=`expr $failed + 1`
27793fi
27794
cristy8b350f62009-11-15 23:12:43 +000027795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027796$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027797if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027798 $as_echo_n "(cached) " >&6
27799else
27800 ac_check_lib_save_LIBS=$LIBS
27801LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027803/* end confdefs.h. */
27804
27805/* Override any GCC internal prototype to avoid an error.
27806 Use char because int might match the return type of a GCC
27807 builtin and then its argument prototype would still apply. */
27808#ifdef __cplusplus
27809extern "C"
27810#endif
27811char inflate ();
27812int
27813main ()
27814{
27815return inflate ();
27816 ;
27817 return 0;
27818}
27819_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027820if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027821 ac_cv_lib_z_inflate=yes
27822else
cristy8b350f62009-11-15 23:12:43 +000027823 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027824fi
cristy8b350f62009-11-15 23:12:43 +000027825rm -f core conftest.err conftest.$ac_objext \
27826 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027827LIBS=$ac_check_lib_save_LIBS
27828fi
cristy8b350f62009-11-15 23:12:43 +000027829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027830$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027831if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027832 passed=`expr $passed + 1`
27833else
27834 failed=`expr $failed + 1`
27835fi
27836
cristy8b350f62009-11-15 23:12:43 +000027837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027838$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027839if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027840 $as_echo_n "(cached) " >&6
27841else
27842 ac_check_lib_save_LIBS=$LIBS
27843LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027845/* end confdefs.h. */
27846
27847/* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850#ifdef __cplusplus
27851extern "C"
27852#endif
27853char gzseek ();
27854int
27855main ()
27856{
27857return gzseek ();
27858 ;
27859 return 0;
27860}
27861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027862if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 ac_cv_lib_z_gzseek=yes
27864else
cristy8b350f62009-11-15 23:12:43 +000027865 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027866fi
cristy8b350f62009-11-15 23:12:43 +000027867rm -f core conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869LIBS=$ac_check_lib_save_LIBS
27870fi
cristy8b350f62009-11-15 23:12:43 +000027871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027872$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027873if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027874 passed=`expr $passed + 1`
27875else
27876 failed=`expr $failed + 1`
27877fi
27878
cristy8b350f62009-11-15 23:12:43 +000027879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027880$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027881if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027882 $as_echo_n "(cached) " >&6
27883else
27884 ac_check_lib_save_LIBS=$LIBS
27885LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027887/* end confdefs.h. */
27888
27889/* Override any GCC internal prototype to avoid an error.
27890 Use char because int might match the return type of a GCC
27891 builtin and then its argument prototype would still apply. */
27892#ifdef __cplusplus
27893extern "C"
27894#endif
27895char gztell ();
27896int
27897main ()
27898{
27899return gztell ();
27900 ;
27901 return 0;
27902}
27903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027905 ac_cv_lib_z_gztell=yes
27906else
cristy8b350f62009-11-15 23:12:43 +000027907 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027908fi
cristy8b350f62009-11-15 23:12:43 +000027909rm -f core conftest.err conftest.$ac_objext \
27910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027911LIBS=$ac_check_lib_save_LIBS
27912fi
cristy8b350f62009-11-15 23:12:43 +000027913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027914$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027915if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027916 passed=`expr $passed + 1`
27917else
27918 failed=`expr $failed + 1`
27919fi
27920
cristy8b350f62009-11-15 23:12:43 +000027921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027922$as_echo_n "checking if ZLIB package is complete... " >&6; }
27923 if test $passed -gt 0; then
27924 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027925 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27926$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027927 have_zlib='no (failed tests)'
27928 else
27929 ZLIB_LIBS='-lz'
27930 LIBS="$ZLIB_LIBS $LIBS"
27931
cristy8b350f62009-11-15 23:12:43 +000027932$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027933
cristy09b53e12011-10-14 12:47:22 +000027934 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27935$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027936 have_zlib='yes'
27937 fi
27938 else
cristy09b53e12011-10-14 12:47:22 +000027939 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27940$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027941 fi
27942fi
cristy73bd4a52010-10-05 11:24:23 +000027943 if test "$have_zlib" = 'yes'; then
27944 ZLIB_DELEGATE_TRUE=
27945 ZLIB_DELEGATE_FALSE='#'
27946else
27947 ZLIB_DELEGATE_TRUE='#'
27948 ZLIB_DELEGATE_FALSE=
27949fi
27950
cristy3ed852e2009-09-05 21:47:34 +000027951
27952
27953#
27954# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27955#
27956LIB_DL=''
27957if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027960if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027961 $as_echo_n "(cached) " >&6
27962else
27963 ac_check_lib_save_LIBS=$LIBS
27964LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027966/* end confdefs.h. */
27967
27968/* Override any GCC internal prototype to avoid an error.
27969 Use char because int might match the return type of a GCC
27970 builtin and then its argument prototype would still apply. */
27971#ifdef __cplusplus
27972extern "C"
27973#endif
27974char dlopen ();
27975int
27976main ()
27977{
27978return dlopen ();
27979 ;
27980 return 0;
27981}
27982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027983if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027984 ac_cv_lib_dl_dlopen=yes
27985else
cristy8b350f62009-11-15 23:12:43 +000027986 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027987fi
cristy8b350f62009-11-15 23:12:43 +000027988rm -f core conftest.err conftest.$ac_objext \
27989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027990LIBS=$ac_check_lib_save_LIBS
27991fi
cristy8b350f62009-11-15 23:12:43 +000027992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027993$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027994if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027995 LIB_DL='-ldl'
27996fi
27997
27998 LIBS="$LIB_DL $LIBS"
27999fi
28000
28001
28002
28003#
28004# Check for Autotrace delegate library.
28005#
28006
28007# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028008if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028009 withval=$with_autotrace; with_autotrace=$withval
28010else
28011 with_autotrace='no'
28012fi
28013
28014
28015if test "$with_autotrace" != 'yes'; then
28016 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28017fi
28018
28019have_autotrace='no'
28020AUTOTRACE_CFLAGS=""
28021AUTOTRACE_LIBS=""
28022AUTOTRACE_PKG=""
28023if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028024 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28025$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028026
28027pkg_failed=no
28028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28029$as_echo_n "checking for AUTOTRACE... " >&6; }
28030
28031if test -n "$AUTOTRACE_CFLAGS"; then
28032 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28033 elif test -n "$PKG_CONFIG"; then
28034 if test -n "$PKG_CONFIG" && \
28035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28036 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28037 ac_status=$?
28038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28039 test $ac_status = 0; }; then
28040 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28041else
28042 pkg_failed=yes
28043fi
28044 else
28045 pkg_failed=untried
28046fi
28047if test -n "$AUTOTRACE_LIBS"; then
28048 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28049 elif test -n "$PKG_CONFIG"; then
28050 if test -n "$PKG_CONFIG" && \
28051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28052 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28053 ac_status=$?
28054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28055 test $ac_status = 0; }; then
28056 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28057else
28058 pkg_failed=yes
28059fi
28060 else
28061 pkg_failed=untried
28062fi
28063
28064
28065
28066if test $pkg_failed = yes; then
28067
28068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28069 _pkg_short_errors_supported=yes
28070else
28071 _pkg_short_errors_supported=no
28072fi
28073 if test $_pkg_short_errors_supported = yes; then
28074 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28075 else
28076 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28077 fi
28078 # Put the nasty error message in config.log where it belongs
28079 echo "$AUTOTRACE_PKG_ERRORS" >&5
28080
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28082$as_echo "no" >&6; }
28083 have_autotrace=no
28084elif test $pkg_failed = untried; then
28085 have_autotrace=no
28086else
28087 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28088 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28090$as_echo "yes" >&6; }
28091 have_autotrace=yes
28092fi
cristy09b53e12011-10-14 12:47:22 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28094$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028095fi
28096
28097if test "$have_autotrace" = 'yes'; then
28098 failed=0
28099
cristy8b350f62009-11-15 23:12:43 +000028100$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028101
28102 if test "$with_modules" = 'no'; then
28103 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28104 fi
28105fi
28106
cristy73bd4a52010-10-05 11:24:23 +000028107 if test "$have_autotrace" = 'yes'; then
28108 AUTOTRACE_DELEGATE_TRUE=
28109 AUTOTRACE_DELEGATE_FALSE='#'
28110else
28111 AUTOTRACE_DELEGATE_TRUE='#'
28112 AUTOTRACE_DELEGATE_FALSE=
28113fi
28114
cristy3ed852e2009-09-05 21:47:34 +000028115
28116
28117
28118
28119#
28120# Check for Display Postscript delegate library.
28121#
28122
28123# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028124if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028125 withval=$with_dps; with_dps=$withval
28126else
28127 with_dps='yes'
28128fi
28129
28130
28131if test "$with_dps" != 'yes'; then
28132 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28133fi
28134
28135have_dps='no'
28136DPS_LIBS=''
28137if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028138 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28139$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028141$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28143$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028144 failed=0
28145 passed=0
28146 PERSIST_CPPFLAGS="$CPPFLAGS"
28147 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028148 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 +000028149if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028150 passed=`expr $passed + 1`
28151else
28152 failed=`expr $failed + 1`
28153fi
28154
28155
28156 # DPS issues:
28157 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28158 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28159 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28160 # ImageMagick itself doesn't use -lXt.
28161 have_libdps='no'
28162 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028164$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028165if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028166 $as_echo_n "(cached) " >&6
28167else
28168 ac_check_lib_save_LIBS=$LIBS
28169LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028171/* end confdefs.h. */
28172
28173/* Override any GCC internal prototype to avoid an error.
28174 Use char because int might match the return type of a GCC
28175 builtin and then its argument prototype would still apply. */
28176#ifdef __cplusplus
28177extern "C"
28178#endif
28179char DPSInitialize ();
28180int
28181main ()
28182{
28183return DPSInitialize ();
28184 ;
28185 return 0;
28186}
28187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028188if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028189 ac_cv_lib_dps_DPSInitialize=yes
28190else
cristy8b350f62009-11-15 23:12:43 +000028191 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028192fi
cristy8b350f62009-11-15 23:12:43 +000028193rm -f core conftest.err conftest.$ac_objext \
28194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028195LIBS=$ac_check_lib_save_LIBS
28196fi
cristy8b350f62009-11-15 23:12:43 +000028197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028198$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028199if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028200 have_libdps='yes'
28201else
28202 have_libdps='no'
28203fi
28204
28205 if test "$have_libdps" != 'yes'; then
28206 # Unset cache variable so we can try again.
28207 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028209$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028210if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028211 $as_echo_n "(cached) " >&6
28212else
28213 ac_check_lib_save_LIBS=$LIBS
28214LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028216/* end confdefs.h. */
28217
28218/* Override any GCC internal prototype to avoid an error.
28219 Use char because int might match the return type of a GCC
28220 builtin and then its argument prototype would still apply. */
28221#ifdef __cplusplus
28222extern "C"
28223#endif
28224char DPSInitialize ();
28225int
28226main ()
28227{
28228return DPSInitialize ();
28229 ;
28230 return 0;
28231}
28232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 ac_cv_lib_dps_DPSInitialize=yes
28235else
cristy8b350f62009-11-15 23:12:43 +000028236 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028237fi
cristy8b350f62009-11-15 23:12:43 +000028238rm -f core conftest.err conftest.$ac_objext \
28239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028240LIBS=$ac_check_lib_save_LIBS
28241fi
cristy8b350f62009-11-15 23:12:43 +000028242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028243$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028244if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028245 have_libdps='yes'
28246else
28247 have_libdps='no'
28248fi
28249
28250 if test "$have_libdps" = 'yes'; then
28251 LIBDPS_XT='-lXt'
28252 fi
28253 fi
28254 if test "$have_libdps" = 'yes'; then
28255 passed=`expr $passed + 1`
28256 else
28257 failed=`expr $failed + 1`
28258 fi
cristy8b350f62009-11-15 23:12:43 +000028259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028261if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 $as_echo_n "(cached) " >&6
28263else
28264 ac_check_lib_save_LIBS=$LIBS
28265LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028267/* end confdefs.h. */
28268
28269/* Override any GCC internal prototype to avoid an error.
28270 Use char because int might match the return type of a GCC
28271 builtin and then its argument prototype would still apply. */
28272#ifdef __cplusplus
28273extern "C"
28274#endif
28275char XDPSPixelsPerPoint ();
28276int
28277main ()
28278{
28279return XDPSPixelsPerPoint ();
28280 ;
28281 return 0;
28282}
28283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028285 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28286else
cristy8b350f62009-11-15 23:12:43 +000028287 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028288fi
cristy8b350f62009-11-15 23:12:43 +000028289rm -f core conftest.err conftest.$ac_objext \
28290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028291LIBS=$ac_check_lib_save_LIBS
28292fi
cristy8b350f62009-11-15 23:12:43 +000028293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028294$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028295if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028296 passed=`expr $passed + 1`
28297else
28298 failed=`expr $failed + 1`
28299fi
28300
cristy8b350f62009-11-15 23:12:43 +000028301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028302$as_echo_n "checking if DPS package is complete... " >&6; }
28303 if test $passed -gt 0; then
28304 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028305 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28306$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028307 have_dps='no (failed tests)'
28308 CPPFLAGS="$PERSIST_CPPFLAGS"
28309 else
28310 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28311 LIBS="$DPS_LIBS $LIBS"
28312
cristy8b350f62009-11-15 23:12:43 +000028313$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028314
cristy09b53e12011-10-14 12:47:22 +000028315 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28316$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028317 have_dps='yes'
28318 fi
28319 else
cristy09b53e12011-10-14 12:47:22 +000028320 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28321$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028322 CPPFLAGS=$PERSIST_CPPFLAGS
28323 fi
28324fi
cristy73bd4a52010-10-05 11:24:23 +000028325 if test "$have_dps" = 'yes'; then
28326 DPS_DELEGATE_TRUE=
28327 DPS_DELEGATE_FALSE='#'
28328else
28329 DPS_DELEGATE_TRUE='#'
28330 DPS_DELEGATE_FALSE=
28331fi
28332
cristy3ed852e2009-09-05 21:47:34 +000028333
28334
28335
28336#
28337# Check for DJVU delegate library.
28338#
28339
28340# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028341if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028342 withval=$with_djvu; with_djvu=$withval
28343else
28344 with_djvu='yes'
28345fi
28346
28347
28348if test "$with_djvu" != 'yes'; then
28349 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28350fi
28351
28352have_djvu='no'
28353DJVU_LIBS=''
28354if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028355 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28356$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028358$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028359 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28360$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028361 failed=0
28362 passed=0
cristy8b350f62009-11-15 23:12:43 +000028363 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 +000028364if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 passed=`expr $passed + 1`
28366else
28367 failed=`expr $failed + 1`
28368fi
28369
28370
cristy8b350f62009-11-15 23:12:43 +000028371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028372$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028373if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 $as_echo_n "(cached) " >&6
28375else
28376 ac_check_lib_save_LIBS=$LIBS
28377LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028379/* end confdefs.h. */
28380
28381/* Override any GCC internal prototype to avoid an error.
28382 Use char because int might match the return type of a GCC
28383 builtin and then its argument prototype would still apply. */
28384#ifdef __cplusplus
28385extern "C"
28386#endif
28387char ddjvu_context_create ();
28388int
28389main ()
28390{
28391return ddjvu_context_create ();
28392 ;
28393 return 0;
28394}
28395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028397 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28398else
cristy8b350f62009-11-15 23:12:43 +000028399 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028400fi
cristy8b350f62009-11-15 23:12:43 +000028401rm -f core conftest.err conftest.$ac_objext \
28402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028403LIBS=$ac_check_lib_save_LIBS
28404fi
cristy8b350f62009-11-15 23:12:43 +000028405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028407if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 passed=`expr $passed + 1`
28409else
28410 failed=`expr $failed + 1`
28411fi
28412
cristy8b350f62009-11-15 23:12:43 +000028413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028414$as_echo_n "checking if DJVU package is complete... " >&6; }
28415 if test $passed -gt 0; then
28416 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028417 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28418$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028419 have_djvu='no (failed tests)'
28420 else
28421 DJVU_LIBS='-ldjvulibre'
28422 LIBS="$DJVU_LIBS $LIBS"
28423
cristy8b350f62009-11-15 23:12:43 +000028424$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028425
cristy09b53e12011-10-14 12:47:22 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28427$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028428 have_djvu='yes'
28429 fi
28430 else
cristy09b53e12011-10-14 12:47:22 +000028431 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28432$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028433 fi
28434fi
cristy73bd4a52010-10-05 11:24:23 +000028435 if test "$have_djvu" = 'yes'; then
28436 DJVU_DELEGATE_TRUE=
28437 DJVU_DELEGATE_FALSE='#'
28438else
28439 DJVU_DELEGATE_TRUE='#'
28440 DJVU_DELEGATE_FALSE=
28441fi
28442
cristy3ed852e2009-09-05 21:47:34 +000028443
28444
28445
28446#
cristy430a7312010-01-21 20:44:04 +000028447# Set DejaVu font directory.
28448#
28449
28450# Check whether --with-dejavu-font-dir was given.
28451if test "${with_dejavu_font_dir+set}" = set; then :
28452 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28453else
28454 with_dejavu_font_dir='default'
28455fi
28456
28457
28458if test "$with_dejavu_font_dir" != 'default'; then
28459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28460fi
28461
28462
28463#
cristy3ed852e2009-09-05 21:47:34 +000028464# Check for FFTW delegate library.
28465#
28466
28467# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028468if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028469 withval=$with_fftw; with_fftw=$withval
28470else
28471 with_fftw='yes'
28472fi
28473
28474
28475if test "$with_fftw" != 'yes'; then
28476 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28477fi
28478
cristy81beccd2011-10-03 18:17:24 +000028479have_fftw='no'
28480FFTW_LIBS=''
28481if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028482 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28483$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28485$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28487$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028488 failed=0
28489 passed=0
28490 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28491if test "x$ac_cv_header_fftw3_h" = xyes; then :
28492 passed=`expr $passed + 1`
28493else
28494 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028495fi
28496
cristy81beccd2011-10-03 18:17:24 +000028497
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28499$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28500if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28501 $as_echo_n "(cached) " >&6
28502else
28503 ac_check_lib_save_LIBS=$LIBS
28504LIBS="-lfftw3 $LIBS"
28505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28506/* end confdefs.h. */
28507
28508/* Override any GCC internal prototype to avoid an error.
28509 Use char because int might match the return type of a GCC
28510 builtin and then its argument prototype would still apply. */
28511#ifdef __cplusplus
28512extern "C"
28513#endif
28514char fftw_execute ();
28515int
28516main ()
28517{
28518return fftw_execute ();
28519 ;
28520 return 0;
28521}
28522_ACEOF
28523if ac_fn_c_try_link "$LINENO"; then :
28524 ac_cv_lib_fftw3_fftw_execute=yes
28525else
28526 ac_cv_lib_fftw3_fftw_execute=no
28527fi
28528rm -f core conftest.err conftest.$ac_objext \
28529 conftest$ac_exeext conftest.$ac_ext
28530LIBS=$ac_check_lib_save_LIBS
28531fi
28532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28533$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28534if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28535 passed=`expr $passed + 1`
28536else
28537 failed=`expr $failed + 1`
28538fi
28539
28540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28541$as_echo_n "checking if FFTW package is complete... " >&6; }
28542 if test $passed -gt 0; then
28543 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028544 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28545$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028546 have_fftw='no (failed tests)'
28547 else
28548 FFTW_LIBS='-lfftw3'
28549 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028550
cristy8b350f62009-11-15 23:12:43 +000028551$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028552
cristy09b53e12011-10-14 12:47:22 +000028553 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28554$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028555 have_fftw='yes'
28556 fi
28557 else
cristy09b53e12011-10-14 12:47:22 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28559$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028560 fi
28561fi
cristy73bd4a52010-10-05 11:24:23 +000028562 if test "$have_fftw" = 'yes'; then
28563 FFTW_DELEGATE_TRUE=
28564 FFTW_DELEGATE_FALSE='#'
28565else
28566 FFTW_DELEGATE_TRUE='#'
28567 FFTW_DELEGATE_FALSE=
28568fi
28569
cristy3ed852e2009-09-05 21:47:34 +000028570
28571
28572
28573#
28574# Check for FlashPIX delegate library.
28575#
28576
28577# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028578if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028579 withval=$with_fpx; with_fpx=$withval
28580else
28581 with_fpx='yes'
28582fi
28583
28584
28585if test "$with_fpx" != 'yes'; then
28586 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28587fi
28588
28589have_fpx='no'
28590FPX_LIBS=''
28591if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028592 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28593$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028595$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028596 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28597$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028598 failed=0
28599 passed=0
28600 ac_ext=cpp
28601ac_cpp='$CXXCPP $CPPFLAGS'
28602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28605
28606
cristy8b350f62009-11-15 23:12:43 +000028607ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028608if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028609 passed=`expr $passed + 1`
28610else
28611 failed=`expr $failed + 1`
28612fi
28613
28614
cristy8b350f62009-11-15 23:12:43 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028616$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028617if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028618 $as_echo_n "(cached) " >&6
28619else
28620 ac_check_lib_save_LIBS=$LIBS
28621LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028623/* end confdefs.h. */
28624
28625/* Override any GCC internal prototype to avoid an error.
28626 Use char because int might match the return type of a GCC
28627 builtin and then its argument prototype would still apply. */
28628#ifdef __cplusplus
28629extern "C"
28630#endif
28631char FPX_OpenImageByFilename ();
28632int
28633main ()
28634{
28635return FPX_OpenImageByFilename ();
28636 ;
28637 return 0;
28638}
28639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028640if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028641 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28642else
cristy8b350f62009-11-15 23:12:43 +000028643 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028644fi
cristy8b350f62009-11-15 23:12:43 +000028645rm -f core conftest.err conftest.$ac_objext \
28646 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028647LIBS=$ac_check_lib_save_LIBS
28648fi
cristy8b350f62009-11-15 23:12:43 +000028649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028650$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028651if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028652 passed=`expr $passed + 1`
28653else
28654 failed=`expr $failed + 1`
28655fi
28656
28657 ac_ext=c
28658ac_cpp='$CPP $CPPFLAGS'
28659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28661ac_compiler_gnu=$ac_cv_c_compiler_gnu
28662
cristy8b350f62009-11-15 23:12:43 +000028663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028664$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28665 if test $passed -gt 0; then
28666 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28668$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028669 have_fpx='no (failed tests)'
28670 else
28671 FPX_LIBS='-lfpx'
28672
cristy8b350f62009-11-15 23:12:43 +000028673$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028674
cristy09b53e12011-10-14 12:47:22 +000028675 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28676$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028677 have_fpx='yes'
28678 PERLMAINCC="$CXX"
28679 fi
28680 else
cristy09b53e12011-10-14 12:47:22 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28682$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028683 fi
28684fi
cristy73bd4a52010-10-05 11:24:23 +000028685 if test "$have_fpx" = 'yes'; then
28686 FPX_DELEGATE_TRUE=
28687 FPX_DELEGATE_FALSE='#'
28688else
28689 FPX_DELEGATE_TRUE='#'
28690 FPX_DELEGATE_FALSE=
28691fi
28692
cristy3ed852e2009-09-05 21:47:34 +000028693
28694
28695
28696#
28697# Check for fontconfig delegate library.
28698#
28699
28700# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028701if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028702 withval=$with_fontconfig; with_fontconfig=$withval
28703else
28704 with_fontconfig=$have_x
28705fi
28706
28707
28708if test "$with_fontconfig" != 'yes'; then
28709 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28710fi
28711
28712have_fontconfig='no'
28713FONTCONFIG_CFLAGS=""
28714FONTCONFIG_LIBS=""
28715FONTCONFIG_PKG=""
28716if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028717 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28718$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028719
28720pkg_failed=no
28721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28722$as_echo_n "checking for FONTCONFIG... " >&6; }
28723
28724if test -n "$FONTCONFIG_CFLAGS"; then
28725 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28726 elif test -n "$PKG_CONFIG"; then
28727 if test -n "$PKG_CONFIG" && \
28728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28729 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28730 ac_status=$?
28731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28732 test $ac_status = 0; }; then
28733 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28734else
28735 pkg_failed=yes
28736fi
28737 else
28738 pkg_failed=untried
28739fi
28740if test -n "$FONTCONFIG_LIBS"; then
28741 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28742 elif test -n "$PKG_CONFIG"; then
28743 if test -n "$PKG_CONFIG" && \
28744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28745 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28746 ac_status=$?
28747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28748 test $ac_status = 0; }; then
28749 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28750else
28751 pkg_failed=yes
28752fi
28753 else
28754 pkg_failed=untried
28755fi
28756
28757
28758
28759if test $pkg_failed = yes; then
28760
28761if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28762 _pkg_short_errors_supported=yes
28763else
28764 _pkg_short_errors_supported=no
28765fi
28766 if test $_pkg_short_errors_supported = yes; then
28767 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28768 else
28769 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28770 fi
28771 # Put the nasty error message in config.log where it belongs
28772 echo "$FONTCONFIG_PKG_ERRORS" >&5
28773
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28775$as_echo "no" >&6; }
28776 have_fontconfig=no
28777elif test $pkg_failed = untried; then
28778 have_fontconfig=no
28779else
28780 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28781 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28783$as_echo "yes" >&6; }
28784 have_fontconfig=yes
28785fi
cristy09b53e12011-10-14 12:47:22 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28787$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028788fi
28789
28790if test "$have_fontconfig" = 'yes'; then
28791
cristy8b350f62009-11-15 23:12:43 +000028792$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028793
cristyd09bcf92010-03-25 03:04:45 +000028794 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028795 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028796 fi
cristy3ed852e2009-09-05 21:47:34 +000028797fi
28798
cristy73bd4a52010-10-05 11:24:23 +000028799 if test "$have_fontconfig" = 'yes'; then
28800 FONTCONFIG_DELEGATE_TRUE=
28801 FONTCONFIG_DELEGATE_FALSE='#'
28802else
28803 FONTCONFIG_DELEGATE_TRUE='#'
28804 FONTCONFIG_DELEGATE_FALSE=
28805fi
28806
cristy3ed852e2009-09-05 21:47:34 +000028807
28808
28809
28810
28811#
cristy81beccd2011-10-03 18:17:24 +000028812# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028813#
28814
28815# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028816if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028817 withval=$with_freetype; with_freetype=$withval
28818else
28819 with_freetype='yes'
28820fi
28821
28822
cristy81beccd2011-10-03 18:17:24 +000028823
cristy3ed852e2009-09-05 21:47:34 +000028824if test "$with_freetype" != 'yes'; then
28825 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28826fi
28827
cristy81beccd2011-10-03 18:17:24 +000028828have_freetype='no'
28829FREETYPE_LIBS=''
28830if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28832$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28834$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28836$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028837 failed=0
28838 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028839 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028840 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028841 freetype_config=''
28842 # Allow the user to specify the location of freetype.
28843 if test "$with_freetype" != 'yes'; then
28844 if test -x "${with_freetype}/bin/freetype-config"; then
28845 freetype_config="${with_freetype}/bin/freetype-config"
28846 elif test -x "${with_freetype}"; then
28847 freetype_config=${with_freetype}
28848 fi
28849 fi
28850 if test -z "$freetype_config"; then
28851 # Extract the first word of "freetype-config", so it can be a program name with args.
28852set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28854$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028855if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028856 $as_echo_n "(cached) " >&6
28857else
cristy98ca0f52011-10-08 23:19:10 +000028858 case $freetype_config in
28859 [\\/]* | ?:[\\/]*)
28860 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28861 ;;
28862 *)
28863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028864for as_dir in $PATH
28865do
28866 IFS=$as_save_IFS
28867 test -z "$as_dir" && as_dir=.
28868 for ac_exec_ext in '' $ac_executable_extensions; do
28869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028870 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28872 break 2
28873 fi
28874done
28875 done
28876IFS=$as_save_IFS
28877
cristy98ca0f52011-10-08 23:19:10 +000028878 ;;
28879esac
cristy81beccd2011-10-03 18:17:24 +000028880fi
cristy98ca0f52011-10-08 23:19:10 +000028881freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028882if test -n "$freetype_config"; then
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28884$as_echo "$freetype_config" >&6; }
28885else
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28887$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028888fi
28889
cristy98ca0f52011-10-08 23:19:10 +000028890 fi
28891 if test -n "$freetype_config"; then
28892 freetype_prefix=`${freetype_config} --prefix`
28893 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28894 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28895 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028896 fi
28897
28898 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028900$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28901if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28902 $as_echo_n "(cached) " >&6
28903else
28904 ac_check_lib_save_LIBS=$LIBS
28905LIBS="-lfreetype $LIBS"
28906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28907/* end confdefs.h. */
28908
28909/* Override any GCC internal prototype to avoid an error.
28910 Use char because int might match the return type of a GCC
28911 builtin and then its argument prototype would still apply. */
28912#ifdef __cplusplus
28913extern "C"
28914#endif
28915char FT_Init_FreeType ();
28916int
28917main ()
28918{
28919return FT_Init_FreeType ();
28920 ;
28921 return 0;
28922}
28923_ACEOF
28924if ac_fn_c_try_link "$LINENO"; then :
28925 ac_cv_lib_freetype_FT_Init_FreeType=yes
28926else
28927 ac_cv_lib_freetype_FT_Init_FreeType=no
28928fi
28929rm -f core conftest.err conftest.$ac_objext \
28930 conftest$ac_exeext conftest.$ac_ext
28931LIBS=$ac_check_lib_save_LIBS
28932fi
28933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28934$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28935if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28936 FREETYPE_LIBS='-lfreetype'
28937fi
28938
cristy98ca0f52011-10-08 23:19:10 +000028939 if test "$FREETYPE_LIBS" != ''; then
28940 passed=`expr $passed + 1`
28941 else
28942 failed=`expr $failed + 1`
28943 LDFLAGS="$PERSIST_LDFLAGS"
28944 fi
cristy81beccd2011-10-03 18:17:24 +000028945 fi
28946
28947 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28948if test "x$ac_cv_header_ft2build_h" = xyes; then :
28949 FT2BUILD_H='#include <ft2build.h>'
28950else
28951 ft2build=''
28952fi
28953
28954
28955 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28956"
28957if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28958 have_freetype_h='yes'
28959else
28960 have_freetype_h='no'
28961fi
28962
28963
cristy98ca0f52011-10-08 23:19:10 +000028964 if test "$have_freetype_h" = 'yes'; then
28965 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028966 else
cristy98ca0f52011-10-08 23:19:10 +000028967 failed=`expr $failed + 1`
28968 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028969 fi
28970
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28972$as_echo_n "checking if FreeType package is complete... " >&6; }
28973 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028974 if test $failed -gt 0; then
28975 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28977$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028978 have_freetype='no (failed tests)'
28979 else
28980 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028981
cristy8b350f62009-11-15 23:12:43 +000028982$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028983
cristy98ca0f52011-10-08 23:19:10 +000028984 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028985
28986$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28987
cristy81beccd2011-10-03 18:17:24 +000028988 fi
cristy09b53e12011-10-14 12:47:22 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28990$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028991 have_freetype='yes'
28992 fi
cristy81beccd2011-10-03 18:17:24 +000028993 else
cristy09b53e12011-10-14 12:47:22 +000028994 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28995$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028996 fi
28997fi
cristy73bd4a52010-10-05 11:24:23 +000028998 if test "$have_freetype" = 'yes'; then
28999 FREETYPE_DELEGATE_TRUE=
29000 FREETYPE_DELEGATE_FALSE='#'
29001else
29002 FREETYPE_DELEGATE_TRUE='#'
29003 FREETYPE_DELEGATE_FALSE=
29004fi
29005
cristy3ed852e2009-09-05 21:47:34 +000029006
29007
29008
cristy3ed852e2009-09-05 21:47:34 +000029009#
29010# Check for Ghostscript library or framework.
29011#
29012# Test for iapi.h & test for gsapi_new_instance in -lgs
29013# or -framework Ghostscript
29014
29015
29016# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029017if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029018 withval=$with_gslib; with_gslib=$withval
29019else
29020 with_gslib='no'
29021fi
29022
29023
cristyb7931f12009-09-25 10:22:21 +000029024gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029025if test "$with_gslib" != 'yes'; then
29026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29027fi
29028
29029have_gslib='no'
29030GS_LIBS=''
29031if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029032 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29033$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029035$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029036 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29037$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029038 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029039 failed=0
29040 passed=0
cristy8b350f62009-11-15 23:12:43 +000029041 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 +000029042if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029043 passed=`expr $passed + 1`
29044else
29045 failed=`expr $failed + 1`
29046fi
29047
29048
cristy8b350f62009-11-15 23:12:43 +000029049 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 +000029050if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029051 passed=`expr $passed + 1`
29052else
29053 failed=`expr $failed + 1`
29054fi
29055
29056
cristy73bd4a52010-10-05 11:24:23 +000029057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29058$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029059if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029060 $as_echo_n "(cached) " >&6
29061else
29062 ac_check_framework_save_LIBS=$LIBS
29063LIBS="-framework Ghostscript $LIBS"
29064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29065/* 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 gsapi_new_instance ();
29074int
29075main ()
29076{
29077return gsapi_new_instance ();
29078 ;
29079 return 0;
29080}
29081_ACEOF
29082if ac_fn_c_try_link "$LINENO"; then :
29083 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29084else
29085 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29086fi
29087rm -f core conftest.err conftest.$ac_objext \
29088 conftest$ac_exeext conftest.$ac_ext
29089LIBS=$ac_check_framework_save_LIBS
29090fi
29091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29092$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29093if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29094 framework=`expr $framework + 1`
29095else
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029097$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029098if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029099 $as_echo_n "(cached) " >&6
29100else
29101 ac_check_lib_save_LIBS=$LIBS
29102LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029104/* end confdefs.h. */
29105
29106/* Override any GCC internal prototype to avoid an error.
29107 Use char because int might match the return type of a GCC
29108 builtin and then its argument prototype would still apply. */
29109#ifdef __cplusplus
29110extern "C"
29111#endif
29112char gsapi_new_instance ();
29113int
29114main ()
29115{
29116return gsapi_new_instance ();
29117 ;
29118 return 0;
29119}
29120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029121if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029122 ac_cv_lib_gs_gsapi_new_instance=yes
29123else
cristy8b350f62009-11-15 23:12:43 +000029124 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029125fi
cristy8b350f62009-11-15 23:12:43 +000029126rm -f core conftest.err conftest.$ac_objext \
29127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029128LIBS=$ac_check_lib_save_LIBS
29129fi
cristy8b350f62009-11-15 23:12:43 +000029130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029131$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029132if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 passed=`expr $passed + 1`
29134else
29135 failed=`expr $failed + 1`
29136fi
cristy73bd4a52010-10-05 11:24:23 +000029137
29138fi
cristy8b350f62009-11-15 23:12:43 +000029139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029140$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29141 if test $passed -gt 0; then
29142 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029143 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29144$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029145 have_gslib='no (failed tests)'
29146 else
29147 if test $framework -gt 0; then
29148 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029149 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29151$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029152 else
cristy09b53e12011-10-14 12:47:22 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29154$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029155 GS_LIBS='-lgs'
29156 fi
29157 LIBS="$GS_LIBS $LIBS"
29158
cristy8b350f62009-11-15 23:12:43 +000029159$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029160
29161 have_gslib='yes'
29162 fi
29163 else
cristy09b53e12011-10-14 12:47:22 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29165$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029166 fi
29167fi
cristy73bd4a52010-10-05 11:24:23 +000029168 if test "$have_gslib" = 'yes'; then
29169 GS_DELEGATE_TRUE=
29170 GS_DELEGATE_FALSE='#'
29171else
29172 GS_DELEGATE_TRUE='#'
29173 GS_DELEGATE_FALSE=
29174fi
29175
cristy3ed852e2009-09-05 21:47:34 +000029176
29177
29178# Set default font search path
29179
29180# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029181if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029182 withval=$with_fontpath; with_fontpath=$withval
29183else
29184 with_fontpath=''
29185fi
29186
29187
29188if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29189 with_fontpath=''
29190else
29191
29192cat >>confdefs.h <<_ACEOF
29193#define MAGICK_FONT_PATH "$with_fontpath"
29194_ACEOF
29195
29196fi
29197if test "$with_fontpath=" != ''; then
29198 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29199fi
29200
29201# Set Ghostscript font directory
29202
29203# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029204if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029205 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29206else
29207 with_gs_font_dir='default'
29208fi
29209
29210
29211if test "$with_gs_font_dir" != 'default'; then
29212 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29213fi
29214
29215
29216#
29217# Check for GVC delegate library.
29218#
29219
29220# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029221if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029222 withval=$with_gvc; with_gvc=$withval
29223else
29224 with_gvc='yes'
29225fi
29226
29227
29228if test "$with_gvc" != 'yes'; then
29229 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29230fi
29231
29232GVC_PKG=""
29233if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029234 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29235$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029236
29237pkg_failed=no
29238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29239$as_echo_n "checking for GVC... " >&6; }
29240
29241if test -n "$GVC_CFLAGS"; then
29242 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29243 elif test -n "$PKG_CONFIG"; then
29244 if test -n "$PKG_CONFIG" && \
29245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29246 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29247 ac_status=$?
29248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29249 test $ac_status = 0; }; then
29250 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29251else
29252 pkg_failed=yes
29253fi
29254 else
29255 pkg_failed=untried
29256fi
29257if test -n "$GVC_LIBS"; then
29258 pkg_cv_GVC_LIBS="$GVC_LIBS"
29259 elif test -n "$PKG_CONFIG"; then
29260 if test -n "$PKG_CONFIG" && \
29261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29262 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29263 ac_status=$?
29264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29265 test $ac_status = 0; }; then
29266 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29267else
29268 pkg_failed=yes
29269fi
29270 else
29271 pkg_failed=untried
29272fi
29273
29274
29275
29276if test $pkg_failed = yes; then
29277
29278if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29279 _pkg_short_errors_supported=yes
29280else
29281 _pkg_short_errors_supported=no
29282fi
29283 if test $_pkg_short_errors_supported = yes; then
29284 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29285 else
29286 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29287 fi
29288 # Put the nasty error message in config.log where it belongs
29289 echo "$GVC_PKG_ERRORS" >&5
29290
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29292$as_echo "no" >&6; }
29293 have_gvc=no
29294elif test $pkg_failed = untried; then
29295 have_gvc=no
29296else
29297 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29298 GVC_LIBS=$pkg_cv_GVC_LIBS
29299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29300$as_echo "yes" >&6; }
29301 have_gvc=yes
29302fi
cristy09b53e12011-10-14 12:47:22 +000029303 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29304$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029305fi
29306
29307if test "$have_gvc" = 'yes'; then
29308
cristy8b350f62009-11-15 23:12:43 +000029309$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029310
29311 if test "$with_modules" = 'no'; then
29312 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29313 fi
29314fi
29315
cristy73bd4a52010-10-05 11:24:23 +000029316 if test "$have_gvc" = 'yes'; then
29317 GVC_DELEGATE_TRUE=
29318 GVC_DELEGATE_FALSE='#'
29319else
29320 GVC_DELEGATE_TRUE='#'
29321 GVC_DELEGATE_FALSE=
29322fi
29323
cristy3ed852e2009-09-05 21:47:34 +000029324
29325
29326
29327
29328#
29329# Check for JBIG delegate library.
29330#
29331
29332
29333# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029334if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029335 withval=$with_jbig; with_jbig=$withval
29336else
29337 with_jbig='yes'
29338fi
29339
29340
29341have_jbig='no'
29342JBIG_LIBS=''
29343if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029344 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29345$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029347$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029348 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29349$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029350 failed=0
29351 passed=0
cristy8b350f62009-11-15 23:12:43 +000029352 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029353if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029354 passed=`expr $passed + 1`
29355else
29356 failed=`expr $failed + 1`
29357fi
29358
29359
cristy8b350f62009-11-15 23:12:43 +000029360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029361$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029362if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029363 $as_echo_n "(cached) " >&6
29364else
29365 ac_check_lib_save_LIBS=$LIBS
29366LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029368/* end confdefs.h. */
29369
29370/* Override any GCC internal prototype to avoid an error.
29371 Use char because int might match the return type of a GCC
29372 builtin and then its argument prototype would still apply. */
29373#ifdef __cplusplus
29374extern "C"
29375#endif
29376char jbg_dec_init ();
29377int
29378main ()
29379{
29380return jbg_dec_init ();
29381 ;
29382 return 0;
29383}
29384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029385if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029386 ac_cv_lib_jbig_jbg_dec_init=yes
29387else
cristy8b350f62009-11-15 23:12:43 +000029388 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029389fi
cristy8b350f62009-11-15 23:12:43 +000029390rm -f core conftest.err conftest.$ac_objext \
29391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029392LIBS=$ac_check_lib_save_LIBS
29393fi
cristy8b350f62009-11-15 23:12:43 +000029394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029395$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029396if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 passed=`expr $passed + 1`
29398else
29399 failed=`expr $failed + 1`
29400fi
29401
cristy8b350f62009-11-15 23:12:43 +000029402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029403$as_echo_n "checking if JBIG package is complete... " >&6; }
29404 if test $passed -gt 0; then
29405 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29407$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029408 have_jbig='no (failed tests)'
29409 else
29410 JBIG_LIBS='-ljbig'
29411 LIBS="$JBIG_LIBS $LIBS"
29412
cristy8b350f62009-11-15 23:12:43 +000029413$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029414
cristy09b53e12011-10-14 12:47:22 +000029415 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29416$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029417 have_jbig='yes'
29418 fi
29419 else
cristy09b53e12011-10-14 12:47:22 +000029420 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29421$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029422 fi
29423fi
cristy73bd4a52010-10-05 11:24:23 +000029424 if test "$have_jbig" = 'yes'; then
29425 JBIG_DELEGATE_TRUE=
29426 JBIG_DELEGATE_FALSE='#'
29427else
29428 JBIG_DELEGATE_TRUE='#'
29429 JBIG_DELEGATE_FALSE=
29430fi
29431
cristy3ed852e2009-09-05 21:47:34 +000029432
29433
29434
29435#
29436# Check for JPEG delegate library.
29437#
29438
29439# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029440if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029441 withval=$with_jpeg; with_jpeg=$withval
29442else
29443 with_jpeg='yes'
29444fi
29445
29446
29447if test "$with_jpeg" != 'yes'; then
29448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29449fi
29450
29451have_jpeg='no'
29452JPEG_LIBS=''
29453if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029454 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29455$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029458 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29459$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029460 failed=0
29461 passed=0
cristy8b350f62009-11-15 23:12:43 +000029462 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029463if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029464 passed=`expr $passed + 1`
29465else
29466 failed=`expr $failed + 1`
29467fi
29468
29469
cristy8b350f62009-11-15 23:12:43 +000029470 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029471if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029472 passed=`expr $passed + 1`
29473else
29474 failed=`expr $failed + 1`
29475fi
29476
29477
cristy8b350f62009-11-15 23:12:43 +000029478 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029479if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029480 passed=`expr $passed + 1`
29481else
29482 failed=`expr $failed + 1`
29483fi
29484
29485
cristy8b350f62009-11-15 23:12:43 +000029486 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029487if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029488 passed=`expr $passed + 1`
29489else
29490 failed=`expr $failed + 1`
29491fi
29492
29493
cristy8b350f62009-11-15 23:12:43 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029495$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029496if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029497 $as_echo_n "(cached) " >&6
29498else
29499 ac_check_lib_save_LIBS=$LIBS
29500LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029502/* end confdefs.h. */
29503
29504/* Override any GCC internal prototype to avoid an error.
29505 Use char because int might match the return type of a GCC
29506 builtin and then its argument prototype would still apply. */
29507#ifdef __cplusplus
29508extern "C"
29509#endif
29510char jpeg_read_header ();
29511int
29512main ()
29513{
29514return jpeg_read_header ();
29515 ;
29516 return 0;
29517}
29518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029519if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029520 ac_cv_lib_jpeg_jpeg_read_header=yes
29521else
cristy8b350f62009-11-15 23:12:43 +000029522 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029523fi
cristy8b350f62009-11-15 23:12:43 +000029524rm -f core conftest.err conftest.$ac_objext \
29525 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029526LIBS=$ac_check_lib_save_LIBS
29527fi
cristy8b350f62009-11-15 23:12:43 +000029528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029529$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029530if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029531 passed=`expr $passed + 1`
29532else
29533 failed=`expr $failed + 1`
29534fi
29535
29536
29537# Test for compatible JPEG library
29538if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029541if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029542 $as_echo_n "(cached) " >&6
29543else
cristy8b350f62009-11-15 23:12:43 +000029544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029545/* end confdefs.h. */
29546#include <stdio.h>
29547#include <stdlib.h>
29548#include <jpeglib.h>
29549
29550int
29551main ()
29552{
29553
29554#if JPEG_LIB_VERSION < 62
29555#error IJG JPEG library must be version 6b or newer!
29556#endif
29557return 0;
29558
29559 ;
29560 return 0;
29561}
29562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029563if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029564 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29565else
cristy8b350f62009-11-15 23:12:43 +000029566 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029567fi
cristy3ed852e2009-09-05 21:47:34 +000029568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29569fi
cristy8b350f62009-11-15 23:12:43 +000029570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029571$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29572fi
cristy8b350f62009-11-15 23:12:43 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029574$as_echo_n "checking if JPEG package is complete... " >&6; }
29575 if test $passed -gt 0; then
29576 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29578$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029579 have_jpeg='no (failed tests)'
29580 else
29581 JPEG_LIBS='-ljpeg'
29582 LIBS="$JPEG_LIBS $LIBS"
29583
cristy8b350f62009-11-15 23:12:43 +000029584$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029585
cristy09b53e12011-10-14 12:47:22 +000029586 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29587$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029588 have_jpeg='yes'
29589 fi
29590 else
cristy09b53e12011-10-14 12:47:22 +000029591 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29592$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029593 fi
29594fi
cristy73bd4a52010-10-05 11:24:23 +000029595 if test "$have_jpeg" = 'yes'; then
29596 JPEG_DELEGATE_TRUE=
29597 JPEG_DELEGATE_FALSE='#'
29598else
29599 JPEG_DELEGATE_TRUE='#'
29600 JPEG_DELEGATE_FALSE=
29601fi
29602
cristy3ed852e2009-09-05 21:47:34 +000029603
29604
29605
29606#
29607# Check for JPEG Version 2 delegate library.
29608#
29609
29610# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029611if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029612 withval=$with_jp2; with_jp2=$withval
29613else
29614 with_jp2='yes'
29615fi
29616
29617
29618if test "$with_jp2" != 'yes'; then
29619 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29620fi
29621
29622have_jp2='no'
29623JP2_LIBS=''
29624if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029625 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29626$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029628$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29630$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029631 failed=0
29632 passed=0
cristy8b350f62009-11-15 23:12:43 +000029633 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 +000029634if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029635 passed=`expr $passed + 1`
29636else
29637 failed=`expr $failed + 1`
29638fi
29639
29640
cristy8b350f62009-11-15 23:12:43 +000029641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029642$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029643if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029644 $as_echo_n "(cached) " >&6
29645else
29646 ac_check_lib_save_LIBS=$LIBS
29647LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029649/* end confdefs.h. */
29650
29651/* Override any GCC internal prototype to avoid an error.
29652 Use char because int might match the return type of a GCC
29653 builtin and then its argument prototype would still apply. */
29654#ifdef __cplusplus
29655extern "C"
29656#endif
29657char jas_stream_fopen ();
29658int
29659main ()
29660{
29661return jas_stream_fopen ();
29662 ;
29663 return 0;
29664}
29665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029666if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029667 ac_cv_lib_jasper_jas_stream_fopen=yes
29668else
cristy8b350f62009-11-15 23:12:43 +000029669 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029670fi
cristy8b350f62009-11-15 23:12:43 +000029671rm -f core conftest.err conftest.$ac_objext \
29672 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029673LIBS=$ac_check_lib_save_LIBS
29674fi
cristy8b350f62009-11-15 23:12:43 +000029675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029676$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029677if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029678 passed=`expr $passed + 1`
29679else
29680 failed=`expr $failed + 1`
29681fi
29682
cristy8b350f62009-11-15 23:12:43 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029684$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29685 if test $passed -gt 0; then
29686 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029687 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29688$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029689 have_jp2='no (failed tests)'
29690 else
29691 JP2_LIBS='-ljasper'
29692 LIBS="$JP2_LIBS $LIBS"
29693
cristy8b350f62009-11-15 23:12:43 +000029694$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029695
cristy09b53e12011-10-14 12:47:22 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29697$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029698 have_jp2='yes'
29699 fi
29700 else
cristy09b53e12011-10-14 12:47:22 +000029701 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29702$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029703 fi
29704fi
cristy73bd4a52010-10-05 11:24:23 +000029705 if test "$have_jp2" = 'yes'; then
29706 JP2_DELEGATE_TRUE=
29707 JP2_DELEGATE_FALSE='#'
29708else
29709 JP2_DELEGATE_TRUE='#'
29710 JP2_DELEGATE_FALSE=
29711fi
29712
cristy3ed852e2009-09-05 21:47:34 +000029713
29714
29715
29716#
29717# Check for LCMS delegate library.
29718#
cristy71203402010-06-18 13:12:03 +000029719# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029720
29721# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029722if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029723 withval=$with_lcms; with_lcms=$withval
29724else
29725 with_lcms='yes'
29726fi
29727
cristy71203402010-06-18 13:12:03 +000029728if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029729 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29730fi
29731
cristy71203402010-06-18 13:12:03 +000029732# Disable LCMS2.
29733
29734# Check whether --with-lcms2 was given.
29735if test "${with_lcms2+set}" = set; then :
29736 withval=$with_lcms2; with_lcms2=$withval
29737else
29738 with_lcms2='yes'
29739fi
29740
29741if test "$with_lcms2" != 'yes' ; then
29742 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29743fi
29744
29745have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029746LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029747if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029748 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29749$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29751$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029752 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29753$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029754 failed=0
29755 passed=0
29756 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029757
29758 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029759 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029760if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029761 have_lcms_header='yes'
29762fi
29763
29764
29765 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029766
29767$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29768
cristy71203402010-06-18 13:12:03 +000029769 passed=`expr $passed + 1`
29770 fi
29771
29772 # Check for <lcms2/lcms2.h)
29773 if test "$have_lcms_header" != 'yes'; then
29774 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 +000029775if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029776 have_lcms_header='yes'
29777fi
29778
29779
cristy71203402010-06-18 13:12:03 +000029780 if test "$have_lcms_header" = 'yes'; then
29781 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029782
cristy71203402010-06-18 13:12:03 +000029783$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029784
cristy71203402010-06-18 13:12:03 +000029785 fi
cristyd09bcf92010-03-25 03:04:45 +000029786 fi
cristy71203402010-06-18 13:12:03 +000029787
29788 # Failed to find lcms header?
29789 if test "$have_lcms_header" != 'yes'; then
29790 failed=`expr $failed + 1`
29791 fi
29792
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29794$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029795if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029796 $as_echo_n "(cached) " >&6
29797else
29798 ac_check_lib_save_LIBS=$LIBS
29799LIBS="-llcms2 $LIBS"
29800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29801/* end confdefs.h. */
29802
29803/* Override any GCC internal prototype to avoid an error.
29804 Use char because int might match the return type of a GCC
29805 builtin and then its argument prototype would still apply. */
29806#ifdef __cplusplus
29807extern "C"
29808#endif
cristy71203402010-06-18 13:12:03 +000029809char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029810int
29811main ()
29812{
cristy71203402010-06-18 13:12:03 +000029813return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029814 ;
29815 return 0;
29816}
29817_ACEOF
29818if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029819 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029820else
cristy71203402010-06-18 13:12:03 +000029821 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029822fi
29823rm -f core conftest.err conftest.$ac_objext \
29824 conftest$ac_exeext conftest.$ac_ext
29825LIBS=$ac_check_lib_save_LIBS
29826fi
cristy71203402010-06-18 13:12:03 +000029827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29828$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029829if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029830 passed=`expr $passed + 1`
29831else
29832 failed=`expr $failed + 1`
29833fi
29834
cristy71203402010-06-18 13:12:03 +000029835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29836$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029837 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029838 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029839 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29840$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029841 have_lcms2='no (failed tests)'
29842 else
29843 LCMS_LIBS='-llcms2'
29844 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029845 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29846$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029847 have_lcms2='yes'
29848 fi
cristyd09bcf92010-03-25 03:04:45 +000029849 else
cristy09b53e12011-10-14 12:47:22 +000029850 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29851$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029852 fi
29853fi
29854
cristy71203402010-06-18 13:12:03 +000029855#
29856# Check for LCMS v1 (1.11 or later)
29857#
29858if test $have_lcms2 = 'yes'; then
29859 with_lcms='no'
29860fi
29861
29862have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029863if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029864 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29865$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29867$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029868 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29869$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029870 failed=0
29871 passed=0
29872 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029873
29874 # Check for <lcms.h>
29875 if test "$have_lcms_header" != 'yes'; then
29876 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029877if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029878 have_lcms_header='yes'
29879fi
29880
29881
cristy71203402010-06-18 13:12:03 +000029882 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029883 passed=`expr $passed + 1`
29884
cristy8b350f62009-11-15 23:12:43 +000029885$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029886
cristy71203402010-06-18 13:12:03 +000029887 fi
29888 fi
29889
29890 # Check for <lcms/lcms.h>
29891 if test "$have_lcms_header" != 'yes'; then
29892 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 +000029893if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029894 have_lcms_header='yes'
29895fi
29896
29897
cristy71203402010-06-18 13:12:03 +000029898 if test "$have_lcms_header" = 'yes'; then
29899 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029900
cristy8b350f62009-11-15 23:12:43 +000029901$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029902
cristy71203402010-06-18 13:12:03 +000029903 fi
cristy3ed852e2009-09-05 21:47:34 +000029904 fi
cristy71203402010-06-18 13:12:03 +000029905
29906 # Failed to find lcms header?
29907 if test "$have_lcms_header" != 'yes'; then
29908 failed=`expr $failed + 1`
29909 fi
29910
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29912$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029913if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029914 $as_echo_n "(cached) " >&6
29915else
29916 ac_check_lib_save_LIBS=$LIBS
29917LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029919/* end confdefs.h. */
29920
29921/* Override any GCC internal prototype to avoid an error.
29922 Use char because int might match the return type of a GCC
29923 builtin and then its argument prototype would still apply. */
29924#ifdef __cplusplus
29925extern "C"
29926#endif
cristy71203402010-06-18 13:12:03 +000029927char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029928int
29929main ()
29930{
cristy71203402010-06-18 13:12:03 +000029931return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029932 ;
29933 return 0;
29934}
29935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029936if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029937 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029938else
cristy71203402010-06-18 13:12:03 +000029939 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029940fi
cristy8b350f62009-11-15 23:12:43 +000029941rm -f core conftest.err conftest.$ac_objext \
29942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029943LIBS=$ac_check_lib_save_LIBS
29944fi
cristy71203402010-06-18 13:12:03 +000029945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29946$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029947if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029948 passed=`expr $passed + 1`
29949else
29950 failed=`expr $failed + 1`
29951fi
29952
cristy8b350f62009-11-15 23:12:43 +000029953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029954$as_echo_n "checking if LCMS package is complete... " >&6; }
29955 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029956 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29958$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029959 have_lcms='no (failed tests)'
29960 else
29961 LCMS_LIBS='-llcms'
29962 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29964$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029965 have_lcms='yes'
29966 fi
cristy3ed852e2009-09-05 21:47:34 +000029967 else
cristy09b53e12011-10-14 12:47:22 +000029968 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29969$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029970 fi
29971fi
cristy71203402010-06-18 13:12:03 +000029972
cristy73bd4a52010-10-05 11:24:23 +000029973 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29974 LCMS_DELEGATE_TRUE=
29975 LCMS_DELEGATE_FALSE='#'
29976else
29977 LCMS_DELEGATE_TRUE='#'
29978 LCMS_DELEGATE_FALSE=
29979fi
29980
cristy71203402010-06-18 13:12:03 +000029981if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29982
29983$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29984
29985fi
29986
cristy3ed852e2009-09-05 21:47:34 +000029987
29988
29989
29990#
29991# Check for the LQR (Liquid Rescale) delegate library.
29992#
29993
29994# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029995if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029996 withval=$with_lqr; with_lqr=$withval
29997else
29998 with_lqr='yes'
29999fi
30000
30001
30002if test "$with_lqr" != 'yes'; then
30003 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30004fi
30005
30006have_lqr='no'
30007LQR_CFLAGS=""
30008LQR_LIBS=""
30009LQR_PKG=""
30010if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030011 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30012$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030013
30014pkg_failed=no
30015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30016$as_echo_n "checking for LQR... " >&6; }
30017
30018if test -n "$LQR_CFLAGS"; then
30019 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30020 elif test -n "$PKG_CONFIG"; then
30021 if test -n "$PKG_CONFIG" && \
30022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30023 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30024 ac_status=$?
30025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30026 test $ac_status = 0; }; then
30027 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30028else
30029 pkg_failed=yes
30030fi
30031 else
30032 pkg_failed=untried
30033fi
30034if test -n "$LQR_LIBS"; then
30035 pkg_cv_LQR_LIBS="$LQR_LIBS"
30036 elif test -n "$PKG_CONFIG"; then
30037 if test -n "$PKG_CONFIG" && \
30038 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30039 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30040 ac_status=$?
30041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30042 test $ac_status = 0; }; then
30043 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30044else
30045 pkg_failed=yes
30046fi
30047 else
30048 pkg_failed=untried
30049fi
30050
30051
30052
30053if test $pkg_failed = yes; then
30054
30055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30056 _pkg_short_errors_supported=yes
30057else
30058 _pkg_short_errors_supported=no
30059fi
30060 if test $_pkg_short_errors_supported = yes; then
30061 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30062 else
30063 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30064 fi
30065 # Put the nasty error message in config.log where it belongs
30066 echo "$LQR_PKG_ERRORS" >&5
30067
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30069$as_echo "no" >&6; }
30070 have_lqr=no
30071elif test $pkg_failed = untried; then
30072 have_lqr=no
30073else
30074 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30075 LQR_LIBS=$pkg_cv_LQR_LIBS
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30077$as_echo "yes" >&6; }
30078 have_lqr=yes
30079fi
cristy09b53e12011-10-14 12:47:22 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30081$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030082fi
30083
30084if test "$have_lqr" = 'yes'; then
30085
cristy8b350f62009-11-15 23:12:43 +000030086$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030087
30088 CFLAGS="$LQR_CFLAGS $CFLAGS"
30089fi
30090
cristy73bd4a52010-10-05 11:24:23 +000030091 if test "$have_lqr" = 'yes'; then
30092 LQR_DELEGATE_TRUE=
30093 LQR_DELEGATE_FALSE='#'
30094else
30095 LQR_DELEGATE_TRUE='#'
30096 LQR_DELEGATE_FALSE=
30097fi
30098
cristy3ed852e2009-09-05 21:47:34 +000030099
30100
30101
30102
cristy81beccd2011-10-03 18:17:24 +000030103# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030104
30105# Check whether --with-lzma was given.
30106if test "${with_lzma+set}" = set; then :
30107 withval=$with_lzma; with_lzma=$withval
30108else
30109 with_lzma='yes'
30110fi
30111
cristy81beccd2011-10-03 18:17:24 +000030112if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030113 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30114fi
30115
cristyb94e5002011-11-14 13:20:10 +000030116LZMA_PKG=""
30117if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30119$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030120
30121pkg_failed=no
30122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030123$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030124
30125if test -n "$LZMA_CFLAGS"; then
30126 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30127 elif test -n "$PKG_CONFIG"; then
30128 if test -n "$PKG_CONFIG" && \
30129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30130 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30131 ac_status=$?
30132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30133 test $ac_status = 0; }; then
30134 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30135else
30136 pkg_failed=yes
30137fi
30138 else
30139 pkg_failed=untried
30140fi
30141if test -n "$LZMA_LIBS"; then
30142 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30143 elif test -n "$PKG_CONFIG"; then
30144 if test -n "$PKG_CONFIG" && \
30145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30146 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30147 ac_status=$?
30148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30149 test $ac_status = 0; }; then
30150 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30151else
30152 pkg_failed=yes
30153fi
30154 else
30155 pkg_failed=untried
30156fi
30157
30158
30159
30160if test $pkg_failed = yes; then
30161
30162if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30163 _pkg_short_errors_supported=yes
30164else
30165 _pkg_short_errors_supported=no
30166fi
30167 if test $_pkg_short_errors_supported = yes; then
30168 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30169 else
30170 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30171 fi
30172 # Put the nasty error message in config.log where it belongs
30173 echo "$LZMA_PKG_ERRORS" >&5
30174
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30176$as_echo "no" >&6; }
30177 have_lzma=no
30178elif test $pkg_failed = untried; then
30179 have_lzma=no
30180else
30181 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30182 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30184$as_echo "yes" >&6; }
30185 have_lzma=yes
30186fi
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030188$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030189fi
30190
cristyb94e5002011-11-14 13:20:10 +000030191if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030192
30193$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30194
cristyb94e5002011-11-14 13:20:10 +000030195 if test "$with_modules" = 'no'; then
30196 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030197 fi
cristyfbb0ef02010-12-19 02:32:11 +000030198fi
cristyb94e5002011-11-14 13:20:10 +000030199
cristyfbb0ef02010-12-19 02:32:11 +000030200 if test "$have_lzma" = 'yes'; then
30201 LZMA_DELEGATE_TRUE=
30202 LZMA_DELEGATE_FALSE='#'
30203else
30204 LZMA_DELEGATE_TRUE='#'
30205 LZMA_DELEGATE_FALSE=
30206fi
30207
30208
30209
30210
cristyb94e5002011-11-14 13:20:10 +000030211
cristy3ed852e2009-09-05 21:47:34 +000030212#
30213# Check for the OpenEXR delegate library.
30214#
30215
30216# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030217if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030218 withval=$with_openexr; with_openexr=$withval
30219else
30220 with_openexr='yes'
30221fi
30222
30223
30224if test "$with_openexr" != 'yes'; then
30225 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30226fi
30227
30228have_openexr='no'
30229OPENEXR_CFLAGS=""
30230OPENEXR_LIBS=""
30231OPENEXR_PKG=""
30232if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30234$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030235
30236pkg_failed=no
30237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30238$as_echo_n "checking for OPENEXR... " >&6; }
30239
30240if test -n "$OPENEXR_CFLAGS"; then
30241 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30242 elif test -n "$PKG_CONFIG"; then
30243 if test -n "$PKG_CONFIG" && \
30244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30245 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30246 ac_status=$?
30247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30248 test $ac_status = 0; }; then
30249 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30250else
30251 pkg_failed=yes
30252fi
30253 else
30254 pkg_failed=untried
30255fi
30256if test -n "$OPENEXR_LIBS"; then
30257 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30258 elif test -n "$PKG_CONFIG"; then
30259 if test -n "$PKG_CONFIG" && \
30260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30261 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30262 ac_status=$?
30263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30264 test $ac_status = 0; }; then
30265 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30266else
30267 pkg_failed=yes
30268fi
30269 else
30270 pkg_failed=untried
30271fi
30272
30273
30274
30275if test $pkg_failed = yes; then
30276
30277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30278 _pkg_short_errors_supported=yes
30279else
30280 _pkg_short_errors_supported=no
30281fi
30282 if test $_pkg_short_errors_supported = yes; then
30283 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30284 else
30285 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30286 fi
30287 # Put the nasty error message in config.log where it belongs
30288 echo "$OPENEXR_PKG_ERRORS" >&5
30289
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30291$as_echo "no" >&6; }
30292 have_openexr=no
30293elif test $pkg_failed = untried; then
30294 have_openexr=no
30295else
30296 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30297 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30299$as_echo "yes" >&6; }
30300 have_openexr=yes
30301fi
cristy09b53e12011-10-14 12:47:22 +000030302 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30303$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030304fi
30305
30306if test "$have_openexr" = 'yes'; then
30307
cristy8b350f62009-11-15 23:12:43 +000030308$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030309
30310 if test "$with_modules" = 'no'; then
30311 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30312 fi
30313fi
30314
cristy73bd4a52010-10-05 11:24:23 +000030315 if test "$have_openexr" = 'yes'; then
30316 OPENEXR_DELEGATE_TRUE=
30317 OPENEXR_DELEGATE_FALSE='#'
30318else
30319 OPENEXR_DELEGATE_TRUE='#'
30320 OPENEXR_DELEGATE_FALSE=
30321fi
30322
cristy3ed852e2009-09-05 21:47:34 +000030323
30324
30325
30326
30327#
cristy41cbe8a2011-10-27 01:35:18 +000030328# Check for PANGO delegate library.
30329#
30330
30331# Check whether --with-pango was given.
30332if test "${with_pango+set}" = set; then :
30333 withval=$with_pango; with_pango=$withval
30334else
30335 with_pango=$have_x
30336fi
30337
30338
30339if test "$with_pango" != 'yes'; then
30340 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30341fi
30342
30343have_pango='no'
30344have_pangoft2='no'
30345PANGO_CFLAGS=""
30346PANGO_LIBS=""
30347PANGO_PKG=""
30348if test "x$with_pango" = "xyes"; then
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30350$as_echo "-------------------------------------------------------------" >&6; }
30351
30352pkg_failed=no
30353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30354$as_echo_n "checking for PANGO... " >&6; }
30355
30356if test -n "$PANGO_CFLAGS"; then
30357 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30358 elif test -n "$PKG_CONFIG"; then
30359 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30361 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030362 ac_status=$?
30363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30364 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030365 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030366else
30367 pkg_failed=yes
30368fi
30369 else
30370 pkg_failed=untried
30371fi
30372if test -n "$PANGO_LIBS"; then
30373 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30374 elif test -n "$PKG_CONFIG"; then
30375 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030376 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30377 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030378 ac_status=$?
30379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30380 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030381 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030382else
30383 pkg_failed=yes
30384fi
30385 else
30386 pkg_failed=untried
30387fi
30388
30389
30390
30391if test $pkg_failed = yes; then
30392
30393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30394 _pkg_short_errors_supported=yes
30395else
30396 _pkg_short_errors_supported=no
30397fi
30398 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030399 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030400 else
cristy2542fc62011-12-06 17:50:25 +000030401 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030402 fi
30403 # Put the nasty error message in config.log where it belongs
30404 echo "$PANGO_PKG_ERRORS" >&5
30405
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30407$as_echo "no" >&6; }
30408 have_pangoft2=no
30409elif test $pkg_failed = untried; then
30410 have_pangoft2=no
30411else
30412 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30413 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30415$as_echo "yes" >&6; }
30416 have_pangoft2=yes
30417fi
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30419$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030420
30421pkg_failed=no
30422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30423$as_echo_n "checking for PANGO... " >&6; }
30424
30425if test -n "$PANGO_CFLAGS"; then
30426 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30427 elif test -n "$PKG_CONFIG"; then
30428 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30430 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030431 ac_status=$?
30432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30433 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030434 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030435else
30436 pkg_failed=yes
30437fi
30438 else
30439 pkg_failed=untried
30440fi
30441if test -n "$PANGO_LIBS"; then
30442 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30443 elif test -n "$PKG_CONFIG"; then
30444 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30446 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030447 ac_status=$?
30448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30449 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030450 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030451else
30452 pkg_failed=yes
30453fi
30454 else
30455 pkg_failed=untried
30456fi
30457
30458
30459
30460if test $pkg_failed = yes; then
30461
30462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30463 _pkg_short_errors_supported=yes
30464else
30465 _pkg_short_errors_supported=no
30466fi
30467 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030468 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030469 else
cristy2542fc62011-12-06 17:50:25 +000030470 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030471 fi
30472 # Put the nasty error message in config.log where it belongs
30473 echo "$PANGO_PKG_ERRORS" >&5
30474
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30476$as_echo "no" >&6; }
30477 have_pango=no
30478elif test $pkg_failed = untried; then
30479 have_pango=no
30480else
30481 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30482 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30484$as_echo "yes" >&6; }
30485 have_pango=yes
30486fi
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30488$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030489fi
30490
30491if test "$have_pango" = 'yes'; then
30492
30493$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30494
30495 if test "$with_modules" = 'no'; then
30496 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30497 fi
30498fi
30499
30500if test "$have_pangoft2" = 'yes'; then
30501
30502$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30503
30504 if test "$with_modules" = 'no'; then
30505 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30506 fi
30507fi
30508
30509 if test "$have_pango" = 'yes'; then
30510 PANGO_DELEGATE_TRUE=
30511 PANGO_DELEGATE_FALSE='#'
30512else
30513 PANGO_DELEGATE_TRUE='#'
30514 PANGO_DELEGATE_FALSE=
30515fi
30516
30517 if test "$have_pangoft2" = 'yes'; then
30518 PANGOFT2_DELEGATE_TRUE=
30519 PANGOFT2_DELEGATE_FALSE='#'
30520else
30521 PANGOFT2_DELEGATE_TRUE='#'
30522 PANGOFT2_DELEGATE_FALSE=
30523fi
30524
30525
30526
30527
30528
30529#
cristy3ed852e2009-09-05 21:47:34 +000030530# Check for PNG delegate library.
30531#
30532
30533# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030534if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030535 withval=$with_png; with_png=$withval
30536else
30537 with_png='yes'
30538fi
30539
30540
30541if test "$with_png" != 'yes'; then
30542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30543fi
30544
cristy81beccd2011-10-03 18:17:24 +000030545have_png='no'
30546PNG_LIBS=''
30547
30548if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30550$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30552$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030553 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30554$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030555 failed=0
30556 passed=0
30557 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30558if test "x$ac_cv_header_png_h" = xyes; then :
30559 passed=`expr $passed + 1`
30560else
30561 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030562fi
30563
cristy81beccd2011-10-03 18:17:24 +000030564
30565
30566 if test $passed -gt 0; then
30567 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030568 if test "$have_png" = 'no' ; then
30569 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030570 pnglib='png'
30571 else
30572 pnglib="png1${var}"
30573 fi
30574
30575# Test for compatible LIBPNG library
30576 failed=0
30577 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030578 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030579 if test "${pnglib}" != 'png' ; then
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30581$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30583/* end confdefs.h. */
30584#include <stdio.h>
30585#include <stdlib.h>
30586#include <png.h>
30587
30588int
30589main ()
30590{
30591
30592#if PNG_LIBPNG_VER_MINOR != ${var}
30593#error LIBPNG library must be version 1${var}!
30594Kaboom, Kaboom
30595#endif
30596return 0;
30597
30598 ;
30599 return 0;
30600}
30601_ACEOF
30602if ac_fn_c_try_compile "$LINENO"; then :
30603 ac_cv_libpng_ok='yes'
30604else
30605 ac_cv_libpng_ok='no'
30606fi
30607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30608 if test "$ac_cv_libpng_ok" = 'yes' ; then
30609 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030610 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30611$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030612 else
30613 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030614 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30615$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030616 fi
30617 else
30618 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030619 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30620$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030621 fi
30622 fi
30623
30624 if test $passed -gt 0 -a $failed -le 0; then
30625 if test "1${var}" = '15' ; then
30626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30627$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30628if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30629 $as_echo_n "(cached) " >&6
30630else
30631 ac_check_lib_save_LIBS=$LIBS
30632LIBS="-lpng15 $LIBS"
30633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30634/* end confdefs.h. */
30635
30636/* Override any GCC internal prototype to avoid an error.
30637 Use char because int might match the return type of a GCC
30638 builtin and then its argument prototype would still apply. */
30639#ifdef __cplusplus
30640extern "C"
30641#endif
30642char png_get_io_ptr ();
30643int
30644main ()
30645{
30646return png_get_io_ptr ();
30647 ;
30648 return 0;
30649}
30650_ACEOF
30651if ac_fn_c_try_link "$LINENO"; then :
30652 ac_cv_lib_png15_png_get_io_ptr=yes
30653else
30654 ac_cv_lib_png15_png_get_io_ptr=no
30655fi
30656rm -f core conftest.err conftest.$ac_objext \
30657 conftest$ac_exeext conftest.$ac_ext
30658LIBS=$ac_check_lib_save_LIBS
30659fi
30660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30661$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30662if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30663 passed=`expr $passed + 1`
30664else
30665 failed=`expr $failed + 1`
30666fi
30667
30668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30669$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30670if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30671 $as_echo_n "(cached) " >&6
30672else
30673 ac_check_lib_save_LIBS=$LIBS
30674LIBS="-lpng15 $LIBS"
30675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30676/* end confdefs.h. */
30677
30678/* Override any GCC internal prototype to avoid an error.
30679 Use char because int might match the return type of a GCC
30680 builtin and then its argument prototype would still apply. */
30681#ifdef __cplusplus
30682extern "C"
30683#endif
30684char png_longjmp ();
30685int
30686main ()
30687{
30688return png_longjmp ();
30689 ;
30690 return 0;
30691}
30692_ACEOF
30693if ac_fn_c_try_link "$LINENO"; then :
30694 ac_cv_lib_png15_png_longjmp=yes
30695else
30696 ac_cv_lib_png15_png_longjmp=no
30697fi
30698rm -f core conftest.err conftest.$ac_objext \
30699 conftest$ac_exeext conftest.$ac_ext
30700LIBS=$ac_check_lib_save_LIBS
30701fi
30702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30703$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30704if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30705 passed=`expr $passed + 1`
30706else
30707 failed=`expr $failed + 1`
30708fi
30709
30710 fi
30711 if test "1${var}" = '14' ; then
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30713$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30714if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30715 $as_echo_n "(cached) " >&6
30716else
30717 ac_check_lib_save_LIBS=$LIBS
30718LIBS="-lpng14 $LIBS"
30719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30720/* end confdefs.h. */
30721
30722/* Override any GCC internal prototype to avoid an error.
30723 Use char because int might match the return type of a GCC
30724 builtin and then its argument prototype would still apply. */
30725#ifdef __cplusplus
30726extern "C"
30727#endif
30728char png_get_io_ptr ();
30729int
30730main ()
30731{
30732return png_get_io_ptr ();
30733 ;
30734 return 0;
30735}
30736_ACEOF
30737if ac_fn_c_try_link "$LINENO"; then :
30738 ac_cv_lib_png14_png_get_io_ptr=yes
30739else
30740 ac_cv_lib_png14_png_get_io_ptr=no
30741fi
30742rm -f core conftest.err conftest.$ac_objext \
30743 conftest$ac_exeext conftest.$ac_ext
30744LIBS=$ac_check_lib_save_LIBS
30745fi
30746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30747$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30748if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30749 passed=`expr $passed + 1`
30750else
30751 failed=`expr $failed + 1`
30752fi
30753
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30755$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30756if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30757 $as_echo_n "(cached) " >&6
30758else
30759 ac_check_lib_save_LIBS=$LIBS
30760LIBS="-lpng14 $LIBS"
30761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30762/* end confdefs.h. */
30763
30764/* Override any GCC internal prototype to avoid an error.
30765 Use char because int might match the return type of a GCC
30766 builtin and then its argument prototype would still apply. */
30767#ifdef __cplusplus
30768extern "C"
30769#endif
30770char png_get_io_state ();
30771int
30772main ()
30773{
30774return png_get_io_state ();
30775 ;
30776 return 0;
30777}
30778_ACEOF
30779if ac_fn_c_try_link "$LINENO"; then :
30780 ac_cv_lib_png14_png_get_io_state=yes
30781else
30782 ac_cv_lib_png14_png_get_io_state=no
30783fi
30784rm -f core conftest.err conftest.$ac_objext \
30785 conftest$ac_exeext conftest.$ac_ext
30786LIBS=$ac_check_lib_save_LIBS
30787fi
30788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30789$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30790if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30791 passed=`expr $passed + 1`
30792else
30793 failed=`expr $failed + 1`
30794fi
30795
30796 fi
30797 if test "1${var}" = '12' ; then
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30799$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30800if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30801 $as_echo_n "(cached) " >&6
30802else
30803 ac_check_lib_save_LIBS=$LIBS
30804LIBS="-lpng12 $LIBS"
30805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30806/* end confdefs.h. */
30807
30808/* Override any GCC internal prototype to avoid an error.
30809 Use char because int might match the return type of a GCC
30810 builtin and then its argument prototype would still apply. */
30811#ifdef __cplusplus
30812extern "C"
30813#endif
30814char png_get_io_ptr ();
30815int
30816main ()
30817{
30818return png_get_io_ptr ();
30819 ;
30820 return 0;
30821}
30822_ACEOF
30823if ac_fn_c_try_link "$LINENO"; then :
30824 ac_cv_lib_png12_png_get_io_ptr=yes
30825else
30826 ac_cv_lib_png12_png_get_io_ptr=no
30827fi
30828rm -f core conftest.err conftest.$ac_objext \
30829 conftest$ac_exeext conftest.$ac_ext
30830LIBS=$ac_check_lib_save_LIBS
30831fi
30832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30833$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30834if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30835 passed=`expr $passed + 1`
30836else
30837 failed=`expr $failed + 1`
30838fi
30839
30840 fi
30841 if test "1${var}" = '1' ; then
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30843$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30844if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30845 $as_echo_n "(cached) " >&6
30846else
30847 ac_check_lib_save_LIBS=$LIBS
30848LIBS="-lpng $LIBS"
30849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30850/* end confdefs.h. */
30851
30852/* Override any GCC internal prototype to avoid an error.
30853 Use char because int might match the return type of a GCC
30854 builtin and then its argument prototype would still apply. */
30855#ifdef __cplusplus
30856extern "C"
30857#endif
30858char png_get_io_ptr ();
30859int
30860main ()
30861{
30862return png_get_io_ptr ();
30863 ;
30864 return 0;
30865}
30866_ACEOF
30867if ac_fn_c_try_link "$LINENO"; then :
30868 ac_cv_lib_png_png_get_io_ptr=yes
30869else
30870 ac_cv_lib_png_png_get_io_ptr=no
30871fi
30872rm -f core conftest.err conftest.$ac_objext \
30873 conftest$ac_exeext conftest.$ac_ext
30874LIBS=$ac_check_lib_save_LIBS
30875fi
30876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30877$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30878if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30879 passed=`expr $passed + 1`
30880else
30881 failed=`expr $failed + 1`
30882fi
30883
30884 fi
30885 if test $passed -gt 0 -a $failed -le 0 ; then
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30887$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30888 if test $passed -gt 0 ; then
30889 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030890 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30891$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030892 have_png='no (failed tests)'
30893 else
30894 PNG_LIBS="-l${pnglib}"
30895 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030896
cristy8b350f62009-11-15 23:12:43 +000030897$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030898
cristy09b53e12011-10-14 12:47:22 +000030899 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30900$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030901 have_png='yes'
30902 fi
30903 fi
30904 fi
30905 fi
30906 fi
30907 done
30908 fi
cristy3ed852e2009-09-05 21:47:34 +000030909fi
cristy64877302011-08-23 19:10:31 +000030910
cristy73bd4a52010-10-05 11:24:23 +000030911 if test "$have_png" = 'yes'; then
30912 PNG_DELEGATE_TRUE=
30913 PNG_DELEGATE_FALSE='#'
30914else
30915 PNG_DELEGATE_TRUE='#'
30916 PNG_DELEGATE_FALSE=
30917fi
30918
cristy3ed852e2009-09-05 21:47:34 +000030919
cristy50d3f5c2011-09-10 20:09:06 +000030920
cristy3ed852e2009-09-05 21:47:34 +000030921
30922
30923#
30924# Check for RSVG delegate library.
30925#
30926
30927# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030928if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030929 withval=$with_rsvg; with_rsvg=$withval
30930else
30931 with_rsvg=$have_x
30932fi
30933
30934
30935if test "$with_rsvg" != 'yes'; then
30936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30937fi
30938
30939have_rsvg='no'
30940have_cairo='no'
30941RSVG_CFLAGS=""
30942RSVG_LIBS=""
30943RSVG_PKG=""
30944if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030945 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30946$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030947
30948pkg_failed=no
30949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30950$as_echo_n "checking for RSVG... " >&6; }
30951
30952if test -n "$RSVG_CFLAGS"; then
30953 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30954 elif test -n "$PKG_CONFIG"; then
30955 if test -n "$PKG_CONFIG" && \
30956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30957 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30958 ac_status=$?
30959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30960 test $ac_status = 0; }; then
30961 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30962else
30963 pkg_failed=yes
30964fi
30965 else
30966 pkg_failed=untried
30967fi
30968if test -n "$RSVG_LIBS"; then
30969 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30970 elif test -n "$PKG_CONFIG"; then
30971 if test -n "$PKG_CONFIG" && \
30972 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30973 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30974 ac_status=$?
30975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30976 test $ac_status = 0; }; then
30977 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30978else
30979 pkg_failed=yes
30980fi
30981 else
30982 pkg_failed=untried
30983fi
30984
30985
30986
30987if test $pkg_failed = yes; then
30988
30989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30990 _pkg_short_errors_supported=yes
30991else
30992 _pkg_short_errors_supported=no
30993fi
30994 if test $_pkg_short_errors_supported = yes; then
30995 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30996 else
30997 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30998 fi
30999 # Put the nasty error message in config.log where it belongs
31000 echo "$RSVG_PKG_ERRORS" >&5
31001
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31003$as_echo "no" >&6; }
31004 have_rsvg=no
31005elif test $pkg_failed = untried; then
31006 have_rsvg=no
31007else
31008 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31009 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31011$as_echo "yes" >&6; }
31012 have_rsvg=yes
31013fi
cristy09b53e12011-10-14 12:47:22 +000031014 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31015$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031016
31017pkg_failed=no
31018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31019$as_echo_n "checking for CAIRO_SVG... " >&6; }
31020
31021if test -n "$CAIRO_SVG_CFLAGS"; then
31022 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31023 elif test -n "$PKG_CONFIG"; then
31024 if test -n "$PKG_CONFIG" && \
31025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31026 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31027 ac_status=$?
31028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31029 test $ac_status = 0; }; then
31030 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31031else
31032 pkg_failed=yes
31033fi
31034 else
31035 pkg_failed=untried
31036fi
31037if test -n "$CAIRO_SVG_LIBS"; then
31038 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31039 elif test -n "$PKG_CONFIG"; then
31040 if test -n "$PKG_CONFIG" && \
31041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31042 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31043 ac_status=$?
31044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31045 test $ac_status = 0; }; then
31046 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31047else
31048 pkg_failed=yes
31049fi
31050 else
31051 pkg_failed=untried
31052fi
31053
31054
31055
31056if test $pkg_failed = yes; then
31057
31058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31059 _pkg_short_errors_supported=yes
31060else
31061 _pkg_short_errors_supported=no
31062fi
31063 if test $_pkg_short_errors_supported = yes; then
31064 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31065 else
31066 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31067 fi
31068 # Put the nasty error message in config.log where it belongs
31069 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31070
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31072$as_echo "no" >&6; }
31073 have_cairo=no
31074elif test $pkg_failed = untried; then
31075 have_cairo=no
31076else
31077 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31078 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31080$as_echo "yes" >&6; }
31081 have_cairo=yes
31082fi
cristy09b53e12011-10-14 12:47:22 +000031083 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31084$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031085fi
31086
31087if test "$have_rsvg" = 'yes'; then
31088
cristy8b350f62009-11-15 23:12:43 +000031089$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031090
31091 if test "$with_modules" = 'no'; then
31092 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31093 fi
31094fi
31095
31096if test "$have_cairo" = 'yes'; then
31097
cristy8b350f62009-11-15 23:12:43 +000031098$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031099
31100 if test "$with_modules" = 'no'; then
31101 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31102 fi
31103fi
31104
cristy73bd4a52010-10-05 11:24:23 +000031105 if test "$have_rsvg" = 'yes'; then
31106 RSVG_DELEGATE_TRUE=
31107 RSVG_DELEGATE_FALSE='#'
31108else
31109 RSVG_DELEGATE_TRUE='#'
31110 RSVG_DELEGATE_FALSE=
31111fi
31112
31113 if test "$have_cairo" = 'yes'; then
31114 CAIRO_DELEGATE_TRUE=
31115 CAIRO_DELEGATE_FALSE='#'
31116else
31117 CAIRO_DELEGATE_TRUE='#'
31118 CAIRO_DELEGATE_FALSE=
31119fi
31120
cristy3ed852e2009-09-05 21:47:34 +000031121
31122
31123
31124
31125#
31126# Check for TIFF delegate library.
31127#
31128
31129# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031130if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031131 withval=$with_tiff; with_tiff=$withval
31132else
31133 with_tiff='yes'
31134fi
31135
31136
31137if test "$with_tiff" != 'yes'; then
31138 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31139fi
31140
31141have_tiff='no'
31142TIFF_LIBS=''
31143if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031144 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31145$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031148 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31149$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031150 failed=0
31151 passed=0
cristy8b350f62009-11-15 23:12:43 +000031152 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031153if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031154 passed=`expr $passed + 1`
31155else
31156 failed=`expr $failed + 1`
31157fi
31158
31159
cristy8b350f62009-11-15 23:12:43 +000031160 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031161if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031162 passed=`expr $passed + 1`
31163else
31164 failed=`expr $failed + 1`
31165fi
31166
31167
cristy8b350f62009-11-15 23:12:43 +000031168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031169$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031170if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031171 $as_echo_n "(cached) " >&6
31172else
31173 ac_check_lib_save_LIBS=$LIBS
31174LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031176/* end confdefs.h. */
31177
31178/* Override any GCC internal prototype to avoid an error.
31179 Use char because int might match the return type of a GCC
31180 builtin and then its argument prototype would still apply. */
31181#ifdef __cplusplus
31182extern "C"
31183#endif
31184char TIFFOpen ();
31185int
31186main ()
31187{
31188return TIFFOpen ();
31189 ;
31190 return 0;
31191}
31192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031193if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031194 ac_cv_lib_tiff_TIFFOpen=yes
31195else
cristy8b350f62009-11-15 23:12:43 +000031196 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031197fi
cristy8b350f62009-11-15 23:12:43 +000031198rm -f core conftest.err conftest.$ac_objext \
31199 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031200LIBS=$ac_check_lib_save_LIBS
31201fi
cristy8b350f62009-11-15 23:12:43 +000031202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031203$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031204if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031205 passed=`expr $passed + 1`
31206else
31207 failed=`expr $failed + 1`
31208fi
31209
cristy8b350f62009-11-15 23:12:43 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031212if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031213 $as_echo_n "(cached) " >&6
31214else
31215 ac_check_lib_save_LIBS=$LIBS
31216LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031218/* end confdefs.h. */
31219
31220/* Override any GCC internal prototype to avoid an error.
31221 Use char because int might match the return type of a GCC
31222 builtin and then its argument prototype would still apply. */
31223#ifdef __cplusplus
31224extern "C"
31225#endif
31226char TIFFClientOpen ();
31227int
31228main ()
31229{
31230return TIFFClientOpen ();
31231 ;
31232 return 0;
31233}
31234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031236 ac_cv_lib_tiff_TIFFClientOpen=yes
31237else
cristy8b350f62009-11-15 23:12:43 +000031238 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031239fi
cristy8b350f62009-11-15 23:12:43 +000031240rm -f core conftest.err conftest.$ac_objext \
31241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031242LIBS=$ac_check_lib_save_LIBS
31243fi
cristy8b350f62009-11-15 23:12:43 +000031244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031245$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031246if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031247 passed=`expr $passed + 1`
31248else
31249 failed=`expr $failed + 1`
31250fi
31251
cristy8b350f62009-11-15 23:12:43 +000031252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031253$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031254if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031255 $as_echo_n "(cached) " >&6
31256else
31257 ac_check_lib_save_LIBS=$LIBS
31258LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031260/* end confdefs.h. */
31261
31262/* Override any GCC internal prototype to avoid an error.
31263 Use char because int might match the return type of a GCC
31264 builtin and then its argument prototype would still apply. */
31265#ifdef __cplusplus
31266extern "C"
31267#endif
31268char TIFFIsByteSwapped ();
31269int
31270main ()
31271{
31272return TIFFIsByteSwapped ();
31273 ;
31274 return 0;
31275}
31276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031277if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031278 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31279else
cristy8b350f62009-11-15 23:12:43 +000031280 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031281fi
cristy8b350f62009-11-15 23:12:43 +000031282rm -f core conftest.err conftest.$ac_objext \
31283 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031284LIBS=$ac_check_lib_save_LIBS
31285fi
cristy8b350f62009-11-15 23:12:43 +000031286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031287$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031288if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031289 passed=`expr $passed + 1`
31290else
31291 failed=`expr $failed + 1`
31292fi
31293
cristy8b350f62009-11-15 23:12:43 +000031294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031295$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031296if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031297 $as_echo_n "(cached) " >&6
31298else
31299 ac_check_lib_save_LIBS=$LIBS
31300LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031302/* end confdefs.h. */
31303
31304/* Override any GCC internal prototype to avoid an error.
31305 Use char because int might match the return type of a GCC
31306 builtin and then its argument prototype would still apply. */
31307#ifdef __cplusplus
31308extern "C"
31309#endif
31310char TIFFReadRGBATile ();
31311int
31312main ()
31313{
31314return TIFFReadRGBATile ();
31315 ;
31316 return 0;
31317}
31318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031320 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31321else
cristy8b350f62009-11-15 23:12:43 +000031322 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031323fi
cristy8b350f62009-11-15 23:12:43 +000031324rm -f core conftest.err conftest.$ac_objext \
31325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031326LIBS=$ac_check_lib_save_LIBS
31327fi
cristy8b350f62009-11-15 23:12:43 +000031328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031329$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031330if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031331 passed=`expr $passed + 1`
31332else
31333 failed=`expr $failed + 1`
31334fi
31335
cristy8b350f62009-11-15 23:12:43 +000031336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031337$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031338if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031339 $as_echo_n "(cached) " >&6
31340else
31341 ac_check_lib_save_LIBS=$LIBS
31342LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031344/* end confdefs.h. */
31345
31346/* Override any GCC internal prototype to avoid an error.
31347 Use char because int might match the return type of a GCC
31348 builtin and then its argument prototype would still apply. */
31349#ifdef __cplusplus
31350extern "C"
31351#endif
31352char TIFFReadRGBAStrip ();
31353int
31354main ()
31355{
31356return TIFFReadRGBAStrip ();
31357 ;
31358 return 0;
31359}
31360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031362 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31363else
cristy8b350f62009-11-15 23:12:43 +000031364 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031365fi
cristy8b350f62009-11-15 23:12:43 +000031366rm -f core conftest.err conftest.$ac_objext \
31367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031368LIBS=$ac_check_lib_save_LIBS
31369fi
cristy8b350f62009-11-15 23:12:43 +000031370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031371$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031372if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031373 passed=`expr $passed + 1`
31374else
31375 failed=`expr $failed + 1`
31376fi
31377
cristy8b350f62009-11-15 23:12:43 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031379$as_echo_n "checking if TIFF package is complete... " >&6; }
31380 if test $passed -gt 0; then
31381 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31383$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031384 have_tiff='no (failed tests)'
31385 else
31386 TIFF_LIBS='-ltiff'
31387 LIBS="$TIFF_LIBS $LIBS"
31388
cristy8b350f62009-11-15 23:12:43 +000031389$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031390
cristy09b53e12011-10-14 12:47:22 +000031391 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31392$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031393 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031394 for ac_header in tiffconf.h
31395do :
31396 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031397if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031398 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031399#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031400_ACEOF
31401
31402fi
31403
31404done
31405
cristy8b350f62009-11-15 23:12:43 +000031406 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031407 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31408 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31409 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031410do :
31411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31412ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031413if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031414 cat >>confdefs.h <<_ACEOF
31415#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31416_ACEOF
31417
31418fi
31419done
31420
31421 fi
31422 else
cristy09b53e12011-10-14 12:47:22 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31424$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031425 fi
31426fi
cristy73bd4a52010-10-05 11:24:23 +000031427 if test "$have_tiff" = 'yes'; then
31428 TIFF_DELEGATE_TRUE=
31429 TIFF_DELEGATE_FALSE='#'
31430else
31431 TIFF_DELEGATE_TRUE='#'
31432 TIFF_DELEGATE_FALSE=
31433fi
31434
cristy3ed852e2009-09-05 21:47:34 +000031435
31436
31437
31438#
cristyb1860752011-03-14 00:27:46 +000031439# Check for WEBP delegate library.
31440#
31441
31442# Check whether --with-webp was given.
31443if test "${with_webp+set}" = set; then :
31444 withval=$with_webp; with_webp=$withval
31445else
31446 with_webp='yes'
31447fi
31448
31449
31450if test "$with_webp" != 'yes'; then
31451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31452fi
31453
31454have_webp='no'
31455WEBP_LIBS=''
31456if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31458$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31460$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031461 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31462$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031463 failed=0
31464 passed=0
31465 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31466if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31467 passed=`expr $passed + 1`
31468else
31469 failed=`expr $failed + 1`
31470fi
31471
31472
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31474$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31475if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31476 $as_echo_n "(cached) " >&6
31477else
31478 ac_check_lib_save_LIBS=$LIBS
31479LIBS="-lwebp $LIBS"
31480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31481/* end confdefs.h. */
31482
31483/* Override any GCC internal prototype to avoid an error.
31484 Use char because int might match the return type of a GCC
31485 builtin and then its argument prototype would still apply. */
31486#ifdef __cplusplus
31487extern "C"
31488#endif
31489char WebPDecodeRGB ();
31490int
31491main ()
31492{
31493return WebPDecodeRGB ();
31494 ;
31495 return 0;
31496}
31497_ACEOF
31498if ac_fn_c_try_link "$LINENO"; then :
31499 ac_cv_lib_webp_WebPDecodeRGB=yes
31500else
31501 ac_cv_lib_webp_WebPDecodeRGB=no
31502fi
31503rm -f core conftest.err conftest.$ac_objext \
31504 conftest$ac_exeext conftest.$ac_ext
31505LIBS=$ac_check_lib_save_LIBS
31506fi
31507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31508$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31509if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31510 passed=`expr $passed + 1`
31511else
31512 failed=`expr $failed + 1`
31513fi
31514
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31516$as_echo_n "checking if WEBP package is complete... " >&6; }
31517 if test $passed -gt 0; then
31518 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031519 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31520$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031521 have_webp='no (failed tests)'
31522 else
31523 WEBP_LIBS='-lwebp'
31524 LIBS="$WEBP_LIBS $LIBS"
31525
31526$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31527
cristy09b53e12011-10-14 12:47:22 +000031528 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31529$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031530 have_webp='yes'
31531 fi
31532 else
cristy09b53e12011-10-14 12:47:22 +000031533 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31534$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031535 fi
31536fi
31537 if test "$have_webp" = 'yes'; then
31538 WEBP_DELEGATE_TRUE=
31539 WEBP_DELEGATE_FALSE='#'
31540else
31541 WEBP_DELEGATE_TRUE='#'
31542 WEBP_DELEGATE_FALSE=
31543fi
31544
31545
31546
31547
31548#
cristy3ed852e2009-09-05 21:47:34 +000031549# Set Windows font directory.
31550#
31551
31552# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031553if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031554 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31555else
31556 with_windows_font_dir=''
31557fi
31558
31559if test "$with_windows_font_dir" != '' ; then
31560 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31561fi
31562
31563
31564#
31565# Check for WMF delegate library.
31566#
31567
31568# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031569if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031570 withval=$with_wmf; with_wmf=$withval
31571else
cristy8d63d1d2010-01-06 20:38:37 +000031572 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031573fi
31574
31575
31576if test "$with_wmf" != 'yes'; then
31577 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31578fi
31579
31580have_wmf='no'
31581WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031582WMF_LIBS_DEPS=''
31583OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031584if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31586$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031588$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31590$as_echo "" >&6; }
31591 have_libwmf='no'
31592 have_libwmflite='no'
31593 have_libwmf_ipa_h='no'
31594
31595 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31596"
31597if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31598 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031599fi
31600
31601
cristy03f7cf92011-12-15 01:40:41 +000031602 if test "$have_libwmf_ipa_h" = 'yes'; then
31603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31604$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31605if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031606 $as_echo_n "(cached) " >&6
31607else
31608 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031609LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031611/* end confdefs.h. */
31612
31613/* Override any GCC internal prototype to avoid an error.
31614 Use char because int might match the return type of a GCC
31615 builtin and then its argument prototype would still apply. */
31616#ifdef __cplusplus
31617extern "C"
31618#endif
cristy03f7cf92011-12-15 01:40:41 +000031619char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031620int
31621main ()
31622{
cristy03f7cf92011-12-15 01:40:41 +000031623return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031624 ;
31625 return 0;
31626}
31627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031628if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031629 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031630else
cristy03f7cf92011-12-15 01:40:41 +000031631 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031632fi
cristy8b350f62009-11-15 23:12:43 +000031633rm -f core conftest.err conftest.$ac_objext \
31634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031635LIBS=$ac_check_lib_save_LIBS
31636fi
cristy03f7cf92011-12-15 01:40:41 +000031637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31638$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31639if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31640 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031641fi
31642
cristy03f7cf92011-12-15 01:40:41 +000031643 if test "$have_libwmflite" = 'yes'; then
31644
31645$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31646
31647 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031648 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031649 have_wmf='yes'
31650 else
31651 WMF_LIBS_DEPS=''
31652 WMF_CONFIG_LIBS=`libwmf-config --libs`
31653 for lib in xml2 expat freetype jpeg png z; do
31654 testlib="-l${lib}"
31655 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31656 done
31657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31658$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31659if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31660 $as_echo_n "(cached) " >&6
31661else
31662 ac_check_lib_save_LIBS=$LIBS
31663LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31665/* end confdefs.h. */
31666
31667/* Override any GCC internal prototype to avoid an error.
31668 Use char because int might match the return type of a GCC
31669 builtin and then its argument prototype would still apply. */
31670#ifdef __cplusplus
31671extern "C"
31672#endif
31673char wmf_api_create ();
31674int
31675main ()
31676{
31677return wmf_api_create ();
31678 ;
31679 return 0;
31680}
31681_ACEOF
31682if ac_fn_c_try_link "$LINENO"; then :
31683 ac_cv_lib_wmf_wmf_api_create=yes
31684else
31685 ac_cv_lib_wmf_wmf_api_create=no
31686fi
31687rm -f core conftest.err conftest.$ac_objext \
31688 conftest$ac_exeext conftest.$ac_ext
31689LIBS=$ac_check_lib_save_LIBS
31690fi
31691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31692$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31693if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31694 have_libwmf='yes'
31695fi
31696
31697 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031698
cristy8b350f62009-11-15 23:12:43 +000031699$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031700
cristy03f7cf92011-12-15 01:40:41 +000031701 WMF_LIBS='-lwmf'
31702 LIBS="$WMF_LIBS $LIBS"
31703 have_wmf='yes'
31704 else
31705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31706$as_echo "no -- some components failed test" >&6; }
31707 have_wmf='no (failed tests)'
31708 have_wmflite='no (failed tests)'
31709 LIBS="$OLIBS"
31710 WMF_LIBS=''
31711 fi
glennrp33e524b2011-08-24 17:41:57 +000031712 fi
cristy03f7cf92011-12-15 01:40:41 +000031713 fi
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31715$as_echo_n "checking if WMF package is complete... " >&6; }
31716 if test "$have_wmf" = 'yes'; then
31717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31718$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031719 else
cristy03f7cf92011-12-15 01:40:41 +000031720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31721$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031722 fi
cristy3ed852e2009-09-05 21:47:34 +000031723fi
cristy73bd4a52010-10-05 11:24:23 +000031724 if test "$have_wmf" = 'yes'; then
31725 WMF_DELEGATE_TRUE=
31726 WMF_DELEGATE_FALSE='#'
31727else
31728 WMF_DELEGATE_TRUE='#'
31729 WMF_DELEGATE_FALSE=
31730fi
31731
cristy3ed852e2009-09-05 21:47:34 +000031732
31733
31734
cristy81beccd2011-10-03 18:17:24 +000031735
31736
cristy3ed852e2009-09-05 21:47:34 +000031737#
31738# Check for XML delegate library.
31739#
31740
31741# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031742if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031743 withval=$with_xml; with_xml=$withval
31744else
cristy81beccd2011-10-03 18:17:24 +000031745 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031746fi
31747
31748
cristy81beccd2011-10-03 18:17:24 +000031749if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031750 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31751fi
31752
cristy81beccd2011-10-03 18:17:24 +000031753have_xml='no'
31754XML_LIBS=''
31755if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31757$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31759$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031760 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31761$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031762 PERSIST_LDFLAGS=$LDFLAGS
31763 PERSIST_CPPFLAGS=$CPPFLAGS
31764 xml2_config=''
31765 # Extract the first word of "xml2-config", so it can be a program name with args.
31766set dummy xml2-config; ac_word=$2
31767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31768$as_echo_n "checking for $ac_word... " >&6; }
31769if ${ac_cv_path_xml2_config+:} false; then :
31770 $as_echo_n "(cached) " >&6
31771else
31772 case $xml2_config in
31773 [\\/]* | ?:[\\/]*)
31774 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31775 ;;
31776 *)
31777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31778for as_dir in $PATH
31779do
31780 IFS=$as_save_IFS
31781 test -z "$as_dir" && as_dir=.
31782 for ac_exec_ext in '' $ac_executable_extensions; do
31783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31784 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31786 break 2
31787 fi
31788done
31789 done
31790IFS=$as_save_IFS
31791
31792 ;;
31793esac
31794fi
31795xml2_config=$ac_cv_path_xml2_config
31796if test -n "$xml2_config"; then
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31798$as_echo "$xml2_config" >&6; }
31799else
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31801$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031802fi
31803
cristy81beccd2011-10-03 18:17:24 +000031804 if test -n "$xml2_config"; then
31805 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31806 # the shared library installed under /usr/lib, whereas the package
31807 # installs itself under $prefix/libxml and $prefix/lib.
31808 xml2_prefix=`xml2-config --prefix`
31809 if test -d "${xml2_prefix}/include/libxml2"; then
31810 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31811 fi
31812 if test "${xml2_prefix}" != '/usr'; then
31813 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31814 fi
31815 fi
31816 failed=0
31817 passed=0
31818 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31819if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31820 passed=`expr $passed + 1`
31821else
31822 failed=`expr $failed + 1`
31823fi
31824
31825
31826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31827$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31828if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31829 $as_echo_n "(cached) " >&6
31830else
31831 ac_check_lib_save_LIBS=$LIBS
31832LIBS="-lxml2 $LIBS"
31833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31834/* end confdefs.h. */
31835
31836/* Override any GCC internal prototype to avoid an error.
31837 Use char because int might match the return type of a GCC
31838 builtin and then its argument prototype would still apply. */
31839#ifdef __cplusplus
31840extern "C"
31841#endif
31842char xmlSAXVersion ();
31843int
31844main ()
31845{
31846return xmlSAXVersion ();
31847 ;
31848 return 0;
31849}
31850_ACEOF
31851if ac_fn_c_try_link "$LINENO"; then :
31852 ac_cv_lib_xml2_xmlSAXVersion=yes
31853else
31854 ac_cv_lib_xml2_xmlSAXVersion=no
31855fi
31856rm -f core conftest.err conftest.$ac_objext \
31857 conftest$ac_exeext conftest.$ac_ext
31858LIBS=$ac_check_lib_save_LIBS
31859fi
31860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31861$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31862if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31863 passed=`expr $passed + 1`
31864else
31865 failed=`expr $failed + 1`
31866fi
31867
31868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31869$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31870if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31871 $as_echo_n "(cached) " >&6
31872else
31873 ac_check_lib_save_LIBS=$LIBS
31874LIBS="-lxml2 $LIBS"
31875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31876/* end confdefs.h. */
31877
31878/* Override any GCC internal prototype to avoid an error.
31879 Use char because int might match the return type of a GCC
31880 builtin and then its argument prototype would still apply. */
31881#ifdef __cplusplus
31882extern "C"
31883#endif
31884char xmlParseChunk ();
31885int
31886main ()
31887{
31888return xmlParseChunk ();
31889 ;
31890 return 0;
31891}
31892_ACEOF
31893if ac_fn_c_try_link "$LINENO"; then :
31894 ac_cv_lib_xml2_xmlParseChunk=yes
31895else
31896 ac_cv_lib_xml2_xmlParseChunk=no
31897fi
31898rm -f core conftest.err conftest.$ac_objext \
31899 conftest$ac_exeext conftest.$ac_ext
31900LIBS=$ac_check_lib_save_LIBS
31901fi
31902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31903$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31904if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31905 passed=`expr $passed + 1`
31906else
31907 failed=`expr $failed + 1`
31908fi
31909
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31911$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31912if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31913 $as_echo_n "(cached) " >&6
31914else
31915 ac_check_lib_save_LIBS=$LIBS
31916LIBS="-lxml2 $LIBS"
31917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31918/* end confdefs.h. */
31919
31920/* Override any GCC internal prototype to avoid an error.
31921 Use char because int might match the return type of a GCC
31922 builtin and then its argument prototype would still apply. */
31923#ifdef __cplusplus
31924extern "C"
31925#endif
31926char xmlCreatePushParserCtxt ();
31927int
31928main ()
31929{
31930return xmlCreatePushParserCtxt ();
31931 ;
31932 return 0;
31933}
31934_ACEOF
31935if ac_fn_c_try_link "$LINENO"; then :
31936 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31937else
31938 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31939fi
31940rm -f core conftest.err conftest.$ac_objext \
31941 conftest$ac_exeext conftest.$ac_ext
31942LIBS=$ac_check_lib_save_LIBS
31943fi
31944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31945$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31946if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31947 passed=`expr $passed + 1`
31948else
31949 failed=`expr $failed + 1`
31950fi
31951
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31953$as_echo_n "checking if XML package is complete... " >&6; }
31954 if test $passed -gt 0; then
31955 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031956 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31957$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031958 have_xml='no (failed tests)'
31959 LDFLAGS="$PERSIST_LDFLAGS"
31960 CPPFLAGS="$PERSIST_CPPFLAGS"
31961 else
31962 XML_LIBS='-lxml2'
31963 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031964
cristy8b350f62009-11-15 23:12:43 +000031965$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031966
cristy09b53e12011-10-14 12:47:22 +000031967 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31968$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031969 have_xml='yes'
31970 fi
31971 else
cristy09b53e12011-10-14 12:47:22 +000031972 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31973$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031974 fi
31975fi
cristy73bd4a52010-10-05 11:24:23 +000031976 if test "$have_xml" = 'yes'; then
31977 XML_DELEGATE_TRUE=
31978 XML_DELEGATE_FALSE='#'
31979else
31980 XML_DELEGATE_TRUE='#'
31981 XML_DELEGATE_FALSE=
31982fi
31983
cristy3ed852e2009-09-05 21:47:34 +000031984
31985
31986
31987# Substitute compiler name to build/link PerlMagick
31988#
31989
31990
31991#
31992# Configure install Paths
31993#
cristy7def36a2011-10-28 19:04:41 +000031994
cristy2a11bef2011-10-28 18:33:11 +000031995# Path to ImageMagick header files
31996INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031997INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31998DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031999case "${build_os}" in
32000 mingw* )
32001 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32002 ;;
32003esac
32004
32005cat >>confdefs.h <<_ACEOF
32006#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32007_ACEOF
32008
32009
cristy3ed852e2009-09-05 21:47:34 +000032010
32011# Subdirectory under lib to place ImageMagick lib files
32012LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32013
32014cat >>confdefs.h <<_ACEOF
32015#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32016_ACEOF
32017
32018
32019# Path to ImageMagick bin directory
32020EXECUTABLE_PATH="${BIN_DIR}"
32021DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32022case "${build_os}" in
32023 mingw* )
32024 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32025 ;;
32026esac
32027
32028cat >>confdefs.h <<_ACEOF
32029#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32030_ACEOF
32031
32032
32033
32034# Path to ImageMagick lib
32035LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32036DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32037case "${build_os}" in
32038 mingw* )
32039 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32040 ;;
32041esac
32042
32043cat >>confdefs.h <<_ACEOF
32044#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32045_ACEOF
32046
32047
32048
cristy3ed852e2009-09-05 21:47:34 +000032049#
32050# Subdirectory under lib to place ImageMagick coder module files
32051CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32052
32053cat >>confdefs.h <<_ACEOF
32054#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32055_ACEOF
32056
32057CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32058DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32059case "${build_os}" in
32060 mingw* )
32061 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32062 ;;
32063esac
32064
32065cat >>confdefs.h <<_ACEOF
32066#define CODER_PATH "$DEFINE_CODER_PATH"
32067_ACEOF
32068
32069
32070
32071#
32072# Subdirectory under lib to place ImageMagick filter module files
32073FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32074
32075cat >>confdefs.h <<_ACEOF
32076#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32077_ACEOF
32078
32079FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32080DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32081case "${build_os}" in
32082 mingw* )
32083 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32084 ;;
32085esac
32086
32087cat >>confdefs.h <<_ACEOF
32088#define FILTER_PATH "$DEFINE_FILTER_PATH"
32089_ACEOF
32090
32091
32092
32093#
32094# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032095DOCUMENTATION_RELATIVE_PATH=""
32096DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32097DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032098case "${build_os}" in
32099 mingw* )
32100 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32101 ;;
32102esac
32103
32104cat >>confdefs.h <<_ACEOF
32105#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32106_ACEOF
32107
32108
32109
cristy2a11bef2011-10-28 18:33:11 +000032110# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032111CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032112
32113cat >>confdefs.h <<_ACEOF
32114#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32115_ACEOF
32116
cristy7def36a2011-10-28 19:04:41 +000032117CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032118DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32119case "${build_os}" in
32120 mingw* )
32121 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32122 ;;
32123esac
32124
32125cat >>confdefs.h <<_ACEOF
32126#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32127_ACEOF
32128
32129
32130
cristy2a11bef2011-10-28 18:33:11 +000032131# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032132SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032133
32134cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032135#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032136_ACEOF
32137
cristy670aa3c2011-11-03 00:54:00 +000032138SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032139DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032140case "${build_os}" in
32141 mingw* )
cristy4f820712011-04-01 12:35:43 +000032142 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032143 ;;
32144esac
32145
32146cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032147#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032148_ACEOF
32149
32150
32151
cristy408ebcd2011-11-14 01:36:57 +000032152# Subdirectory to place architecture-dependent configuration files
32153SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032154
32155cat >>confdefs.h <<_ACEOF
32156#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32157_ACEOF
32158
cristy408ebcd2011-11-14 01:36:57 +000032159SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32160DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032161case "${build_os}" in
32162 mingw* )
32163 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32164 ;;
32165esac
32166
32167cat >>confdefs.h <<_ACEOF
32168#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32169_ACEOF
32170
32171
32172
cristy3ed852e2009-09-05 21:47:34 +000032173#
32174# program_transform_name is formed for use in a Makefile, so create a
32175# modified version for use in a shell script.
32176configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32177
32178# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032179{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32180$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032182$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032183{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32184$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032185AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032186BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032187BZIPDelegateDefault='bzip2'
32188BrowseDelegateDefault='xdg-open'
32189CGMDecodeDelegateDefault='ralcgm'
32190CatDelegateDefault='cat'
32191DNGDecodeDelegateDefault='ufraw-batch'
32192GVCDecodeDelegateDefault='dot'
32193DVIDecodeDelegateDefault='dvips'
32194EchoDelegateDefault='echo'
32195EditorDelegateDefault='xterm'
32196FIGDecodeDelegateDefault='fig2dev'
32197ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32198DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32199MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32200GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032201HPGLDecodeDelegateDefault='hp2xx'
32202HTMLDecodeDelegateDefault='html2ps'
32203ILBMDecodeDelegateDefault='ilbmtoppm'
32204ILBMEncodeDelegateDefault='ppmtoilbm'
32205LPDelegateDefault='lp'
32206LPRDelegateDefault='lpr'
32207LZWDecodeDelegateDefault='uncompress'
32208LZWEncodeDelegateDefault='compress'
32209LaunchDelegateDefault='gimp'
32210MANDelegateDefault='groff'
32211MPEGDecodeDelegateDefault='ffmpeg'
32212MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032213MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032214MVDelegateDefault='mv'
32215PCLDelegateDefault='pcl6'
32216PGPDecodeDelegateDefault='pgpv'
32217POVDelegateDefault='povray'
32218if test "$native_win32_build" = 'yes'; then
32219 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032220elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032221 PSDelegateDefault='gsc'
32222else
32223 PSDelegateDefault='gs'
32224fi
32225RLEEncodeDelegateDefault='rawtorle'
32226RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032227RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032228SCANDecodeDelegateDefault='scanimage'
32229TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032230UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032231WMFDecodeDelegateDefault='wmf2eps'
32232WWWDecodeDelegateDefault='curl'
32233XPSDelegateDefault='gxps'
32234ZipDelegateDefault='gzip'
32235
32236# Search for delegates
32237# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32238set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032241if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032242 $as_echo_n "(cached) " >&6
32243else
32244 case $AutotraceDecodeDelegate in
32245 [\\/]* | ?:[\\/]*)
32246 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32247 ;;
32248 *)
32249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32250for as_dir in $PATH
32251do
32252 IFS=$as_save_IFS
32253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32256 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032258 break 2
32259 fi
32260done
cristy8b350f62009-11-15 23:12:43 +000032261 done
cristy3ed852e2009-09-05 21:47:34 +000032262IFS=$as_save_IFS
32263
32264 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32265 ;;
32266esac
32267fi
32268AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32269if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271$as_echo "$AutotraceDecodeDelegate" >&6; }
32272else
cristy8b350f62009-11-15 23:12:43 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274$as_echo "no" >&6; }
32275fi
32276
32277
cristy3ed852e2009-09-05 21:47:34 +000032278# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32279set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032282if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032283 $as_echo_n "(cached) " >&6
32284else
32285 case $BlenderDecodeDelegate in
32286 [\\/]* | ?:[\\/]*)
32287 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32288 ;;
32289 *)
32290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32291for as_dir in $PATH
32292do
32293 IFS=$as_save_IFS
32294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32297 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032299 break 2
32300 fi
32301done
cristy8b350f62009-11-15 23:12:43 +000032302 done
cristy3ed852e2009-09-05 21:47:34 +000032303IFS=$as_save_IFS
32304
32305 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32306 ;;
32307esac
32308fi
32309BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32310if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312$as_echo "$BlenderDecodeDelegate" >&6; }
32313else
cristy8b350f62009-11-15 23:12:43 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo "no" >&6; }
32316fi
32317
32318
32319# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32320set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032323if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032324 $as_echo_n "(cached) " >&6
32325else
32326 case $BZIPDelegate in
32327 [\\/]* | ?:[\\/]*)
32328 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32329 ;;
32330 *)
32331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32332for as_dir in $PATH
32333do
32334 IFS=$as_save_IFS
32335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32338 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032340 break 2
32341 fi
32342done
cristy8b350f62009-11-15 23:12:43 +000032343 done
cristy3ed852e2009-09-05 21:47:34 +000032344IFS=$as_save_IFS
32345
32346 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32347 ;;
32348esac
32349fi
32350BZIPDelegate=$ac_cv_path_BZIPDelegate
32351if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353$as_echo "$BZIPDelegate" >&6; }
32354else
cristy8b350f62009-11-15 23:12:43 +000032355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo "no" >&6; }
32357fi
32358
32359
32360# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32361set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032364if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032365 $as_echo_n "(cached) " >&6
32366else
32367 case $BrowseDelegate in
32368 [\\/]* | ?:[\\/]*)
32369 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32370 ;;
32371 *)
32372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32373for as_dir in $PATH
32374do
32375 IFS=$as_save_IFS
32376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32379 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032381 break 2
32382 fi
32383done
cristy8b350f62009-11-15 23:12:43 +000032384 done
cristy3ed852e2009-09-05 21:47:34 +000032385IFS=$as_save_IFS
32386
32387 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32388 ;;
32389esac
32390fi
32391BrowseDelegate=$ac_cv_path_BrowseDelegate
32392if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032394$as_echo "$BrowseDelegate" >&6; }
32395else
cristy8b350f62009-11-15 23:12:43 +000032396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397$as_echo "no" >&6; }
32398fi
32399
32400
32401# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32402set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032405if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032406 $as_echo_n "(cached) " >&6
32407else
32408 case $CGMDecodeDelegate in
32409 [\\/]* | ?:[\\/]*)
32410 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32411 ;;
32412 *)
32413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32414for as_dir in $PATH
32415do
32416 IFS=$as_save_IFS
32417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32420 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032422 break 2
32423 fi
32424done
cristy8b350f62009-11-15 23:12:43 +000032425 done
cristy3ed852e2009-09-05 21:47:34 +000032426IFS=$as_save_IFS
32427
32428 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32429 ;;
32430esac
32431fi
32432CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32433if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032435$as_echo "$CGMDecodeDelegate" >&6; }
32436else
cristy8b350f62009-11-15 23:12:43 +000032437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438$as_echo "no" >&6; }
32439fi
32440
32441
32442# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32443set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032445$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032446if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032447 $as_echo_n "(cached) " >&6
32448else
32449 case $CatDelegate in
32450 [\\/]* | ?:[\\/]*)
32451 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32452 ;;
32453 *)
32454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32455for as_dir in $PATH
32456do
32457 IFS=$as_save_IFS
32458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32461 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032463 break 2
32464 fi
32465done
cristy8b350f62009-11-15 23:12:43 +000032466 done
cristy3ed852e2009-09-05 21:47:34 +000032467IFS=$as_save_IFS
32468
32469 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32470 ;;
32471esac
32472fi
32473CatDelegate=$ac_cv_path_CatDelegate
32474if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032476$as_echo "$CatDelegate" >&6; }
32477else
cristy8b350f62009-11-15 23:12:43 +000032478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032479$as_echo "no" >&6; }
32480fi
32481
32482
32483# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32484set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032487if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032488 $as_echo_n "(cached) " >&6
32489else
32490 case $DNGDecodeDelegate in
32491 [\\/]* | ?:[\\/]*)
32492 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32493 ;;
32494 *)
32495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32496for as_dir in $PATH
32497do
32498 IFS=$as_save_IFS
32499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32502 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032504 break 2
32505 fi
32506done
cristy8b350f62009-11-15 23:12:43 +000032507 done
cristy3ed852e2009-09-05 21:47:34 +000032508IFS=$as_save_IFS
32509
32510 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32511 ;;
32512esac
32513fi
32514DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32515if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032517$as_echo "$DNGDecodeDelegate" >&6; }
32518else
cristy8b350f62009-11-15 23:12:43 +000032519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520$as_echo "no" >&6; }
32521fi
32522
32523
32524# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32525set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032528if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032529 $as_echo_n "(cached) " >&6
32530else
32531 case $GVCDecodeDelegate in
32532 [\\/]* | ?:[\\/]*)
32533 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32534 ;;
32535 *)
32536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32537for as_dir in $PATH
32538do
32539 IFS=$as_save_IFS
32540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32543 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032545 break 2
32546 fi
32547done
cristy8b350f62009-11-15 23:12:43 +000032548 done
cristy3ed852e2009-09-05 21:47:34 +000032549IFS=$as_save_IFS
32550
32551 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32552 ;;
32553esac
32554fi
32555GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32556if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558$as_echo "$GVCDecodeDelegate" >&6; }
32559else
cristy8b350f62009-11-15 23:12:43 +000032560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561$as_echo "no" >&6; }
32562fi
32563
32564
32565# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32566set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032569if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032570 $as_echo_n "(cached) " >&6
32571else
32572 case $DVIDecodeDelegate in
32573 [\\/]* | ?:[\\/]*)
32574 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32575 ;;
32576 *)
32577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32578for as_dir in $PATH
32579do
32580 IFS=$as_save_IFS
32581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32584 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586 break 2
32587 fi
32588done
cristy8b350f62009-11-15 23:12:43 +000032589 done
cristy3ed852e2009-09-05 21:47:34 +000032590IFS=$as_save_IFS
32591
32592 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32593 ;;
32594esac
32595fi
32596DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32597if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032599$as_echo "$DVIDecodeDelegate" >&6; }
32600else
cristy8b350f62009-11-15 23:12:43 +000032601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602$as_echo "no" >&6; }
32603fi
32604
32605
32606# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32607set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032610if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032611 $as_echo_n "(cached) " >&6
32612else
32613 case $EchoDelegate in
32614 [\\/]* | ?:[\\/]*)
32615 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32616 ;;
32617 *)
32618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32619for as_dir in $PATH
32620do
32621 IFS=$as_save_IFS
32622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32625 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032627 break 2
32628 fi
32629done
cristy8b350f62009-11-15 23:12:43 +000032630 done
cristy3ed852e2009-09-05 21:47:34 +000032631IFS=$as_save_IFS
32632
32633 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32634 ;;
32635esac
32636fi
32637EchoDelegate=$ac_cv_path_EchoDelegate
32638if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640$as_echo "$EchoDelegate" >&6; }
32641else
cristy8b350f62009-11-15 23:12:43 +000032642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643$as_echo "no" >&6; }
32644fi
32645
32646
32647# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32648set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032650$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032651if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032652 $as_echo_n "(cached) " >&6
32653else
32654 case $EditorDelegate in
32655 [\\/]* | ?:[\\/]*)
32656 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32657 ;;
32658 *)
32659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32660for as_dir in $PATH
32661do
32662 IFS=$as_save_IFS
32663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32666 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668 break 2
32669 fi
32670done
cristy8b350f62009-11-15 23:12:43 +000032671 done
cristy3ed852e2009-09-05 21:47:34 +000032672IFS=$as_save_IFS
32673
32674 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32675 ;;
32676esac
32677fi
32678EditorDelegate=$ac_cv_path_EditorDelegate
32679if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032681$as_echo "$EditorDelegate" >&6; }
32682else
cristy8b350f62009-11-15 23:12:43 +000032683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684$as_echo "no" >&6; }
32685fi
32686
32687
32688# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32689set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032692if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032693 $as_echo_n "(cached) " >&6
32694else
32695 case $FIGDecodeDelegate in
32696 [\\/]* | ?:[\\/]*)
32697 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32698 ;;
32699 *)
32700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32701for as_dir in $PATH
32702do
32703 IFS=$as_save_IFS
32704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32707 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709 break 2
32710 fi
32711done
cristy8b350f62009-11-15 23:12:43 +000032712 done
cristy3ed852e2009-09-05 21:47:34 +000032713IFS=$as_save_IFS
32714
32715 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32716 ;;
32717esac
32718fi
32719FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32720if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032722$as_echo "$FIGDecodeDelegate" >&6; }
32723else
cristy8b350f62009-11-15 23:12:43 +000032724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725$as_echo "no" >&6; }
32726fi
32727
32728
32729# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32730set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032733if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032734 $as_echo_n "(cached) " >&6
32735else
32736 case $ConvertDelegate in
32737 [\\/]* | ?:[\\/]*)
32738 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32739 ;;
32740 *)
32741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32742for as_dir in $PATH
32743do
32744 IFS=$as_save_IFS
32745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32748 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750 break 2
32751 fi
32752done
cristy8b350f62009-11-15 23:12:43 +000032753 done
cristy3ed852e2009-09-05 21:47:34 +000032754IFS=$as_save_IFS
32755
32756 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32757 ;;
32758esac
32759fi
32760ConvertDelegate=$ac_cv_path_ConvertDelegate
32761if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032763$as_echo "$ConvertDelegate" >&6; }
32764else
cristy8b350f62009-11-15 23:12:43 +000032765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766$as_echo "no" >&6; }
32767fi
32768
32769
32770# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32771set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032774if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032775 $as_echo_n "(cached) " >&6
32776else
32777 case $DisplayDelegate in
32778 [\\/]* | ?:[\\/]*)
32779 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32780 ;;
32781 *)
32782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32783for as_dir in $PATH
32784do
32785 IFS=$as_save_IFS
32786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32789 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791 break 2
32792 fi
32793done
cristy8b350f62009-11-15 23:12:43 +000032794 done
cristy3ed852e2009-09-05 21:47:34 +000032795IFS=$as_save_IFS
32796
32797 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32798 ;;
32799esac
32800fi
32801DisplayDelegate=$ac_cv_path_DisplayDelegate
32802if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032804$as_echo "$DisplayDelegate" >&6; }
32805else
cristy8b350f62009-11-15 23:12:43 +000032806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032807$as_echo "no" >&6; }
32808fi
32809
32810
32811# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32812set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032815if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032816 $as_echo_n "(cached) " >&6
32817else
32818 case $MogrifyDelegate in
32819 [\\/]* | ?:[\\/]*)
32820 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32821 ;;
32822 *)
32823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32824for as_dir in $PATH
32825do
32826 IFS=$as_save_IFS
32827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32830 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832 break 2
32833 fi
32834done
cristy8b350f62009-11-15 23:12:43 +000032835 done
cristy3ed852e2009-09-05 21:47:34 +000032836IFS=$as_save_IFS
32837
32838 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32839 ;;
32840esac
32841fi
32842MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32843if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032845$as_echo "$MogrifyDelegate" >&6; }
32846else
cristy8b350f62009-11-15 23:12:43 +000032847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032848$as_echo "no" >&6; }
32849fi
32850
32851
32852# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32853set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032856if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032857 $as_echo_n "(cached) " >&6
32858else
32859 case $GnuplotDecodeDelegate in
32860 [\\/]* | ?:[\\/]*)
32861 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32862 ;;
32863 *)
32864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32865for as_dir in $PATH
32866do
32867 IFS=$as_save_IFS
32868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32871 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032873 break 2
32874 fi
32875done
cristy8b350f62009-11-15 23:12:43 +000032876 done
cristy3ed852e2009-09-05 21:47:34 +000032877IFS=$as_save_IFS
32878
32879 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32880 ;;
32881esac
32882fi
32883GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32884if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886$as_echo "$GnuplotDecodeDelegate" >&6; }
32887else
cristy8b350f62009-11-15 23:12:43 +000032888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo "no" >&6; }
32890fi
32891
32892
cristy3ed852e2009-09-05 21:47:34 +000032893# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32894set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032896$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032897if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032898 $as_echo_n "(cached) " >&6
32899else
32900 case $HPGLDecodeDelegate in
32901 [\\/]* | ?:[\\/]*)
32902 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32903 ;;
32904 *)
32905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32906for as_dir in $PATH
32907do
32908 IFS=$as_save_IFS
32909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32912 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914 break 2
32915 fi
32916done
cristy8b350f62009-11-15 23:12:43 +000032917 done
cristy3ed852e2009-09-05 21:47:34 +000032918IFS=$as_save_IFS
32919
32920 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32921 ;;
32922esac
32923fi
32924HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32925if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo "$HPGLDecodeDelegate" >&6; }
32928else
cristy8b350f62009-11-15 23:12:43 +000032929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930$as_echo "no" >&6; }
32931fi
32932
32933
32934# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32935set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032938if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032939 $as_echo_n "(cached) " >&6
32940else
32941 case $HTMLDecodeDelegate in
32942 [\\/]* | ?:[\\/]*)
32943 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32944 ;;
32945 *)
32946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32947for as_dir in $PATH
32948do
32949 IFS=$as_save_IFS
32950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32953 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955 break 2
32956 fi
32957done
cristy8b350f62009-11-15 23:12:43 +000032958 done
cristy3ed852e2009-09-05 21:47:34 +000032959IFS=$as_save_IFS
32960
32961 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32962 ;;
32963esac
32964fi
32965HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32966if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968$as_echo "$HTMLDecodeDelegate" >&6; }
32969else
cristy8b350f62009-11-15 23:12:43 +000032970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032971$as_echo "no" >&6; }
32972fi
32973
32974
32975# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32976set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032979if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032980 $as_echo_n "(cached) " >&6
32981else
32982 case $ILBMDecodeDelegate in
32983 [\\/]* | ?:[\\/]*)
32984 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32985 ;;
32986 *)
32987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32988for as_dir in $PATH
32989do
32990 IFS=$as_save_IFS
32991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32994 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996 break 2
32997 fi
32998done
cristy8b350f62009-11-15 23:12:43 +000032999 done
cristy3ed852e2009-09-05 21:47:34 +000033000IFS=$as_save_IFS
33001
33002 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33003 ;;
33004esac
33005fi
33006ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33007if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo "$ILBMDecodeDelegate" >&6; }
33010else
cristy8b350f62009-11-15 23:12:43 +000033011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012$as_echo "no" >&6; }
33013fi
33014
33015
33016# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33017set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033020if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033021 $as_echo_n "(cached) " >&6
33022else
33023 case $ILBMEncodeDelegate in
33024 [\\/]* | ?:[\\/]*)
33025 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33026 ;;
33027 *)
33028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33029for as_dir in $PATH
33030do
33031 IFS=$as_save_IFS
33032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33035 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037 break 2
33038 fi
33039done
cristy8b350f62009-11-15 23:12:43 +000033040 done
cristy3ed852e2009-09-05 21:47:34 +000033041IFS=$as_save_IFS
33042
33043 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33044 ;;
33045esac
33046fi
33047ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33048if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033050$as_echo "$ILBMEncodeDelegate" >&6; }
33051else
cristy8b350f62009-11-15 23:12:43 +000033052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053$as_echo "no" >&6; }
33054fi
33055
33056
33057# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33058set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033060$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033061if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033062 $as_echo_n "(cached) " >&6
33063else
33064 case $LPDelegate in
33065 [\\/]* | ?:[\\/]*)
33066 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33067 ;;
33068 *)
33069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33070for as_dir in $PATH
33071do
33072 IFS=$as_save_IFS
33073 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33076 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078 break 2
33079 fi
33080done
cristy8b350f62009-11-15 23:12:43 +000033081 done
cristy3ed852e2009-09-05 21:47:34 +000033082IFS=$as_save_IFS
33083
33084 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33085 ;;
33086esac
33087fi
33088LPDelegate=$ac_cv_path_LPDelegate
33089if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033091$as_echo "$LPDelegate" >&6; }
33092else
cristy8b350f62009-11-15 23:12:43 +000033093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094$as_echo "no" >&6; }
33095fi
33096
33097
33098# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33099set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033101$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033102if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033103 $as_echo_n "(cached) " >&6
33104else
33105 case $LPRDelegate in
33106 [\\/]* | ?:[\\/]*)
33107 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33108 ;;
33109 *)
33110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33111for as_dir in $PATH
33112do
33113 IFS=$as_save_IFS
33114 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33117 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119 break 2
33120 fi
33121done
cristy8b350f62009-11-15 23:12:43 +000033122 done
cristy3ed852e2009-09-05 21:47:34 +000033123IFS=$as_save_IFS
33124
33125 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33126 ;;
33127esac
33128fi
33129LPRDelegate=$ac_cv_path_LPRDelegate
33130if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132$as_echo "$LPRDelegate" >&6; }
33133else
cristy8b350f62009-11-15 23:12:43 +000033134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135$as_echo "no" >&6; }
33136fi
33137
33138
33139# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33140set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033142$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033143if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033144 $as_echo_n "(cached) " >&6
33145else
33146 case $LZWDecodeDelegate in
33147 [\\/]* | ?:[\\/]*)
33148 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33149 ;;
33150 *)
33151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33152for as_dir in $PATH
33153do
33154 IFS=$as_save_IFS
33155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33158 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160 break 2
33161 fi
33162done
cristy8b350f62009-11-15 23:12:43 +000033163 done
cristy3ed852e2009-09-05 21:47:34 +000033164IFS=$as_save_IFS
33165
33166 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33167 ;;
33168esac
33169fi
33170LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33171if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033173$as_echo "$LZWDecodeDelegate" >&6; }
33174else
cristy8b350f62009-11-15 23:12:43 +000033175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033176$as_echo "no" >&6; }
33177fi
33178
33179
33180# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33181set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033184if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033185 $as_echo_n "(cached) " >&6
33186else
33187 case $LZWEncodeDelegate in
33188 [\\/]* | ?:[\\/]*)
33189 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33190 ;;
33191 *)
33192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33193for as_dir in $PATH
33194do
33195 IFS=$as_save_IFS
33196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33199 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033201 break 2
33202 fi
33203done
cristy8b350f62009-11-15 23:12:43 +000033204 done
cristy3ed852e2009-09-05 21:47:34 +000033205IFS=$as_save_IFS
33206
33207 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33208 ;;
33209esac
33210fi
33211LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33212if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033214$as_echo "$LZWEncodeDelegate" >&6; }
33215else
cristy8b350f62009-11-15 23:12:43 +000033216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033217$as_echo "no" >&6; }
33218fi
33219
33220
33221# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33222set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033225if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033226 $as_echo_n "(cached) " >&6
33227else
33228 case $LaunchDelegate in
33229 [\\/]* | ?:[\\/]*)
33230 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33231 ;;
33232 *)
33233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33234for as_dir in $PATH
33235do
33236 IFS=$as_save_IFS
33237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33240 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242 break 2
33243 fi
33244done
cristy8b350f62009-11-15 23:12:43 +000033245 done
cristy3ed852e2009-09-05 21:47:34 +000033246IFS=$as_save_IFS
33247
33248 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33249 ;;
33250esac
33251fi
33252LaunchDelegate=$ac_cv_path_LaunchDelegate
33253if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255$as_echo "$LaunchDelegate" >&6; }
33256else
cristy8b350f62009-11-15 23:12:43 +000033257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258$as_echo "no" >&6; }
33259fi
33260
33261
33262# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33263set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033266if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033267 $as_echo_n "(cached) " >&6
33268else
33269 case $MANDelegate in
33270 [\\/]* | ?:[\\/]*)
33271 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33272 ;;
33273 *)
33274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33275for as_dir in $PATH
33276do
33277 IFS=$as_save_IFS
33278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33281 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283 break 2
33284 fi
33285done
cristy8b350f62009-11-15 23:12:43 +000033286 done
cristy3ed852e2009-09-05 21:47:34 +000033287IFS=$as_save_IFS
33288
33289 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33290 ;;
33291esac
33292fi
33293MANDelegate=$ac_cv_path_MANDelegate
33294if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033296$as_echo "$MANDelegate" >&6; }
33297else
cristy8b350f62009-11-15 23:12:43 +000033298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033299$as_echo "no" >&6; }
33300fi
33301
33302
33303# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33304set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033307if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033308 $as_echo_n "(cached) " >&6
33309else
33310 case $MPEGDecodeDelegate in
33311 [\\/]* | ?:[\\/]*)
33312 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33313 ;;
33314 *)
33315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33316for as_dir in $PATH
33317do
33318 IFS=$as_save_IFS
33319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33322 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324 break 2
33325 fi
33326done
cristy8b350f62009-11-15 23:12:43 +000033327 done
cristy3ed852e2009-09-05 21:47:34 +000033328IFS=$as_save_IFS
33329
33330 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33331 ;;
33332esac
33333fi
33334MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33335if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337$as_echo "$MPEGDecodeDelegate" >&6; }
33338else
cristy8b350f62009-11-15 23:12:43 +000033339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340$as_echo "no" >&6; }
33341fi
33342
33343
33344# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33345set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033347$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033348if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033349 $as_echo_n "(cached) " >&6
33350else
33351 case $MPEGEncodeDelegate in
33352 [\\/]* | ?:[\\/]*)
33353 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33354 ;;
33355 *)
33356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33357for as_dir in $PATH
33358do
33359 IFS=$as_save_IFS
33360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33363 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365 break 2
33366 fi
33367done
cristy8b350f62009-11-15 23:12:43 +000033368 done
cristy3ed852e2009-09-05 21:47:34 +000033369IFS=$as_save_IFS
33370
33371 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33372 ;;
33373esac
33374fi
33375MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33376if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378$as_echo "$MPEGEncodeDelegate" >&6; }
33379else
cristy8b350f62009-11-15 23:12:43 +000033380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381$as_echo "no" >&6; }
33382fi
33383
33384
cristy935c86e2010-06-05 23:50:07 +000033385# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33386set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033389if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033390 $as_echo_n "(cached) " >&6
33391else
33392 case $MrSIDDecodeDelegate in
33393 [\\/]* | ?:[\\/]*)
33394 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33395 ;;
33396 *)
33397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33398for as_dir in $PATH
33399do
33400 IFS=$as_save_IFS
33401 test -z "$as_dir" && as_dir=.
33402 for ac_exec_ext in '' $ac_executable_extensions; do
33403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33404 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33406 break 2
33407 fi
33408done
33409 done
33410IFS=$as_save_IFS
33411
33412 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33413 ;;
33414esac
33415fi
33416MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33417if test -n "$MrSIDDecodeDelegate"; then
33418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33419$as_echo "$MrSIDDecodeDelegate" >&6; }
33420else
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33422$as_echo "no" >&6; }
33423fi
33424
33425
cristy3ed852e2009-09-05 21:47:34 +000033426# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33427set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033430if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033431 $as_echo_n "(cached) " >&6
33432else
33433 case $MVDelegate in
33434 [\\/]* | ?:[\\/]*)
33435 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33436 ;;
33437 *)
33438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33439for as_dir in $PATH
33440do
33441 IFS=$as_save_IFS
33442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33445 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447 break 2
33448 fi
33449done
cristy8b350f62009-11-15 23:12:43 +000033450 done
cristy3ed852e2009-09-05 21:47:34 +000033451IFS=$as_save_IFS
33452
33453 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33454 ;;
33455esac
33456fi
33457MVDelegate=$ac_cv_path_MVDelegate
33458if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460$as_echo "$MVDelegate" >&6; }
33461else
cristy8b350f62009-11-15 23:12:43 +000033462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463$as_echo "no" >&6; }
33464fi
33465
33466
33467# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33468set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033470$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033471if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033472 $as_echo_n "(cached) " >&6
33473else
33474 case $PCLDelegate in
33475 [\\/]* | ?:[\\/]*)
33476 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33477 ;;
33478 *)
33479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33480for as_dir in $PATH
33481do
33482 IFS=$as_save_IFS
33483 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033484 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33486 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033488 break 2
33489 fi
33490done
cristy8b350f62009-11-15 23:12:43 +000033491 done
cristy3ed852e2009-09-05 21:47:34 +000033492IFS=$as_save_IFS
33493
33494 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33495 ;;
33496esac
33497fi
33498PCLDelegate=$ac_cv_path_PCLDelegate
33499if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033501$as_echo "$PCLDelegate" >&6; }
33502else
cristy8b350f62009-11-15 23:12:43 +000033503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033504$as_echo "no" >&6; }
33505fi
33506
33507
33508# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33509set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033511$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033512if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033513 $as_echo_n "(cached) " >&6
33514else
33515 case $PGPDecodeDelegate in
33516 [\\/]* | ?:[\\/]*)
33517 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33518 ;;
33519 *)
33520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33521for as_dir in $PATH
33522do
33523 IFS=$as_save_IFS
33524 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033525 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33527 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033529 break 2
33530 fi
33531done
cristy8b350f62009-11-15 23:12:43 +000033532 done
cristy3ed852e2009-09-05 21:47:34 +000033533IFS=$as_save_IFS
33534
33535 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33536 ;;
33537esac
33538fi
33539PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33540if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033542$as_echo "$PGPDecodeDelegate" >&6; }
33543else
cristy8b350f62009-11-15 23:12:43 +000033544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545$as_echo "no" >&6; }
33546fi
33547
33548
33549# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33550set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033552$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033553if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033554 $as_echo_n "(cached) " >&6
33555else
33556 case $POVDelegate in
33557 [\\/]* | ?:[\\/]*)
33558 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33559 ;;
33560 *)
33561 as_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_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
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
33576 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33577 ;;
33578esac
33579fi
33580POVDelegate=$ac_cv_path_POVDelegate
33581if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033583$as_echo "$POVDelegate" >&6; }
33584else
cristy8b350f62009-11-15 23:12:43 +000033585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033586$as_echo "no" >&6; }
33587fi
33588
33589
33590for ac_prog in gsx gsc "$PSDelegateDefault"
33591do
33592 # Extract the first word of "$ac_prog", so it can be a program name with args.
33593set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033596if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033597 $as_echo_n "(cached) " >&6
33598else
33599 case $PSDelegate in
33600 [\\/]* | ?:[\\/]*)
33601 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33602 ;;
33603 *)
33604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33605for as_dir in $PATH
33606do
33607 IFS=$as_save_IFS
33608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33611 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613 break 2
33614 fi
33615done
cristy8b350f62009-11-15 23:12:43 +000033616 done
cristy3ed852e2009-09-05 21:47:34 +000033617IFS=$as_save_IFS
33618
33619 ;;
33620esac
33621fi
33622PSDelegate=$ac_cv_path_PSDelegate
33623if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625$as_echo "$PSDelegate" >&6; }
33626else
cristy8b350f62009-11-15 23:12:43 +000033627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033628$as_echo "no" >&6; }
33629fi
33630
33631
33632 test -n "$PSDelegate" && break
33633done
33634test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33635
33636# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33637set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033640if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033641 $as_echo_n "(cached) " >&6
33642else
33643 case $RLEEncodeDelegate in
33644 [\\/]* | ?:[\\/]*)
33645 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33646 ;;
33647 *)
33648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33649for as_dir in $PATH
33650do
33651 IFS=$as_save_IFS
33652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33655 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657 break 2
33658 fi
33659done
cristy8b350f62009-11-15 23:12:43 +000033660 done
cristy3ed852e2009-09-05 21:47:34 +000033661IFS=$as_save_IFS
33662
33663 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33664 ;;
33665esac
33666fi
33667RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33668if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo "$RLEEncodeDelegate" >&6; }
33671else
cristy8b350f62009-11-15 23:12:43 +000033672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033673$as_echo "no" >&6; }
33674fi
33675
33676
33677# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33678set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033681if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033682 $as_echo_n "(cached) " >&6
33683else
33684 case $RMDelegate in
33685 [\\/]* | ?:[\\/]*)
33686 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33687 ;;
33688 *)
33689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33690for as_dir in $PATH
33691do
33692 IFS=$as_save_IFS
33693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33696 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698 break 2
33699 fi
33700done
cristy8b350f62009-11-15 23:12:43 +000033701 done
cristy3ed852e2009-09-05 21:47:34 +000033702IFS=$as_save_IFS
33703
33704 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33705 ;;
33706esac
33707fi
33708RMDelegate=$ac_cv_path_RMDelegate
33709if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033711$as_echo "$RMDelegate" >&6; }
33712else
cristy8b350f62009-11-15 23:12:43 +000033713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714$as_echo "no" >&6; }
33715fi
33716
33717
cristy4689cf02010-02-17 21:15:45 +000033718# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33719set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033722if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033723 $as_echo_n "(cached) " >&6
33724else
33725 case $RSVGDecodeDelegate in
33726 [\\/]* | ?:[\\/]*)
33727 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33728 ;;
33729 *)
33730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33731for as_dir in $PATH
33732do
33733 IFS=$as_save_IFS
33734 test -z "$as_dir" && as_dir=.
33735 for ac_exec_ext in '' $ac_executable_extensions; do
33736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33737 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33739 break 2
33740 fi
33741done
33742 done
33743IFS=$as_save_IFS
33744
33745 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33746 ;;
33747esac
33748fi
33749RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33750if test -n "$RSVGDecodeDelegate"; then
33751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33752$as_echo "$RSVGDecodeDelegate" >&6; }
33753else
33754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33755$as_echo "no" >&6; }
33756fi
33757
33758
cristy3ed852e2009-09-05 21:47:34 +000033759# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33760set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033763if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033764 $as_echo_n "(cached) " >&6
33765else
33766 case $SCANDecodeDelegate in
33767 [\\/]* | ?:[\\/]*)
33768 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33769 ;;
33770 *)
33771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33772for as_dir in $PATH
33773do
33774 IFS=$as_save_IFS
33775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33778 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033780 break 2
33781 fi
33782done
cristy8b350f62009-11-15 23:12:43 +000033783 done
cristy3ed852e2009-09-05 21:47:34 +000033784IFS=$as_save_IFS
33785
33786 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33787 ;;
33788esac
33789fi
33790SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33791if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "$SCANDecodeDelegate" >&6; }
33794else
cristy8b350f62009-11-15 23:12:43 +000033795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796$as_echo "no" >&6; }
33797fi
33798
33799
33800# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33801set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033803$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033804if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033805 $as_echo_n "(cached) " >&6
33806else
33807 case $TXTDelegate in
33808 [\\/]* | ?:[\\/]*)
33809 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33810 ;;
33811 *)
33812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33813for as_dir in $PATH
33814do
33815 IFS=$as_save_IFS
33816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33819 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033821 break 2
33822 fi
33823done
cristy8b350f62009-11-15 23:12:43 +000033824 done
cristy3ed852e2009-09-05 21:47:34 +000033825IFS=$as_save_IFS
33826
33827 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33828 ;;
33829esac
33830fi
33831TXTDelegate=$ac_cv_path_TXTDelegate
33832if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033834$as_echo "$TXTDelegate" >&6; }
33835else
cristy8b350f62009-11-15 23:12:43 +000033836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033837$as_echo "no" >&6; }
33838fi
33839
33840
cristy5ac9ac82010-07-29 13:24:24 +000033841# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33842set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033845if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033846 $as_echo_n "(cached) " >&6
33847else
33848 case $UniconvertorDelegate in
33849 [\\/]* | ?:[\\/]*)
33850 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33851 ;;
33852 *)
33853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33854for as_dir in $PATH
33855do
33856 IFS=$as_save_IFS
33857 test -z "$as_dir" && as_dir=.
33858 for ac_exec_ext in '' $ac_executable_extensions; do
33859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33860 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33862 break 2
33863 fi
33864done
33865 done
33866IFS=$as_save_IFS
33867
33868 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33869 ;;
33870esac
33871fi
33872UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33873if test -n "$UniconvertorDelegate"; then
33874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33875$as_echo "$UniconvertorDelegate" >&6; }
33876else
33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33878$as_echo "no" >&6; }
33879fi
33880
33881
cristy3ed852e2009-09-05 21:47:34 +000033882# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33883set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033886if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033887 $as_echo_n "(cached) " >&6
33888else
33889 case $WMFDecodeDelegate in
33890 [\\/]* | ?:[\\/]*)
33891 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33892 ;;
33893 *)
33894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33895for as_dir in $PATH
33896do
33897 IFS=$as_save_IFS
33898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33901 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903 break 2
33904 fi
33905done
cristy8b350f62009-11-15 23:12:43 +000033906 done
cristy3ed852e2009-09-05 21:47:34 +000033907IFS=$as_save_IFS
33908
33909 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33910 ;;
33911esac
33912fi
33913WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33914if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo "$WMFDecodeDelegate" >&6; }
33917else
cristy8b350f62009-11-15 23:12:43 +000033918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033919$as_echo "no" >&6; }
33920fi
33921
33922
33923# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33924set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033927if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033928 $as_echo_n "(cached) " >&6
33929else
33930 case $WWWDecodeDelegate in
33931 [\\/]* | ?:[\\/]*)
33932 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33933 ;;
33934 *)
33935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33936for as_dir in $PATH
33937do
33938 IFS=$as_save_IFS
33939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33942 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944 break 2
33945 fi
33946done
cristy8b350f62009-11-15 23:12:43 +000033947 done
cristy3ed852e2009-09-05 21:47:34 +000033948IFS=$as_save_IFS
33949
33950 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33951 ;;
33952esac
33953fi
33954WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33955if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "$WWWDecodeDelegate" >&6; }
33958else
cristy8b350f62009-11-15 23:12:43 +000033959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033960$as_echo "no" >&6; }
33961fi
33962
33963
33964# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33965set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033968if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033969 $as_echo_n "(cached) " >&6
33970else
33971 case $XPSDelegate in
33972 [\\/]* | ?:[\\/]*)
33973 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33974 ;;
33975 *)
33976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33977for as_dir in $PATH
33978do
33979 IFS=$as_save_IFS
33980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33983 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033985 break 2
33986 fi
33987done
cristy8b350f62009-11-15 23:12:43 +000033988 done
cristy3ed852e2009-09-05 21:47:34 +000033989IFS=$as_save_IFS
33990
33991 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33992 ;;
33993esac
33994fi
33995XPSDelegate=$ac_cv_path_XPSDelegate
33996if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033998$as_echo "$XPSDelegate" >&6; }
33999else
cristy8b350f62009-11-15 23:12:43 +000034000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034001$as_echo "no" >&6; }
34002fi
34003
34004
34005# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34006set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034009if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034010 $as_echo_n "(cached) " >&6
34011else
34012 case $ZipDelegate in
34013 [\\/]* | ?:[\\/]*)
34014 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34015 ;;
34016 *)
34017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34018for as_dir in $PATH
34019do
34020 IFS=$as_save_IFS
34021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34024 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026 break 2
34027 fi
34028done
cristy8b350f62009-11-15 23:12:43 +000034029 done
cristy3ed852e2009-09-05 21:47:34 +000034030IFS=$as_save_IFS
34031
34032 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34033 ;;
34034esac
34035fi
34036ZipDelegate=$ac_cv_path_ZipDelegate
34037if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034039$as_echo "$ZipDelegate" >&6; }
34040else
cristy8b350f62009-11-15 23:12:43 +000034041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034042$as_echo "no" >&6; }
34043fi
34044
34045
34046
34047# Prefer lpr to lp; lp needs options tacked on.
34048if test "$LPRDelegate" != no; then
34049 PrintDelegate="$LPRDelegate"
34050else
34051 PrintDelegate="$LPDelegate -c -s"
34052fi
34053
34054
34055# Installed ImageMagick utiltity paths
34056ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34057DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34058MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34059
34060# Set delegate booleans
34061have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34062have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34063have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34064have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34065have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034066have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034067have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34068have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034069have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34070have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34071
34072#
34073# Test for font directories
34074#
34075type_include_files=''
34076
cristy430a7312010-01-21 20:44:04 +000034077# Dejavu fonts.
34078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34079$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34080dejavu_font_dir=''
34081if test "${with_dejavu_font_dir}" != 'default'; then
34082 dejavu_font_dir="${with_dejavu_font_dir}/"
34083else
34084 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34085 if test -f "${font_dir}DejaVuSerif.ttf"; then
34086 dejavu_font_dir="${font_dir}"
34087 break 1
34088 fi
34089 done
34090fi
34091if test "${dejavu_font_dir}x" != 'x'; then
34092 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034093 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34094$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034095else
cristy09b53e12011-10-14 12:47:22 +000034096 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34097$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034098fi
34099
34100
cristy3ed852e2009-09-05 21:47:34 +000034101# Windows
34102windows_font_dir=''
34103if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34104 windows_font_dir="${with_windows_font_dir}/"
34105fi
cristy430a7312010-01-21 20:44:04 +000034106if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034107 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34108 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34109 fi
34110 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34111 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34112 fi
34113 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34114 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34115 fi
34116fi
cristy430a7312010-01-21 20:44:04 +000034117if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034118 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34119fi
34120
34121
34122# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034124$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34125ghostscript_font_dir=''
34126if test "${with_gs_font_dir}" != 'default'; then
34127 ghostscript_font_dir="${with_gs_font_dir}/"
34128else
34129 if test "${native_win32_build}" = 'yes'; then
34130 # Native Windows Build
34131 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34132 if test -f "${font_dir}a010013l.pfb"; then
34133 ghostscript_font_dir="$font_dir"
34134 break 1
34135 fi
34136 done
34137 if test "${PSDelegate}" != 'gswin32c'; then
34138 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34139 fi
34140 else
34141 # Linux / Mac OS X / Unix Build
34142 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
34143 if test -f "${font_dir}a010013l.pfb"; then
34144 ghostscript_font_dir="${font_dir}"
34145 break 1
34146 fi
34147 done
34148 if test "${ghostscript_font_dir}x" = 'x'; then
34149 if test "$PSDelegate" != 'gs'; then
34150 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34151 fi
34152 fi
34153 fi
34154fi
34155if test "${ghostscript_font_dir}x" != 'x'; then
34156 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034157 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34158$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034159else
cristy09b53e12011-10-14 12:47:22 +000034160 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34161$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034162fi
34163
34164case "${build_os}" in
34165 mingw* )
34166 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34167 ;;
34168esac
34169
34170
34171
34172#
34173# Handle case where user doesn't want frozen paths
34174#
34175if test "$with_frozenpaths" != 'yes'; then
34176 # Re-set delegate definitions to default (no paths)
34177 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034178 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34179 BZIPDelegate="$BZIPDelegateDefault"
34180 BrowseDelegate="$BrowseDelegateDefault"
34181 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34182 CatDelegate="$CatDelegateDefault"
34183 ConvertDelegate="$ConvertDelegateDefault"
34184 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34185 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34186 EchoDelegate="$EchoDelegateDefault"
34187 EditorDelegate="$EditorDelegateDefault"
34188 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34189 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34190 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34191 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34192 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34193 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34194 LPDelegate="$LPDelegateDefault"
34195 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34196 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34197 LaunchDelegate="$LaunchDelegateDefault"
34198 MANDelegate="$MANDelegateDefault"
34199 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34200 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034201 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034202 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34203 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034204 PCLDelegate="$PCLDelegateDefault"
34205 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34206 POVDelegate="$POVDelegateDefault"
34207 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034208 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34209 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034210 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034211 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34212 ShowImageDelegate="$ShowImageDelegateDefault"
34213 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034214 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034215 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34216 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34217 XPSDelegate="$XPSDelegateDefault"
34218 ZipDelegate="$ZipDelegateDefault"
34219fi
34220
34221# Delegate substitutions
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264#
34265# RPM support.
34266#
34267RPM=''
34268for ac_prog in gnutar gtar tar
34269do
34270 # Extract the first word of "$ac_prog", so it can be a program name with args.
34271set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034273$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034274if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034275 $as_echo_n "(cached) " >&6
34276else
34277 if test -n "$TAR"; then
34278 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34279else
34280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34281for as_dir in $PATH
34282do
34283 IFS=$as_save_IFS
34284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34287 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034289 break 2
34290 fi
34291done
cristy8b350f62009-11-15 23:12:43 +000034292 done
cristy3ed852e2009-09-05 21:47:34 +000034293IFS=$as_save_IFS
34294
34295fi
34296fi
34297TAR=$ac_cv_prog_TAR
34298if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300$as_echo "$TAR" >&6; }
34301else
cristy8b350f62009-11-15 23:12:43 +000034302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034303$as_echo "no" >&6; }
34304fi
34305
34306
34307 test -n "$TAR" && break
34308done
34309
34310for ac_prog in perl
34311do
34312 # Extract the first word of "$ac_prog", so it can be a program name with args.
34313set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034316if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034317 $as_echo_n "(cached) " >&6
34318else
34319 if test -n "$PERL"; then
34320 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34321else
34322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34323for as_dir in $PATH
34324do
34325 IFS=$as_save_IFS
34326 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34329 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034331 break 2
34332 fi
34333done
cristy8b350f62009-11-15 23:12:43 +000034334 done
cristy3ed852e2009-09-05 21:47:34 +000034335IFS=$as_save_IFS
34336
34337fi
34338fi
34339PERL=$ac_cv_prog_PERL
34340if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034342$as_echo "$PERL" >&6; }
34343else
cristy8b350f62009-11-15 23:12:43 +000034344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034345$as_echo "no" >&6; }
34346fi
34347
34348
34349 test -n "$PERL" && break
34350done
34351
34352for ac_prog in rpmbuild rpm
34353do
34354 # Extract the first word of "$ac_prog", so it can be a program name with args.
34355set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034358if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034359 $as_echo_n "(cached) " >&6
34360else
34361 if test -n "$RPM"; then
34362 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34363else
34364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34365for as_dir in $PATH
34366do
34367 IFS=$as_save_IFS
34368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34371 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034373 break 2
34374 fi
34375done
cristy8b350f62009-11-15 23:12:43 +000034376 done
cristy3ed852e2009-09-05 21:47:34 +000034377IFS=$as_save_IFS
34378
34379fi
34380fi
34381RPM=$ac_cv_prog_RPM
34382if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034384$as_echo "$RPM" >&6; }
34385else
cristy8b350f62009-11-15 23:12:43 +000034386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034387$as_echo "no" >&6; }
34388fi
34389
34390
34391 test -n "$RPM" && break
34392done
34393
34394
cristy73bd4a52010-10-05 11:24:23 +000034395ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34396
34397
34398AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34399
34400
34401AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34402
34403
34404AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34405
34406
34407 if test "x$RPM" != "x" ; then
34408 RPM_DELEGATE_TRUE=
34409 RPM_DELEGATE_FALSE='#'
34410else
34411 RPM_DELEGATE_TRUE='#'
34412 RPM_DELEGATE_FALSE=
34413fi
34414
cristy3ed852e2009-09-05 21:47:34 +000034415
34416#
34417# 7ZIP support (http://p7zip.sourceforge.net/)
34418#
34419P7ZIP=''
34420for ac_prog in 7za
34421do
34422 # Extract the first word of "$ac_prog", so it can be a program name with args.
34423set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034426if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034427 $as_echo_n "(cached) " >&6
34428else
34429 if test -n "$P7ZIP"; then
34430 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34431else
34432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34433for as_dir in $PATH
34434do
34435 IFS=$as_save_IFS
34436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34439 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441 break 2
34442 fi
34443done
cristy8b350f62009-11-15 23:12:43 +000034444 done
cristy3ed852e2009-09-05 21:47:34 +000034445IFS=$as_save_IFS
34446
34447fi
34448fi
34449P7ZIP=$ac_cv_prog_P7ZIP
34450if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034452$as_echo "$P7ZIP" >&6; }
34453else
cristy8b350f62009-11-15 23:12:43 +000034454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034455$as_echo "no" >&6; }
34456fi
34457
34458
34459 test -n "$P7ZIP" && break
34460done
34461
34462
cristy73bd4a52010-10-05 11:24:23 +000034463 if test "x$P7ZIP" != "x" ; then
34464 P7ZIP_DELEGATE_TRUE=
34465 P7ZIP_DELEGATE_FALSE='#'
34466else
34467 P7ZIP_DELEGATE_TRUE='#'
34468 P7ZIP_DELEGATE_FALSE=
34469fi
34470
cristy3ed852e2009-09-05 21:47:34 +000034471
34472#
34473# ZIP support (http://www.info-zip.org/Zip.html)
34474#
34475ZIP=''
34476for ac_prog in zip
34477do
34478 # Extract the first word of "$ac_prog", so it can be a program name with args.
34479set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034482if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034483 $as_echo_n "(cached) " >&6
34484else
34485 if test -n "$ZIP"; then
34486 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34487else
34488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34489for as_dir in $PATH
34490do
34491 IFS=$as_save_IFS
34492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34495 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497 break 2
34498 fi
34499done
cristy8b350f62009-11-15 23:12:43 +000034500 done
cristy3ed852e2009-09-05 21:47:34 +000034501IFS=$as_save_IFS
34502
34503fi
34504fi
34505ZIP=$ac_cv_prog_ZIP
34506if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034508$as_echo "$ZIP" >&6; }
34509else
cristy8b350f62009-11-15 23:12:43 +000034510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034511$as_echo "no" >&6; }
34512fi
34513
34514
34515 test -n "$ZIP" && break
34516done
34517
34518
cristy73bd4a52010-10-05 11:24:23 +000034519 if test "x$ZIP" != "x" ; then
34520 ZIP_DELEGATE_TRUE=
34521 ZIP_DELEGATE_FALSE='#'
34522else
34523 ZIP_DELEGATE_TRUE='#'
34524 ZIP_DELEGATE_FALSE=
34525fi
34526
cristy3ed852e2009-09-05 21:47:34 +000034527
34528#
34529# GhostPCL related configuration.
34530#
34531PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034532PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034533PCLMonoDevice=pbmraw
34534if test -z "$PCLVersion"; then
34535 PCLVersion='unknown'
34536fi
34537if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034538 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34539$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034541$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034542 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34543$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034544 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034546$as_echo_n "checking for pcl color device... " >&6; }
34547 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34548 :
34549 else
34550 PCLColorDevice=ppmraw
34551 fi
cristy09b53e12011-10-14 12:47:22 +000034552 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34553$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034554
34555 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034557$as_echo_n "checking for pcl CMYK device... " >&6; }
34558 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34559 :
34560 else
34561 PCLCMYKDevice=$PCLColorDevice
34562 fi
cristy09b53e12011-10-14 12:47:22 +000034563 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34564$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034565
34566 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034568$as_echo_n "checking for pcl mono device... " >&6; }
34569 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34570 :
34571 else
34572 PCLMonoDevice=$PCLColorDevice
34573 fi
cristy09b53e12011-10-14 12:47:22 +000034574 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34575$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034576fi
34577
34578
34579
34580
34581
34582
34583#
34584# GhostXPS related configuration.
34585#
34586XPSColorDevice=ppmraw
34587XPSCMYKDevice=bmpsep8
34588XPSMonoDevice=pbmraw
34589if test -z "$XPSVersion"; then
34590 XPSVersion='unknown'
34591fi
34592if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034593 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34594$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034596$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034597 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34598$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034599 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034601$as_echo_n "checking for xps color device... " >&6; }
34602 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34603 :
34604 else
34605 XPSColorDevice=ppmraw
34606 fi
cristy09b53e12011-10-14 12:47:22 +000034607 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34608$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034609
34610 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034612$as_echo_n "checking for xps CMYK device... " >&6; }
34613 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34614 :
34615 else
34616 XPSCMYKDevice=$XPSColorDevice
34617 fi
cristy09b53e12011-10-14 12:47:22 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34619$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034620
34621 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034623$as_echo_n "checking for xps mono device... " >&6; }
34624 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34625 :
34626 else
34627 XPSMonoDevice=$XPSColorDevice
34628 fi
cristy09b53e12011-10-14 12:47:22 +000034629 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34630$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034631fi
34632
34633
34634
34635
34636
34637
34638#
34639# Ghostscript related configuration.
34640#
cristya97426c2011-02-04 01:41:27 +000034641GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034642GSColorDevice=pnmraw
34643GSCMYKDevice=pam
34644GSMonoDevice=pbmraw
34645GSPDFDevice=pdfwrite
34646GSPSDevice=pswrite
34647GSEPSDevice=epswrite
34648GSVersion='unknown'
34649if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034650 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34651$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034653$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034654 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34655$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034657$as_echo_n "checking for Ghostscript version... " >&6; }
34658 if GSVersion=`$PSDelegate --version`; then
34659 :
34660 else
34661 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34662 fi
cristy09b53e12011-10-14 12:47:22 +000034663 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34664$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034665
34666 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034668$as_echo_n "checking for gs alpha device... " >&6; }
34669 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34670 :
34671 else
34672 GSAlphaDevice=pnmraw
34673 fi
cristy09b53e12011-10-14 12:47:22 +000034674 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34675$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034676
34677 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034679$as_echo_n "checking for gs color device... " >&6; }
34680 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34681 :
34682 else
34683 GSColorDevice=pnmraw
34684 fi
cristy09b53e12011-10-14 12:47:22 +000034685 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34686$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034687
34688 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690$as_echo_n "checking for gs CMYK device... " >&6; }
34691 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34692 :
34693 else
34694 GSCMYKDevice=bmpsep8
34695 fi
cristy09b53e12011-10-14 12:47:22 +000034696 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34697$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034698
34699 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034701$as_echo_n "checking for gs mono device... " >&6; }
34702 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34703 :
34704 else
34705 GSMonoDevice=$GSColorDevice
34706 fi
cristy09b53e12011-10-14 12:47:22 +000034707 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34708$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034709
34710 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034712$as_echo_n "checking for gs PDF writing device... " >&6; }
34713 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34714 :
34715 else
34716 GSPDFDevice=nodevice
34717 fi
cristy09b53e12011-10-14 12:47:22 +000034718 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34719$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034720
34721 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034723$as_echo_n "checking for gs PS writing device... " >&6; }
34724 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34725 :
34726 else
34727 GSPSDevice=nodevice
34728 fi
cristy09b53e12011-10-14 12:47:22 +000034729 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34730$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034731
34732 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034734$as_echo_n "checking for gs EPS writing device... " >&6; }
34735 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34736 :
34737 else
34738 GSEPSDevice=nodevice
34739 fi
cristy09b53e12011-10-14 12:47:22 +000034740 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34741$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034742fi
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753#
34754# PerlMagick-related configuration
34755#
34756
34757# Look for PERL if PerlMagick requested
34758# If name/path of desired PERL interpreter is specified, look for that one first
34759have_perl='no'
34760if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034761 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34762$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034764$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034765 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34766$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034767 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034769$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034770if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034771 $as_echo_n "(cached) " >&6
34772else
34773 ac_cv_path_PERL="$with_perl"
34774fi
cristy8b350f62009-11-15 23:12:43 +000034775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034776$as_echo "$ac_cv_path_PERL" >&6; };
34777 PERL=$ac_cv_path_PERL
34778 have_perl="$ac_cv_path_PERL"
34779 else
34780 for ac_prog in perl perl5
34781do
34782 # Extract the first word of "$ac_prog", so it can be a program name with args.
34783set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034786if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034787 $as_echo_n "(cached) " >&6
34788else
34789 case $PERL in
34790 [\\/]* | ?:[\\/]*)
34791 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34792 ;;
34793 *)
34794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34795for as_dir in $PATH
34796do
34797 IFS=$as_save_IFS
34798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34801 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034803 break 2
34804 fi
34805done
cristy8b350f62009-11-15 23:12:43 +000034806 done
cristy3ed852e2009-09-05 21:47:34 +000034807IFS=$as_save_IFS
34808
34809 ;;
34810esac
34811fi
34812PERL=$ac_cv_path_PERL
34813if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034815$as_echo "$PERL" >&6; }
34816else
cristy8b350f62009-11-15 23:12:43 +000034817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034818$as_echo "no" >&6; }
34819fi
34820
34821
34822 test -n "$PERL" && break
34823done
34824 if test "$ac_cv_path_PERL"; then
34825 have_perl="$ac_cv_path_PERL"
34826 fi
34827 fi
34828fi
34829
cristy949301e2010-01-06 01:38:40 +000034830if test "$with_perl" != 'yes' ; then
34831 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34832fi
34833
34834PERL_SUPPORTS_DESTDIR='no'
34835
cristy3ed852e2009-09-05 21:47:34 +000034836with_perl_static='no'
34837with_perl_dynamic='no'
34838if test "$have_perl" != 'no'; then
34839 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34840 with_perl_static='yes'
34841 fi
34842 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34843 with_perl_dynamic='yes'
34844 fi
34845 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034846
34847
34848
34849
34850 if test -n "$PERL"; then :
34851
34852 ax_perl_version="5.8.1"
34853
34854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34855$as_echo_n "checking for perl version... " >&6; }
34856
34857 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34858
34859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34860$as_echo "$perl_version" >&6; }
34861
34862 PERL_VERSION=$perl_version
34863
34864
34865
34866
34867
34868 # Used to indicate true or false condition
34869 ax_compare_version=false
34870
34871 # Convert the two version strings to be compared into a format that
34872 # allows a simple string comparison. The end result is that a version
34873 # string of the form 1.12.5-r617 will be converted to the form
34874 # 0001001200050617. In other words, each number is zero padded to four
34875 # digits, and non digits are removed.
34876
34877 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34878 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34879 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34880 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34881 -e 's/[^0-9]//g'`
34882
34883
34884 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34885 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34886 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34887 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34888 -e 's/[^0-9]//g'`
34889
34890
34891 ax_compare_version=`echo "x$ax_compare_version_A
34892x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34893
34894
34895
34896 if test "$ax_compare_version" = "true" ; then
34897
34898 :
34899 PERL_SUPPORTS_DESTDIR='yes'
34900
34901 else
34902 :
34903 PERL_SUPPORTS_DESTDIR='no'
34904
34905 fi
34906
34907
34908else
34909
34910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34911$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34912 PERL_SUPPORTS_DESTDIR='no'
34913
cristy3ed852e2009-09-05 21:47:34 +000034914fi
cristy73bd4a52010-10-05 11:24:23 +000034915
34916fi
34917 if test "$have_perl" != 'no'; then
34918 WITH_PERL_TRUE=
34919 WITH_PERL_FALSE='#'
34920else
34921 WITH_PERL_TRUE='#'
34922 WITH_PERL_FALSE=
34923fi
34924
34925 if test $with_perl_static = 'yes'; then
34926 WITH_PERL_STATIC_TRUE=
34927 WITH_PERL_STATIC_FALSE='#'
34928else
34929 WITH_PERL_STATIC_TRUE='#'
34930 WITH_PERL_STATIC_FALSE=
34931fi
34932
34933 if test $with_perl_dynamic = 'yes'; then
34934 WITH_PERL_DYNAMIC_TRUE=
34935 WITH_PERL_DYNAMIC_FALSE='#'
34936else
34937 WITH_PERL_DYNAMIC_TRUE='#'
34938 WITH_PERL_DYNAMIC_FALSE=
34939fi
34940
cristy3ed852e2009-09-05 21:47:34 +000034941
34942
34943# Determine path to pick up MagickCore library from for use with building PerlMagick
34944MAGICKCORE_PATH="${LIB_DIR}"
34945if test $with_perl_static = 'yes'; then
34946 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34947 libtool_objdir=$objdir
34948
34949 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034950 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034951fi
34952
34953
34954# Create a simple string containing format names for all delegate libraries
34955DELEGATES=''
34956if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34957if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34958if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34959if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34960if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34961if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34962if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34963if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34964if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34965if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34966if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34967if test "$have_jpeg" = 'yes'; then
34968 DELEGATES="$DELEGATES jpeg";
34969 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34970fi
34971if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034972if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034973if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34974if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034975if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034976if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34977if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34978if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34979if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34980if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34981if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34982if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34983if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34984if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34985
34986
34987
34988#
34989# Handle special compiler flags
34990#
34991
34992# Add '-p' if prof source profiling support enabled
34993if test "$enable_prof" = 'yes'; then
34994 CFLAGS="-p $CFLAGS"
34995 CXXFLAGS="-p $CXXFLAGS"
34996 LDFLAGS="-p $LDFLAGS"
34997fi
34998
34999# Add '-pg' if gprof source profiling support enabled
35000if test "$enable_gprof" = 'yes'; then
35001 CFLAGS="-pg $CFLAGS"
35002 CXXFLAGS="-pg $CXXFLAGS"
35003 LDFLAGS="-pg $LDFLAGS"
35004fi
35005
35006# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35007# This is a gcc-specific feature
35008if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035010$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035011if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035012 $as_echo_n "(cached) " >&6
35013else
35014 ac_check_lib_save_LIBS=$LIBS
35015LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035017/* end confdefs.h. */
35018
35019/* Override any GCC internal prototype to avoid an error.
35020 Use char because int might match the return type of a GCC
35021 builtin and then its argument prototype would still apply. */
35022#ifdef __cplusplus
35023extern "C"
35024#endif
35025char _gcov_init ();
35026int
35027main ()
35028{
35029return _gcov_init ();
35030 ;
35031 return 0;
35032}
35033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035034if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035035 ac_cv_lib_gcov__gcov_init=yes
35036else
cristy8b350f62009-11-15 23:12:43 +000035037 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035038fi
cristy8b350f62009-11-15 23:12:43 +000035039rm -f core conftest.err conftest.$ac_objext \
35040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035041LIBS=$ac_check_lib_save_LIBS
35042fi
cristy8b350f62009-11-15 23:12:43 +000035043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035044$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035045if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035046 cat >>confdefs.h <<_ACEOF
35047#define HAVE_LIBGCOV 1
35048_ACEOF
35049
35050 LIBS="-lgcov $LIBS"
35051
35052fi
35053
cristy8b350f62009-11-15 23:12:43 +000035054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035055$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035056if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035057 $as_echo_n "(cached) " >&6
35058else
35059 ac_check_lib_save_LIBS=$LIBS
35060LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035062/* end confdefs.h. */
35063
35064/* Override any GCC internal prototype to avoid an error.
35065 Use char because int might match the return type of a GCC
35066 builtin and then its argument prototype would still apply. */
35067#ifdef __cplusplus
35068extern "C"
35069#endif
35070char __gcov_init ();
35071int
35072main ()
35073{
35074return __gcov_init ();
35075 ;
35076 return 0;
35077}
35078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035079if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035080 ac_cv_lib_gcov___gcov_init=yes
35081else
cristy8b350f62009-11-15 23:12:43 +000035082 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035083fi
cristy8b350f62009-11-15 23:12:43 +000035084rm -f core conftest.err conftest.$ac_objext \
35085 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035086LIBS=$ac_check_lib_save_LIBS
35087fi
cristy8b350f62009-11-15 23:12:43 +000035088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035089$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035090if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035091 cat >>confdefs.h <<_ACEOF
35092#define HAVE_LIBGCOV 1
35093_ACEOF
35094
35095 LIBS="-lgcov $LIBS"
35096
35097fi
35098
35099 case "$target_os" in
35100 darwin*)
35101 OSX_GCOV_LDFLAG="-Wl,-single_module"
35102 ;;
35103 *)
35104 OSX_GCOV_LDFLAG=""
35105 ;;
35106 esac
35107
35108 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35109 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35110 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35111fi
35112
35113#
35114# Build library dependency list for libMagickCore
35115#
35116
35117MAGICK_LIBLTDL='' # Libltdl for build
35118MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35119MAGICK_LTDLDEPS='' # extra libltdl dependencies
35120if test "$with_ltdl" != 'no'
35121then
35122 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35123 MAGICK_API_LIBLTDL='-lltdl'
35124 fi
35125 MAGICK_LIBLTDL=${LIBLTDL}
35126 MAGICK_LTDLDEPS=${LTDLDEPS}
35127fi
35128
35129
35130
35131if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035132 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 +000035133else
cristy41cbe8a2011-10-27 01:35:18 +000035134 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 $PANGO_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 +000035135fi
35136
35137
35138#
35139# Remove extraneous spaces from output variables (asthetic)
35140#
35141X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35142X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35143X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35144X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35145
35146CC=`echo $CC | sed -e 's/ */ /g'`
35147CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35148CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35149CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35150DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35151DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35152LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35153TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35154MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35155#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35156
35157# Pass only user-provided LIBS as "global" libraries
35158LIBS=$USER_LIBS
35159
35160#AC_SUBST(CPPFLAGS)
35161
35162#AC_SUBST(LDFLAGS)
35163#AC_SUBST(X_PRE_LIBS)
35164#AC_SUBST(X_LIBS)
35165#AC_SUBST(X_EXTRA_LIBS)
35166
35167MAGICK_CFLAGS=$CFLAGS
35168MAGICK_CXXFLAGS="$CXXFLAGS"
35169MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35170MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35171MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35172MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35173
35174
35175
35176
35177
35178
35179
35180
cristyfd9dcd42010-08-08 18:07:02 +000035181
cristy3ed852e2009-09-05 21:47:34 +000035182# Set configured scripts to executable.
35183ac_config_commands="$ac_config_commands default"
35184
35185ac_config_commands="$ac_config_commands MagickCore-config.in"
35186
cristy3ed852e2009-09-05 21:47:34 +000035187ac_config_commands="$ac_config_commands MagickWand-config.in"
35188
cristy3ed852e2009-09-05 21:47:34 +000035189ac_config_commands="$ac_config_commands Magick++-config.in"
35190
35191ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35192
35193
cristy09b53e12011-10-14 12:47:22 +000035194{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35195$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35196{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35197$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035198cat >confcache <<\_ACEOF
35199# This file is a shell script that caches the results of configure
35200# tests run on this system so they can be shared between configure
35201# scripts and configure runs, see configure's option --config-cache.
35202# It is not useful on other systems. If it contains results you don't
35203# want to keep, you may remove or edit it.
35204#
35205# config.status only pays attention to the cache file if you give it
35206# the --recheck option to rerun configure.
35207#
35208# `ac_cv_env_foo' variables (set or unset) will be overridden when
35209# loading this file, other *unset* `ac_cv_foo' will be assigned the
35210# following values.
35211
35212_ACEOF
35213
35214# The following way of writing the cache mishandles newlines in values,
35215# but we know of no workaround that is simple, portable, and efficient.
35216# So, we kill variables containing newlines.
35217# Ultrix sh set writes to stderr and can't be redirected directly,
35218# and sets the high bit in the cache file unless we assign to the vars.
35219(
35220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35221 eval ac_val=\$$ac_var
35222 case $ac_val in #(
35223 *${as_nl}*)
35224 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35227 esac
35228 case $ac_var in #(
35229 _ | IFS | as_nl) ;; #(
35230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035231 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035232 esac ;;
35233 esac
35234 done
35235
35236 (set) 2>&1 |
35237 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35238 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035239 # `set' does not quote correctly, so add quotes: double-quote
35240 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035241 sed -n \
35242 "s/'/'\\\\''/g;
35243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35244 ;; #(
35245 *)
35246 # `set' quotes correctly as required by POSIX, so do not add quotes.
35247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35248 ;;
35249 esac |
35250 sort
35251) |
35252 sed '
35253 /^ac_cv_env_/b end
35254 t clear
35255 :clear
35256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35257 t end
35258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35259 :end' >>confcache
35260if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35261 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035262 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035263 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035264$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035265 if test ! -f "$cache_file" || test -h "$cache_file"; then
35266 cat confcache >"$cache_file"
35267 else
35268 case $cache_file in #(
35269 */* | ?:*)
35270 mv -f confcache "$cache_file"$$ &&
35271 mv -f "$cache_file"$$ "$cache_file" ;; #(
35272 *)
35273 mv -f confcache "$cache_file" ;;
35274 esac
35275 fi
35276 fi
cristy3ed852e2009-09-05 21:47:34 +000035277 else
cristy8b350f62009-11-15 23:12:43 +000035278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035279$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35280 fi
35281fi
35282rm -f confcache
35283
35284test "x$prefix" = xNONE && prefix=$ac_default_prefix
35285# Let make expand exec_prefix.
35286test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35287
35288DEFS=-DHAVE_CONFIG_H
35289
35290ac_libobjs=
35291ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035292U=
cristy3ed852e2009-09-05 21:47:34 +000035293for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35294 # 1. Remove the extension, and $U if already installed.
35295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35296 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35298 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035301done
35302LIBOBJS=$ac_libobjs
35303
35304LTLIBOBJS=$ac_ltlibobjs
35305
35306
cristy73bd4a52010-10-05 11:24:23 +000035307 if test -n "$EXEEXT"; then
35308 am__EXEEXT_TRUE=
35309 am__EXEEXT_FALSE='#'
35310else
35311 am__EXEEXT_TRUE='#'
35312 am__EXEEXT_FALSE=
35313fi
cristy3ed852e2009-09-05 21:47:34 +000035314
cristy73bd4a52010-10-05 11:24:23 +000035315if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035316 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035317Usually this means the macro was only invoked conditionally." "$LINENO" 5
35318fi
35319if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035320 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035321Usually this means the macro was only invoked conditionally." "$LINENO" 5
35322fi
35323if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035324 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035325Usually this means the macro was only invoked conditionally." "$LINENO" 5
35326fi
35327if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035328 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035329Usually this means the macro was only invoked conditionally." "$LINENO" 5
35330fi
35331if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035332 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035333Usually this means the macro was only invoked conditionally." "$LINENO" 5
35334fi
35335if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035336 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035337Usually this means the macro was only invoked conditionally." "$LINENO" 5
35338fi
35339if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035340 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035341Usually this means the macro was only invoked conditionally." "$LINENO" 5
35342fi
35343if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035344 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035345Usually this means the macro was only invoked conditionally." "$LINENO" 5
35346fi
cristy73bd4a52010-10-05 11:24:23 +000035347if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035348 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035349Usually this means the macro was only invoked conditionally." "$LINENO" 5
35350fi
35351if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035352 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035353Usually this means the macro was only invoked conditionally." "$LINENO" 5
35354fi
35355LT_CONFIG_H=config/config.h
35356
35357 _ltdl_libobjs=
35358 _ltdl_ltlibobjs=
35359 if test -n "$_LT_LIBOBJS"; then
35360 # Remove the extension.
35361 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35362 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35363 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35364 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35365 done
35366 fi
35367 ltdl_LIBOBJS=$_ltdl_libobjs
35368
35369 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35370
35371
35372if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035373 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035374Usually this means the macro was only invoked conditionally." "$LINENO" 5
35375fi
35376if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035377 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035378Usually this means the macro was only invoked conditionally." "$LINENO" 5
35379fi
35380if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035381 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035382Usually this means the macro was only invoked conditionally." "$LINENO" 5
35383fi
35384if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035385 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035386Usually this means the macro was only invoked conditionally." "$LINENO" 5
35387fi
35388
35389if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035390 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035391Usually this means the macro was only invoked conditionally." "$LINENO" 5
35392fi
35393if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035394 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035395Usually this means the macro was only invoked conditionally." "$LINENO" 5
35396fi
35397if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035398 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035399Usually this means the macro was only invoked conditionally." "$LINENO" 5
35400fi
35401if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035402 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035403Usually this means the macro was only invoked conditionally." "$LINENO" 5
35404fi
35405if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035406 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035407Usually this means the macro was only invoked conditionally." "$LINENO" 5
35408fi
35409if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035410 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035411Usually this means the macro was only invoked conditionally." "$LINENO" 5
35412fi
35413if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035414 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035415Usually this means the macro was only invoked conditionally." "$LINENO" 5
35416fi
35417if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035418 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035419Usually this means the macro was only invoked conditionally." "$LINENO" 5
35420fi
35421if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035422 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035423Usually this means the macro was only invoked conditionally." "$LINENO" 5
35424fi
35425if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035426 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035427Usually this means the macro was only invoked conditionally." "$LINENO" 5
35428fi
35429if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035430 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035431Usually this means the macro was only invoked conditionally." "$LINENO" 5
35432fi
35433if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035434 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035435Usually this means the macro was only invoked conditionally." "$LINENO" 5
35436fi
35437if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035438 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035439Usually this means the macro was only invoked conditionally." "$LINENO" 5
35440fi
35441if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035442 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035443Usually this means the macro was only invoked conditionally." "$LINENO" 5
35444fi
35445if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035446 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035447Usually this means the macro was only invoked conditionally." "$LINENO" 5
35448fi
35449if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035450 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035451Usually this means the macro was only invoked conditionally." "$LINENO" 5
35452fi
35453if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035454 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035455Usually this means the macro was only invoked conditionally." "$LINENO" 5
35456fi
35457if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035458 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035459Usually this means the macro was only invoked conditionally." "$LINENO" 5
35460fi
35461if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035462 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035463Usually this means the macro was only invoked conditionally." "$LINENO" 5
35464fi
35465if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035466 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035467Usually this means the macro was only invoked conditionally." "$LINENO" 5
35468fi
cristyfbb0ef02010-12-19 02:32:11 +000035469if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35470 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35471Usually this means the macro was only invoked conditionally." "$LINENO" 5
35472fi
cristy73bd4a52010-10-05 11:24:23 +000035473if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035474 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035475Usually this means the macro was only invoked conditionally." "$LINENO" 5
35476fi
cristy41cbe8a2011-10-27 01:35:18 +000035477if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35478 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35479Usually this means the macro was only invoked conditionally." "$LINENO" 5
35480fi
35481if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35482 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35483Usually this means the macro was only invoked conditionally." "$LINENO" 5
35484fi
cristy73bd4a52010-10-05 11:24:23 +000035485if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035486 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035487Usually this means the macro was only invoked conditionally." "$LINENO" 5
35488fi
35489if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035490 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035491Usually this means the macro was only invoked conditionally." "$LINENO" 5
35492fi
35493if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035494 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035495Usually this means the macro was only invoked conditionally." "$LINENO" 5
35496fi
35497if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035498 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035499Usually this means the macro was only invoked conditionally." "$LINENO" 5
35500fi
cristyb1860752011-03-14 00:27:46 +000035501if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35502 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35503Usually this means the macro was only invoked conditionally." "$LINENO" 5
35504fi
cristy73bd4a52010-10-05 11:24:23 +000035505if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035506 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035507Usually this means the macro was only invoked conditionally." "$LINENO" 5
35508fi
35509if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035510 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035511Usually this means the macro was only invoked conditionally." "$LINENO" 5
35512fi
35513if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035514 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035515Usually this means the macro was only invoked conditionally." "$LINENO" 5
35516fi
35517if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035518 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035519Usually this means the macro was only invoked conditionally." "$LINENO" 5
35520fi
35521if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035522 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035523Usually this means the macro was only invoked conditionally." "$LINENO" 5
35524fi
35525if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035526 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035527Usually this means the macro was only invoked conditionally." "$LINENO" 5
35528fi
35529if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035530 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035531Usually this means the macro was only invoked conditionally." "$LINENO" 5
35532fi
35533if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035534 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035535Usually this means the macro was only invoked conditionally." "$LINENO" 5
35536fi
cristy3ed852e2009-09-05 21:47:34 +000035537
cristyda16f162011-02-19 23:52:17 +000035538: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035539ac_write_fail=0
35540ac_clean_files_save=$ac_clean_files
35541ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035542{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035543$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035544as_write_fail=0
35545cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035546#! $SHELL
35547# Generated by $as_me.
35548# Run this file to recreate the current configuration.
35549# Compiler output produced by configure, useful for debugging
35550# configure, is in config.log if it exists.
35551
35552debug=false
35553ac_cs_recheck=false
35554ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035555
cristy8b350f62009-11-15 23:12:43 +000035556SHELL=\${CONFIG_SHELL-$SHELL}
35557export SHELL
35558_ASEOF
35559cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35560## -------------------- ##
35561## M4sh Initialization. ##
35562## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035563
35564# Be more Bourne compatible
35565DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035567 emulate sh
35568 NULLCMD=:
35569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35570 # is contrary to our usage. Disable this feature.
35571 alias -g '${1+"$@"}'='"$@"'
35572 setopt NO_GLOB_SUBST
35573else
cristy8b350f62009-11-15 23:12:43 +000035574 case `(set -o) 2>/dev/null` in #(
35575 *posix*) :
35576 set -o posix ;; #(
35577 *) :
35578 ;;
cristy3ed852e2009-09-05 21:47:34 +000035579esac
cristy3ed852e2009-09-05 21:47:34 +000035580fi
35581
35582
cristy3ed852e2009-09-05 21:47:34 +000035583as_nl='
35584'
35585export as_nl
35586# Printing a long string crashes Solaris 7 /usr/bin/printf.
35587as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035590# Prefer a ksh shell builtin over an external printf program on Solaris,
35591# but without wasting forks for bash or zsh.
35592if test -z "$BASH_VERSION$ZSH_VERSION" \
35593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35594 as_echo='print -r --'
35595 as_echo_n='print -rn --'
35596elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035597 as_echo='printf %s\n'
35598 as_echo_n='printf %s'
35599else
35600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35601 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35602 as_echo_n='/usr/ucb/echo -n'
35603 else
35604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35605 as_echo_n_body='eval
35606 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035607 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035608 *"$as_nl"*)
35609 expr "X$arg" : "X\\(.*\\)$as_nl";
35610 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35611 esac;
35612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35613 '
35614 export as_echo_n_body
35615 as_echo_n='sh -c $as_echo_n_body as_echo'
35616 fi
35617 export as_echo_body
35618 as_echo='sh -c $as_echo_body as_echo'
35619fi
35620
35621# The user is always right.
35622if test "${PATH_SEPARATOR+set}" != set; then
35623 PATH_SEPARATOR=:
35624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35626 PATH_SEPARATOR=';'
35627 }
35628fi
35629
cristy3ed852e2009-09-05 21:47:34 +000035630
35631# IFS
35632# We need space, tab and new line, in precisely that order. Quoting is
35633# there to prevent editors from complaining about space-tab.
35634# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35635# splitting by setting IFS to empty value.)
35636IFS=" "" $as_nl"
35637
35638# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035639as_myself=
cristy8b350f62009-11-15 23:12:43 +000035640case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035641 *[\\/]* ) as_myself=$0 ;;
35642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35643for as_dir in $PATH
35644do
35645 IFS=$as_save_IFS
35646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35648 done
cristy3ed852e2009-09-05 21:47:34 +000035649IFS=$as_save_IFS
35650
35651 ;;
35652esac
35653# We did not find ourselves, most probably we were run as `sh COMMAND'
35654# in which case we are not to be found in the path.
35655if test "x$as_myself" = x; then
35656 as_myself=$0
35657fi
35658if test ! -f "$as_myself"; then
35659 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035660 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035661fi
35662
cristy8b350f62009-11-15 23:12:43 +000035663# Unset variables that we do not need and which cause bugs (e.g. in
35664# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35665# suppresses any "Segmentation fault" message there. '((' could
35666# trigger a bug in pdksh 5.2.14.
35667for as_var in BASH_ENV ENV MAIL MAILPATH
35668do eval test x\${$as_var+set} = xset \
35669 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035670done
35671PS1='$ '
35672PS2='> '
35673PS4='+ '
35674
35675# NLS nuisances.
35676LC_ALL=C
35677export LC_ALL
35678LANGUAGE=C
35679export LANGUAGE
35680
cristy8b350f62009-11-15 23:12:43 +000035681# CDPATH.
35682(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35683
35684
cristy98dddb52010-11-04 00:30:15 +000035685# as_fn_error STATUS ERROR [LINENO LOG_FD]
35686# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035687# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35688# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035689# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035690as_fn_error ()
35691{
cristy98dddb52010-11-04 00:30:15 +000035692 as_status=$1; test $as_status -eq 0 && as_status=1
35693 if test "$4"; then
35694 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35695 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035696 fi
cristy98dddb52010-11-04 00:30:15 +000035697 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035698 as_fn_exit $as_status
35699} # as_fn_error
35700
35701
35702# as_fn_set_status STATUS
35703# -----------------------
35704# Set $? to STATUS, without forking.
35705as_fn_set_status ()
35706{
35707 return $1
35708} # as_fn_set_status
35709
35710# as_fn_exit STATUS
35711# -----------------
35712# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35713as_fn_exit ()
35714{
35715 set +e
35716 as_fn_set_status $1
35717 exit $1
35718} # as_fn_exit
35719
35720# as_fn_unset VAR
35721# ---------------
35722# Portably unset VAR.
35723as_fn_unset ()
35724{
35725 { eval $1=; unset $1;}
35726}
35727as_unset=as_fn_unset
35728# as_fn_append VAR VALUE
35729# ----------------------
35730# Append the text in VALUE to the end of the definition contained in VAR. Take
35731# advantage of any shell optimizations that allow amortized linear growth over
35732# repeated appends, instead of the typical quadratic growth present in naive
35733# implementations.
35734if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35735 eval 'as_fn_append ()
35736 {
35737 eval $1+=\$2
35738 }'
35739else
35740 as_fn_append ()
35741 {
35742 eval $1=\$$1\$2
35743 }
35744fi # as_fn_append
35745
35746# as_fn_arith ARG...
35747# ------------------
35748# Perform arithmetic evaluation on the ARGs, and store the result in the
35749# global $as_val. Take advantage of shells that can avoid forks. The arguments
35750# must be portable across $(()) and expr.
35751if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35752 eval 'as_fn_arith ()
35753 {
35754 as_val=$(( $* ))
35755 }'
35756else
35757 as_fn_arith ()
35758 {
35759 as_val=`expr "$@" || test $? -eq 1`
35760 }
35761fi # as_fn_arith
35762
35763
cristy3ed852e2009-09-05 21:47:34 +000035764if expr a : '\(a\)' >/dev/null 2>&1 &&
35765 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35766 as_expr=expr
35767else
35768 as_expr=false
35769fi
35770
35771if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35772 as_basename=basename
35773else
35774 as_basename=false
35775fi
35776
cristy8b350f62009-11-15 23:12:43 +000035777if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35778 as_dirname=dirname
35779else
35780 as_dirname=false
35781fi
cristy3ed852e2009-09-05 21:47:34 +000035782
cristy3ed852e2009-09-05 21:47:34 +000035783as_me=`$as_basename -- "$0" ||
35784$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35785 X"$0" : 'X\(//\)$' \| \
35786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35787$as_echo X/"$0" |
35788 sed '/^.*\/\([^/][^/]*\)\/*$/{
35789 s//\1/
35790 q
35791 }
35792 /^X\/\(\/\/\)$/{
35793 s//\1/
35794 q
35795 }
35796 /^X\/\(\/\).*/{
35797 s//\1/
35798 q
35799 }
35800 s/.*/./; q'`
35801
cristy8b350f62009-11-15 23:12:43 +000035802# Avoid depending upon Character Ranges.
35803as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35804as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35805as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35806as_cr_digits='0123456789'
35807as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035808
35809ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035810case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035811-n*)
cristy8b350f62009-11-15 23:12:43 +000035812 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035813 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035814 xy) ECHO_C='\c';;
35815 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35816 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035817 esac;;
35818*)
35819 ECHO_N='-n';;
35820esac
cristy3ed852e2009-09-05 21:47:34 +000035821
35822rm -f conf$$ conf$$.exe conf$$.file
35823if test -d conf$$.dir; then
35824 rm -f conf$$.dir/conf$$.file
35825else
35826 rm -f conf$$.dir
35827 mkdir conf$$.dir 2>/dev/null
35828fi
35829if (echo >conf$$.file) 2>/dev/null; then
35830 if ln -s conf$$.file conf$$ 2>/dev/null; then
35831 as_ln_s='ln -s'
35832 # ... but there are two gotchas:
35833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35835 # In both cases, we have to default to `cp -p'.
35836 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35837 as_ln_s='cp -p'
35838 elif ln conf$$.file conf$$ 2>/dev/null; then
35839 as_ln_s=ln
35840 else
35841 as_ln_s='cp -p'
35842 fi
35843else
35844 as_ln_s='cp -p'
35845fi
35846rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35847rmdir conf$$.dir 2>/dev/null
35848
cristy8b350f62009-11-15 23:12:43 +000035849
35850# as_fn_mkdir_p
35851# -------------
35852# Create "$as_dir" as a directory, including parents if necessary.
35853as_fn_mkdir_p ()
35854{
35855
35856 case $as_dir in #(
35857 -*) as_dir=./$as_dir;;
35858 esac
35859 test -d "$as_dir" || eval $as_mkdir_p || {
35860 as_dirs=
35861 while :; do
35862 case $as_dir in #(
35863 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35864 *) as_qdir=$as_dir;;
35865 esac
35866 as_dirs="'$as_qdir' $as_dirs"
35867 as_dir=`$as_dirname -- "$as_dir" ||
35868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35869 X"$as_dir" : 'X\(//\)[^/]' \| \
35870 X"$as_dir" : 'X\(//\)$' \| \
35871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35872$as_echo X"$as_dir" |
35873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35874 s//\1/
35875 q
35876 }
35877 /^X\(\/\/\)[^/].*/{
35878 s//\1/
35879 q
35880 }
35881 /^X\(\/\/\)$/{
35882 s//\1/
35883 q
35884 }
35885 /^X\(\/\).*/{
35886 s//\1/
35887 q
35888 }
35889 s/.*/./; q'`
35890 test -d "$as_dir" && break
35891 done
35892 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035893 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035894
35895
35896} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035897if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035898 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035899else
35900 test -d ./-p && rmdir ./-p
35901 as_mkdir_p=false
35902fi
35903
35904if test -x / >/dev/null 2>&1; then
35905 as_test_x='test -x'
35906else
35907 if ls -dL / >/dev/null 2>&1; then
35908 as_ls_L_option=L
35909 else
35910 as_ls_L_option=
35911 fi
35912 as_test_x='
35913 eval sh -c '\''
35914 if test -d "$1"; then
35915 test -d "$1/.";
35916 else
cristy8b350f62009-11-15 23:12:43 +000035917 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035918 -*)set "./$1";;
35919 esac;
cristy8b350f62009-11-15 23:12:43 +000035920 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035921 ???[sx]*):;;*)false;;esac;fi
35922 '\'' sh
35923 '
35924fi
35925as_executable_p=$as_test_x
35926
35927# Sed expression to map a string onto a valid CPP name.
35928as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35929
35930# Sed expression to map a string onto a valid variable name.
35931as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35932
35933
35934exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035935## ----------------------------------- ##
35936## Main body of $CONFIG_STATUS script. ##
35937## ----------------------------------- ##
35938_ASEOF
35939test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035940
cristy8b350f62009-11-15 23:12:43 +000035941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35942# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035943# report actual input values of CONFIG_FILES etc. instead of their
35944# values after options handling.
35945ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035946This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035947generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035948
35949 CONFIG_FILES = $CONFIG_FILES
35950 CONFIG_HEADERS = $CONFIG_HEADERS
35951 CONFIG_LINKS = $CONFIG_LINKS
35952 CONFIG_COMMANDS = $CONFIG_COMMANDS
35953 $ $0 $@
35954
35955on `(hostname || uname -n) 2>/dev/null | sed 1q`
35956"
35957
35958_ACEOF
35959
35960case $ac_config_files in *"
35961"*) set x $ac_config_files; shift; ac_config_files=$*;;
35962esac
35963
35964case $ac_config_headers in *"
35965"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35966esac
35967
35968
35969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35970# Files that config.status was made for.
35971config_files="$ac_config_files"
35972config_headers="$ac_config_headers"
35973config_commands="$ac_config_commands"
35974
35975_ACEOF
35976
35977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35978ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035979\`$as_me' instantiates files and other configuration actions
35980from templates according to the current configuration. Unless the files
35981and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035982
cristy8b350f62009-11-15 23:12:43 +000035983Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035984
35985 -h, --help print this help, then exit
35986 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035987 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035988 -q, --quiet, --silent
35989 do not print progress messages
35990 -d, --debug don't remove temporary files
35991 --recheck update $as_me by reconfiguring in the same conditions
35992 --file=FILE[:TEMPLATE]
35993 instantiate the configuration file FILE
35994 --header=FILE[:TEMPLATE]
35995 instantiate the configuration header FILE
35996
35997Configuration files:
35998$config_files
35999
36000Configuration headers:
36001$config_headers
36002
36003Configuration commands:
36004$config_commands
36005
cristy8b350f62009-11-15 23:12:43 +000036006Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036007
36008_ACEOF
36009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036010ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036011ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036012ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000036013configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000036014 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036015
cristy98dddb52010-11-04 00:30:15 +000036016Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036017This config.status script is free software; the Free Software Foundation
36018gives unlimited permission to copy, distribute and modify it."
36019
36020ac_pwd='$ac_pwd'
36021srcdir='$srcdir'
36022INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036023MKDIR_P='$MKDIR_P'
36024AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036025test -n "\$AWK" || AWK=awk
36026_ACEOF
36027
36028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36029# The default lists apply if the user does not specify any file.
36030ac_need_defaults=:
36031while test $# != 0
36032do
36033 case $1 in
cristyda16f162011-02-19 23:52:17 +000036034 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36037 ac_shift=:
36038 ;;
cristyda16f162011-02-19 23:52:17 +000036039 --*=)
36040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36041 ac_optarg=
36042 ac_shift=:
36043 ;;
cristy3ed852e2009-09-05 21:47:34 +000036044 *)
36045 ac_option=$1
36046 ac_optarg=$2
36047 ac_shift=shift
36048 ;;
36049 esac
36050
36051 case $ac_option in
36052 # Handling of the options.
36053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36054 ac_cs_recheck=: ;;
36055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36056 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036057 --config | --confi | --conf | --con | --co | --c )
36058 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036059 --debug | --debu | --deb | --de | --d | -d )
36060 debug=: ;;
36061 --file | --fil | --fi | --f )
36062 $ac_shift
36063 case $ac_optarg in
36064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036065 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036066 esac
cristy8b350f62009-11-15 23:12:43 +000036067 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036068 ac_need_defaults=false;;
36069 --header | --heade | --head | --hea )
36070 $ac_shift
36071 case $ac_optarg in
36072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36073 esac
cristy8b350f62009-11-15 23:12:43 +000036074 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036075 ac_need_defaults=false;;
36076 --he | --h)
36077 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036078 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036079Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036080 --help | --hel | -h )
36081 $as_echo "$ac_cs_usage"; exit ;;
36082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36083 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36084 ac_cs_silent=: ;;
36085
36086 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036087 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036088Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036089
cristy8b350f62009-11-15 23:12:43 +000036090 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036091 ac_need_defaults=false ;;
36092
36093 esac
36094 shift
36095done
36096
36097ac_configure_extra_args=
36098
36099if $ac_cs_silent; then
36100 exec 6>/dev/null
36101 ac_configure_extra_args="$ac_configure_extra_args --silent"
36102fi
36103
36104_ACEOF
36105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36106if \$ac_cs_recheck; then
36107 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36108 shift
36109 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36110 CONFIG_SHELL='$SHELL'
36111 export CONFIG_SHELL
36112 exec "\$@"
36113fi
36114
36115_ACEOF
36116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36117exec 5>>config.log
36118{
36119 echo
36120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36121## Running $as_me. ##
36122_ASBOX
36123 $as_echo "$ac_log"
36124} >&5
36125
36126_ACEOF
36127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036128#
36129# INIT-COMMANDS
36130#
36131PACKAGE="$PACKAGE"
36132AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36133
36134
36135# The HP-UX ksh and POSIX shell print the target directory to stdout
36136# if CDPATH is set.
36137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36138
36139sed_quote_subst='$sed_quote_subst'
36140double_quote_subst='$double_quote_subst'
36141delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036142SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36143Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36144GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36145EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36146FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36147SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36148ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36149LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36150macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36151macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36152AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36153DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36154OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36155enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36156enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36157pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36158enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036159PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036160host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36161host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36162host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36163build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36164build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36165build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36166NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36167LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36168max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36169ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36170exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36171lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36172lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36173lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036174lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36175lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036176reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36177reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36178deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36179file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036180file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36181want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36182sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036183AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36184AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036185archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036186STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36187RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36188old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36189old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36190old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36191lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36192CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36193CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36194compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36195GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36196lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36197lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36198lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36199lt_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 +000036200nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36201lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036202objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36203MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36204lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036205lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036206lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036207lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36208lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36209need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036210MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036211DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36212NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36213LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36214OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36215OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36216libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36217shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36218extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36219archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36220enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36221export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36222whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36223compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36224old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36225old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36226archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36227archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36228module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36229module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36230with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36231allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36232no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36233hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036234hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36235hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36236hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36237hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36238hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36239hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36240inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36241link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036242always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36243export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36244exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36245include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36246prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036247postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036248file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36249variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36250need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36251need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36252version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36253runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36254shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36255shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36256libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36257library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36258soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36259install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36260postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36261postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36262finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36263finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36264hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36265sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36266sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36267hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36268enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36269enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36270enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36271old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36272striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36273compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36274predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36275postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36276predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36277postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36278compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36279LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36280reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36281reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36282old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36283compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36284GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36285lt_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 +000036286lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036287lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036288lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36289lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36290archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36291enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36292export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36293whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36294compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36295old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36296old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36297archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36298archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36299module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36300module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36301with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36302allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36303no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36304hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036305hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36306hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36307hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36308hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36309hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36310hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36311inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36312link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036313always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36314export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36315exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36316include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36317prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036318postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036319file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36320hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36321compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36322predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36323postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36324predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36325postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36326compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036327
36328LTCC='$LTCC'
36329LTCFLAGS='$LTCFLAGS'
36330compiler='$compiler_DEFAULT'
36331
cristy0c60a692010-11-04 01:09:47 +000036332# A function that is used when there is no print builtin or printf.
36333func_fallback_echo ()
36334{
36335 eval 'cat <<_LTECHO_EOF
36336\$1
36337_LTECHO_EOF'
36338}
36339
cristy73bd4a52010-10-05 11:24:23 +000036340# Quote evaled strings.
36341for var in SED \
36342GREP \
36343EGREP \
36344FGREP \
cristy0c60a692010-11-04 01:09:47 +000036345SHELL \
36346ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036347LD \
cristy0c60a692010-11-04 01:09:47 +000036348AS \
36349DLLTOOL \
36350OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036351PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036352NM \
36353LN_S \
36354lt_SP2NL \
36355lt_NL2SP \
36356reload_flag \
36357deplibs_check_method \
36358file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036359file_magic_glob \
36360want_nocaseglob \
36361sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036362AR \
36363AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036364archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036365STRIP \
36366RANLIB \
36367CC \
36368CFLAGS \
36369compiler \
36370lt_cv_sys_global_symbol_pipe \
36371lt_cv_sys_global_symbol_to_cdecl \
36372lt_cv_sys_global_symbol_to_c_name_address \
36373lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036374nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036375lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036376lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036377lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036378lt_prog_compiler_static \
36379lt_cv_prog_compiler_c_o \
36380need_locks \
cristyda16f162011-02-19 23:52:17 +000036381MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036382DSYMUTIL \
36383NMEDIT \
36384LIPO \
36385OTOOL \
36386OTOOL64 \
36387shrext_cmds \
36388export_dynamic_flag_spec \
36389whole_archive_flag_spec \
36390compiler_needs_object \
36391with_gnu_ld \
36392allow_undefined_flag \
36393no_undefined_flag \
36394hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036395hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036396exclude_expsyms \
36397include_expsyms \
36398file_list_spec \
36399variables_saved_for_relink \
36400libname_spec \
36401library_names_spec \
36402soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036403install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036404finish_eval \
36405old_striplib \
36406striplib \
36407compiler_lib_search_dirs \
36408predep_objects \
36409postdep_objects \
36410predeps \
36411postdeps \
36412compiler_lib_search_path \
36413LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036414reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036415compiler_CXX \
36416lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036417lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036418lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036419lt_prog_compiler_static_CXX \
36420lt_cv_prog_compiler_c_o_CXX \
36421export_dynamic_flag_spec_CXX \
36422whole_archive_flag_spec_CXX \
36423compiler_needs_object_CXX \
36424with_gnu_ld_CXX \
36425allow_undefined_flag_CXX \
36426no_undefined_flag_CXX \
36427hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036428hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036429exclude_expsyms_CXX \
36430include_expsyms_CXX \
36431file_list_spec_CXX \
36432compiler_lib_search_dirs_CXX \
36433predep_objects_CXX \
36434postdep_objects_CXX \
36435predeps_CXX \
36436postdeps_CXX \
36437compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036438 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036439 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036441 ;;
36442 *)
36443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36444 ;;
36445 esac
36446done
36447
36448# Double-quote double-evaled strings.
36449for var in reload_cmds \
36450old_postinstall_cmds \
36451old_postuninstall_cmds \
36452old_archive_cmds \
36453extract_expsyms_cmds \
36454old_archive_from_new_cmds \
36455old_archive_from_expsyms_cmds \
36456archive_cmds \
36457archive_expsym_cmds \
36458module_cmds \
36459module_expsym_cmds \
36460export_symbols_cmds \
36461prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036462postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036463postinstall_cmds \
36464postuninstall_cmds \
36465finish_cmds \
36466sys_lib_search_path_spec \
36467sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036468reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036469old_archive_cmds_CXX \
36470old_archive_from_new_cmds_CXX \
36471old_archive_from_expsyms_cmds_CXX \
36472archive_cmds_CXX \
36473archive_expsym_cmds_CXX \
36474module_cmds_CXX \
36475module_expsym_cmds_CXX \
36476export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036477prelink_cmds_CXX \
36478postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036479 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036480 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036481 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036482 ;;
36483 *)
36484 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36485 ;;
36486 esac
36487done
36488
cristy73bd4a52010-10-05 11:24:23 +000036489ac_aux_dir='$ac_aux_dir'
36490xsi_shell='$xsi_shell'
36491lt_shell_append='$lt_shell_append'
36492
36493# See if we are running on zsh, and set the options which allow our
36494# commands through without removal of \ escapes INIT.
36495if test -n "\${ZSH_VERSION+set}" ; then
36496 setopt NO_GLOB_SUBST
36497fi
36498
36499
36500 PACKAGE='$PACKAGE'
36501 VERSION='$VERSION'
36502 TIMESTAMP='$TIMESTAMP'
36503 RM='$RM'
36504 ofile='$ofile'
36505
36506
36507
36508
36509
36510
cristy3ed852e2009-09-05 21:47:34 +000036511_ACEOF
36512
36513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36514
36515# Handling of arguments.
36516for ac_config_target in $ac_config_targets
36517do
36518 case $ac_config_target in
36519 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036520 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036521 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36522 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36523 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36524 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36525 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036526 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036527 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36528 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36529 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36530 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36531 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036532 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036533 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36534 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036535 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36536 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36537 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036538 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36539 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36540 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36541 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36542 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36543 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36544 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36545 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36546 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36547 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36548 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36549 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36550 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36551 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36552 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36553 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36554 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036555 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36556 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36558 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036559 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36560 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036561 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036562 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36563 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36564
cristy98dddb52010-11-04 00:30:15 +000036565 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036566 esac
36567done
36568
36569
36570# If the user did not use the arguments to specify the items to instantiate,
36571# then the envvar interface is used. Set only those that are not.
36572# We use the long form for the default assignment because of an extremely
36573# bizarre bug on SunOS 4.1.3.
36574if $ac_need_defaults; then
36575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36578fi
36579
36580# Have a temporary directory for convenience. Make it in the build tree
36581# simply because there is no reason against having it here, and in addition,
36582# creating and moving files from /tmp can sometimes cause problems.
36583# Hook for its removal unless debugging.
36584# Note that there is a small window in which the directory will not be cleaned:
36585# after its creation but before its name has been assigned to `$tmp'.
36586$debug ||
36587{
cristyda16f162011-02-19 23:52:17 +000036588 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036589 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036590 : "${ac_tmp:=$tmp}"
36591 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036592' 0
cristy8b350f62009-11-15 23:12:43 +000036593 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036594}
36595# Create a (secure) tmp directory for tmp files.
36596
36597{
36598 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036599 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036600} ||
36601{
36602 tmp=./conf$$-$RANDOM
36603 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036604} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036605ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036606
36607# Set up the scripts for CONFIG_FILES section.
36608# No need to generate them if there are no CONFIG_FILES.
36609# This happens for instance with `./config.status config.h'.
36610if test -n "$CONFIG_FILES"; then
36611
36612
cristy8b350f62009-11-15 23:12:43 +000036613ac_cr=`echo X | tr X '\015'`
36614# On cygwin, bash can eat \r inside `` if the user requested igncr.
36615# But we know of no other shell where ac_cr would be empty at this
36616# point, so we can use a bashism as a fallback.
36617if test "x$ac_cr" = x; then
36618 eval ac_cr=\$\'\\r\'
36619fi
cristy3ed852e2009-09-05 21:47:34 +000036620ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36621if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036622 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036623else
36624 ac_cs_awk_cr=$ac_cr
36625fi
36626
cristyda16f162011-02-19 23:52:17 +000036627echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036628_ACEOF
36629
36630
36631{
36632 echo "cat >conf$$subs.awk <<_ACEOF" &&
36633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36634 echo "_ACEOF"
36635} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36637ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036638ac_delim='%!_!# '
36639for ac_last_try in false false false false false :; do
36640 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036642
36643 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36644 if test $ac_delim_n = $ac_delim_num; then
36645 break
36646 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036648 else
36649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36650 fi
36651done
36652rm -f conf$$subs.sh
36653
36654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036655cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036656_ACEOF
36657sed -n '
36658h
36659s/^/S["/; s/!.*/"]=/
36660p
36661g
36662s/^[^!]*!//
36663:repl
36664t repl
36665s/'"$ac_delim"'$//
36666t delim
36667:nl
36668h
cristycd4c5312009-11-22 01:19:08 +000036669s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036670t more1
36671s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36672p
36673n
36674b repl
36675:more1
36676s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36677p
36678g
36679s/.\{148\}//
36680t nl
36681:delim
36682h
cristycd4c5312009-11-22 01:19:08 +000036683s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036684t more2
36685s/["\\]/\\&/g; s/^/"/; s/$/"/
36686p
36687b
36688:more2
36689s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36690p
36691g
36692s/.\{148\}//
36693t delim
36694' <conf$$subs.awk | sed '
36695/^[^""]/{
36696 N
36697 s/\n//
36698}
36699' >>$CONFIG_STATUS || ac_write_fail=1
36700rm -f conf$$subs.awk
36701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36702_ACAWK
cristyda16f162011-02-19 23:52:17 +000036703cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036704 for (key in S) S_is_set[key] = 1
36705 FS = ""
36706
36707}
36708{
36709 line = $ 0
36710 nfields = split(line, field, "@")
36711 substed = 0
36712 len = length(field[1])
36713 for (i = 2; i < nfields; i++) {
36714 key = field[i]
36715 keylen = length(key)
36716 if (S_is_set[key]) {
36717 value = S[key]
36718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36719 len += length(value) + length(field[++i])
36720 substed = 1
36721 } else
36722 len += 1 + keylen
36723 }
36724
36725 print line
36726}
36727
36728_ACAWK
36729_ACEOF
36730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36731if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36732 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36733else
36734 cat
cristyda16f162011-02-19 23:52:17 +000036735fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036736 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036737_ACEOF
36738
cristy98dddb52010-11-04 00:30:15 +000036739# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36740# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036741# trailing colons and then remove the whole line if VPATH becomes empty
36742# (actually we leave an empty line to preserve line numbers).
36743if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036744 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36745h
36746s///
36747s/^/:/
36748s/[ ]*$/:/
36749s/:\$(srcdir):/:/g
36750s/:\${srcdir}:/:/g
36751s/:@srcdir@:/:/g
36752s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036753s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036754x
36755s/\(=[ ]*\).*/\1/
36756G
36757s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036758s/^[^=]*=[ ]*$//
36759}'
36760fi
36761
36762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36763fi # test -n "$CONFIG_FILES"
36764
36765# Set up the scripts for CONFIG_HEADERS section.
36766# No need to generate them if there are no CONFIG_HEADERS.
36767# This happens for instance with `./config.status Makefile'.
36768if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036769cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036770BEGIN {
36771_ACEOF
36772
36773# Transform confdefs.h into an awk script `defines.awk', embedded as
36774# here-document in config.status, that substitutes the proper values into
36775# config.h.in to produce config.h.
36776
36777# Create a delimiter string that does not exist in confdefs.h, to ease
36778# handling of long lines.
36779ac_delim='%!_!# '
36780for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036781 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36782 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036783 break
36784 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036785 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036786 else
36787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36788 fi
36789done
36790
36791# For the awk script, D is an array of macro values keyed by name,
36792# likewise P contains macro parameters if any. Preserve backslash
36793# newline sequences.
36794
36795ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36796sed -n '
36797s/.\{148\}/&'"$ac_delim"'/g
36798t rset
36799:rset
36800s/^[ ]*#[ ]*define[ ][ ]*/ /
36801t def
36802d
36803:def
36804s/\\$//
36805t bsnl
36806s/["\\]/\\&/g
36807s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36808D["\1"]=" \3"/p
36809s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36810d
36811:bsnl
36812s/["\\]/\\&/g
36813s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36814D["\1"]=" \3\\\\\\n"\\/p
36815t cont
36816s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36817t cont
36818d
36819:cont
36820n
36821s/.\{148\}/&'"$ac_delim"'/g
36822t clear
36823:clear
36824s/\\$//
36825t bsnlc
36826s/["\\]/\\&/g; s/^/"/; s/$/"/p
36827d
36828:bsnlc
36829s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36830b cont
36831' <confdefs.h | sed '
36832s/'"$ac_delim"'/"\\\
36833"/g' >>$CONFIG_STATUS || ac_write_fail=1
36834
36835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36836 for (key in D) D_is_set[key] = 1
36837 FS = ""
36838}
36839/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36840 line = \$ 0
36841 split(line, arg, " ")
36842 if (arg[1] == "#") {
36843 defundef = arg[2]
36844 mac1 = arg[3]
36845 } else {
36846 defundef = substr(arg[1], 2)
36847 mac1 = arg[2]
36848 }
36849 split(mac1, mac2, "(") #)
36850 macro = mac2[1]
36851 prefix = substr(line, 1, index(line, defundef) - 1)
36852 if (D_is_set[macro]) {
36853 # Preserve the white space surrounding the "#".
36854 print prefix "define", macro P[macro] D[macro]
36855 next
36856 } else {
36857 # Replace #undef with comments. This is necessary, for example,
36858 # in the case of _POSIX_SOURCE, which is predefined and required
36859 # on some systems where configure will not decide to define it.
36860 if (defundef == "undef") {
36861 print "/*", prefix defundef, macro, "*/"
36862 next
36863 }
36864 }
36865}
36866{ print }
36867_ACAWK
36868_ACEOF
36869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036870 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036871fi # test -n "$CONFIG_HEADERS"
36872
36873
36874eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36875shift
36876for ac_tag
36877do
36878 case $ac_tag in
36879 :[FHLC]) ac_mode=$ac_tag; continue;;
36880 esac
36881 case $ac_mode$ac_tag in
36882 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036883 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036884 :[FH]-) ac_tag=-:-;;
36885 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36886 esac
36887 ac_save_IFS=$IFS
36888 IFS=:
36889 set x $ac_tag
36890 IFS=$ac_save_IFS
36891 shift
36892 ac_file=$1
36893 shift
36894
36895 case $ac_mode in
36896 :L) ac_source=$1;;
36897 :[FH])
36898 ac_file_inputs=
36899 for ac_f
36900 do
36901 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036902 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036903 *) # Look for the file first in the build tree, then in the source tree
36904 # (if the path is not absolute). The absolute path cannot be DOS-style,
36905 # because $ac_f cannot contain `:'.
36906 test -f "$ac_f" ||
36907 case $ac_f in
36908 [\\/$]*) false;;
36909 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36910 esac ||
cristy98dddb52010-11-04 00:30:15 +000036911 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036912 esac
36913 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036914 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036915 done
36916
36917 # Let's still pretend it is `configure' which instantiates (i.e., don't
36918 # use $as_me), people would be surprised to read:
36919 # /* config.h. Generated by config.status. */
36920 configure_input='Generated from '`
36921 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36922 `' by configure.'
36923 if test x"$ac_file" != x-; then
36924 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036926$as_echo "$as_me: creating $ac_file" >&6;}
36927 fi
36928 # Neutralize special characters interpreted by sed in replacement strings.
36929 case $configure_input in #(
36930 *\&* | *\|* | *\\* )
36931 ac_sed_conf_input=`$as_echo "$configure_input" |
36932 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36933 *) ac_sed_conf_input=$configure_input;;
36934 esac
36935
36936 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036937 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036939 esac
36940 ;;
36941 esac
36942
36943 ac_dir=`$as_dirname -- "$ac_file" ||
36944$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36945 X"$ac_file" : 'X\(//\)[^/]' \| \
36946 X"$ac_file" : 'X\(//\)$' \| \
36947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36948$as_echo X"$ac_file" |
36949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36950 s//\1/
36951 q
36952 }
36953 /^X\(\/\/\)[^/].*/{
36954 s//\1/
36955 q
36956 }
36957 /^X\(\/\/\)$/{
36958 s//\1/
36959 q
36960 }
36961 /^X\(\/\).*/{
36962 s//\1/
36963 q
36964 }
36965 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036966 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036967 ac_builddir=.
36968
36969case "$ac_dir" in
36970.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36971*)
36972 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36973 # A ".." for each directory in $ac_dir_suffix.
36974 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36975 case $ac_top_builddir_sub in
36976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36978 esac ;;
36979esac
36980ac_abs_top_builddir=$ac_pwd
36981ac_abs_builddir=$ac_pwd$ac_dir_suffix
36982# for backward compatibility:
36983ac_top_builddir=$ac_top_build_prefix
36984
36985case $srcdir in
36986 .) # We are building in place.
36987 ac_srcdir=.
36988 ac_top_srcdir=$ac_top_builddir_sub
36989 ac_abs_top_srcdir=$ac_pwd ;;
36990 [\\/]* | ?:[\\/]* ) # Absolute name.
36991 ac_srcdir=$srcdir$ac_dir_suffix;
36992 ac_top_srcdir=$srcdir
36993 ac_abs_top_srcdir=$srcdir ;;
36994 *) # Relative name.
36995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36996 ac_top_srcdir=$ac_top_build_prefix$srcdir
36997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36998esac
36999ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37000
37001
37002 case $ac_mode in
37003 :F)
37004 #
37005 # CONFIG_FILE
37006 #
37007
37008 case $INSTALL in
37009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37011 esac
cristy73bd4a52010-10-05 11:24:23 +000037012 ac_MKDIR_P=$MKDIR_P
37013 case $MKDIR_P in
37014 [\\/$]* | ?:[\\/]* ) ;;
37015 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37016 esac
cristy3ed852e2009-09-05 21:47:34 +000037017_ACEOF
37018
37019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37020# If the template does not know about datarootdir, expand it.
37021# FIXME: This hack should be removed a few years after 2.60.
37022ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037023ac_sed_dataroot='
37024/datarootdir/ {
37025 p
37026 q
37027}
37028/@datadir@/p
37029/@docdir@/p
37030/@infodir@/p
37031/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037032/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037033case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37034*datarootdir*) ac_datarootdir_seen=yes;;
37035*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037037$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37038_ACEOF
37039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37040 ac_datarootdir_hack='
37041 s&@datadir@&$datadir&g
37042 s&@docdir@&$docdir&g
37043 s&@infodir@&$infodir&g
37044 s&@localedir@&$localedir&g
37045 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037046 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037047esac
37048_ACEOF
37049
37050# Neutralize VPATH when `$srcdir' = `.'.
37051# Shell code in configure.ac might set extrasub.
37052# FIXME: do we really want to maintain this feature?
37053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37054ac_sed_extra="$ac_vpsub
37055$extrasub
37056_ACEOF
37057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37058:t
37059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37060s|@configure_input@|$ac_sed_conf_input|;t t
37061s&@top_builddir@&$ac_top_builddir_sub&;t t
37062s&@top_build_prefix@&$ac_top_build_prefix&;t t
37063s&@srcdir@&$ac_srcdir&;t t
37064s&@abs_srcdir@&$ac_abs_srcdir&;t t
37065s&@top_srcdir@&$ac_top_srcdir&;t t
37066s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37067s&@builddir@&$ac_builddir&;t t
37068s&@abs_builddir@&$ac_abs_builddir&;t t
37069s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37070s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037071s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037072$ac_datarootdir_hack
37073"
cristyda16f162011-02-19 23:52:17 +000037074eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037076
37077test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037082which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037083$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037084which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037085
cristyda16f162011-02-19 23:52:17 +000037086 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037087 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037090 esac \
cristy98dddb52010-11-04 00:30:15 +000037091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037092 ;;
37093 :H)
37094 #
37095 # CONFIG_HEADER
37096 #
37097 if test x"$ac_file" != x-; then
37098 {
37099 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37101 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037105$as_echo "$as_me: $ac_file is unchanged" >&6;}
37106 else
37107 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037108 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037110 fi
37111 else
37112 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037114 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037115 fi
cristy73bd4a52010-10-05 11:24:23 +000037116# Compute "$ac_file"'s index in $config_headers.
37117_am_arg="$ac_file"
37118_am_stamp_count=1
37119for _am_header in $config_headers :; do
37120 case $_am_header in
37121 $_am_arg | $_am_arg:* )
37122 break ;;
37123 * )
37124 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37125 esac
37126done
37127echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37128$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37129 X"$_am_arg" : 'X\(//\)[^/]' \| \
37130 X"$_am_arg" : 'X\(//\)$' \| \
37131 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37132$as_echo X"$_am_arg" |
37133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37134 s//\1/
37135 q
37136 }
37137 /^X\(\/\/\)[^/].*/{
37138 s//\1/
37139 q
37140 }
37141 /^X\(\/\/\)$/{
37142 s//\1/
37143 q
37144 }
37145 /^X\(\/\).*/{
37146 s//\1/
37147 q
37148 }
37149 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037150 ;;
37151
cristy8b350f62009-11-15 23:12:43 +000037152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037153$as_echo "$as_me: executing $ac_file commands" >&6;}
37154 ;;
37155 esac
37156
37157
37158 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037159 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037160ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37161ac_prefix_conf_PKG=`echo MagickCore`
37162ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37163ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37164ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37165if test ".$ac_prefix_conf_INP" = "."; then
37166 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37167 case "$ac_file" in
37168 *.h) ac_prefix_conf_INP=$ac_file ;;
37169 *)
37170 esac
37171 test ".$ac_prefix_conf_INP" != "." && break
37172 done
37173fi
37174if test ".$ac_prefix_conf_INP" = "."; then
37175 case "$ac_prefix_conf_OUT" in
37176 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37177 ;;
37178 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37179 ;;
37180 *) ac_prefix_conf_INP=config.h
37181 ;;
37182 esac
37183fi
37184if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037185 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037186else
37187 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37188 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37189 fi fi
37190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37191$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37192 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037193 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37194 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37195 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37196 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37197 $as_echo "#endif/" >> conftest.prefix
37198 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37199 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37200 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037201 # now executing _script on _DEF input to create _OUT output file
37202 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37203 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37204 echo ' ' >>$tmp/pconfig.h
37205 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37206
37207 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37208 echo ' ' >>$tmp/pconfig.h
37209 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37210 echo "#endif" >>$tmp/pconfig.h
37211 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37213$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37214 else
37215 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37216$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37217 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37218 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37219 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37220$as_echo X"$ac_prefix_conf_OUT" |
37221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37222 s//\1/
37223 q
37224 }
37225 /^X\(\/\/\)[^/].*/{
37226 s//\1/
37227 q
37228 }
37229 /^X\(\/\/\)$/{
37230 s//\1/
37231 q
37232 }
37233 /^X\(\/\).*/{
37234 s//\1/
37235 q
37236 }
37237 s/.*/./; q'`
37238 as_dir="$ac_dir"; as_fn_mkdir_p
37239 rm -f "$ac_prefix_conf_OUT"
37240 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37241 fi
37242 cp conftest.prefix _configs.sed
37243 else
cristy98dddb52010-11-04 00:30:15 +000037244 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 +000037245 fi
37246 rm -f conftest.*
37247fi
37248 ;;
37249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37250 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37251 # are listed without --file. Let's play safe and only enable the eval
37252 # if we detect the quoting.
37253 case $CONFIG_FILES in
37254 *\'*) eval set x "$CONFIG_FILES" ;;
37255 *) set x $CONFIG_FILES ;;
37256 esac
37257 shift
37258 for mf
37259 do
37260 # Strip MF so we end up with the name of the file.
37261 mf=`echo "$mf" | sed -e 's/:.*$//'`
37262 # Check whether this is an Automake generated Makefile or not.
37263 # We used to match only the files named `Makefile.in', but
37264 # some people rename them; so instead we look at the file content.
37265 # Grep'ing the first line is not enough: some people post-process
37266 # each Makefile.in and add a new line on top of each file to say so.
37267 # Grep'ing the whole file is not good either: AIX grep has a line
37268 # limit of 2048, but all sed's we know have understand at least 4000.
37269 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37270 dirpart=`$as_dirname -- "$mf" ||
37271$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37272 X"$mf" : 'X\(//\)[^/]' \| \
37273 X"$mf" : 'X\(//\)$' \| \
37274 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37275$as_echo X"$mf" |
37276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37277 s//\1/
37278 q
37279 }
37280 /^X\(\/\/\)[^/].*/{
37281 s//\1/
37282 q
37283 }
37284 /^X\(\/\/\)$/{
37285 s//\1/
37286 q
37287 }
37288 /^X\(\/\).*/{
37289 s//\1/
37290 q
37291 }
37292 s/.*/./; q'`
37293 else
37294 continue
37295 fi
37296 # Extract the definition of DEPDIR, am__include, and am__quote
37297 # from the Makefile without running `make'.
37298 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37299 test -z "$DEPDIR" && continue
37300 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37301 test -z "am__include" && continue
37302 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37303 # When using ansi2knr, U may be empty or an underscore; expand it
37304 U=`sed -n 's/^U = //p' < "$mf"`
37305 # Find all dependency output files, they are included files with
37306 # $(DEPDIR) in their names. We invoke sed twice because it is the
37307 # simplest approach to changing $(DEPDIR) to its actual value in the
37308 # expansion.
37309 for file in `sed -n "
37310 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37311 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37312 # Make sure the directory exists.
37313 test -f "$dirpart/$file" && continue
37314 fdir=`$as_dirname -- "$file" ||
37315$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37316 X"$file" : 'X\(//\)[^/]' \| \
37317 X"$file" : 'X\(//\)$' \| \
37318 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37319$as_echo X"$file" |
37320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37321 s//\1/
37322 q
37323 }
37324 /^X\(\/\/\)[^/].*/{
37325 s//\1/
37326 q
37327 }
37328 /^X\(\/\/\)$/{
37329 s//\1/
37330 q
37331 }
37332 /^X\(\/\).*/{
37333 s//\1/
37334 q
37335 }
37336 s/.*/./; q'`
37337 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37338 # echo "creating $dirpart/$file"
37339 echo '# dummy' > "$dirpart/$file"
37340 done
37341 done
37342}
37343 ;;
37344 "libtool":C)
37345
37346 # See if we are running on zsh, and set the options which allow our
37347 # commands through without removal of \ escapes.
37348 if test -n "${ZSH_VERSION+set}" ; then
37349 setopt NO_GLOB_SUBST
37350 fi
37351
37352 cfgfile="${ofile}T"
37353 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37354 $RM "$cfgfile"
37355
37356 cat <<_LT_EOF >> "$cfgfile"
37357#! $SHELL
37358
37359# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37360# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37362# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37363#
37364# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037365# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37366# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037367# Written by Gordon Matzigkeit, 1996
37368#
37369# This file is part of GNU Libtool.
37370#
37371# GNU Libtool is free software; you can redistribute it and/or
37372# modify it under the terms of the GNU General Public License as
37373# published by the Free Software Foundation; either version 2 of
37374# the License, or (at your option) any later version.
37375#
37376# As a special exception to the GNU General Public License,
37377# if you distribute this file as part of a program or library that
37378# is built using GNU Libtool, you may include this file under the
37379# same distribution terms that you use for the rest of that program.
37380#
37381# GNU Libtool is distributed in the hope that it will be useful,
37382# but WITHOUT ANY WARRANTY; without even the implied warranty of
37383# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37384# GNU General Public License for more details.
37385#
37386# You should have received a copy of the GNU General Public License
37387# along with GNU Libtool; see the file COPYING. If not, a copy
37388# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37389# obtained by writing to the Free Software Foundation, Inc.,
37390# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37391
37392
37393# The names of the tagged configurations supported by this script.
37394available_tags="CXX "
37395
37396# ### BEGIN LIBTOOL CONFIG
37397
37398# A sed program that does not truncate output.
37399SED=$lt_SED
37400
37401# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37402Xsed="\$SED -e 1s/^X//"
37403
37404# A grep program that handles long lines.
37405GREP=$lt_GREP
37406
37407# An ERE matcher.
37408EGREP=$lt_EGREP
37409
37410# A literal string matcher.
37411FGREP=$lt_FGREP
37412
cristy0c60a692010-11-04 01:09:47 +000037413# Shell to use when invoking shell scripts.
37414SHELL=$lt_SHELL
37415
37416# An echo program that protects backslashes.
37417ECHO=$lt_ECHO
37418
cristy73bd4a52010-10-05 11:24:23 +000037419# Which release of libtool.m4 was used?
37420macro_version=$macro_version
37421macro_revision=$macro_revision
37422
37423# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037424AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037425
37426# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037427DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037428
37429# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037430OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037431
37432# Whether or not to build shared libraries.
37433build_libtool_libs=$enable_shared
37434
37435# Whether or not to build static libraries.
37436build_old_libs=$enable_static
37437
37438# What type of objects to build.
37439pic_mode=$pic_mode
37440
37441# Whether or not to optimize for fast installation.
37442fast_install=$enable_fast_install
37443
cristy99bd5232011-12-07 14:38:20 +000037444# The PATH separator for the build system.
37445PATH_SEPARATOR=$lt_PATH_SEPARATOR
37446
cristy73bd4a52010-10-05 11:24:23 +000037447# The host system.
37448host_alias=$host_alias
37449host=$host
37450host_os=$host_os
37451
37452# The build system.
37453build_alias=$build_alias
37454build=$build
37455build_os=$build_os
37456
37457# A BSD- or MS-compatible name lister.
37458NM=$lt_NM
37459
37460# Whether we need soft or hard links.
37461LN_S=$lt_LN_S
37462
37463# What is the maximum length of a command?
37464max_cmd_len=$max_cmd_len
37465
37466# Object file suffix (normally "o").
37467objext=$ac_objext
37468
37469# Executable file suffix (normally "").
37470exeext=$exeext
37471
37472# whether the shell understands "unset".
37473lt_unset=$lt_unset
37474
37475# turn spaces into newlines.
37476SP2NL=$lt_lt_SP2NL
37477
37478# turn newlines into spaces.
37479NL2SP=$lt_lt_NL2SP
37480
cristyda16f162011-02-19 23:52:17 +000037481# convert \$build file names to \$host format.
37482to_host_file_cmd=$lt_cv_to_host_file_cmd
37483
37484# convert \$build files to toolchain format.
37485to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37486
cristy73bd4a52010-10-05 11:24:23 +000037487# Method to check whether dependent libraries are shared objects.
37488deplibs_check_method=$lt_deplibs_check_method
37489
cristyda16f162011-02-19 23:52:17 +000037490# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037491file_magic_cmd=$lt_file_magic_cmd
37492
cristyda16f162011-02-19 23:52:17 +000037493# How to find potential files when deplibs_check_method = "file_magic".
37494file_magic_glob=$lt_file_magic_glob
37495
37496# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37497want_nocaseglob=$lt_want_nocaseglob
37498
37499# Command to associate shared and link libraries.
37500sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37501
cristy73bd4a52010-10-05 11:24:23 +000037502# The archiver.
37503AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037504
37505# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037506AR_FLAGS=$lt_AR_FLAGS
37507
cristyda16f162011-02-19 23:52:17 +000037508# How to feed a file listing to the archiver.
37509archiver_list_spec=$lt_archiver_list_spec
37510
cristy73bd4a52010-10-05 11:24:23 +000037511# A symbol stripping program.
37512STRIP=$lt_STRIP
37513
37514# Commands used to install an old-style archive.
37515RANLIB=$lt_RANLIB
37516old_postinstall_cmds=$lt_old_postinstall_cmds
37517old_postuninstall_cmds=$lt_old_postuninstall_cmds
37518
cristy0c60a692010-11-04 01:09:47 +000037519# Whether to use a lock for old archive extraction.
37520lock_old_archive_extraction=$lock_old_archive_extraction
37521
cristy73bd4a52010-10-05 11:24:23 +000037522# A C compiler.
37523LTCC=$lt_CC
37524
37525# LTCC compiler flags.
37526LTCFLAGS=$lt_CFLAGS
37527
37528# Take the output of nm and produce a listing of raw symbols and C names.
37529global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37530
37531# Transform the output of nm in a proper C declaration.
37532global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37533
37534# Transform the output of nm in a C name address pair.
37535global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37536
37537# Transform the output of nm in a C name address pair when lib prefix is needed.
37538global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37539
cristyda16f162011-02-19 23:52:17 +000037540# Specify filename containing input files for \$NM.
37541nm_file_list_spec=$lt_nm_file_list_spec
37542
37543# The root where to search for dependent libraries,and in which our libraries should be installed.
37544lt_sysroot=$lt_sysroot
37545
cristy73bd4a52010-10-05 11:24:23 +000037546# The name of the directory that contains temporary libtool files.
37547objdir=$objdir
37548
cristy73bd4a52010-10-05 11:24:23 +000037549# Used to examine libraries when file_magic_cmd begins with "file".
37550MAGIC_CMD=$MAGIC_CMD
37551
37552# Must we lock files when doing compilation?
37553need_locks=$lt_need_locks
37554
cristyda16f162011-02-19 23:52:17 +000037555# Manifest tool.
37556MANIFEST_TOOL=$lt_MANIFEST_TOOL
37557
cristy73bd4a52010-10-05 11:24:23 +000037558# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37559DSYMUTIL=$lt_DSYMUTIL
37560
37561# Tool to change global to local symbols on Mac OS X.
37562NMEDIT=$lt_NMEDIT
37563
37564# Tool to manipulate fat objects and archives on Mac OS X.
37565LIPO=$lt_LIPO
37566
37567# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37568OTOOL=$lt_OTOOL
37569
37570# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37571OTOOL64=$lt_OTOOL64
37572
37573# Old archive suffix (normally "a").
37574libext=$libext
37575
37576# Shared library suffix (normally ".so").
37577shrext_cmds=$lt_shrext_cmds
37578
37579# The commands to extract the exported symbol list from a shared archive.
37580extract_expsyms_cmds=$lt_extract_expsyms_cmds
37581
37582# Variables whose values should be saved in libtool wrapper scripts and
37583# restored at link time.
37584variables_saved_for_relink=$lt_variables_saved_for_relink
37585
37586# Do we need the "lib" prefix for modules?
37587need_lib_prefix=$need_lib_prefix
37588
37589# Do we need a version for libraries?
37590need_version=$need_version
37591
37592# Library versioning type.
37593version_type=$version_type
37594
37595# Shared library runtime path variable.
37596runpath_var=$runpath_var
37597
37598# Shared library path variable.
37599shlibpath_var=$shlibpath_var
37600
37601# Is shlibpath searched before the hard-coded library search path?
37602shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37603
37604# Format of library name prefix.
37605libname_spec=$lt_libname_spec
37606
37607# List of archive names. First name is the real one, the rest are links.
37608# The last name is the one that the linker finds with -lNAME
37609library_names_spec=$lt_library_names_spec
37610
37611# The coded name of the library, if different from the real name.
37612soname_spec=$lt_soname_spec
37613
cristy0c60a692010-11-04 01:09:47 +000037614# Permission mode override for installation of shared libraries.
37615install_override_mode=$lt_install_override_mode
37616
cristy73bd4a52010-10-05 11:24:23 +000037617# Command to use after installation of a shared archive.
37618postinstall_cmds=$lt_postinstall_cmds
37619
37620# Command to use after uninstallation of a shared archive.
37621postuninstall_cmds=$lt_postuninstall_cmds
37622
37623# Commands used to finish a libtool library installation in a directory.
37624finish_cmds=$lt_finish_cmds
37625
37626# As "finish_cmds", except a single script fragment to be evaled but
37627# not shown.
37628finish_eval=$lt_finish_eval
37629
37630# Whether we should hardcode library paths into libraries.
37631hardcode_into_libs=$hardcode_into_libs
37632
37633# Compile-time system search path for libraries.
37634sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37635
37636# Run-time system search path for libraries.
37637sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37638
37639# Whether dlopen is supported.
37640dlopen_support=$enable_dlopen
37641
37642# Whether dlopen of programs is supported.
37643dlopen_self=$enable_dlopen_self
37644
37645# Whether dlopen of statically linked programs is supported.
37646dlopen_self_static=$enable_dlopen_self_static
37647
37648# Commands to strip libraries.
37649old_striplib=$lt_old_striplib
37650striplib=$lt_striplib
37651
37652
37653# The linker used to build libraries.
37654LD=$lt_LD
37655
cristy0c60a692010-11-04 01:09:47 +000037656# How to create reloadable object files.
37657reload_flag=$lt_reload_flag
37658reload_cmds=$lt_reload_cmds
37659
cristy73bd4a52010-10-05 11:24:23 +000037660# Commands used to build an old-style archive.
37661old_archive_cmds=$lt_old_archive_cmds
37662
37663# A language specific compiler.
37664CC=$lt_compiler
37665
37666# Is the compiler the GNU compiler?
37667with_gcc=$GCC
37668
37669# Compiler flag to turn off builtin functions.
37670no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37671
cristy73bd4a52010-10-05 11:24:23 +000037672# Additional compiler flags for building library objects.
37673pic_flag=$lt_lt_prog_compiler_pic
37674
cristyda16f162011-02-19 23:52:17 +000037675# How to pass a linker flag through the compiler.
37676wl=$lt_lt_prog_compiler_wl
37677
cristy73bd4a52010-10-05 11:24:23 +000037678# Compiler flag to prevent dynamic linking.
37679link_static_flag=$lt_lt_prog_compiler_static
37680
37681# Does compiler simultaneously support -c and -o options?
37682compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37683
37684# Whether or not to add -lc for building shared libraries.
37685build_libtool_need_lc=$archive_cmds_need_lc
37686
37687# Whether or not to disallow shared libs when runtime libs are static.
37688allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37689
37690# Compiler flag to allow reflexive dlopens.
37691export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37692
37693# Compiler flag to generate shared objects directly from archives.
37694whole_archive_flag_spec=$lt_whole_archive_flag_spec
37695
37696# Whether the compiler copes with passing no objects directly.
37697compiler_needs_object=$lt_compiler_needs_object
37698
37699# Create an old-style archive from a shared archive.
37700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37701
37702# Create a temporary old-style archive to link instead of a shared archive.
37703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37704
37705# Commands used to build a shared archive.
37706archive_cmds=$lt_archive_cmds
37707archive_expsym_cmds=$lt_archive_expsym_cmds
37708
37709# Commands used to build a loadable module if different from building
37710# a shared archive.
37711module_cmds=$lt_module_cmds
37712module_expsym_cmds=$lt_module_expsym_cmds
37713
37714# Whether we are building with GNU ld or not.
37715with_gnu_ld=$lt_with_gnu_ld
37716
37717# Flag that allows shared libraries with undefined symbols to be built.
37718allow_undefined_flag=$lt_allow_undefined_flag
37719
37720# Flag that enforces no undefined symbols.
37721no_undefined_flag=$lt_no_undefined_flag
37722
37723# Flag to hardcode \$libdir into a binary during linking.
37724# This must work even if \$libdir does not exist
37725hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37726
cristy73bd4a52010-10-05 11:24:23 +000037727# Whether we need a single "-rpath" flag with a separated argument.
37728hardcode_libdir_separator=$lt_hardcode_libdir_separator
37729
37730# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37731# DIR into the resulting binary.
37732hardcode_direct=$hardcode_direct
37733
37734# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37735# DIR into the resulting binary and the resulting library dependency is
37736# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37737# library is relocated.
37738hardcode_direct_absolute=$hardcode_direct_absolute
37739
37740# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37741# into the resulting binary.
37742hardcode_minus_L=$hardcode_minus_L
37743
37744# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37745# into the resulting binary.
37746hardcode_shlibpath_var=$hardcode_shlibpath_var
37747
37748# Set to "yes" if building a shared library automatically hardcodes DIR
37749# into the library and all subsequent libraries and executables linked
37750# against it.
37751hardcode_automatic=$hardcode_automatic
37752
37753# Set to yes if linker adds runtime paths of dependent libraries
37754# to runtime path list.
37755inherit_rpath=$inherit_rpath
37756
37757# Whether libtool must link a program against all its dependency libraries.
37758link_all_deplibs=$link_all_deplibs
37759
cristy73bd4a52010-10-05 11:24:23 +000037760# Set to "yes" if exported symbols are required.
37761always_export_symbols=$always_export_symbols
37762
37763# The commands to list exported symbols.
37764export_symbols_cmds=$lt_export_symbols_cmds
37765
37766# Symbols that should not be listed in the preloaded symbols.
37767exclude_expsyms=$lt_exclude_expsyms
37768
37769# Symbols that must always be exported.
37770include_expsyms=$lt_include_expsyms
37771
37772# Commands necessary for linking programs (against libraries) with templates.
37773prelink_cmds=$lt_prelink_cmds
37774
cristyda16f162011-02-19 23:52:17 +000037775# Commands necessary for finishing linking programs.
37776postlink_cmds=$lt_postlink_cmds
37777
cristy73bd4a52010-10-05 11:24:23 +000037778# Specify filename containing input files.
37779file_list_spec=$lt_file_list_spec
37780
37781# How to hardcode a shared library path into an executable.
37782hardcode_action=$hardcode_action
37783
37784# The directories searched by this compiler when creating a shared library.
37785compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37786
37787# Dependencies to place before and after the objects being linked to
37788# create a shared library.
37789predep_objects=$lt_predep_objects
37790postdep_objects=$lt_postdep_objects
37791predeps=$lt_predeps
37792postdeps=$lt_postdeps
37793
37794# The library search path used internally by the compiler when linking
37795# a shared library.
37796compiler_lib_search_path=$lt_compiler_lib_search_path
37797
37798# ### END LIBTOOL CONFIG
37799
37800_LT_EOF
37801
37802 case $host_os in
37803 aix3*)
37804 cat <<\_LT_EOF >> "$cfgfile"
37805# AIX sometimes has problems with the GCC collect2 program. For some
37806# reason, if we set the COLLECT_NAMES environment variable, the problems
37807# vanish in a puff of smoke.
37808if test "X${COLLECT_NAMES+set}" != Xset; then
37809 COLLECT_NAMES=
37810 export COLLECT_NAMES
37811fi
37812_LT_EOF
37813 ;;
37814 esac
37815
37816
37817ltmain="$ac_aux_dir/ltmain.sh"
37818
37819
37820 # We use sed instead of cat because bash on DJGPP gets confused if
37821 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37822 # text mode, it properly converts lines to CR/LF. This bash problem
37823 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037824 sed '$q' "$ltmain" >> "$cfgfile" \
37825 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037826
cristyda16f162011-02-19 23:52:17 +000037827 if test x"$xsi_shell" = xyes; then
37828 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37829func_dirname ()\
37830{\
37831\ case ${1} in\
37832\ */*) func_dirname_result="${1%/*}${2}" ;;\
37833\ * ) func_dirname_result="${3}" ;;\
37834\ esac\
37835} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37836 && mv -f "$cfgfile.tmp" "$cfgfile" \
37837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37838test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037839
37840
cristyda16f162011-02-19 23:52:17 +000037841 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37842func_basename ()\
37843{\
37844\ func_basename_result="${1##*/}"\
37845} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37846 && mv -f "$cfgfile.tmp" "$cfgfile" \
37847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37848test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037849
37850
cristyda16f162011-02-19 23:52:17 +000037851 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37852func_dirname_and_basename ()\
37853{\
37854\ case ${1} in\
37855\ */*) func_dirname_result="${1%/*}${2}" ;;\
37856\ * ) func_dirname_result="${3}" ;;\
37857\ esac\
37858\ func_basename_result="${1##*/}"\
37859} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37860 && mv -f "$cfgfile.tmp" "$cfgfile" \
37861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37862test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037863
cristyda16f162011-02-19 23:52:17 +000037864
37865 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37866func_stripname ()\
37867{\
37868\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37869\ # positional parameters, so assign one to ordinary parameter first.\
37870\ func_stripname_result=${3}\
37871\ func_stripname_result=${func_stripname_result#"${1}"}\
37872\ func_stripname_result=${func_stripname_result%"${2}"}\
37873} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37874 && mv -f "$cfgfile.tmp" "$cfgfile" \
37875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37876test 0 -eq $? || _lt_function_replace_fail=:
37877
37878
37879 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37880func_split_long_opt ()\
37881{\
37882\ func_split_long_opt_name=${1%%=*}\
37883\ func_split_long_opt_arg=${1#*=}\
37884} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37885 && mv -f "$cfgfile.tmp" "$cfgfile" \
37886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37887test 0 -eq $? || _lt_function_replace_fail=:
37888
37889
37890 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37891func_split_short_opt ()\
37892{\
37893\ func_split_short_opt_arg=${1#??}\
37894\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37895} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37896 && mv -f "$cfgfile.tmp" "$cfgfile" \
37897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37898test 0 -eq $? || _lt_function_replace_fail=:
37899
37900
37901 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37902func_lo2o ()\
37903{\
37904\ case ${1} in\
37905\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37906\ *) func_lo2o_result=${1} ;;\
37907\ esac\
37908} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37909 && mv -f "$cfgfile.tmp" "$cfgfile" \
37910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37911test 0 -eq $? || _lt_function_replace_fail=:
37912
37913
37914 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37915func_xform ()\
37916{\
37917 func_xform_result=${1%.*}.lo\
37918} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37919 && mv -f "$cfgfile.tmp" "$cfgfile" \
37920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37921test 0 -eq $? || _lt_function_replace_fail=:
37922
37923
37924 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37925func_arith ()\
37926{\
37927 func_arith_result=$(( $* ))\
37928} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37929 && mv -f "$cfgfile.tmp" "$cfgfile" \
37930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37931test 0 -eq $? || _lt_function_replace_fail=:
37932
37933
37934 sed -e '/^func_len ()$/,/^} # func_len /c\
37935func_len ()\
37936{\
37937 func_len_result=${#1}\
37938} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37939 && mv -f "$cfgfile.tmp" "$cfgfile" \
37940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37941test 0 -eq $? || _lt_function_replace_fail=:
37942
37943fi
37944
37945if test x"$lt_shell_append" = xyes; then
37946 sed -e '/^func_append ()$/,/^} # func_append /c\
37947func_append ()\
37948{\
37949 eval "${1}+=\\${2}"\
37950} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37951 && mv -f "$cfgfile.tmp" "$cfgfile" \
37952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37953test 0 -eq $? || _lt_function_replace_fail=:
37954
37955
37956 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37957func_append_quoted ()\
37958{\
37959\ func_quote_for_eval "${2}"\
37960\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37961} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37962 && mv -f "$cfgfile.tmp" "$cfgfile" \
37963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37964test 0 -eq $? || _lt_function_replace_fail=:
37965
37966
37967 # Save a `func_append' function call where possible by direct use of '+='
37968 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37969 && mv -f "$cfgfile.tmp" "$cfgfile" \
37970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37971 test 0 -eq $? || _lt_function_replace_fail=:
37972else
37973 # Save a `func_append' function call even when '+=' is not available
37974 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37975 && mv -f "$cfgfile.tmp" "$cfgfile" \
37976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37977 test 0 -eq $? || _lt_function_replace_fail=:
37978fi
37979
37980if test x"$_lt_function_replace_fail" = x":"; then
37981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37982$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37983fi
37984
37985
37986 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37988 chmod +x "$ofile"
37989
37990
37991 cat <<_LT_EOF >> "$ofile"
37992
37993# ### BEGIN LIBTOOL TAG CONFIG: CXX
37994
37995# The linker used to build libraries.
37996LD=$lt_LD_CXX
37997
cristy0c60a692010-11-04 01:09:47 +000037998# How to create reloadable object files.
37999reload_flag=$lt_reload_flag_CXX
38000reload_cmds=$lt_reload_cmds_CXX
38001
cristy73bd4a52010-10-05 11:24:23 +000038002# Commands used to build an old-style archive.
38003old_archive_cmds=$lt_old_archive_cmds_CXX
38004
38005# A language specific compiler.
38006CC=$lt_compiler_CXX
38007
38008# Is the compiler the GNU compiler?
38009with_gcc=$GCC_CXX
38010
38011# Compiler flag to turn off builtin functions.
38012no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38013
cristy73bd4a52010-10-05 11:24:23 +000038014# Additional compiler flags for building library objects.
38015pic_flag=$lt_lt_prog_compiler_pic_CXX
38016
cristyda16f162011-02-19 23:52:17 +000038017# How to pass a linker flag through the compiler.
38018wl=$lt_lt_prog_compiler_wl_CXX
38019
cristy73bd4a52010-10-05 11:24:23 +000038020# Compiler flag to prevent dynamic linking.
38021link_static_flag=$lt_lt_prog_compiler_static_CXX
38022
38023# Does compiler simultaneously support -c and -o options?
38024compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38025
38026# Whether or not to add -lc for building shared libraries.
38027build_libtool_need_lc=$archive_cmds_need_lc_CXX
38028
38029# Whether or not to disallow shared libs when runtime libs are static.
38030allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38031
38032# Compiler flag to allow reflexive dlopens.
38033export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38034
38035# Compiler flag to generate shared objects directly from archives.
38036whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38037
38038# Whether the compiler copes with passing no objects directly.
38039compiler_needs_object=$lt_compiler_needs_object_CXX
38040
38041# Create an old-style archive from a shared archive.
38042old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38043
38044# Create a temporary old-style archive to link instead of a shared archive.
38045old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38046
38047# Commands used to build a shared archive.
38048archive_cmds=$lt_archive_cmds_CXX
38049archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38050
38051# Commands used to build a loadable module if different from building
38052# a shared archive.
38053module_cmds=$lt_module_cmds_CXX
38054module_expsym_cmds=$lt_module_expsym_cmds_CXX
38055
38056# Whether we are building with GNU ld or not.
38057with_gnu_ld=$lt_with_gnu_ld_CXX
38058
38059# Flag that allows shared libraries with undefined symbols to be built.
38060allow_undefined_flag=$lt_allow_undefined_flag_CXX
38061
38062# Flag that enforces no undefined symbols.
38063no_undefined_flag=$lt_no_undefined_flag_CXX
38064
38065# Flag to hardcode \$libdir into a binary during linking.
38066# This must work even if \$libdir does not exist
38067hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38068
cristy73bd4a52010-10-05 11:24:23 +000038069# Whether we need a single "-rpath" flag with a separated argument.
38070hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38071
38072# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38073# DIR into the resulting binary.
38074hardcode_direct=$hardcode_direct_CXX
38075
38076# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38077# DIR into the resulting binary and the resulting library dependency is
38078# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38079# library is relocated.
38080hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38081
38082# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38083# into the resulting binary.
38084hardcode_minus_L=$hardcode_minus_L_CXX
38085
38086# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38087# into the resulting binary.
38088hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38089
38090# Set to "yes" if building a shared library automatically hardcodes DIR
38091# into the library and all subsequent libraries and executables linked
38092# against it.
38093hardcode_automatic=$hardcode_automatic_CXX
38094
38095# Set to yes if linker adds runtime paths of dependent libraries
38096# to runtime path list.
38097inherit_rpath=$inherit_rpath_CXX
38098
38099# Whether libtool must link a program against all its dependency libraries.
38100link_all_deplibs=$link_all_deplibs_CXX
38101
cristy73bd4a52010-10-05 11:24:23 +000038102# Set to "yes" if exported symbols are required.
38103always_export_symbols=$always_export_symbols_CXX
38104
38105# The commands to list exported symbols.
38106export_symbols_cmds=$lt_export_symbols_cmds_CXX
38107
38108# Symbols that should not be listed in the preloaded symbols.
38109exclude_expsyms=$lt_exclude_expsyms_CXX
38110
38111# Symbols that must always be exported.
38112include_expsyms=$lt_include_expsyms_CXX
38113
38114# Commands necessary for linking programs (against libraries) with templates.
38115prelink_cmds=$lt_prelink_cmds_CXX
38116
cristyda16f162011-02-19 23:52:17 +000038117# Commands necessary for finishing linking programs.
38118postlink_cmds=$lt_postlink_cmds_CXX
38119
cristy73bd4a52010-10-05 11:24:23 +000038120# Specify filename containing input files.
38121file_list_spec=$lt_file_list_spec_CXX
38122
38123# How to hardcode a shared library path into an executable.
38124hardcode_action=$hardcode_action_CXX
38125
38126# The directories searched by this compiler when creating a shared library.
38127compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38128
38129# Dependencies to place before and after the objects being linked to
38130# create a shared library.
38131predep_objects=$lt_predep_objects_CXX
38132postdep_objects=$lt_postdep_objects_CXX
38133predeps=$lt_predeps_CXX
38134postdeps=$lt_postdeps_CXX
38135
38136# The library search path used internally by the compiler when linking
38137# a shared library.
38138compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38139
38140# ### END LIBTOOL TAG CONFIG: CXX
38141_LT_EOF
38142
38143 ;;
cristy4c08aed2011-07-01 19:47:50 +000038144 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038145 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038146 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38147 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38148
38149 esac
38150done # for ac_tag
38151
38152
cristy8b350f62009-11-15 23:12:43 +000038153as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038154_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038155ac_clean_files=$ac_clean_files_save
38156
38157test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038158 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038159
38160
38161# configure is writing to config.log, and then calls config.status.
38162# config.status does its own redirection, appending to config.log.
38163# Unfortunately, on DOS this fails, as config.log is still kept open
38164# by configure, so config.status won't be able to write to it; its
38165# output is simply discarded. So we exec the FD to /dev/null,
38166# effectively closing config.log, so it can be properly (re)opened and
38167# appended to by config.status. When coming back to configure, we
38168# need to make the FD available again.
38169if test "$no_create" != yes; then
38170 ac_cs_success=:
38171 ac_config_status_args=
38172 test "$silent" = yes &&
38173 ac_config_status_args="$ac_config_status_args --quiet"
38174 exec 5>/dev/null
38175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38176 exec 5>>config.log
38177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38178 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038179 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038180fi
38181if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038183$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38184fi
38185
38186
38187rm -f magick-version
38188
cristy430a7312010-01-21 20:44:04 +000038189result_dejavu_font_dir='none'
38190if test "${dejavu_font_dir}x" != 'x'; then
38191 result_dejavu_font_dir=$dejavu_font_dir
38192fi
38193
cristy3ed852e2009-09-05 21:47:34 +000038194result_ghostscript_font_dir='none'
38195if test "${ghostscript_font_dir}x" != 'x'; then
38196 result_ghostscript_font_dir=$ghostscript_font_dir
38197fi
38198
38199result_windows_font_dir='none'
38200if test "${windows_font_dir}x" != 'x'; then
38201 result_windows_font_dir=${windows_font_dir}
38202fi
38203
cristy09b53e12011-10-14 12:47:22 +000038204{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038205ImageMagick is configured as follows. Please verify that this configuration
38206matches your expectations.
38207
38208Host system type: $host
38209Build system type: $build
38210
38211 Option Value
38212-------------------------------------------------------------------------------
38213Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38214Static libraries --enable-static=$enable_static $libtool_build_static_libs
38215Module support --with-modules=$with_modules $with_modules
38216GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38217Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38218High Dynamic Range Imagery
38219 --enable-hdri=$enable_hdri $enable_hdri
38220
38221Delegate Configuration:
38222BZLIB --with-bzlib=$with_bzlib $have_bzlib
38223Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038224Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038225DJVU --with-djvu=$with_djvu $have_djvu
38226DPS --with-dps=$with_dps $have_dps
38227FFTW --with-fftw=$with_fftw $have_fftw
38228FlashPIX --with-fpx=$with_fpx $have_fpx
38229FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38230FreeType --with-freetype=$with_freetype $have_freetype
38231GhostPCL None $PCLDelegate ($PCLVersion)
38232GhostXPS None $XPSDelegate ($XPSVersion)
38233Ghostscript None $PSDelegate ($GSVersion)
38234Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38235Ghostscript lib --with-gslib=$with_gslib $have_gslib
38236Graphviz --with-gvc=$with_gvc $have_gvc
38237JBIG --with-jbig=$with_jbig $have_jbig
38238JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38239JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038240LCMS v1 --with-lcms=$with_lcms $have_lcms
38241LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038242LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038243LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038244Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38245OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038246PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038247PERL --with-perl=$with_perl $have_perl
38248PNG --with-png=$with_png $have_png
38249RSVG --with-rsvg=$with_rsvg $have_rsvg
38250TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038251WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038252Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38253WMF --with-wmf=$with_wmf $have_wmf
38254X11 --with-x=$with_x $have_x
38255XML --with-xml=$with_xml $have_xml
38256ZLIB --with-zlib=$with_zlib $have_zlib
38257
38258X11 Configuration:
38259 X_CFLAGS = $X_CFLAGS
38260 X_PRE_LIBS = $X_PRE_LIBS
38261 X_LIBS = $X_LIBS
38262 X_EXTRA_LIBS = $X_EXTRA_LIBS
38263
38264Options used to compile and link:
38265 PREFIX = $PREFIX_DIR
38266 EXEC-PREFIX = $EXEC_PREFIX_DIR
38267 VERSION = $PACKAGE_VERSION
38268 CC = $CC
38269 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038270 CPPFLAGS = $MAGICK_CPPFLAGS
38271 PCFLAGS = $MAGICK_PCFLAGS
38272 DEFS = $DEFS
38273 LDFLAGS = $LDFLAGS
38274 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38275 LIBS = $MAGICK_LIBS
38276 CXX = $CXX
38277 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038278 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038279" >&5
cristy09b53e12011-10-14 12:47:22 +000038280$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038281ImageMagick is configured as follows. Please verify that this configuration
38282matches your expectations.
38283
38284Host system type: $host
38285Build system type: $build
38286
38287 Option Value
38288-------------------------------------------------------------------------------
38289Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38290Static libraries --enable-static=$enable_static $libtool_build_static_libs
38291Module support --with-modules=$with_modules $with_modules
38292GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38293Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38294High Dynamic Range Imagery
38295 --enable-hdri=$enable_hdri $enable_hdri
38296
38297Delegate Configuration:
38298BZLIB --with-bzlib=$with_bzlib $have_bzlib
38299Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038300Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038301DJVU --with-djvu=$with_djvu $have_djvu
38302DPS --with-dps=$with_dps $have_dps
38303FFTW --with-fftw=$with_fftw $have_fftw
38304FlashPIX --with-fpx=$with_fpx $have_fpx
38305FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38306FreeType --with-freetype=$with_freetype $have_freetype
38307GhostPCL None $PCLDelegate ($PCLVersion)
38308GhostXPS None $XPSDelegate ($XPSVersion)
38309Ghostscript None $PSDelegate ($GSVersion)
38310Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38311Ghostscript lib --with-gslib=$with_gslib $have_gslib
38312Graphviz --with-gvc=$with_gvc $have_gvc
38313JBIG --with-jbig=$with_jbig $have_jbig
38314JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38315JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038316LCMS v1 --with-lcms=$with_lcms $have_lcms
38317LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038318LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038319LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038320Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38321OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038322PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038323PERL --with-perl=$with_perl $have_perl
38324PNG --with-png=$with_png $have_png
38325RSVG --with-rsvg=$with_rsvg $have_rsvg
38326TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038327WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038328Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38329WMF --with-wmf=$with_wmf $have_wmf
38330X11 --with-x=$with_x $have_x
38331XML --with-xml=$with_xml $have_xml
38332ZLIB --with-zlib=$with_zlib $have_zlib
38333
38334X11 Configuration:
38335 X_CFLAGS = $X_CFLAGS
38336 X_PRE_LIBS = $X_PRE_LIBS
38337 X_LIBS = $X_LIBS
38338 X_EXTRA_LIBS = $X_EXTRA_LIBS
38339
38340Options used to compile and link:
38341 PREFIX = $PREFIX_DIR
38342 EXEC-PREFIX = $EXEC_PREFIX_DIR
38343 VERSION = $PACKAGE_VERSION
38344 CC = $CC
38345 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038346 CPPFLAGS = $MAGICK_CPPFLAGS
38347 PCFLAGS = $MAGICK_PCFLAGS
38348 DEFS = $DEFS
38349 LDFLAGS = $LDFLAGS
38350 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38351 LIBS = $MAGICK_LIBS
38352 CXX = $CXX
38353 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038354 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038355" >&6;}