blob: cd1bbaf67ae4f29c8f12ea21ade4aa406ef7cb50 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000756PANGOFT2_DELEGATE_FALSE
757PANGOFT2_DELEGATE_TRUE
758PANGO_DELEGATE_FALSE
759PANGO_DELEGATE_TRUE
760PANGO_LIBS
761PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000762OPENEXR_DELEGATE_FALSE
763OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764OPENEXR_LIBS
765OPENEXR_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000766LZMA_LIBS
cristyfbb0ef02010-12-19 02:32:11 +0000767LZMA_DELEGATE_FALSE
768LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000769LQR_DELEGATE_FALSE
770LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771LQR_LIBS
772LQR_CFLAGS
773LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774LCMS_DELEGATE_FALSE
775LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JP2_DELEGATE_FALSE
778JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000779JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000780JPEG_DELEGATE_FALSE
781JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783JBIG_DELEGATE_FALSE
784JBIG_DELEGATE_TRUE
785GVC_DELEGATE_FALSE
786GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787GVC_LIBS
788GVC_CFLAGS
789GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000790GS_DELEGATE_FALSE
791GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000793FREETYPE_DELEGATE_FALSE
794FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000795freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000796FONTCONFIG_DELEGATE_FALSE
797FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FONTCONFIG_LIBS
799FONTCONFIG_CFLAGS
800FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801FPX_DELEGATE_FALSE
802FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804FFTW_DELEGATE_FALSE
805FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807DJVU_DELEGATE_FALSE
808DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810DPS_DELEGATE_FALSE
811DPS_DELEGATE_TRUE
812AUTOTRACE_DELEGATE_FALSE
813AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814AUTOTRACE_LIBS
815AUTOTRACE_CFLAGS
816LIB_DL
817ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818ZLIB_DELEGATE_FALSE
819ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820XEXT_LIBS
821X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822X11_DELEGATE_FALSE
823X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824X_EXTRA_LIBS
825X_LIBS
826X_PRE_LIBS
827X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000828XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000829BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830BZLIB_DELEGATE_FALSE
831BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832CCMALLOCDelegate
833UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834HasUMEM_FALSE
835HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836THREAD_LIBS
837GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838WITH_MAGICK_PLUS_PLUS_FALSE
839WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000841MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000842POW_LIB
843LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000844UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000845UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000848UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000850INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000851INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT32_T
856UINT16_T
857INT16_T
858UINT8_T
859INT8_T
860LIBRARY_EXTRA_CPPFLAGS
861MODULE_EXTRA_CPPFLAGS
862LIBSTDCLDFLAGS
863PERL_MAKE_OPTIONS
864QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000865MAINT
866MAINTAINER_MODE_FALSE
867MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868MAGICK_HDRI
869DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000870WITH_LTDL_FALSE
871WITH_LTDL_TRUE
872WITH_MODULES_FALSE
873WITH_MODULES_TRUE
874WITH_SHARED_LIBS_FALSE
875WITH_SHARED_LIBS_TRUE
876LTDLOPEN
877LT_CONFIG_H
878CONVENIENCE_LTDL_FALSE
879CONVENIENCE_LTDL_TRUE
880INSTALL_LTDL_FALSE
881INSTALL_LTDL_TRUE
882ARGZ_H
883sys_symbol_underscore
884LIBADD_DL
885LT_DLPREOPEN
886LIBADD_DLD_LINK
887LIBADD_SHL_LOAD
888LIBADD_DLOPEN
889LT_DLLOADERS
890INCLTDL
891LTDLINCL
892LTDLDEPS
893LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000894LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000895CXXCPP
896OTOOL64
897OTOOL
898LIPO
899NMEDIT
900DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000901MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000902RANLIB
cristyda16f162011-02-19 23:52:17 +0000903ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000904AR
905NM
906ac_ct_DUMPBIN
907DUMPBIN
908LIBTOOL
909OBJDUMP
910DLLTOOL
911AS
cristy3ed852e2009-09-05 21:47:34 +0000912LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000913CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000914CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000915OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000916PTHREAD_CFLAGS
917PTHREAD_LIBS
918PTHREAD_CC
919ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000920WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000921USING_CL_FALSE
922USING_CL_TRUE
923CYGWIN_BUILD_FALSE
924CYGWIN_BUILD_TRUE
925WIN32_NATIVE_BUILD_FALSE
926WIN32_NATIVE_BUILD_TRUE
927WINGDI32_DELEGATE_FALSE
928WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000930PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000931LN_S
cristy3ed852e2009-09-05 21:47:34 +0000932LD
cristy73bd4a52010-10-05 11:24:23 +0000933FGREP
934SED
935am__fastdepCXX_FALSE
936am__fastdepCXX_TRUE
937CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000938ac_ct_CXX
939CXXFLAGS
940CXX
cristya0b81c32010-01-22 02:54:33 +0000941EGREP
942GREP
943CPP
cristy73bd4a52010-10-05 11:24:23 +0000944am__fastdepCC_FALSE
945am__fastdepCC_TRUE
946CCDEPMODE
947AMDEPBACKSLASH
948AMDEP_FALSE
949AMDEP_TRUE
950am__quote
951am__include
952DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000953OBJEXT
954EXEEXT
955ac_ct_CC
956CPPFLAGS
957LDFLAGS
958CFLAGS
959CC
960DIRSEP
961MAGICK_FILTER_MODULE_PATH
962MAGICK_CONFIGURE_BUILD_PATH
963MAGICK_CONFIGURE_SRC_PATH
964MAGICK_CODER_MODULE_PATH
965MAN_DIR
966INFO_DIR
967PERSISTINCLUDE_DIR
968INCLUDE_DIR
969LIB_DIR
970LOCALSTATE_DIR
971SHAREDSTATE_DIR
972SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000973DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000974DATA_DIR
975LIBEXEC_DIR
976SBIN_DIR
977BIN_DIR
978EXEC_PREFIX_DIR
979PREFIX_DIR
980CONFIG_STATUS_DEPENDENCIES
981MAGICK_LIB_VERSION_NUMBER
982MAGICK_LIB_VERSION_TEXT
983MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000984AM_BACKSLASH
985AM_DEFAULT_VERBOSITY
986am__untar
987am__tar
988AMTAR
989am__leading_dot
990SET_MAKE
991AWK
992mkdir_p
993MKDIR_P
994INSTALL_STRIP_PROGRAM
995STRIP
996install_sh
997MAKEINFO
998AUTOHEADER
999AUTOMAKE
1000AUTOCONF
1001ACLOCAL
1002VERSION
1003PACKAGE
1004CYGPATH_W
1005am__isrc
1006INSTALL_DATA
1007INSTALL_SCRIPT
1008INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001009PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001010PACKAGE_RELEASE_DATE
1011PACKAGE_LIB_VERSION_NUMBER
1012PACKAGE_LIB_VERSION
1013PACKAGE_CHANGE_DATE
1014PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001015PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001016MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001017MAGICK_LIBRARY_VERSION_INFO
1018MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001019MAGICK_LIBRARY_AGE
1020MAGICK_LIBRARY_REVISION
1021MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001022MAGICK_TARGET_OS
1023MAGICK_TARGET_VENDOR
1024MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001025target_os
1026target_vendor
1027target_cpu
1028target
1029host_os
1030host_vendor
1031host_cpu
1032host
1033build_os
1034build_vendor
1035build_cpu
1036build
1037CONFIGURE_ARGS
1038DISTCHECK_CONFIG_FLAGS
1039target_alias
1040host_alias
1041build_alias
1042LIBS
1043ECHO_T
1044ECHO_N
1045ECHO_C
1046DEFS
1047mandir
1048localedir
1049libdir
1050psdir
1051pdfdir
1052dvidir
1053htmldir
1054infodir
1055docdir
1056oldincludedir
1057includedir
1058localstatedir
1059sharedstatedir
1060sysconfdir
1061datadir
1062datarootdir
1063libexecdir
1064sbindir
1065bindir
1066program_transform_name
1067prefix
1068exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001069PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001070PACKAGE_BUGREPORT
1071PACKAGE_STRING
1072PACKAGE_VERSION
1073PACKAGE_TARNAME
1074PACKAGE_NAME
1075PATH_SEPARATOR
1076SHELL'
1077ac_subst_files=''
1078ac_user_opts='
1079enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001080enable_silent_rules
1081enable_dependency_tracking
1082with_gnu_ld
1083with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001084enable_bounds_checking
1085enable_osx_universal_binary
1086with_threads
1087enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001088enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001089enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001090enable_shared
1091enable_static
1092with_pic
1093enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001094with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001095enable_libtool_lock
1096with_included_ltdl
1097with_ltdl_include
1098with_ltdl_lib
1099enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001100with_modules
1101enable_delegate_build
1102enable_deprecated
1103enable_installed
1104enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001105enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001106enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001107enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001108enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001109enable_ccmalloc
1110enable_efence
1111enable_prof
1112enable_gprof
1113enable_gcov
1114with_method_prefix
1115with_quantum_depth
1116with_cache
1117with_frozenpaths
1118with_magick_plus_plus
1119with_perl
1120with_perl_options
1121with_umem
1122with_libstdc
1123with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001124with_x
cristy3ed852e2009-09-05 21:47:34 +00001125with_zlib
1126with_autotrace
1127with_dps
1128with_djvu
cristy430a7312010-01-21 20:44:04 +00001129with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001130with_fftw
1131with_fpx
1132with_fontconfig
1133with_freetype
1134with_gslib
1135with_fontpath
1136with_gs_font_dir
1137with_gvc
1138with_jbig
1139with_jpeg
1140with_jp2
1141with_lcms
cristy71203402010-06-18 13:12:03 +00001142with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001143with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001144with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001145with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001146with_pango
cristy3ed852e2009-09-05 21:47:34 +00001147with_png
1148with_rsvg
1149with_tiff
cristyb1860752011-03-14 00:27:46 +00001150with_webp
cristy3ed852e2009-09-05 21:47:34 +00001151with_windows_font_dir
1152with_wmf
1153with_xml
1154'
1155 ac_precious_vars='build_alias
1156host_alias
1157target_alias
1158CC
1159CFLAGS
1160LDFLAGS
1161LIBS
1162CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001163CPP
cristy3ed852e2009-09-05 21:47:34 +00001164CXX
1165CXXFLAGS
1166CCC
cristy73bd4a52010-10-05 11:24:23 +00001167PKG_CONFIG
1168CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001169XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001170AUTOTRACE_CFLAGS
1171AUTOTRACE_LIBS
1172FONTCONFIG_CFLAGS
1173FONTCONFIG_LIBS
1174GVC_CFLAGS
1175GVC_LIBS
1176LQR_CFLAGS
1177LQR_LIBS
1178OPENEXR_CFLAGS
1179OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001180PANGO_CFLAGS
1181PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001182RSVG_CFLAGS
1183RSVG_LIBS
1184CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001185CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001186
1187
1188# Initialize some variables set by options.
1189ac_init_help=
1190ac_init_version=false
1191ac_unrecognized_opts=
1192ac_unrecognized_sep=
1193# The variables have the same names as the options, with
1194# dashes changed to underlines.
1195cache_file=/dev/null
1196exec_prefix=NONE
1197no_create=
1198no_recursion=
1199prefix=NONE
1200program_prefix=NONE
1201program_suffix=NONE
1202program_transform_name=s,x,x,
1203silent=
1204site=
1205srcdir=
1206verbose=
1207x_includes=NONE
1208x_libraries=NONE
1209
1210# Installation directory options.
1211# These are left unexpanded so users can "make install exec_prefix=/foo"
1212# and all the variables that are supposed to be based on exec_prefix
1213# by default will actually change.
1214# Use braces instead of parens because sh, perl, etc. also accept them.
1215# (The list follows the same order as the GNU Coding Standards.)
1216bindir='${exec_prefix}/bin'
1217sbindir='${exec_prefix}/sbin'
1218libexecdir='${exec_prefix}/libexec'
1219datarootdir='${prefix}/share'
1220datadir='${datarootdir}'
1221sysconfdir='${prefix}/etc'
1222sharedstatedir='${prefix}/com'
1223localstatedir='${prefix}/var'
1224includedir='${prefix}/include'
1225oldincludedir='/usr/include'
1226docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1227infodir='${datarootdir}/info'
1228htmldir='${docdir}'
1229dvidir='${docdir}'
1230pdfdir='${docdir}'
1231psdir='${docdir}'
1232libdir='${exec_prefix}/lib'
1233localedir='${datarootdir}/locale'
1234mandir='${datarootdir}/man'
1235
1236ac_prev=
1237ac_dashdash=
1238for ac_option
1239do
1240 # If the previous option needs an argument, assign it.
1241 if test -n "$ac_prev"; then
1242 eval $ac_prev=\$ac_option
1243 ac_prev=
1244 continue
1245 fi
1246
1247 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001248 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1249 *=) ac_optarg= ;;
1250 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001251 esac
1252
1253 # Accept the important Cygnus configure options, so we can diagnose typos.
1254
1255 case $ac_dashdash$ac_option in
1256 --)
1257 ac_dashdash=yes ;;
1258
1259 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1260 ac_prev=bindir ;;
1261 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1262 bindir=$ac_optarg ;;
1263
1264 -build | --build | --buil | --bui | --bu)
1265 ac_prev=build_alias ;;
1266 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1267 build_alias=$ac_optarg ;;
1268
1269 -cache-file | --cache-file | --cache-fil | --cache-fi \
1270 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1271 ac_prev=cache_file ;;
1272 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1273 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1274 cache_file=$ac_optarg ;;
1275
1276 --config-cache | -C)
1277 cache_file=config.cache ;;
1278
1279 -datadir | --datadir | --datadi | --datad)
1280 ac_prev=datadir ;;
1281 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1282 datadir=$ac_optarg ;;
1283
1284 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1285 | --dataroo | --dataro | --datar)
1286 ac_prev=datarootdir ;;
1287 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1288 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1289 datarootdir=$ac_optarg ;;
1290
1291 -disable-* | --disable-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001295 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300"enable_$ac_useropt"
1301"*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval enable_$ac_useropt=no ;;
1306
1307 -docdir | --docdir | --docdi | --doc | --do)
1308 ac_prev=docdir ;;
1309 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1310 docdir=$ac_optarg ;;
1311
1312 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1313 ac_prev=dvidir ;;
1314 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1315 dvidir=$ac_optarg ;;
1316
1317 -enable-* | --enable-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001321 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1325 *"
1326"enable_$ac_useropt"
1327"*) ;;
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1330 esac
1331 eval enable_$ac_useropt=\$ac_optarg ;;
1332
1333 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1334 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1335 | --exec | --exe | --ex)
1336 ac_prev=exec_prefix ;;
1337 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1338 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1339 | --exec=* | --exe=* | --ex=*)
1340 exec_prefix=$ac_optarg ;;
1341
1342 -gas | --gas | --ga | --g)
1343 # Obsolete; use --with-gas.
1344 with_gas=yes ;;
1345
1346 -help | --help | --hel | --he | -h)
1347 ac_init_help=long ;;
1348 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1349 ac_init_help=recursive ;;
1350 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1351 ac_init_help=short ;;
1352
1353 -host | --host | --hos | --ho)
1354 ac_prev=host_alias ;;
1355 -host=* | --host=* | --hos=* | --ho=*)
1356 host_alias=$ac_optarg ;;
1357
1358 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1359 ac_prev=htmldir ;;
1360 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1361 | --ht=*)
1362 htmldir=$ac_optarg ;;
1363
1364 -includedir | --includedir | --includedi | --included | --include \
1365 | --includ | --inclu | --incl | --inc)
1366 ac_prev=includedir ;;
1367 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1368 | --includ=* | --inclu=* | --incl=* | --inc=*)
1369 includedir=$ac_optarg ;;
1370
1371 -infodir | --infodir | --infodi | --infod | --info | --inf)
1372 ac_prev=infodir ;;
1373 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1374 infodir=$ac_optarg ;;
1375
1376 -libdir | --libdir | --libdi | --libd)
1377 ac_prev=libdir ;;
1378 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1379 libdir=$ac_optarg ;;
1380
1381 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1382 | --libexe | --libex | --libe)
1383 ac_prev=libexecdir ;;
1384 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1385 | --libexe=* | --libex=* | --libe=*)
1386 libexecdir=$ac_optarg ;;
1387
1388 -localedir | --localedir | --localedi | --localed | --locale)
1389 ac_prev=localedir ;;
1390 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1391 localedir=$ac_optarg ;;
1392
1393 -localstatedir | --localstatedir | --localstatedi | --localstated \
1394 | --localstate | --localstat | --localsta | --localst | --locals)
1395 ac_prev=localstatedir ;;
1396 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1397 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1398 localstatedir=$ac_optarg ;;
1399
1400 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1401 ac_prev=mandir ;;
1402 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1403 mandir=$ac_optarg ;;
1404
1405 -nfp | --nfp | --nf)
1406 # Obsolete; use --without-fp.
1407 with_fp=no ;;
1408
1409 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1410 | --no-cr | --no-c | -n)
1411 no_create=yes ;;
1412
1413 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1414 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1415 no_recursion=yes ;;
1416
1417 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1418 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1419 | --oldin | --oldi | --old | --ol | --o)
1420 ac_prev=oldincludedir ;;
1421 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1422 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1423 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1424 oldincludedir=$ac_optarg ;;
1425
1426 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1427 ac_prev=prefix ;;
1428 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1429 prefix=$ac_optarg ;;
1430
1431 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1432 | --program-pre | --program-pr | --program-p)
1433 ac_prev=program_prefix ;;
1434 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1435 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1436 program_prefix=$ac_optarg ;;
1437
1438 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1439 | --program-suf | --program-su | --program-s)
1440 ac_prev=program_suffix ;;
1441 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1442 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1443 program_suffix=$ac_optarg ;;
1444
1445 -program-transform-name | --program-transform-name \
1446 | --program-transform-nam | --program-transform-na \
1447 | --program-transform-n | --program-transform- \
1448 | --program-transform | --program-transfor \
1449 | --program-transfo | --program-transf \
1450 | --program-trans | --program-tran \
1451 | --progr-tra | --program-tr | --program-t)
1452 ac_prev=program_transform_name ;;
1453 -program-transform-name=* | --program-transform-name=* \
1454 | --program-transform-nam=* | --program-transform-na=* \
1455 | --program-transform-n=* | --program-transform-=* \
1456 | --program-transform=* | --program-transfor=* \
1457 | --program-transfo=* | --program-transf=* \
1458 | --program-trans=* | --program-tran=* \
1459 | --progr-tra=* | --program-tr=* | --program-t=*)
1460 program_transform_name=$ac_optarg ;;
1461
1462 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1463 ac_prev=pdfdir ;;
1464 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1465 pdfdir=$ac_optarg ;;
1466
1467 -psdir | --psdir | --psdi | --psd | --ps)
1468 ac_prev=psdir ;;
1469 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1470 psdir=$ac_optarg ;;
1471
1472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1473 | -silent | --silent | --silen | --sile | --sil)
1474 silent=yes ;;
1475
1476 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1477 ac_prev=sbindir ;;
1478 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1479 | --sbi=* | --sb=*)
1480 sbindir=$ac_optarg ;;
1481
1482 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1483 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1484 | --sharedst | --shareds | --shared | --share | --shar \
1485 | --sha | --sh)
1486 ac_prev=sharedstatedir ;;
1487 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1488 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1489 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1490 | --sha=* | --sh=*)
1491 sharedstatedir=$ac_optarg ;;
1492
1493 -site | --site | --sit)
1494 ac_prev=site ;;
1495 -site=* | --site=* | --sit=*)
1496 site=$ac_optarg ;;
1497
1498 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1499 ac_prev=srcdir ;;
1500 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1501 srcdir=$ac_optarg ;;
1502
1503 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1504 | --syscon | --sysco | --sysc | --sys | --sy)
1505 ac_prev=sysconfdir ;;
1506 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1507 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1508 sysconfdir=$ac_optarg ;;
1509
1510 -target | --target | --targe | --targ | --tar | --ta | --t)
1511 ac_prev=target_alias ;;
1512 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1513 target_alias=$ac_optarg ;;
1514
1515 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1516 verbose=yes ;;
1517
1518 -version | --version | --versio | --versi | --vers | -V)
1519 ac_init_version=: ;;
1520
1521 -with-* | --with-*)
1522 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1523 # Reject names that are not valid shell variable names.
1524 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001525 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001526 ac_useropt_orig=$ac_useropt
1527 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1528 case $ac_user_opts in
1529 *"
1530"with_$ac_useropt"
1531"*) ;;
1532 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1533 ac_unrecognized_sep=', ';;
1534 esac
1535 eval with_$ac_useropt=\$ac_optarg ;;
1536
1537 -without-* | --without-*)
1538 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1539 # Reject names that are not valid shell variable names.
1540 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001541 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001542 ac_useropt_orig=$ac_useropt
1543 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1544 case $ac_user_opts in
1545 *"
1546"with_$ac_useropt"
1547"*) ;;
1548 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1549 ac_unrecognized_sep=', ';;
1550 esac
1551 eval with_$ac_useropt=no ;;
1552
1553 --x)
1554 # Obsolete; use --with-x.
1555 with_x=yes ;;
1556
1557 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1558 | --x-incl | --x-inc | --x-in | --x-i)
1559 ac_prev=x_includes ;;
1560 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1561 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1562 x_includes=$ac_optarg ;;
1563
1564 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1565 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1566 ac_prev=x_libraries ;;
1567 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1568 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1569 x_libraries=$ac_optarg ;;
1570
cristy98dddb52010-11-04 00:30:15 +00001571 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1572Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001573 ;;
1574
1575 *=*)
1576 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1577 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001578 case $ac_envvar in #(
1579 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001580 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001581 esac
cristy3ed852e2009-09-05 21:47:34 +00001582 eval $ac_envvar=\$ac_optarg
1583 export $ac_envvar ;;
1584
1585 *)
1586 # FIXME: should be removed in autoconf 3.0.
1587 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1588 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1589 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001590 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001591 ;;
1592
1593 esac
1594done
1595
1596if test -n "$ac_prev"; then
1597 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001598 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001599fi
1600
1601if test -n "$ac_unrecognized_opts"; then
1602 case $enable_option_checking in
1603 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001604 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001605 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1606 esac
1607fi
1608
1609# Check all directory arguments for consistency.
1610for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1611 datadir sysconfdir sharedstatedir localstatedir includedir \
1612 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1613 libdir localedir mandir
1614do
1615 eval ac_val=\$$ac_var
1616 # Remove trailing slashes.
1617 case $ac_val in
1618 */ )
1619 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1620 eval $ac_var=\$ac_val;;
1621 esac
1622 # Be sure to have absolute directory names.
1623 case $ac_val in
1624 [\\/$]* | ?:[\\/]* ) continue;;
1625 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1626 esac
cristy98dddb52010-11-04 00:30:15 +00001627 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001628done
1629
1630# There might be people who depend on the old broken behavior: `$host'
1631# used to hold the argument of --host etc.
1632# FIXME: To remove some day.
1633build=$build_alias
1634host=$host_alias
1635target=$target_alias
1636
1637# FIXME: To remove some day.
1638if test "x$host_alias" != x; then
1639 if test "x$build_alias" = x; then
1640 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001641 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1642 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001643 elif test "x$build_alias" != "x$host_alias"; then
1644 cross_compiling=yes
1645 fi
1646fi
1647
1648ac_tool_prefix=
1649test -n "$host_alias" && ac_tool_prefix=$host_alias-
1650
1651test "$silent" = yes && exec 6>/dev/null
1652
1653
1654ac_pwd=`pwd` && test -n "$ac_pwd" &&
1655ac_ls_di=`ls -di .` &&
1656ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001657 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001658test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001659 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001660
1661
1662# Find the source files, if location was not specified.
1663if test -z "$srcdir"; then
1664 ac_srcdir_defaulted=yes
1665 # Try the directory containing this script, then the parent directory.
1666 ac_confdir=`$as_dirname -- "$as_myself" ||
1667$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1668 X"$as_myself" : 'X\(//\)[^/]' \| \
1669 X"$as_myself" : 'X\(//\)$' \| \
1670 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1671$as_echo X"$as_myself" |
1672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1673 s//\1/
1674 q
1675 }
1676 /^X\(\/\/\)[^/].*/{
1677 s//\1/
1678 q
1679 }
1680 /^X\(\/\/\)$/{
1681 s//\1/
1682 q
1683 }
1684 /^X\(\/\).*/{
1685 s//\1/
1686 q
1687 }
1688 s/.*/./; q'`
1689 srcdir=$ac_confdir
1690 if test ! -r "$srcdir/$ac_unique_file"; then
1691 srcdir=..
1692 fi
1693else
1694 ac_srcdir_defaulted=no
1695fi
1696if test ! -r "$srcdir/$ac_unique_file"; then
1697 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001698 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001699fi
1700ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1701ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001702 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001703 pwd)`
1704# When building in place, set srcdir=.
1705if test "$ac_abs_confdir" = "$ac_pwd"; then
1706 srcdir=.
1707fi
1708# Remove unnecessary trailing slashes from srcdir.
1709# Double slashes in file names in object file debugging info
1710# mess up M-x gdb in Emacs.
1711case $srcdir in
1712*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1713esac
1714for ac_var in $ac_precious_vars; do
1715 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1716 eval ac_env_${ac_var}_value=\$${ac_var}
1717 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1718 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1719done
1720
1721#
1722# Report the --help message.
1723#
1724if test "$ac_init_help" = "long"; then
1725 # Omit some internal or obsolete options to make the list less imposing.
1726 # This message is too long to be a string in the A/UX 3.1 sh.
1727 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001728\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001729
1730Usage: $0 [OPTION]... [VAR=VALUE]...
1731
1732To assign environment variables (e.g., CC, CFLAGS...), specify them as
1733VAR=VALUE. See below for descriptions of some of the useful variables.
1734
1735Defaults for the options are specified in brackets.
1736
1737Configuration:
1738 -h, --help display this help and exit
1739 --help=short display options specific to this package
1740 --help=recursive display the short help of all the included packages
1741 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001742 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001743 --cache-file=FILE cache test results in FILE [disabled]
1744 -C, --config-cache alias for \`--cache-file=config.cache'
1745 -n, --no-create do not create output files
1746 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1747
1748Installation directories:
1749 --prefix=PREFIX install architecture-independent files in PREFIX
1750 [$ac_default_prefix]
1751 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1752 [PREFIX]
1753
1754By default, \`make install' will install all the files in
1755\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1756an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1757for instance \`--prefix=\$HOME'.
1758
1759For better control, use the options below.
1760
1761Fine tuning of the installation directories:
1762 --bindir=DIR user executables [EPREFIX/bin]
1763 --sbindir=DIR system admin executables [EPREFIX/sbin]
1764 --libexecdir=DIR program executables [EPREFIX/libexec]
1765 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1766 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1767 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1768 --libdir=DIR object code libraries [EPREFIX/lib]
1769 --includedir=DIR C header files [PREFIX/include]
1770 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1771 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1772 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1773 --infodir=DIR info documentation [DATAROOTDIR/info]
1774 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1775 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001776 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001777 --htmldir=DIR html documentation [DOCDIR]
1778 --dvidir=DIR dvi documentation [DOCDIR]
1779 --pdfdir=DIR pdf documentation [DOCDIR]
1780 --psdir=DIR ps documentation [DOCDIR]
1781_ACEOF
1782
1783 cat <<\_ACEOF
1784
cristy73bd4a52010-10-05 11:24:23 +00001785Program names:
1786 --program-prefix=PREFIX prepend PREFIX to installed program names
1787 --program-suffix=SUFFIX append SUFFIX to installed program names
1788 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1789
cristy3ed852e2009-09-05 21:47:34 +00001790X features:
1791 --x-includes=DIR X include files are in DIR
1792 --x-libraries=DIR X library files are in DIR
1793
1794System types:
1795 --build=BUILD configure for building on BUILD [guessed]
1796 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1797 --target=TARGET configure for building compilers for TARGET [HOST]
1798_ACEOF
1799fi
1800
1801if test -n "$ac_init_help"; then
1802 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001803 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001804 esac
1805 cat <<\_ACEOF
1806
1807Optional Features:
1808 --disable-option-checking ignore unrecognized --enable/--with options
1809 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1810 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001811 --enable-silent-rules less verbose build output (undo: `make V=1')
1812 --disable-silent-rules verbose build output (undo: `make V=0')
1813 --disable-dependency-tracking speeds up one-time build
1814 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001815 --bounds-checking enable run-time bounds-checking
1816 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001817 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001818 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001819 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001820 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001821 --enable-shared[=PKGS] build shared libraries [default=yes]
1822 --enable-static[=PKGS] build static libraries [default=yes]
1823 --enable-fast-install[=PKGS]
1824 optimize for fast installation [default=yes]
1825 --disable-libtool-lock avoid locking (might break parallel builds)
1826 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001827 --enable-delegate-build look for delegate libraries in build directory
1828 --disable-deprecated exclude deprecated methods in MagickCore and
1829 MagickWand API's
1830 --disable-installed Formally install ImageMagick under PREFIX
1831 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001832 --enable-zero-configuration
1833 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001834 zero-configuration ImageMagick
1835 --enable-hdri accurately represent the wide range of intensity
1836 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001837 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001838 --enable-maintainer-mode enable make rules and dependencies not useful
1839 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001840 --enable-ccmalloc enable 'ccmalloc' memory debug support
1841 --enable-efence enable 'efence' memory debug support
1842 --enable-prof enable 'prof' profiling support
1843 --enable-gprof enable 'gprof' profiling support
1844 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001845 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001846
1847Optional Packages:
1848 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1849 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001850 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1851 --with-dmalloc use dmalloc, as in
1852 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001853 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001854 --with-pic try to use only PIC/non-PIC objects [default=use
1855 both]
cristyda16f162011-02-19 23:52:17 +00001856 --with-sysroot=DIR Search for dependent libraries within DIR
1857 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001858 --with-included-ltdl use the GNU ltdl sources included here
1859 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1860 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001861 --with-modules enable building dynamically loadable modules
1862 --with-method-prefix=PREFIX
1863 prefix MagickCore API methods
1864 --with-quantum-depth=DEPTH
1865 number of bits in a pixel quantum (default 16)
1866 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1867 memory)
1868 --with-frozenpaths freeze delegate paths
1869 --without-magick-plus-plus
1870 disable build/install of Magick++
1871 --with-perl enable build/install of PerlMagick
1872 --with-perl-options=OPTIONS
1873 options to pass on command-line when generating
1874 PerlMagick's build file
1875 --with-umem enable umem memory allocation library support
1876 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1877 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001878 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001879 --without-zlib disable ZLIB support
1880 --with-autotrace enable autotrace support
1881 --without-dps disable Display Postscript support
1882 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001883 --with-dejavu-font-dir=DIR
1884 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001885 --without-fftw disable FFTW support
1886 --without-fpx disable FlashPIX support
1887 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001888 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001889 --without-gslib enable Ghostscript library support
1890 --with-fontpath=DIR prepend to default font search path
1891 --with-gs-font-dir=DIR Ghostscript font directory
1892 --without-gvc disable GVC support
1893 --without-jbig disable JBIG support
1894 --without-jpeg disable JPEG support
1895 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001896 --without-lcms disable lcms (v1.1X) support
1897 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001898 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001899 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001900 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001901 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001902 --without-png disable PNG support
1903 --without-rsvg disable RSVG support
1904 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001905 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001906 --with-windows-font-dir=DIR
1907 directory containing MS-Windows fonts
1908 --without-wmf disable WMF support
1909 --without-xml disable XML support
1910
1911Some influential environment variables:
1912 CC C compiler command
1913 CFLAGS C compiler flags
1914 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1915 nonstandard directory <lib dir>
1916 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001917 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001918 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001919 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001920 CXX C++ compiler command
1921 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001922 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001923 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001924 XMKMF Path to xmkmf, Makefile generator for X Window System
1925 AUTOTRACE_CFLAGS
1926 C compiler flags for AUTOTRACE, overriding pkg-config
1927 AUTOTRACE_LIBS
1928 linker flags for AUTOTRACE, overriding pkg-config
1929 FONTCONFIG_CFLAGS
1930 C compiler flags for FONTCONFIG, overriding pkg-config
1931 FONTCONFIG_LIBS
1932 linker flags for FONTCONFIG, overriding pkg-config
1933 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1934 GVC_LIBS linker flags for GVC, overriding pkg-config
1935 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1936 LQR_LIBS linker flags for LQR, overriding pkg-config
1937 OPENEXR_CFLAGS
1938 C compiler flags for OPENEXR, overriding pkg-config
1939 OPENEXR_LIBS
1940 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001941 PANGO_CFLAGS
1942 C compiler flags for PANGO, overriding pkg-config
1943 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001944 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1945 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1946 CAIRO_SVG_CFLAGS
1947 C compiler flags for CAIRO_SVG, overriding pkg-config
1948 CAIRO_SVG_LIBS
1949 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001950
1951Use these variables to override the choices made by `configure' or to help
1952it to find libraries and programs with nonstandard names/locations.
1953
1954Report bugs to <http://www.imagemagick.org>.
1955_ACEOF
1956ac_status=$?
1957fi
1958
1959if test "$ac_init_help" = "recursive"; then
1960 # If there are subdirs, report their specific --help.
1961 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1962 test -d "$ac_dir" ||
1963 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1964 continue
1965 ac_builddir=.
1966
1967case "$ac_dir" in
1968.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1969*)
1970 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1971 # A ".." for each directory in $ac_dir_suffix.
1972 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1973 case $ac_top_builddir_sub in
1974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1976 esac ;;
1977esac
1978ac_abs_top_builddir=$ac_pwd
1979ac_abs_builddir=$ac_pwd$ac_dir_suffix
1980# for backward compatibility:
1981ac_top_builddir=$ac_top_build_prefix
1982
1983case $srcdir in
1984 .) # We are building in place.
1985 ac_srcdir=.
1986 ac_top_srcdir=$ac_top_builddir_sub
1987 ac_abs_top_srcdir=$ac_pwd ;;
1988 [\\/]* | ?:[\\/]* ) # Absolute name.
1989 ac_srcdir=$srcdir$ac_dir_suffix;
1990 ac_top_srcdir=$srcdir
1991 ac_abs_top_srcdir=$srcdir ;;
1992 *) # Relative name.
1993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1994 ac_top_srcdir=$ac_top_build_prefix$srcdir
1995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1996esac
1997ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1998
1999 cd "$ac_dir" || { ac_status=$?; continue; }
2000 # Check for guested configure.
2001 if test -f "$ac_srcdir/configure.gnu"; then
2002 echo &&
2003 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2004 elif test -f "$ac_srcdir/configure"; then
2005 echo &&
2006 $SHELL "$ac_srcdir/configure" --help=recursive
2007 else
2008 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2009 fi || ac_status=$?
2010 cd "$ac_pwd" || { ac_status=$?; break; }
2011 done
2012fi
2013
2014test -n "$ac_init_help" && exit $ac_status
2015if $ac_init_version; then
2016 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002017ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002018generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002019
cristy98dddb52010-11-04 00:30:15 +00002020Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002021This configure script is free software; the Free Software Foundation
2022gives unlimited permission to copy, distribute and modify it.
2023_ACEOF
2024 exit
2025fi
cristy8b350f62009-11-15 23:12:43 +00002026
2027## ------------------------ ##
2028## Autoconf initialization. ##
2029## ------------------------ ##
2030
2031# ac_fn_c_try_compile LINENO
2032# --------------------------
2033# Try to compile conftest.$ac_ext, and return whether this succeeded.
2034ac_fn_c_try_compile ()
2035{
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext
2038 if { { ac_try="$ac_compile"
2039case "(($ac_try" in
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2042esac
2043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044$as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_compile") 2>conftest.err
2046 ac_status=$?
2047 if test -s conftest.err; then
2048 grep -v '^ *+' conftest.err >conftest.er1
2049 cat conftest.er1 >&5
2050 mv -f conftest.er1 conftest.err
2051 fi
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_c_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest.$ac_objext; then :
2057 ac_retval=0
2058else
2059 $as_echo "$as_me: failed program was:" >&5
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 ac_retval=1
2063fi
cristyda16f162011-02-19 23:52:17 +00002064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002065 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002066
2067} # ac_fn_c_try_compile
2068
cristy95646052009-11-28 23:05:30 +00002069# ac_fn_c_try_cpp LINENO
2070# ----------------------
2071# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2072ac_fn_c_try_cpp ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if { { ac_try="$ac_cpp conftest.$ac_ext"
2076case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079esac
2080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081$as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2083 ac_status=$?
2084 if test -s conftest.err; then
2085 grep -v '^ *+' conftest.err >conftest.er1
2086 cat conftest.er1 >&5
2087 mv -f conftest.er1 conftest.err
2088 fi
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002090 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2092 test ! -s conftest.err
2093 }; then :
2094 ac_retval=0
2095else
2096 $as_echo "$as_me: failed program was:" >&5
2097sed 's/^/| /' conftest.$ac_ext >&5
2098
2099 ac_retval=1
2100fi
cristyda16f162011-02-19 23:52:17 +00002101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002102 as_fn_set_status $ac_retval
2103
2104} # ac_fn_c_try_cpp
2105
cristy8b350f62009-11-15 23:12:43 +00002106# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2107# -------------------------------------------------------
2108# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2109# the include files in INCLUDES and setting the cache variable VAR
2110# accordingly.
2111ac_fn_c_check_header_mongrel ()
2112{
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002114 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002117if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002118 $as_echo_n "(cached) " >&6
2119fi
2120eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123else
2124 # Is the header compilable?
2125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2126$as_echo_n "checking $2 usability... " >&6; }
2127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130#include <$2>
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_header_compiler=yes
2134else
2135 ac_header_compiler=no
2136fi
2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2139$as_echo "$ac_header_compiler" >&6; }
2140
2141# Is the header present?
2142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2143$as_echo_n "checking $2 presence... " >&6; }
2144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h. */
2146#include <$2>
2147_ACEOF
2148if ac_fn_c_try_cpp "$LINENO"; then :
2149 ac_header_preproc=yes
2150else
2151 ac_header_preproc=no
2152fi
cristyda16f162011-02-19 23:52:17 +00002153rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2155$as_echo "$ac_header_preproc" >&6; }
2156
2157# So? What about this header?
2158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2159 yes:no: )
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2161$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164 ;;
2165 no:yes:* )
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2167$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2169$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2171$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2173$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002176( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002177## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002178## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002179 ) | sed "s/^/$as_me: WARNING: /" >&2
2180 ;;
2181esac
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002184if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002185 $as_echo_n "(cached) " >&6
2186else
2187 eval "$3=\$ac_header_compiler"
2188fi
2189eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191$as_echo "$ac_res" >&6; }
2192fi
cristyda16f162011-02-19 23:52:17 +00002193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002194
2195} # ac_fn_c_check_header_mongrel
2196
2197# ac_fn_c_try_run LINENO
2198# ----------------------
2199# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2200# that executables *can* be run.
2201ac_fn_c_try_run ()
2202{
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 if { { ac_try="$ac_link"
2205case "(($ac_try" in
2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207 *) ac_try_echo=$ac_try;;
2208esac
2209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2210$as_echo "$ac_try_echo"; } >&5
2211 (eval "$ac_link") 2>&5
2212 ac_status=$?
2213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2214 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2215 { { case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218esac
2219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220$as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_try") 2>&5
2222 ac_status=$?
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; }; }; then :
2225 ac_retval=0
2226else
2227 $as_echo "$as_me: program exited with status $ac_status" >&5
2228 $as_echo "$as_me: failed program was:" >&5
2229sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 ac_retval=$ac_status
2232fi
2233 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002235 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002236
2237} # ac_fn_c_try_run
2238
2239# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2240# -------------------------------------------------------
2241# Tests whether HEADER exists and can be compiled using the include files in
2242# INCLUDES, setting the cache variable VAR accordingly.
2243ac_fn_c_check_header_compile ()
2244{
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002248if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002249 $as_echo_n "(cached) " >&6
2250else
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h. */
2253$4
2254#include <$2>
2255_ACEOF
2256if ac_fn_c_try_compile "$LINENO"; then :
2257 eval "$3=yes"
2258else
2259 eval "$3=no"
2260fi
2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262fi
2263eval ac_res=\$$3
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002267
2268} # ac_fn_c_check_header_compile
2269
cristya0b81c32010-01-22 02:54:33 +00002270# ac_fn_cxx_try_compile LINENO
2271# ----------------------------
2272# Try to compile conftest.$ac_ext, and return whether this succeeded.
2273ac_fn_cxx_try_compile ()
2274{
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 rm -f conftest.$ac_objext
2277 if { { ac_try="$ac_compile"
2278case "(($ac_try" in
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2281esac
2282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2283$as_echo "$ac_try_echo"; } >&5
2284 (eval "$ac_compile") 2>conftest.err
2285 ac_status=$?
2286 if test -s conftest.err; then
2287 grep -v '^ *+' conftest.err >conftest.er1
2288 cat conftest.er1 >&5
2289 mv -f conftest.er1 conftest.err
2290 fi
2291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2292 test $ac_status = 0; } && {
2293 test -z "$ac_cxx_werror_flag" ||
2294 test ! -s conftest.err
2295 } && test -s conftest.$ac_objext; then :
2296 ac_retval=0
2297else
2298 $as_echo "$as_me: failed program was:" >&5
2299sed 's/^/| /' conftest.$ac_ext >&5
2300
2301 ac_retval=1
2302fi
cristyda16f162011-02-19 23:52:17 +00002303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002304 as_fn_set_status $ac_retval
2305
2306} # ac_fn_cxx_try_compile
2307
cristy8b350f62009-11-15 23:12:43 +00002308# ac_fn_c_try_link LINENO
2309# -----------------------
2310# Try to link conftest.$ac_ext, and return whether this succeeded.
2311ac_fn_c_try_link ()
2312{
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 rm -f conftest.$ac_objext conftest$ac_exeext
2315 if { { ac_try="$ac_link"
2316case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319esac
2320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321$as_echo "$ac_try_echo"; } >&5
2322 (eval "$ac_link") 2>conftest.err
2323 ac_status=$?
2324 if test -s conftest.err; then
2325 grep -v '^ *+' conftest.err >conftest.er1
2326 cat conftest.er1 >&5
2327 mv -f conftest.er1 conftest.err
2328 fi
2329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2330 test $ac_status = 0; } && {
2331 test -z "$ac_c_werror_flag" ||
2332 test ! -s conftest.err
2333 } && test -s conftest$ac_exeext && {
2334 test "$cross_compiling" = yes ||
2335 $as_test_x conftest$ac_exeext
2336 }; then :
2337 ac_retval=0
2338else
2339 $as_echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 ac_retval=1
2343fi
2344 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2345 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2346 # interfere with the next link command; also delete a directory that is
2347 # left behind by Apple's compiler. We do this before executing the actions.
2348 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002350 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002351
2352} # ac_fn_c_try_link
2353
cristy73bd4a52010-10-05 11:24:23 +00002354# ac_fn_c_check_func LINENO FUNC VAR
2355# ----------------------------------
2356# Tests whether FUNC exists, setting the cache variable VAR accordingly
2357ac_fn_c_check_func ()
2358{
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2361$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002362if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002363 $as_echo_n "(cached) " >&6
2364else
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366/* end confdefs.h. */
2367/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2369#define $2 innocuous_$2
2370
2371/* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char $2 (); below.
2373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2374 <limits.h> exists even on freestanding compilers. */
2375
2376#ifdef __STDC__
2377# include <limits.h>
2378#else
2379# include <assert.h>
2380#endif
2381
2382#undef $2
2383
2384/* Override any GCC internal prototype to avoid an error.
2385 Use char because int might match the return type of a GCC
2386 builtin and then its argument prototype would still apply. */
2387#ifdef __cplusplus
2388extern "C"
2389#endif
2390char $2 ();
2391/* The GNU C library defines this for functions which it implements
2392 to always fail with ENOSYS. Some functions are actually named
2393 something starting with __ and the normal name is an alias. */
2394#if defined __stub_$2 || defined __stub___$2
2395choke me
2396#endif
2397
2398int
2399main ()
2400{
2401return $2 ();
2402 ;
2403 return 0;
2404}
2405_ACEOF
2406if ac_fn_c_try_link "$LINENO"; then :
2407 eval "$3=yes"
2408else
2409 eval "$3=no"
2410fi
2411rm -f core conftest.err conftest.$ac_objext \
2412 conftest$ac_exeext conftest.$ac_ext
2413fi
2414eval ac_res=\$$3
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002417 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002418
2419} # ac_fn_c_check_func
2420
2421# ac_fn_cxx_try_cpp LINENO
2422# ------------------------
2423# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2424ac_fn_cxx_try_cpp ()
2425{
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 if { { ac_try="$ac_cpp conftest.$ac_ext"
2428case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431esac
2432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2433$as_echo "$ac_try_echo"; } >&5
2434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2435 ac_status=$?
2436 if test -s conftest.err; then
2437 grep -v '^ *+' conftest.err >conftest.er1
2438 cat conftest.er1 >&5
2439 mv -f conftest.er1 conftest.err
2440 fi
2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002442 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002443 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2444 test ! -s conftest.err
2445 }; then :
2446 ac_retval=0
2447else
2448 $as_echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 ac_retval=1
2452fi
cristyda16f162011-02-19 23:52:17 +00002453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002454 as_fn_set_status $ac_retval
2455
2456} # ac_fn_cxx_try_cpp
2457
2458# ac_fn_cxx_try_link LINENO
2459# -------------------------
2460# Try to link conftest.$ac_ext, and return whether this succeeded.
2461ac_fn_cxx_try_link ()
2462{
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 rm -f conftest.$ac_objext conftest$ac_exeext
2465 if { { ac_try="$ac_link"
2466case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471$as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_link") 2>conftest.err
2473 ac_status=$?
2474 if test -s conftest.err; then
2475 grep -v '^ *+' conftest.err >conftest.er1
2476 cat conftest.er1 >&5
2477 mv -f conftest.er1 conftest.err
2478 fi
2479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480 test $ac_status = 0; } && {
2481 test -z "$ac_cxx_werror_flag" ||
2482 test ! -s conftest.err
2483 } && test -s conftest$ac_exeext && {
2484 test "$cross_compiling" = yes ||
2485 $as_test_x conftest$ac_exeext
2486 }; then :
2487 ac_retval=0
2488else
2489 $as_echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 ac_retval=1
2493fi
2494 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2495 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2496 # interfere with the next link command; also delete a directory that is
2497 # left behind by Apple's compiler. We do this before executing the actions.
2498 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002500 as_fn_set_status $ac_retval
2501
2502} # ac_fn_cxx_try_link
2503
cristy98dddb52010-11-04 00:30:15 +00002504# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2505# ---------------------------------------------
2506# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2507# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002508ac_fn_c_check_decl ()
2509{
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002511 as_decl_name=`echo $2|sed 's/ *(.*//'`
2512 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2514$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002515if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002516 $as_echo_n "(cached) " >&6
2517else
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519/* end confdefs.h. */
2520$4
2521int
2522main ()
2523{
cristy98dddb52010-11-04 00:30:15 +00002524#ifndef $as_decl_name
2525#ifdef __cplusplus
2526 (void) $as_decl_use;
2527#else
2528 (void) $as_decl_name;
2529#endif
cristy73bd4a52010-10-05 11:24:23 +00002530#endif
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_compile "$LINENO"; then :
2537 eval "$3=yes"
2538else
2539 eval "$3=no"
2540fi
2541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542fi
2543eval ac_res=\$$3
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002547
2548} # ac_fn_c_check_decl
2549
cristy8b350f62009-11-15 23:12:43 +00002550# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2551# -------------------------------------------
2552# Tests whether TYPE exists after having included INCLUDES, setting cache
2553# variable VAR accordingly.
2554ac_fn_c_check_type ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002559if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002560 $as_echo_n "(cached) " >&6
2561else
2562 eval "$3=no"
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564/* end confdefs.h. */
2565$4
2566int
2567main ()
2568{
2569if (sizeof ($2))
2570 return 0;
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"; then :
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577/* end confdefs.h. */
2578$4
2579int
2580main ()
2581{
2582if (sizeof (($2)))
2583 return 0;
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589
2590else
2591 eval "$3=yes"
2592fi
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596fi
2597eval ac_res=\$$3
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002601
2602} # ac_fn_c_check_type
2603
cristy92703d82010-04-26 00:18:18 +00002604# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2605# ----------------------------------------------------
2606# Tries to find if the field MEMBER exists in type AGGR, after including
2607# INCLUDES, setting cache variable VAR accordingly.
2608ac_fn_c_check_member ()
2609{
2610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2612$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002613if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002614 $as_echo_n "(cached) " >&6
2615else
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617/* end confdefs.h. */
2618$5
2619int
2620main ()
2621{
2622static $2 ac_aggr;
2623if (ac_aggr.$3)
2624return 0;
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629if ac_fn_c_try_compile "$LINENO"; then :
2630 eval "$4=yes"
2631else
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633/* end confdefs.h. */
2634$5
2635int
2636main ()
2637{
2638static $2 ac_aggr;
2639if (sizeof ac_aggr.$3)
2640return 0;
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645if ac_fn_c_try_compile "$LINENO"; then :
2646 eval "$4=yes"
2647else
2648 eval "$4=no"
2649fi
2650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651fi
2652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653fi
2654eval ac_res=\$$4
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002658
2659} # ac_fn_c_check_member
2660
cristy501c8042011-05-26 17:46:28 +00002661# ac_fn_c_find_intX_t LINENO BITS VAR
2662# -----------------------------------
2663# Finds a signed integer type with width BITS, setting cache variable VAR
2664# accordingly.
2665ac_fn_c_find_intX_t ()
2666{
2667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2669$as_echo_n "checking for int$2_t... " >&6; }
2670if eval \${$3+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672else
2673 eval "$3=no"
2674 # Order is important - never check a type that is potentially smaller
2675 # than half of the expected target width.
2676 for ac_type in int$2_t 'int' 'long int' \
2677 'long long int' 'short int' 'signed char'; do
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h. */
2680$ac_includes_default
2681 enum { N = $2 / 2 - 1 };
2682int
2683main ()
2684{
2685static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2686test_array [0] = 0
2687
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692if ac_fn_c_try_compile "$LINENO"; then :
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694/* end confdefs.h. */
2695$ac_includes_default
2696 enum { N = $2 / 2 - 1 };
2697int
2698main ()
2699{
2700static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2701 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2702test_array [0] = 0
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708if ac_fn_c_try_compile "$LINENO"; then :
2709
2710else
2711 case $ac_type in #(
2712 int$2_t) :
2713 eval "$3=yes" ;; #(
2714 *) :
2715 eval "$3=\$ac_type" ;;
2716esac
2717fi
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi
2720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 if eval test \"x\$"$3"\" = x"no"; then :
2722
2723else
2724 break
2725fi
2726 done
2727fi
2728eval ac_res=\$$3
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730$as_echo "$ac_res" >&6; }
2731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2732
2733} # ac_fn_c_find_intX_t
2734
2735# ac_fn_c_find_uintX_t LINENO BITS VAR
2736# ------------------------------------
2737# Finds an unsigned integer type with width BITS, setting cache variable VAR
2738# accordingly.
2739ac_fn_c_find_uintX_t ()
2740{
2741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2743$as_echo_n "checking for uint$2_t... " >&6; }
2744if eval \${$3+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746else
2747 eval "$3=no"
2748 # Order is important - never check a type that is potentially smaller
2749 # than half of the expected target width.
2750 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2751 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753/* end confdefs.h. */
2754$ac_includes_default
2755int
2756main ()
2757{
2758static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2759test_array [0] = 0
2760
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765if ac_fn_c_try_compile "$LINENO"; then :
2766 case $ac_type in #(
2767 uint$2_t) :
2768 eval "$3=yes" ;; #(
2769 *) :
2770 eval "$3=\$ac_type" ;;
2771esac
2772fi
2773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 if eval test \"x\$"$3"\" = x"no"; then :
2775
2776else
2777 break
2778fi
2779 done
2780fi
2781eval ac_res=\$$3
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783$as_echo "$ac_res" >&6; }
2784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785
2786} # ac_fn_c_find_uintX_t
2787
cristy8b350f62009-11-15 23:12:43 +00002788# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2789# --------------------------------------------
2790# Tries to find the compile-time value of EXPR in a program that includes
2791# INCLUDES, setting VAR accordingly. Returns whether the value could be
2792# computed
2793ac_fn_c_compute_int ()
2794{
2795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2796 if test "$cross_compiling" = yes; then
2797 # Depending upon the size, compute the lo and hi bounds.
2798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799/* end confdefs.h. */
2800$4
2801int
2802main ()
2803{
2804static int test_array [1 - 2 * !(($2) >= 0)];
2805test_array [0] = 0
2806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811if ac_fn_c_try_compile "$LINENO"; then :
2812 ac_lo=0 ac_mid=0
2813 while :; do
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h. */
2816$4
2817int
2818main ()
2819{
2820static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2821test_array [0] = 0
2822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827if ac_fn_c_try_compile "$LINENO"; then :
2828 ac_hi=$ac_mid; break
2829else
2830 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2831 if test $ac_lo -le $ac_mid; then
2832 ac_lo= ac_hi=
2833 break
2834 fi
2835 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2836fi
2837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 done
2839else
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h. */
2842$4
2843int
2844main ()
2845{
2846static int test_array [1 - 2 * !(($2) < 0)];
2847test_array [0] = 0
2848
2849 ;
2850 return 0;
2851}
2852_ACEOF
2853if ac_fn_c_try_compile "$LINENO"; then :
2854 ac_hi=-1 ac_mid=-1
2855 while :; do
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857/* end confdefs.h. */
2858$4
2859int
2860main ()
2861{
2862static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2863test_array [0] = 0
2864
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869if ac_fn_c_try_compile "$LINENO"; then :
2870 ac_lo=$ac_mid; break
2871else
2872 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2873 if test $ac_mid -le $ac_hi; then
2874 ac_lo= ac_hi=
2875 break
2876 fi
2877 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2878fi
2879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 done
2881else
2882 ac_lo= ac_hi=
2883fi
2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885fi
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887# Binary search between lo and hi bounds.
2888while test "x$ac_lo" != "x$ac_hi"; do
2889 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891/* end confdefs.h. */
2892$4
2893int
2894main ()
2895{
2896static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2897test_array [0] = 0
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903if ac_fn_c_try_compile "$LINENO"; then :
2904 ac_hi=$ac_mid
2905else
2906 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2907fi
2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909done
2910case $ac_lo in #((
2911?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2912'') ac_retval=1 ;;
2913esac
2914 else
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916/* end confdefs.h. */
2917$4
2918static long int longval () { return $2; }
2919static unsigned long int ulongval () { return $2; }
2920#include <stdio.h>
2921#include <stdlib.h>
2922int
2923main ()
2924{
2925
2926 FILE *f = fopen ("conftest.val", "w");
2927 if (! f)
2928 return 1;
2929 if (($2) < 0)
2930 {
2931 long int i = longval ();
2932 if (i != ($2))
2933 return 1;
2934 fprintf (f, "%ld", i);
2935 }
2936 else
2937 {
2938 unsigned long int i = ulongval ();
2939 if (i != ($2))
2940 return 1;
2941 fprintf (f, "%lu", i);
2942 }
2943 /* Do not output a trailing newline, as this causes \r\n confusion
2944 on some platforms. */
2945 return ferror (f) || fclose (f) != 0;
2946
2947 ;
2948 return 0;
2949}
2950_ACEOF
2951if ac_fn_c_try_run "$LINENO"; then :
2952 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2953else
2954 ac_retval=1
2955fi
2956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2957 conftest.$ac_objext conftest.beam conftest.$ac_ext
2958rm -f conftest.val
2959
2960 fi
cristyda16f162011-02-19 23:52:17 +00002961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002962 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002963
2964} # ac_fn_c_compute_int
2965
2966# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2967# ---------------------------------------------------------
2968# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2969# the include files in INCLUDES and setting the cache variable VAR
2970# accordingly.
2971ac_fn_cxx_check_header_mongrel ()
2972{
2973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002974 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2976$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002977if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002978 $as_echo_n "(cached) " >&6
2979fi
2980eval ac_res=\$$3
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2982$as_echo "$ac_res" >&6; }
2983else
2984 # Is the header compilable?
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2986$as_echo_n "checking $2 usability... " >&6; }
2987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h. */
2989$4
2990#include <$2>
2991_ACEOF
2992if ac_fn_cxx_try_compile "$LINENO"; then :
2993 ac_header_compiler=yes
2994else
2995 ac_header_compiler=no
2996fi
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2999$as_echo "$ac_header_compiler" >&6; }
3000
3001# Is the header present?
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3003$as_echo_n "checking $2 presence... " >&6; }
3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h. */
3006#include <$2>
3007_ACEOF
3008if ac_fn_cxx_try_cpp "$LINENO"; then :
3009 ac_header_preproc=yes
3010else
3011 ac_header_preproc=no
3012fi
cristyda16f162011-02-19 23:52:17 +00003013rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3015$as_echo "$ac_header_preproc" >&6; }
3016
3017# So? What about this header?
3018case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3019 yes:no: )
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3021$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3024 ;;
3025 no:yes:* )
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3027$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3029$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3031$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3033$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003036( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003037## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003038## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003039 ) | sed "s/^/$as_me: WARNING: /" >&2
3040 ;;
3041esac
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3043$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003044if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003045 $as_echo_n "(cached) " >&6
3046else
3047 eval "$3=\$ac_header_compiler"
3048fi
3049eval ac_res=\$$3
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3051$as_echo "$ac_res" >&6; }
3052fi
cristyda16f162011-02-19 23:52:17 +00003053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003054
3055} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003056cat >config.log <<_ACEOF
3057This file contains any messages produced by compilers while
3058running configure, to aid debugging if configure makes a mistake.
3059
cristy29eb34e2011-10-16 00:46:08 +00003060It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003061generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003062
3063 $ $0 $@
3064
3065_ACEOF
3066exec 5>>config.log
3067{
3068cat <<_ASUNAME
3069## --------- ##
3070## Platform. ##
3071## --------- ##
3072
3073hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3074uname -m = `(uname -m) 2>/dev/null || echo unknown`
3075uname -r = `(uname -r) 2>/dev/null || echo unknown`
3076uname -s = `(uname -s) 2>/dev/null || echo unknown`
3077uname -v = `(uname -v) 2>/dev/null || echo unknown`
3078
3079/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3080/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3081
3082/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3083/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3085/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3086/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3087/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3088/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3089
3090_ASUNAME
3091
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003097 $as_echo "PATH: $as_dir"
3098 done
cristy3ed852e2009-09-05 21:47:34 +00003099IFS=$as_save_IFS
3100
3101} >&5
3102
3103cat >&5 <<_ACEOF
3104
3105
3106## ----------- ##
3107## Core tests. ##
3108## ----------- ##
3109
3110_ACEOF
3111
3112
3113# Keep a trace of the command line.
3114# Strip out --no-create and --no-recursion so they do not pile up.
3115# Strip out --silent because we don't want to record it for future runs.
3116# Also quote any args containing shell meta-characters.
3117# Make two passes to allow for proper duplicate-argument suppression.
3118ac_configure_args=
3119ac_configure_args0=
3120ac_configure_args1=
3121ac_must_keep_next=false
3122for ac_pass in 1 2
3123do
3124 for ac_arg
3125 do
3126 case $ac_arg in
3127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3129 | -silent | --silent | --silen | --sile | --sil)
3130 continue ;;
3131 *\'*)
3132 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3133 esac
3134 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003135 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003136 2)
cristy8b350f62009-11-15 23:12:43 +00003137 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003138 if test $ac_must_keep_next = true; then
3139 ac_must_keep_next=false # Got value, back to normal.
3140 else
3141 case $ac_arg in
3142 *=* | --config-cache | -C | -disable-* | --disable-* \
3143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3145 | -with-* | --with-* | -without-* | --without-* | --x)
3146 case "$ac_configure_args0 " in
3147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3148 esac
3149 ;;
3150 -* ) ac_must_keep_next=true ;;
3151 esac
3152 fi
cristy8b350f62009-11-15 23:12:43 +00003153 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003154 ;;
3155 esac
3156 done
3157done
cristy8b350f62009-11-15 23:12:43 +00003158{ ac_configure_args0=; unset ac_configure_args0;}
3159{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003160
3161# When interrupted or exit'd, cleanup temporary files, and complete
3162# config.log. We remove comments because anyway the quotes in there
3163# would cause problems or look ugly.
3164# WARNING: Use '\'' to represent an apostrophe within the trap.
3165# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3166trap 'exit_status=$?
3167 # Save into config.log some information that might help in debugging.
3168 {
3169 echo
3170
cristy98dddb52010-11-04 00:30:15 +00003171 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003172## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003173## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003174 echo
3175 # The following way of writing the cache mishandles newlines in values,
3176(
3177 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3178 eval ac_val=\$$ac_var
3179 case $ac_val in #(
3180 *${as_nl}*)
3181 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003183$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3184 esac
3185 case $ac_var in #(
3186 _ | IFS | as_nl) ;; #(
3187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003188 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003189 esac ;;
3190 esac
3191 done
3192 (set) 2>&1 |
3193 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3194 *${as_nl}ac_space=\ *)
3195 sed -n \
3196 "s/'\''/'\''\\\\'\'''\''/g;
3197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3198 ;; #(
3199 *)
3200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3201 ;;
3202 esac |
3203 sort
3204)
3205 echo
3206
cristy98dddb52010-11-04 00:30:15 +00003207 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003208## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003209## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003210 echo
3211 for ac_var in $ac_subst_vars
3212 do
3213 eval ac_val=\$$ac_var
3214 case $ac_val in
3215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3216 esac
3217 $as_echo "$ac_var='\''$ac_val'\''"
3218 done | sort
3219 echo
3220
3221 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003222 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003223## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003224## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003225 echo
3226 for ac_var in $ac_subst_files
3227 do
3228 eval ac_val=\$$ac_var
3229 case $ac_val in
3230 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3231 esac
3232 $as_echo "$ac_var='\''$ac_val'\''"
3233 done | sort
3234 echo
3235 fi
3236
3237 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003238 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003239## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003240## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003241 echo
3242 cat confdefs.h
3243 echo
3244 fi
3245 test "$ac_signal" != 0 &&
3246 $as_echo "$as_me: caught signal $ac_signal"
3247 $as_echo "$as_me: exit $exit_status"
3248 } >&5
3249 rm -f core *.core core.conftest.* &&
3250 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3251 exit $exit_status
3252' 0
3253for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003254 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003255done
3256ac_signal=0
3257
3258# confdefs.h avoids OS command line length limits that DEFS can exceed.
3259rm -f -r conftest* confdefs.h
3260
cristy8b350f62009-11-15 23:12:43 +00003261$as_echo "/* confdefs.h */" > confdefs.h
3262
cristy3ed852e2009-09-05 21:47:34 +00003263# Predefined preprocessor variables.
3264
3265cat >>confdefs.h <<_ACEOF
3266#define PACKAGE_NAME "$PACKAGE_NAME"
3267_ACEOF
3268
cristy3ed852e2009-09-05 21:47:34 +00003269cat >>confdefs.h <<_ACEOF
3270#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3271_ACEOF
3272
cristy3ed852e2009-09-05 21:47:34 +00003273cat >>confdefs.h <<_ACEOF
3274#define PACKAGE_VERSION "$PACKAGE_VERSION"
3275_ACEOF
3276
cristy3ed852e2009-09-05 21:47:34 +00003277cat >>confdefs.h <<_ACEOF
3278#define PACKAGE_STRING "$PACKAGE_STRING"
3279_ACEOF
3280
cristy3ed852e2009-09-05 21:47:34 +00003281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3283_ACEOF
3284
cristy8b350f62009-11-15 23:12:43 +00003285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_URL "$PACKAGE_URL"
3287_ACEOF
3288
cristy3ed852e2009-09-05 21:47:34 +00003289
3290# Let the site file select an alternate cache file if it wants to.
3291# Prefer an explicitly selected file to automatically selected ones.
3292ac_site_file1=NONE
3293ac_site_file2=NONE
3294if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003295 # We do not want a PATH search for config.site.
3296 case $CONFIG_SITE in #((
3297 -*) ac_site_file1=./$CONFIG_SITE;;
3298 */*) ac_site_file1=$CONFIG_SITE;;
3299 *) ac_site_file1=./$CONFIG_SITE;;
3300 esac
cristy3ed852e2009-09-05 21:47:34 +00003301elif test "x$prefix" != xNONE; then
3302 ac_site_file1=$prefix/share/config.site
3303 ac_site_file2=$prefix/etc/config.site
3304else
3305 ac_site_file1=$ac_default_prefix/share/config.site
3306 ac_site_file2=$ac_default_prefix/etc/config.site
3307fi
3308for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3309do
3310 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003311 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003313$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3314 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003315 . "$ac_site_file" \
3316 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318as_fn_error $? "failed to load site script $ac_site_file
3319See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003320 fi
3321done
3322
3323if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003324 # Some versions of bash will fail to source /dev/null (special files
3325 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3326 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003328$as_echo "$as_me: loading cache $cache_file" >&6;}
3329 case $cache_file in
3330 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3331 *) . "./$cache_file";;
3332 esac
3333 fi
3334else
cristy8b350f62009-11-15 23:12:43 +00003335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003336$as_echo "$as_me: creating cache $cache_file" >&6;}
3337 >$cache_file
3338fi
3339
cristycd4c5312009-11-22 01:19:08 +00003340as_fn_append ac_header_list " stdlib.h"
3341as_fn_append ac_header_list " unistd.h"
3342as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003343# Check that the precious variables saved in the cache have kept the same
3344# value.
3345ac_cache_corrupted=false
3346for ac_var in $ac_precious_vars; do
3347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3348 eval ac_new_set=\$ac_env_${ac_var}_set
3349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3350 eval ac_new_val=\$ac_env_${ac_var}_value
3351 case $ac_old_set,$ac_new_set in
3352 set,)
cristy8b350f62009-11-15 23:12:43 +00003353 { $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 +00003354$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3355 ac_cache_corrupted=: ;;
3356 ,set)
cristy8b350f62009-11-15 23:12:43 +00003357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003358$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3359 ac_cache_corrupted=: ;;
3360 ,);;
3361 *)
3362 if test "x$ac_old_val" != "x$ac_new_val"; then
3363 # differences in whitespace do not lead to failure.
3364 ac_old_val_w=`echo x $ac_old_val`
3365 ac_new_val_w=`echo x $ac_new_val`
3366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003368$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3369 ac_cache_corrupted=:
3370 else
cristy8b350f62009-11-15 23:12:43 +00003371 { $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 +00003372$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3373 eval $ac_var=\$ac_old_val
3374 fi
cristy8b350f62009-11-15 23:12:43 +00003375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003376$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003378$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3379 fi;;
3380 esac
3381 # Pass precious variables to config.status.
3382 if test "$ac_new_set" = set; then
3383 case $ac_new_val in
3384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3385 *) ac_arg=$ac_var=$ac_new_val ;;
3386 esac
3387 case " $ac_configure_args " in
3388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003390 esac
3391 fi
3392done
3393if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003397$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003398 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003399fi
cristy8b350f62009-11-15 23:12:43 +00003400## -------------------- ##
3401## Main body of script. ##
3402## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003403
3404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410
3411
3412ac_aux_dir=
3413for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003414 if test -f "$ac_dir/install-sh"; then
3415 ac_aux_dir=$ac_dir
3416 ac_install_sh="$ac_aux_dir/install-sh -c"
3417 break
3418 elif test -f "$ac_dir/install.sh"; then
3419 ac_aux_dir=$ac_dir
3420 ac_install_sh="$ac_aux_dir/install.sh -c"
3421 break
3422 elif test -f "$ac_dir/shtool"; then
3423 ac_aux_dir=$ac_dir
3424 ac_install_sh="$ac_aux_dir/shtool install -c"
3425 break
3426 fi
cristy3ed852e2009-09-05 21:47:34 +00003427done
3428if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003430fi
3431
3432# These three variables are undocumented and unsupported,
3433# and are intended to be withdrawn in a future Autoconf release.
3434# They can cause serious problems if a builder's source tree is in a directory
3435# whose full name contains unusual characters.
3436ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3437ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3438ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3439
3440
3441
3442
3443ac_config_headers="$ac_config_headers config/config.h"
3444
cristy24fc1fe2010-10-23 21:13:01 +00003445
cristy4c08aed2011-07-01 19:47:50 +00003446ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003447
cristy4c08aed2011-07-01 19:47:50 +00003448ac_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 +00003449
3450
3451#
3452# Save initial user-tunable values
3453#
3454USER_LIBS=$LIBS
3455for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3456 eval isset=\${$var+set}
3457 if test "$isset" = 'set'; then
3458 eval val=$`echo $var`
3459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3460 fi
3461done
3462
3463
3464CONFIGURE_ARGS="$0 ${ac_configure_args}"
3465
3466
3467# Source file containing package/library versioning information.
3468. ${srcdir}/version.sh
3469
cristy15a88782010-01-31 23:24:49 +00003470echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003471# Make sure we can run config.sub.
3472$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003473 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003474
cristy8b350f62009-11-15 23:12:43 +00003475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003476$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003477if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003478 $as_echo_n "(cached) " >&6
3479else
3480 ac_build_alias=$build_alias
3481test "x$ac_build_alias" = x &&
3482 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3483test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003484 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003485ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003486 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003487
3488fi
cristy8b350f62009-11-15 23:12:43 +00003489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo "$ac_cv_build" >&6; }
3491case $ac_cv_build in
3492*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003493*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003494esac
3495build=$ac_cv_build
3496ac_save_IFS=$IFS; IFS='-'
3497set x $ac_cv_build
3498shift
3499build_cpu=$1
3500build_vendor=$2
3501shift; shift
3502# Remember, the first character of IFS is used to create $*,
3503# except with old shells:
3504build_os=$*
3505IFS=$ac_save_IFS
3506case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3507
3508
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003511if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003512 $as_echo_n "(cached) " >&6
3513else
3514 if test "x$host_alias" = x; then
3515 ac_cv_host=$ac_cv_build
3516else
3517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003519fi
3520
3521fi
cristy8b350f62009-11-15 23:12:43 +00003522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003523$as_echo "$ac_cv_host" >&6; }
3524case $ac_cv_host in
3525*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003526*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003527esac
3528host=$ac_cv_host
3529ac_save_IFS=$IFS; IFS='-'
3530set x $ac_cv_host
3531shift
3532host_cpu=$1
3533host_vendor=$2
3534shift; shift
3535# Remember, the first character of IFS is used to create $*,
3536# except with old shells:
3537host_os=$*
3538IFS=$ac_save_IFS
3539case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3540
3541
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003544if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003545 $as_echo_n "(cached) " >&6
3546else
3547 if test "x$target_alias" = x; then
3548 ac_cv_target=$ac_cv_host
3549else
3550 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552fi
3553
3554fi
cristy8b350f62009-11-15 23:12:43 +00003555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003556$as_echo "$ac_cv_target" >&6; }
3557case $ac_cv_target in
3558*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003559*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003560esac
3561target=$ac_cv_target
3562ac_save_IFS=$IFS; IFS='-'
3563set x $ac_cv_target
3564shift
3565target_cpu=$1
3566target_vendor=$2
3567shift; shift
3568# Remember, the first character of IFS is used to create $*,
3569# except with old shells:
3570target_os=$*
3571IFS=$ac_save_IFS
3572case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3573
3574
3575# The aliases save the names the user supplied, while $host etc.
3576# will get canonicalized.
3577test -n "$target_alias" &&
3578 test "$program_prefix$program_suffix$program_transform_name" = \
3579 NONENONEs,x,x, &&
3580 program_prefix=${target_alias}-
3581
cristy837d6dc2010-02-27 01:16:57 +00003582
3583
3584
cristy19615b82011-04-13 20:02:01 +00003585MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003586
3587
cristy19615b82011-04-13 20:02:01 +00003588MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003589
3590
cristy19615b82011-04-13 20:02:01 +00003591MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003592
3593
cristy3ed852e2009-09-05 21:47:34 +00003594# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003595MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3596
3597MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3598
cristybd4fb6e2011-10-26 13:10:01 +00003599MAGICK_SVN_REVISION=5750
cristyd694ca32011-03-27 21:42:54 +00003600
3601
cristy3ed852e2009-09-05 21:47:34 +00003602
3603
3604# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3606$as_echo_n "checking whether build environment is sane... " >&6; }
3607# Just in case
3608sleep 1
3609echo timestamp > conftest.file
3610# Reject unsafe characters in $srcdir or the absolute working directory
3611# name. Accept space and tab only in the latter.
3612am_lf='
3613'
3614case `pwd` in
3615 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003616 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003617esac
3618case $srcdir in
3619 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003620 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003621esac
cristy3ed852e2009-09-05 21:47:34 +00003622
cristy73bd4a52010-10-05 11:24:23 +00003623# Do `set' in a subshell so we don't clobber the current shell's
3624# arguments. Must try -L first in case configure is actually a
3625# symlink; some systems play weird games with the mod time of symlinks
3626# (eg FreeBSD returns the mod time of the symlink's containing
3627# directory).
3628if (
3629 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3630 if test "$*" = "X"; then
3631 # -L didn't work.
3632 set X `ls -t "$srcdir/configure" conftest.file`
3633 fi
3634 rm -f conftest.file
3635 if test "$*" != "X $srcdir/configure conftest.file" \
3636 && test "$*" != "X conftest.file $srcdir/configure"; then
3637
3638 # If neither matched, then we have a broken ls. This can happen
3639 # if, for instance, CONFIG_SHELL is bash and it inherits a
3640 # broken ls alias from the environment. This has actually
3641 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003642 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003643alias in your environment" "$LINENO" 5
3644 fi
3645
3646 test "$2" = conftest.file
3647 )
3648then
3649 # Ok.
3650 :
3651else
cristy98dddb52010-11-04 00:30:15 +00003652 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003653Check your system clock" "$LINENO" 5
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3656$as_echo "yes" >&6; }
3657
3658am__api_version='1.11'
3659
3660# Find a good install program. We prefer a C program (faster),
3661# so one script is as good as another. But avoid the broken or
3662# incompatible versions:
3663# SysV /etc/install, /usr/sbin/install
3664# SunOS /usr/etc/install
3665# IRIX /sbin/install
3666# AIX /bin/install
3667# AmigaOS /C/install, which installs bootblocks on floppy discs
3668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3669# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3671# OS/2's system install, which has a completely different semantic
3672# ./install, which can be erroneously created by make from ./install.sh.
3673# Reject install programs that cannot install multiple files.
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3675$as_echo_n "checking for a BSD-compatible install... " >&6; }
3676if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003677if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003678 $as_echo_n "(cached) " >&6
3679else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 # Account for people who put trailing slashes in PATH elements.
3686case $as_dir/ in #((
3687 ./ | .// | /[cC]/* | \
3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3690 /usr/ucb/* ) ;;
3691 *)
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3694 # by default.
3695 for ac_prog in ginstall scoinst install; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3698 if test $ac_prog = install &&
3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3701 :
3702 elif test $ac_prog = install &&
3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3705 :
3706 else
3707 rm -rf conftest.one conftest.two conftest.dir
3708 echo one > conftest.one
3709 echo two > conftest.two
3710 mkdir conftest.dir
3711 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3712 test -s conftest.one && test -s conftest.two &&
3713 test -s conftest.dir/conftest.one &&
3714 test -s conftest.dir/conftest.two
3715 then
3716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3717 break 3
3718 fi
3719 fi
3720 fi
3721 done
3722 done
3723 ;;
3724esac
3725
3726 done
3727IFS=$as_save_IFS
3728
3729rm -rf conftest.one conftest.two conftest.dir
3730
3731fi
3732 if test "${ac_cv_path_install+set}" = set; then
3733 INSTALL=$ac_cv_path_install
3734 else
3735 # As a last resort, use the slow shell script. Don't cache a
3736 # value for INSTALL within a source directory, because that will
3737 # break other packages using the cache if that directory is
3738 # removed, or if the value is a relative name.
3739 INSTALL=$ac_install_sh
3740 fi
3741fi
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3743$as_echo "$INSTALL" >&6; }
3744
3745# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3746# It thinks the first close brace ends the variable substitution.
3747test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3748
3749test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3750
3751test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3752
3753test "$program_prefix" != NONE &&
3754 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3755# Use a double $ so make ignores it.
3756test "$program_suffix" != NONE &&
3757 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3758# Double any \ or $.
3759# By default was `s,x,x', remove it if useless.
3760ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3761program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3762
3763# expand $ac_aux_dir to an absolute path
3764am_aux_dir=`cd $ac_aux_dir && pwd`
3765
3766if test x"${MISSING+set}" != xset; then
3767 case $am_aux_dir in
3768 *\ * | *\ *)
3769 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3770 *)
3771 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3772 esac
3773fi
3774# Use eval to expand $SHELL
3775if eval "$MISSING --run true"; then
3776 am_missing_run="$MISSING --run "
3777else
3778 am_missing_run=
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3780$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3781fi
3782
3783if test x"${install_sh}" != xset; then
3784 case $am_aux_dir in
3785 *\ * | *\ *)
3786 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3787 *)
3788 install_sh="\${SHELL} $am_aux_dir/install-sh"
3789 esac
3790fi
3791
3792# Installed binaries are usually stripped using `strip' when the user
3793# run `make install-strip'. However `strip' might not be the right
3794# tool to use in cross-compilation environments, therefore Automake
3795# will honor the `STRIP' environment variable to overrule this program.
3796if test "$cross_compiling" != no; then
3797 if test -n "$ac_tool_prefix"; then
3798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3799set dummy ${ac_tool_prefix}strip; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003802if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003803 $as_echo_n "(cached) " >&6
3804else
3805 if test -n "$STRIP"; then
3806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819done
3820 done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825STRIP=$ac_cv_prog_STRIP
3826if test -n "$STRIP"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3828$as_echo "$STRIP" >&6; }
3829else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834
3835fi
3836if test -z "$ac_cv_prog_STRIP"; then
3837 ac_ct_STRIP=$STRIP
3838 # Extract the first word of "strip", so it can be a program name with args.
3839set dummy strip; ac_word=$2
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003842if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003843 $as_echo_n "(cached) " >&6
3844else
3845 if test -n "$ac_ct_STRIP"; then
3846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3855 ac_cv_prog_ac_ct_STRIP="strip"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
3860 done
3861IFS=$as_save_IFS
3862
3863fi
3864fi
3865ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3866if test -n "$ac_ct_STRIP"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3868$as_echo "$ac_ct_STRIP" >&6; }
3869else
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871$as_echo "no" >&6; }
3872fi
3873
3874 if test "x$ac_ct_STRIP" = x; then
3875 STRIP=":"
3876 else
3877 case $cross_compiling:$ac_tool_warned in
3878yes:)
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881ac_tool_warned=yes ;;
3882esac
3883 STRIP=$ac_ct_STRIP
3884 fi
3885else
3886 STRIP="$ac_cv_prog_STRIP"
3887fi
3888
3889fi
3890INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3891
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3893$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3894if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003895 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003896 $as_echo_n "(cached) " >&6
3897else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_prog in mkdir gmkdir; do
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3907 'mkdir (GNU coreutils) '* | \
3908 'mkdir (coreutils) '* | \
3909 'mkdir (fileutils) '4.1*)
3910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3911 break 3;;
3912 esac
3913 done
3914 done
3915 done
3916IFS=$as_save_IFS
3917
3918fi
3919
3920 test -d ./--version && rmdir ./--version
3921 if test "${ac_cv_path_mkdir+set}" = set; then
3922 MKDIR_P="$ac_cv_path_mkdir -p"
3923 else
3924 # As a last resort, use the slow shell script. Don't cache a
3925 # value for MKDIR_P within a source directory, because that will
3926 # break other packages using the cache if that directory is
3927 # removed, or if the value is a relative name.
3928 MKDIR_P="$ac_install_sh -d"
3929 fi
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3932$as_echo "$MKDIR_P" >&6; }
3933
3934mkdir_p="$MKDIR_P"
3935case $mkdir_p in
3936 [\\/$]* | ?:[\\/]*) ;;
3937 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3938esac
3939
3940for ac_prog in gawk mawk nawk awk
3941do
3942 # Extract the first word of "$ac_prog", so it can be a program name with args.
3943set dummy $ac_prog; ac_word=$2
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003946if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003947 $as_echo_n "(cached) " >&6
3948else
3949 if test -n "$AWK"; then
3950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_AWK="$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963done
3964 done
3965IFS=$as_save_IFS
3966
3967fi
3968fi
3969AWK=$ac_cv_prog_AWK
3970if test -n "$AWK"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3972$as_echo "$AWK" >&6; }
3973else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
3976fi
3977
3978
3979 test -n "$AWK" && break
3980done
3981
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3983$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3984set x ${MAKE-make}
3985ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003986if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003987 $as_echo_n "(cached) " >&6
3988else
3989 cat >conftest.make <<\_ACEOF
3990SHELL = /bin/sh
3991all:
3992 @echo '@@@%%%=$(MAKE)=@@@%%%'
3993_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003994# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003995case `${MAKE-make} -f conftest.make 2>/dev/null` in
3996 *@@@%%%=?*=@@@%%%*)
3997 eval ac_cv_prog_make_${ac_make}_set=yes;;
3998 *)
3999 eval ac_cv_prog_make_${ac_make}_set=no;;
4000esac
4001rm -f conftest.make
4002fi
4003if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005$as_echo "yes" >&6; }
4006 SET_MAKE=
4007else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
4010 SET_MAKE="MAKE=${MAKE-make}"
4011fi
4012
4013rm -rf .tst 2>/dev/null
4014mkdir .tst 2>/dev/null
4015if test -d .tst; then
4016 am__leading_dot=.
4017else
4018 am__leading_dot=_
4019fi
4020rmdir .tst 2>/dev/null
4021
cristya448bd22011-10-14 12:38:13 +00004022# Check whether --enable-silent-rules was given.
4023if test "${enable_silent_rules+set}" = set; then :
4024 enableval=$enable_silent_rules;
4025fi
4026
4027case $enable_silent_rules in
4028yes) AM_DEFAULT_VERBOSITY=0;;
4029no) AM_DEFAULT_VERBOSITY=1;;
4030*) AM_DEFAULT_VERBOSITY=1;;
4031esac
4032AM_BACKSLASH='\'
4033
cristy73bd4a52010-10-05 11:24:23 +00004034if test "`cd $srcdir && pwd`" != "`pwd`"; then
4035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4036 # is not polluted with repeated "-I."
4037 am__isrc=' -I$(srcdir)'
4038 # test to see if srcdir already configured
4039 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004040 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004041 fi
4042fi
4043
4044# test whether we have cygpath
4045if test -z "$CYGPATH_W"; then
4046 if (cygpath --version) >/dev/null 2>/dev/null; then
4047 CYGPATH_W='cygpath -w'
4048 else
4049 CYGPATH_W=echo
4050 fi
4051fi
4052
4053
4054# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004055 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004056 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004057
4058
cristya448bd22011-10-14 12:38:13 +00004059cat >>confdefs.h <<_ACEOF
4060#define PACKAGE "$PACKAGE"
4061_ACEOF
4062
4063
4064cat >>confdefs.h <<_ACEOF
4065#define VERSION "$VERSION"
4066_ACEOF
4067
cristy73bd4a52010-10-05 11:24:23 +00004068# Some tools Automake needs.
4069
4070ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4071
4072
4073AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4074
4075
4076AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4077
4078
4079AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4080
4081
4082MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4083
4084# We need awk for the "check" target. The system "awk" is bad on
4085# some platforms.
4086# Always define AMTAR for backward compatibility.
4087
4088AMTAR=${AMTAR-"${am_missing_run}tar"}
4089
4090am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4091
4092
4093
4094
4095
cristy3ed852e2009-09-05 21:47:34 +00004096
4097# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004098# Check whether --enable-silent-rules was given.
4099if test "${enable_silent_rules+set}" = set; then :
4100 enableval=$enable_silent_rules;
4101fi
4102
4103case $enable_silent_rules in
4104yes) AM_DEFAULT_VERBOSITY=0;;
4105no) AM_DEFAULT_VERBOSITY=1;;
4106*) AM_DEFAULT_VERBOSITY=0;;
4107esac
4108AM_BACKSLASH='\'
4109
cristy3ed852e2009-09-05 21:47:34 +00004110
4111MAGICK_LIB_VERSION="0x"
4112if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4113 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4114fi
4115MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4116if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4117 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4118fi
4119MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4120if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4121 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4122fi
4123MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4124
4125
4126# Definition used to define MagickLibVersionText in version.h
4127MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4128
4129
4130# Definition used to define MagickLibVersionNumber in version.h
4131MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4132
4133
4134# Regenerate config.status if ChangeLog or version.sh is updated.
4135CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4136
4137
4138PERLMAINCC=$CC
4139
4140MAGICK_CFLAGS=''
4141MAGICK_CPPFLAGS=$CPPFLAGS_USER
4142MAGICK_PCFLAGS=$CPPFLAGS_USER
4143MAGICK_LDFLAGS=''
4144MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004145MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004146
4147#
4148# Evaluate shell variable equivalents to Makefile directory variables
4149#
4150if test "x$prefix" = xNONE; then
4151 prefix=$ac_default_prefix
4152fi
4153# Let make expand exec_prefix.
4154if test "x$exec_prefix" = xNONE; then
4155 exec_prefix='${prefix}'
4156fi
4157
4158#
4159eval "eval PREFIX_DIR=${prefix}"
4160
4161eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4162
4163eval "eval BIN_DIR=$bindir"
4164
4165eval "eval SBIN_DIR=$sbindir"
4166
4167eval "eval LIBEXEC_DIR=$libexecdir"
4168
4169eval "eval DATA_DIR=$datadir"
4170
cristyd55889c2011-03-27 00:50:24 +00004171eval "eval DOC_DIR=$docdir"
4172
cristy3ed852e2009-09-05 21:47:34 +00004173eval "eval SYSCONF_DIR=$sysconfdir"
4174
4175eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4176
4177eval "eval LOCALSTATE_DIR=$localstatedir"
4178
4179eval "eval LIB_DIR=$libdir"
4180
4181eval "eval INCLUDE_DIR=$includedir"
4182
4183eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4184
4185eval "eval INFO_DIR=$infodir"
4186
4187eval "eval MAN_DIR=$mandir"
4188
4189
4190# Get full paths to source and build directories
4191srcdirfull="`cd $srcdir && pwd`"
4192builddir="`pwd`"
4193
4194#
4195# Compute variables useful for running uninstalled software.
4196#
4197MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4198MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4199MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4200MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4201DIRSEP=':'
4202case "${build_os}" in
4203 mingw* )
4204 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4205 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4206 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4207 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4208 DIRSEP=';'
4209 ;;
4210esac
4211case "${host_os}" in
4212 mingw* )
4213 DIRSEP=';'
4214 ;;
4215esac
4216
4217
4218
4219
4220
4221
cristya0b81c32010-01-22 02:54:33 +00004222
4223#
4224# Enable OS features.
4225#
cristy73bd4a52010-10-05 11:24:23 +00004226DEPDIR="${am__leading_dot}deps"
4227
4228ac_config_commands="$ac_config_commands depfiles"
4229
4230
4231am_make=${MAKE-make}
4232cat > confinc << 'END'
4233am__doit:
4234 @echo this is the am__doit target
4235.PHONY: am__doit
4236END
4237# If we don't find an include directive, just comment out the code.
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4239$as_echo_n "checking for style of include used by $am_make... " >&6; }
4240am__include="#"
4241am__quote=
4242_am_result=none
4243# First try GNU make style include.
4244echo "include confinc" > confmf
4245# Ignore all kinds of additional output from `make'.
4246case `$am_make -s -f confmf 2> /dev/null` in #(
4247*the\ am__doit\ target*)
4248 am__include=include
4249 am__quote=
4250 _am_result=GNU
4251 ;;
4252esac
4253# Now try BSD make style include.
4254if test "$am__include" = "#"; then
4255 echo '.include "confinc"' > confmf
4256 case `$am_make -s -f confmf 2> /dev/null` in #(
4257 *the\ am__doit\ target*)
4258 am__include=.include
4259 am__quote="\""
4260 _am_result=BSD
4261 ;;
4262 esac
4263fi
4264
4265
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4267$as_echo "$_am_result" >&6; }
4268rm -f confinc confmf
4269
4270# Check whether --enable-dependency-tracking was given.
4271if test "${enable_dependency_tracking+set}" = set; then :
4272 enableval=$enable_dependency_tracking;
4273fi
4274
4275if test "x$enable_dependency_tracking" != xno; then
4276 am_depcomp="$ac_aux_dir/depcomp"
4277 AMDEPBACKSLASH='\'
4278fi
4279 if test "x$enable_dependency_tracking" != xno; then
4280 AMDEP_TRUE=
4281 AMDEP_FALSE='#'
4282else
4283 AMDEP_TRUE='#'
4284 AMDEP_FALSE=
4285fi
4286
4287
cristy3ed852e2009-09-05 21:47:34 +00004288ac_ext=c
4289ac_cpp='$CPP $CPPFLAGS'
4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4295set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004298if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004299 $as_echo_n "(cached) " >&6
4300else
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC="$CC" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004313 break 2
4314 fi
4315done
cristy8b350f62009-11-15 23:12:43 +00004316 done
cristy3ed852e2009-09-05 21:47:34 +00004317IFS=$as_save_IFS
4318
4319fi
4320fi
4321CC=$ac_cv_prog_CC
4322if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324$as_echo "$CC" >&6; }
4325else
cristy8b350f62009-11-15 23:12:43 +00004326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004327$as_echo "no" >&6; }
4328fi
4329
4330
4331fi
4332if test -z "$ac_cv_prog_CC"; then
4333 ac_ct_CC=$CC
4334 # Extract the first word of "gcc", so it can be a program name with args.
4335set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004338if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004339 $as_echo_n "(cached) " >&6
4340else
4341 if test -n "$ac_ct_CC"; then
4342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4343else
4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353 break 2
4354 fi
4355done
cristy8b350f62009-11-15 23:12:43 +00004356 done
cristy3ed852e2009-09-05 21:47:34 +00004357IFS=$as_save_IFS
4358
4359fi
4360fi
4361ac_ct_CC=$ac_cv_prog_ac_ct_CC
4362if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "$ac_ct_CC" >&6; }
4365else
cristy8b350f62009-11-15 23:12:43 +00004366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004367$as_echo "no" >&6; }
4368fi
4369
4370 if test "x$ac_ct_CC" = x; then
4371 CC=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374yes:)
cristy8b350f62009-11-15 23:12:43 +00004375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377ac_tool_warned=yes ;;
4378esac
4379 CC=$ac_ct_CC
4380 fi
4381else
4382 CC="$ac_cv_prog_CC"
4383fi
4384
4385if test -z "$CC"; then
4386 if test -n "$ac_tool_prefix"; then
4387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4388set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004391if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004392 $as_echo_n "(cached) " >&6
4393else
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC="$CC" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004406 break 2
4407 fi
4408done
cristy8b350f62009-11-15 23:12:43 +00004409 done
cristy3ed852e2009-09-05 21:47:34 +00004410IFS=$as_save_IFS
4411
4412fi
4413fi
4414CC=$ac_cv_prog_CC
4415if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo "$CC" >&6; }
4418else
cristy8b350f62009-11-15 23:12:43 +00004419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420$as_echo "no" >&6; }
4421fi
4422
4423
4424 fi
4425fi
4426if test -z "$CC"; then
4427 # Extract the first word of "cc", so it can be a program name with args.
4428set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004431if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004432 $as_echo_n "(cached) " >&6
4433else
4434 if test -n "$CC"; then
4435 ac_cv_prog_CC="$CC" # Let the user override the test.
4436else
4437 ac_prog_rejected=no
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4446 ac_prog_rejected=yes
4447 continue
4448 fi
4449 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004451 break 2
4452 fi
4453done
cristy8b350f62009-11-15 23:12:43 +00004454 done
cristy3ed852e2009-09-05 21:47:34 +00004455IFS=$as_save_IFS
4456
4457if test $ac_prog_rejected = yes; then
4458 # We found a bogon in the path, so make sure we never use it.
4459 set dummy $ac_cv_prog_CC
4460 shift
4461 if test $# != 0; then
4462 # We chose a different compiler from the bogus one.
4463 # However, it has the same basename, so the bogon will be chosen
4464 # first if we set CC to just the basename; use the full file name.
4465 shift
4466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4467 fi
4468fi
4469fi
4470fi
4471CC=$ac_cv_prog_CC
4472if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004474$as_echo "$CC" >&6; }
4475else
cristy8b350f62009-11-15 23:12:43 +00004476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477$as_echo "no" >&6; }
4478fi
4479
4480
4481fi
4482if test -z "$CC"; then
4483 if test -n "$ac_tool_prefix"; then
4484 for ac_prog in cl.exe
4485 do
4486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004490if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004491 $as_echo_n "(cached) " >&6
4492else
4493 if test -n "$CC"; then
4494 ac_cv_prog_CC="$CC" # Let the user override the test.
4495else
4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505 break 2
4506 fi
4507done
cristy8b350f62009-11-15 23:12:43 +00004508 done
cristy3ed852e2009-09-05 21:47:34 +00004509IFS=$as_save_IFS
4510
4511fi
4512fi
4513CC=$ac_cv_prog_CC
4514if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516$as_echo "$CC" >&6; }
4517else
cristy8b350f62009-11-15 23:12:43 +00004518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519$as_echo "no" >&6; }
4520fi
4521
4522
4523 test -n "$CC" && break
4524 done
4525fi
4526if test -z "$CC"; then
4527 ac_ct_CC=$CC
4528 for ac_prog in cl.exe
4529do
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004534if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004535 $as_echo_n "(cached) " >&6
4536else
4537 if test -n "$ac_ct_CC"; then
4538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549 break 2
4550 fi
4551done
cristy8b350f62009-11-15 23:12:43 +00004552 done
cristy3ed852e2009-09-05 21:47:34 +00004553IFS=$as_save_IFS
4554
4555fi
4556fi
4557ac_ct_CC=$ac_cv_prog_ac_ct_CC
4558if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo "$ac_ct_CC" >&6; }
4561else
cristy8b350f62009-11-15 23:12:43 +00004562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563$as_echo "no" >&6; }
4564fi
4565
4566
4567 test -n "$ac_ct_CC" && break
4568done
4569
4570 if test "x$ac_ct_CC" = x; then
4571 CC=""
4572 else
4573 case $cross_compiling:$ac_tool_warned in
4574yes:)
cristy8b350f62009-11-15 23:12:43 +00004575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577ac_tool_warned=yes ;;
4578esac
4579 CC=$ac_ct_CC
4580 fi
4581fi
4582
4583fi
4584
4585
cristy8b350f62009-11-15 23:12:43 +00004586test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004588as_fn_error $? "no acceptable C compiler found in \$PATH
4589See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004590
4591# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004592$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004593set X $ac_compile
4594ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004595for ac_option in --version -v -V -qversion; do
4596 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004597case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
cristy8b350f62009-11-15 23:12:43 +00004601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4602$as_echo "$ac_try_echo"; } >&5
4603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004604 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004605 if test -s conftest.err; then
4606 sed '10a\
4607... rest of stderr output deleted ...
4608 10q' conftest.err >conftest.er1
4609 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004610 fi
cristycd4c5312009-11-22 01:19:08 +00004611 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4613 test $ac_status = 0; }
4614done
cristy3ed852e2009-09-05 21:47:34 +00004615
cristy8b350f62009-11-15 23:12:43 +00004616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004617/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004618
cristy3ed852e2009-09-05 21:47:34 +00004619int
4620main ()
4621{
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004628ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004629# Try to create an executable without -o first, disregard a.out.
4630# It will help us diagnose broken compilers, and finding out an intuition
4631# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4633$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004634ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4635
4636# The possible output files:
4637ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4638
4639ac_rmfiles=
4640for ac_file in $ac_files
4641do
4642 case $ac_file in
4643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4644 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4645 esac
4646done
4647rm -f $ac_rmfiles
4648
cristy8b350f62009-11-15 23:12:43 +00004649if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004650case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653esac
cristy8b350f62009-11-15 23:12:43 +00004654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004656 (eval "$ac_link_default") 2>&5
4657 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004660 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4661# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4662# in a Makefile. We should not override ac_cv_exeext if it was cached,
4663# so that the user can short-circuit this test for compilers unknown to
4664# Autoconf.
4665for ac_file in $ac_files ''
4666do
4667 test -f "$ac_file" || continue
4668 case $ac_file in
4669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4670 ;;
4671 [ab].out )
4672 # We found the default executable, but exeext='' is most
4673 # certainly right.
4674 break;;
4675 *.* )
cristy8b350f62009-11-15 23:12:43 +00004676 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004677 then :; else
4678 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4679 fi
4680 # We set ac_cv_exeext here because the later test for it is not
4681 # safe: cross compilers may not add the suffix if given an `-o'
4682 # argument, so we may need to know it at that point already.
4683 # Even if this section looks crufty: it has the advantage of
4684 # actually working.
4685 break;;
4686 * )
4687 break;;
4688 esac
4689done
4690test "$ac_cv_exeext" = no && ac_cv_exeext=
4691
4692else
4693 ac_file=''
4694fi
cristy8b350f62009-11-15 23:12:43 +00004695if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697$as_echo "no" >&6; }
4698$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699sed 's/^/| /' conftest.$ac_ext >&5
4700
cristy8b350f62009-11-15 23:12:43 +00004701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004703as_fn_error 77 "C compiler cannot create executables
4704See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004705else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004708fi
cristycd4c5312009-11-22 01:19:08 +00004709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4710$as_echo_n "checking for C compiler default output file name... " >&6; }
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4712$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004713ac_exeext=$ac_cv_exeext
4714
cristycd4c5312009-11-22 01:19:08 +00004715rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004716ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004719if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004720case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723esac
cristy8b350f62009-11-15 23:12:43 +00004724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4725$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004726 (eval "$ac_link") 2>&5
4727 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4729 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004730 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4731# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4732# work properly (i.e., refer to `conftest.exe'), while it won't with
4733# `rm'.
4734for ac_file in conftest.exe conftest conftest.*; do
4735 test -f "$ac_file" || continue
4736 case $ac_file in
4737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4739 break;;
4740 * ) break;;
4741 esac
4742done
4743else
cristy8b350f62009-11-15 23:12:43 +00004744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004746as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4747See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004748fi
cristycd4c5312009-11-22 01:19:08 +00004749rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004751$as_echo "$ac_cv_exeext" >&6; }
4752
4753rm -f conftest.$ac_ext
4754EXEEXT=$ac_cv_exeext
4755ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h. */
4758#include <stdio.h>
4759int
4760main ()
4761{
4762FILE *f = fopen ("conftest.out", "w");
4763 return ferror (f) || fclose (f) != 0;
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769ac_clean_files="$ac_clean_files conftest.out"
4770# Check that the compiler produces executables we can run. If not, either
4771# the compiler is broken, or we cross compile.
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4773$as_echo_n "checking whether we are cross compiling... " >&6; }
4774if test "$cross_compiling" != yes; then
4775 { { ac_try="$ac_link"
4776case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779esac
4780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4781$as_echo "$ac_try_echo"; } >&5
4782 (eval "$ac_link") 2>&5
4783 ac_status=$?
4784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4785 test $ac_status = 0; }
4786 if { ac_try='./conftest$ac_cv_exeext'
4787 { { case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790esac
4791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4792$as_echo "$ac_try_echo"; } >&5
4793 (eval "$ac_try") 2>&5
4794 ac_status=$?
4795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4796 test $ac_status = 0; }; }; then
4797 cross_compiling=no
4798 else
4799 if test "$cross_compiling" = maybe; then
4800 cross_compiling=yes
4801 else
4802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004804as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004805If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004806See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004807 fi
4808 fi
4809fi
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4811$as_echo "$cross_compiling" >&6; }
4812
4813rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4814ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004817if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004818 $as_echo_n "(cached) " >&6
4819else
cristy8b350f62009-11-15 23:12:43 +00004820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004821/* end confdefs.h. */
4822
4823int
4824main ()
4825{
4826
4827 ;
4828 return 0;
4829}
4830_ACEOF
4831rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004832if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004833case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836esac
cristy8b350f62009-11-15 23:12:43 +00004837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4838$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004839 (eval "$ac_compile") 2>&5
4840 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4842 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004843 for ac_file in conftest.o conftest.obj conftest.*; do
4844 test -f "$ac_file" || continue;
4845 case $ac_file in
4846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4847 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4848 break;;
4849 esac
4850done
4851else
4852 $as_echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
cristy8b350f62009-11-15 23:12:43 +00004855{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004857as_fn_error $? "cannot compute suffix of object files: cannot compile
4858See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004859fi
cristy3ed852e2009-09-05 21:47:34 +00004860rm -f conftest.$ac_cv_objext conftest.$ac_ext
4861fi
cristy8b350f62009-11-15 23:12:43 +00004862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004863$as_echo "$ac_cv_objext" >&6; }
4864OBJEXT=$ac_cv_objext
4865ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004868if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004869 $as_echo_n "(cached) " >&6
4870else
cristy8b350f62009-11-15 23:12:43 +00004871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004872/* end confdefs.h. */
4873
4874int
4875main ()
4876{
4877#ifndef __GNUC__
4878 choke me
4879#endif
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004885if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004886 ac_compiler_gnu=yes
4887else
cristy8b350f62009-11-15 23:12:43 +00004888 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004889fi
cristy3ed852e2009-09-05 21:47:34 +00004890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891ac_cv_c_compiler_gnu=$ac_compiler_gnu
4892
4893fi
cristy8b350f62009-11-15 23:12:43 +00004894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004895$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4896if test $ac_compiler_gnu = yes; then
4897 GCC=yes
4898else
4899 GCC=
4900fi
4901ac_test_CFLAGS=${CFLAGS+set}
4902ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004904$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004905if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004906 $as_echo_n "(cached) " >&6
4907else
4908 ac_save_c_werror_flag=$ac_c_werror_flag
4909 ac_c_werror_flag=yes
4910 ac_cv_prog_cc_g=no
4911 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004913/* end confdefs.h. */
4914
4915int
4916main ()
4917{
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004923if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004924 ac_cv_prog_cc_g=yes
4925else
cristy8b350f62009-11-15 23:12:43 +00004926 CFLAGS=""
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
4933
4934 ;
4935 return 0;
4936}
4937_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004938if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004939
cristy8b350f62009-11-15 23:12:43 +00004940else
4941 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004942 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004944/* end confdefs.h. */
4945
4946int
4947main ()
4948{
4949
4950 ;
4951 return 0;
4952}
4953_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004954if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004955 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004956fi
cristy3ed852e2009-09-05 21:47:34 +00004957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958fi
cristy3ed852e2009-09-05 21:47:34 +00004959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960fi
cristy3ed852e2009-09-05 21:47:34 +00004961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4963fi
cristy8b350f62009-11-15 23:12:43 +00004964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004965$as_echo "$ac_cv_prog_cc_g" >&6; }
4966if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4970 CFLAGS="-g -O2"
4971 else
4972 CFLAGS="-g"
4973 fi
4974else
4975 if test "$GCC" = yes; then
4976 CFLAGS="-O2"
4977 else
4978 CFLAGS=
4979 fi
4980fi
cristy8b350f62009-11-15 23:12:43 +00004981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004982$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004983if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004984 $as_echo_n "(cached) " >&6
4985else
4986 ac_cv_prog_cc_c89=no
4987ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004989/* end confdefs.h. */
4990#include <stdarg.h>
4991#include <stdio.h>
4992#include <sys/types.h>
4993#include <sys/stat.h>
4994/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4995struct buf { int x; };
4996FILE * (*rcsopen) (struct buf *, struct stat *, int);
4997static char *e (p, i)
4998 char **p;
4999 int i;
5000{
5001 return p[i];
5002}
5003static char *f (char * (*g) (char **, int), char **p, ...)
5004{
5005 char *s;
5006 va_list v;
5007 va_start (v,p);
5008 s = g (p, va_arg (v,int));
5009 va_end (v);
5010 return s;
5011}
5012
5013/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5014 function prototypes and stuff, but not '\xHH' hex character constants.
5015 These don't provoke an error unfortunately, instead are silently treated
5016 as 'x'. The following induces an error, until -std is added to get
5017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5018 array size at least. It's necessary to write '\x00'==0 to get something
5019 that's true only with -std. */
5020int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5021
5022/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5023 inside strings and character constants. */
5024#define FOO(x) 'x'
5025int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5026
5027int test (int i, double x);
5028struct s1 {int (*f) (int a);};
5029struct s2 {int (*f) (double a);};
5030int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5031int argc;
5032char **argv;
5033int
5034main ()
5035{
5036return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5037 ;
5038 return 0;
5039}
5040_ACEOF
5041for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5043do
5044 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005045 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005046 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005047fi
cristy3ed852e2009-09-05 21:47:34 +00005048rm -f core conftest.err conftest.$ac_objext
5049 test "x$ac_cv_prog_cc_c89" != "xno" && break
5050done
5051rm -f conftest.$ac_ext
5052CC=$ac_save_CC
5053
5054fi
5055# AC_CACHE_VAL
5056case "x$ac_cv_prog_cc_c89" in
5057 x)
cristy8b350f62009-11-15 23:12:43 +00005058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005059$as_echo "none needed" >&6; } ;;
5060 xno)
cristy8b350f62009-11-15 23:12:43 +00005061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005062$as_echo "unsupported" >&6; } ;;
5063 *)
5064 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005066$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5067esac
cristy8b350f62009-11-15 23:12:43 +00005068if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005069
cristy8b350f62009-11-15 23:12:43 +00005070fi
cristy3ed852e2009-09-05 21:47:34 +00005071
5072ac_ext=c
5073ac_cpp='$CPP $CPPFLAGS'
5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005077
cristy73bd4a52010-10-05 11:24:23 +00005078depcc="$CC" am_compiler_list=
5079
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5081$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005082if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005083 $as_echo_n "(cached) " >&6
5084else
5085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5086 # We make a subdir and do the tests there. Otherwise we can end up
5087 # making bogus files that we don't know about and never remove. For
5088 # instance it was reported that on HP-UX the gcc test will end up
5089 # making a dummy file named `D' -- because `-MD' means `put the output
5090 # in D'.
5091 mkdir conftest.dir
5092 # Copy depcomp to subdir because otherwise we won't find it if we're
5093 # using a relative directory.
5094 cp "$am_depcomp" conftest.dir
5095 cd conftest.dir
5096 # We will build objects and dependencies in a subdirectory because
5097 # it helps to detect inapplicable dependency modes. For instance
5098 # both Tru64's cc and ICC support -MD to output dependencies as a
5099 # side effect of compilation, but ICC will put the dependencies in
5100 # the current directory while Tru64 will put them in the object
5101 # directory.
5102 mkdir sub
5103
5104 am_cv_CC_dependencies_compiler_type=none
5105 if test "$am_compiler_list" = ""; then
5106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5107 fi
5108 am__universal=false
5109 case " $depcc " in #(
5110 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5111 esac
5112
5113 for depmode in $am_compiler_list; do
5114 # Setup a source with many dependencies, because some compilers
5115 # like to wrap large dependency lists on column 80 (with \), and
5116 # we should not choose a depcomp mode which is confused by this.
5117 #
5118 # We need to recreate these files for each test, as the compiler may
5119 # overwrite some of them when testing with obscure command lines.
5120 # This happens at least with the AIX C compiler.
5121 : > sub/conftest.c
5122 for i in 1 2 3 4 5 6; do
5123 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5124 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5125 # Solaris 8's {/usr,}/bin/sh.
5126 touch sub/conftst$i.h
5127 done
5128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5129
5130 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5131 # mode. It turns out that the SunPro C++ compiler does not properly
5132 # handle `-M -o', and we need to detect this. Also, some Intel
5133 # versions had trouble with output in subdirs
5134 am__obj=sub/conftest.${OBJEXT-o}
5135 am__minus_obj="-o $am__obj"
5136 case $depmode in
5137 gcc)
5138 # This depmode causes a compiler race in universal mode.
5139 test "$am__universal" = false || continue
5140 ;;
5141 nosideeffect)
5142 # after this tag, mechanisms are not by side-effect, so they'll
5143 # only be used when explicitly requested
5144 if test "x$enable_dependency_tracking" = xyes; then
5145 continue
5146 else
5147 break
5148 fi
5149 ;;
5150 msvisualcpp | msvcmsys)
5151 # This compiler won't grok `-c -o', but also, the minuso test has
5152 # not run yet. These depmodes are late enough in the game, and
5153 # so weak that their functioning should not be impacted.
5154 am__obj=conftest.${OBJEXT-o}
5155 am__minus_obj=
5156 ;;
5157 none) break ;;
5158 esac
5159 if depmode=$depmode \
5160 source=sub/conftest.c object=$am__obj \
5161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5163 >/dev/null 2>conftest.err &&
5164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5168 # icc doesn't choke on unknown options, it will just issue warnings
5169 # or remarks (even with -Werror). So we grep stderr for any message
5170 # that says an option was ignored or not supported.
5171 # When given -MP, icc 7.0 and 7.1 complain thusly:
5172 # icc: Command line warning: ignoring option '-M'; no argument required
5173 # The diagnosis changed in icc 8.0:
5174 # icc: Command line remark: option '-MP' not supported
5175 if (grep 'ignoring option' conftest.err ||
5176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5177 am_cv_CC_dependencies_compiler_type=$depmode
5178 break
5179 fi
5180 fi
5181 done
5182
5183 cd ..
5184 rm -rf conftest.dir
5185else
5186 am_cv_CC_dependencies_compiler_type=none
5187fi
5188
5189fi
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5191$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5192CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5193
5194 if
5195 test "x$enable_dependency_tracking" != xno \
5196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5197 am__fastdepCC_TRUE=
5198 am__fastdepCC_FALSE='#'
5199else
5200 am__fastdepCC_TRUE='#'
5201 am__fastdepCC_FALSE=
5202fi
5203
5204
cristy3ed852e2009-09-05 21:47:34 +00005205
cristya0b81c32010-01-22 02:54:33 +00005206ac_ext=c
5207ac_cpp='$CPP $CPPFLAGS'
5208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5212$as_echo_n "checking how to run the C preprocessor... " >&6; }
5213# On Suns, sometimes $CPP names a directory.
5214if test -n "$CPP" && test -d "$CPP"; then
5215 CPP=
5216fi
5217if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005218 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005219 $as_echo_n "(cached) " >&6
5220else
5221 # Double quotes because CPP needs to be expanded
5222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5223 do
5224 ac_preproc_ok=false
5225for ac_c_preproc_warn_flag in '' yes
5226do
5227 # Use a header file that comes with gcc, so configuring glibc
5228 # with a fresh cross-compiler works.
5229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230 # <limits.h> exists even on freestanding compilers.
5231 # On the NeXT, cc -E runs the code through the compiler's parser,
5232 # not just through cpp. "Syntax error" is here to catch this case.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h. */
5235#ifdef __STDC__
5236# include <limits.h>
5237#else
5238# include <assert.h>
5239#endif
5240 Syntax error
5241_ACEOF
5242if ac_fn_c_try_cpp "$LINENO"; then :
5243
5244else
5245 # Broken: fails on valid input.
5246continue
5247fi
cristyda16f162011-02-19 23:52:17 +00005248rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005249
5250 # OK, works on sane cases. Now check whether nonexistent headers
5251 # can be detected and how.
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h. */
5254#include <ac_nonexistent.h>
5255_ACEOF
5256if ac_fn_c_try_cpp "$LINENO"; then :
5257 # Broken: success on invalid input.
5258continue
5259else
5260 # Passes both tests.
5261ac_preproc_ok=:
5262break
5263fi
cristyda16f162011-02-19 23:52:17 +00005264rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005265
5266done
5267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005268rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005269if $ac_preproc_ok; then :
5270 break
5271fi
5272
5273 done
5274 ac_cv_prog_CPP=$CPP
5275
5276fi
5277 CPP=$ac_cv_prog_CPP
5278else
5279 ac_cv_prog_CPP=$CPP
5280fi
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5282$as_echo "$CPP" >&6; }
5283ac_preproc_ok=false
5284for ac_c_preproc_warn_flag in '' yes
5285do
5286 # Use a header file that comes with gcc, so configuring glibc
5287 # with a fresh cross-compiler works.
5288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5289 # <limits.h> exists even on freestanding compilers.
5290 # On the NeXT, cc -E runs the code through the compiler's parser,
5291 # not just through cpp. "Syntax error" is here to catch this case.
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h. */
5294#ifdef __STDC__
5295# include <limits.h>
5296#else
5297# include <assert.h>
5298#endif
5299 Syntax error
5300_ACEOF
5301if ac_fn_c_try_cpp "$LINENO"; then :
5302
5303else
5304 # Broken: fails on valid input.
5305continue
5306fi
cristyda16f162011-02-19 23:52:17 +00005307rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005308
5309 # OK, works on sane cases. Now check whether nonexistent headers
5310 # can be detected and how.
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h. */
5313#include <ac_nonexistent.h>
5314_ACEOF
5315if ac_fn_c_try_cpp "$LINENO"; then :
5316 # Broken: success on invalid input.
5317continue
5318else
5319 # Passes both tests.
5320ac_preproc_ok=:
5321break
5322fi
cristyda16f162011-02-19 23:52:17 +00005323rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005324
5325done
5326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005327rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005328if $ac_preproc_ok; then :
5329
5330else
5331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005333as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5334See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005335fi
5336
5337ac_ext=c
5338ac_cpp='$CPP $CPPFLAGS'
5339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342
5343
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5345$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005346if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005347 $as_echo_n "(cached) " >&6
5348else
5349 if test -z "$GREP"; then
5350 ac_path_GREP_found=false
5351 # Loop through the user's path and test for each of PROGNAME-LIST
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_prog in grep ggrep; do
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5360 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5361# Check for GNU ac_path_GREP and select it if it is found.
5362 # Check for GNU $ac_path_GREP
5363case `"$ac_path_GREP" --version 2>&1` in
5364*GNU*)
5365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5366*)
5367 ac_count=0
5368 $as_echo_n 0123456789 >"conftest.in"
5369 while :
5370 do
5371 cat "conftest.in" "conftest.in" >"conftest.tmp"
5372 mv "conftest.tmp" "conftest.in"
5373 cp "conftest.in" "conftest.nl"
5374 $as_echo 'GREP' >> "conftest.nl"
5375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5377 as_fn_arith $ac_count + 1 && ac_count=$as_val
5378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5379 # Best one so far, save it but keep looking for a better one
5380 ac_cv_path_GREP="$ac_path_GREP"
5381 ac_path_GREP_max=$ac_count
5382 fi
5383 # 10*(2^10) chars as input seems more than enough
5384 test $ac_count -gt 10 && break
5385 done
5386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5387esac
5388
5389 $ac_path_GREP_found && break 3
5390 done
5391 done
5392 done
5393IFS=$as_save_IFS
5394 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005395 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005396 fi
5397else
5398 ac_cv_path_GREP=$GREP
5399fi
5400
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5403$as_echo "$ac_cv_path_GREP" >&6; }
5404 GREP="$ac_cv_path_GREP"
5405
5406
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5408$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005409if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005410 $as_echo_n "(cached) " >&6
5411else
5412 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5413 then ac_cv_path_EGREP="$GREP -E"
5414 else
5415 if test -z "$EGREP"; then
5416 ac_path_EGREP_found=false
5417 # Loop through the user's path and test for each of PROGNAME-LIST
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5420do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_prog in egrep; do
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5426 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5427# Check for GNU ac_path_EGREP and select it if it is found.
5428 # Check for GNU $ac_path_EGREP
5429case `"$ac_path_EGREP" --version 2>&1` in
5430*GNU*)
5431 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5432*)
5433 ac_count=0
5434 $as_echo_n 0123456789 >"conftest.in"
5435 while :
5436 do
5437 cat "conftest.in" "conftest.in" >"conftest.tmp"
5438 mv "conftest.tmp" "conftest.in"
5439 cp "conftest.in" "conftest.nl"
5440 $as_echo 'EGREP' >> "conftest.nl"
5441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5443 as_fn_arith $ac_count + 1 && ac_count=$as_val
5444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5445 # Best one so far, save it but keep looking for a better one
5446 ac_cv_path_EGREP="$ac_path_EGREP"
5447 ac_path_EGREP_max=$ac_count
5448 fi
5449 # 10*(2^10) chars as input seems more than enough
5450 test $ac_count -gt 10 && break
5451 done
5452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5453esac
5454
5455 $ac_path_EGREP_found && break 3
5456 done
5457 done
5458 done
5459IFS=$as_save_IFS
5460 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005461 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005462 fi
5463else
5464 ac_cv_path_EGREP=$EGREP
5465fi
5466
5467 fi
5468fi
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5470$as_echo "$ac_cv_path_EGREP" >&6; }
5471 EGREP="$ac_cv_path_EGREP"
5472
5473
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5475$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005476if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005477 $as_echo_n "(cached) " >&6
5478else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481#include <stdlib.h>
5482#include <stdarg.h>
5483#include <string.h>
5484#include <float.h>
5485
5486int
5487main ()
5488{
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_cv_header_stdc=yes
5496else
5497 ac_cv_header_stdc=no
5498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500
5501if test $ac_cv_header_stdc = yes; then
5502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504/* end confdefs.h. */
5505#include <string.h>
5506
5507_ACEOF
5508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509 $EGREP "memchr" >/dev/null 2>&1; then :
5510
5511else
5512 ac_cv_header_stdc=no
5513fi
5514rm -f conftest*
5515
5516fi
5517
5518if test $ac_cv_header_stdc = yes; then
5519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h. */
5522#include <stdlib.h>
5523
5524_ACEOF
5525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "free" >/dev/null 2>&1; then :
5527
5528else
5529 ac_cv_header_stdc=no
5530fi
5531rm -f conftest*
5532
5533fi
5534
5535if test $ac_cv_header_stdc = yes; then
5536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5537 if test "$cross_compiling" = yes; then :
5538 :
5539else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h. */
5542#include <ctype.h>
5543#include <stdlib.h>
5544#if ((' ' & 0x0FF) == 0x020)
5545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5547#else
5548# define ISLOWER(c) \
5549 (('a' <= (c) && (c) <= 'i') \
5550 || ('j' <= (c) && (c) <= 'r') \
5551 || ('s' <= (c) && (c) <= 'z'))
5552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5553#endif
5554
5555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5556int
5557main ()
5558{
5559 int i;
5560 for (i = 0; i < 256; i++)
5561 if (XOR (islower (i), ISLOWER (i))
5562 || toupper (i) != TOUPPER (i))
5563 return 2;
5564 return 0;
5565}
5566_ACEOF
5567if ac_fn_c_try_run "$LINENO"; then :
5568
5569else
5570 ac_cv_header_stdc=no
5571fi
5572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5573 conftest.$ac_objext conftest.beam conftest.$ac_ext
5574fi
5575
5576fi
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5579$as_echo "$ac_cv_header_stdc" >&6; }
5580if test $ac_cv_header_stdc = yes; then
5581
5582$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5583
5584fi
5585
5586# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5588 inttypes.h stdint.h unistd.h
5589do :
5590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5591ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5592"
cristy98dddb52010-11-04 00:30:15 +00005593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005594 cat >>confdefs.h <<_ACEOF
5595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5596_ACEOF
5597
5598fi
5599
5600done
5601
5602
5603
5604 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 +00005605if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005606 MINIX=yes
5607else
5608 MINIX=
5609fi
5610
5611
5612 if test "$MINIX" = yes; then
5613
5614$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5615
5616
5617$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5618
5619
5620$as_echo "#define _MINIX 1" >>confdefs.h
5621
5622 fi
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5626$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005627if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005628 $as_echo_n "(cached) " >&6
5629else
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h. */
5632
5633# define __EXTENSIONS__ 1
5634 $ac_includes_default
5635int
5636main ()
5637{
5638
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_safe_to_define___extensions__=yes
5645else
5646 ac_cv_safe_to_define___extensions__=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5651$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5652 test $ac_cv_safe_to_define___extensions__ = yes &&
5653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5654
5655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5656
5657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5658
5659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5660
5661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5662
5663
5664
5665# Check for programs
5666ac_ext=c
5667ac_cpp='$CPP $CPPFLAGS'
5668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670ac_compiler_gnu=$ac_cv_c_compiler_gnu
5671if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5673set dummy ${ac_tool_prefix}gcc; ac_word=$2
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005676if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005677 $as_echo_n "(cached) " >&6
5678else
5679 if test -n "$CC"; then
5680 ac_cv_prog_CC="$CC" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694 done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699CC=$ac_cv_prog_CC
5700if test -n "$CC"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5702$as_echo "$CC" >&6; }
5703else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
5706fi
5707
5708
5709fi
5710if test -z "$ac_cv_prog_CC"; then
5711 ac_ct_CC=$CC
5712 # Extract the first word of "gcc", so it can be a program name with args.
5713set dummy gcc; ac_word=$2
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005716if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005717 $as_echo_n "(cached) " >&6
5718else
5719 if test -n "$ac_ct_CC"; then
5720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_ac_ct_CC="gcc"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734 done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739ac_ct_CC=$ac_cv_prog_ac_ct_CC
5740if test -n "$ac_ct_CC"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5742$as_echo "$ac_ct_CC" >&6; }
5743else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748 if test "x$ac_ct_CC" = x; then
5749 CC=""
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752yes:)
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755ac_tool_warned=yes ;;
5756esac
5757 CC=$ac_ct_CC
5758 fi
5759else
5760 CC="$ac_cv_prog_CC"
5761fi
5762
5763if test -z "$CC"; then
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5766set dummy ${ac_tool_prefix}cc; ac_word=$2
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005769if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005770 $as_echo_n "(cached) " >&6
5771else
5772 if test -n "$CC"; then
5773 ac_cv_prog_CC="$CC" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_prog_CC="${ac_tool_prefix}cc"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786done
5787 done
5788IFS=$as_save_IFS
5789
5790fi
5791fi
5792CC=$ac_cv_prog_CC
5793if test -n "$CC"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5795$as_echo "$CC" >&6; }
5796else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798$as_echo "no" >&6; }
5799fi
5800
5801
5802 fi
5803fi
5804if test -z "$CC"; then
5805 # Extract the first word of "cc", so it can be a program name with args.
5806set dummy cc; ac_word=$2
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005809if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005810 $as_echo_n "(cached) " >&6
5811else
5812 if test -n "$CC"; then
5813 ac_cv_prog_CC="$CC" # Let the user override the test.
5814else
5815 ac_prog_rejected=no
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5824 ac_prog_rejected=yes
5825 continue
5826 fi
5827 ac_cv_prog_CC="cc"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831done
5832 done
5833IFS=$as_save_IFS
5834
5835if test $ac_prog_rejected = yes; then
5836 # We found a bogon in the path, so make sure we never use it.
5837 set dummy $ac_cv_prog_CC
5838 shift
5839 if test $# != 0; then
5840 # We chose a different compiler from the bogus one.
5841 # However, it has the same basename, so the bogon will be chosen
5842 # first if we set CC to just the basename; use the full file name.
5843 shift
5844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5845 fi
5846fi
5847fi
5848fi
5849CC=$ac_cv_prog_CC
5850if test -n "$CC"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5852$as_echo "$CC" >&6; }
5853else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858
5859fi
5860if test -z "$CC"; then
5861 if test -n "$ac_tool_prefix"; then
5862 for ac_prog in cl.exe
5863 do
5864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005868if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005869 $as_echo_n "(cached) " >&6
5870else
5871 if test -n "$CC"; then
5872 ac_cv_prog_CC="$CC" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886 done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891CC=$ac_cv_prog_CC
5892if test -n "$CC"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5894$as_echo "$CC" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900
5901 test -n "$CC" && break
5902 done
5903fi
5904if test -z "$CC"; then
5905 ac_ct_CC=$CC
5906 for ac_prog in cl.exe
5907do
5908 # Extract the first word of "$ac_prog", so it can be a program name with args.
5909set dummy $ac_prog; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005912if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$ac_ct_CC"; then
5916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_ac_ct_CC="$ac_prog"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930 done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935ac_ct_CC=$ac_cv_prog_ac_ct_CC
5936if test -n "$ac_ct_CC"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5938$as_echo "$ac_ct_CC" >&6; }
5939else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945 test -n "$ac_ct_CC" && break
5946done
5947
5948 if test "x$ac_ct_CC" = x; then
5949 CC=""
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952yes:)
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955ac_tool_warned=yes ;;
5956esac
5957 CC=$ac_ct_CC
5958 fi
5959fi
5960
5961fi
5962
5963
5964test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005966as_fn_error $? "no acceptable C compiler found in \$PATH
5967See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005968
5969# Provide some information about the compiler.
5970$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5971set X $ac_compile
5972ac_compiler=$2
5973for ac_option in --version -v -V -qversion; do
5974 { { ac_try="$ac_compiler $ac_option >&5"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5980$as_echo "$ac_try_echo"; } >&5
5981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5982 ac_status=$?
5983 if test -s conftest.err; then
5984 sed '10a\
5985... rest of stderr output deleted ...
5986 10q' conftest.err >conftest.er1
5987 cat conftest.er1 >&5
5988 fi
5989 rm -f conftest.er1 conftest.err
5990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }
5992done
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5995$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005996if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005997 $as_echo_n "(cached) " >&6
5998else
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000/* end confdefs.h. */
6001
6002int
6003main ()
6004{
6005#ifndef __GNUC__
6006 choke me
6007#endif
6008
6009 ;
6010 return 0;
6011}
6012_ACEOF
6013if ac_fn_c_try_compile "$LINENO"; then :
6014 ac_compiler_gnu=yes
6015else
6016 ac_compiler_gnu=no
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019ac_cv_c_compiler_gnu=$ac_compiler_gnu
6020
6021fi
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6023$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6024if test $ac_compiler_gnu = yes; then
6025 GCC=yes
6026else
6027 GCC=
6028fi
6029ac_test_CFLAGS=${CFLAGS+set}
6030ac_save_CFLAGS=$CFLAGS
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6032$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006033if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006034 $as_echo_n "(cached) " >&6
6035else
6036 ac_save_c_werror_flag=$ac_c_werror_flag
6037 ac_c_werror_flag=yes
6038 ac_cv_prog_cc_g=no
6039 CFLAGS="-g"
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h. */
6042
6043int
6044main ()
6045{
6046
6047 ;
6048 return 0;
6049}
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then :
6052 ac_cv_prog_cc_g=yes
6053else
6054 CFLAGS=""
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h. */
6057
6058int
6059main ()
6060{
6061
6062 ;
6063 return 0;
6064}
6065_ACEOF
6066if ac_fn_c_try_compile "$LINENO"; then :
6067
6068else
6069 ac_c_werror_flag=$ac_save_c_werror_flag
6070 CFLAGS="-g"
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073
6074int
6075main ()
6076{
6077
6078 ;
6079 return 0;
6080}
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"; then :
6083 ac_cv_prog_cc_g=yes
6084fi
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086fi
6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 ac_c_werror_flag=$ac_save_c_werror_flag
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6093$as_echo "$ac_cv_prog_cc_g" >&6; }
6094if test "$ac_test_CFLAGS" = set; then
6095 CFLAGS=$ac_save_CFLAGS
6096elif test $ac_cv_prog_cc_g = yes; then
6097 if test "$GCC" = yes; then
6098 CFLAGS="-g -O2"
6099 else
6100 CFLAGS="-g"
6101 fi
6102else
6103 if test "$GCC" = yes; then
6104 CFLAGS="-O2"
6105 else
6106 CFLAGS=
6107 fi
6108fi
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6110$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006111if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006112 $as_echo_n "(cached) " >&6
6113else
6114 ac_cv_prog_cc_c89=no
6115ac_save_CC=$CC
6116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h. */
6118#include <stdarg.h>
6119#include <stdio.h>
6120#include <sys/types.h>
6121#include <sys/stat.h>
6122/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6123struct buf { int x; };
6124FILE * (*rcsopen) (struct buf *, struct stat *, int);
6125static char *e (p, i)
6126 char **p;
6127 int i;
6128{
6129 return p[i];
6130}
6131static char *f (char * (*g) (char **, int), char **p, ...)
6132{
6133 char *s;
6134 va_list v;
6135 va_start (v,p);
6136 s = g (p, va_arg (v,int));
6137 va_end (v);
6138 return s;
6139}
6140
6141/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6142 function prototypes and stuff, but not '\xHH' hex character constants.
6143 These don't provoke an error unfortunately, instead are silently treated
6144 as 'x'. The following induces an error, until -std is added to get
6145 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6146 array size at least. It's necessary to write '\x00'==0 to get something
6147 that's true only with -std. */
6148int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6149
6150/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6151 inside strings and character constants. */
6152#define FOO(x) 'x'
6153int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6154
6155int test (int i, double x);
6156struct s1 {int (*f) (int a);};
6157struct s2 {int (*f) (double a);};
6158int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6159int argc;
6160char **argv;
6161int
6162main ()
6163{
6164return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6165 ;
6166 return 0;
6167}
6168_ACEOF
6169for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6170 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6171do
6172 CC="$ac_save_CC $ac_arg"
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174 ac_cv_prog_cc_c89=$ac_arg
6175fi
6176rm -f core conftest.err conftest.$ac_objext
6177 test "x$ac_cv_prog_cc_c89" != "xno" && break
6178done
6179rm -f conftest.$ac_ext
6180CC=$ac_save_CC
6181
6182fi
6183# AC_CACHE_VAL
6184case "x$ac_cv_prog_cc_c89" in
6185 x)
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6187$as_echo "none needed" >&6; } ;;
6188 xno)
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6190$as_echo "unsupported" >&6; } ;;
6191 *)
6192 CC="$CC $ac_cv_prog_cc_c89"
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6194$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6195esac
6196if test "x$ac_cv_prog_cc_c89" != xno; then :
6197
6198fi
6199
6200ac_ext=c
6201ac_cpp='$CPP $CPPFLAGS'
6202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205
cristy73bd4a52010-10-05 11:24:23 +00006206depcc="$CC" am_compiler_list=
6207
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6209$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006210if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006211 $as_echo_n "(cached) " >&6
6212else
6213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6214 # We make a subdir and do the tests there. Otherwise we can end up
6215 # making bogus files that we don't know about and never remove. For
6216 # instance it was reported that on HP-UX the gcc test will end up
6217 # making a dummy file named `D' -- because `-MD' means `put the output
6218 # in D'.
6219 mkdir conftest.dir
6220 # Copy depcomp to subdir because otherwise we won't find it if we're
6221 # using a relative directory.
6222 cp "$am_depcomp" conftest.dir
6223 cd conftest.dir
6224 # We will build objects and dependencies in a subdirectory because
6225 # it helps to detect inapplicable dependency modes. For instance
6226 # both Tru64's cc and ICC support -MD to output dependencies as a
6227 # side effect of compilation, but ICC will put the dependencies in
6228 # the current directory while Tru64 will put them in the object
6229 # directory.
6230 mkdir sub
6231
6232 am_cv_CC_dependencies_compiler_type=none
6233 if test "$am_compiler_list" = ""; then
6234 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6235 fi
6236 am__universal=false
6237 case " $depcc " in #(
6238 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6239 esac
6240
6241 for depmode in $am_compiler_list; do
6242 # Setup a source with many dependencies, because some compilers
6243 # like to wrap large dependency lists on column 80 (with \), and
6244 # we should not choose a depcomp mode which is confused by this.
6245 #
6246 # We need to recreate these files for each test, as the compiler may
6247 # overwrite some of them when testing with obscure command lines.
6248 # This happens at least with the AIX C compiler.
6249 : > sub/conftest.c
6250 for i in 1 2 3 4 5 6; do
6251 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6252 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6253 # Solaris 8's {/usr,}/bin/sh.
6254 touch sub/conftst$i.h
6255 done
6256 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6257
6258 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6259 # mode. It turns out that the SunPro C++ compiler does not properly
6260 # handle `-M -o', and we need to detect this. Also, some Intel
6261 # versions had trouble with output in subdirs
6262 am__obj=sub/conftest.${OBJEXT-o}
6263 am__minus_obj="-o $am__obj"
6264 case $depmode in
6265 gcc)
6266 # This depmode causes a compiler race in universal mode.
6267 test "$am__universal" = false || continue
6268 ;;
6269 nosideeffect)
6270 # after this tag, mechanisms are not by side-effect, so they'll
6271 # only be used when explicitly requested
6272 if test "x$enable_dependency_tracking" = xyes; then
6273 continue
6274 else
6275 break
6276 fi
6277 ;;
6278 msvisualcpp | msvcmsys)
6279 # This compiler won't grok `-c -o', but also, the minuso test has
6280 # not run yet. These depmodes are late enough in the game, and
6281 # so weak that their functioning should not be impacted.
6282 am__obj=conftest.${OBJEXT-o}
6283 am__minus_obj=
6284 ;;
6285 none) break ;;
6286 esac
6287 if depmode=$depmode \
6288 source=sub/conftest.c object=$am__obj \
6289 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6290 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6291 >/dev/null 2>conftest.err &&
6292 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6293 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6294 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6295 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6296 # icc doesn't choke on unknown options, it will just issue warnings
6297 # or remarks (even with -Werror). So we grep stderr for any message
6298 # that says an option was ignored or not supported.
6299 # When given -MP, icc 7.0 and 7.1 complain thusly:
6300 # icc: Command line warning: ignoring option '-M'; no argument required
6301 # The diagnosis changed in icc 8.0:
6302 # icc: Command line remark: option '-MP' not supported
6303 if (grep 'ignoring option' conftest.err ||
6304 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6305 am_cv_CC_dependencies_compiler_type=$depmode
6306 break
6307 fi
6308 fi
6309 done
6310
6311 cd ..
6312 rm -rf conftest.dir
6313else
6314 am_cv_CC_dependencies_compiler_type=none
6315fi
6316
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6319$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6320CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6321
6322 if
6323 test "x$enable_dependency_tracking" != xno \
6324 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6325 am__fastdepCC_TRUE=
6326 am__fastdepCC_FALSE='#'
6327else
6328 am__fastdepCC_TRUE='#'
6329 am__fastdepCC_FALSE=
6330fi
6331
6332
cristy95646052009-11-28 23:05:30 +00006333ac_ext=cpp
6334ac_cpp='$CXXCPP $CPPFLAGS'
6335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6338if test -z "$CXX"; then
6339 if test -n "$CCC"; then
6340 CXX=$CCC
6341 else
6342 if test -n "$ac_tool_prefix"; then
6343 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6344 do
6345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006349if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006350 $as_echo_n "(cached) " >&6
6351else
6352 if test -n "$CXX"; then
6353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367 done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372CXX=$ac_cv_prog_CXX
6373if test -n "$CXX"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6375$as_echo "$CXX" >&6; }
6376else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382 test -n "$CXX" && break
6383 done
6384fi
6385if test -z "$CXX"; then
6386 ac_ct_CXX=$CXX
6387 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6388do
6389 # Extract the first word of "$ac_prog", so it can be a program name with args.
6390set dummy $ac_prog; ac_word=$2
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006393if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006394 $as_echo_n "(cached) " >&6
6395else
6396 if test -n "$ac_ct_CXX"; then
6397 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_ac_ct_CXX="$ac_prog"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411 done
6412IFS=$as_save_IFS
6413
6414fi
6415fi
6416ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6417if test -n "$ac_ct_CXX"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6419$as_echo "$ac_ct_CXX" >&6; }
6420else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426 test -n "$ac_ct_CXX" && break
6427done
6428
6429 if test "x$ac_ct_CXX" = x; then
6430 CXX="g++"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433yes:)
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436ac_tool_warned=yes ;;
6437esac
6438 CXX=$ac_ct_CXX
6439 fi
6440fi
6441
6442 fi
6443fi
6444# Provide some information about the compiler.
6445$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6446set X $ac_compile
6447ac_compiler=$2
6448for ac_option in --version -v -V -qversion; do
6449 { { ac_try="$ac_compiler $ac_option >&5"
6450case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6455$as_echo "$ac_try_echo"; } >&5
6456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6457 ac_status=$?
6458 if test -s conftest.err; then
6459 sed '10a\
6460... rest of stderr output deleted ...
6461 10q' conftest.err >conftest.er1
6462 cat conftest.er1 >&5
6463 fi
6464 rm -f conftest.er1 conftest.err
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }
6467done
6468
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6470$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006471if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006472 $as_echo_n "(cached) " >&6
6473else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h. */
6476
6477int
6478main ()
6479{
6480#ifndef __GNUC__
6481 choke me
6482#endif
6483
6484 ;
6485 return 0;
6486}
6487_ACEOF
6488if ac_fn_cxx_try_compile "$LINENO"; then :
6489 ac_compiler_gnu=yes
6490else
6491 ac_compiler_gnu=no
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6495
6496fi
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6498$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6499if test $ac_compiler_gnu = yes; then
6500 GXX=yes
6501else
6502 GXX=
6503fi
6504ac_test_CXXFLAGS=${CXXFLAGS+set}
6505ac_save_CXXFLAGS=$CXXFLAGS
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6507$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006508if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006509 $as_echo_n "(cached) " >&6
6510else
6511 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6512 ac_cxx_werror_flag=yes
6513 ac_cv_prog_cxx_g=no
6514 CXXFLAGS="-g"
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h. */
6517
6518int
6519main ()
6520{
6521
6522 ;
6523 return 0;
6524}
6525_ACEOF
6526if ac_fn_cxx_try_compile "$LINENO"; then :
6527 ac_cv_prog_cxx_g=yes
6528else
6529 CXXFLAGS=""
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h. */
6532
6533int
6534main ()
6535{
6536
6537 ;
6538 return 0;
6539}
6540_ACEOF
6541if ac_fn_cxx_try_compile "$LINENO"; then :
6542
6543else
6544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6545 CXXFLAGS="-g"
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h. */
6548
6549int
6550main ()
6551{
6552
6553 ;
6554 return 0;
6555}
6556_ACEOF
6557if ac_fn_cxx_try_compile "$LINENO"; then :
6558 ac_cv_prog_cxx_g=yes
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561fi
6562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563fi
6564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6566fi
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6568$as_echo "$ac_cv_prog_cxx_g" >&6; }
6569if test "$ac_test_CXXFLAGS" = set; then
6570 CXXFLAGS=$ac_save_CXXFLAGS
6571elif test $ac_cv_prog_cxx_g = yes; then
6572 if test "$GXX" = yes; then
6573 CXXFLAGS="-g -O2"
6574 else
6575 CXXFLAGS="-g"
6576 fi
6577else
6578 if test "$GXX" = yes; then
6579 CXXFLAGS="-O2"
6580 else
6581 CXXFLAGS=
6582 fi
6583fi
6584ac_ext=c
6585ac_cpp='$CPP $CPPFLAGS'
6586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589
cristy73bd4a52010-10-05 11:24:23 +00006590depcc="$CXX" am_compiler_list=
6591
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6593$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006594if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006595 $as_echo_n "(cached) " >&6
6596else
6597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6598 # We make a subdir and do the tests there. Otherwise we can end up
6599 # making bogus files that we don't know about and never remove. For
6600 # instance it was reported that on HP-UX the gcc test will end up
6601 # making a dummy file named `D' -- because `-MD' means `put the output
6602 # in D'.
6603 mkdir conftest.dir
6604 # Copy depcomp to subdir because otherwise we won't find it if we're
6605 # using a relative directory.
6606 cp "$am_depcomp" conftest.dir
6607 cd conftest.dir
6608 # We will build objects and dependencies in a subdirectory because
6609 # it helps to detect inapplicable dependency modes. For instance
6610 # both Tru64's cc and ICC support -MD to output dependencies as a
6611 # side effect of compilation, but ICC will put the dependencies in
6612 # the current directory while Tru64 will put them in the object
6613 # directory.
6614 mkdir sub
6615
6616 am_cv_CXX_dependencies_compiler_type=none
6617 if test "$am_compiler_list" = ""; then
6618 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6619 fi
6620 am__universal=false
6621 case " $depcc " in #(
6622 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6623 esac
6624
6625 for depmode in $am_compiler_list; do
6626 # Setup a source with many dependencies, because some compilers
6627 # like to wrap large dependency lists on column 80 (with \), and
6628 # we should not choose a depcomp mode which is confused by this.
6629 #
6630 # We need to recreate these files for each test, as the compiler may
6631 # overwrite some of them when testing with obscure command lines.
6632 # This happens at least with the AIX C compiler.
6633 : > sub/conftest.c
6634 for i in 1 2 3 4 5 6; do
6635 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6636 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6637 # Solaris 8's {/usr,}/bin/sh.
6638 touch sub/conftst$i.h
6639 done
6640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6641
6642 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6643 # mode. It turns out that the SunPro C++ compiler does not properly
6644 # handle `-M -o', and we need to detect this. Also, some Intel
6645 # versions had trouble with output in subdirs
6646 am__obj=sub/conftest.${OBJEXT-o}
6647 am__minus_obj="-o $am__obj"
6648 case $depmode in
6649 gcc)
6650 # This depmode causes a compiler race in universal mode.
6651 test "$am__universal" = false || continue
6652 ;;
6653 nosideeffect)
6654 # after this tag, mechanisms are not by side-effect, so they'll
6655 # only be used when explicitly requested
6656 if test "x$enable_dependency_tracking" = xyes; then
6657 continue
6658 else
6659 break
6660 fi
6661 ;;
6662 msvisualcpp | msvcmsys)
6663 # This compiler won't grok `-c -o', but also, the minuso test has
6664 # not run yet. These depmodes are late enough in the game, and
6665 # so weak that their functioning should not be impacted.
6666 am__obj=conftest.${OBJEXT-o}
6667 am__minus_obj=
6668 ;;
6669 none) break ;;
6670 esac
6671 if depmode=$depmode \
6672 source=sub/conftest.c object=$am__obj \
6673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6674 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6675 >/dev/null 2>conftest.err &&
6676 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6678 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6680 # icc doesn't choke on unknown options, it will just issue warnings
6681 # or remarks (even with -Werror). So we grep stderr for any message
6682 # that says an option was ignored or not supported.
6683 # When given -MP, icc 7.0 and 7.1 complain thusly:
6684 # icc: Command line warning: ignoring option '-M'; no argument required
6685 # The diagnosis changed in icc 8.0:
6686 # icc: Command line remark: option '-MP' not supported
6687 if (grep 'ignoring option' conftest.err ||
6688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6689 am_cv_CXX_dependencies_compiler_type=$depmode
6690 break
6691 fi
6692 fi
6693 done
6694
6695 cd ..
6696 rm -rf conftest.dir
6697else
6698 am_cv_CXX_dependencies_compiler_type=none
6699fi
6700
6701fi
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6703$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6704CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6705
6706 if
6707 test "x$enable_dependency_tracking" != xno \
6708 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6709 am__fastdepCXX_TRUE=
6710 am__fastdepCXX_FALSE='#'
6711else
6712 am__fastdepCXX_TRUE='#'
6713 am__fastdepCXX_FALSE=
6714fi
6715
6716
cristy8b350f62009-11-15 23:12:43 +00006717 case $ac_cv_prog_cc_stdc in #(
6718 no) :
6719 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6720 *) :
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006722$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006723if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006724 $as_echo_n "(cached) " >&6
6725else
6726 ac_cv_prog_cc_c99=no
6727ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006729/* end confdefs.h. */
6730#include <stdarg.h>
6731#include <stdbool.h>
6732#include <stdlib.h>
6733#include <wchar.h>
6734#include <stdio.h>
6735
6736// Check varargs macros. These examples are taken from C99 6.10.3.5.
6737#define debug(...) fprintf (stderr, __VA_ARGS__)
6738#define showlist(...) puts (#__VA_ARGS__)
6739#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6740static void
6741test_varargs_macros (void)
6742{
6743 int x = 1234;
6744 int y = 5678;
6745 debug ("Flag");
6746 debug ("X = %d\n", x);
6747 showlist (The first, second, and third items.);
6748 report (x>y, "x is %d but y is %d", x, y);
6749}
6750
6751// Check long long types.
6752#define BIG64 18446744073709551615ull
6753#define BIG32 4294967295ul
6754#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6755#if !BIG_OK
6756 your preprocessor is broken;
6757#endif
6758#if BIG_OK
6759#else
6760 your preprocessor is broken;
6761#endif
6762static long long int bignum = -9223372036854775807LL;
6763static unsigned long long int ubignum = BIG64;
6764
6765struct incomplete_array
6766{
6767 int datasize;
6768 double data[];
6769};
6770
6771struct named_init {
6772 int number;
6773 const wchar_t *name;
6774 double average;
6775};
6776
6777typedef const char *ccp;
6778
6779static inline int
6780test_restrict (ccp restrict text)
6781{
6782 // See if C++-style comments work.
6783 // Iterate through items via the restricted pointer.
6784 // Also check for declarations in for loops.
6785 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6786 continue;
6787 return 0;
6788}
6789
6790// Check varargs and va_copy.
6791static void
6792test_varargs (const char *format, ...)
6793{
6794 va_list args;
6795 va_start (args, format);
6796 va_list args_copy;
6797 va_copy (args_copy, args);
6798
6799 const char *str;
6800 int number;
6801 float fnumber;
6802
6803 while (*format)
6804 {
6805 switch (*format++)
6806 {
6807 case 's': // string
6808 str = va_arg (args_copy, const char *);
6809 break;
6810 case 'd': // int
6811 number = va_arg (args_copy, int);
6812 break;
6813 case 'f': // float
6814 fnumber = va_arg (args_copy, double);
6815 break;
6816 default:
6817 break;
6818 }
6819 }
6820 va_end (args_copy);
6821 va_end (args);
6822}
6823
6824int
6825main ()
6826{
6827
6828 // Check bool.
6829 _Bool success = false;
6830
6831 // Check restrict.
6832 if (test_restrict ("String literal") == 0)
6833 success = true;
6834 char *restrict newvar = "Another string";
6835
6836 // Check varargs.
6837 test_varargs ("s, d' f .", "string", 65, 34.234);
6838 test_varargs_macros ();
6839
6840 // Check flexible array members.
6841 struct incomplete_array *ia =
6842 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6843 ia->datasize = 10;
6844 for (int i = 0; i < ia->datasize; ++i)
6845 ia->data[i] = i * 1.234;
6846
6847 // Check named initializers.
6848 struct named_init ni = {
6849 .number = 34,
6850 .name = L"Test wide string",
6851 .average = 543.34343,
6852 };
6853
6854 ni.number = 58;
6855
6856 int dynamic_array[ni.number];
6857 dynamic_array[ni.number - 1] = 543;
6858
6859 // work around unused variable warnings
6860 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6861 || dynamic_array[ni.number - 1] != 543);
6862
6863 ;
6864 return 0;
6865}
6866_ACEOF
6867for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6868do
6869 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006870 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006871 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006872fi
cristy3ed852e2009-09-05 21:47:34 +00006873rm -f core conftest.err conftest.$ac_objext
6874 test "x$ac_cv_prog_cc_c99" != "xno" && break
6875done
6876rm -f conftest.$ac_ext
6877CC=$ac_save_CC
6878
6879fi
6880# AC_CACHE_VAL
6881case "x$ac_cv_prog_cc_c99" in
6882 x)
cristy8b350f62009-11-15 23:12:43 +00006883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006884$as_echo "none needed" >&6; } ;;
6885 xno)
cristy8b350f62009-11-15 23:12:43 +00006886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006887$as_echo "unsupported" >&6; } ;;
6888 *)
6889 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006891$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6892esac
cristy8b350f62009-11-15 23:12:43 +00006893if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006894 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6895else
cristy8b350f62009-11-15 23:12:43 +00006896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006897$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006898if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006899 $as_echo_n "(cached) " >&6
6900else
6901 ac_cv_prog_cc_c89=no
6902ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006904/* end confdefs.h. */
6905#include <stdarg.h>
6906#include <stdio.h>
6907#include <sys/types.h>
6908#include <sys/stat.h>
6909/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6910struct buf { int x; };
6911FILE * (*rcsopen) (struct buf *, struct stat *, int);
6912static char *e (p, i)
6913 char **p;
6914 int i;
6915{
6916 return p[i];
6917}
6918static char *f (char * (*g) (char **, int), char **p, ...)
6919{
6920 char *s;
6921 va_list v;
6922 va_start (v,p);
6923 s = g (p, va_arg (v,int));
6924 va_end (v);
6925 return s;
6926}
6927
6928/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6929 function prototypes and stuff, but not '\xHH' hex character constants.
6930 These don't provoke an error unfortunately, instead are silently treated
6931 as 'x'. The following induces an error, until -std is added to get
6932 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6933 array size at least. It's necessary to write '\x00'==0 to get something
6934 that's true only with -std. */
6935int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6936
6937/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6938 inside strings and character constants. */
6939#define FOO(x) 'x'
6940int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6941
6942int test (int i, double x);
6943struct s1 {int (*f) (int a);};
6944struct s2 {int (*f) (double a);};
6945int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6946int argc;
6947char **argv;
6948int
6949main ()
6950{
6951return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6952 ;
6953 return 0;
6954}
6955_ACEOF
6956for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6957 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6958do
6959 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006960 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006961 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006962fi
cristy3ed852e2009-09-05 21:47:34 +00006963rm -f core conftest.err conftest.$ac_objext
6964 test "x$ac_cv_prog_cc_c89" != "xno" && break
6965done
6966rm -f conftest.$ac_ext
6967CC=$ac_save_CC
6968
6969fi
6970# AC_CACHE_VAL
6971case "x$ac_cv_prog_cc_c89" in
6972 x)
cristy8b350f62009-11-15 23:12:43 +00006973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006974$as_echo "none needed" >&6; } ;;
6975 xno)
cristy8b350f62009-11-15 23:12:43 +00006976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006977$as_echo "unsupported" >&6; } ;;
6978 *)
6979 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006981$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6982esac
cristy8b350f62009-11-15 23:12:43 +00006983if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006984 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6985else
6986 ac_cv_prog_cc_stdc=no
6987fi
6988
cristy3ed852e2009-09-05 21:47:34 +00006989fi
cristy3ed852e2009-09-05 21:47:34 +00006990 ;;
6991esac
cristy8b350f62009-11-15 23:12:43 +00006992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006993$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006994 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006995 $as_echo_n "(cached) " >&6
6996fi
6997
cristy8b350f62009-11-15 23:12:43 +00006998 case $ac_cv_prog_cc_stdc in #(
6999 no) :
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7001$as_echo "unsupported" >&6; } ;; #(
7002 '') :
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7004$as_echo "none needed" >&6; } ;; #(
7005 *) :
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7008esac
7009
cristy3ed852e2009-09-05 21:47:34 +00007010ac_ext=c
7011ac_cpp='$CPP $CPPFLAGS'
7012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007016$as_echo_n "checking how to run the C preprocessor... " >&6; }
7017# On Suns, sometimes $CPP names a directory.
7018if test -n "$CPP" && test -d "$CPP"; then
7019 CPP=
7020fi
7021if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007022 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007023 $as_echo_n "(cached) " >&6
7024else
7025 # Double quotes because CPP needs to be expanded
7026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7027 do
7028 ac_preproc_ok=false
7029for ac_c_preproc_warn_flag in '' yes
7030do
7031 # Use a header file that comes with gcc, so configuring glibc
7032 # with a fresh cross-compiler works.
7033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7034 # <limits.h> exists even on freestanding compilers.
7035 # On the NeXT, cc -E runs the code through the compiler's parser,
7036 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007038/* end confdefs.h. */
7039#ifdef __STDC__
7040# include <limits.h>
7041#else
7042# include <assert.h>
7043#endif
7044 Syntax error
7045_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007046if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007047
cristy8b350f62009-11-15 23:12:43 +00007048else
cristy3ed852e2009-09-05 21:47:34 +00007049 # Broken: fails on valid input.
7050continue
7051fi
cristyda16f162011-02-19 23:52:17 +00007052rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007053
7054 # OK, works on sane cases. Now check whether nonexistent headers
7055 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007057/* end confdefs.h. */
7058#include <ac_nonexistent.h>
7059_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007060if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007061 # Broken: success on invalid input.
7062continue
7063else
cristy3ed852e2009-09-05 21:47:34 +00007064 # Passes both tests.
7065ac_preproc_ok=:
7066break
7067fi
cristyda16f162011-02-19 23:52:17 +00007068rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007069
7070done
7071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007072rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007073if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007074 break
7075fi
7076
7077 done
7078 ac_cv_prog_CPP=$CPP
7079
7080fi
7081 CPP=$ac_cv_prog_CPP
7082else
7083 ac_cv_prog_CPP=$CPP
7084fi
cristy8b350f62009-11-15 23:12:43 +00007085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007086$as_echo "$CPP" >&6; }
7087ac_preproc_ok=false
7088for ac_c_preproc_warn_flag in '' yes
7089do
7090 # Use a header file that comes with gcc, so configuring glibc
7091 # with a fresh cross-compiler works.
7092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7093 # <limits.h> exists even on freestanding compilers.
7094 # On the NeXT, cc -E runs the code through the compiler's parser,
7095 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007097/* end confdefs.h. */
7098#ifdef __STDC__
7099# include <limits.h>
7100#else
7101# include <assert.h>
7102#endif
7103 Syntax error
7104_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007105if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007106
cristy8b350f62009-11-15 23:12:43 +00007107else
cristy3ed852e2009-09-05 21:47:34 +00007108 # Broken: fails on valid input.
7109continue
7110fi
cristyda16f162011-02-19 23:52:17 +00007111rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007112
7113 # OK, works on sane cases. Now check whether nonexistent headers
7114 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007116/* end confdefs.h. */
7117#include <ac_nonexistent.h>
7118_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007119if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007120 # Broken: success on invalid input.
7121continue
7122else
cristy3ed852e2009-09-05 21:47:34 +00007123 # Passes both tests.
7124ac_preproc_ok=:
7125break
7126fi
cristyda16f162011-02-19 23:52:17 +00007127rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007128
7129done
7130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007131rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007132if $ac_preproc_ok; then :
7133
cristy3ed852e2009-09-05 21:47:34 +00007134else
cristy8b350f62009-11-15 23:12:43 +00007135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007137as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7138See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007139fi
7140
7141ac_ext=c
7142ac_cpp='$CPP $CPPFLAGS'
7143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146
cristy73bd4a52010-10-05 11:24:23 +00007147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7148$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007149if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007150 $as_echo_n "(cached) " >&6
7151else
7152 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7153 for ac_i in 1 2 3 4 5 6 7; do
7154 ac_script="$ac_script$as_nl$ac_script"
7155 done
7156 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7157 { ac_script=; unset ac_script;}
7158 if test -z "$SED"; then
7159 ac_path_SED_found=false
7160 # Loop through the user's path and test for each of PROGNAME-LIST
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_prog in sed gsed; do
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7169 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7170# Check for GNU ac_path_SED and select it if it is found.
7171 # Check for GNU $ac_path_SED
7172case `"$ac_path_SED" --version 2>&1` in
7173*GNU*)
7174 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7175*)
7176 ac_count=0
7177 $as_echo_n 0123456789 >"conftest.in"
7178 while :
7179 do
7180 cat "conftest.in" "conftest.in" >"conftest.tmp"
7181 mv "conftest.tmp" "conftest.in"
7182 cp "conftest.in" "conftest.nl"
7183 $as_echo '' >> "conftest.nl"
7184 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7186 as_fn_arith $ac_count + 1 && ac_count=$as_val
7187 if test $ac_count -gt ${ac_path_SED_max-0}; then
7188 # Best one so far, save it but keep looking for a better one
7189 ac_cv_path_SED="$ac_path_SED"
7190 ac_path_SED_max=$ac_count
7191 fi
7192 # 10*(2^10) chars as input seems more than enough
7193 test $ac_count -gt 10 && break
7194 done
7195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7196esac
7197
7198 $ac_path_SED_found && break 3
7199 done
7200 done
7201 done
7202IFS=$as_save_IFS
7203 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007204 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007205 fi
7206else
7207 ac_cv_path_SED=$SED
7208fi
7209
7210fi
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7212$as_echo "$ac_cv_path_SED" >&6; }
7213 SED="$ac_cv_path_SED"
7214 rm -f conftest.sed
7215
7216test -z "$SED" && SED=sed
7217Xsed="$SED -e 1s/^X//"
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7230$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007231if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007232 $as_echo_n "(cached) " >&6
7233else
7234 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7235 then ac_cv_path_FGREP="$GREP -F"
7236 else
7237 if test -z "$FGREP"; then
7238 ac_path_FGREP_found=false
7239 # Loop through the user's path and test for each of PROGNAME-LIST
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_prog in fgrep; do
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7248 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7249# Check for GNU ac_path_FGREP and select it if it is found.
7250 # Check for GNU $ac_path_FGREP
7251case `"$ac_path_FGREP" --version 2>&1` in
7252*GNU*)
7253 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7254*)
7255 ac_count=0
7256 $as_echo_n 0123456789 >"conftest.in"
7257 while :
7258 do
7259 cat "conftest.in" "conftest.in" >"conftest.tmp"
7260 mv "conftest.tmp" "conftest.in"
7261 cp "conftest.in" "conftest.nl"
7262 $as_echo 'FGREP' >> "conftest.nl"
7263 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7265 as_fn_arith $ac_count + 1 && ac_count=$as_val
7266 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7267 # Best one so far, save it but keep looking for a better one
7268 ac_cv_path_FGREP="$ac_path_FGREP"
7269 ac_path_FGREP_max=$ac_count
7270 fi
7271 # 10*(2^10) chars as input seems more than enough
7272 test $ac_count -gt 10 && break
7273 done
7274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7275esac
7276
7277 $ac_path_FGREP_found && break 3
7278 done
7279 done
7280 done
7281IFS=$as_save_IFS
7282 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007283 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007284 fi
7285else
7286 ac_cv_path_FGREP=$FGREP
7287fi
7288
7289 fi
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7292$as_echo "$ac_cv_path_FGREP" >&6; }
7293 FGREP="$ac_cv_path_FGREP"
7294
7295
7296test -z "$GREP" && GREP=grep
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
cristy0c60a692010-11-04 01:09:47 +00007314ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7315ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7316ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7317
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7319$as_echo_n "checking how to print strings... " >&6; }
7320# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007321if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007322 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7323 ECHO='print -r --'
7324elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7325 ECHO='printf %s\n'
7326else
7327 # Use this function as a fallback that always works.
7328 func_fallback_echo ()
7329 {
7330 eval 'cat <<_LTECHO_EOF
7331$1
7332_LTECHO_EOF'
7333 }
7334 ECHO='func_fallback_echo'
7335fi
7336
7337# func_echo_all arg...
7338# Invoke $ECHO with all args, space-separated.
7339func_echo_all ()
7340{
7341 $ECHO ""
7342}
7343
7344case "$ECHO" in
7345 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7346$as_echo "printf" >&6; } ;;
7347 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7348$as_echo "print -r" >&6; } ;;
7349 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7350$as_echo "cat" >&6; } ;;
7351esac
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
cristy73bd4a52010-10-05 11:24:23 +00007366
7367
7368# Check whether --with-gnu-ld was given.
7369if test "${with_gnu_ld+set}" = set; then :
7370 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7371else
7372 with_gnu_ld=no
7373fi
7374
7375ac_prog=ld
7376if test "$GCC" = yes; then
7377 # Check if gcc -print-prog-name=ld gives a path.
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7379$as_echo_n "checking for ld used by $CC... " >&6; }
7380 case $host in
7381 *-*-mingw*)
7382 # gcc leaves a trailing carriage return which upsets mingw
7383 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7384 *)
7385 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7386 esac
7387 case $ac_prog in
7388 # Accept absolute paths.
7389 [\\/]* | ?:[\\/]*)
7390 re_direlt='/[^/][^/]*/\.\./'
7391 # Canonicalize the pathname of ld
7392 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7393 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7394 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7395 done
7396 test -z "$LD" && LD="$ac_prog"
7397 ;;
7398 "")
7399 # If it fails, then pretend we aren't using GCC.
7400 ac_prog=ld
7401 ;;
7402 *)
7403 # If it is relative, then search for the first ld in PATH.
7404 with_gnu_ld=unknown
7405 ;;
7406 esac
7407elif test "$with_gnu_ld" = yes; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7409$as_echo_n "checking for GNU ld... " >&6; }
7410else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7412$as_echo_n "checking for non-GNU ld... " >&6; }
7413fi
cristyda16f162011-02-19 23:52:17 +00007414if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007415 $as_echo_n "(cached) " >&6
7416else
7417 if test -z "$LD"; then
7418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7419 for ac_dir in $PATH; do
7420 IFS="$lt_save_ifs"
7421 test -z "$ac_dir" && ac_dir=.
7422 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7423 lt_cv_path_LD="$ac_dir/$ac_prog"
7424 # Check to see if the program is GNU ld. I'd rather use --version,
7425 # but apparently some variants of GNU ld only accept -v.
7426 # Break only if it was the GNU/non-GNU ld that we prefer.
7427 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7428 *GNU* | *'with BFD'*)
7429 test "$with_gnu_ld" != no && break
7430 ;;
7431 *)
7432 test "$with_gnu_ld" != yes && break
7433 ;;
7434 esac
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438else
7439 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7440fi
7441fi
7442
7443LD="$lt_cv_path_LD"
7444if test -n "$LD"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7446$as_echo "$LD" >&6; }
7447else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449$as_echo "no" >&6; }
7450fi
cristy98dddb52010-11-04 00:30:15 +00007451test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7453$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007454if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007455 $as_echo_n "(cached) " >&6
7456else
7457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7458case `$LD -v 2>&1 </dev/null` in
7459*GNU* | *'with BFD'*)
7460 lt_cv_prog_gnu_ld=yes
7461 ;;
7462*)
7463 lt_cv_prog_gnu_ld=no
7464 ;;
7465esac
7466fi
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7468$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7469with_gnu_ld=$lt_cv_prog_gnu_ld
7470
7471
7472
7473
7474
7475
7476
7477
7478
cristy3ed852e2009-09-05 21:47:34 +00007479
cristy837d6dc2010-02-27 01:16:57 +00007480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7481$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007482if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007483 $as_echo_n "(cached) " >&6
7484else
7485 ac_cv_prog_cc_c99=no
7486ac_save_CC=$CC
7487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h. */
7489#include <stdarg.h>
7490#include <stdbool.h>
7491#include <stdlib.h>
7492#include <wchar.h>
7493#include <stdio.h>
7494
7495// Check varargs macros. These examples are taken from C99 6.10.3.5.
7496#define debug(...) fprintf (stderr, __VA_ARGS__)
7497#define showlist(...) puts (#__VA_ARGS__)
7498#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7499static void
7500test_varargs_macros (void)
7501{
7502 int x = 1234;
7503 int y = 5678;
7504 debug ("Flag");
7505 debug ("X = %d\n", x);
7506 showlist (The first, second, and third items.);
7507 report (x>y, "x is %d but y is %d", x, y);
7508}
7509
7510// Check long long types.
7511#define BIG64 18446744073709551615ull
7512#define BIG32 4294967295ul
7513#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7514#if !BIG_OK
7515 your preprocessor is broken;
7516#endif
7517#if BIG_OK
7518#else
7519 your preprocessor is broken;
7520#endif
7521static long long int bignum = -9223372036854775807LL;
7522static unsigned long long int ubignum = BIG64;
7523
7524struct incomplete_array
7525{
7526 int datasize;
7527 double data[];
7528};
7529
7530struct named_init {
7531 int number;
7532 const wchar_t *name;
7533 double average;
7534};
7535
7536typedef const char *ccp;
7537
7538static inline int
7539test_restrict (ccp restrict text)
7540{
7541 // See if C++-style comments work.
7542 // Iterate through items via the restricted pointer.
7543 // Also check for declarations in for loops.
7544 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7545 continue;
7546 return 0;
7547}
7548
7549// Check varargs and va_copy.
7550static void
7551test_varargs (const char *format, ...)
7552{
7553 va_list args;
7554 va_start (args, format);
7555 va_list args_copy;
7556 va_copy (args_copy, args);
7557
7558 const char *str;
7559 int number;
7560 float fnumber;
7561
7562 while (*format)
7563 {
7564 switch (*format++)
7565 {
7566 case 's': // string
7567 str = va_arg (args_copy, const char *);
7568 break;
7569 case 'd': // int
7570 number = va_arg (args_copy, int);
7571 break;
7572 case 'f': // float
7573 fnumber = va_arg (args_copy, double);
7574 break;
7575 default:
7576 break;
7577 }
7578 }
7579 va_end (args_copy);
7580 va_end (args);
7581}
7582
7583int
7584main ()
7585{
7586
7587 // Check bool.
7588 _Bool success = false;
7589
7590 // Check restrict.
7591 if (test_restrict ("String literal") == 0)
7592 success = true;
7593 char *restrict newvar = "Another string";
7594
7595 // Check varargs.
7596 test_varargs ("s, d' f .", "string", 65, 34.234);
7597 test_varargs_macros ();
7598
7599 // Check flexible array members.
7600 struct incomplete_array *ia =
7601 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7602 ia->datasize = 10;
7603 for (int i = 0; i < ia->datasize; ++i)
7604 ia->data[i] = i * 1.234;
7605
7606 // Check named initializers.
7607 struct named_init ni = {
7608 .number = 34,
7609 .name = L"Test wide string",
7610 .average = 543.34343,
7611 };
7612
7613 ni.number = 58;
7614
7615 int dynamic_array[ni.number];
7616 dynamic_array[ni.number - 1] = 543;
7617
7618 // work around unused variable warnings
7619 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7620 || dynamic_array[ni.number - 1] != 543);
7621
7622 ;
7623 return 0;
7624}
7625_ACEOF
7626for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7627do
7628 CC="$ac_save_CC $ac_arg"
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 ac_cv_prog_cc_c99=$ac_arg
7631fi
7632rm -f core conftest.err conftest.$ac_objext
7633 test "x$ac_cv_prog_cc_c99" != "xno" && break
7634done
7635rm -f conftest.$ac_ext
7636CC=$ac_save_CC
7637
7638fi
7639# AC_CACHE_VAL
7640case "x$ac_cv_prog_cc_c99" in
7641 x)
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7643$as_echo "none needed" >&6; } ;;
7644 xno)
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7646$as_echo "unsupported" >&6; } ;;
7647 *)
7648 CC="$CC $ac_cv_prog_cc_c99"
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7650$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7651esac
7652if test "x$ac_cv_prog_cc_c99" != xno; then :
7653
7654fi
7655
7656
cristy73bd4a52010-10-05 11:24:23 +00007657if test "x$CC" != xcc; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7659$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7660else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7662$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7663fi
7664set dummy $CC; ac_cc=`$as_echo "$2" |
7665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007666if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007667 $as_echo_n "(cached) " >&6
7668else
cristy73bd4a52010-10-05 11:24:23 +00007669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h. */
7671
7672int
7673main ()
7674{
7675
7676 ;
7677 return 0;
7678}
7679_ACEOF
7680# Make sure it works both with $CC and with simple cc.
7681# We do the test twice because some compilers refuse to overwrite an
7682# existing .o file with -o, though they will create one.
7683ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7684rm -f conftest2.*
7685if { { case "(($ac_try" in
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7688esac
7689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7690$as_echo "$ac_try_echo"; } >&5
7691 (eval "$ac_try") 2>&5
7692 ac_status=$?
7693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7694 test $ac_status = 0; } &&
7695 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698esac
7699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7700$as_echo "$ac_try_echo"; } >&5
7701 (eval "$ac_try") 2>&5
7702 ac_status=$?
7703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7704 test $ac_status = 0; };
7705then
7706 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7707 if test "x$CC" != xcc; then
7708 # Test first that cc exists at all.
7709 if { ac_try='cc -c conftest.$ac_ext >&5'
7710 { { case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713esac
7714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7715$as_echo "$ac_try_echo"; } >&5
7716 (eval "$ac_try") 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }; }; then
7720 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7721 rm -f conftest2.*
7722 if { { case "(($ac_try" in
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7725esac
7726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7727$as_echo "$ac_try_echo"; } >&5
7728 (eval "$ac_try") 2>&5
7729 ac_status=$?
7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731 test $ac_status = 0; } &&
7732 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735esac
7736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7737$as_echo "$ac_try_echo"; } >&5
7738 (eval "$ac_try") 2>&5
7739 ac_status=$?
7740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; };
7742 then
7743 # cc works too.
7744 :
7745 else
7746 # cc exists but doesn't like -o.
7747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7748 fi
7749 fi
7750 fi
7751else
7752 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7753fi
7754rm -f core conftest*
7755
7756fi
7757if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7759$as_echo "yes" >&6; }
7760else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763
7764$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7765
7766fi
7767
7768# FIXME: we rely on the cache variable name because
7769# there is no other way.
7770set dummy $CC
7771am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7772eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7773if test "$am_t" != yes; then
7774 # Losing compiler, so override with the script.
7775 # FIXME: It is wrong to rewrite CC.
7776 # But if we don't then we get into trouble of one sort or another.
7777 # A longer-term fix would be to have automake use am__CC in this case,
7778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7779 CC="$am_aux_dir/compile $CC"
7780fi
7781
7782
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7784$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007785if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007786 $as_echo_n "(cached) " >&6
7787else
7788 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007789 ac_ext=c
7790ac_cpp='$CPP $CPPFLAGS'
7791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794
7795 ac_save_CFLAGS="$CFLAGS"
7796for 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" #
7797do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h. */
7800
7801int
7802main ()
7803{
cristy24fc1fe2010-10-23 21:13:01 +00007804
cristy73bd4a52010-10-05 11:24:23 +00007805 ;
7806 return 0;
7807}
7808_ACEOF
7809if ac_fn_c_try_compile "$LINENO"; then :
7810 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7811fi
7812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813done
7814 CFLAGS="$ac_save_CFLAGS"
7815 ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7824$as_echo "$ac_cv_cflags_warn_all" >&6; }
7825case ".$ac_cv_cflags_warn_all" in
7826 .ok|.ok,*) ;;
7827 .|.no|.no,*)
7828 ;;
7829 *)
7830 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7831 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7832 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7833 ac_status=$?
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }
7836 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7837 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7838 ac_status=$?
7839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7840 test $ac_status = 0; }
7841 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7842 fi
7843 ;;
nicolas6237c462010-10-05 06:11:49 +00007844esac
cristy3ed852e2009-09-05 21:47:34 +00007845
cristya0b81c32010-01-22 02:54:33 +00007846
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7848$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7849set x ${MAKE-make}
7850ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007851if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007852 $as_echo_n "(cached) " >&6
7853else
7854 cat >conftest.make <<\_ACEOF
7855SHELL = /bin/sh
7856all:
7857 @echo '@@@%%%=$(MAKE)=@@@%%%'
7858_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007859# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007860case `${MAKE-make} -f conftest.make 2>/dev/null` in
7861 *@@@%%%=?*=@@@%%%*)
7862 eval ac_cv_prog_make_${ac_make}_set=yes;;
7863 *)
7864 eval ac_cv_prog_make_${ac_make}_set=no;;
7865esac
7866rm -f conftest.make
7867fi
7868if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870$as_echo "yes" >&6; }
7871 SET_MAKE=
7872else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875 SET_MAKE="MAKE=${MAKE-make}"
7876fi
7877
cristy8b350f62009-11-15 23:12:43 +00007878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007879$as_echo_n "checking whether ln -s works... " >&6; }
7880LN_S=$as_ln_s
7881if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007883$as_echo "yes" >&6; }
7884else
cristy8b350f62009-11-15 23:12:43 +00007885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007886$as_echo "no, using $LN_S" >&6; }
7887fi
7888
cristy73bd4a52010-10-05 11:24:23 +00007889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7890$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7891
7892# Check whether --with-dmalloc was given.
7893if test "${with_dmalloc+set}" = set; then :
7894 withval=$with_dmalloc; if test "$withval" = yes; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7896$as_echo "yes" >&6; }
7897
7898$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7899
7900 LIBS="$LIBS -ldmalloc"
7901 LDFLAGS="$LDFLAGS -g"
7902else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
7905fi
7906else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7914$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007915if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007916 $as_echo_n "(cached) " >&6
7917else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h. */
7920#include <stdlib.h>
7921 static void foo(void) __attribute__ ((unused));
7922 static void
7923 foo(void) {
7924 exit(1);
7925 }
7926
7927int
7928main ()
7929{
7930
7931 ;
7932 return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_compile "$LINENO"; then :
7936 ax_cv___attribute__=yes
7937else
7938 ax_cv___attribute__=no
7939
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942
7943fi
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7945$as_echo "$ax_cv___attribute__" >&6; }
7946 if test "$ax_cv___attribute__" = "yes"; then
7947
7948$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7949
7950 fi
7951
7952
7953
7954if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7955 if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7957set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007960if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007961 $as_echo_n "(cached) " >&6
7962else
7963 case $PKG_CONFIG in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7966 ;;
7967 *)
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979done
7980 done
7981IFS=$as_save_IFS
7982
7983 ;;
7984esac
7985fi
7986PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7987if test -n "$PKG_CONFIG"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7989$as_echo "$PKG_CONFIG" >&6; }
7990else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992$as_echo "no" >&6; }
7993fi
7994
7995
7996fi
7997if test -z "$ac_cv_path_PKG_CONFIG"; then
7998 ac_pt_PKG_CONFIG=$PKG_CONFIG
7999 # Extract the first word of "pkg-config", so it can be a program name with args.
8000set dummy pkg-config; ac_word=$2
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008003if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008004 $as_echo_n "(cached) " >&6
8005else
8006 case $ac_pt_PKG_CONFIG in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022done
8023 done
8024IFS=$as_save_IFS
8025
8026 ;;
8027esac
8028fi
8029ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8030if test -n "$ac_pt_PKG_CONFIG"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8032$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8033else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035$as_echo "no" >&6; }
8036fi
8037
8038 if test "x$ac_pt_PKG_CONFIG" = x; then
8039 PKG_CONFIG=""
8040 else
8041 case $cross_compiling:$ac_tool_warned in
8042yes:)
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8045ac_tool_warned=yes ;;
8046esac
8047 PKG_CONFIG=$ac_pt_PKG_CONFIG
8048 fi
8049else
8050 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8051fi
8052
8053fi
8054if test -n "$PKG_CONFIG"; then
8055 _pkg_min_version=0.9.0
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8057$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8058 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8060$as_echo "yes" >&6; }
8061 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
8064 PKG_CONFIG=""
8065 fi
8066
8067fi
cristy3ed852e2009-09-05 21:47:34 +00008068
8069#
cristy3ed852e2009-09-05 21:47:34 +00008070# Enable run-time checking.
8071#
8072# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008073if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008074 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8075else
8076 enable_bounds_checking='no'
8077fi
8078
8079
8080if test "$enable_bounds_checking" = yes; then
8081
cristy8b350f62009-11-15 23:12:43 +00008082$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008083
8084fi
8085
8086#
8087# Tests for Windows
8088#
8089
8090
cristy73bd4a52010-10-05 11:24:23 +00008091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8092$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008093if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008094 $as_echo_n "(cached) " >&6
8095else
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h. */
8098
8099int
8100main ()
8101{
8102#ifndef _MSC_VER
8103 choke me
8104#endif
8105
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110if ac_fn_c_try_compile "$LINENO"; then :
8111 ax_compiler_ms=yes
8112else
8113 ax_compiler_ms=no
8114fi
8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116ax_cv_c_compiler_ms=$ax_compiler_ms
8117
8118fi
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8120$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008121
8122GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008123native_win32_build='no'
8124cygwin_build='no'
8125case "${host_os}" in
8126 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008127 cygwin_build='yes'
8128 GDI32_LIBS='-lgdi32'
8129 ;;
8130 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008131 native_win32_build='yes'
8132 GDI32_LIBS='-lgdi32'
8133 ;;
8134esac
8135if test "${GDI32_LIBS}x" != 'x'; then
8136
cristy8b350f62009-11-15 23:12:43 +00008137$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008138
8139fi
8140
cristy73bd4a52010-10-05 11:24:23 +00008141 if test "${GDI32_LIBS}x" != 'x' ; then
8142 WINGDI32_DELEGATE_TRUE=
8143 WINGDI32_DELEGATE_FALSE='#'
8144else
8145 WINGDI32_DELEGATE_TRUE='#'
8146 WINGDI32_DELEGATE_FALSE=
8147fi
8148
8149 if test "${native_win32_build}" = 'yes' ; then
8150 WIN32_NATIVE_BUILD_TRUE=
8151 WIN32_NATIVE_BUILD_FALSE='#'
8152else
8153 WIN32_NATIVE_BUILD_TRUE='#'
8154 WIN32_NATIVE_BUILD_FALSE=
8155fi
8156
8157 if test "${cygwin_build}" = 'yes' ; then
8158 CYGWIN_BUILD_TRUE=
8159 CYGWIN_BUILD_FALSE='#'
8160else
8161 CYGWIN_BUILD_TRUE='#'
8162 CYGWIN_BUILD_FALSE=
8163fi
8164
8165 if test "x${CC}" = 'xcl.exe' ; then
8166 USING_CL_TRUE=
8167 USING_CL_FALSE='#'
8168else
8169 USING_CL_TRUE='#'
8170 USING_CL_FALSE=
8171fi
8172
cristy3ed852e2009-09-05 21:47:34 +00008173
8174WinPathScript="${srcdirfull}/winpath.sh"
8175
8176
8177#
8178# Compiler flags tweaks
8179#
8180if test "${GCC}" != "yes"; then
8181 case "${host}" in
8182 *-*-hpux* )
8183 # aCC: HP ANSI C++ B3910B A.03.34
8184 CFLAGS="${CFLAGS} -Wp,-H30000"
8185 if test -n "${CXXFLAGS}"; then
8186 CXXFLAGS='-AA'
8187 else
8188 CXXFLAGS="${CXXFLAGS} -AA"
8189 fi
8190 ;;
8191 *-dec-osf5.* )
8192 # Compaq alphaev68-dec-osf5.1 compiler
8193 if test -n "${CXXFLAGS}"; then
8194 CXXFLAGS='-std strict_ansi -noimplicit_include'
8195 else
8196 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8197 fi
8198 esac
8199fi
8200
8201# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008203$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008204if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008205 $as_echo_n "(cached) " >&6
8206else
8207
8208im_cv_ld_lazyload='none'
8209case "${host}" in
8210 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8211 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8212 im_cv_ld_lazyload='-Wl,-zlazyload'
8213 fi
8214 ;;
8215esac
8216
8217fi
cristy8b350f62009-11-15 23:12:43 +00008218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008219$as_echo "$im_cv_ld_lazyload" >&6; }
8220if test "${im_cv_ld_lazyload}" != 'none' ; then
8221 if test -z "${LDFLAGS}" ; then
8222 LDFLAGS="${im_cv_ld_lazyload}"
8223 else
8224 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8225 fi
8226fi
8227
8228case "$host" in
8229*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008230 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008231if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008232 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8233else
8234 build_osxuniversal=no
8235fi
8236
8237
8238 if test "${build_osxuniversal}" != no ; then
8239 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008240 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008241Please re-run configure with these options:
8242 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008243 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008244 fi
8245 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8246 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8247 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8248 fi
8249 ;;
8250esac
8251
8252# Enable support for threads
8253
8254# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008255if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008256 withval=$with_threads; with_threads=$withval
8257else
8258 with_threads='yes'
8259fi
8260
8261
8262have_threads=no
8263if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008264
8265
cristy73bd4a52010-10-05 11:24:23 +00008266ac_ext=c
8267ac_cpp='$CPP $CPPFLAGS'
8268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271
8272ax_pthread_ok=no
8273
8274# We used to check for pthread.h first, but this fails if pthread.h
8275# requires special compiler flags (e.g. on True64 or Sequent).
8276# It gets checked for in the link test anyway.
8277
8278# First of all, check if the user has set any of the PTHREAD_LIBS,
8279# etcetera environment variables, and if threads linking works using
8280# them:
8281if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8282 save_CFLAGS="$CFLAGS"
8283 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8284 save_LIBS="$LIBS"
8285 LIBS="$PTHREAD_LIBS $LIBS"
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8287$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h. */
8290
8291/* Override any GCC internal prototype to avoid an error.
8292 Use char because int might match the return type of a GCC
8293 builtin and then its argument prototype would still apply. */
8294#ifdef __cplusplus
8295extern "C"
8296#endif
8297char pthread_join ();
8298int
8299main ()
8300{
8301return pthread_join ();
8302 ;
8303 return 0;
8304}
8305_ACEOF
8306if ac_fn_c_try_link "$LINENO"; then :
8307 ax_pthread_ok=yes
8308fi
8309rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8312$as_echo "$ax_pthread_ok" >&6; }
8313 if test x"$ax_pthread_ok" = xno; then
8314 PTHREAD_LIBS=""
8315 PTHREAD_CFLAGS=""
8316 fi
8317 LIBS="$save_LIBS"
8318 CFLAGS="$save_CFLAGS"
8319fi
8320
8321# We must check for the threads library under a number of different
8322# names; the ordering is very important because some systems
8323# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8324# libraries is broken (non-POSIX).
8325
8326# Create a list of thread flags to try. Items starting with a "-" are
8327# C compiler flags, and other items are library names, except for "none"
8328# which indicates that we try without any flags at all, and "pthread-config"
8329# which is a program returning the flags for the Pth emulation library.
8330
8331ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8332
8333# The ordering *is* (sometimes) important. Some notes on the
8334# individual items follow:
8335
8336# pthreads: AIX (must check this before -lpthread)
8337# none: in case threads are in libc; should be tried before -Kthread and
8338# other compiler flags to prevent continual compiler warnings
8339# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8340# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8341# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8342# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8343# -pthreads: Solaris/gcc
8344# -mthreads: Mingw32/gcc, Lynx/gcc
8345# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8346# doesn't hurt to check since this sometimes defines pthreads too;
8347# also defines -D_REENTRANT)
8348# ... -mt is also the pthreads flag for HP/aCC
8349# pthread: Linux, etcetera
8350# --thread-safe: KAI C++
8351# pthread-config: use pthread-config program (for GNU Pth library)
8352
8353case "${host_cpu}-${host_os}" in
8354 *solaris*)
8355
8356 # On Solaris (at least, for some versions), libc contains stubbed
8357 # (non-functional) versions of the pthreads routines, so link-based
8358 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8359 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8360 # a function called by this macro, so we could check for that, but
8361 # who knows whether they'll stub that too in a future libc.) So,
8362 # we'll just look for -pthreads and -lpthread first:
8363
8364 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8365 ;;
8366
cristya316db12011-10-24 00:49:45 +00008367 *-darwin*)
8368 ax_pthread_flags="-pthread $ax_pthread_flags"
8369 ;;
cristy73bd4a52010-10-05 11:24:23 +00008370esac
8371
8372if test x"$ax_pthread_ok" = xno; then
8373for flag in $ax_pthread_flags; do
8374
8375 case $flag in
8376 none)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8378$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8379 ;;
8380
8381 -*)
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8383$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8384 PTHREAD_CFLAGS="$flag"
8385 ;;
8386
cristya316db12011-10-24 00:49:45 +00008387 pthread-config)
8388 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008389set dummy pthread-config; ac_word=$2
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008392if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008393 $as_echo_n "(cached) " >&6
8394else
8395 if test -n "$ax_pthread_config"; then
8396 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8397else
8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399for as_dir in $PATH
8400do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_ax_pthread_config="yes"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8408 fi
8409done
8410 done
8411IFS=$as_save_IFS
8412
8413 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8414fi
8415fi
8416ax_pthread_config=$ac_cv_prog_ax_pthread_config
8417if test -n "$ax_pthread_config"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8419$as_echo "$ax_pthread_config" >&6; }
8420else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422$as_echo "no" >&6; }
8423fi
8424
8425
cristya316db12011-10-24 00:49:45 +00008426 if test x"$ax_pthread_config" = xno; then continue; fi
8427 PTHREAD_CFLAGS="`pthread-config --cflags`"
8428 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8429 ;;
cristy73bd4a52010-10-05 11:24:23 +00008430
8431 *)
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8433$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8434 PTHREAD_LIBS="-l$flag"
8435 ;;
8436 esac
8437
8438 save_LIBS="$LIBS"
8439 save_CFLAGS="$CFLAGS"
8440 LIBS="$PTHREAD_LIBS $LIBS"
8441 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8442
8443 # Check for various functions. We must include pthread.h,
8444 # since some functions may be macros. (On the Sequent, we
8445 # need a special flag -Kthread to make this header compile.)
8446 # We check for pthread_join because it is in -lpthread on IRIX
8447 # while pthread_create is in libc. We check for pthread_attr_init
8448 # due to DEC craziness with -lpthreads. We check for
8449 # pthread_cleanup_push because it is one of the few pthread
8450 # functions on Solaris that doesn't have a non-functional libc stub.
8451 # We try pthread_create on general principles.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
8454#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008455 static void routine(void *a) { a = 0; }
8456 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008457int
8458main ()
8459{
8460pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008461 pthread_create(&th, 0, start_routine, 0);
8462 pthread_join(th, 0);
8463 pthread_attr_init(&attr);
8464 pthread_cleanup_push(routine, 0);
8465 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008466 ;
8467 return 0;
8468}
8469_ACEOF
8470if ac_fn_c_try_link "$LINENO"; then :
8471 ax_pthread_ok=yes
8472fi
8473rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475
8476 LIBS="$save_LIBS"
8477 CFLAGS="$save_CFLAGS"
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8480$as_echo "$ax_pthread_ok" >&6; }
8481 if test "x$ax_pthread_ok" = xyes; then
8482 break;
8483 fi
8484
8485 PTHREAD_LIBS=""
8486 PTHREAD_CFLAGS=""
8487done
8488fi
8489
8490# Various other checks:
8491if test "x$ax_pthread_ok" = xyes; then
8492 save_LIBS="$LIBS"
8493 LIBS="$PTHREAD_LIBS $LIBS"
8494 save_CFLAGS="$CFLAGS"
8495 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8496
8497 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008499$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008500 attr_name=unknown
8501 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008503/* end confdefs.h. */
8504#include <pthread.h>
8505int
8506main ()
8507{
cristya316db12011-10-24 00:49:45 +00008508int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008509 ;
8510 return 0;
8511}
8512_ACEOF
8513if ac_fn_c_try_link "$LINENO"; then :
8514 attr_name=$attr; break
8515fi
8516rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008518 done
cristy73bd4a52010-10-05 11:24:23 +00008519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8520$as_echo "$attr_name" >&6; }
8521 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8522
8523cat >>confdefs.h <<_ACEOF
8524#define PTHREAD_CREATE_JOINABLE $attr_name
8525_ACEOF
8526
8527 fi
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8530$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8531 flag=no
8532 case "${host_cpu}-${host_os}" in
8533 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8534 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8535 esac
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8537$as_echo "${flag}" >&6; }
8538 if test "x$flag" != xno; then
8539 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8540 fi
8541
cristya316db12011-10-24 00:49:45 +00008542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8543$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8544if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546else
8547
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h. */
8550
8551 #include <pthread.h>
8552int
8553main ()
8554{
8555int i = PTHREAD_PRIO_INHERIT;
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560if ac_fn_c_try_link "$LINENO"; then :
8561 ax_cv_PTHREAD_PRIO_INHERIT=yes
8562else
8563 ax_cv_PTHREAD_PRIO_INHERIT=no
8564fi
8565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8570$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8571 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8572
8573$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8574
8575fi
8576
cristy73bd4a52010-10-05 11:24:23 +00008577 LIBS="$save_LIBS"
8578 CFLAGS="$save_CFLAGS"
8579
8580 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008581 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008582 for ac_prog in xlc_r cc_r
8583do
8584 # Extract the first word of "$ac_prog", so it can be a program name with args.
8585set dummy $ac_prog; ac_word=$2
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008588if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008589 $as_echo_n "(cached) " >&6
8590else
8591 if test -n "$PTHREAD_CC"; then
8592 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8593else
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_PTHREAD_CC="$ac_prog"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606 done
8607IFS=$as_save_IFS
8608
8609fi
8610fi
8611PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8612if test -n "$PTHREAD_CC"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8614$as_echo "$PTHREAD_CC" >&6; }
8615else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617$as_echo "no" >&6; }
8618fi
8619
8620
8621 test -n "$PTHREAD_CC" && break
8622done
8623test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8624
8625 else
8626 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008627 fi
cristy73bd4a52010-10-05 11:24:23 +00008628else
8629 PTHREAD_CC="$CC"
8630fi
8631
8632
8633
8634
8635
8636# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8637if test x"$ax_pthread_ok" = xyes; then
8638
8639$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8640
8641 :
8642else
8643 ax_pthread_ok=no
8644
8645fi
8646ac_ext=c
8647ac_cpp='$CPP $CPPFLAGS'
8648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8650ac_compiler_gnu=$ac_cv_c_compiler_gnu
8651
8652
cristy7acf8fb2010-09-23 19:58:53 +00008653 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008654 have_threads=yes
8655 DEF_THREAD="$PTHREAD_CFLAGS"
8656 CFLAGS="$CFLAGS $DEF_THREAD"
8657 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8658 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008659 { $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 +00008660$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8661 CC="$PTHREAD_CC"
8662 fi
cristy55bf91c2010-09-24 00:29:41 +00008663
8664$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8665
cristy3ed852e2009-09-05 21:47:34 +00008666 fi
8667fi
8668
8669# Enable support for OpenMP
8670if test "$have_threads" != 'yes'; then
8671 ac_cv_prog_c_openmp=unsupported
8672fi
8673
8674 OPENMP_CFLAGS=
8675 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008676if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008677 enableval=$enable_openmp;
8678fi
8679
8680 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008682$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008683if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008684 $as_echo_n "(cached) " >&6
8685else
cristy8b350f62009-11-15 23:12:43 +00008686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008688
8689#ifndef _OPENMP
8690 choke me
8691#endif
8692#include <omp.h>
8693int main () { return omp_get_num_threads (); }
8694
8695_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008696if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008697 ac_cv_prog_c_openmp='none needed'
8698else
cristy8b350f62009-11-15 23:12:43 +00008699 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008700 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8701 ac_save_CFLAGS=$CFLAGS
8702 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008705
8706#ifndef _OPENMP
8707 choke me
8708#endif
8709#include <omp.h>
8710int main () { return omp_get_num_threads (); }
8711
8712_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008713if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008714 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008715fi
cristy8b350f62009-11-15 23:12:43 +00008716rm -f core conftest.err conftest.$ac_objext \
8717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008718 CFLAGS=$ac_save_CFLAGS
8719 if test "$ac_cv_prog_c_openmp" != unsupported; then
8720 break
8721 fi
8722 done
8723fi
cristy8b350f62009-11-15 23:12:43 +00008724rm -f core conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008726fi
cristy8b350f62009-11-15 23:12:43 +00008727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008728$as_echo "$ac_cv_prog_c_openmp" >&6; }
8729 case $ac_cv_prog_c_openmp in #(
8730 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008731 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008732 *)
cristy8b350f62009-11-15 23:12:43 +00008733 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008734 esac
8735 fi
8736
8737
8738CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8739MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8740
cristy391f1ce2010-09-09 17:23:28 +00008741if test "$enable_openmp" != no; then
8742 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8743 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8744 fi
8745fi
cristy3ed852e2009-09-05 21:47:34 +00008746
cristy736173a2009-09-20 21:18:22 +00008747# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008748
8749
cristy73bd4a52010-10-05 11:24:23 +00008750ac_ext=c
8751ac_cpp='$CPP $CPPFLAGS'
8752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8754ac_compiler_gnu=$ac_cv_c_compiler_gnu
8755
8756ax_pthread_ok=no
8757
8758# We used to check for pthread.h first, but this fails if pthread.h
8759# requires special compiler flags (e.g. on True64 or Sequent).
8760# It gets checked for in the link test anyway.
8761
8762# First of all, check if the user has set any of the PTHREAD_LIBS,
8763# etcetera environment variables, and if threads linking works using
8764# them:
8765if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8766 save_CFLAGS="$CFLAGS"
8767 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8768 save_LIBS="$LIBS"
8769 LIBS="$PTHREAD_LIBS $LIBS"
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8771$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773/* end confdefs.h. */
8774
8775/* Override any GCC internal prototype to avoid an error.
8776 Use char because int might match the return type of a GCC
8777 builtin and then its argument prototype would still apply. */
8778#ifdef __cplusplus
8779extern "C"
8780#endif
8781char pthread_join ();
8782int
8783main ()
8784{
8785return pthread_join ();
8786 ;
8787 return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_link "$LINENO"; then :
8791 ax_pthread_ok=yes
8792fi
8793rm -f core conftest.err conftest.$ac_objext \
8794 conftest$ac_exeext conftest.$ac_ext
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8796$as_echo "$ax_pthread_ok" >&6; }
8797 if test x"$ax_pthread_ok" = xno; then
8798 PTHREAD_LIBS=""
8799 PTHREAD_CFLAGS=""
8800 fi
8801 LIBS="$save_LIBS"
8802 CFLAGS="$save_CFLAGS"
8803fi
8804
8805# We must check for the threads library under a number of different
8806# names; the ordering is very important because some systems
8807# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8808# libraries is broken (non-POSIX).
8809
8810# Create a list of thread flags to try. Items starting with a "-" are
8811# C compiler flags, and other items are library names, except for "none"
8812# which indicates that we try without any flags at all, and "pthread-config"
8813# which is a program returning the flags for the Pth emulation library.
8814
8815ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8816
8817# The ordering *is* (sometimes) important. Some notes on the
8818# individual items follow:
8819
8820# pthreads: AIX (must check this before -lpthread)
8821# none: in case threads are in libc; should be tried before -Kthread and
8822# other compiler flags to prevent continual compiler warnings
8823# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8824# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8825# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8826# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8827# -pthreads: Solaris/gcc
8828# -mthreads: Mingw32/gcc, Lynx/gcc
8829# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8830# doesn't hurt to check since this sometimes defines pthreads too;
8831# also defines -D_REENTRANT)
8832# ... -mt is also the pthreads flag for HP/aCC
8833# pthread: Linux, etcetera
8834# --thread-safe: KAI C++
8835# pthread-config: use pthread-config program (for GNU Pth library)
8836
8837case "${host_cpu}-${host_os}" in
8838 *solaris*)
8839
8840 # On Solaris (at least, for some versions), libc contains stubbed
8841 # (non-functional) versions of the pthreads routines, so link-based
8842 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8843 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8844 # a function called by this macro, so we could check for that, but
8845 # who knows whether they'll stub that too in a future libc.) So,
8846 # we'll just look for -pthreads and -lpthread first:
8847
8848 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8849 ;;
8850
cristya316db12011-10-24 00:49:45 +00008851 *-darwin*)
8852 ax_pthread_flags="-pthread $ax_pthread_flags"
8853 ;;
cristy73bd4a52010-10-05 11:24:23 +00008854esac
8855
8856if test x"$ax_pthread_ok" = xno; then
8857for flag in $ax_pthread_flags; do
8858
8859 case $flag in
8860 none)
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8862$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8863 ;;
8864
8865 -*)
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8867$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8868 PTHREAD_CFLAGS="$flag"
8869 ;;
8870
cristya316db12011-10-24 00:49:45 +00008871 pthread-config)
8872 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008873set dummy pthread-config; ac_word=$2
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008876if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008877 $as_echo_n "(cached) " >&6
8878else
8879 if test -n "$ax_pthread_config"; then
8880 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_ax_pthread_config="yes"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893done
8894 done
8895IFS=$as_save_IFS
8896
8897 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8898fi
8899fi
8900ax_pthread_config=$ac_cv_prog_ax_pthread_config
8901if test -n "$ax_pthread_config"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8903$as_echo "$ax_pthread_config" >&6; }
8904else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
8907fi
8908
8909
cristya316db12011-10-24 00:49:45 +00008910 if test x"$ax_pthread_config" = xno; then continue; fi
8911 PTHREAD_CFLAGS="`pthread-config --cflags`"
8912 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8913 ;;
cristy73bd4a52010-10-05 11:24:23 +00008914
8915 *)
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8917$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8918 PTHREAD_LIBS="-l$flag"
8919 ;;
8920 esac
8921
8922 save_LIBS="$LIBS"
8923 save_CFLAGS="$CFLAGS"
8924 LIBS="$PTHREAD_LIBS $LIBS"
8925 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8926
8927 # Check for various functions. We must include pthread.h,
8928 # since some functions may be macros. (On the Sequent, we
8929 # need a special flag -Kthread to make this header compile.)
8930 # We check for pthread_join because it is in -lpthread on IRIX
8931 # while pthread_create is in libc. We check for pthread_attr_init
8932 # due to DEC craziness with -lpthreads. We check for
8933 # pthread_cleanup_push because it is one of the few pthread
8934 # functions on Solaris that doesn't have a non-functional libc stub.
8935 # We try pthread_create on general principles.
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h. */
8938#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008939 static void routine(void *a) { a = 0; }
8940 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008941int
8942main ()
8943{
8944pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008945 pthread_create(&th, 0, start_routine, 0);
8946 pthread_join(th, 0);
8947 pthread_attr_init(&attr);
8948 pthread_cleanup_push(routine, 0);
8949 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008950 ;
8951 return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_link "$LINENO"; then :
8955 ax_pthread_ok=yes
8956fi
8957rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959
8960 LIBS="$save_LIBS"
8961 CFLAGS="$save_CFLAGS"
8962
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8964$as_echo "$ax_pthread_ok" >&6; }
8965 if test "x$ax_pthread_ok" = xyes; then
8966 break;
8967 fi
8968
8969 PTHREAD_LIBS=""
8970 PTHREAD_CFLAGS=""
8971done
8972fi
8973
8974# Various other checks:
8975if test "x$ax_pthread_ok" = xyes; then
8976 save_LIBS="$LIBS"
8977 LIBS="$PTHREAD_LIBS $LIBS"
8978 save_CFLAGS="$CFLAGS"
8979 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8980
8981 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008983$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008984 attr_name=unknown
8985 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008987/* end confdefs.h. */
8988#include <pthread.h>
8989int
8990main ()
8991{
cristya316db12011-10-24 00:49:45 +00008992int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008993 ;
8994 return 0;
8995}
8996_ACEOF
8997if ac_fn_c_try_link "$LINENO"; then :
8998 attr_name=$attr; break
8999fi
9000rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009002 done
cristy73bd4a52010-10-05 11:24:23 +00009003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9004$as_echo "$attr_name" >&6; }
9005 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9006
9007cat >>confdefs.h <<_ACEOF
9008#define PTHREAD_CREATE_JOINABLE $attr_name
9009_ACEOF
9010
9011 fi
9012
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9014$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9015 flag=no
9016 case "${host_cpu}-${host_os}" in
9017 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9018 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9019 esac
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9021$as_echo "${flag}" >&6; }
9022 if test "x$flag" != xno; then
9023 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9024 fi
9025
cristya316db12011-10-24 00:49:45 +00009026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9027$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9028if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030else
9031
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h. */
9034
9035 #include <pthread.h>
9036int
9037main ()
9038{
9039int i = PTHREAD_PRIO_INHERIT;
9040 ;
9041 return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_link "$LINENO"; then :
9045 ax_cv_PTHREAD_PRIO_INHERIT=yes
9046else
9047 ax_cv_PTHREAD_PRIO_INHERIT=no
9048fi
9049rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9054$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9055 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9056
9057$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9058
9059fi
9060
cristy73bd4a52010-10-05 11:24:23 +00009061 LIBS="$save_LIBS"
9062 CFLAGS="$save_CFLAGS"
9063
9064 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009065 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009066 for ac_prog in xlc_r cc_r
9067do
9068 # Extract the first word of "$ac_prog", so it can be a program name with args.
9069set dummy $ac_prog; ac_word=$2
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009072if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009073 $as_echo_n "(cached) " >&6
9074else
9075 if test -n "$PTHREAD_CC"; then
9076 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9077else
9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_PTHREAD_CC="$ac_prog"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9088 fi
9089done
9090 done
9091IFS=$as_save_IFS
9092
9093fi
9094fi
9095PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9096if test -n "$PTHREAD_CC"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9098$as_echo "$PTHREAD_CC" >&6; }
9099else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
9102fi
9103
9104
9105 test -n "$PTHREAD_CC" && break
9106done
9107test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9108
9109 else
9110 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009111 fi
cristy73bd4a52010-10-05 11:24:23 +00009112else
9113 PTHREAD_CC="$CC"
9114fi
9115
9116
9117
9118
9119
9120# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9121if test x"$ax_pthread_ok" = xyes; then
9122
9123$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9124
9125 :
9126else
9127 ax_pthread_ok=no
9128
9129fi
9130ac_ext=c
9131ac_cpp='$CPP $CPPFLAGS'
9132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134ac_compiler_gnu=$ac_cv_c_compiler_gnu
9135
9136
9137
9138# Check whether --enable-opencl was given.
9139if test "${enable_opencl+set}" = set; then :
9140 enableval=$enable_opencl; disable_opencl=$enableval
9141else
9142 disable_opencl='yes'
9143fi
9144
9145
9146if test "$disable_opencl" = 'yes'; then
9147 ac_ext=c
9148ac_cpp='$CPP $CPPFLAGS'
9149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9151ac_compiler_gnu=$ac_cv_c_compiler_gnu
9152
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9154$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009155if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009156 $as_echo_n "(cached) " >&6
9157else
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159/* end confdefs.h. */
9160
9161int
9162main ()
9163{
9164#ifndef _MSC_VER
9165 choke me
9166#endif
9167
9168 ;
9169 return 0;
9170}
9171_ACEOF
9172if ac_fn_c_try_compile "$LINENO"; then :
9173 ax_compiler_ms=yes
9174else
9175 ax_compiler_ms=no
9176fi
9177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9178ax_cv_c_compiler_ms=$ax_compiler_ms
9179
9180fi
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9182$as_echo "$ax_cv_c_compiler_ms" >&6; }
9183 if test X$ax_compiler_ms = Xno; then :
9184 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9185fi
9186
9187 ax_save_CPPFLAGS=$CPPFLAGS
9188 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9189 for ac_header in CL/cl.h OpenCL/cl.h
9190do :
9191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9192ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009193if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009194 cat >>confdefs.h <<_ACEOF
9195#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9196_ACEOF
9197
9198fi
9199
9200done
9201
9202 CPPFLAGS=$ax_save_CPPFLAGS
9203
9204 for ac_header in windows.h
9205do :
9206 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009207if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009208 cat >>confdefs.h <<_ACEOF
9209#define HAVE_WINDOWS_H 1
9210_ACEOF
9211
9212fi
9213
9214done
9215
9216
9217
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9220$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009221if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009222 $as_echo_n "(cached) " >&6
9223else
9224 ax_cv_check_cl_libcl=no
9225 case $host_cpu in
9226 x86_64) ax_check_cl_libdir=lib64 ;;
9227 *) ax_check_cl_libdir=lib ;;
9228 esac
9229 ax_save_CPPFLAGS=$CPPFLAGS
9230 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9231 ax_save_LIBS=$LIBS
9232 LIBS=""
9233 ax_check_libs="-lOpenCL -lCL -lclparser"
9234 for ax_lib in $ax_check_libs; do
9235 if test X$ax_compiler_ms = Xyes; then :
9236 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9237else
9238 ax_try_lib=$ax_lib
9239fi
9240 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h. */
9243
9244 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9245 # include <windows.h>
9246 # endif
9247 # ifdef HAVE_CL_CL_H
9248 # include <CL/cl.h>
9249 # elif defined(HAVE_OPENCL_CL_H)
9250 # include <OpenCL/cl.h>
9251 # else
9252 # error no CL.h
9253 # endif
9254int
9255main ()
9256{
9257clCreateContextFromType(0,0,0,0,0)
9258 ;
9259 return 0;
9260}
9261_ACEOF
9262if ac_fn_c_try_link "$LINENO"; then :
9263 ax_cv_check_cl_libcl=$ax_try_lib; break
9264else
9265 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"
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h. */
9268
9269 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9270 # include <windows.h>
9271 # endif
9272 # ifdef HAVE_CL_CL_H
9273 # include <CL/cl.h>
9274 # elif defined(HAVE_OPENCL_CL_H)
9275 # include <OpenCL/cl.h>
9276 # else
9277 # error no CL.h
9278 # endif
9279int
9280main ()
9281{
9282clCreateContextFromType(0,0,0,0,0)
9283 ;
9284 return 0;
9285}
9286_ACEOF
9287if ac_fn_c_try_link "$LINENO"; then :
9288 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9289else
cristy78c5a0c2010-12-04 20:00:59 +00009290 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 +00009291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h. */
9293
9294 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9295 # include <windows.h>
9296 # endif
9297 # ifdef HAVE_CL_CL_H
9298 # include <CL/cl.h>
9299 # elif defined(HAVE_OPENCL_CL_H)
9300 # include <OpenCL/cl.h>
9301 # else
9302 # error no CL.h
9303 # endif
9304int
9305main ()
9306{
9307clCreateContextFromType(0,0,0,0,0)
9308 ;
9309 return 0;
9310}
9311_ACEOF
9312if ac_fn_c_try_link "$LINENO"; then :
9313 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9314fi
9315rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9317fi
9318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320fi
9321rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 done
9324
9325 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009326 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328/* end confdefs.h. */
9329
9330 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9331 # include <windows.h>
9332 # endif
9333 # ifdef HAVE_CL_CL_H
9334 # include <CL/cl.h>
9335 # elif defined(HAVE_OPENCL_CL_H)
9336 # include <OpenCL/cl.h>
9337 # else
9338 # error no CL.h
9339 # endif
9340int
9341main ()
9342{
9343clCreateContextFromType(0,0,0,0,0)
9344 ;
9345 return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_link "$LINENO"; then :
9349 ax_cv_check_cl_libcl=$LIBS
9350fi
9351rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353fi
9354
9355 LIBS=$ax_save_LIBS
9356 CPPFLAGS=$ax_save_CPPFLAGS
9357fi
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9359$as_echo "$ax_cv_check_cl_libcl" >&6; }
9360
9361 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9362 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9363else
9364 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9365$as_echo "#define _OPENCL 1" >>confdefs.h
9366
9367fi
9368 ac_ext=c
9369ac_cpp='$CPP $CPPFLAGS'
9370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9372ac_compiler_gnu=$ac_cv_c_compiler_gnu
9373
9374fi
9375
9376
9377
9378
cristyc7083c12009-10-14 03:16:55 +00009379CFLAGS="$CL_CFLAGS $CFLAGS"
9380LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009381
cristy391f1ce2010-09-09 17:23:28 +00009382if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009383 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009384 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9385 fi
cristyfd9dcd42010-08-08 18:07:02 +00009386fi
cristy2e8b51d2009-10-17 18:26:15 +00009387
cristy3ed852e2009-09-05 21:47:34 +00009388########
9389#
9390# Check for large file support
9391#
9392########
9393# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009394if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009395 enableval=$enable_largefile;
9396fi
9397
9398if test "$enable_largefile" != no; then
9399
cristy8b350f62009-11-15 23:12:43 +00009400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009401$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009402if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009403 $as_echo_n "(cached) " >&6
9404else
9405 ac_cv_sys_largefile_CC=no
9406 if test "$GCC" != yes; then
9407 ac_save_CC=$CC
9408 while :; do
9409 # IRIX 6.2 and later do not support large files by default,
9410 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009412/* end confdefs.h. */
9413#include <sys/types.h>
9414 /* Check that off_t can represent 2**63 - 1 correctly.
9415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9416 since some C++ compilers masquerading as C compilers
9417 incorrectly reject 9223372036854775807. */
9418#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9420 && LARGE_OFF_T % 2147483647 == 1)
9421 ? 1 : -1];
9422int
9423main ()
9424{
9425
9426 ;
9427 return 0;
9428}
9429_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009430 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009431 break
cristy3ed852e2009-09-05 21:47:34 +00009432fi
cristy3ed852e2009-09-05 21:47:34 +00009433rm -f core conftest.err conftest.$ac_objext
9434 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009435 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009436 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009437fi
cristy3ed852e2009-09-05 21:47:34 +00009438rm -f core conftest.err conftest.$ac_objext
9439 break
9440 done
9441 CC=$ac_save_CC
9442 rm -f conftest.$ac_ext
9443 fi
9444fi
cristy8b350f62009-11-15 23:12:43 +00009445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009446$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9447 if test "$ac_cv_sys_largefile_CC" != no; then
9448 CC=$CC$ac_cv_sys_largefile_CC
9449 fi
9450
cristy8b350f62009-11-15 23:12:43 +00009451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009452$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009453if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009454 $as_echo_n "(cached) " >&6
9455else
9456 while :; do
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 +00009476if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009477 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009478fi
cristy3ed852e2009-09-05 21:47:34 +00009479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009481/* end confdefs.h. */
9482#define _FILE_OFFSET_BITS 64
9483#include <sys/types.h>
9484 /* Check that off_t can represent 2**63 - 1 correctly.
9485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9486 since some C++ compilers masquerading as C compilers
9487 incorrectly reject 9223372036854775807. */
9488#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9490 && LARGE_OFF_T % 2147483647 == 1)
9491 ? 1 : -1];
9492int
9493main ()
9494{
9495
9496 ;
9497 return 0;
9498}
9499_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009500if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009501 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009502fi
cristy3ed852e2009-09-05 21:47:34 +00009503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 ac_cv_sys_file_offset_bits=unknown
9505 break
9506done
9507fi
cristy8b350f62009-11-15 23:12:43 +00009508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009509$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9510case $ac_cv_sys_file_offset_bits in #(
9511 no | unknown) ;;
9512 *)
9513cat >>confdefs.h <<_ACEOF
9514#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9515_ACEOF
9516;;
9517esac
9518rm -rf conftest*
9519 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009521$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009522if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009523 $as_echo_n "(cached) " >&6
9524else
9525 while :; do
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#include <sys/types.h>
9529 /* Check that off_t can represent 2**63 - 1 correctly.
9530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9531 since some C++ compilers masquerading as C compilers
9532 incorrectly reject 9223372036854775807. */
9533#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9535 && LARGE_OFF_T % 2147483647 == 1)
9536 ? 1 : -1];
9537int
9538main ()
9539{
9540
9541 ;
9542 return 0;
9543}
9544_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009545if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009546 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009547fi
cristy3ed852e2009-09-05 21:47:34 +00009548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009550/* end confdefs.h. */
9551#define _LARGE_FILES 1
9552#include <sys/types.h>
9553 /* Check that off_t can represent 2**63 - 1 correctly.
9554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9555 since some C++ compilers masquerading as C compilers
9556 incorrectly reject 9223372036854775807. */
9557#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9559 && LARGE_OFF_T % 2147483647 == 1)
9560 ? 1 : -1];
9561int
9562main ()
9563{
9564
9565 ;
9566 return 0;
9567}
9568_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009569if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009570 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009571fi
cristy3ed852e2009-09-05 21:47:34 +00009572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 ac_cv_sys_large_files=unknown
9574 break
9575done
9576fi
cristy8b350f62009-11-15 23:12:43 +00009577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009578$as_echo "$ac_cv_sys_large_files" >&6; }
9579case $ac_cv_sys_large_files in #(
9580 no | unknown) ;;
9581 *)
9582cat >>confdefs.h <<_ACEOF
9583#define _LARGE_FILES $ac_cv_sys_large_files
9584_ACEOF
9585;;
9586esac
9587rm -rf conftest*
9588 fi
9589fi
9590
cristy8b350f62009-11-15 23:12:43 +00009591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009592$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009593if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009594 $as_echo_n "(cached) " >&6
9595else
9596 while :; do
cristy8b350f62009-11-15 23:12:43 +00009597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009598/* end confdefs.h. */
9599#include <sys/types.h> /* for off_t */
9600 #include <stdio.h>
9601int
9602main ()
9603{
9604int (*fp) (FILE *, off_t, int) = fseeko;
9605 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9606 ;
9607 return 0;
9608}
9609_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009611 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009612fi
cristy8b350f62009-11-15 23:12:43 +00009613rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009616/* end confdefs.h. */
9617#define _LARGEFILE_SOURCE 1
9618#include <sys/types.h> /* for off_t */
9619 #include <stdio.h>
9620int
9621main ()
9622{
9623int (*fp) (FILE *, off_t, int) = fseeko;
9624 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9625 ;
9626 return 0;
9627}
9628_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009630 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009631fi
cristy8b350f62009-11-15 23:12:43 +00009632rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009634 ac_cv_sys_largefile_source=unknown
9635 break
9636done
9637fi
cristy8b350f62009-11-15 23:12:43 +00009638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009639$as_echo "$ac_cv_sys_largefile_source" >&6; }
9640case $ac_cv_sys_largefile_source in #(
9641 no | unknown) ;;
9642 *)
9643cat >>confdefs.h <<_ACEOF
9644#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9645_ACEOF
9646;;
9647esac
9648rm -rf conftest*
9649
9650# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9651# in glibc 2.1.3, but that breaks too many other things.
9652# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9653if test $ac_cv_sys_largefile_source != unknown; then
9654
cristy8b350f62009-11-15 23:12:43 +00009655$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009656
9657fi
9658
9659LFS_CPPFLAGS=''
9660if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009661 case $ac_cv_sys_file_offset_bits in
9662 no)
9663 # nothing to do here as the host supports LFS fine
9664 ;;
9665 unknown)
cristy8b350f62009-11-15 23:12:43 +00009666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009667$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009668 if test "$cross_compiling" = yes; then :
9669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009671as_fn_error $? "cannot run test program while cross compiling
9672See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009673else
cristy8b350f62009-11-15 23:12:43 +00009674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009676#include <unistd.h>
9677 main () {
9678 exit(!(sizeof(off_t) == 8));
9679 }
cristyda16f162011-02-19 23:52:17 +00009680int
9681main ()
9682{
9683
9684 ;
9685 return 0;
9686}
cristy3ed852e2009-09-05 21:47:34 +00009687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009688if ac_fn_c_try_run "$LINENO"; then :
9689 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009690
cristy09b53e12011-10-14 12:47:22 +00009691 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9692$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009693else
cristy09b53e12011-10-14 12:47:22 +00009694 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9695$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009696fi
cristy8b350f62009-11-15 23:12:43 +00009697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9698 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009699fi
9700
cristyc1e0cc12011-09-21 16:41:16 +00009701 ;;
9702 *)
9703 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9704 ;;
9705 esac
cristy3ed852e2009-09-05 21:47:34 +00009706 if test "$ac_cv_sys_large_files" != 'no'; then
9707 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9708 fi
9709 if test "$ac_cv_sys_largefile_source" != 'no'; then
9710 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9711 fi
9712fi
9713
9714
9715#
9716# Configure libtool & libltdl
9717#
9718# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009719enable_dlopen=yes
9720
9721
9722
9723case `pwd` in
9724 *\ * | *\ *)
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9726$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9727esac
9728
9729
9730
cristyda16f162011-02-19 23:52:17 +00009731macro_version='2.4'
9732macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746ltmain="$ac_aux_dir/ltmain.sh"
9747
cristy0c60a692010-11-04 01:09:47 +00009748# Backslashify metacharacters that are still active within
9749# double-quoted strings.
9750sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9751
9752# Same as above, but do not quote variable references.
9753double_quote_subst='s/\(["`\\]\)/\\\1/g'
9754
9755# Sed substitution to delay expansion of an escaped shell variable in a
9756# double_quote_subst'ed string.
9757delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9758
9759# Sed substitution to delay expansion of an escaped single quote.
9760delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9761
9762# Sed substitution to avoid accidental globbing in evaled expressions
9763no_glob_subst='s/\*/\\\*/g'
9764
cristy73bd4a52010-10-05 11:24:23 +00009765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9766$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009767if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009768 $as_echo_n "(cached) " >&6
9769else
9770 if test -n "$NM"; then
9771 # Let the user override the test.
9772 lt_cv_path_NM="$NM"
9773else
9774 lt_nm_to_check="${ac_tool_prefix}nm"
9775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9776 lt_nm_to_check="$lt_nm_to_check nm"
9777 fi
9778 for lt_tmp_nm in $lt_nm_to_check; do
9779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9780 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9781 IFS="$lt_save_ifs"
9782 test -z "$ac_dir" && ac_dir=.
9783 tmp_nm="$ac_dir/$lt_tmp_nm"
9784 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9785 # Check to see if the nm accepts a BSD-compat flag.
9786 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9787 # nm: unknown option "B" ignored
9788 # Tru64's nm complains that /dev/null is an invalid object file
9789 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9790 */dev/null* | *'Invalid file or object type'*)
9791 lt_cv_path_NM="$tmp_nm -B"
9792 break
9793 ;;
9794 *)
9795 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9796 */dev/null*)
9797 lt_cv_path_NM="$tmp_nm -p"
9798 break
9799 ;;
9800 *)
9801 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9802 continue # so that we can try to find one that supports BSD flags
9803 ;;
9804 esac
9805 ;;
9806 esac
9807 fi
9808 done
9809 IFS="$lt_save_ifs"
9810 done
9811 : ${lt_cv_path_NM=no}
9812fi
9813fi
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9815$as_echo "$lt_cv_path_NM" >&6; }
9816if test "$lt_cv_path_NM" != "no"; then
9817 NM="$lt_cv_path_NM"
9818else
9819 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009820 if test -n "$DUMPBIN"; then :
9821 # Let the user override the test.
9822 else
9823 if test -n "$ac_tool_prefix"; then
9824 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009825 do
9826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009830if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009831 $as_echo_n "(cached) " >&6
9832else
9833 if test -n "$DUMPBIN"; then
9834 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9835else
9836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH
9838do
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
9842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9843 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 break 2
9846 fi
9847done
9848 done
9849IFS=$as_save_IFS
9850
9851fi
9852fi
9853DUMPBIN=$ac_cv_prog_DUMPBIN
9854if test -n "$DUMPBIN"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9856$as_echo "$DUMPBIN" >&6; }
9857else
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859$as_echo "no" >&6; }
9860fi
9861
9862
9863 test -n "$DUMPBIN" && break
9864 done
9865fi
9866if test -z "$DUMPBIN"; then
9867 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009868 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009869do
9870 # Extract the first word of "$ac_prog", so it can be a program name with args.
9871set dummy $ac_prog; ac_word=$2
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009874if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009875 $as_echo_n "(cached) " >&6
9876else
9877 if test -n "$ac_ct_DUMPBIN"; then
9878 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9879else
9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9887 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 break 2
9890 fi
9891done
9892 done
9893IFS=$as_save_IFS
9894
9895fi
9896fi
9897ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9898if test -n "$ac_ct_DUMPBIN"; then
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9900$as_echo "$ac_ct_DUMPBIN" >&6; }
9901else
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903$as_echo "no" >&6; }
9904fi
9905
9906
9907 test -n "$ac_ct_DUMPBIN" && break
9908done
9909
9910 if test "x$ac_ct_DUMPBIN" = x; then
9911 DUMPBIN=":"
9912 else
9913 case $cross_compiling:$ac_tool_warned in
9914yes:)
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9917ac_tool_warned=yes ;;
9918esac
9919 DUMPBIN=$ac_ct_DUMPBIN
9920 fi
9921fi
9922
cristy0c60a692010-11-04 01:09:47 +00009923 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9924 *COFF*)
9925 DUMPBIN="$DUMPBIN -symbols"
9926 ;;
9927 *)
9928 DUMPBIN=:
9929 ;;
9930 esac
9931 fi
cristy73bd4a52010-10-05 11:24:23 +00009932
9933 if test "$DUMPBIN" != ":"; then
9934 NM="$DUMPBIN"
9935 fi
9936fi
9937test -z "$NM" && NM=nm
9938
9939
9940
9941
9942
9943
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9945$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009946if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009947 $as_echo_n "(cached) " >&6
9948else
9949 lt_cv_nm_interface="BSD nm"
9950 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009951 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009952 (eval "$ac_compile" 2>conftest.err)
9953 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009954 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9956 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009957 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009958 cat conftest.out >&5
9959 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9960 lt_cv_nm_interface="MS dumpbin"
9961 fi
9962 rm -f conftest*
9963fi
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9965$as_echo "$lt_cv_nm_interface" >&6; }
9966
9967# find the maximum length of command line arguments
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9969$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009970if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009971 $as_echo_n "(cached) " >&6
9972else
9973 i=0
9974 teststring="ABCD"
9975
9976 case $build_os in
9977 msdosdjgpp*)
9978 # On DJGPP, this test can blow up pretty badly due to problems in libc
9979 # (any single argument exceeding 2000 bytes causes a buffer overrun
9980 # during glob expansion). Even if it were fixed, the result of this
9981 # check would be larger than it should be.
9982 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9983 ;;
9984
9985 gnu*)
9986 # Under GNU Hurd, this test is not required because there is
9987 # no limit to the length of command line arguments.
9988 # Libtool will interpret -1 as no limit whatsoever
9989 lt_cv_sys_max_cmd_len=-1;
9990 ;;
9991
9992 cygwin* | mingw* | cegcc*)
9993 # On Win9x/ME, this test blows up -- it succeeds, but takes
9994 # about 5 minutes as the teststring grows exponentially.
9995 # Worse, since 9x/ME are not pre-emptively multitasking,
9996 # you end up with a "frozen" computer, even though with patience
9997 # the test eventually succeeds (with a max line length of 256k).
9998 # Instead, let's just punt: use the minimum linelength reported by
9999 # all of the supported platforms: 8192 (on NT/2K/XP).
10000 lt_cv_sys_max_cmd_len=8192;
10001 ;;
10002
cristy0c60a692010-11-04 01:09:47 +000010003 mint*)
10004 # On MiNT this can take a long time and run out of memory.
10005 lt_cv_sys_max_cmd_len=8192;
10006 ;;
10007
cristy73bd4a52010-10-05 11:24:23 +000010008 amigaos*)
10009 # On AmigaOS with pdksh, this test takes hours, literally.
10010 # So we just punt and use a minimum line length of 8192.
10011 lt_cv_sys_max_cmd_len=8192;
10012 ;;
10013
10014 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10015 # This has been around since 386BSD, at least. Likely further.
10016 if test -x /sbin/sysctl; then
10017 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10018 elif test -x /usr/sbin/sysctl; then
10019 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10020 else
10021 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10022 fi
10023 # And add a safety zone
10024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10026 ;;
10027
10028 interix*)
10029 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10030 lt_cv_sys_max_cmd_len=196608
10031 ;;
10032
10033 osf*)
10034 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10035 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10036 # nice to cause kernel panics so lets avoid the loop below.
10037 # First set a reasonable default.
10038 lt_cv_sys_max_cmd_len=16384
10039 #
10040 if test -x /sbin/sysconfig; then
10041 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10042 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10043 esac
10044 fi
10045 ;;
10046 sco3.2v5*)
10047 lt_cv_sys_max_cmd_len=102400
10048 ;;
10049 sysv5* | sco5v6* | sysv4.2uw2*)
10050 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10051 if test -n "$kargmax"; then
10052 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10053 else
10054 lt_cv_sys_max_cmd_len=32768
10055 fi
10056 ;;
10057 *)
10058 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10059 if test -n "$lt_cv_sys_max_cmd_len"; then
10060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10062 else
10063 # Make teststring a little bigger before we do anything with it.
10064 # a 1K string should be a reasonable start.
10065 for i in 1 2 3 4 5 6 7 8 ; do
10066 teststring=$teststring$teststring
10067 done
10068 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10069 # If test is not a shell built-in, we'll probably end up computing a
10070 # maximum length that is only half of the actual maximum length, but
10071 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010072 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10073 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010074 test $i != 17 # 1/2 MB should be enough
10075 do
10076 i=`expr $i + 1`
10077 teststring=$teststring$teststring
10078 done
10079 # Only check the string length outside the loop.
10080 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10081 teststring=
10082 # Add a significant safety factor because C++ compilers can tack on
10083 # massive amounts of additional arguments before passing them to the
10084 # linker. It appears as though 1/2 is a usable value.
10085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10086 fi
10087 ;;
10088 esac
10089
10090fi
10091
10092if test -n $lt_cv_sys_max_cmd_len ; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10094$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10095else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10097$as_echo "none" >&6; }
10098fi
10099max_cmd_len=$lt_cv_sys_max_cmd_len
10100
10101
10102
10103
10104
10105
10106: ${CP="cp -f"}
10107: ${MV="mv -f"}
10108: ${RM="rm -f"}
10109
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10111$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10112# Try some XSI features
10113xsi_shell=no
10114( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010115 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10116 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010117 && eval 'test $(( 1 + 1 )) -eq 2 \
10118 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10119 && xsi_shell=yes
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10121$as_echo "$xsi_shell" >&6; }
10122
10123
10124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10125$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10126lt_shell_append=no
10127( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10128 >/dev/null 2>&1 \
10129 && lt_shell_append=yes
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10131$as_echo "$lt_shell_append" >&6; }
10132
10133
10134if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10135 lt_unset=unset
10136else
10137 lt_unset=false
10138fi
10139
10140
10141
10142
10143
10144# test EBCDIC or ASCII
10145case `echo X|tr X '\101'` in
10146 A) # ASCII based system
10147 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10148 lt_SP2NL='tr \040 \012'
10149 lt_NL2SP='tr \015\012 \040\040'
10150 ;;
10151 *) # EBCDIC based system
10152 lt_SP2NL='tr \100 \n'
10153 lt_NL2SP='tr \r\n \100\100'
10154 ;;
10155esac
10156
10157
10158
10159
10160
10161
10162
10163
10164
cristyda16f162011-02-19 23:52:17 +000010165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10166$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10167if ${lt_cv_to_host_file_cmd+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169else
10170 case $host in
10171 *-*-mingw* )
10172 case $build in
10173 *-*-mingw* ) # actually msys
10174 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10175 ;;
10176 *-*-cygwin* )
10177 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10178 ;;
10179 * ) # otherwise, assume *nix
10180 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10181 ;;
10182 esac
10183 ;;
10184 *-*-cygwin* )
10185 case $build in
10186 *-*-mingw* ) # actually msys
10187 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10188 ;;
10189 *-*-cygwin* )
10190 lt_cv_to_host_file_cmd=func_convert_file_noop
10191 ;;
10192 * ) # otherwise, assume *nix
10193 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10194 ;;
10195 esac
10196 ;;
10197 * ) # unhandled hosts (and "normal" native builds)
10198 lt_cv_to_host_file_cmd=func_convert_file_noop
10199 ;;
10200esac
10201
10202fi
10203
10204to_host_file_cmd=$lt_cv_to_host_file_cmd
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10206$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10207
10208
10209
10210
10211
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10213$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10214if ${lt_cv_to_tool_file_cmd+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216else
10217 #assume ordinary cross tools, or native build.
10218lt_cv_to_tool_file_cmd=func_convert_file_noop
10219case $host in
10220 *-*-mingw* )
10221 case $build in
10222 *-*-mingw* ) # actually msys
10223 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10224 ;;
10225 esac
10226 ;;
10227esac
10228
10229fi
10230
10231to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10233$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10234
10235
10236
10237
10238
cristy73bd4a52010-10-05 11:24:23 +000010239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10240$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010241if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010242 $as_echo_n "(cached) " >&6
10243else
10244 lt_cv_ld_reload_flag='-r'
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10247$as_echo "$lt_cv_ld_reload_flag" >&6; }
10248reload_flag=$lt_cv_ld_reload_flag
10249case $reload_flag in
10250"" | " "*) ;;
10251*) reload_flag=" $reload_flag" ;;
10252esac
10253reload_cmds='$LD$reload_flag -o $output$reload_objs'
10254case $host_os in
cristyda16f162011-02-19 23:52:17 +000010255 cygwin* | mingw* | pw32* | cegcc*)
10256 if test "$GCC" != yes; then
10257 reload_cmds=false
10258 fi
10259 ;;
cristy73bd4a52010-10-05 11:24:23 +000010260 darwin*)
10261 if test "$GCC" = yes; then
10262 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10263 else
10264 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10265 fi
10266 ;;
10267esac
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277if test -n "$ac_tool_prefix"; then
10278 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10279set dummy ${ac_tool_prefix}objdump; ac_word=$2
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010282if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010283 $as_echo_n "(cached) " >&6
10284else
10285 if test -n "$OBJDUMP"; then
10286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10287else
10288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
10290do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299done
10300 done
10301IFS=$as_save_IFS
10302
10303fi
10304fi
10305OBJDUMP=$ac_cv_prog_OBJDUMP
10306if test -n "$OBJDUMP"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10308$as_echo "$OBJDUMP" >&6; }
10309else
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311$as_echo "no" >&6; }
10312fi
10313
10314
10315fi
10316if test -z "$ac_cv_prog_OBJDUMP"; then
10317 ac_ct_OBJDUMP=$OBJDUMP
10318 # Extract the first word of "objdump", so it can be a program name with args.
10319set dummy objdump; ac_word=$2
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010322if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010323 $as_echo_n "(cached) " >&6
10324else
10325 if test -n "$ac_ct_OBJDUMP"; then
10326 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10327else
10328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329for as_dir in $PATH
10330do
10331 IFS=$as_save_IFS
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10335 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 break 2
10338 fi
10339done
10340 done
10341IFS=$as_save_IFS
10342
10343fi
10344fi
10345ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10346if test -n "$ac_ct_OBJDUMP"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10348$as_echo "$ac_ct_OBJDUMP" >&6; }
10349else
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351$as_echo "no" >&6; }
10352fi
10353
10354 if test "x$ac_ct_OBJDUMP" = x; then
10355 OBJDUMP="false"
10356 else
10357 case $cross_compiling:$ac_tool_warned in
10358yes:)
10359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10361ac_tool_warned=yes ;;
10362esac
10363 OBJDUMP=$ac_ct_OBJDUMP
10364 fi
10365else
10366 OBJDUMP="$ac_cv_prog_OBJDUMP"
10367fi
10368
10369test -z "$OBJDUMP" && OBJDUMP=objdump
10370
10371
10372
10373
10374
10375
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10377$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010378if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010379 $as_echo_n "(cached) " >&6
10380else
10381 lt_cv_file_magic_cmd='$MAGIC_CMD'
10382lt_cv_file_magic_test_file=
10383lt_cv_deplibs_check_method='unknown'
10384# Need to set the preceding variable on all platforms that support
10385# interlibrary dependencies.
10386# 'none' -- dependencies not supported.
10387# `unknown' -- same as none, but documents that we really don't know.
10388# 'pass_all' -- all dependencies passed with no checks.
10389# 'test_compile' -- check by making test program.
10390# 'file_magic [[regex]]' -- check by looking for files in library path
10391# which responds to the $file_magic_cmd with a given extended regex.
10392# If you have `file' or equivalent on your system and you're not sure
10393# whether `pass_all' will *always* work, you probably want this one.
10394
10395case $host_os in
10396aix[4-9]*)
10397 lt_cv_deplibs_check_method=pass_all
10398 ;;
10399
10400beos*)
10401 lt_cv_deplibs_check_method=pass_all
10402 ;;
10403
10404bsdi[45]*)
10405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10406 lt_cv_file_magic_cmd='/usr/bin/file -L'
10407 lt_cv_file_magic_test_file=/shlib/libc.so
10408 ;;
10409
10410cygwin*)
10411 # func_win32_libid is a shell function defined in ltmain.sh
10412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10413 lt_cv_file_magic_cmd='func_win32_libid'
10414 ;;
10415
10416mingw* | pw32*)
10417 # Base MSYS/MinGW do not provide the 'file' command needed by
10418 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10419 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10421 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10423 lt_cv_file_magic_cmd='func_win32_libid'
10424 else
cristy0c60a692010-11-04 01:09:47 +000010425 # Keep this pattern in sync with the one in func_win32_libid.
10426 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 +000010427 lt_cv_file_magic_cmd='$OBJDUMP -f'
10428 fi
10429 ;;
10430
cristy0c60a692010-11-04 01:09:47 +000010431cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010432 # use the weaker test based on 'objdump'. See mingw*.
10433 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10434 lt_cv_file_magic_cmd='$OBJDUMP -f'
10435 ;;
10436
10437darwin* | rhapsody*)
10438 lt_cv_deplibs_check_method=pass_all
10439 ;;
10440
10441freebsd* | dragonfly*)
10442 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10443 case $host_cpu in
10444 i*86 )
10445 # Not sure whether the presence of OpenBSD here was a mistake.
10446 # Let's accept both of them until this is cleared up.
10447 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10448 lt_cv_file_magic_cmd=/usr/bin/file
10449 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10450 ;;
10451 esac
10452 else
10453 lt_cv_deplibs_check_method=pass_all
10454 fi
10455 ;;
10456
10457gnu*)
10458 lt_cv_deplibs_check_method=pass_all
10459 ;;
10460
cristy0c60a692010-11-04 01:09:47 +000010461haiku*)
10462 lt_cv_deplibs_check_method=pass_all
10463 ;;
10464
cristy73bd4a52010-10-05 11:24:23 +000010465hpux10.20* | hpux11*)
10466 lt_cv_file_magic_cmd=/usr/bin/file
10467 case $host_cpu in
10468 ia64*)
10469 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10470 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10471 ;;
10472 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010473 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 +000010474 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10475 ;;
10476 *)
cristy0c60a692010-11-04 01:09:47 +000010477 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 +000010478 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10479 ;;
10480 esac
10481 ;;
10482
10483interix[3-9]*)
10484 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10486 ;;
10487
10488irix5* | irix6* | nonstopux*)
10489 case $LD in
10490 *-32|*"-32 ") libmagic=32-bit;;
10491 *-n32|*"-n32 ") libmagic=N32;;
10492 *-64|*"-64 ") libmagic=64-bit;;
10493 *) libmagic=never-match;;
10494 esac
10495 lt_cv_deplibs_check_method=pass_all
10496 ;;
10497
10498# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010499linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010500 lt_cv_deplibs_check_method=pass_all
10501 ;;
10502
10503netbsd*)
10504 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10506 else
10507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10508 fi
10509 ;;
10510
10511newos6*)
10512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10513 lt_cv_file_magic_cmd=/usr/bin/file
10514 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10515 ;;
10516
10517*nto* | *qnx*)
10518 lt_cv_deplibs_check_method=pass_all
10519 ;;
10520
10521openbsd*)
10522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10524 else
10525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10526 fi
10527 ;;
10528
10529osf3* | osf4* | osf5*)
10530 lt_cv_deplibs_check_method=pass_all
10531 ;;
10532
10533rdos*)
10534 lt_cv_deplibs_check_method=pass_all
10535 ;;
10536
10537solaris*)
10538 lt_cv_deplibs_check_method=pass_all
10539 ;;
10540
10541sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10542 lt_cv_deplibs_check_method=pass_all
10543 ;;
10544
10545sysv4 | sysv4.3*)
10546 case $host_vendor in
10547 motorola)
10548 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]'
10549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10550 ;;
10551 ncr)
10552 lt_cv_deplibs_check_method=pass_all
10553 ;;
10554 sequent)
10555 lt_cv_file_magic_cmd='/bin/file'
10556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10557 ;;
10558 sni)
10559 lt_cv_file_magic_cmd='/bin/file'
10560 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10561 lt_cv_file_magic_test_file=/lib/libc.so
10562 ;;
10563 siemens)
10564 lt_cv_deplibs_check_method=pass_all
10565 ;;
10566 pc)
10567 lt_cv_deplibs_check_method=pass_all
10568 ;;
10569 esac
10570 ;;
10571
10572tpf*)
10573 lt_cv_deplibs_check_method=pass_all
10574 ;;
10575esac
10576
10577fi
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10579$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010580
10581file_magic_glob=
10582want_nocaseglob=no
10583if test "$build" = "$host"; then
10584 case $host_os in
10585 mingw* | pw32*)
10586 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10587 want_nocaseglob=yes
10588 else
10589 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10590 fi
10591 ;;
10592 esac
10593fi
10594
cristy73bd4a52010-10-05 11:24:23 +000010595file_magic_cmd=$lt_cv_file_magic_cmd
10596deplibs_check_method=$lt_cv_deplibs_check_method
10597test -z "$deplibs_check_method" && deplibs_check_method=unknown
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
cristyda16f162011-02-19 23:52:17 +000010610
10611
10612
10613
10614
10615
10616
10617
10618
10619
cristy73bd4a52010-10-05 11:24:23 +000010620if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010621 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10622set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010625if ${ac_cv_prog_DLLTOOL+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627else
10628 if test -n "$DLLTOOL"; then
10629 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10630else
10631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632for as_dir in $PATH
10633do
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10638 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10641 fi
10642done
10643 done
10644IFS=$as_save_IFS
10645
10646fi
10647fi
10648DLLTOOL=$ac_cv_prog_DLLTOOL
10649if test -n "$DLLTOOL"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10651$as_echo "$DLLTOOL" >&6; }
10652else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654$as_echo "no" >&6; }
10655fi
10656
10657
10658fi
10659if test -z "$ac_cv_prog_DLLTOOL"; then
10660 ac_ct_DLLTOOL=$DLLTOOL
10661 # Extract the first word of "dlltool", so it can be a program name with args.
10662set dummy dlltool; ac_word=$2
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664$as_echo_n "checking for $ac_word... " >&6; }
10665if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10666 $as_echo_n "(cached) " >&6
10667else
10668 if test -n "$ac_ct_DLLTOOL"; then
10669 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10670else
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683 done
10684IFS=$as_save_IFS
10685
10686fi
10687fi
10688ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10689if test -n "$ac_ct_DLLTOOL"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10691$as_echo "$ac_ct_DLLTOOL" >&6; }
10692else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
10695fi
10696
10697 if test "x$ac_ct_DLLTOOL" = x; then
10698 DLLTOOL="false"
10699 else
10700 case $cross_compiling:$ac_tool_warned in
10701yes:)
10702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10704ac_tool_warned=yes ;;
10705esac
10706 DLLTOOL=$ac_ct_DLLTOOL
10707 fi
10708else
10709 DLLTOOL="$ac_cv_prog_DLLTOOL"
10710fi
10711
10712test -z "$DLLTOOL" && DLLTOOL=dlltool
10713
10714
10715
10716
10717
10718
10719
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10721$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10722if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724else
10725 lt_cv_sharedlib_from_linklib_cmd='unknown'
10726
10727case $host_os in
10728cygwin* | mingw* | pw32* | cegcc*)
10729 # two different shell functions defined in ltmain.sh
10730 # decide which to use based on capabilities of $DLLTOOL
10731 case `$DLLTOOL --help 2>&1` in
10732 *--identify-strict*)
10733 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10734 ;;
10735 *)
10736 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10737 ;;
10738 esac
10739 ;;
10740*)
10741 # fallback: assume linklib IS sharedlib
10742 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10743 ;;
10744esac
10745
10746fi
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10748$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10749sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10750test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10751
10752
10753
10754
10755
10756
10757
10758if test -n "$ac_tool_prefix"; then
10759 for ac_prog in ar
10760 do
10761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10762set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764$as_echo_n "checking for $ac_word... " >&6; }
10765if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010766 $as_echo_n "(cached) " >&6
10767else
10768 if test -n "$AR"; then
10769 ac_cv_prog_AR="$AR" # Let the user override the test.
10770else
10771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772for as_dir in $PATH
10773do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 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 +000010778 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10781 fi
10782done
10783 done
10784IFS=$as_save_IFS
10785
10786fi
10787fi
10788AR=$ac_cv_prog_AR
10789if test -n "$AR"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10791$as_echo "$AR" >&6; }
10792else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794$as_echo "no" >&6; }
10795fi
10796
10797
cristyda16f162011-02-19 23:52:17 +000010798 test -n "$AR" && break
10799 done
cristy73bd4a52010-10-05 11:24:23 +000010800fi
cristyda16f162011-02-19 23:52:17 +000010801if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010802 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010803 for ac_prog in ar
10804do
10805 # Extract the first word of "$ac_prog", so it can be a program name with args.
10806set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010809if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010810 $as_echo_n "(cached) " >&6
10811else
10812 if test -n "$ac_ct_AR"; then
10813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10814else
10815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816for as_dir in $PATH
10817do
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 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 +000010822 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10825 fi
10826done
10827 done
10828IFS=$as_save_IFS
10829
10830fi
10831fi
10832ac_ct_AR=$ac_cv_prog_ac_ct_AR
10833if test -n "$ac_ct_AR"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10835$as_echo "$ac_ct_AR" >&6; }
10836else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838$as_echo "no" >&6; }
10839fi
10840
cristyda16f162011-02-19 23:52:17 +000010841
10842 test -n "$ac_ct_AR" && break
10843done
10844
cristy73bd4a52010-10-05 11:24:23 +000010845 if test "x$ac_ct_AR" = x; then
10846 AR="false"
10847 else
10848 case $cross_compiling:$ac_tool_warned in
10849yes:)
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10852ac_tool_warned=yes ;;
10853esac
10854 AR=$ac_ct_AR
10855 fi
cristy73bd4a52010-10-05 11:24:23 +000010856fi
10857
cristyda16f162011-02-19 23:52:17 +000010858: ${AR=ar}
10859: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
cristyda16f162011-02-19 23:52:17 +000010871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10872$as_echo_n "checking for archiver @FILE support... " >&6; }
10873if ${lt_cv_ar_at_file+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875else
10876 lt_cv_ar_at_file=no
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h. */
10879
10880int
10881main ()
10882{
10883
10884 ;
10885 return 0;
10886}
10887_ACEOF
10888if ac_fn_c_try_compile "$LINENO"; then :
10889 echo conftest.$ac_objext > conftest.lst
10890 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10892 (eval $lt_ar_try) 2>&5
10893 ac_status=$?
10894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10895 test $ac_status = 0; }
10896 if test "$ac_status" -eq 0; then
10897 # Ensure the archiver fails upon bogus file names.
10898 rm -f conftest.$ac_objext libconftest.a
10899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10900 (eval $lt_ar_try) 2>&5
10901 ac_status=$?
10902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10903 test $ac_status = 0; }
10904 if test "$ac_status" -ne 0; then
10905 lt_cv_ar_at_file=@
10906 fi
10907 fi
10908 rm -f conftest.* libconftest.a
10909
10910fi
10911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912
10913fi
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10915$as_echo "$lt_cv_ar_at_file" >&6; }
10916
10917if test "x$lt_cv_ar_at_file" = xno; then
10918 archiver_list_spec=
10919else
10920 archiver_list_spec=$lt_cv_ar_at_file
10921fi
10922
10923
10924
10925
10926
10927
10928
cristy73bd4a52010-10-05 11:24:23 +000010929if test -n "$ac_tool_prefix"; then
10930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10931set dummy ${ac_tool_prefix}strip; ac_word=$2
10932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010934if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010935 $as_echo_n "(cached) " >&6
10936else
10937 if test -n "$STRIP"; then
10938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10939else
10940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $PATH
10942do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951done
10952 done
10953IFS=$as_save_IFS
10954
10955fi
10956fi
10957STRIP=$ac_cv_prog_STRIP
10958if test -n "$STRIP"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10960$as_echo "$STRIP" >&6; }
10961else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963$as_echo "no" >&6; }
10964fi
10965
10966
10967fi
10968if test -z "$ac_cv_prog_STRIP"; then
10969 ac_ct_STRIP=$STRIP
10970 # Extract the first word of "strip", so it can be a program name with args.
10971set dummy strip; ac_word=$2
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010974if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010975 $as_echo_n "(cached) " >&6
10976else
10977 if test -n "$ac_ct_STRIP"; then
10978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10979else
10980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $PATH
10982do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_prog_ac_ct_STRIP="strip"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10990 fi
10991done
10992 done
10993IFS=$as_save_IFS
10994
10995fi
10996fi
10997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10998if test -n "$ac_ct_STRIP"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11000$as_echo "$ac_ct_STRIP" >&6; }
11001else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
11004fi
11005
11006 if test "x$ac_ct_STRIP" = x; then
11007 STRIP=":"
11008 else
11009 case $cross_compiling:$ac_tool_warned in
11010yes:)
11011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11013ac_tool_warned=yes ;;
11014esac
11015 STRIP=$ac_ct_STRIP
11016 fi
11017else
11018 STRIP="$ac_cv_prog_STRIP"
11019fi
11020
11021test -z "$STRIP" && STRIP=:
11022
11023
11024
11025
11026
11027
11028if test -n "$ac_tool_prefix"; then
11029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11030set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011033if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011034 $as_echo_n "(cached) " >&6
11035else
11036 if test -n "$RANLIB"; then
11037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11038else
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050done
11051 done
11052IFS=$as_save_IFS
11053
11054fi
11055fi
11056RANLIB=$ac_cv_prog_RANLIB
11057if test -n "$RANLIB"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11059$as_echo "$RANLIB" >&6; }
11060else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
11063fi
11064
11065
11066fi
11067if test -z "$ac_cv_prog_RANLIB"; then
11068 ac_ct_RANLIB=$RANLIB
11069 # Extract the first word of "ranlib", so it can be a program name with args.
11070set dummy ranlib; ac_word=$2
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011073if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011074 $as_echo_n "(cached) " >&6
11075else
11076 if test -n "$ac_ct_RANLIB"; then
11077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11086 ac_cv_prog_ac_ct_RANLIB="ranlib"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090done
11091 done
11092IFS=$as_save_IFS
11093
11094fi
11095fi
11096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11097if test -n "$ac_ct_RANLIB"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11099$as_echo "$ac_ct_RANLIB" >&6; }
11100else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102$as_echo "no" >&6; }
11103fi
11104
11105 if test "x$ac_ct_RANLIB" = x; then
11106 RANLIB=":"
11107 else
11108 case $cross_compiling:$ac_tool_warned in
11109yes:)
11110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11112ac_tool_warned=yes ;;
11113esac
11114 RANLIB=$ac_ct_RANLIB
11115 fi
11116else
11117 RANLIB="$ac_cv_prog_RANLIB"
11118fi
11119
11120test -z "$RANLIB" && RANLIB=:
11121
11122
11123
11124
11125
11126
11127# Determine commands to create old-style static archives.
11128old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11129old_postinstall_cmds='chmod 644 $oldlib'
11130old_postuninstall_cmds=
11131
11132if test -n "$RANLIB"; then
11133 case $host_os in
11134 openbsd*)
11135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11136 ;;
11137 *)
11138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11139 ;;
11140 esac
11141 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11142fi
11143
cristy0c60a692010-11-04 01:09:47 +000011144case $host_os in
11145 darwin*)
11146 lock_old_archive_extraction=yes ;;
11147 *)
11148 lock_old_archive_extraction=no ;;
11149esac
11150
11151
11152
11153
11154
11155
cristy73bd4a52010-10-05 11:24:23 +000011156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189# If no C compiler was specified, use CC.
11190LTCC=${LTCC-"$CC"}
11191
11192# If no C compiler flags were specified, use CFLAGS.
11193LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11194
11195# Allow CC to be a program name with arguments.
11196compiler=$CC
11197
11198
11199# Check for command to grab the raw symbol name followed by C symbol from nm.
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11201$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011202if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011203 $as_echo_n "(cached) " >&6
11204else
11205
11206# These are sane defaults that work on at least a few old systems.
11207# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11208
11209# Character class describing NM global symbol codes.
11210symcode='[BCDEGRST]'
11211
11212# Regexp to match symbols that can be accessed directly from C.
11213sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11214
11215# Define system-specific variables.
11216case $host_os in
11217aix*)
11218 symcode='[BCDT]'
11219 ;;
11220cygwin* | mingw* | pw32* | cegcc*)
11221 symcode='[ABCDGISTW]'
11222 ;;
11223hpux*)
11224 if test "$host_cpu" = ia64; then
11225 symcode='[ABCDEGRST]'
11226 fi
11227 ;;
11228irix* | nonstopux*)
11229 symcode='[BCDEGRST]'
11230 ;;
11231osf*)
11232 symcode='[BCDEGQRST]'
11233 ;;
11234solaris*)
11235 symcode='[BDRT]'
11236 ;;
11237sco3.2v5*)
11238 symcode='[DT]'
11239 ;;
11240sysv4.2uw2*)
11241 symcode='[DT]'
11242 ;;
11243sysv5* | sco5v6* | unixware* | OpenUNIX*)
11244 symcode='[ABDT]'
11245 ;;
11246sysv4)
11247 symcode='[DFNSTU]'
11248 ;;
11249esac
11250
11251# If we're using GNU nm, then use its standard symbol codes.
11252case `$NM -V 2>&1` in
11253*GNU* | *'with BFD'*)
11254 symcode='[ABCDGIRSTW]' ;;
11255esac
11256
11257# Transform an extracted symbol line into a proper C declaration.
11258# Some systems (esp. on ia64) link data and code symbols differently,
11259# so use this general approach.
11260lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11261
11262# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011263lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11264lt_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 +000011265
11266# Handle CRLF in mingw tool chain
11267opt_cr=
11268case $build_os in
11269mingw*)
11270 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11271 ;;
11272esac
11273
11274# Try without a prefix underscore, then with it.
11275for ac_symprfx in "" "_"; do
11276
11277 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11278 symxfrm="\\1 $ac_symprfx\\2 \\2"
11279
11280 # Write the raw and C identifiers.
11281 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11282 # Fake it for dumpbin and say T for any non-static function
11283 # and D for any global variable.
11284 # Also find C++ and __fastcall symbols from MSVC++,
11285 # which start with @ or ?.
11286 lt_cv_sys_global_symbol_pipe="$AWK '"\
11287" {last_section=section; section=\$ 3};"\
11288" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11289" \$ 0!~/External *\|/{next};"\
11290" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11291" {if(hide[section]) next};"\
11292" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11293" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11294" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11295" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11296" ' prfx=^$ac_symprfx"
11297 else
11298 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11299 fi
cristyda16f162011-02-19 23:52:17 +000011300 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011301
11302 # Check to see that the pipe works correctly.
11303 pipe_works=no
11304
11305 rm -f conftest*
11306 cat > conftest.$ac_ext <<_LT_EOF
11307#ifdef __cplusplus
11308extern "C" {
11309#endif
11310char nm_test_var;
11311void nm_test_func(void);
11312void nm_test_func(void){}
11313#ifdef __cplusplus
11314}
11315#endif
11316int main(){nm_test_var='a';nm_test_func();return(0);}
11317_LT_EOF
11318
11319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11320 (eval $ac_compile) 2>&5
11321 ac_status=$?
11322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11323 test $ac_status = 0; }; then
11324 # Now try to grab the symbols.
11325 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11327 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011328 ac_status=$?
11329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330 test $ac_status = 0; } && test -s "$nlist"; then
11331 # Try sorting and uniquifying the output.
11332 if sort "$nlist" | uniq > "$nlist"T; then
11333 mv -f "$nlist"T "$nlist"
11334 else
11335 rm -f "$nlist"T
11336 fi
11337
11338 # Make sure that we snagged all the symbols we need.
11339 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11340 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11341 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011342/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11343#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11344/* DATA imports from DLLs on WIN32 con't be const, because runtime
11345 relocations are performed -- see ld's documentation on pseudo-relocs. */
11346# define LT_DLSYM_CONST
11347#elif defined(__osf__)
11348/* This system does not cope well with relocations in const data. */
11349# define LT_DLSYM_CONST
11350#else
11351# define LT_DLSYM_CONST const
11352#endif
11353
cristy73bd4a52010-10-05 11:24:23 +000011354#ifdef __cplusplus
11355extern "C" {
11356#endif
11357
11358_LT_EOF
11359 # Now generate the symbol file.
11360 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11361
11362 cat <<_LT_EOF >> conftest.$ac_ext
11363
11364/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011365LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011366 const char *name;
11367 void *address;
11368}
11369lt__PROGRAM__LTX_preloaded_symbols[] =
11370{
11371 { "@PROGRAM@", (void *) 0 },
11372_LT_EOF
11373 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11374 cat <<\_LT_EOF >> conftest.$ac_ext
11375 {0, (void *) 0}
11376};
11377
11378/* This works around a problem in FreeBSD linker */
11379#ifdef FREEBSD_WORKAROUND
11380static const void *lt_preloaded_setup() {
11381 return lt__PROGRAM__LTX_preloaded_symbols;
11382}
11383#endif
11384
11385#ifdef __cplusplus
11386}
11387#endif
11388_LT_EOF
11389 # Now try linking the two files.
11390 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011391 lt_globsym_save_LIBS=$LIBS
11392 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011393 LIBS="conftstm.$ac_objext"
11394 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11396 (eval $ac_link) 2>&5
11397 ac_status=$?
11398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11399 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11400 pipe_works=yes
11401 fi
cristyda16f162011-02-19 23:52:17 +000011402 LIBS=$lt_globsym_save_LIBS
11403 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011404 else
11405 echo "cannot find nm_test_func in $nlist" >&5
11406 fi
11407 else
11408 echo "cannot find nm_test_var in $nlist" >&5
11409 fi
11410 else
11411 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11412 fi
11413 else
11414 echo "$progname: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 fi
11417 rm -rf conftest* conftst*
11418
11419 # Do not use the global_symbol_pipe unless it works.
11420 if test "$pipe_works" = yes; then
11421 break
11422 else
11423 lt_cv_sys_global_symbol_pipe=
11424 fi
11425done
11426
11427fi
11428
11429if test -z "$lt_cv_sys_global_symbol_pipe"; then
11430 lt_cv_sys_global_symbol_to_cdecl=
11431fi
11432if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11434$as_echo "failed" >&6; }
11435else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11437$as_echo "ok" >&6; }
11438fi
11439
cristyda16f162011-02-19 23:52:17 +000011440# Response file support.
11441if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11442 nm_file_list_spec='@'
11443elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11444 nm_file_list_spec='@'
11445fi
cristy73bd4a52010-10-05 11:24:23 +000011446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
cristyda16f162011-02-19 23:52:17 +000011467
11468
11469
11470
11471
11472
11473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11474$as_echo_n "checking for sysroot... " >&6; }
11475
11476# Check whether --with-sysroot was given.
11477if test "${with_sysroot+set}" = set; then :
11478 withval=$with_sysroot;
11479else
11480 with_sysroot=no
11481fi
11482
11483
11484lt_sysroot=
11485case ${with_sysroot} in #(
11486 yes)
11487 if test "$GCC" = yes; then
11488 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11489 fi
11490 ;; #(
11491 /*)
11492 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11493 ;; #(
11494 no|'')
11495 ;; #(
11496 *)
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11498$as_echo "${with_sysroot}" >&6; }
11499 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11500 ;;
11501esac
11502
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11504$as_echo "${lt_sysroot:-no}" >&6; }
11505
11506
11507
11508
11509
cristy73bd4a52010-10-05 11:24:23 +000011510# Check whether --enable-libtool-lock was given.
11511if test "${enable_libtool_lock+set}" = set; then :
11512 enableval=$enable_libtool_lock;
11513fi
11514
11515test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11516
11517# Some flags need to be propagated to the compiler or linker for good
11518# libtool support.
11519case $host in
11520ia64-*-hpux*)
11521 # Find out which ABI we are using.
11522 echo 'int i;' > conftest.$ac_ext
11523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11524 (eval $ac_compile) 2>&5
11525 ac_status=$?
11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; }; then
11528 case `/usr/bin/file conftest.$ac_objext` in
11529 *ELF-32*)
11530 HPUX_IA64_MODE="32"
11531 ;;
11532 *ELF-64*)
11533 HPUX_IA64_MODE="64"
11534 ;;
11535 esac
11536 fi
11537 rm -rf conftest*
11538 ;;
11539*-*-irix6*)
11540 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011541 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11543 (eval $ac_compile) 2>&5
11544 ac_status=$?
11545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11546 test $ac_status = 0; }; then
11547 if test "$lt_cv_prog_gnu_ld" = yes; then
11548 case `/usr/bin/file conftest.$ac_objext` in
11549 *32-bit*)
11550 LD="${LD-ld} -melf32bsmip"
11551 ;;
11552 *N32*)
11553 LD="${LD-ld} -melf32bmipn32"
11554 ;;
11555 *64-bit*)
11556 LD="${LD-ld} -melf64bmip"
11557 ;;
11558 esac
11559 else
11560 case `/usr/bin/file conftest.$ac_objext` in
11561 *32-bit*)
11562 LD="${LD-ld} -32"
11563 ;;
11564 *N32*)
11565 LD="${LD-ld} -n32"
11566 ;;
11567 *64-bit*)
11568 LD="${LD-ld} -64"
11569 ;;
11570 esac
11571 fi
11572 fi
11573 rm -rf conftest*
11574 ;;
11575
11576x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11577s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11578 # Find out which ABI we are using.
11579 echo 'int i;' > conftest.$ac_ext
11580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11581 (eval $ac_compile) 2>&5
11582 ac_status=$?
11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584 test $ac_status = 0; }; then
11585 case `/usr/bin/file conftest.o` in
11586 *32-bit*)
11587 case $host in
11588 x86_64-*kfreebsd*-gnu)
11589 LD="${LD-ld} -m elf_i386_fbsd"
11590 ;;
11591 x86_64-*linux*)
11592 LD="${LD-ld} -m elf_i386"
11593 ;;
11594 ppc64-*linux*|powerpc64-*linux*)
11595 LD="${LD-ld} -m elf32ppclinux"
11596 ;;
11597 s390x-*linux*)
11598 LD="${LD-ld} -m elf_s390"
11599 ;;
11600 sparc64-*linux*)
11601 LD="${LD-ld} -m elf32_sparc"
11602 ;;
11603 esac
11604 ;;
11605 *64-bit*)
11606 case $host in
11607 x86_64-*kfreebsd*-gnu)
11608 LD="${LD-ld} -m elf_x86_64_fbsd"
11609 ;;
11610 x86_64-*linux*)
11611 LD="${LD-ld} -m elf_x86_64"
11612 ;;
11613 ppc*-*linux*|powerpc*-*linux*)
11614 LD="${LD-ld} -m elf64ppc"
11615 ;;
11616 s390*-*linux*|s390*-*tpf*)
11617 LD="${LD-ld} -m elf64_s390"
11618 ;;
11619 sparc*-*linux*)
11620 LD="${LD-ld} -m elf64_sparc"
11621 ;;
11622 esac
11623 ;;
11624 esac
11625 fi
11626 rm -rf conftest*
11627 ;;
11628
11629*-*-sco3.2v5*)
11630 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11631 SAVE_CFLAGS="$CFLAGS"
11632 CFLAGS="$CFLAGS -belf"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11634$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011635if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011636 $as_echo_n "(cached) " >&6
11637else
11638 ac_ext=c
11639ac_cpp='$CPP $CPPFLAGS'
11640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11642ac_compiler_gnu=$ac_cv_c_compiler_gnu
11643
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645/* end confdefs.h. */
11646
11647int
11648main ()
11649{
11650
11651 ;
11652 return 0;
11653}
11654_ACEOF
11655if ac_fn_c_try_link "$LINENO"; then :
11656 lt_cv_cc_needs_belf=yes
11657else
11658 lt_cv_cc_needs_belf=no
11659fi
11660rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 ac_ext=c
11663ac_cpp='$CPP $CPPFLAGS'
11664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11666ac_compiler_gnu=$ac_cv_c_compiler_gnu
11667
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11670$as_echo "$lt_cv_cc_needs_belf" >&6; }
11671 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11672 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11673 CFLAGS="$SAVE_CFLAGS"
11674 fi
11675 ;;
11676sparc*-*solaris*)
11677 # Find out which ABI we are using.
11678 echo 'int i;' > conftest.$ac_ext
11679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11680 (eval $ac_compile) 2>&5
11681 ac_status=$?
11682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11683 test $ac_status = 0; }; then
11684 case `/usr/bin/file conftest.o` in
11685 *64-bit*)
11686 case $lt_cv_prog_gnu_ld in
11687 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11688 *)
11689 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11690 LD="${LD-ld} -64"
11691 fi
11692 ;;
11693 esac
11694 ;;
11695 esac
11696 fi
11697 rm -rf conftest*
11698 ;;
11699esac
11700
11701need_locks="$enable_libtool_lock"
11702
cristyda16f162011-02-19 23:52:17 +000011703if test -n "$ac_tool_prefix"; then
11704 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11705set dummy ${ac_tool_prefix}mt; ac_word=$2
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707$as_echo_n "checking for $ac_word... " >&6; }
11708if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710else
11711 if test -n "$MANIFEST_TOOL"; then
11712 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11713else
11714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715for as_dir in $PATH
11716do
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11724 fi
11725done
11726 done
11727IFS=$as_save_IFS
11728
11729fi
11730fi
11731MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11732if test -n "$MANIFEST_TOOL"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11734$as_echo "$MANIFEST_TOOL" >&6; }
11735else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
11738fi
11739
11740
11741fi
11742if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11743 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11744 # Extract the first word of "mt", so it can be a program name with args.
11745set dummy mt; ac_word=$2
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747$as_echo_n "checking for $ac_word... " >&6; }
11748if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750else
11751 if test -n "$ac_ct_MANIFEST_TOOL"; then
11752 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11753else
11754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755for as_dir in $PATH
11756do
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11761 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11764 fi
11765done
11766 done
11767IFS=$as_save_IFS
11768
11769fi
11770fi
11771ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11772if test -n "$ac_ct_MANIFEST_TOOL"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11774$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11775else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
11778fi
11779
11780 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11781 MANIFEST_TOOL=":"
11782 else
11783 case $cross_compiling:$ac_tool_warned in
11784yes:)
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11787ac_tool_warned=yes ;;
11788esac
11789 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11790 fi
11791else
11792 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11793fi
11794
11795test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11797$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11798if ${lt_cv_path_mainfest_tool+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800else
11801 lt_cv_path_mainfest_tool=no
11802 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11803 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11804 cat conftest.err >&5
11805 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11806 lt_cv_path_mainfest_tool=yes
11807 fi
11808 rm -f conftest*
11809fi
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11811$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11812if test "x$lt_cv_path_mainfest_tool" != xyes; then
11813 MANIFEST_TOOL=:
11814fi
11815
11816
11817
11818
11819
cristy73bd4a52010-10-05 11:24:23 +000011820
11821 case $host_os in
11822 rhapsody* | darwin*)
11823 if test -n "$ac_tool_prefix"; then
11824 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11825set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011828if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011829 $as_echo_n "(cached) " >&6
11830else
11831 if test -n "$DSYMUTIL"; then
11832 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11833else
11834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835for as_dir in $PATH
11836do
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11841 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 break 2
11844 fi
11845done
11846 done
11847IFS=$as_save_IFS
11848
11849fi
11850fi
11851DSYMUTIL=$ac_cv_prog_DSYMUTIL
11852if test -n "$DSYMUTIL"; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11854$as_echo "$DSYMUTIL" >&6; }
11855else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857$as_echo "no" >&6; }
11858fi
11859
11860
11861fi
11862if test -z "$ac_cv_prog_DSYMUTIL"; then
11863 ac_ct_DSYMUTIL=$DSYMUTIL
11864 # Extract the first word of "dsymutil", so it can be a program name with args.
11865set dummy dsymutil; ac_word=$2
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011868if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011869 $as_echo_n "(cached) " >&6
11870else
11871 if test -n "$ac_ct_DSYMUTIL"; then
11872 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11873else
11874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875for as_dir in $PATH
11876do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11884 fi
11885done
11886 done
11887IFS=$as_save_IFS
11888
11889fi
11890fi
11891ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11892if test -n "$ac_ct_DSYMUTIL"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11894$as_echo "$ac_ct_DSYMUTIL" >&6; }
11895else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898fi
11899
11900 if test "x$ac_ct_DSYMUTIL" = x; then
11901 DSYMUTIL=":"
11902 else
11903 case $cross_compiling:$ac_tool_warned in
11904yes:)
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11907ac_tool_warned=yes ;;
11908esac
11909 DSYMUTIL=$ac_ct_DSYMUTIL
11910 fi
11911else
11912 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11913fi
11914
11915 if test -n "$ac_tool_prefix"; then
11916 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11917set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011920if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011921 $as_echo_n "(cached) " >&6
11922else
11923 if test -n "$NMEDIT"; then
11924 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11925else
11926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11933 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 break 2
11936 fi
11937done
11938 done
11939IFS=$as_save_IFS
11940
11941fi
11942fi
11943NMEDIT=$ac_cv_prog_NMEDIT
11944if test -n "$NMEDIT"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11946$as_echo "$NMEDIT" >&6; }
11947else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949$as_echo "no" >&6; }
11950fi
11951
11952
11953fi
11954if test -z "$ac_cv_prog_NMEDIT"; then
11955 ac_ct_NMEDIT=$NMEDIT
11956 # Extract the first word of "nmedit", so it can be a program name with args.
11957set dummy nmedit; ac_word=$2
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011960if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011961 $as_echo_n "(cached) " >&6
11962else
11963 if test -n "$ac_ct_NMEDIT"; then
11964 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11965else
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977done
11978 done
11979IFS=$as_save_IFS
11980
11981fi
11982fi
11983ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11984if test -n "$ac_ct_NMEDIT"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11986$as_echo "$ac_ct_NMEDIT" >&6; }
11987else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989$as_echo "no" >&6; }
11990fi
11991
11992 if test "x$ac_ct_NMEDIT" = x; then
11993 NMEDIT=":"
11994 else
11995 case $cross_compiling:$ac_tool_warned in
11996yes:)
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11999ac_tool_warned=yes ;;
12000esac
12001 NMEDIT=$ac_ct_NMEDIT
12002 fi
12003else
12004 NMEDIT="$ac_cv_prog_NMEDIT"
12005fi
12006
12007 if test -n "$ac_tool_prefix"; then
12008 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12009set dummy ${ac_tool_prefix}lipo; ac_word=$2
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012012if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012013 $as_echo_n "(cached) " >&6
12014else
12015 if test -n "$LIPO"; then
12016 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12017else
12018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $PATH
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12028 fi
12029done
12030 done
12031IFS=$as_save_IFS
12032
12033fi
12034fi
12035LIPO=$ac_cv_prog_LIPO
12036if test -n "$LIPO"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12038$as_echo "$LIPO" >&6; }
12039else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
12042fi
12043
12044
12045fi
12046if test -z "$ac_cv_prog_LIPO"; then
12047 ac_ct_LIPO=$LIPO
12048 # Extract the first word of "lipo", so it can be a program name with args.
12049set dummy lipo; ac_word=$2
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012052if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012053 $as_echo_n "(cached) " >&6
12054else
12055 if test -n "$ac_ct_LIPO"; then
12056 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12057else
12058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059for as_dir in $PATH
12060do
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12065 ac_cv_prog_ac_ct_LIPO="lipo"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 break 2
12068 fi
12069done
12070 done
12071IFS=$as_save_IFS
12072
12073fi
12074fi
12075ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12076if test -n "$ac_ct_LIPO"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12078$as_echo "$ac_ct_LIPO" >&6; }
12079else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
12082fi
12083
12084 if test "x$ac_ct_LIPO" = x; then
12085 LIPO=":"
12086 else
12087 case $cross_compiling:$ac_tool_warned in
12088yes:)
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12091ac_tool_warned=yes ;;
12092esac
12093 LIPO=$ac_ct_LIPO
12094 fi
12095else
12096 LIPO="$ac_cv_prog_LIPO"
12097fi
12098
12099 if test -n "$ac_tool_prefix"; then
12100 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12101set dummy ${ac_tool_prefix}otool; ac_word=$2
12102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012104if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012105 $as_echo_n "(cached) " >&6
12106else
12107 if test -n "$OTOOL"; then
12108 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12109else
12110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111for as_dir in $PATH
12112do
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12117 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12120 fi
12121done
12122 done
12123IFS=$as_save_IFS
12124
12125fi
12126fi
12127OTOOL=$ac_cv_prog_OTOOL
12128if test -n "$OTOOL"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12130$as_echo "$OTOOL" >&6; }
12131else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
12134fi
12135
12136
12137fi
12138if test -z "$ac_cv_prog_OTOOL"; then
12139 ac_ct_OTOOL=$OTOOL
12140 # Extract the first word of "otool", so it can be a program name with args.
12141set dummy otool; ac_word=$2
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012144if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012145 $as_echo_n "(cached) " >&6
12146else
12147 if test -n "$ac_ct_OTOOL"; then
12148 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12149else
12150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151for as_dir in $PATH
12152do
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12157 ac_cv_prog_ac_ct_OTOOL="otool"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 break 2
12160 fi
12161done
12162 done
12163IFS=$as_save_IFS
12164
12165fi
12166fi
12167ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12168if test -n "$ac_ct_OTOOL"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12170$as_echo "$ac_ct_OTOOL" >&6; }
12171else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173$as_echo "no" >&6; }
12174fi
12175
12176 if test "x$ac_ct_OTOOL" = x; then
12177 OTOOL=":"
12178 else
12179 case $cross_compiling:$ac_tool_warned in
12180yes:)
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12183ac_tool_warned=yes ;;
12184esac
12185 OTOOL=$ac_ct_OTOOL
12186 fi
12187else
12188 OTOOL="$ac_cv_prog_OTOOL"
12189fi
12190
12191 if test -n "$ac_tool_prefix"; then
12192 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12193set dummy ${ac_tool_prefix}otool64; ac_word=$2
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012196if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012197 $as_echo_n "(cached) " >&6
12198else
12199 if test -n "$OTOOL64"; then
12200 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12201else
12202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203for as_dir in $PATH
12204do
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12212 fi
12213done
12214 done
12215IFS=$as_save_IFS
12216
12217fi
12218fi
12219OTOOL64=$ac_cv_prog_OTOOL64
12220if test -n "$OTOOL64"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12222$as_echo "$OTOOL64" >&6; }
12223else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
12226fi
12227
12228
12229fi
12230if test -z "$ac_cv_prog_OTOOL64"; then
12231 ac_ct_OTOOL64=$OTOOL64
12232 # Extract the first word of "otool64", so it can be a program name with args.
12233set dummy otool64; ac_word=$2
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012236if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012237 $as_echo_n "(cached) " >&6
12238else
12239 if test -n "$ac_ct_OTOOL64"; then
12240 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12241else
12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $PATH
12244do
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12249 ac_cv_prog_ac_ct_OTOOL64="otool64"
12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 break 2
12252 fi
12253done
12254 done
12255IFS=$as_save_IFS
12256
12257fi
12258fi
12259ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12260if test -n "$ac_ct_OTOOL64"; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12262$as_echo "$ac_ct_OTOOL64" >&6; }
12263else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265$as_echo "no" >&6; }
12266fi
12267
12268 if test "x$ac_ct_OTOOL64" = x; then
12269 OTOOL64=":"
12270 else
12271 case $cross_compiling:$ac_tool_warned in
12272yes:)
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12275ac_tool_warned=yes ;;
12276esac
12277 OTOOL64=$ac_ct_OTOOL64
12278 fi
12279else
12280 OTOOL64="$ac_cv_prog_OTOOL64"
12281fi
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12310$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012311if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012312 $as_echo_n "(cached) " >&6
12313else
12314 lt_cv_apple_cc_single_mod=no
12315 if test -z "${LT_MULTI_MODULE}"; then
12316 # By default we will add the -single_module flag. You can override
12317 # by either setting the environment variable LT_MULTI_MODULE
12318 # non-empty at configure time, or by adding -multi_module to the
12319 # link flags.
12320 rm -rf libconftest.dylib*
12321 echo "int foo(void){return 1;}" > conftest.c
12322 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12323-dynamiclib -Wl,-single_module conftest.c" >&5
12324 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12325 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12326 _lt_result=$?
12327 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12328 lt_cv_apple_cc_single_mod=yes
12329 else
12330 cat conftest.err >&5
12331 fi
12332 rm -rf libconftest.dylib*
12333 rm -f conftest.*
12334 fi
12335fi
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12337$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12339$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012340if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012341 $as_echo_n "(cached) " >&6
12342else
12343 lt_cv_ld_exported_symbols_list=no
12344 save_LDFLAGS=$LDFLAGS
12345 echo "_main" > conftest.sym
12346 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348/* end confdefs.h. */
12349
12350int
12351main ()
12352{
12353
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358if ac_fn_c_try_link "$LINENO"; then :
12359 lt_cv_ld_exported_symbols_list=yes
12360else
12361 lt_cv_ld_exported_symbols_list=no
12362fi
12363rm -f core conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LDFLAGS="$save_LDFLAGS"
12366
12367fi
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12369$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12371$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012372if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012373 $as_echo_n "(cached) " >&6
12374else
12375 lt_cv_ld_force_load=no
12376 cat > conftest.c << _LT_EOF
12377int forced_loaded() { return 2;}
12378_LT_EOF
12379 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12380 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12381 echo "$AR cru libconftest.a conftest.o" >&5
12382 $AR cru libconftest.a conftest.o 2>&5
12383 echo "$RANLIB libconftest.a" >&5
12384 $RANLIB libconftest.a 2>&5
12385 cat > conftest.c << _LT_EOF
12386int main() { return 0;}
12387_LT_EOF
12388 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12389 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12390 _lt_result=$?
12391 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12392 lt_cv_ld_force_load=yes
12393 else
12394 cat conftest.err >&5
12395 fi
12396 rm -f conftest.err libconftest.a conftest conftest.c
12397 rm -rf conftest.dSYM
12398
12399fi
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12401$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012402 case $host_os in
12403 rhapsody* | darwin1.[012])
12404 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12405 darwin1.*)
12406 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12407 darwin*) # darwin 5.x on
12408 # if running on 10.5 or later, the deployment target defaults
12409 # to the OS version, if on x86, and 10.4, the deployment
12410 # target defaults to 10.4. Don't you love it?
12411 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12412 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12413 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12414 10.[012]*)
12415 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12416 10.*)
12417 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12418 esac
12419 ;;
12420 esac
12421 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12422 _lt_dar_single_mod='$single_module'
12423 fi
12424 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12425 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12426 else
12427 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12428 fi
cristy0c60a692010-11-04 01:09:47 +000012429 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012430 _lt_dsymutil='~$DSYMUTIL $lib || :'
12431 else
12432 _lt_dsymutil=
12433 fi
12434 ;;
12435 esac
12436
12437for ac_header in dlfcn.h
12438do :
12439 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12440"
cristyda16f162011-02-19 23:52:17 +000012441if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012442 cat >>confdefs.h <<_ACEOF
12443#define HAVE_DLFCN_H 1
12444_ACEOF
12445
12446fi
12447
12448done
12449
12450
12451
cristy73bd4a52010-10-05 11:24:23 +000012452
cristyda16f162011-02-19 23:52:17 +000012453func_stripname_cnf ()
12454{
12455 case ${2} in
12456 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12457 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12458 esac
12459} # func_stripname_cnf
12460
12461
12462
cristy73bd4a52010-10-05 11:24:23 +000012463
12464
12465# Set options
12466enable_win32_dll=yes
12467
12468case $host in
cristy0c60a692010-11-04 01:09:47 +000012469*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012470 if test -n "$ac_tool_prefix"; then
12471 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12472set dummy ${ac_tool_prefix}as; ac_word=$2
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012475if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012476 $as_echo_n "(cached) " >&6
12477else
12478 if test -n "$AS"; then
12479 ac_cv_prog_AS="$AS" # Let the user override the test.
12480else
12481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482for as_dir in $PATH
12483do
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12488 ac_cv_prog_AS="${ac_tool_prefix}as"
12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 break 2
12491 fi
12492done
12493 done
12494IFS=$as_save_IFS
12495
12496fi
12497fi
12498AS=$ac_cv_prog_AS
12499if test -n "$AS"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12501$as_echo "$AS" >&6; }
12502else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504$as_echo "no" >&6; }
12505fi
12506
12507
12508fi
12509if test -z "$ac_cv_prog_AS"; then
12510 ac_ct_AS=$AS
12511 # Extract the first word of "as", so it can be a program name with args.
12512set dummy as; ac_word=$2
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012515if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012516 $as_echo_n "(cached) " >&6
12517else
12518 if test -n "$ac_ct_AS"; then
12519 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12520else
12521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in $PATH
12523do
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528 ac_cv_prog_ac_ct_AS="as"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12531 fi
12532done
12533 done
12534IFS=$as_save_IFS
12535
12536fi
12537fi
12538ac_ct_AS=$ac_cv_prog_ac_ct_AS
12539if test -n "$ac_ct_AS"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12541$as_echo "$ac_ct_AS" >&6; }
12542else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544$as_echo "no" >&6; }
12545fi
12546
12547 if test "x$ac_ct_AS" = x; then
12548 AS="false"
12549 else
12550 case $cross_compiling:$ac_tool_warned in
12551yes:)
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12554ac_tool_warned=yes ;;
12555esac
12556 AS=$ac_ct_AS
12557 fi
12558else
12559 AS="$ac_cv_prog_AS"
12560fi
12561
12562 if test -n "$ac_tool_prefix"; then
12563 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12564set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012567if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012568 $as_echo_n "(cached) " >&6
12569else
12570 if test -n "$DLLTOOL"; then
12571 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12572else
12573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574for as_dir in $PATH
12575do
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12580 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582 break 2
12583 fi
12584done
12585 done
12586IFS=$as_save_IFS
12587
12588fi
12589fi
12590DLLTOOL=$ac_cv_prog_DLLTOOL
12591if test -n "$DLLTOOL"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12593$as_echo "$DLLTOOL" >&6; }
12594else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596$as_echo "no" >&6; }
12597fi
12598
12599
12600fi
12601if test -z "$ac_cv_prog_DLLTOOL"; then
12602 ac_ct_DLLTOOL=$DLLTOOL
12603 # Extract the first word of "dlltool", so it can be a program name with args.
12604set dummy dlltool; ac_word=$2
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012607if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012608 $as_echo_n "(cached) " >&6
12609else
12610 if test -n "$ac_ct_DLLTOOL"; then
12611 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12612else
12613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614for as_dir in $PATH
12615do
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624done
12625 done
12626IFS=$as_save_IFS
12627
12628fi
12629fi
12630ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12631if test -n "$ac_ct_DLLTOOL"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12633$as_echo "$ac_ct_DLLTOOL" >&6; }
12634else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636$as_echo "no" >&6; }
12637fi
12638
12639 if test "x$ac_ct_DLLTOOL" = x; then
12640 DLLTOOL="false"
12641 else
12642 case $cross_compiling:$ac_tool_warned in
12643yes:)
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12646ac_tool_warned=yes ;;
12647esac
12648 DLLTOOL=$ac_ct_DLLTOOL
12649 fi
12650else
12651 DLLTOOL="$ac_cv_prog_DLLTOOL"
12652fi
12653
12654 if test -n "$ac_tool_prefix"; then
12655 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12656set dummy ${ac_tool_prefix}objdump; ac_word=$2
12657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012659if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012660 $as_echo_n "(cached) " >&6
12661else
12662 if test -n "$OBJDUMP"; then
12663 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12664else
12665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666for as_dir in $PATH
12667do
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12672 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12675 fi
12676done
12677 done
12678IFS=$as_save_IFS
12679
12680fi
12681fi
12682OBJDUMP=$ac_cv_prog_OBJDUMP
12683if test -n "$OBJDUMP"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12685$as_echo "$OBJDUMP" >&6; }
12686else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688$as_echo "no" >&6; }
12689fi
12690
12691
12692fi
12693if test -z "$ac_cv_prog_OBJDUMP"; then
12694 ac_ct_OBJDUMP=$OBJDUMP
12695 # Extract the first word of "objdump", so it can be a program name with args.
12696set dummy objdump; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012699if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012700 $as_echo_n "(cached) " >&6
12701else
12702 if test -n "$ac_ct_OBJDUMP"; then
12703 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12704else
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12715 fi
12716done
12717 done
12718IFS=$as_save_IFS
12719
12720fi
12721fi
12722ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12723if test -n "$ac_ct_OBJDUMP"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12725$as_echo "$ac_ct_OBJDUMP" >&6; }
12726else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
12729fi
12730
12731 if test "x$ac_ct_OBJDUMP" = x; then
12732 OBJDUMP="false"
12733 else
12734 case $cross_compiling:$ac_tool_warned in
12735yes:)
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12738ac_tool_warned=yes ;;
12739esac
12740 OBJDUMP=$ac_ct_OBJDUMP
12741 fi
12742else
12743 OBJDUMP="$ac_cv_prog_OBJDUMP"
12744fi
12745
12746 ;;
12747esac
12748
12749test -z "$AS" && AS=as
12750
12751
12752
12753
12754
12755test -z "$DLLTOOL" && DLLTOOL=dlltool
12756
12757
12758
12759
12760
12761test -z "$OBJDUMP" && OBJDUMP=objdump
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771 # Check whether --enable-shared was given.
12772if test "${enable_shared+set}" = set; then :
12773 enableval=$enable_shared; p=${PACKAGE-default}
12774 case $enableval in
12775 yes) enable_shared=yes ;;
12776 no) enable_shared=no ;;
12777 *)
12778 enable_shared=no
12779 # Look at the argument we got. We use all the common list separators.
12780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12781 for pkg in $enableval; do
12782 IFS="$lt_save_ifs"
12783 if test "X$pkg" = "X$p"; then
12784 enable_shared=yes
12785 fi
12786 done
12787 IFS="$lt_save_ifs"
12788 ;;
12789 esac
12790else
12791 enable_shared=yes
12792fi
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802 # Check whether --enable-static was given.
12803if test "${enable_static+set}" = set; then :
12804 enableval=$enable_static; p=${PACKAGE-default}
12805 case $enableval in
12806 yes) enable_static=yes ;;
12807 no) enable_static=no ;;
12808 *)
12809 enable_static=no
12810 # Look at the argument we got. We use all the common list separators.
12811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12812 for pkg in $enableval; do
12813 IFS="$lt_save_ifs"
12814 if test "X$pkg" = "X$p"; then
12815 enable_static=yes
12816 fi
12817 done
12818 IFS="$lt_save_ifs"
12819 ;;
12820 esac
12821else
12822 enable_static=yes
12823fi
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834# Check whether --with-pic was given.
12835if test "${with_pic+set}" = set; then :
12836 withval=$with_pic; pic_mode="$withval"
12837else
12838 pic_mode=default
12839fi
12840
12841
12842test -z "$pic_mode" && pic_mode=default
12843
12844
12845
12846
12847
12848
12849
12850 # Check whether --enable-fast-install was given.
12851if test "${enable_fast_install+set}" = set; then :
12852 enableval=$enable_fast_install; p=${PACKAGE-default}
12853 case $enableval in
12854 yes) enable_fast_install=yes ;;
12855 no) enable_fast_install=no ;;
12856 *)
12857 enable_fast_install=no
12858 # Look at the argument we got. We use all the common list separators.
12859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12860 for pkg in $enableval; do
12861 IFS="$lt_save_ifs"
12862 if test "X$pkg" = "X$p"; then
12863 enable_fast_install=yes
12864 fi
12865 done
12866 IFS="$lt_save_ifs"
12867 ;;
12868 esac
12869else
12870 enable_fast_install=yes
12871fi
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883# This can be used to rebuild libtool when needed
12884LIBTOOL_DEPS="$ltmain"
12885
12886# Always use our own libtool.
12887LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
cristy0c60a692010-11-04 01:09:47 +000012913
cristy73bd4a52010-10-05 11:24:23 +000012914test -z "$LN_S" && LN_S="ln -s"
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929if test -n "${ZSH_VERSION+set}" ; then
12930 setopt NO_GLOB_SUBST
12931fi
12932
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12934$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012935if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012936 $as_echo_n "(cached) " >&6
12937else
12938 rm -f .libs 2>/dev/null
12939mkdir .libs 2>/dev/null
12940if test -d .libs; then
12941 lt_cv_objdir=.libs
12942else
12943 # MS-DOS does not allow filenames that begin with a dot.
12944 lt_cv_objdir=_libs
12945fi
12946rmdir .libs 2>/dev/null
12947fi
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12949$as_echo "$lt_cv_objdir" >&6; }
12950objdir=$lt_cv_objdir
12951
12952
12953
12954
12955
12956cat >>confdefs.h <<_ACEOF
12957#define LT_OBJDIR "$lt_cv_objdir/"
12958_ACEOF
12959
12960
12961
12962
cristy73bd4a52010-10-05 11:24:23 +000012963case $host_os in
12964aix3*)
12965 # AIX sometimes has problems with the GCC collect2 program. For some
12966 # reason, if we set the COLLECT_NAMES environment variable, the problems
12967 # vanish in a puff of smoke.
12968 if test "X${COLLECT_NAMES+set}" != Xset; then
12969 COLLECT_NAMES=
12970 export COLLECT_NAMES
12971 fi
12972 ;;
12973esac
12974
cristy73bd4a52010-10-05 11:24:23 +000012975# Global variables:
12976ofile=libtool
12977can_build_shared=yes
12978
12979# All known linkers require a `.a' archive for static linking (except MSVC,
12980# which needs '.lib').
12981libext=a
12982
12983with_gnu_ld="$lt_cv_prog_gnu_ld"
12984
12985old_CC="$CC"
12986old_CFLAGS="$CFLAGS"
12987
12988# Set sane defaults for various variables
12989test -z "$CC" && CC=cc
12990test -z "$LTCC" && LTCC=$CC
12991test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12992test -z "$LD" && LD=ld
12993test -z "$ac_objext" && ac_objext=o
12994
12995for cc_temp in $compiler""; do
12996 case $cc_temp in
12997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12999 \-*) ;;
13000 *) break;;
13001 esac
13002done
cristy0c60a692010-11-04 01:09:47 +000013003cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013004
13005
13006# Only perform the check for file, if the check method requires it
13007test -z "$MAGIC_CMD" && MAGIC_CMD=file
13008case $deplibs_check_method in
13009file_magic*)
13010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13012$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013013if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013014 $as_echo_n "(cached) " >&6
13015else
13016 case $MAGIC_CMD in
13017[\\/*] | ?:[\\/]*)
13018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13019 ;;
13020*)
13021 lt_save_MAGIC_CMD="$MAGIC_CMD"
13022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13024 for ac_dir in $ac_dummy; do
13025 IFS="$lt_save_ifs"
13026 test -z "$ac_dir" && ac_dir=.
13027 if test -f $ac_dir/${ac_tool_prefix}file; then
13028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13029 if test -n "$file_magic_test_file"; then
13030 case $deplibs_check_method in
13031 "file_magic "*)
13032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13035 $EGREP "$file_magic_regex" > /dev/null; then
13036 :
13037 else
13038 cat <<_LT_EOF 1>&2
13039
13040*** Warning: the command libtool uses to detect shared libraries,
13041*** $file_magic_cmd, produces output that libtool cannot recognize.
13042*** The result is that libtool may fail to recognize shared libraries
13043*** as such. This will affect the creation of libtool libraries that
13044*** depend on shared libraries, but programs linked with such libtool
13045*** libraries will work regardless of this problem. Nevertheless, you
13046*** may want to report the problem to your system manager and/or to
13047*** bug-libtool@gnu.org
13048
13049_LT_EOF
13050 fi ;;
13051 esac
13052 fi
13053 break
13054 fi
13055 done
13056 IFS="$lt_save_ifs"
13057 MAGIC_CMD="$lt_save_MAGIC_CMD"
13058 ;;
13059esac
13060fi
13061
13062MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13063if test -n "$MAGIC_CMD"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13065$as_echo "$MAGIC_CMD" >&6; }
13066else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068$as_echo "no" >&6; }
13069fi
13070
13071
13072
13073
13074
13075if test -z "$lt_cv_path_MAGIC_CMD"; then
13076 if test -n "$ac_tool_prefix"; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13078$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013079if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013080 $as_echo_n "(cached) " >&6
13081else
13082 case $MAGIC_CMD in
13083[\\/*] | ?:[\\/]*)
13084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13085 ;;
13086*)
13087 lt_save_MAGIC_CMD="$MAGIC_CMD"
13088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13090 for ac_dir in $ac_dummy; do
13091 IFS="$lt_save_ifs"
13092 test -z "$ac_dir" && ac_dir=.
13093 if test -f $ac_dir/file; then
13094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13095 if test -n "$file_magic_test_file"; then
13096 case $deplibs_check_method in
13097 "file_magic "*)
13098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13101 $EGREP "$file_magic_regex" > /dev/null; then
13102 :
13103 else
13104 cat <<_LT_EOF 1>&2
13105
13106*** Warning: the command libtool uses to detect shared libraries,
13107*** $file_magic_cmd, produces output that libtool cannot recognize.
13108*** The result is that libtool may fail to recognize shared libraries
13109*** as such. This will affect the creation of libtool libraries that
13110*** depend on shared libraries, but programs linked with such libtool
13111*** libraries will work regardless of this problem. Nevertheless, you
13112*** may want to report the problem to your system manager and/or to
13113*** bug-libtool@gnu.org
13114
13115_LT_EOF
13116 fi ;;
13117 esac
13118 fi
13119 break
13120 fi
13121 done
13122 IFS="$lt_save_ifs"
13123 MAGIC_CMD="$lt_save_MAGIC_CMD"
13124 ;;
13125esac
13126fi
13127
13128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13129if test -n "$MAGIC_CMD"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13131$as_echo "$MAGIC_CMD" >&6; }
13132else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134$as_echo "no" >&6; }
13135fi
13136
13137
13138 else
13139 MAGIC_CMD=:
13140 fi
13141fi
13142
13143 fi
13144 ;;
13145esac
13146
13147# Use C for the default configuration in the libtool script
13148
13149lt_save_CC="$CC"
13150ac_ext=c
13151ac_cpp='$CPP $CPPFLAGS'
13152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154ac_compiler_gnu=$ac_cv_c_compiler_gnu
13155
13156
13157# Source file extension for C test sources.
13158ac_ext=c
13159
13160# Object file extension for compiled C test sources.
13161objext=o
13162objext=$objext
13163
13164# Code to be used in simple compile tests
13165lt_simple_compile_test_code="int some_variable = 0;"
13166
13167# Code to be used in simple link tests
13168lt_simple_link_test_code='int main(){return(0);}'
13169
13170
13171
13172
13173
13174
13175
13176# If no C compiler was specified, use CC.
13177LTCC=${LTCC-"$CC"}
13178
13179# If no C compiler flags were specified, use CFLAGS.
13180LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13181
13182# Allow CC to be a program name with arguments.
13183compiler=$CC
13184
13185# Save the default compiler, since it gets overwritten when the other
13186# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13187compiler_DEFAULT=$CC
13188
13189# save warnings/boilerplate of simple test code
13190ac_outfile=conftest.$ac_objext
13191echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13193_lt_compiler_boilerplate=`cat conftest.err`
13194$RM conftest*
13195
13196ac_outfile=conftest.$ac_objext
13197echo "$lt_simple_link_test_code" >conftest.$ac_ext
13198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13199_lt_linker_boilerplate=`cat conftest.err`
13200$RM -r conftest*
13201
13202
13203## CAVEAT EMPTOR:
13204## There is no encapsulation within the following macros, do not change
13205## the running order or otherwise move them around unless you know exactly
13206## what you are doing...
13207if test -n "$compiler"; then
13208
13209lt_prog_compiler_no_builtin_flag=
13210
13211if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013212 case $cc_basename in
13213 nvcc*)
13214 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13215 *)
13216 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13217 esac
cristy73bd4a52010-10-05 11:24:23 +000013218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13220$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013221if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013222 $as_echo_n "(cached) " >&6
13223else
13224 lt_cv_prog_compiler_rtti_exceptions=no
13225 ac_outfile=conftest.$ac_objext
13226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13227 lt_compiler_flag="-fno-rtti -fno-exceptions"
13228 # Insert the option either (1) after the last *FLAGS variable, or
13229 # (2) before a word containing "conftest.", or (3) at the end.
13230 # Note that $ac_compile itself does not contain backslashes and begins
13231 # with a dollar sign (not a hyphen), so the echo should work correctly.
13232 # The option is referenced via a variable to avoid confusing sed.
13233 lt_compile=`echo "$ac_compile" | $SED \
13234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13236 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013238 (eval "$lt_compile" 2>conftest.err)
13239 ac_status=$?
13240 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013242 if (exit $ac_status) && test -s "$ac_outfile"; then
13243 # The compiler can only warn and ignore the option if not recognized
13244 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13248 lt_cv_prog_compiler_rtti_exceptions=yes
13249 fi
13250 fi
13251 $RM conftest*
13252
13253fi
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13255$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13256
13257if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13258 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13259else
13260 :
13261fi
13262
13263fi
13264
13265
13266
13267
13268
13269
13270 lt_prog_compiler_wl=
13271lt_prog_compiler_pic=
13272lt_prog_compiler_static=
13273
cristy73bd4a52010-10-05 11:24:23 +000013274
13275 if test "$GCC" = yes; then
13276 lt_prog_compiler_wl='-Wl,'
13277 lt_prog_compiler_static='-static'
13278
13279 case $host_os in
13280 aix*)
13281 # All AIX code is PIC.
13282 if test "$host_cpu" = ia64; then
13283 # AIX 5 now supports IA64 processor
13284 lt_prog_compiler_static='-Bstatic'
13285 fi
13286 ;;
13287
13288 amigaos*)
13289 case $host_cpu in
13290 powerpc)
13291 # see comment about AmigaOS4 .so support
13292 lt_prog_compiler_pic='-fPIC'
13293 ;;
13294 m68k)
13295 # FIXME: we need at least 68020 code to build shared libraries, but
13296 # adding the `-m68020' flag to GCC prevents building anything better,
13297 # like `-m68040'.
13298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13299 ;;
13300 esac
13301 ;;
13302
13303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13304 # PIC is the default for these OSes.
13305 ;;
13306
13307 mingw* | cygwin* | pw32* | os2* | cegcc*)
13308 # This hack is so that the source file can tell whether it is being
13309 # built for inclusion in a dll (and should export symbols for example).
13310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13311 # (--disable-auto-import) libraries
13312 lt_prog_compiler_pic='-DDLL_EXPORT'
13313 ;;
13314
13315 darwin* | rhapsody*)
13316 # PIC is the default on this platform
13317 # Common symbols not allowed in MH_DYLIB files
13318 lt_prog_compiler_pic='-fno-common'
13319 ;;
13320
cristy0c60a692010-11-04 01:09:47 +000013321 haiku*)
13322 # PIC is the default for Haiku.
13323 # The "-static" flag exists, but is broken.
13324 lt_prog_compiler_static=
13325 ;;
13326
cristy73bd4a52010-10-05 11:24:23 +000013327 hpux*)
13328 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13329 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13330 # sets the default TLS model and affects inlining.
13331 case $host_cpu in
13332 hppa*64*)
13333 # +Z the default
13334 ;;
13335 *)
13336 lt_prog_compiler_pic='-fPIC'
13337 ;;
13338 esac
13339 ;;
13340
13341 interix[3-9]*)
13342 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13343 # Instead, we relocate shared libraries at runtime.
13344 ;;
13345
13346 msdosdjgpp*)
13347 # Just because we use GCC doesn't mean we suddenly get shared libraries
13348 # on systems that don't support them.
13349 lt_prog_compiler_can_build_shared=no
13350 enable_shared=no
13351 ;;
13352
13353 *nto* | *qnx*)
13354 # QNX uses GNU C++, but need to define -shared option too, otherwise
13355 # it will coredump.
13356 lt_prog_compiler_pic='-fPIC -shared'
13357 ;;
13358
13359 sysv4*MP*)
13360 if test -d /usr/nec; then
13361 lt_prog_compiler_pic=-Kconform_pic
13362 fi
13363 ;;
13364
13365 *)
13366 lt_prog_compiler_pic='-fPIC'
13367 ;;
13368 esac
cristy0c60a692010-11-04 01:09:47 +000013369
13370 case $cc_basename in
13371 nvcc*) # Cuda Compiler Driver 2.2
13372 lt_prog_compiler_wl='-Xlinker '
13373 lt_prog_compiler_pic='-Xcompiler -fPIC'
13374 ;;
13375 esac
cristy73bd4a52010-10-05 11:24:23 +000013376 else
13377 # PORTME Check for flag to pass linker flags through the system compiler.
13378 case $host_os in
13379 aix*)
13380 lt_prog_compiler_wl='-Wl,'
13381 if test "$host_cpu" = ia64; then
13382 # AIX 5 now supports IA64 processor
13383 lt_prog_compiler_static='-Bstatic'
13384 else
13385 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13386 fi
13387 ;;
13388
13389 mingw* | cygwin* | pw32* | os2* | cegcc*)
13390 # This hack is so that the source file can tell whether it is being
13391 # built for inclusion in a dll (and should export symbols for example).
13392 lt_prog_compiler_pic='-DDLL_EXPORT'
13393 ;;
13394
13395 hpux9* | hpux10* | hpux11*)
13396 lt_prog_compiler_wl='-Wl,'
13397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13398 # not for PA HP-UX.
13399 case $host_cpu in
13400 hppa*64*|ia64*)
13401 # +Z the default
13402 ;;
13403 *)
13404 lt_prog_compiler_pic='+Z'
13405 ;;
13406 esac
13407 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13408 lt_prog_compiler_static='${wl}-a ${wl}archive'
13409 ;;
13410
13411 irix5* | irix6* | nonstopux*)
13412 lt_prog_compiler_wl='-Wl,'
13413 # PIC (with -KPIC) is the default.
13414 lt_prog_compiler_static='-non_shared'
13415 ;;
13416
cristy0c60a692010-11-04 01:09:47 +000013417 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013418 case $cc_basename in
13419 # old Intel for x86_64 which still supported -KPIC.
13420 ecc*)
13421 lt_prog_compiler_wl='-Wl,'
13422 lt_prog_compiler_pic='-KPIC'
13423 lt_prog_compiler_static='-static'
13424 ;;
13425 # icc used to be incompatible with GCC.
13426 # ICC 10 doesn't accept -KPIC any more.
13427 icc* | ifort*)
13428 lt_prog_compiler_wl='-Wl,'
13429 lt_prog_compiler_pic='-fPIC'
13430 lt_prog_compiler_static='-static'
13431 ;;
13432 # Lahey Fortran 8.1.
13433 lf95*)
13434 lt_prog_compiler_wl='-Wl,'
13435 lt_prog_compiler_pic='--shared'
13436 lt_prog_compiler_static='--static'
13437 ;;
cristyda16f162011-02-19 23:52:17 +000013438 nagfor*)
13439 # NAG Fortran compiler
13440 lt_prog_compiler_wl='-Wl,-Wl,,'
13441 lt_prog_compiler_pic='-PIC'
13442 lt_prog_compiler_static='-Bstatic'
13443 ;;
cristy0c60a692010-11-04 01:09:47 +000013444 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013445 # Portland Group compilers (*not* the Pentium gcc compiler,
13446 # which looks to be a dead project)
13447 lt_prog_compiler_wl='-Wl,'
13448 lt_prog_compiler_pic='-fpic'
13449 lt_prog_compiler_static='-Bstatic'
13450 ;;
13451 ccc*)
13452 lt_prog_compiler_wl='-Wl,'
13453 # All Alpha code is PIC.
13454 lt_prog_compiler_static='-non_shared'
13455 ;;
cristy0c60a692010-11-04 01:09:47 +000013456 xl* | bgxl* | bgf* | mpixl*)
13457 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013458 lt_prog_compiler_wl='-Wl,'
13459 lt_prog_compiler_pic='-qpic'
13460 lt_prog_compiler_static='-qstaticlink'
13461 ;;
13462 *)
13463 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013464 *Sun\ F* | *Sun*Fortran*)
13465 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13466 lt_prog_compiler_pic='-KPIC'
13467 lt_prog_compiler_static='-Bstatic'
13468 lt_prog_compiler_wl=''
13469 ;;
cristy73bd4a52010-10-05 11:24:23 +000013470 *Sun\ C*)
13471 # Sun C 5.9
13472 lt_prog_compiler_pic='-KPIC'
13473 lt_prog_compiler_static='-Bstatic'
13474 lt_prog_compiler_wl='-Wl,'
13475 ;;
cristy73bd4a52010-10-05 11:24:23 +000013476 esac
13477 ;;
13478 esac
13479 ;;
13480
13481 newsos6)
13482 lt_prog_compiler_pic='-KPIC'
13483 lt_prog_compiler_static='-Bstatic'
13484 ;;
13485
13486 *nto* | *qnx*)
13487 # QNX uses GNU C++, but need to define -shared option too, otherwise
13488 # it will coredump.
13489 lt_prog_compiler_pic='-fPIC -shared'
13490 ;;
13491
13492 osf3* | osf4* | osf5*)
13493 lt_prog_compiler_wl='-Wl,'
13494 # All OSF/1 code is PIC.
13495 lt_prog_compiler_static='-non_shared'
13496 ;;
13497
13498 rdos*)
13499 lt_prog_compiler_static='-non_shared'
13500 ;;
13501
13502 solaris*)
13503 lt_prog_compiler_pic='-KPIC'
13504 lt_prog_compiler_static='-Bstatic'
13505 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013506 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013507 lt_prog_compiler_wl='-Qoption ld ';;
13508 *)
13509 lt_prog_compiler_wl='-Wl,';;
13510 esac
13511 ;;
13512
13513 sunos4*)
13514 lt_prog_compiler_wl='-Qoption ld '
13515 lt_prog_compiler_pic='-PIC'
13516 lt_prog_compiler_static='-Bstatic'
13517 ;;
13518
13519 sysv4 | sysv4.2uw2* | sysv4.3*)
13520 lt_prog_compiler_wl='-Wl,'
13521 lt_prog_compiler_pic='-KPIC'
13522 lt_prog_compiler_static='-Bstatic'
13523 ;;
13524
13525 sysv4*MP*)
13526 if test -d /usr/nec ;then
13527 lt_prog_compiler_pic='-Kconform_pic'
13528 lt_prog_compiler_static='-Bstatic'
13529 fi
13530 ;;
13531
13532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13533 lt_prog_compiler_wl='-Wl,'
13534 lt_prog_compiler_pic='-KPIC'
13535 lt_prog_compiler_static='-Bstatic'
13536 ;;
13537
13538 unicos*)
13539 lt_prog_compiler_wl='-Wl,'
13540 lt_prog_compiler_can_build_shared=no
13541 ;;
13542
13543 uts4*)
13544 lt_prog_compiler_pic='-pic'
13545 lt_prog_compiler_static='-Bstatic'
13546 ;;
13547
13548 *)
13549 lt_prog_compiler_can_build_shared=no
13550 ;;
13551 esac
13552 fi
13553
13554case $host_os in
13555 # For platforms which do not support PIC, -DPIC is meaningless:
13556 *djgpp*)
13557 lt_prog_compiler_pic=
13558 ;;
13559 *)
13560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13561 ;;
13562esac
cristy73bd4a52010-10-05 11:24:23 +000013563
cristyda16f162011-02-19 23:52:17 +000013564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13565$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13566if ${lt_cv_prog_compiler_pic+:} false; then :
13567 $as_echo_n "(cached) " >&6
13568else
13569 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13570fi
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13572$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13573lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013574
13575#
13576# Check to make sure the PIC flag actually works.
13577#
13578if test -n "$lt_prog_compiler_pic"; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13580$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013581if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013582 $as_echo_n "(cached) " >&6
13583else
13584 lt_cv_prog_compiler_pic_works=no
13585 ac_outfile=conftest.$ac_objext
13586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13588 # Insert the option either (1) after the last *FLAGS variable, or
13589 # (2) before a word containing "conftest.", or (3) at the end.
13590 # Note that $ac_compile itself does not contain backslashes and begins
13591 # with a dollar sign (not a hyphen), so the echo should work correctly.
13592 # The option is referenced via a variable to avoid confusing sed.
13593 lt_compile=`echo "$ac_compile" | $SED \
13594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13596 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013598 (eval "$lt_compile" 2>conftest.err)
13599 ac_status=$?
13600 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013602 if (exit $ac_status) && test -s "$ac_outfile"; then
13603 # The compiler can only warn and ignore the option if not recognized
13604 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13608 lt_cv_prog_compiler_pic_works=yes
13609 fi
13610 fi
13611 $RM conftest*
13612
13613fi
13614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13615$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13616
13617if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13618 case $lt_prog_compiler_pic in
13619 "" | " "*) ;;
13620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13621 esac
13622else
13623 lt_prog_compiler_pic=
13624 lt_prog_compiler_can_build_shared=no
13625fi
13626
13627fi
13628
13629
13630
13631
13632
13633
cristyda16f162011-02-19 23:52:17 +000013634
13635
13636
13637
13638
cristy73bd4a52010-10-05 11:24:23 +000013639#
13640# Check to make sure the static flag actually works.
13641#
13642wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13644$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013645if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013646 $as_echo_n "(cached) " >&6
13647else
13648 lt_cv_prog_compiler_static_works=no
13649 save_LDFLAGS="$LDFLAGS"
13650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13653 # The linker can only warn and ignore the option if not recognized
13654 # So say no if there are warnings
13655 if test -s conftest.err; then
13656 # Append any errors to the config.log.
13657 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13660 if diff conftest.exp conftest.er2 >/dev/null; then
13661 lt_cv_prog_compiler_static_works=yes
13662 fi
13663 else
13664 lt_cv_prog_compiler_static_works=yes
13665 fi
13666 fi
13667 $RM -r conftest*
13668 LDFLAGS="$save_LDFLAGS"
13669
13670fi
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13672$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13673
13674if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13675 :
13676else
13677 lt_prog_compiler_static=
13678fi
13679
13680
13681
13682
13683
13684
13685
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13687$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013688if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013689 $as_echo_n "(cached) " >&6
13690else
13691 lt_cv_prog_compiler_c_o=no
13692 $RM -r conftest 2>/dev/null
13693 mkdir conftest
13694 cd conftest
13695 mkdir out
13696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13697
13698 lt_compiler_flag="-o out/conftest2.$ac_objext"
13699 # Insert the option either (1) after the last *FLAGS variable, or
13700 # (2) before a word containing "conftest.", or (3) at the end.
13701 # Note that $ac_compile itself does not contain backslashes and begins
13702 # with a dollar sign (not a hyphen), so the echo should work correctly.
13703 lt_compile=`echo "$ac_compile" | $SED \
13704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13706 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013708 (eval "$lt_compile" 2>out/conftest.err)
13709 ac_status=$?
13710 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13713 then
13714 # The compiler can only warn and ignore the option if not recognized
13715 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13719 lt_cv_prog_compiler_c_o=yes
13720 fi
13721 fi
13722 chmod u+w . 2>&5
13723 $RM conftest*
13724 # SGI C++ compiler will create directory out/ii_files/ for
13725 # template instantiation
13726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13727 $RM out/* && rmdir out
13728 cd ..
13729 $RM -r conftest
13730 $RM conftest*
13731
13732fi
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13734$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13735
13736
13737
13738
13739
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013743if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013744 $as_echo_n "(cached) " >&6
13745else
13746 lt_cv_prog_compiler_c_o=no
13747 $RM -r conftest 2>/dev/null
13748 mkdir conftest
13749 cd conftest
13750 mkdir out
13751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13752
13753 lt_compiler_flag="-o out/conftest2.$ac_objext"
13754 # Insert the option either (1) after the last *FLAGS variable, or
13755 # (2) before a word containing "conftest.", or (3) at the end.
13756 # Note that $ac_compile itself does not contain backslashes and begins
13757 # with a dollar sign (not a hyphen), so the echo should work correctly.
13758 lt_compile=`echo "$ac_compile" | $SED \
13759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13761 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013763 (eval "$lt_compile" 2>out/conftest.err)
13764 ac_status=$?
13765 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13768 then
13769 # The compiler can only warn and ignore the option if not recognized
13770 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13774 lt_cv_prog_compiler_c_o=yes
13775 fi
13776 fi
13777 chmod u+w . 2>&5
13778 $RM conftest*
13779 # SGI C++ compiler will create directory out/ii_files/ for
13780 # template instantiation
13781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13782 $RM out/* && rmdir out
13783 cd ..
13784 $RM -r conftest
13785 $RM conftest*
13786
13787fi
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13789$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13790
13791
13792
13793
13794hard_links="nottested"
13795if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13796 # do not overwrite the value of need_locks provided by the user
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13798$as_echo_n "checking if we can lock with hard links... " >&6; }
13799 hard_links=yes
13800 $RM conftest*
13801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13802 touch conftest.a
13803 ln conftest.a conftest.b 2>&5 || hard_links=no
13804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13806$as_echo "$hard_links" >&6; }
13807 if test "$hard_links" = no; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13809$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13810 need_locks=warn
13811 fi
13812else
13813 need_locks=no
13814fi
13815
13816
13817
13818
13819
13820
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13822$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13823
13824 runpath_var=
13825 allow_undefined_flag=
13826 always_export_symbols=no
13827 archive_cmds=
13828 archive_expsym_cmds=
13829 compiler_needs_object=no
13830 enable_shared_with_static_runtimes=no
13831 export_dynamic_flag_spec=
13832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13833 hardcode_automatic=no
13834 hardcode_direct=no
13835 hardcode_direct_absolute=no
13836 hardcode_libdir_flag_spec=
13837 hardcode_libdir_flag_spec_ld=
13838 hardcode_libdir_separator=
13839 hardcode_minus_L=no
13840 hardcode_shlibpath_var=unsupported
13841 inherit_rpath=no
13842 link_all_deplibs=unknown
13843 module_cmds=
13844 module_expsym_cmds=
13845 old_archive_from_new_cmds=
13846 old_archive_from_expsyms_cmds=
13847 thread_safe_flag_spec=
13848 whole_archive_flag_spec=
13849 # include_expsyms should be a list of space-separated symbols to be *always*
13850 # included in the symbol list
13851 include_expsyms=
13852 # exclude_expsyms can be an extended regexp of symbols to exclude
13853 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13855 # as well as any symbol that contains `d'.
13856 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13858 # platforms (ab)use it in PIC code, but their linkers get confused if
13859 # the symbol is explicitly referenced. Since portable code cannot
13860 # rely on this symbol name, it's probably fine to never include it in
13861 # preloaded symbol tables.
13862 # Exclude shared library initialization/finalization symbols.
13863 extract_expsyms_cmds=
13864
13865 case $host_os in
13866 cygwin* | mingw* | pw32* | cegcc*)
13867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13868 # When not using gcc, we currently assume that we are using
13869 # Microsoft Visual C++.
13870 if test "$GCC" != yes; then
13871 with_gnu_ld=no
13872 fi
13873 ;;
13874 interix*)
13875 # we just hope/assume this is gcc and not c89 (= MSVC++)
13876 with_gnu_ld=yes
13877 ;;
13878 openbsd*)
13879 with_gnu_ld=no
13880 ;;
13881 esac
13882
13883 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013884
13885 # On some targets, GNU ld is compatible enough with the native linker
13886 # that we're better off using the native interface for both.
13887 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013888 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013889 case $host_os in
13890 aix*)
13891 # The AIX port of GNU ld has always aspired to compatibility
13892 # with the native linker. However, as the warning in the GNU ld
13893 # block says, versions before 2.19.5* couldn't really create working
13894 # shared libraries, regardless of the interface used.
13895 case `$LD -v 2>&1` in
13896 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13897 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13898 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13899 *)
13900 lt_use_gnu_ld_interface=yes
13901 ;;
13902 esac
13903 ;;
13904 *)
13905 lt_use_gnu_ld_interface=yes
13906 ;;
13907 esac
13908 fi
13909
13910 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013911 # If archive_cmds runs LD, not CC, wlarc should be empty
13912 wlarc='${wl}'
13913
13914 # Set some defaults for GNU ld with shared library support. These
13915 # are reset later if shared libraries are not supported. Putting them
13916 # here allows them to be overridden if necessary.
13917 runpath_var=LD_RUN_PATH
13918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13919 export_dynamic_flag_spec='${wl}--export-dynamic'
13920 # ancient GNU ld didn't support --whole-archive et. al.
13921 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13922 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13923 else
13924 whole_archive_flag_spec=
13925 fi
13926 supports_anon_versioning=no
13927 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013928 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13932 *\ 2.11.*) ;; # other 2.11 versions
13933 *) supports_anon_versioning=yes ;;
13934 esac
13935
13936 # See if GNU ld supports shared libraries.
13937 case $host_os in
13938 aix[3-9]*)
13939 # On AIX/PPC, the GNU linker is very broken
13940 if test "$host_cpu" != ia64; then
13941 ld_shlibs=no
13942 cat <<_LT_EOF 1>&2
13943
cristy0c60a692010-11-04 01:09:47 +000013944*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013945*** to be unable to reliably create shared libraries on AIX.
13946*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013947*** really care for shared libraries, you may want to install binutils
13948*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13949*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013950
13951_LT_EOF
13952 fi
13953 ;;
13954
13955 amigaos*)
13956 case $host_cpu in
13957 powerpc)
13958 # see comment about AmigaOS4 .so support
13959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13960 archive_expsym_cmds=''
13961 ;;
13962 m68k)
13963 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)'
13964 hardcode_libdir_flag_spec='-L$libdir'
13965 hardcode_minus_L=yes
13966 ;;
13967 esac
13968 ;;
13969
13970 beos*)
13971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13972 allow_undefined_flag=unsupported
13973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13974 # support --undefined. This deserves some investigation. FIXME
13975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13976 else
13977 ld_shlibs=no
13978 fi
13979 ;;
13980
13981 cygwin* | mingw* | pw32* | cegcc*)
13982 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13983 # as there is no search path for DLLs.
13984 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013985 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013986 allow_undefined_flag=unsupported
13987 always_export_symbols=no
13988 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013989 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'
13990 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 +000013991
13992 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13994 # If the export-symbols file already is a .def file (1st line
13995 # is EXPORTS), use it as is; otherwise, prepend...
13996 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13997 cp $export_symbols $output_objdir/$soname.def;
13998 else
13999 echo EXPORTS > $output_objdir/$soname.def;
14000 cat $export_symbols >> $output_objdir/$soname.def;
14001 fi~
14002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14003 else
14004 ld_shlibs=no
14005 fi
14006 ;;
14007
cristy0c60a692010-11-04 01:09:47 +000014008 haiku*)
14009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14010 link_all_deplibs=yes
14011 ;;
14012
cristy73bd4a52010-10-05 11:24:23 +000014013 interix[3-9]*)
14014 hardcode_direct=no
14015 hardcode_shlibpath_var=no
14016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14017 export_dynamic_flag_spec='${wl}-E'
14018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14019 # Instead, shared libraries are loaded at an image base (0x10000000 by
14020 # default) and relocated if they conflict, which is a slow very memory
14021 # consuming and fragmenting process. To avoid this, we pick a random,
14022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14025 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'
14026 ;;
14027
cristy0c60a692010-11-04 01:09:47 +000014028 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014029 tmp_diet=no
14030 if test "$host_os" = linux-dietlibc; then
14031 case $cc_basename in
14032 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14033 esac
14034 fi
14035 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14036 && test "$tmp_diet" = no
14037 then
cristyda16f162011-02-19 23:52:17 +000014038 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014039 tmp_sharedflag='-shared'
14040 case $cc_basename,$host_cpu in
14041 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014042 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 +000014043 tmp_addflag=' $pic_flag'
14044 ;;
cristy0c60a692010-11-04 01:09:47 +000014045 pgf77* | pgf90* | pgf95* | pgfortran*)
14046 # Portland Group f77 and f90 compilers
14047 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 +000014048 tmp_addflag=' $pic_flag -Mnomain' ;;
14049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14050 tmp_addflag=' -i_dynamic' ;;
14051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14052 tmp_addflag=' -i_dynamic -nofor_main' ;;
14053 ifc* | ifort*) # Intel Fortran compiler
14054 tmp_addflag=' -nofor_main' ;;
14055 lf95*) # Lahey Fortran 8.1
14056 whole_archive_flag_spec=
14057 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014058 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014059 tmp_sharedflag='-qmkshrobj'
14060 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014061 nvcc*) # Cuda Compiler Driver 2.2
14062 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'
14063 compiler_needs_object=yes
14064 ;;
cristy73bd4a52010-10-05 11:24:23 +000014065 esac
14066 case `$CC -V 2>&1 | sed 5q` in
14067 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014068 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 +000014069 compiler_needs_object=yes
14070 tmp_sharedflag='-G' ;;
14071 *Sun\ F*) # Sun Fortran 8.3
14072 tmp_sharedflag='-G' ;;
14073 esac
14074 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075
14076 if test "x$supports_anon_versioning" = xyes; then
14077 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14079 echo "local: *; };" >> $output_objdir/$libname.ver~
14080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14081 fi
14082
14083 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014084 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014085 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14086 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14087 hardcode_libdir_flag_spec=
14088 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014089 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014090 if test "x$supports_anon_versioning" = xyes; then
14091 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14093 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014094 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014095 fi
14096 ;;
14097 esac
14098 else
14099 ld_shlibs=no
14100 fi
14101 ;;
14102
14103 netbsd*)
14104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14105 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14106 wlarc=
14107 else
cristyda16f162011-02-19 23:52:17 +000014108 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14109 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 +000014110 fi
14111 ;;
14112
14113 solaris*)
14114 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14115 ld_shlibs=no
14116 cat <<_LT_EOF 1>&2
14117
14118*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14119*** create shared libraries on Solaris systems. Therefore, libtool
14120*** is disabling shared libraries support. We urge you to upgrade GNU
14121*** binutils to release 2.9.1 or newer. Another option is to modify
14122*** your PATH or compiler configuration so that the native linker is
14123*** used, and then restart.
14124
14125_LT_EOF
14126 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014127 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14128 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 +000014129 else
14130 ld_shlibs=no
14131 fi
14132 ;;
14133
14134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14135 case `$LD -v 2>&1` in
14136 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14137 ld_shlibs=no
14138 cat <<_LT_EOF 1>&2
14139
14140*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14141*** reliably create shared libraries on SCO systems. Therefore, libtool
14142*** is disabling shared libraries support. We urge you to upgrade GNU
14143*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14144*** your PATH or compiler configuration so that the native linker is
14145*** used, and then restart.
14146
14147_LT_EOF
14148 ;;
14149 *)
14150 # For security reasons, it is highly recommended that you always
14151 # use absolute paths for naming shared libraries, and exclude the
14152 # DT_RUNPATH tag from executables and libraries. But doing so
14153 # requires that you compile everything twice, which is a pain.
14154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14158 else
14159 ld_shlibs=no
14160 fi
14161 ;;
14162 esac
14163 ;;
14164
14165 sunos4*)
14166 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14167 wlarc=
14168 hardcode_direct=yes
14169 hardcode_shlibpath_var=no
14170 ;;
14171
14172 *)
14173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014174 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175 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 +000014176 else
14177 ld_shlibs=no
14178 fi
14179 ;;
14180 esac
14181
14182 if test "$ld_shlibs" = no; then
14183 runpath_var=
14184 hardcode_libdir_flag_spec=
14185 export_dynamic_flag_spec=
14186 whole_archive_flag_spec=
14187 fi
14188 else
14189 # PORTME fill in a description of your system's linker (not GNU ld)
14190 case $host_os in
14191 aix3*)
14192 allow_undefined_flag=unsupported
14193 always_export_symbols=yes
14194 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'
14195 # Note: this linker hardcodes the directories in LIBPATH if there
14196 # are no directories specified by -L.
14197 hardcode_minus_L=yes
14198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14199 # Neither direct hardcoding nor static linking is supported with a
14200 # broken collect2.
14201 hardcode_direct=unsupported
14202 fi
14203 ;;
14204
14205 aix[4-9]*)
14206 if test "$host_cpu" = ia64; then
14207 # On IA64, the linker does run time linking by default, so we don't
14208 # have to do anything special.
14209 aix_use_runtimelinking=no
14210 exp_sym_flag='-Bexport'
14211 no_entry_flag=""
14212 else
14213 # If we're using GNU nm, then we don't want the "-C" option.
14214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014215 # Also, AIX nm treats weak defined symbols like other global
14216 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014218 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 +000014219 else
14220 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'
14221 fi
14222 aix_use_runtimelinking=no
14223
14224 # Test if we are trying to use run time linking or normal
14225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14226 # need to do runtime linking.
14227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14228 for ld_flag in $LDFLAGS; do
14229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14230 aix_use_runtimelinking=yes
14231 break
14232 fi
14233 done
14234 ;;
14235 esac
14236
14237 exp_sym_flag='-bexport'
14238 no_entry_flag='-bnoentry'
14239 fi
14240
14241 # When large executables or shared objects are built, AIX ld can
14242 # have problems creating the table of contents. If linking a library
14243 # or program results in "error TOC overflow" add -mminimal-toc to
14244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14246
14247 archive_cmds=''
14248 hardcode_direct=yes
14249 hardcode_direct_absolute=yes
14250 hardcode_libdir_separator=':'
14251 link_all_deplibs=yes
14252 file_list_spec='${wl}-f,'
14253
14254 if test "$GCC" = yes; then
14255 case $host_os in aix4.[012]|aix4.[012].*)
14256 # We only want to do this on AIX 4.2 and lower, the check
14257 # below for broken collect2 doesn't work under 4.3+
14258 collect2name=`${CC} -print-prog-name=collect2`
14259 if test -f "$collect2name" &&
14260 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14261 then
14262 # We have reworked collect2
14263 :
14264 else
14265 # We have old collect2
14266 hardcode_direct=unsupported
14267 # It fails to find uninstalled libraries when the uninstalled
14268 # path is not listed in the libpath. Setting hardcode_minus_L
14269 # to unsupported forces relinking
14270 hardcode_minus_L=yes
14271 hardcode_libdir_flag_spec='-L$libdir'
14272 hardcode_libdir_separator=
14273 fi
14274 ;;
14275 esac
14276 shared_flag='-shared'
14277 if test "$aix_use_runtimelinking" = yes; then
14278 shared_flag="$shared_flag "'${wl}-G'
14279 fi
14280 else
14281 # not using gcc
14282 if test "$host_cpu" = ia64; then
14283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14284 # chokes on -Wl,-G. The following line is correct:
14285 shared_flag='-G'
14286 else
14287 if test "$aix_use_runtimelinking" = yes; then
14288 shared_flag='${wl}-G'
14289 else
14290 shared_flag='${wl}-bM:SRE'
14291 fi
14292 fi
14293 fi
14294
14295 export_dynamic_flag_spec='${wl}-bexpall'
14296 # It seems that -bexpall does not export symbols beginning with
14297 # underscore (_), so it is better to generate a list of symbols to export.
14298 always_export_symbols=yes
14299 if test "$aix_use_runtimelinking" = yes; then
14300 # Warning - without using the other runtime loading flags (-brtl),
14301 # -berok will link without error, but may produce a broken library.
14302 allow_undefined_flag='-berok'
14303 # Determine the default libpath from the value encoded in an
14304 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014305 if test "${lt_cv_aix_libpath+set}" = set; then
14306 aix_libpath=$lt_cv_aix_libpath
14307else
14308 if ${lt_cv_aix_libpath_+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310else
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014312/* end confdefs.h. */
14313
14314int
14315main ()
14316{
14317
14318 ;
14319 return 0;
14320}
14321_ACEOF
14322if ac_fn_c_try_link "$LINENO"; then :
14323
cristyda16f162011-02-19 23:52:17 +000014324 lt_aix_libpath_sed='
14325 /Import File Strings/,/^$/ {
14326 /^0/ {
14327 s/^0 *\([^ ]*\) *$/\1/
14328 p
14329 }
14330 }'
14331 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14332 # Check for a 64-bit object if we didn't find anything.
14333 if test -z "$lt_cv_aix_libpath_"; then
14334 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14335 fi
cristy73bd4a52010-10-05 11:24:23 +000014336fi
14337rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014339 if test -z "$lt_cv_aix_libpath_"; then
14340 lt_cv_aix_libpath_="/usr/lib:/lib"
14341 fi
14342
14343fi
14344
14345 aix_libpath=$lt_cv_aix_libpath_
14346fi
cristy73bd4a52010-10-05 11:24:23 +000014347
14348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014349 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 +000014350 else
14351 if test "$host_cpu" = ia64; then
14352 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14353 allow_undefined_flag="-z nodefs"
14354 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"
14355 else
14356 # Determine the default libpath from the value encoded in an
14357 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014358 if test "${lt_cv_aix_libpath+set}" = set; then
14359 aix_libpath=$lt_cv_aix_libpath
14360else
14361 if ${lt_cv_aix_libpath_+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363else
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014365/* end confdefs.h. */
14366
14367int
14368main ()
14369{
14370
14371 ;
14372 return 0;
14373}
14374_ACEOF
14375if ac_fn_c_try_link "$LINENO"; then :
14376
cristyda16f162011-02-19 23:52:17 +000014377 lt_aix_libpath_sed='
14378 /Import File Strings/,/^$/ {
14379 /^0/ {
14380 s/^0 *\([^ ]*\) *$/\1/
14381 p
14382 }
14383 }'
14384 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14385 # Check for a 64-bit object if we didn't find anything.
14386 if test -z "$lt_cv_aix_libpath_"; then
14387 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14388 fi
cristy73bd4a52010-10-05 11:24:23 +000014389fi
14390rm -f core conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014392 if test -z "$lt_cv_aix_libpath_"; then
14393 lt_cv_aix_libpath_="/usr/lib:/lib"
14394 fi
14395
14396fi
14397
14398 aix_libpath=$lt_cv_aix_libpath_
14399fi
cristy73bd4a52010-10-05 11:24:23 +000014400
14401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14402 # Warning - without using the other run time loading flags,
14403 # -berok will link without error, but may produce a broken library.
14404 no_undefined_flag=' ${wl}-bernotok'
14405 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014406 if test "$with_gnu_ld" = yes; then
14407 # We only use this code for GNU lds that support --whole-archive.
14408 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14409 else
14410 # Exported symbols can be pulled into shared objects from archives
14411 whole_archive_flag_spec='$convenience'
14412 fi
cristy73bd4a52010-10-05 11:24:23 +000014413 archive_cmds_need_lc=yes
14414 # This is similar to how AIX traditionally builds its shared libraries.
14415 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'
14416 fi
14417 fi
14418 ;;
14419
14420 amigaos*)
14421 case $host_cpu in
14422 powerpc)
14423 # see comment about AmigaOS4 .so support
14424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14425 archive_expsym_cmds=''
14426 ;;
14427 m68k)
14428 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)'
14429 hardcode_libdir_flag_spec='-L$libdir'
14430 hardcode_minus_L=yes
14431 ;;
14432 esac
14433 ;;
14434
14435 bsdi[45]*)
14436 export_dynamic_flag_spec=-rdynamic
14437 ;;
14438
14439 cygwin* | mingw* | pw32* | cegcc*)
14440 # When not using gcc, we currently assume that we are using
14441 # Microsoft Visual C++.
14442 # hardcode_libdir_flag_spec is actually meaningless, as there is
14443 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014444 case $cc_basename in
14445 cl*)
14446 # Native MSVC
14447 hardcode_libdir_flag_spec=' '
14448 allow_undefined_flag=unsupported
14449 always_export_symbols=yes
14450 file_list_spec='@'
14451 # Tell ltmain to make .lib files, not .a files.
14452 libext=lib
14453 # Tell ltmain to make .dll files, not .so files.
14454 shrext_cmds=".dll"
14455 # FIXME: Setting linknames here is a bad hack.
14456 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14457 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14458 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14459 else
14460 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14461 fi~
14462 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14463 linknames='
14464 # The linker will not automatically build a static lib if we build a DLL.
14465 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14466 enable_shared_with_static_runtimes=yes
14467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14468 # Don't use ranlib
14469 old_postinstall_cmds='chmod 644 $oldlib'
14470 postlink_cmds='lt_outputfile="@OUTPUT@"~
14471 lt_tool_outputfile="@TOOL_OUTPUT@"~
14472 case $lt_outputfile in
14473 *.exe|*.EXE) ;;
14474 *)
14475 lt_outputfile="$lt_outputfile.exe"
14476 lt_tool_outputfile="$lt_tool_outputfile.exe"
14477 ;;
14478 esac~
14479 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14480 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14481 $RM "$lt_outputfile.manifest";
14482 fi'
14483 ;;
14484 *)
14485 # Assume MSVC wrapper
14486 hardcode_libdir_flag_spec=' '
14487 allow_undefined_flag=unsupported
14488 # Tell ltmain to make .lib files, not .a files.
14489 libext=lib
14490 # Tell ltmain to make .dll files, not .so files.
14491 shrext_cmds=".dll"
14492 # FIXME: Setting linknames here is a bad hack.
14493 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14494 # The linker will automatically build a .lib file if we build a DLL.
14495 old_archive_from_new_cmds='true'
14496 # FIXME: Should let the user specify the lib program.
14497 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14498 enable_shared_with_static_runtimes=yes
14499 ;;
14500 esac
cristy73bd4a52010-10-05 11:24:23 +000014501 ;;
14502
14503 darwin* | rhapsody*)
14504
14505
14506 archive_cmds_need_lc=no
14507 hardcode_direct=no
14508 hardcode_automatic=yes
14509 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014510 if test "$lt_cv_ld_force_load" = "yes"; then
14511 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\"`'
14512 else
14513 whole_archive_flag_spec=''
14514 fi
cristy73bd4a52010-10-05 11:24:23 +000014515 link_all_deplibs=yes
14516 allow_undefined_flag="$_lt_dar_allow_undefined"
14517 case $cc_basename in
14518 ifort*) _lt_dar_can_shared=yes ;;
14519 *) _lt_dar_can_shared=$GCC ;;
14520 esac
14521 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014522 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014523 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14524 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14525 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}"
14526 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}"
14527
14528 else
14529 ld_shlibs=no
14530 fi
14531
14532 ;;
14533
14534 dgux*)
14535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14536 hardcode_libdir_flag_spec='-L$libdir'
14537 hardcode_shlibpath_var=no
14538 ;;
14539
14540 freebsd1*)
14541 ld_shlibs=no
14542 ;;
14543
14544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14545 # support. Future versions do this automatically, but an explicit c++rt0.o
14546 # does not break anything, and helps significantly (at the cost of a little
14547 # extra space).
14548 freebsd2.2*)
14549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14550 hardcode_libdir_flag_spec='-R$libdir'
14551 hardcode_direct=yes
14552 hardcode_shlibpath_var=no
14553 ;;
14554
14555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14556 freebsd2*)
14557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14558 hardcode_direct=yes
14559 hardcode_minus_L=yes
14560 hardcode_shlibpath_var=no
14561 ;;
14562
14563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14564 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014566 hardcode_libdir_flag_spec='-R$libdir'
14567 hardcode_direct=yes
14568 hardcode_shlibpath_var=no
14569 ;;
14570
14571 hpux9*)
14572 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014573 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 +000014574 else
14575 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'
14576 fi
14577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14578 hardcode_libdir_separator=:
14579 hardcode_direct=yes
14580
14581 # hardcode_minus_L: Not really in the search PATH,
14582 # but as the default location of the library.
14583 hardcode_minus_L=yes
14584 export_dynamic_flag_spec='${wl}-E'
14585 ;;
14586
14587 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014588 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014589 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 +000014590 else
14591 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14592 fi
14593 if test "$with_gnu_ld" = no; then
14594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14595 hardcode_libdir_flag_spec_ld='+b $libdir'
14596 hardcode_libdir_separator=:
14597 hardcode_direct=yes
14598 hardcode_direct_absolute=yes
14599 export_dynamic_flag_spec='${wl}-E'
14600 # hardcode_minus_L: Not really in the search PATH,
14601 # but as the default location of the library.
14602 hardcode_minus_L=yes
14603 fi
14604 ;;
14605
14606 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014607 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014608 case $host_cpu in
14609 hppa*64*)
14610 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 ;;
14612 ia64*)
cristyda16f162011-02-19 23:52:17 +000014613 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014614 ;;
14615 *)
cristyda16f162011-02-19 23:52:17 +000014616 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 +000014617 ;;
14618 esac
14619 else
14620 case $host_cpu in
14621 hppa*64*)
14622 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14623 ;;
14624 ia64*)
14625 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14626 ;;
14627 *)
cristy0c60a692010-11-04 01:09:47 +000014628
14629 # Older versions of the 11.00 compiler do not understand -b yet
14630 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14632$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014633if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014634 $as_echo_n "(cached) " >&6
14635else
14636 lt_cv_prog_compiler__b=no
14637 save_LDFLAGS="$LDFLAGS"
14638 LDFLAGS="$LDFLAGS -b"
14639 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14641 # The linker can only warn and ignore the option if not recognized
14642 # So say no if there are warnings
14643 if test -s conftest.err; then
14644 # Append any errors to the config.log.
14645 cat conftest.err 1>&5
14646 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14648 if diff conftest.exp conftest.er2 >/dev/null; then
14649 lt_cv_prog_compiler__b=yes
14650 fi
14651 else
14652 lt_cv_prog_compiler__b=yes
14653 fi
14654 fi
14655 $RM -r conftest*
14656 LDFLAGS="$save_LDFLAGS"
14657
14658fi
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14660$as_echo "$lt_cv_prog_compiler__b" >&6; }
14661
14662if test x"$lt_cv_prog_compiler__b" = xyes; then
14663 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14664else
14665 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14666fi
14667
cristy73bd4a52010-10-05 11:24:23 +000014668 ;;
14669 esac
14670 fi
14671 if test "$with_gnu_ld" = no; then
14672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14673 hardcode_libdir_separator=:
14674
14675 case $host_cpu in
14676 hppa*64*|ia64*)
14677 hardcode_direct=no
14678 hardcode_shlibpath_var=no
14679 ;;
14680 *)
14681 hardcode_direct=yes
14682 hardcode_direct_absolute=yes
14683 export_dynamic_flag_spec='${wl}-E'
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 ;;
14689 esac
14690 fi
14691 ;;
14692
14693 irix5* | irix6* | nonstopux*)
14694 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014695 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 +000014696 # Try to use the -exported_symbol ld option, if it does not
14697 # work, assume that -exports_file does not work either and
14698 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014699 # This should be the same for all languages, so no per-tag cache variable.
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14701$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14702if ${lt_cv_irix_exported_symbol+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704else
14705 save_LDFLAGS="$LDFLAGS"
14706 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014708/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014709int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014710_ACEOF
14711if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014712 lt_cv_irix_exported_symbol=yes
14713else
14714 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014715fi
14716rm -f core conftest.err conftest.$ac_objext \
14717 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014718 LDFLAGS="$save_LDFLAGS"
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14721$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14722 if test "$lt_cv_irix_exported_symbol" = yes; then
14723 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'
14724 fi
cristy73bd4a52010-10-05 11:24:23 +000014725 else
cristy0c60a692010-11-04 01:09:47 +000014726 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'
14727 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 +000014728 fi
14729 archive_cmds_need_lc='no'
14730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14731 hardcode_libdir_separator=:
14732 inherit_rpath=yes
14733 link_all_deplibs=yes
14734 ;;
14735
14736 netbsd*)
14737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14739 else
14740 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14741 fi
14742 hardcode_libdir_flag_spec='-R$libdir'
14743 hardcode_direct=yes
14744 hardcode_shlibpath_var=no
14745 ;;
14746
14747 newsos6)
14748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14749 hardcode_direct=yes
14750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14751 hardcode_libdir_separator=:
14752 hardcode_shlibpath_var=no
14753 ;;
14754
14755 *nto* | *qnx*)
14756 ;;
14757
14758 openbsd*)
14759 if test -f /usr/libexec/ld.so; then
14760 hardcode_direct=yes
14761 hardcode_shlibpath_var=no
14762 hardcode_direct_absolute=yes
14763 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14765 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14766 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14767 export_dynamic_flag_spec='${wl}-E'
14768 else
14769 case $host_os in
14770 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14772 hardcode_libdir_flag_spec='-R$libdir'
14773 ;;
14774 *)
14775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14777 ;;
14778 esac
14779 fi
14780 else
14781 ld_shlibs=no
14782 fi
14783 ;;
14784
14785 os2*)
14786 hardcode_libdir_flag_spec='-L$libdir'
14787 hardcode_minus_L=yes
14788 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014789 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 +000014790 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14791 ;;
14792
14793 osf3*)
14794 if test "$GCC" = yes; then
14795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014796 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 +000014797 else
14798 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014799 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 +000014800 fi
14801 archive_cmds_need_lc='no'
14802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14803 hardcode_libdir_separator=:
14804 ;;
14805
14806 osf4* | osf5*) # as osf3* with the addition of -msym flag
14807 if test "$GCC" = yes; then
14808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014809 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 +000014810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14811 else
14812 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014813 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 +000014814 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 +000014815 $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 +000014816
14817 # Both c and cxx compiler support -rpath directly
14818 hardcode_libdir_flag_spec='-rpath $libdir'
14819 fi
14820 archive_cmds_need_lc='no'
14821 hardcode_libdir_separator=:
14822 ;;
14823
14824 solaris*)
14825 no_undefined_flag=' -z defs'
14826 if test "$GCC" = yes; then
14827 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014828 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 +000014829 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 +000014830 $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 +000014831 else
14832 case `$CC -V 2>&1` in
14833 *"Compilers 5.0"*)
14834 wlarc=''
14835 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14837 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14838 ;;
14839 *)
14840 wlarc='${wl}'
14841 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14843 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14844 ;;
14845 esac
14846 fi
14847 hardcode_libdir_flag_spec='-R$libdir'
14848 hardcode_shlibpath_var=no
14849 case $host_os in
14850 solaris2.[0-5] | solaris2.[0-5].*) ;;
14851 *)
14852 # The compiler driver will combine and reorder linker options,
14853 # but understands `-z linker_flag'. GCC discards it without `$wl',
14854 # but is careful enough not to reorder.
14855 # Supported since Solaris 2.6 (maybe 2.5.1?)
14856 if test "$GCC" = yes; then
14857 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14858 else
14859 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14860 fi
14861 ;;
14862 esac
14863 link_all_deplibs=yes
14864 ;;
14865
14866 sunos4*)
14867 if test "x$host_vendor" = xsequent; then
14868 # Use $CC to link under sequent, because it throws in some extra .o
14869 # files that make .init and .fini sections work.
14870 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14871 else
14872 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14873 fi
14874 hardcode_libdir_flag_spec='-L$libdir'
14875 hardcode_direct=yes
14876 hardcode_minus_L=yes
14877 hardcode_shlibpath_var=no
14878 ;;
14879
14880 sysv4)
14881 case $host_vendor in
14882 sni)
14883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14884 hardcode_direct=yes # is this really true???
14885 ;;
14886 siemens)
14887 ## LD is ld it makes a PLAMLIB
14888 ## CC just makes a GrossModule.
14889 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14890 reload_cmds='$CC -r -o $output$reload_objs'
14891 hardcode_direct=no
14892 ;;
14893 motorola)
14894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14896 ;;
14897 esac
14898 runpath_var='LD_RUN_PATH'
14899 hardcode_shlibpath_var=no
14900 ;;
14901
14902 sysv4.3*)
14903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_shlibpath_var=no
14905 export_dynamic_flag_spec='-Bexport'
14906 ;;
14907
14908 sysv4*MP*)
14909 if test -d /usr/nec; then
14910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14911 hardcode_shlibpath_var=no
14912 runpath_var=LD_RUN_PATH
14913 hardcode_runpath_var=yes
14914 ld_shlibs=yes
14915 fi
14916 ;;
14917
14918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14919 no_undefined_flag='${wl}-z,text'
14920 archive_cmds_need_lc=no
14921 hardcode_shlibpath_var=no
14922 runpath_var='LD_RUN_PATH'
14923
14924 if test "$GCC" = yes; then
14925 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14926 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14927 else
14928 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14929 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14930 fi
14931 ;;
14932
14933 sysv5* | sco3.2v5* | sco5v6*)
14934 # Note: We can NOT use -z defs as we might desire, because we do not
14935 # link with -lc, and that would cause any symbols used from libc to
14936 # always be unresolved, which means just about no library would
14937 # ever link correctly. If we're not using GNU ld we use -z text
14938 # though, which does catch some bad symbols but isn't as heavy-handed
14939 # as -z defs.
14940 no_undefined_flag='${wl}-z,text'
14941 allow_undefined_flag='${wl}-z,nodefs'
14942 archive_cmds_need_lc=no
14943 hardcode_shlibpath_var=no
14944 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14945 hardcode_libdir_separator=':'
14946 link_all_deplibs=yes
14947 export_dynamic_flag_spec='${wl}-Bexport'
14948 runpath_var='LD_RUN_PATH'
14949
14950 if test "$GCC" = yes; then
14951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14953 else
14954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 fi
14957 ;;
14958
14959 uts4*)
14960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961 hardcode_libdir_flag_spec='-L$libdir'
14962 hardcode_shlibpath_var=no
14963 ;;
14964
14965 *)
14966 ld_shlibs=no
14967 ;;
14968 esac
14969
14970 if test x$host_vendor = xsni; then
14971 case $host in
14972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14973 export_dynamic_flag_spec='${wl}-Blargedynsym'
14974 ;;
14975 esac
14976 fi
14977 fi
14978
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14980$as_echo "$ld_shlibs" >&6; }
14981test "$ld_shlibs" = no && can_build_shared=no
14982
14983with_gnu_ld=$with_gnu_ld
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999#
15000# Do we need to explicitly link libc?
15001#
15002case "x$archive_cmds_need_lc" in
15003x|xyes)
15004 # Assume -lc should be added
15005 archive_cmds_need_lc=yes
15006
15007 if test "$enable_shared" = yes && test "$GCC" = yes; then
15008 case $archive_cmds in
15009 *'~'*)
15010 # FIXME: we may have to deal with multi-command sequences.
15011 ;;
15012 '$CC '*)
15013 # Test whether the compiler implicitly links with -lc since on some
15014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15015 # to ld, don't add -lc before -lgcc.
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15017$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015018if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015019 $as_echo_n "(cached) " >&6
15020else
15021 $RM conftest*
15022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015023
cristy0c60a692010-11-04 01:09:47 +000015024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015025 (eval $ac_compile) 2>&5
15026 ac_status=$?
15027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15028 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015029 soname=conftest
15030 lib=conftest
15031 libobjs=conftest.$ac_objext
15032 deplibs=
15033 wl=$lt_prog_compiler_wl
15034 pic_flag=$lt_prog_compiler_pic
15035 compiler_flags=-v
15036 linker_flags=-v
15037 verstring=
15038 output_objdir=.
15039 libname=conftest
15040 lt_save_allow_undefined_flag=$allow_undefined_flag
15041 allow_undefined_flag=
15042 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 +000015043 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15044 ac_status=$?
15045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15046 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015047 then
15048 lt_cv_archive_cmds_need_lc=no
15049 else
15050 lt_cv_archive_cmds_need_lc=yes
15051 fi
15052 allow_undefined_flag=$lt_save_allow_undefined_flag
15053 else
15054 cat conftest.err 1>&5
15055 fi
15056 $RM conftest*
15057
15058fi
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15060$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15061 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015062 ;;
15063 esac
15064 fi
15065 ;;
15066esac
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15225$as_echo_n "checking dynamic linker characteristics... " >&6; }
15226
15227if test "$GCC" = yes; then
15228 case $host_os in
15229 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15230 *) lt_awk_arg="/^libraries:/" ;;
15231 esac
cristy0c60a692010-11-04 01:09:47 +000015232 case $host_os in
15233 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15234 *) lt_sed_strip_eq="s,=/,/,g" ;;
15235 esac
15236 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15237 case $lt_search_path_spec in
15238 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015239 # if the path contains ";" then we assume it to be the separator
15240 # otherwise default to the standard path separator (i.e. ":") - it is
15241 # assumed that no part of a normal pathname contains ";" but that should
15242 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015243 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15244 ;;
15245 *)
15246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15247 ;;
15248 esac
cristy73bd4a52010-10-05 11:24:23 +000015249 # Ok, now we have the path, separated by spaces, we can step through it
15250 # and add multilib dir if necessary.
15251 lt_tmp_lt_search_path_spec=
15252 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15253 for lt_sys_path in $lt_search_path_spec; do
15254 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15256 else
15257 test -d "$lt_sys_path" && \
15258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15259 fi
15260 done
cristy0c60a692010-11-04 01:09:47 +000015261 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015262BEGIN {RS=" "; FS="/|\n";} {
15263 lt_foo="";
15264 lt_count=0;
15265 for (lt_i = NF; lt_i > 0; lt_i--) {
15266 if ($lt_i != "" && $lt_i != ".") {
15267 if ($lt_i == "..") {
15268 lt_count++;
15269 } else {
15270 if (lt_count == 0) {
15271 lt_foo="/" $lt_i lt_foo;
15272 } else {
15273 lt_count--;
15274 }
15275 }
15276 }
15277 }
15278 if (lt_foo != "") { lt_freq[lt_foo]++; }
15279 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15280}'`
cristy0c60a692010-11-04 01:09:47 +000015281 # AWK program above erroneously prepends '/' to C:/dos/paths
15282 # for these hosts.
15283 case $host_os in
15284 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15285 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15286 esac
15287 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015288else
15289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15290fi
15291library_names_spec=
15292libname_spec='lib$name'
15293soname_spec=
15294shrext_cmds=".so"
15295postinstall_cmds=
15296postuninstall_cmds=
15297finish_cmds=
15298finish_eval=
15299shlibpath_var=
15300shlibpath_overrides_runpath=unknown
15301version_type=none
15302dynamic_linker="$host_os ld.so"
15303sys_lib_dlsearch_path_spec="/lib /usr/lib"
15304need_lib_prefix=unknown
15305hardcode_into_libs=no
15306
15307# when you set need_version to no, make sure it does not cause -set_version
15308# flags to be left without arguments
15309need_version=unknown
15310
15311case $host_os in
15312aix3*)
15313 version_type=linux
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15315 shlibpath_var=LIBPATH
15316
15317 # AIX 3 has no versioning support, so we append a major version to the name.
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 ;;
15320
15321aix[4-9]*)
15322 version_type=linux
15323 need_lib_prefix=no
15324 need_version=no
15325 hardcode_into_libs=yes
15326 if test "$host_cpu" = ia64; then
15327 # AIX 5 supports IA64
15328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 else
15331 # With GCC up to 2.95.x, collect2 would create an import file
15332 # for dependence libraries. The import file would start with
15333 # the line `#! .'. This would cause the generated library to
15334 # depend on `.', always an invalid library. This was fixed in
15335 # development snapshots of GCC prior to 3.0.
15336 case $host_os in
15337 aix4 | aix4.[01] | aix4.[01].*)
15338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15339 echo ' yes '
15340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15341 :
15342 else
15343 can_build_shared=no
15344 fi
15345 ;;
15346 esac
15347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15348 # soname into executable. Probably we can add versioning support to
15349 # collect2, so additional links can be useful in future.
15350 if test "$aix_use_runtimelinking" = yes; then
15351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15352 # instead of lib<name>.a to let people know that these are not
15353 # typical AIX shared libraries.
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 else
15356 # We preserve .a as extension for shared libraries through AIX4.2
15357 # and later when we are not doing run time linking.
15358 library_names_spec='${libname}${release}.a $libname.a'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 fi
15361 shlibpath_var=LIBPATH
15362 fi
15363 ;;
15364
15365amigaos*)
15366 case $host_cpu in
15367 powerpc)
15368 # Since July 2007 AmigaOS4 officially supports .so libraries.
15369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371 ;;
15372 m68k)
15373 library_names_spec='$libname.ixlibrary $libname.a'
15374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015375 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 +000015376 ;;
15377 esac
15378 ;;
15379
15380beos*)
15381 library_names_spec='${libname}${shared_ext}'
15382 dynamic_linker="$host_os ld.so"
15383 shlibpath_var=LIBRARY_PATH
15384 ;;
15385
15386bsdi[45]*)
15387 version_type=linux
15388 need_version=no
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15395 # the default ld.so.conf also contains /usr/contrib/lib and
15396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15397 # libtool to hard-code these into programs
15398 ;;
15399
15400cygwin* | mingw* | pw32* | cegcc*)
15401 version_type=windows
15402 shrext_cmds=".dll"
15403 need_version=no
15404 need_lib_prefix=no
15405
cristyda16f162011-02-19 23:52:17 +000015406 case $GCC,$cc_basename in
15407 yes,*)
15408 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015409 library_names_spec='$libname.dll.a'
15410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15411 postinstall_cmds='base_file=`basename \${file}`~
15412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15413 dldir=$destdir/`dirname \$dlpath`~
15414 test -d \$dldir || mkdir -p \$dldir~
15415 $install_prog $dir/$dlname \$dldir/$dlname~
15416 chmod a+x \$dldir/$dlname~
15417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15419 fi'
15420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15421 dlpath=$dir/\$dldll~
15422 $RM \$dlpath'
15423 shlibpath_overrides_runpath=yes
15424
15425 case $host_os in
15426 cygwin*)
15427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015429
15430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015431 ;;
15432 mingw* | cegcc*)
15433 # MinGW DLLs use traditional 'lib' prefix
15434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015435 ;;
15436 pw32*)
15437 # pw32 DLLs use 'pw' prefix rather than 'lib'
15438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15439 ;;
15440 esac
cristyda16f162011-02-19 23:52:17 +000015441 dynamic_linker='Win32 ld.exe'
15442 ;;
15443
15444 *,cl*)
15445 # Native MSVC
15446 libname_spec='$name'
15447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15448 library_names_spec='${libname}.dll.lib'
15449
15450 case $build_os in
15451 mingw*)
15452 sys_lib_search_path_spec=
15453 lt_save_ifs=$IFS
15454 IFS=';'
15455 for lt_path in $LIB
15456 do
15457 IFS=$lt_save_ifs
15458 # Let DOS variable expansion print the short 8.3 style file name.
15459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15461 done
15462 IFS=$lt_save_ifs
15463 # Convert to MSYS style.
15464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15465 ;;
15466 cygwin*)
15467 # Convert to unix form, then to dos form, then back to unix form
15468 # but this time dos style (no spaces!) so that the unix form looks
15469 # like /cygdrive/c/PROGRA~1:/cygdr...
15470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15473 ;;
15474 *)
15475 sys_lib_search_path_spec="$LIB"
15476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15477 # It is most probably a Windows format PATH.
15478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15479 else
15480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15481 fi
15482 # FIXME: find the short name or the path components, as spaces are
15483 # common. (e.g. "Program Files" -> "PROGRA~1")
15484 ;;
15485 esac
15486
15487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15488 postinstall_cmds='base_file=`basename \${file}`~
15489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15490 dldir=$destdir/`dirname \$dlpath`~
15491 test -d \$dldir || mkdir -p \$dldir~
15492 $install_prog $dir/$dlname \$dldir/$dlname'
15493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15494 dlpath=$dir/\$dldll~
15495 $RM \$dlpath'
15496 shlibpath_overrides_runpath=yes
15497 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015498 ;;
15499
15500 *)
cristyda16f162011-02-19 23:52:17 +000015501 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015503 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015504 ;;
15505 esac
cristy73bd4a52010-10-05 11:24:23 +000015506 # FIXME: first we should search . and the directory the executable is in
15507 shlibpath_var=PATH
15508 ;;
15509
15510darwin* | rhapsody*)
15511 dynamic_linker="$host_os dyld"
15512 version_type=darwin
15513 need_lib_prefix=no
15514 need_version=no
15515 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15516 soname_spec='${libname}${release}${major}$shared_ext'
15517 shlibpath_overrides_runpath=yes
15518 shlibpath_var=DYLD_LIBRARY_PATH
15519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15520
15521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15523 ;;
15524
15525dgux*)
15526 version_type=linux
15527 need_lib_prefix=no
15528 need_version=no
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 ;;
15533
15534freebsd1*)
15535 dynamic_linker=no
15536 ;;
15537
15538freebsd* | dragonfly*)
15539 # DragonFly does not have aout. When/if they implement a new
15540 # versioning mechanism, adjust this.
15541 if test -x /usr/bin/objformat; then
15542 objformat=`/usr/bin/objformat`
15543 else
15544 case $host_os in
15545 freebsd[123]*) objformat=aout ;;
15546 *) objformat=elf ;;
15547 esac
15548 fi
15549 version_type=freebsd-$objformat
15550 case $version_type in
15551 freebsd-elf*)
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15553 need_version=no
15554 need_lib_prefix=no
15555 ;;
15556 freebsd-*)
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15558 need_version=yes
15559 ;;
15560 esac
15561 shlibpath_var=LD_LIBRARY_PATH
15562 case $host_os in
15563 freebsd2*)
15564 shlibpath_overrides_runpath=yes
15565 ;;
15566 freebsd3.[01]* | freebsdelf3.[01]*)
15567 shlibpath_overrides_runpath=yes
15568 hardcode_into_libs=yes
15569 ;;
15570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15572 shlibpath_overrides_runpath=no
15573 hardcode_into_libs=yes
15574 ;;
15575 *) # from 4.6 on, and DragonFly
15576 shlibpath_overrides_runpath=yes
15577 hardcode_into_libs=yes
15578 ;;
15579 esac
15580 ;;
15581
15582gnu*)
15583 version_type=linux
15584 need_lib_prefix=no
15585 need_version=no
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 hardcode_into_libs=yes
15590 ;;
15591
cristy0c60a692010-11-04 01:09:47 +000015592haiku*)
15593 version_type=linux
15594 need_lib_prefix=no
15595 need_version=no
15596 dynamic_linker="$host_os runtime_loader"
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15598 soname_spec='${libname}${release}${shared_ext}$major'
15599 shlibpath_var=LIBRARY_PATH
15600 shlibpath_overrides_runpath=yes
15601 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15602 hardcode_into_libs=yes
15603 ;;
15604
cristy73bd4a52010-10-05 11:24:23 +000015605hpux9* | hpux10* | hpux11*)
15606 # Give a soname corresponding to the major version so that dld.sl refuses to
15607 # link against other versions.
15608 version_type=sunos
15609 need_lib_prefix=no
15610 need_version=no
15611 case $host_cpu in
15612 ia64*)
15613 shrext_cmds='.so'
15614 hardcode_into_libs=yes
15615 dynamic_linker="$host_os dld.so"
15616 shlibpath_var=LD_LIBRARY_PATH
15617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 if test "X$HPUX_IA64_MODE" = X32; then
15621 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15622 else
15623 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15624 fi
15625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15626 ;;
15627 hppa*64*)
15628 shrext_cmds='.sl'
15629 hardcode_into_libs=yes
15630 dynamic_linker="$host_os dld.sl"
15631 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15637 ;;
15638 *)
15639 shrext_cmds='.sl'
15640 dynamic_linker="$host_os dld.sl"
15641 shlibpath_var=SHLIB_PATH
15642 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 ;;
15646 esac
cristy0c60a692010-11-04 01:09:47 +000015647 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015648 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015649 # or fails outright, so override atomically:
15650 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015651 ;;
15652
15653interix[3-9]*)
15654 version_type=linux
15655 need_lib_prefix=no
15656 need_version=no
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=no
15662 hardcode_into_libs=yes
15663 ;;
15664
15665irix5* | irix6* | nonstopux*)
15666 case $host_os in
15667 nonstopux*) version_type=nonstopux ;;
15668 *)
15669 if test "$lt_cv_prog_gnu_ld" = yes; then
15670 version_type=linux
15671 else
15672 version_type=irix
15673 fi ;;
15674 esac
15675 need_lib_prefix=no
15676 need_version=no
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15679 case $host_os in
15680 irix5* | nonstopux*)
15681 libsuff= shlibsuff=
15682 ;;
15683 *)
15684 case $LD in # libtool.m4 will add one of these switches to LD
15685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15686 libsuff= shlibsuff= libmagic=32-bit;;
15687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15688 libsuff=32 shlibsuff=N32 libmagic=N32;;
15689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15691 *) libsuff= shlibsuff= libmagic=never-match;;
15692 esac
15693 ;;
15694 esac
15695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15696 shlibpath_overrides_runpath=no
15697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15699 hardcode_into_libs=yes
15700 ;;
15701
15702# No shared lib support for Linux oldld, aout, or coff.
15703linux*oldld* | linux*aout* | linux*coff*)
15704 dynamic_linker=no
15705 ;;
15706
15707# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015708linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015709 version_type=linux
15710 need_lib_prefix=no
15711 need_version=no
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015717
cristy73bd4a52010-10-05 11:24:23 +000015718 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015719 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015720 $as_echo_n "(cached) " >&6
15721else
15722 lt_cv_shlibpath_overrides_runpath=no
15723 save_LDFLAGS=$LDFLAGS
15724 save_libdir=$libdir
15725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015728/* end confdefs.h. */
15729
15730int
15731main ()
15732{
15733
15734 ;
15735 return 0;
15736}
15737_ACEOF
15738if ac_fn_c_try_link "$LINENO"; then :
15739 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015740 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015741fi
15742fi
15743rm -f core conftest.err conftest.$ac_objext \
15744 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015745 LDFLAGS=$save_LDFLAGS
15746 libdir=$save_libdir
15747
15748fi
15749
15750 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015751
15752 # This implies no fast_install, which is unacceptable.
15753 # Some rework will be needed to allow for fast_install
15754 # before this can be enabled.
15755 hardcode_into_libs=yes
15756
15757 # Add ABI-specific directories to the system library path.
15758 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15759
15760 # Append ld.so.conf contents to the search path
15761 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015762 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 +000015763 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015764
cristy73bd4a52010-10-05 11:24:23 +000015765 fi
15766
15767 # We used to test for /lib/ld.so.1 and disable shared libraries on
15768 # powerpc, because MkLinux only supported shared libraries with the
15769 # GNU dynamic linker. Since this was broken with cross compilers,
15770 # most powerpc-linux boxes support dynamic linking these days and
15771 # people can always --disable-shared, the test was removed, and we
15772 # assume the GNU/Linux dynamic linker is in use.
15773 dynamic_linker='GNU/Linux ld.so'
15774 ;;
15775
15776netbsd*)
15777 version_type=sunos
15778 need_lib_prefix=no
15779 need_version=no
15780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15783 dynamic_linker='NetBSD (a.out) ld.so'
15784 else
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 dynamic_linker='NetBSD ld.elf_so'
15788 fi
15789 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes
15791 hardcode_into_libs=yes
15792 ;;
15793
15794newsos6)
15795 version_type=linux
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 shlibpath_overrides_runpath=yes
15799 ;;
15800
15801*nto* | *qnx*)
15802 version_type=qnx
15803 need_lib_prefix=no
15804 need_version=no
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806 soname_spec='${libname}${release}${shared_ext}$major'
15807 shlibpath_var=LD_LIBRARY_PATH
15808 shlibpath_overrides_runpath=no
15809 hardcode_into_libs=yes
15810 dynamic_linker='ldqnx.so'
15811 ;;
15812
15813openbsd*)
15814 version_type=sunos
15815 sys_lib_dlsearch_path_spec="/usr/lib"
15816 need_lib_prefix=no
15817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15818 case $host_os in
15819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15820 *) need_version=no ;;
15821 esac
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15826 case $host_os in
15827 openbsd2.[89] | openbsd2.[89].*)
15828 shlibpath_overrides_runpath=no
15829 ;;
15830 *)
15831 shlibpath_overrides_runpath=yes
15832 ;;
15833 esac
15834 else
15835 shlibpath_overrides_runpath=yes
15836 fi
15837 ;;
15838
15839os2*)
15840 libname_spec='$name'
15841 shrext_cmds=".dll"
15842 need_lib_prefix=no
15843 library_names_spec='$libname${shared_ext} $libname.a'
15844 dynamic_linker='OS/2 ld.exe'
15845 shlibpath_var=LIBPATH
15846 ;;
15847
15848osf3* | osf4* | osf5*)
15849 version_type=osf
15850 need_lib_prefix=no
15851 need_version=no
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15857 ;;
15858
15859rdos*)
15860 dynamic_linker=no
15861 ;;
15862
15863solaris*)
15864 version_type=linux
15865 need_lib_prefix=no
15866 need_version=no
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868 soname_spec='${libname}${release}${shared_ext}$major'
15869 shlibpath_var=LD_LIBRARY_PATH
15870 shlibpath_overrides_runpath=yes
15871 hardcode_into_libs=yes
15872 # ldd complains unless libraries are executable
15873 postinstall_cmds='chmod +x $lib'
15874 ;;
15875
15876sunos4*)
15877 version_type=sunos
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 shlibpath_overrides_runpath=yes
15882 if test "$with_gnu_ld" = yes; then
15883 need_lib_prefix=no
15884 fi
15885 need_version=yes
15886 ;;
15887
15888sysv4 | sysv4.3*)
15889 version_type=linux
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 case $host_vendor in
15894 sni)
15895 shlibpath_overrides_runpath=no
15896 need_lib_prefix=no
15897 runpath_var=LD_RUN_PATH
15898 ;;
15899 siemens)
15900 need_lib_prefix=no
15901 ;;
15902 motorola)
15903 need_lib_prefix=no
15904 need_version=no
15905 shlibpath_overrides_runpath=no
15906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15907 ;;
15908 esac
15909 ;;
15910
15911sysv4*MP*)
15912 if test -d /usr/nec ;then
15913 version_type=linux
15914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15915 soname_spec='$libname${shared_ext}.$major'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 fi
15918 ;;
15919
15920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15921 version_type=freebsd-elf
15922 need_lib_prefix=no
15923 need_version=no
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 shlibpath_overrides_runpath=yes
15928 hardcode_into_libs=yes
15929 if test "$with_gnu_ld" = yes; then
15930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15931 else
15932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15933 case $host_os in
15934 sco3.2v5*)
15935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15936 ;;
15937 esac
15938 fi
15939 sys_lib_dlsearch_path_spec='/usr/lib'
15940 ;;
15941
15942tpf*)
15943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15944 version_type=linux
15945 need_lib_prefix=no
15946 need_version=no
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=no
15950 hardcode_into_libs=yes
15951 ;;
15952
15953uts4*)
15954 version_type=linux
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 shlibpath_var=LD_LIBRARY_PATH
15958 ;;
15959
15960*)
15961 dynamic_linker=no
15962 ;;
15963esac
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15965$as_echo "$dynamic_linker" >&6; }
15966test "$dynamic_linker" = no && can_build_shared=no
15967
15968variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15969if test "$GCC" = yes; then
15970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15971fi
15972
15973if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15975fi
15976if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15978fi
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
cristy0c60a692010-11-04 01:09:47 +000016066
16067
16068
16069
16070
cristy73bd4a52010-10-05 11:24:23 +000016071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16072$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16073hardcode_action=
16074if test -n "$hardcode_libdir_flag_spec" ||
16075 test -n "$runpath_var" ||
16076 test "X$hardcode_automatic" = "Xyes" ; then
16077
16078 # We can hardcode non-existent directories.
16079 if test "$hardcode_direct" != no &&
16080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16081 # have to relink, otherwise we might link with an installed library
16082 # when we should be linking with a yet-to-be-installed one
16083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16084 test "$hardcode_minus_L" != no; then
16085 # Linking always hardcodes the temporary library directory.
16086 hardcode_action=relink
16087 else
16088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16089 hardcode_action=immediate
16090 fi
16091else
16092 # We cannot hardcode anything, or else we can only hardcode existing
16093 # directories.
16094 hardcode_action=unsupported
16095fi
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16097$as_echo "$hardcode_action" >&6; }
16098
16099if test "$hardcode_action" = relink ||
16100 test "$inherit_rpath" = yes; then
16101 # Fast installation is not supported
16102 enable_fast_install=no
16103elif test "$shlibpath_overrides_runpath" = yes ||
16104 test "$enable_shared" = no; then
16105 # Fast installation is not necessary
16106 enable_fast_install=needless
16107fi
16108
16109
16110
16111
16112
16113
16114 if test "x$enable_dlopen" != xyes; then
16115 enable_dlopen=unknown
16116 enable_dlopen_self=unknown
16117 enable_dlopen_self_static=unknown
16118else
16119 lt_cv_dlopen=no
16120 lt_cv_dlopen_libs=
16121
16122 case $host_os in
16123 beos*)
16124 lt_cv_dlopen="load_add_on"
16125 lt_cv_dlopen_libs=
16126 lt_cv_dlopen_self=yes
16127 ;;
16128
16129 mingw* | pw32* | cegcc*)
16130 lt_cv_dlopen="LoadLibrary"
16131 lt_cv_dlopen_libs=
16132 ;;
16133
16134 cygwin*)
16135 lt_cv_dlopen="dlopen"
16136 lt_cv_dlopen_libs=
16137 ;;
16138
16139 darwin*)
16140 # if libdl is installed we need to link against it
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16142$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016143if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016144 $as_echo_n "(cached) " >&6
16145else
16146 ac_check_lib_save_LIBS=$LIBS
16147LIBS="-ldl $LIBS"
16148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h. */
16150
16151/* Override any GCC internal prototype to avoid an error.
16152 Use char because int might match the return type of a GCC
16153 builtin and then its argument prototype would still apply. */
16154#ifdef __cplusplus
16155extern "C"
16156#endif
16157char dlopen ();
16158int
16159main ()
16160{
16161return dlopen ();
16162 ;
16163 return 0;
16164}
16165_ACEOF
16166if ac_fn_c_try_link "$LINENO"; then :
16167 ac_cv_lib_dl_dlopen=yes
16168else
16169 ac_cv_lib_dl_dlopen=no
16170fi
16171rm -f core conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16173LIBS=$ac_check_lib_save_LIBS
16174fi
16175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16176$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016177if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16179else
16180
16181 lt_cv_dlopen="dyld"
16182 lt_cv_dlopen_libs=
16183 lt_cv_dlopen_self=yes
16184
16185fi
16186
16187 ;;
16188
16189 *)
16190 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016191if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016192 lt_cv_dlopen="shl_load"
16193else
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16195$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016196if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016197 $as_echo_n "(cached) " >&6
16198else
16199 ac_check_lib_save_LIBS=$LIBS
16200LIBS="-ldld $LIBS"
16201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202/* end confdefs.h. */
16203
16204/* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16207#ifdef __cplusplus
16208extern "C"
16209#endif
16210char shl_load ();
16211int
16212main ()
16213{
16214return shl_load ();
16215 ;
16216 return 0;
16217}
16218_ACEOF
16219if ac_fn_c_try_link "$LINENO"; then :
16220 ac_cv_lib_dld_shl_load=yes
16221else
16222 ac_cv_lib_dld_shl_load=no
16223fi
16224rm -f core conftest.err conftest.$ac_objext \
16225 conftest$ac_exeext conftest.$ac_ext
16226LIBS=$ac_check_lib_save_LIBS
16227fi
16228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16229$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016230if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16232else
16233 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016234if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016235 lt_cv_dlopen="dlopen"
16236else
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16238$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016239if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016240 $as_echo_n "(cached) " >&6
16241else
16242 ac_check_lib_save_LIBS=$LIBS
16243LIBS="-ldl $LIBS"
16244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245/* end confdefs.h. */
16246
16247/* Override any GCC internal prototype to avoid an error.
16248 Use char because int might match the return type of a GCC
16249 builtin and then its argument prototype would still apply. */
16250#ifdef __cplusplus
16251extern "C"
16252#endif
16253char dlopen ();
16254int
16255main ()
16256{
16257return dlopen ();
16258 ;
16259 return 0;
16260}
16261_ACEOF
16262if ac_fn_c_try_link "$LINENO"; then :
16263 ac_cv_lib_dl_dlopen=yes
16264else
16265 ac_cv_lib_dl_dlopen=no
16266fi
16267rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269LIBS=$ac_check_lib_save_LIBS
16270fi
16271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16272$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016273if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16275else
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16277$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016278if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016279 $as_echo_n "(cached) " >&6
16280else
16281 ac_check_lib_save_LIBS=$LIBS
16282LIBS="-lsvld $LIBS"
16283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284/* end confdefs.h. */
16285
16286/* Override any GCC internal prototype to avoid an error.
16287 Use char because int might match the return type of a GCC
16288 builtin and then its argument prototype would still apply. */
16289#ifdef __cplusplus
16290extern "C"
16291#endif
16292char dlopen ();
16293int
16294main ()
16295{
16296return dlopen ();
16297 ;
16298 return 0;
16299}
16300_ACEOF
16301if ac_fn_c_try_link "$LINENO"; then :
16302 ac_cv_lib_svld_dlopen=yes
16303else
16304 ac_cv_lib_svld_dlopen=no
16305fi
16306rm -f core conftest.err conftest.$ac_objext \
16307 conftest$ac_exeext conftest.$ac_ext
16308LIBS=$ac_check_lib_save_LIBS
16309fi
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16311$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016312if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16314else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16316$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016317if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016318 $as_echo_n "(cached) " >&6
16319else
16320 ac_check_lib_save_LIBS=$LIBS
16321LIBS="-ldld $LIBS"
16322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323/* end confdefs.h. */
16324
16325/* Override any GCC internal prototype to avoid an error.
16326 Use char because int might match the return type of a GCC
16327 builtin and then its argument prototype would still apply. */
16328#ifdef __cplusplus
16329extern "C"
16330#endif
16331char dld_link ();
16332int
16333main ()
16334{
16335return dld_link ();
16336 ;
16337 return 0;
16338}
16339_ACEOF
16340if ac_fn_c_try_link "$LINENO"; then :
16341 ac_cv_lib_dld_dld_link=yes
16342else
16343 ac_cv_lib_dld_dld_link=no
16344fi
16345rm -f core conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16347LIBS=$ac_check_lib_save_LIBS
16348fi
16349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16350$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016351if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16353fi
16354
16355
16356fi
16357
16358
16359fi
16360
16361
16362fi
16363
16364
16365fi
16366
16367
16368fi
16369
16370 ;;
16371 esac
16372
16373 if test "x$lt_cv_dlopen" != xno; then
16374 enable_dlopen=yes
16375 else
16376 enable_dlopen=no
16377 fi
16378
16379 case $lt_cv_dlopen in
16380 dlopen)
16381 save_CPPFLAGS="$CPPFLAGS"
16382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16383
16384 save_LDFLAGS="$LDFLAGS"
16385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16386
16387 save_LIBS="$LIBS"
16388 LIBS="$lt_cv_dlopen_libs $LIBS"
16389
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16391$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016392if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016393 $as_echo_n "(cached) " >&6
16394else
16395 if test "$cross_compiling" = yes; then :
16396 lt_cv_dlopen_self=cross
16397else
16398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16399 lt_status=$lt_dlunknown
16400 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016401#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016402#include "confdefs.h"
16403
16404#if HAVE_DLFCN_H
16405#include <dlfcn.h>
16406#endif
16407
16408#include <stdio.h>
16409
16410#ifdef RTLD_GLOBAL
16411# define LT_DLGLOBAL RTLD_GLOBAL
16412#else
16413# ifdef DL_GLOBAL
16414# define LT_DLGLOBAL DL_GLOBAL
16415# else
16416# define LT_DLGLOBAL 0
16417# endif
16418#endif
16419
16420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16421 find out it does not work in some platform. */
16422#ifndef LT_DLLAZY_OR_NOW
16423# ifdef RTLD_LAZY
16424# define LT_DLLAZY_OR_NOW RTLD_LAZY
16425# else
16426# ifdef DL_LAZY
16427# define LT_DLLAZY_OR_NOW DL_LAZY
16428# else
16429# ifdef RTLD_NOW
16430# define LT_DLLAZY_OR_NOW RTLD_NOW
16431# else
16432# ifdef DL_NOW
16433# define LT_DLLAZY_OR_NOW DL_NOW
16434# else
16435# define LT_DLLAZY_OR_NOW 0
16436# endif
16437# endif
16438# endif
16439# endif
16440#endif
16441
cristy0c60a692010-11-04 01:09:47 +000016442/* When -fvisbility=hidden is used, assume the code has been annotated
16443 correspondingly for the symbols needed. */
16444#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016445int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016446#endif
16447
cristyda16f162011-02-19 23:52:17 +000016448int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016449int main ()
16450{
16451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16452 int status = $lt_dlunknown;
16453
16454 if (self)
16455 {
16456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016457 else
16458 {
16459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16460 else puts (dlerror ());
16461 }
cristy73bd4a52010-10-05 11:24:23 +000016462 /* dlclose (self); */
16463 }
16464 else
16465 puts (dlerror ());
16466
16467 return status;
16468}
16469_LT_EOF
16470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16471 (eval $ac_link) 2>&5
16472 ac_status=$?
16473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16475 (./conftest; exit; ) >&5 2>/dev/null
16476 lt_status=$?
16477 case x$lt_status in
16478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16481 esac
16482 else :
16483 # compilation failed
16484 lt_cv_dlopen_self=no
16485 fi
16486fi
16487rm -fr conftest*
16488
16489
16490fi
16491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16492$as_echo "$lt_cv_dlopen_self" >&6; }
16493
16494 if test "x$lt_cv_dlopen_self" = xyes; then
16495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16497$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016498if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016499 $as_echo_n "(cached) " >&6
16500else
16501 if test "$cross_compiling" = yes; then :
16502 lt_cv_dlopen_self_static=cross
16503else
16504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16505 lt_status=$lt_dlunknown
16506 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016507#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016508#include "confdefs.h"
16509
16510#if HAVE_DLFCN_H
16511#include <dlfcn.h>
16512#endif
16513
16514#include <stdio.h>
16515
16516#ifdef RTLD_GLOBAL
16517# define LT_DLGLOBAL RTLD_GLOBAL
16518#else
16519# ifdef DL_GLOBAL
16520# define LT_DLGLOBAL DL_GLOBAL
16521# else
16522# define LT_DLGLOBAL 0
16523# endif
16524#endif
16525
16526/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16527 find out it does not work in some platform. */
16528#ifndef LT_DLLAZY_OR_NOW
16529# ifdef RTLD_LAZY
16530# define LT_DLLAZY_OR_NOW RTLD_LAZY
16531# else
16532# ifdef DL_LAZY
16533# define LT_DLLAZY_OR_NOW DL_LAZY
16534# else
16535# ifdef RTLD_NOW
16536# define LT_DLLAZY_OR_NOW RTLD_NOW
16537# else
16538# ifdef DL_NOW
16539# define LT_DLLAZY_OR_NOW DL_NOW
16540# else
16541# define LT_DLLAZY_OR_NOW 0
16542# endif
16543# endif
16544# endif
16545# endif
16546#endif
16547
cristy0c60a692010-11-04 01:09:47 +000016548/* When -fvisbility=hidden is used, assume the code has been annotated
16549 correspondingly for the symbols needed. */
16550#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016551int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016552#endif
16553
cristyda16f162011-02-19 23:52:17 +000016554int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016555int main ()
16556{
16557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16558 int status = $lt_dlunknown;
16559
16560 if (self)
16561 {
16562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016563 else
16564 {
16565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16566 else puts (dlerror ());
16567 }
cristy73bd4a52010-10-05 11:24:23 +000016568 /* dlclose (self); */
16569 }
16570 else
16571 puts (dlerror ());
16572
16573 return status;
16574}
16575_LT_EOF
16576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16577 (eval $ac_link) 2>&5
16578 ac_status=$?
16579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16581 (./conftest; exit; ) >&5 2>/dev/null
16582 lt_status=$?
16583 case x$lt_status in
16584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16587 esac
16588 else :
16589 # compilation failed
16590 lt_cv_dlopen_self_static=no
16591 fi
16592fi
16593rm -fr conftest*
16594
16595
16596fi
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16598$as_echo "$lt_cv_dlopen_self_static" >&6; }
16599 fi
16600
16601 CPPFLAGS="$save_CPPFLAGS"
16602 LDFLAGS="$save_LDFLAGS"
16603 LIBS="$save_LIBS"
16604 ;;
16605 esac
16606
16607 case $lt_cv_dlopen_self in
16608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16609 *) enable_dlopen_self=unknown ;;
16610 esac
16611
16612 case $lt_cv_dlopen_self_static in
16613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16614 *) enable_dlopen_self_static=unknown ;;
16615 esac
16616fi
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634striplib=
16635old_striplib=
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16637$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16638if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16642$as_echo "yes" >&6; }
16643else
16644# FIXME - insert some real tests, host_os isn't really good enough
16645 case $host_os in
16646 darwin*)
16647 if test -n "$STRIP" ; then
16648 striplib="$STRIP -x"
16649 old_striplib="$STRIP -S"
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16651$as_echo "yes" >&6; }
16652 else
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654$as_echo "no" >&6; }
16655 fi
16656 ;;
16657 *)
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16659$as_echo "no" >&6; }
16660 ;;
16661 esac
16662fi
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675 # Report which library types will actually be built
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16677$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16679$as_echo "$can_build_shared" >&6; }
16680
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16682$as_echo_n "checking whether to build shared libraries... " >&6; }
16683 test "$can_build_shared" = "no" && enable_shared=no
16684
16685 # On AIX, shared libraries and static libraries use the same namespace, and
16686 # are all built from PIC.
16687 case $host_os in
16688 aix3*)
16689 test "$enable_shared" = yes && enable_static=no
16690 if test -n "$RANLIB"; then
16691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16692 postinstall_cmds='$RANLIB $lib'
16693 fi
16694 ;;
16695
16696 aix[4-9]*)
16697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16698 test "$enable_shared" = yes && enable_static=no
16699 fi
16700 ;;
16701 esac
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16703$as_echo "$enable_shared" >&6; }
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16706$as_echo_n "checking whether to build static libraries... " >&6; }
16707 # Make sure either enable_shared or enable_static is yes.
16708 test "$enable_shared" = yes || enable_static=yes
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16710$as_echo "$enable_static" >&6; }
16711
16712
16713
16714
16715fi
16716ac_ext=c
16717ac_cpp='$CPP $CPPFLAGS'
16718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16720ac_compiler_gnu=$ac_cv_c_compiler_gnu
16721
16722CC="$lt_save_CC"
16723
cristy0c60a692010-11-04 01:09:47 +000016724 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16725 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16726 (test "X$CXX" != "Xg++"))) ; then
16727 ac_ext=cpp
16728ac_cpp='$CXXCPP $CPPFLAGS'
16729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16733$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16734if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016735 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016736 $as_echo_n "(cached) " >&6
16737else
16738 # Double quotes because CXXCPP needs to be expanded
16739 for CXXCPP in "$CXX -E" "/lib/cpp"
16740 do
16741 ac_preproc_ok=false
16742for ac_cxx_preproc_warn_flag in '' yes
16743do
16744 # Use a header file that comes with gcc, so configuring glibc
16745 # with a fresh cross-compiler works.
16746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16747 # <limits.h> exists even on freestanding compilers.
16748 # On the NeXT, cc -E runs the code through the compiler's parser,
16749 # not just through cpp. "Syntax error" is here to catch this case.
16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751/* end confdefs.h. */
16752#ifdef __STDC__
16753# include <limits.h>
16754#else
16755# include <assert.h>
16756#endif
16757 Syntax error
16758_ACEOF
16759if ac_fn_cxx_try_cpp "$LINENO"; then :
16760
16761else
16762 # Broken: fails on valid input.
16763continue
16764fi
cristyda16f162011-02-19 23:52:17 +000016765rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016766
16767 # OK, works on sane cases. Now check whether nonexistent headers
16768 # can be detected and how.
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770/* end confdefs.h. */
16771#include <ac_nonexistent.h>
16772_ACEOF
16773if ac_fn_cxx_try_cpp "$LINENO"; then :
16774 # Broken: success on invalid input.
16775continue
16776else
16777 # Passes both tests.
16778ac_preproc_ok=:
16779break
16780fi
cristyda16f162011-02-19 23:52:17 +000016781rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016782
16783done
16784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016785rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016786if $ac_preproc_ok; then :
16787 break
16788fi
16789
16790 done
16791 ac_cv_prog_CXXCPP=$CXXCPP
16792
16793fi
16794 CXXCPP=$ac_cv_prog_CXXCPP
16795else
16796 ac_cv_prog_CXXCPP=$CXXCPP
16797fi
16798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16799$as_echo "$CXXCPP" >&6; }
16800ac_preproc_ok=false
16801for ac_cxx_preproc_warn_flag in '' yes
16802do
16803 # Use a header file that comes with gcc, so configuring glibc
16804 # with a fresh cross-compiler works.
16805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16806 # <limits.h> exists even on freestanding compilers.
16807 # On the NeXT, cc -E runs the code through the compiler's parser,
16808 # not just through cpp. "Syntax error" is here to catch this case.
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810/* end confdefs.h. */
16811#ifdef __STDC__
16812# include <limits.h>
16813#else
16814# include <assert.h>
16815#endif
16816 Syntax error
16817_ACEOF
16818if ac_fn_cxx_try_cpp "$LINENO"; then :
16819
16820else
16821 # Broken: fails on valid input.
16822continue
16823fi
cristyda16f162011-02-19 23:52:17 +000016824rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016825
16826 # OK, works on sane cases. Now check whether nonexistent headers
16827 # can be detected and how.
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829/* end confdefs.h. */
16830#include <ac_nonexistent.h>
16831_ACEOF
16832if ac_fn_cxx_try_cpp "$LINENO"; then :
16833 # Broken: success on invalid input.
16834continue
16835else
16836 # Passes both tests.
16837ac_preproc_ok=:
16838break
16839fi
cristyda16f162011-02-19 23:52:17 +000016840rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016841
16842done
16843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016844rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016845if $ac_preproc_ok; then :
16846
16847else
16848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16850as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16851See \`config.log' for more details" "$LINENO" 5; }
16852fi
16853
16854ac_ext=c
16855ac_cpp='$CPP $CPPFLAGS'
16856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858ac_compiler_gnu=$ac_cv_c_compiler_gnu
16859
16860else
16861 _lt_caught_CXX_error=yes
16862fi
cristy73bd4a52010-10-05 11:24:23 +000016863
16864ac_ext=cpp
16865ac_cpp='$CXXCPP $CPPFLAGS'
16866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16869
16870archive_cmds_need_lc_CXX=no
16871allow_undefined_flag_CXX=
16872always_export_symbols_CXX=no
16873archive_expsym_cmds_CXX=
16874compiler_needs_object_CXX=no
16875export_dynamic_flag_spec_CXX=
16876hardcode_direct_CXX=no
16877hardcode_direct_absolute_CXX=no
16878hardcode_libdir_flag_spec_CXX=
16879hardcode_libdir_flag_spec_ld_CXX=
16880hardcode_libdir_separator_CXX=
16881hardcode_minus_L_CXX=no
16882hardcode_shlibpath_var_CXX=unsupported
16883hardcode_automatic_CXX=no
16884inherit_rpath_CXX=no
16885module_cmds_CXX=
16886module_expsym_cmds_CXX=
16887link_all_deplibs_CXX=unknown
16888old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016889reload_flag_CXX=$reload_flag
16890reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016891no_undefined_flag_CXX=
16892whole_archive_flag_spec_CXX=
16893enable_shared_with_static_runtimes_CXX=no
16894
16895# Source file extension for C++ test sources.
16896ac_ext=cpp
16897
16898# Object file extension for compiled C++ test sources.
16899objext=o
16900objext_CXX=$objext
16901
16902# No sense in running all these tests if we already determined that
16903# the CXX compiler isn't working. Some variables (like enable_shared)
16904# are currently assumed to apply to all compilers on this platform,
16905# and will be corrupted by setting them based on a non-working compiler.
16906if test "$_lt_caught_CXX_error" != yes; then
16907 # Code to be used in simple compile tests
16908 lt_simple_compile_test_code="int some_variable = 0;"
16909
16910 # Code to be used in simple link tests
16911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16912
16913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16914
16915
16916
16917
16918
16919
16920# If no C compiler was specified, use CC.
16921LTCC=${LTCC-"$CC"}
16922
16923# If no C compiler flags were specified, use CFLAGS.
16924LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16925
16926# Allow CC to be a program name with arguments.
16927compiler=$CC
16928
16929
16930 # save warnings/boilerplate of simple test code
16931 ac_outfile=conftest.$ac_objext
16932echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16933eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16934_lt_compiler_boilerplate=`cat conftest.err`
16935$RM conftest*
16936
16937 ac_outfile=conftest.$ac_objext
16938echo "$lt_simple_link_test_code" >conftest.$ac_ext
16939eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16940_lt_linker_boilerplate=`cat conftest.err`
16941$RM -r conftest*
16942
16943
16944 # Allow CC to be a program name with arguments.
16945 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016946 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016947 lt_save_LD=$LD
16948 lt_save_GCC=$GCC
16949 GCC=$GXX
16950 lt_save_with_gnu_ld=$with_gnu_ld
16951 lt_save_path_LD=$lt_cv_path_LD
16952 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16953 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16954 else
16955 $as_unset lt_cv_prog_gnu_ld
16956 fi
16957 if test -n "${lt_cv_path_LDCXX+set}"; then
16958 lt_cv_path_LD=$lt_cv_path_LDCXX
16959 else
16960 $as_unset lt_cv_path_LD
16961 fi
16962 test -z "${LDCXX+set}" || LD=$LDCXX
16963 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016964 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016965 compiler=$CC
16966 compiler_CXX=$CC
16967 for cc_temp in $compiler""; do
16968 case $cc_temp in
16969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16971 \-*) ;;
16972 *) break;;
16973 esac
16974done
cristy0c60a692010-11-04 01:09:47 +000016975cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016976
16977
16978 if test -n "$compiler"; then
16979 # We don't want -fno-exception when compiling C++ code, so set the
16980 # no_builtin_flag separately
16981 if test "$GXX" = yes; then
16982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16983 else
16984 lt_prog_compiler_no_builtin_flag_CXX=
16985 fi
16986
16987 if test "$GXX" = yes; then
16988 # Set up default GNU C++ configuration
16989
16990
16991
16992# Check whether --with-gnu-ld was given.
16993if test "${with_gnu_ld+set}" = set; then :
16994 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16995else
16996 with_gnu_ld=no
16997fi
16998
16999ac_prog=ld
17000if test "$GCC" = yes; then
17001 # Check if gcc -print-prog-name=ld gives a path.
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17003$as_echo_n "checking for ld used by $CC... " >&6; }
17004 case $host in
17005 *-*-mingw*)
17006 # gcc leaves a trailing carriage return which upsets mingw
17007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17008 *)
17009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17010 esac
17011 case $ac_prog in
17012 # Accept absolute paths.
17013 [\\/]* | ?:[\\/]*)
17014 re_direlt='/[^/][^/]*/\.\./'
17015 # Canonicalize the pathname of ld
17016 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17017 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17018 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17019 done
17020 test -z "$LD" && LD="$ac_prog"
17021 ;;
17022 "")
17023 # If it fails, then pretend we aren't using GCC.
17024 ac_prog=ld
17025 ;;
17026 *)
17027 # If it is relative, then search for the first ld in PATH.
17028 with_gnu_ld=unknown
17029 ;;
17030 esac
17031elif test "$with_gnu_ld" = yes; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17033$as_echo_n "checking for GNU ld... " >&6; }
17034else
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17036$as_echo_n "checking for non-GNU ld... " >&6; }
17037fi
cristyda16f162011-02-19 23:52:17 +000017038if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017039 $as_echo_n "(cached) " >&6
17040else
17041 if test -z "$LD"; then
17042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17043 for ac_dir in $PATH; do
17044 IFS="$lt_save_ifs"
17045 test -z "$ac_dir" && ac_dir=.
17046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17047 lt_cv_path_LD="$ac_dir/$ac_prog"
17048 # Check to see if the program is GNU ld. I'd rather use --version,
17049 # but apparently some variants of GNU ld only accept -v.
17050 # Break only if it was the GNU/non-GNU ld that we prefer.
17051 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17052 *GNU* | *'with BFD'*)
17053 test "$with_gnu_ld" != no && break
17054 ;;
17055 *)
17056 test "$with_gnu_ld" != yes && break
17057 ;;
17058 esac
17059 fi
17060 done
17061 IFS="$lt_save_ifs"
17062else
17063 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17064fi
17065fi
17066
17067LD="$lt_cv_path_LD"
17068if test -n "$LD"; then
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17070$as_echo "$LD" >&6; }
17071else
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17073$as_echo "no" >&6; }
17074fi
cristy98dddb52010-11-04 00:30:15 +000017075test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17077$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017078if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017079 $as_echo_n "(cached) " >&6
17080else
17081 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17082case `$LD -v 2>&1 </dev/null` in
17083*GNU* | *'with BFD'*)
17084 lt_cv_prog_gnu_ld=yes
17085 ;;
17086*)
17087 lt_cv_prog_gnu_ld=no
17088 ;;
17089esac
17090fi
17091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17092$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17093with_gnu_ld=$lt_cv_prog_gnu_ld
17094
17095
17096
17097
17098
17099
17100
17101 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17102 # archiving commands below assume that GNU ld is being used.
17103 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017104 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105 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 +000017106
17107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17108 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17109
17110 # If archive_cmds runs LD, not CC, wlarc should be empty
17111 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17112 # investigate it a little bit more. (MM)
17113 wlarc='${wl}'
17114
17115 # ancient GNU ld didn't support --whole-archive et. al.
17116 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17117 $GREP 'no-whole-archive' > /dev/null; then
17118 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17119 else
17120 whole_archive_flag_spec_CXX=
17121 fi
17122 else
17123 with_gnu_ld=no
17124 wlarc=
17125
17126 # A generic and very simple default shared library creation
17127 # command for GNU C++ for the case where it uses the native
17128 # linker, instead of GNU ld. If possible, this setting should
17129 # overridden to take advantage of the native linker features on
17130 # the platform it is being used on.
17131 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17132 fi
17133
17134 # Commands to make compiler produce verbose output that lists
17135 # what "hidden" libraries, object files and flags are used when
17136 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017138
17139 else
17140 GXX=no
17141 with_gnu_ld=no
17142 wlarc=
17143 fi
17144
17145 # PORTME: fill in a description of your system's C++ link characteristics
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17147$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17148 ld_shlibs_CXX=yes
17149 case $host_os in
17150 aix3*)
17151 # FIXME: insert proper C++ library support
17152 ld_shlibs_CXX=no
17153 ;;
17154 aix[4-9]*)
17155 if test "$host_cpu" = ia64; then
17156 # On IA64, the linker does run time linking by default, so we don't
17157 # have to do anything special.
17158 aix_use_runtimelinking=no
17159 exp_sym_flag='-Bexport'
17160 no_entry_flag=""
17161 else
17162 aix_use_runtimelinking=no
17163
17164 # Test if we are trying to use run time linking or normal
17165 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17166 # need to do runtime linking.
17167 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17168 for ld_flag in $LDFLAGS; do
17169 case $ld_flag in
17170 *-brtl*)
17171 aix_use_runtimelinking=yes
17172 break
17173 ;;
17174 esac
17175 done
17176 ;;
17177 esac
17178
17179 exp_sym_flag='-bexport'
17180 no_entry_flag='-bnoentry'
17181 fi
17182
17183 # When large executables or shared objects are built, AIX ld can
17184 # have problems creating the table of contents. If linking a library
17185 # or program results in "error TOC overflow" add -mminimal-toc to
17186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17188
17189 archive_cmds_CXX=''
17190 hardcode_direct_CXX=yes
17191 hardcode_direct_absolute_CXX=yes
17192 hardcode_libdir_separator_CXX=':'
17193 link_all_deplibs_CXX=yes
17194 file_list_spec_CXX='${wl}-f,'
17195
17196 if test "$GXX" = yes; then
17197 case $host_os in aix4.[012]|aix4.[012].*)
17198 # We only want to do this on AIX 4.2 and lower, the check
17199 # below for broken collect2 doesn't work under 4.3+
17200 collect2name=`${CC} -print-prog-name=collect2`
17201 if test -f "$collect2name" &&
17202 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17203 then
17204 # We have reworked collect2
17205 :
17206 else
17207 # We have old collect2
17208 hardcode_direct_CXX=unsupported
17209 # It fails to find uninstalled libraries when the uninstalled
17210 # path is not listed in the libpath. Setting hardcode_minus_L
17211 # to unsupported forces relinking
17212 hardcode_minus_L_CXX=yes
17213 hardcode_libdir_flag_spec_CXX='-L$libdir'
17214 hardcode_libdir_separator_CXX=
17215 fi
17216 esac
17217 shared_flag='-shared'
17218 if test "$aix_use_runtimelinking" = yes; then
17219 shared_flag="$shared_flag "'${wl}-G'
17220 fi
17221 else
17222 # not using gcc
17223 if test "$host_cpu" = ia64; then
17224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17225 # chokes on -Wl,-G. The following line is correct:
17226 shared_flag='-G'
17227 else
17228 if test "$aix_use_runtimelinking" = yes; then
17229 shared_flag='${wl}-G'
17230 else
17231 shared_flag='${wl}-bM:SRE'
17232 fi
17233 fi
17234 fi
17235
17236 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17237 # It seems that -bexpall does not export symbols beginning with
17238 # underscore (_), so it is better to generate a list of symbols to
17239 # export.
17240 always_export_symbols_CXX=yes
17241 if test "$aix_use_runtimelinking" = yes; then
17242 # Warning - without using the other runtime loading flags (-brtl),
17243 # -berok will link without error, but may produce a broken library.
17244 allow_undefined_flag_CXX='-berok'
17245 # Determine the default libpath from the value encoded in an empty
17246 # executable.
cristyda16f162011-02-19 23:52:17 +000017247 if test "${lt_cv_aix_libpath+set}" = set; then
17248 aix_libpath=$lt_cv_aix_libpath
17249else
17250 if ${lt_cv_aix_libpath__CXX+:} false; then :
17251 $as_echo_n "(cached) " >&6
17252else
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017254/* end confdefs.h. */
17255
17256int
17257main ()
17258{
17259
17260 ;
17261 return 0;
17262}
17263_ACEOF
17264if ac_fn_cxx_try_link "$LINENO"; then :
17265
cristyda16f162011-02-19 23:52:17 +000017266 lt_aix_libpath_sed='
17267 /Import File Strings/,/^$/ {
17268 /^0/ {
17269 s/^0 *\([^ ]*\) *$/\1/
17270 p
17271 }
17272 }'
17273 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17274 # Check for a 64-bit object if we didn't find anything.
17275 if test -z "$lt_cv_aix_libpath__CXX"; then
17276 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17277 fi
cristy73bd4a52010-10-05 11:24:23 +000017278fi
17279rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017281 if test -z "$lt_cv_aix_libpath__CXX"; then
17282 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17283 fi
17284
17285fi
17286
17287 aix_libpath=$lt_cv_aix_libpath__CXX
17288fi
cristy73bd4a52010-10-05 11:24:23 +000017289
17290 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17291
cristy0c60a692010-11-04 01:09:47 +000017292 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 +000017293 else
17294 if test "$host_cpu" = ia64; then
17295 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17296 allow_undefined_flag_CXX="-z nodefs"
17297 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"
17298 else
17299 # Determine the default libpath from the value encoded in an
17300 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017301 if test "${lt_cv_aix_libpath+set}" = set; then
17302 aix_libpath=$lt_cv_aix_libpath
17303else
17304 if ${lt_cv_aix_libpath__CXX+:} false; then :
17305 $as_echo_n "(cached) " >&6
17306else
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017308/* end confdefs.h. */
17309
17310int
17311main ()
17312{
17313
17314 ;
17315 return 0;
17316}
17317_ACEOF
17318if ac_fn_cxx_try_link "$LINENO"; then :
17319
cristyda16f162011-02-19 23:52:17 +000017320 lt_aix_libpath_sed='
17321 /Import File Strings/,/^$/ {
17322 /^0/ {
17323 s/^0 *\([^ ]*\) *$/\1/
17324 p
17325 }
17326 }'
17327 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17328 # Check for a 64-bit object if we didn't find anything.
17329 if test -z "$lt_cv_aix_libpath__CXX"; then
17330 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17331 fi
cristy73bd4a52010-10-05 11:24:23 +000017332fi
17333rm -f core conftest.err conftest.$ac_objext \
17334 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017335 if test -z "$lt_cv_aix_libpath__CXX"; then
17336 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17337 fi
17338
17339fi
17340
17341 aix_libpath=$lt_cv_aix_libpath__CXX
17342fi
cristy73bd4a52010-10-05 11:24:23 +000017343
17344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17345 # Warning - without using the other run time loading flags,
17346 # -berok will link without error, but may produce a broken library.
17347 no_undefined_flag_CXX=' ${wl}-bernotok'
17348 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017349 if test "$with_gnu_ld" = yes; then
17350 # We only use this code for GNU lds that support --whole-archive.
17351 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17352 else
17353 # Exported symbols can be pulled into shared objects from archives
17354 whole_archive_flag_spec_CXX='$convenience'
17355 fi
cristy73bd4a52010-10-05 11:24:23 +000017356 archive_cmds_need_lc_CXX=yes
17357 # This is similar to how AIX traditionally builds its shared
17358 # libraries.
17359 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'
17360 fi
17361 fi
17362 ;;
17363
17364 beos*)
17365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17366 allow_undefined_flag_CXX=unsupported
17367 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17368 # support --undefined. This deserves some investigation. FIXME
17369 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17370 else
17371 ld_shlibs_CXX=no
17372 fi
17373 ;;
17374
17375 chorus*)
17376 case $cc_basename in
17377 *)
17378 # FIXME: insert proper C++ library support
17379 ld_shlibs_CXX=no
17380 ;;
17381 esac
17382 ;;
17383
17384 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017385 case $GXX,$cc_basename in
17386 ,cl* | no,cl*)
17387 # Native MSVC
17388 # hardcode_libdir_flag_spec is actually meaningless, as there is
17389 # no search path for DLLs.
17390 hardcode_libdir_flag_spec_CXX=' '
17391 allow_undefined_flag_CXX=unsupported
17392 always_export_symbols_CXX=yes
17393 file_list_spec_CXX='@'
17394 # Tell ltmain to make .lib files, not .a files.
17395 libext=lib
17396 # Tell ltmain to make .dll files, not .so files.
17397 shrext_cmds=".dll"
17398 # FIXME: Setting linknames here is a bad hack.
17399 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17400 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17401 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17402 else
17403 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17404 fi~
17405 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17406 linknames='
17407 # The linker will not automatically build a static lib if we build a DLL.
17408 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17409 enable_shared_with_static_runtimes_CXX=yes
17410 # Don't use ranlib
17411 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17412 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17413 lt_tool_outputfile="@TOOL_OUTPUT@"~
17414 case $lt_outputfile in
17415 *.exe|*.EXE) ;;
17416 *)
17417 lt_outputfile="$lt_outputfile.exe"
17418 lt_tool_outputfile="$lt_tool_outputfile.exe"
17419 ;;
17420 esac~
17421 func_to_tool_file "$lt_outputfile"~
17422 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17423 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17424 $RM "$lt_outputfile.manifest";
17425 fi'
17426 ;;
17427 *)
17428 # g++
17429 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17430 # as there is no search path for DLLs.
17431 hardcode_libdir_flag_spec_CXX='-L$libdir'
17432 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17433 allow_undefined_flag_CXX=unsupported
17434 always_export_symbols_CXX=no
17435 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017436
cristyda16f162011-02-19 23:52:17 +000017437 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17438 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'
17439 # If the export-symbols file already is a .def file (1st line
17440 # is EXPORTS), use it as is; otherwise, prepend...
17441 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17442 cp $export_symbols $output_objdir/$soname.def;
17443 else
17444 echo EXPORTS > $output_objdir/$soname.def;
17445 cat $export_symbols >> $output_objdir/$soname.def;
17446 fi~
17447 $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'
17448 else
17449 ld_shlibs_CXX=no
17450 fi
17451 ;;
17452 esac
17453 ;;
cristy73bd4a52010-10-05 11:24:23 +000017454 darwin* | rhapsody*)
17455
17456
17457 archive_cmds_need_lc_CXX=no
17458 hardcode_direct_CXX=no
17459 hardcode_automatic_CXX=yes
17460 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017461 if test "$lt_cv_ld_force_load" = "yes"; then
17462 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\"`'
17463 else
17464 whole_archive_flag_spec_CXX=''
17465 fi
cristy73bd4a52010-10-05 11:24:23 +000017466 link_all_deplibs_CXX=yes
17467 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17468 case $cc_basename in
17469 ifort*) _lt_dar_can_shared=yes ;;
17470 *) _lt_dar_can_shared=$GCC ;;
17471 esac
17472 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017473 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017474 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}"
17475 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17476 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}"
17477 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}"
17478 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17479 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}"
17480 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}"
17481 fi
17482
17483 else
17484 ld_shlibs_CXX=no
17485 fi
17486
17487 ;;
17488
17489 dgux*)
17490 case $cc_basename in
17491 ec++*)
17492 # FIXME: insert proper C++ library support
17493 ld_shlibs_CXX=no
17494 ;;
17495 ghcx*)
17496 # Green Hills C++ Compiler
17497 # FIXME: insert proper C++ library support
17498 ld_shlibs_CXX=no
17499 ;;
17500 *)
17501 # FIXME: insert proper C++ library support
17502 ld_shlibs_CXX=no
17503 ;;
17504 esac
17505 ;;
17506
17507 freebsd[12]*)
17508 # C++ shared libraries reported to be fairly broken before
17509 # switch to ELF
17510 ld_shlibs_CXX=no
17511 ;;
17512
17513 freebsd-elf*)
17514 archive_cmds_need_lc_CXX=no
17515 ;;
17516
17517 freebsd* | dragonfly*)
17518 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17519 # conventions
17520 ld_shlibs_CXX=yes
17521 ;;
17522
17523 gnu*)
17524 ;;
17525
cristy0c60a692010-11-04 01:09:47 +000017526 haiku*)
17527 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17528 link_all_deplibs_CXX=yes
17529 ;;
17530
cristy73bd4a52010-10-05 11:24:23 +000017531 hpux9*)
17532 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17533 hardcode_libdir_separator_CXX=:
17534 export_dynamic_flag_spec_CXX='${wl}-E'
17535 hardcode_direct_CXX=yes
17536 hardcode_minus_L_CXX=yes # Not in the search PATH,
17537 # but as the default
17538 # location of the library.
17539
17540 case $cc_basename in
17541 CC*)
17542 # FIXME: insert proper C++ library support
17543 ld_shlibs_CXX=no
17544 ;;
17545 aCC*)
17546 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'
17547 # Commands to make compiler produce verbose output that lists
17548 # what "hidden" libraries, object files and flags are used when
17549 # linking a shared library.
17550 #
17551 # There doesn't appear to be a way to prevent this compiler from
17552 # explicitly linking system object files so we need to strip them
17553 # from the output so that they don't get included in the library
17554 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017555 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 +000017556 ;;
17557 *)
17558 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017559 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 +000017560 else
17561 # FIXME: insert proper C++ library support
17562 ld_shlibs_CXX=no
17563 fi
17564 ;;
17565 esac
17566 ;;
17567
17568 hpux10*|hpux11*)
17569 if test $with_gnu_ld = no; then
17570 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17571 hardcode_libdir_separator_CXX=:
17572
17573 case $host_cpu in
17574 hppa*64*|ia64*)
17575 ;;
17576 *)
17577 export_dynamic_flag_spec_CXX='${wl}-E'
17578 ;;
17579 esac
17580 fi
17581 case $host_cpu in
17582 hppa*64*|ia64*)
17583 hardcode_direct_CXX=no
17584 hardcode_shlibpath_var_CXX=no
17585 ;;
17586 *)
17587 hardcode_direct_CXX=yes
17588 hardcode_direct_absolute_CXX=yes
17589 hardcode_minus_L_CXX=yes # Not in the search PATH,
17590 # but as the default
17591 # location of the library.
17592 ;;
17593 esac
17594
17595 case $cc_basename in
17596 CC*)
17597 # FIXME: insert proper C++ library support
17598 ld_shlibs_CXX=no
17599 ;;
17600 aCC*)
17601 case $host_cpu in
17602 hppa*64*)
17603 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17604 ;;
17605 ia64*)
17606 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17607 ;;
17608 *)
17609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17610 ;;
17611 esac
17612 # Commands to make compiler produce verbose output that lists
17613 # what "hidden" libraries, object files and flags are used when
17614 # linking a shared library.
17615 #
17616 # There doesn't appear to be a way to prevent this compiler from
17617 # explicitly linking system object files so we need to strip them
17618 # from the output so that they don't get included in the library
17619 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017620 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 +000017621 ;;
17622 *)
17623 if test "$GXX" = yes; then
17624 if test $with_gnu_ld = no; then
17625 case $host_cpu in
17626 hppa*64*)
17627 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17628 ;;
17629 ia64*)
cristyda16f162011-02-19 23:52:17 +000017630 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 +000017631 ;;
17632 *)
cristyda16f162011-02-19 23:52:17 +000017633 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 +000017634 ;;
17635 esac
17636 fi
17637 else
17638 # FIXME: insert proper C++ library support
17639 ld_shlibs_CXX=no
17640 fi
17641 ;;
17642 esac
17643 ;;
17644
17645 interix[3-9]*)
17646 hardcode_direct_CXX=no
17647 hardcode_shlibpath_var_CXX=no
17648 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17649 export_dynamic_flag_spec_CXX='${wl}-E'
17650 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17651 # Instead, shared libraries are loaded at an image base (0x10000000 by
17652 # default) and relocated if they conflict, which is a slow very memory
17653 # consuming and fragmenting process. To avoid this, we pick a random,
17654 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17655 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17656 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'
17657 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'
17658 ;;
17659 irix5* | irix6*)
17660 case $cc_basename in
17661 CC*)
17662 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017663 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 +000017664
17665 # Archives containing C++ object files must be created using
17666 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17667 # necessary to make sure instantiated templates are included
17668 # in the archive.
17669 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17670 ;;
17671 *)
17672 if test "$GXX" = yes; then
17673 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017674 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 +000017675 else
cristyda16f162011-02-19 23:52:17 +000017676 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 +000017677 fi
17678 fi
17679 link_all_deplibs_CXX=yes
17680 ;;
17681 esac
17682 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17683 hardcode_libdir_separator_CXX=:
17684 inherit_rpath_CXX=yes
17685 ;;
17686
cristy0c60a692010-11-04 01:09:47 +000017687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017688 case $cc_basename in
17689 KCC*)
17690 # Kuck and Associates, Inc. (KAI) C++ Compiler
17691
17692 # KCC will only create a shared library if the output file
17693 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17694 # to its proper name (with version) after linking.
17695 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'
17696 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'
17697 # Commands to make compiler produce verbose output that lists
17698 # what "hidden" libraries, object files and flags are used when
17699 # linking a shared library.
17700 #
17701 # There doesn't appear to be a way to prevent this compiler from
17702 # explicitly linking system object files so we need to strip them
17703 # from the output so that they don't get included in the library
17704 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017705 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 +000017706
17707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17709
17710 # Archives containing C++ object files must be created using
17711 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17712 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17713 ;;
17714 icpc* | ecpc* )
17715 # Intel C++
17716 with_gnu_ld=yes
17717 # version 8.0 and above of icpc choke on multiply defined symbols
17718 # if we add $predep_objects and $postdep_objects, however 7.1 and
17719 # earlier do not add the objects themselves.
17720 case `$CC -V 2>&1` in
17721 *"Version 7."*)
17722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17723 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'
17724 ;;
17725 *) # Version 8.0 or newer
17726 tmp_idyn=
17727 case $host_cpu in
17728 ia64*) tmp_idyn=' -i_dynamic';;
17729 esac
17730 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17731 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'
17732 ;;
17733 esac
17734 archive_cmds_need_lc_CXX=no
17735 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17736 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17737 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17738 ;;
17739 pgCC* | pgcpp*)
17740 # Portland Group C++ compiler
17741 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017742 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017743 prelink_cmds_CXX='tpldir=Template.dir~
17744 rm -rf $tpldir~
17745 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017746 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017747 old_archive_cmds_CXX='tpldir=Template.dir~
17748 rm -rf $tpldir~
17749 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017750 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017751 $RANLIB $oldlib'
17752 archive_cmds_CXX='tpldir=Template.dir~
17753 rm -rf $tpldir~
17754 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017755 $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 +000017756 archive_expsym_cmds_CXX='tpldir=Template.dir~
17757 rm -rf $tpldir~
17758 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017759 $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 +000017760 ;;
cristy0c60a692010-11-04 01:09:47 +000017761 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017762 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17763 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'
17764 ;;
17765 esac
17766
17767 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017769 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 +000017770 ;;
17771 cxx*)
17772 # Compaq C++
17773 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17774 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'
17775
17776 runpath_var=LD_RUN_PATH
17777 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17778 hardcode_libdir_separator_CXX=:
17779
17780 # Commands to make compiler produce verbose output that lists
17781 # what "hidden" libraries, object files and flags are used when
17782 # linking a shared library.
17783 #
17784 # There doesn't appear to be a way to prevent this compiler from
17785 # explicitly linking system object files so we need to strip them
17786 # from the output so that they don't get included in the library
17787 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017788 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 +000017789 ;;
cristy0c60a692010-11-04 01:09:47 +000017790 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017791 # IBM XL 8.0 on PPC, with GNU ld
17792 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17794 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17795 if test "x$supports_anon_versioning" = xyes; then
17796 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17798 echo "local: *; };" >> $output_objdir/$libname.ver~
17799 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17800 fi
17801 ;;
17802 *)
17803 case `$CC -V 2>&1 | sed 5q` in
17804 *Sun\ C*)
17805 # Sun C++ 5.9
17806 no_undefined_flag_CXX=' -zdefs'
17807 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17808 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'
17809 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017810 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 +000017811 compiler_needs_object_CXX=yes
17812
17813 # Not sure whether something based on
17814 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17815 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017816 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017817
17818 # Archives containing C++ object files must be created using
17819 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17820 # necessary to make sure instantiated templates are included
17821 # in the archive.
17822 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17823 ;;
17824 esac
17825 ;;
17826 esac
17827 ;;
17828
17829 lynxos*)
17830 # FIXME: insert proper C++ library support
17831 ld_shlibs_CXX=no
17832 ;;
17833
17834 m88k*)
17835 # FIXME: insert proper C++ library support
17836 ld_shlibs_CXX=no
17837 ;;
17838
17839 mvs*)
17840 case $cc_basename in
17841 cxx*)
17842 # FIXME: insert proper C++ library support
17843 ld_shlibs_CXX=no
17844 ;;
17845 *)
17846 # FIXME: insert proper C++ library support
17847 ld_shlibs_CXX=no
17848 ;;
17849 esac
17850 ;;
17851
17852 netbsd*)
17853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17854 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17855 wlarc=
17856 hardcode_libdir_flag_spec_CXX='-R$libdir'
17857 hardcode_direct_CXX=yes
17858 hardcode_shlibpath_var_CXX=no
17859 fi
17860 # Workaround some broken pre-1.5 toolchains
17861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17862 ;;
17863
17864 *nto* | *qnx*)
17865 ld_shlibs_CXX=yes
17866 ;;
17867
17868 openbsd2*)
17869 # C++ shared libraries are fairly broken
17870 ld_shlibs_CXX=no
17871 ;;
17872
17873 openbsd*)
17874 if test -f /usr/libexec/ld.so; then
17875 hardcode_direct_CXX=yes
17876 hardcode_shlibpath_var_CXX=no
17877 hardcode_direct_absolute_CXX=yes
17878 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17880 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17881 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17882 export_dynamic_flag_spec_CXX='${wl}-E'
17883 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17884 fi
cristy0c60a692010-11-04 01:09:47 +000017885 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017886 else
17887 ld_shlibs_CXX=no
17888 fi
17889 ;;
17890
17891 osf3* | osf4* | osf5*)
17892 case $cc_basename in
17893 KCC*)
17894 # Kuck and Associates, Inc. (KAI) C++ Compiler
17895
17896 # KCC will only create a shared library if the output file
17897 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17898 # to its proper name (with version) after linking.
17899 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'
17900
17901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17902 hardcode_libdir_separator_CXX=:
17903
17904 # Archives containing C++ object files must be created using
17905 # the KAI C++ compiler.
17906 case $host in
17907 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17908 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17909 esac
17910 ;;
17911 RCC*)
17912 # Rational C++ 2.4.1
17913 # FIXME: insert proper C++ library support
17914 ld_shlibs_CXX=no
17915 ;;
17916 cxx*)
17917 case $host in
17918 osf3*)
17919 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017920 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 +000017921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17922 ;;
17923 *)
17924 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017925 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 +000017926 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17927 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017928 $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 +000017929 $RM $lib.exp'
17930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17931 ;;
17932 esac
17933
17934 hardcode_libdir_separator_CXX=:
17935
17936 # Commands to make compiler produce verbose output that lists
17937 # what "hidden" libraries, object files and flags are used when
17938 # linking a shared library.
17939 #
17940 # There doesn't appear to be a way to prevent this compiler from
17941 # explicitly linking system object files so we need to strip them
17942 # from the output so that they don't get included in the library
17943 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017944 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 +000017945 ;;
17946 *)
17947 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17948 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17949 case $host in
17950 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017951 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 +000017952 ;;
17953 *)
cristyda16f162011-02-19 23:52:17 +000017954 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 +000017955 ;;
17956 esac
17957
17958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17959 hardcode_libdir_separator_CXX=:
17960
17961 # Commands to make compiler produce verbose output that lists
17962 # what "hidden" libraries, object files and flags are used when
17963 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017965
17966 else
17967 # FIXME: insert proper C++ library support
17968 ld_shlibs_CXX=no
17969 fi
17970 ;;
17971 esac
17972 ;;
17973
17974 psos*)
17975 # FIXME: insert proper C++ library support
17976 ld_shlibs_CXX=no
17977 ;;
17978
17979 sunos4*)
17980 case $cc_basename in
17981 CC*)
17982 # Sun C++ 4.x
17983 # FIXME: insert proper C++ library support
17984 ld_shlibs_CXX=no
17985 ;;
17986 lcc*)
17987 # Lucid
17988 # FIXME: insert proper C++ library support
17989 ld_shlibs_CXX=no
17990 ;;
17991 *)
17992 # FIXME: insert proper C++ library support
17993 ld_shlibs_CXX=no
17994 ;;
17995 esac
17996 ;;
17997
17998 solaris*)
17999 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018000 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018001 # Sun C++ 4.2, 5.x and Centerline C++
18002 archive_cmds_need_lc_CXX=yes
18003 no_undefined_flag_CXX=' -zdefs'
18004 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18005 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18006 $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'
18007
18008 hardcode_libdir_flag_spec_CXX='-R$libdir'
18009 hardcode_shlibpath_var_CXX=no
18010 case $host_os in
18011 solaris2.[0-5] | solaris2.[0-5].*) ;;
18012 *)
18013 # The compiler driver will combine and reorder linker options,
18014 # but understands `-z linker_flag'.
18015 # Supported since Solaris 2.6 (maybe 2.5.1?)
18016 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18017 ;;
18018 esac
18019 link_all_deplibs_CXX=yes
18020
cristy0c60a692010-11-04 01:09:47 +000018021 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018022
18023 # Archives containing C++ object files must be created using
18024 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18025 # necessary to make sure instantiated templates are included
18026 # in the archive.
18027 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18028 ;;
18029 gcx*)
18030 # Green Hills C++ Compiler
18031 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18032
18033 # The C++ compiler must be used to create the archive.
18034 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18035 ;;
18036 *)
18037 # GNU C++ compiler with Solaris linker
18038 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18039 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18040 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018041 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 +000018042 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 +000018043 $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 +000018044
18045 # Commands to make compiler produce verbose output that lists
18046 # what "hidden" libraries, object files and flags are used when
18047 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018049 else
18050 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18051 # platform.
18052 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18053 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18054 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018060 fi
18061
18062 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18063 case $host_os in
18064 solaris2.[0-5] | solaris2.[0-5].*) ;;
18065 *)
18066 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18067 ;;
18068 esac
18069 fi
18070 ;;
18071 esac
18072 ;;
18073
18074 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18075 no_undefined_flag_CXX='${wl}-z,text'
18076 archive_cmds_need_lc_CXX=no
18077 hardcode_shlibpath_var_CXX=no
18078 runpath_var='LD_RUN_PATH'
18079
18080 case $cc_basename in
18081 CC*)
18082 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18083 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18084 ;;
18085 *)
18086 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18087 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18088 ;;
18089 esac
18090 ;;
18091
18092 sysv5* | sco3.2v5* | sco5v6*)
18093 # Note: We can NOT use -z defs as we might desire, because we do not
18094 # link with -lc, and that would cause any symbols used from libc to
18095 # always be unresolved, which means just about no library would
18096 # ever link correctly. If we're not using GNU ld we use -z text
18097 # though, which does catch some bad symbols but isn't as heavy-handed
18098 # as -z defs.
18099 no_undefined_flag_CXX='${wl}-z,text'
18100 allow_undefined_flag_CXX='${wl}-z,nodefs'
18101 archive_cmds_need_lc_CXX=no
18102 hardcode_shlibpath_var_CXX=no
18103 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18104 hardcode_libdir_separator_CXX=':'
18105 link_all_deplibs_CXX=yes
18106 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18107 runpath_var='LD_RUN_PATH'
18108
18109 case $cc_basename in
18110 CC*)
18111 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112 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 +000018113 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18114 '"$old_archive_cmds_CXX"
18115 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18116 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018117 ;;
18118 *)
18119 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18120 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18121 ;;
18122 esac
18123 ;;
18124
18125 tandem*)
18126 case $cc_basename in
18127 NCC*)
18128 # NonStop-UX NCC 3.20
18129 # FIXME: insert proper C++ library support
18130 ld_shlibs_CXX=no
18131 ;;
18132 *)
18133 # FIXME: insert proper C++ library support
18134 ld_shlibs_CXX=no
18135 ;;
18136 esac
18137 ;;
18138
18139 vxworks*)
18140 # FIXME: insert proper C++ library support
18141 ld_shlibs_CXX=no
18142 ;;
18143
18144 *)
18145 # FIXME: insert proper C++ library support
18146 ld_shlibs_CXX=no
18147 ;;
18148 esac
18149
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18151$as_echo "$ld_shlibs_CXX" >&6; }
18152 test "$ld_shlibs_CXX" = no && can_build_shared=no
18153
18154 GCC_CXX="$GXX"
18155 LD_CXX="$LD"
18156
18157 ## CAVEAT EMPTOR:
18158 ## There is no encapsulation within the following macros, do not change
18159 ## the running order or otherwise move them around unless you know exactly
18160 ## what you are doing...
18161 # Dependencies to place before and after the object being linked:
18162predep_objects_CXX=
18163postdep_objects_CXX=
18164predeps_CXX=
18165postdeps_CXX=
18166compiler_lib_search_path_CXX=
18167
18168cat > conftest.$ac_ext <<_LT_EOF
18169class Foo
18170{
18171public:
18172 Foo (void) { a = 0; }
18173private:
18174 int a;
18175};
18176_LT_EOF
18177
cristyda16f162011-02-19 23:52:17 +000018178
18179_lt_libdeps_save_CFLAGS=$CFLAGS
18180case "$CC $CFLAGS " in #(
18181*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18182*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18183esac
18184
cristy73bd4a52010-10-05 11:24:23 +000018185if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18186 (eval $ac_compile) 2>&5
18187 ac_status=$?
18188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18189 test $ac_status = 0; }; then
18190 # Parse the compiler output and extract the necessary
18191 # objects, libraries and library flags.
18192
18193 # Sentinel used to keep track of whether or not we are before
18194 # the conftest object file.
18195 pre_test_object_deps_done=no
18196
18197 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018198 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018199
18200 -L* | -R* | -l*)
18201 # Some compilers place space between "-{L,R}" and the path.
18202 # Remove the space.
18203 if test $p = "-L" ||
18204 test $p = "-R"; then
18205 prev=$p
18206 continue
cristy73bd4a52010-10-05 11:24:23 +000018207 fi
18208
cristyda16f162011-02-19 23:52:17 +000018209 # Expand the sysroot to ease extracting the directories later.
18210 if test -z "$prev"; then
18211 case $p in
18212 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18213 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18214 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18215 esac
18216 fi
18217 case $p in
18218 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18219 esac
cristy73bd4a52010-10-05 11:24:23 +000018220 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018221 case ${prev} in
18222 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018223 # Internal compiler library paths should come after those
18224 # provided the user. The postdeps already come after the
18225 # user supplied libs so there is no need to process them.
18226 if test -z "$compiler_lib_search_path_CXX"; then
18227 compiler_lib_search_path_CXX="${prev}${p}"
18228 else
18229 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18230 fi
18231 ;;
18232 # The "-l" case would never come before the object being
18233 # linked, so don't bother handling this case.
18234 esac
18235 else
18236 if test -z "$postdeps_CXX"; then
18237 postdeps_CXX="${prev}${p}"
18238 else
18239 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18240 fi
18241 fi
cristyda16f162011-02-19 23:52:17 +000018242 prev=
cristy73bd4a52010-10-05 11:24:23 +000018243 ;;
18244
cristyda16f162011-02-19 23:52:17 +000018245 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018246 *.$objext)
18247 # This assumes that the test object file only shows up
18248 # once in the compiler output.
18249 if test "$p" = "conftest.$objext"; then
18250 pre_test_object_deps_done=yes
18251 continue
18252 fi
18253
18254 if test "$pre_test_object_deps_done" = no; then
18255 if test -z "$predep_objects_CXX"; then
18256 predep_objects_CXX="$p"
18257 else
18258 predep_objects_CXX="$predep_objects_CXX $p"
18259 fi
18260 else
18261 if test -z "$postdep_objects_CXX"; then
18262 postdep_objects_CXX="$p"
18263 else
18264 postdep_objects_CXX="$postdep_objects_CXX $p"
18265 fi
18266 fi
18267 ;;
18268
18269 *) ;; # Ignore the rest.
18270
18271 esac
18272 done
18273
18274 # Clean up.
18275 rm -f a.out a.exe
18276else
18277 echo "libtool.m4: error: problem compiling CXX test program"
18278fi
18279
18280$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018281CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018282
18283# PORTME: override above test on systems where it is broken
18284case $host_os in
18285interix[3-9]*)
18286 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18287 # hack all around it, let's just trust "g++" to DTRT.
18288 predep_objects_CXX=
18289 postdep_objects_CXX=
18290 postdeps_CXX=
18291 ;;
18292
18293linux*)
18294 case `$CC -V 2>&1 | sed 5q` in
18295 *Sun\ C*)
18296 # Sun C++ 5.9
18297
18298 # The more standards-conforming stlport4 library is
18299 # incompatible with the Cstd library. Avoid specifying
18300 # it if it's in CXXFLAGS. Ignore libCrun as
18301 # -library=stlport4 depends on it.
18302 case " $CXX $CXXFLAGS " in
18303 *" -library=stlport4 "*)
18304 solaris_use_stlport4=yes
18305 ;;
18306 esac
18307
18308 if test "$solaris_use_stlport4" != yes; then
18309 postdeps_CXX='-library=Cstd -library=Crun'
18310 fi
18311 ;;
18312 esac
18313 ;;
18314
18315solaris*)
18316 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018317 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018318 # The more standards-conforming stlport4 library is
18319 # incompatible with the Cstd library. Avoid specifying
18320 # it if it's in CXXFLAGS. Ignore libCrun as
18321 # -library=stlport4 depends on it.
18322 case " $CXX $CXXFLAGS " in
18323 *" -library=stlport4 "*)
18324 solaris_use_stlport4=yes
18325 ;;
18326 esac
18327
18328 # Adding this requires a known-good setup of shared libraries for
18329 # Sun compiler versions before 5.6, else PIC objects from an old
18330 # archive will be linked into the output, leading to subtle bugs.
18331 if test "$solaris_use_stlport4" != yes; then
18332 postdeps_CXX='-library=Cstd -library=Crun'
18333 fi
18334 ;;
18335 esac
18336 ;;
18337esac
18338
18339
18340case " $postdeps_CXX " in
18341*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18342esac
18343 compiler_lib_search_dirs_CXX=
18344if test -n "${compiler_lib_search_path_CXX}"; then
18345 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18346fi
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378 lt_prog_compiler_wl_CXX=
18379lt_prog_compiler_pic_CXX=
18380lt_prog_compiler_static_CXX=
18381
cristy73bd4a52010-10-05 11:24:23 +000018382
18383 # C++ specific cases for pic, static, wl, etc.
18384 if test "$GXX" = yes; then
18385 lt_prog_compiler_wl_CXX='-Wl,'
18386 lt_prog_compiler_static_CXX='-static'
18387
18388 case $host_os in
18389 aix*)
18390 # All AIX code is PIC.
18391 if test "$host_cpu" = ia64; then
18392 # AIX 5 now supports IA64 processor
18393 lt_prog_compiler_static_CXX='-Bstatic'
18394 fi
18395 ;;
18396
18397 amigaos*)
18398 case $host_cpu in
18399 powerpc)
18400 # see comment about AmigaOS4 .so support
18401 lt_prog_compiler_pic_CXX='-fPIC'
18402 ;;
18403 m68k)
18404 # FIXME: we need at least 68020 code to build shared libraries, but
18405 # adding the `-m68020' flag to GCC prevents building anything better,
18406 # like `-m68040'.
18407 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18408 ;;
18409 esac
18410 ;;
18411
18412 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18413 # PIC is the default for these OSes.
18414 ;;
18415 mingw* | cygwin* | os2* | pw32* | cegcc*)
18416 # This hack is so that the source file can tell whether it is being
18417 # built for inclusion in a dll (and should export symbols for example).
18418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18419 # (--disable-auto-import) libraries
18420 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18421 ;;
18422 darwin* | rhapsody*)
18423 # PIC is the default on this platform
18424 # Common symbols not allowed in MH_DYLIB files
18425 lt_prog_compiler_pic_CXX='-fno-common'
18426 ;;
18427 *djgpp*)
18428 # DJGPP does not support shared libraries at all
18429 lt_prog_compiler_pic_CXX=
18430 ;;
cristy0c60a692010-11-04 01:09:47 +000018431 haiku*)
18432 # PIC is the default for Haiku.
18433 # The "-static" flag exists, but is broken.
18434 lt_prog_compiler_static_CXX=
18435 ;;
cristy73bd4a52010-10-05 11:24:23 +000018436 interix[3-9]*)
18437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18438 # Instead, we relocate shared libraries at runtime.
18439 ;;
18440 sysv4*MP*)
18441 if test -d /usr/nec; then
18442 lt_prog_compiler_pic_CXX=-Kconform_pic
18443 fi
18444 ;;
18445 hpux*)
18446 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18447 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18448 # sets the default TLS model and affects inlining.
18449 case $host_cpu in
18450 hppa*64*)
18451 ;;
18452 *)
18453 lt_prog_compiler_pic_CXX='-fPIC'
18454 ;;
18455 esac
18456 ;;
18457 *qnx* | *nto*)
18458 # QNX uses GNU C++, but need to define -shared option too, otherwise
18459 # it will coredump.
18460 lt_prog_compiler_pic_CXX='-fPIC -shared'
18461 ;;
18462 *)
18463 lt_prog_compiler_pic_CXX='-fPIC'
18464 ;;
18465 esac
18466 else
18467 case $host_os in
18468 aix[4-9]*)
18469 # All AIX code is PIC.
18470 if test "$host_cpu" = ia64; then
18471 # AIX 5 now supports IA64 processor
18472 lt_prog_compiler_static_CXX='-Bstatic'
18473 else
18474 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18475 fi
18476 ;;
18477 chorus*)
18478 case $cc_basename in
18479 cxch68*)
18480 # Green Hills C++ Compiler
18481 # _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"
18482 ;;
18483 esac
18484 ;;
cristyda16f162011-02-19 23:52:17 +000018485 mingw* | cygwin* | os2* | pw32* | cegcc*)
18486 # This hack is so that the source file can tell whether it is being
18487 # built for inclusion in a dll (and should export symbols for example).
18488 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18489 ;;
cristy73bd4a52010-10-05 11:24:23 +000018490 dgux*)
18491 case $cc_basename in
18492 ec++*)
18493 lt_prog_compiler_pic_CXX='-KPIC'
18494 ;;
18495 ghcx*)
18496 # Green Hills C++ Compiler
18497 lt_prog_compiler_pic_CXX='-pic'
18498 ;;
18499 *)
18500 ;;
18501 esac
18502 ;;
18503 freebsd* | dragonfly*)
18504 # FreeBSD uses GNU C++
18505 ;;
18506 hpux9* | hpux10* | hpux11*)
18507 case $cc_basename in
18508 CC*)
18509 lt_prog_compiler_wl_CXX='-Wl,'
18510 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18511 if test "$host_cpu" != ia64; then
18512 lt_prog_compiler_pic_CXX='+Z'
18513 fi
18514 ;;
18515 aCC*)
18516 lt_prog_compiler_wl_CXX='-Wl,'
18517 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18518 case $host_cpu in
18519 hppa*64*|ia64*)
18520 # +Z the default
18521 ;;
18522 *)
18523 lt_prog_compiler_pic_CXX='+Z'
18524 ;;
18525 esac
18526 ;;
18527 *)
18528 ;;
18529 esac
18530 ;;
18531 interix*)
18532 # This is c89, which is MS Visual C++ (no shared libs)
18533 # Anyone wants to do a port?
18534 ;;
18535 irix5* | irix6* | nonstopux*)
18536 case $cc_basename in
18537 CC*)
18538 lt_prog_compiler_wl_CXX='-Wl,'
18539 lt_prog_compiler_static_CXX='-non_shared'
18540 # CC pic flag -KPIC is the default.
18541 ;;
18542 *)
18543 ;;
18544 esac
18545 ;;
cristy0c60a692010-11-04 01:09:47 +000018546 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018547 case $cc_basename in
18548 KCC*)
18549 # KAI C++ Compiler
18550 lt_prog_compiler_wl_CXX='--backend -Wl,'
18551 lt_prog_compiler_pic_CXX='-fPIC'
18552 ;;
18553 ecpc* )
18554 # old Intel C++ for x86_64 which still supported -KPIC.
18555 lt_prog_compiler_wl_CXX='-Wl,'
18556 lt_prog_compiler_pic_CXX='-KPIC'
18557 lt_prog_compiler_static_CXX='-static'
18558 ;;
18559 icpc* )
18560 # Intel C++, used to be incompatible with GCC.
18561 # ICC 10 doesn't accept -KPIC any more.
18562 lt_prog_compiler_wl_CXX='-Wl,'
18563 lt_prog_compiler_pic_CXX='-fPIC'
18564 lt_prog_compiler_static_CXX='-static'
18565 ;;
18566 pgCC* | pgcpp*)
18567 # Portland Group C++ compiler
18568 lt_prog_compiler_wl_CXX='-Wl,'
18569 lt_prog_compiler_pic_CXX='-fpic'
18570 lt_prog_compiler_static_CXX='-Bstatic'
18571 ;;
18572 cxx*)
18573 # Compaq C++
18574 # Make sure the PIC flag is empty. It appears that all Alpha
18575 # Linux and Compaq Tru64 Unix objects are PIC.
18576 lt_prog_compiler_pic_CXX=
18577 lt_prog_compiler_static_CXX='-non_shared'
18578 ;;
cristy0c60a692010-11-04 01:09:47 +000018579 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18580 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018581 lt_prog_compiler_wl_CXX='-Wl,'
18582 lt_prog_compiler_pic_CXX='-qpic'
18583 lt_prog_compiler_static_CXX='-qstaticlink'
18584 ;;
18585 *)
18586 case `$CC -V 2>&1 | sed 5q` in
18587 *Sun\ C*)
18588 # Sun C++ 5.9
18589 lt_prog_compiler_pic_CXX='-KPIC'
18590 lt_prog_compiler_static_CXX='-Bstatic'
18591 lt_prog_compiler_wl_CXX='-Qoption ld '
18592 ;;
18593 esac
18594 ;;
18595 esac
18596 ;;
18597 lynxos*)
18598 ;;
18599 m88k*)
18600 ;;
18601 mvs*)
18602 case $cc_basename in
18603 cxx*)
18604 lt_prog_compiler_pic_CXX='-W c,exportall'
18605 ;;
18606 *)
18607 ;;
18608 esac
18609 ;;
18610 netbsd*)
18611 ;;
18612 *qnx* | *nto*)
18613 # QNX uses GNU C++, but need to define -shared option too, otherwise
18614 # it will coredump.
18615 lt_prog_compiler_pic_CXX='-fPIC -shared'
18616 ;;
18617 osf3* | osf4* | osf5*)
18618 case $cc_basename in
18619 KCC*)
18620 lt_prog_compiler_wl_CXX='--backend -Wl,'
18621 ;;
18622 RCC*)
18623 # Rational C++ 2.4.1
18624 lt_prog_compiler_pic_CXX='-pic'
18625 ;;
18626 cxx*)
18627 # Digital/Compaq C++
18628 lt_prog_compiler_wl_CXX='-Wl,'
18629 # Make sure the PIC flag is empty. It appears that all Alpha
18630 # Linux and Compaq Tru64 Unix objects are PIC.
18631 lt_prog_compiler_pic_CXX=
18632 lt_prog_compiler_static_CXX='-non_shared'
18633 ;;
18634 *)
18635 ;;
18636 esac
18637 ;;
18638 psos*)
18639 ;;
18640 solaris*)
18641 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018642 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018643 # Sun C++ 4.2, 5.x and Centerline C++
18644 lt_prog_compiler_pic_CXX='-KPIC'
18645 lt_prog_compiler_static_CXX='-Bstatic'
18646 lt_prog_compiler_wl_CXX='-Qoption ld '
18647 ;;
18648 gcx*)
18649 # Green Hills C++ Compiler
18650 lt_prog_compiler_pic_CXX='-PIC'
18651 ;;
18652 *)
18653 ;;
18654 esac
18655 ;;
18656 sunos4*)
18657 case $cc_basename in
18658 CC*)
18659 # Sun C++ 4.x
18660 lt_prog_compiler_pic_CXX='-pic'
18661 lt_prog_compiler_static_CXX='-Bstatic'
18662 ;;
18663 lcc*)
18664 # Lucid
18665 lt_prog_compiler_pic_CXX='-pic'
18666 ;;
18667 *)
18668 ;;
18669 esac
18670 ;;
18671 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18672 case $cc_basename in
18673 CC*)
18674 lt_prog_compiler_wl_CXX='-Wl,'
18675 lt_prog_compiler_pic_CXX='-KPIC'
18676 lt_prog_compiler_static_CXX='-Bstatic'
18677 ;;
18678 esac
18679 ;;
18680 tandem*)
18681 case $cc_basename in
18682 NCC*)
18683 # NonStop-UX NCC 3.20
18684 lt_prog_compiler_pic_CXX='-KPIC'
18685 ;;
18686 *)
18687 ;;
18688 esac
18689 ;;
18690 vxworks*)
18691 ;;
18692 *)
18693 lt_prog_compiler_can_build_shared_CXX=no
18694 ;;
18695 esac
18696 fi
18697
18698case $host_os in
18699 # For platforms which do not support PIC, -DPIC is meaningless:
18700 *djgpp*)
18701 lt_prog_compiler_pic_CXX=
18702 ;;
18703 *)
18704 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18705 ;;
18706esac
cristy73bd4a52010-10-05 11:24:23 +000018707
cristyda16f162011-02-19 23:52:17 +000018708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18709$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18710if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18711 $as_echo_n "(cached) " >&6
18712else
18713 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18714fi
18715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18716$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18717lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018718
18719#
18720# Check to make sure the PIC flag actually works.
18721#
18722if test -n "$lt_prog_compiler_pic_CXX"; then
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18724$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018725if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018726 $as_echo_n "(cached) " >&6
18727else
18728 lt_cv_prog_compiler_pic_works_CXX=no
18729 ac_outfile=conftest.$ac_objext
18730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18731 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18732 # Insert the option either (1) after the last *FLAGS variable, or
18733 # (2) before a word containing "conftest.", or (3) at the end.
18734 # Note that $ac_compile itself does not contain backslashes and begins
18735 # with a dollar sign (not a hyphen), so the echo should work correctly.
18736 # The option is referenced via a variable to avoid confusing sed.
18737 lt_compile=`echo "$ac_compile" | $SED \
18738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18740 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018742 (eval "$lt_compile" 2>conftest.err)
18743 ac_status=$?
18744 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018746 if (exit $ac_status) && test -s "$ac_outfile"; then
18747 # The compiler can only warn and ignore the option if not recognized
18748 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18752 lt_cv_prog_compiler_pic_works_CXX=yes
18753 fi
18754 fi
18755 $RM conftest*
18756
18757fi
18758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18759$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18760
18761if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18762 case $lt_prog_compiler_pic_CXX in
18763 "" | " "*) ;;
18764 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18765 esac
18766else
18767 lt_prog_compiler_pic_CXX=
18768 lt_prog_compiler_can_build_shared_CXX=no
18769fi
18770
18771fi
18772
18773
18774
cristyda16f162011-02-19 23:52:17 +000018775
18776
cristy73bd4a52010-10-05 11:24:23 +000018777#
18778# Check to make sure the static flag actually works.
18779#
18780wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18782$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018783if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018784 $as_echo_n "(cached) " >&6
18785else
18786 lt_cv_prog_compiler_static_works_CXX=no
18787 save_LDFLAGS="$LDFLAGS"
18788 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18789 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18791 # The linker can only warn and ignore the option if not recognized
18792 # So say no if there are warnings
18793 if test -s conftest.err; then
18794 # Append any errors to the config.log.
18795 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018796 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18798 if diff conftest.exp conftest.er2 >/dev/null; then
18799 lt_cv_prog_compiler_static_works_CXX=yes
18800 fi
18801 else
18802 lt_cv_prog_compiler_static_works_CXX=yes
18803 fi
18804 fi
18805 $RM -r conftest*
18806 LDFLAGS="$save_LDFLAGS"
18807
18808fi
18809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18810$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18811
18812if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18813 :
18814else
18815 lt_prog_compiler_static_CXX=
18816fi
18817
18818
18819
18820
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18822$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018823if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018824 $as_echo_n "(cached) " >&6
18825else
18826 lt_cv_prog_compiler_c_o_CXX=no
18827 $RM -r conftest 2>/dev/null
18828 mkdir conftest
18829 cd conftest
18830 mkdir out
18831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18832
18833 lt_compiler_flag="-o out/conftest2.$ac_objext"
18834 # Insert the option either (1) after the last *FLAGS variable, or
18835 # (2) before a word containing "conftest.", or (3) at the end.
18836 # Note that $ac_compile itself does not contain backslashes and begins
18837 # with a dollar sign (not a hyphen), so the echo should work correctly.
18838 lt_compile=`echo "$ac_compile" | $SED \
18839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18841 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018843 (eval "$lt_compile" 2>out/conftest.err)
18844 ac_status=$?
18845 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18848 then
18849 # The compiler can only warn and ignore the option if not recognized
18850 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18854 lt_cv_prog_compiler_c_o_CXX=yes
18855 fi
18856 fi
18857 chmod u+w . 2>&5
18858 $RM conftest*
18859 # SGI C++ compiler will create directory out/ii_files/ for
18860 # template instantiation
18861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18862 $RM out/* && rmdir out
18863 cd ..
18864 $RM -r conftest
18865 $RM conftest*
18866
18867fi
18868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18869$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18870
18871
18872
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018875if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018876 $as_echo_n "(cached) " >&6
18877else
18878 lt_cv_prog_compiler_c_o_CXX=no
18879 $RM -r conftest 2>/dev/null
18880 mkdir conftest
18881 cd conftest
18882 mkdir out
18883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18884
18885 lt_compiler_flag="-o out/conftest2.$ac_objext"
18886 # Insert the option either (1) after the last *FLAGS variable, or
18887 # (2) before a word containing "conftest.", or (3) at the end.
18888 # Note that $ac_compile itself does not contain backslashes and begins
18889 # with a dollar sign (not a hyphen), so the echo should work correctly.
18890 lt_compile=`echo "$ac_compile" | $SED \
18891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18893 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018895 (eval "$lt_compile" 2>out/conftest.err)
18896 ac_status=$?
18897 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18900 then
18901 # The compiler can only warn and ignore the option if not recognized
18902 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18906 lt_cv_prog_compiler_c_o_CXX=yes
18907 fi
18908 fi
18909 chmod u+w . 2>&5
18910 $RM conftest*
18911 # SGI C++ compiler will create directory out/ii_files/ for
18912 # template instantiation
18913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18914 $RM out/* && rmdir out
18915 cd ..
18916 $RM -r conftest
18917 $RM conftest*
18918
18919fi
18920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18921$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18922
18923
18924
18925
18926hard_links="nottested"
18927if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18928 # do not overwrite the value of need_locks provided by the user
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18930$as_echo_n "checking if we can lock with hard links... " >&6; }
18931 hard_links=yes
18932 $RM conftest*
18933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18934 touch conftest.a
18935 ln conftest.a conftest.b 2>&5 || hard_links=no
18936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18938$as_echo "$hard_links" >&6; }
18939 if test "$hard_links" = no; then
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18941$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18942 need_locks=warn
18943 fi
18944else
18945 need_locks=no
18946fi
18947
18948
18949
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18951$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18952
18953 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018954 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018955 case $host_os in
18956 aix[4-9]*)
18957 # If we're using GNU nm, then we don't want the "-C" option.
18958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018959 # Also, AIX nm treats weak defined symbols like other global defined
18960 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018961 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018962 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 +000018963 else
18964 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'
18965 fi
18966 ;;
18967 pw32*)
18968 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018969 ;;
cristy73bd4a52010-10-05 11:24:23 +000018970 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018971 case $cc_basename in
18972 cl*) ;;
18973 *)
18974 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'
18975 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18976 ;;
18977 esac
18978 ;;
cristy73bd4a52010-10-05 11:24:23 +000018979 *)
18980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018981 ;;
cristy73bd4a52010-10-05 11:24:23 +000018982 esac
cristy73bd4a52010-10-05 11:24:23 +000018983
18984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18985$as_echo "$ld_shlibs_CXX" >&6; }
18986test "$ld_shlibs_CXX" = no && can_build_shared=no
18987
18988with_gnu_ld_CXX=$with_gnu_ld
18989
18990
18991
18992
18993
18994
18995#
18996# Do we need to explicitly link libc?
18997#
18998case "x$archive_cmds_need_lc_CXX" in
18999x|xyes)
19000 # Assume -lc should be added
19001 archive_cmds_need_lc_CXX=yes
19002
19003 if test "$enable_shared" = yes && test "$GCC" = yes; then
19004 case $archive_cmds_CXX in
19005 *'~'*)
19006 # FIXME: we may have to deal with multi-command sequences.
19007 ;;
19008 '$CC '*)
19009 # Test whether the compiler implicitly links with -lc since on some
19010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19011 # to ld, don't add -lc before -lgcc.
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19013$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019014if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019015 $as_echo_n "(cached) " >&6
19016else
19017 $RM conftest*
19018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019019
cristy0c60a692010-11-04 01:09:47 +000019020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019021 (eval $ac_compile) 2>&5
19022 ac_status=$?
19023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19024 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019025 soname=conftest
19026 lib=conftest
19027 libobjs=conftest.$ac_objext
19028 deplibs=
19029 wl=$lt_prog_compiler_wl_CXX
19030 pic_flag=$lt_prog_compiler_pic_CXX
19031 compiler_flags=-v
19032 linker_flags=-v
19033 verstring=
19034 output_objdir=.
19035 libname=conftest
19036 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19037 allow_undefined_flag_CXX=
19038 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 +000019039 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19040 ac_status=$?
19041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19042 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019043 then
19044 lt_cv_archive_cmds_need_lc_CXX=no
19045 else
19046 lt_cv_archive_cmds_need_lc_CXX=yes
19047 fi
19048 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19049 else
19050 cat conftest.err 1>&5
19051 fi
19052 $RM conftest*
19053
19054fi
19055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19056$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19057 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019058 ;;
19059 esac
19060 fi
19061 ;;
19062esac
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19128$as_echo_n "checking dynamic linker characteristics... " >&6; }
19129
19130library_names_spec=
19131libname_spec='lib$name'
19132soname_spec=
19133shrext_cmds=".so"
19134postinstall_cmds=
19135postuninstall_cmds=
19136finish_cmds=
19137finish_eval=
19138shlibpath_var=
19139shlibpath_overrides_runpath=unknown
19140version_type=none
19141dynamic_linker="$host_os ld.so"
19142sys_lib_dlsearch_path_spec="/lib /usr/lib"
19143need_lib_prefix=unknown
19144hardcode_into_libs=no
19145
19146# when you set need_version to no, make sure it does not cause -set_version
19147# flags to be left without arguments
19148need_version=unknown
19149
19150case $host_os in
19151aix3*)
19152 version_type=linux
19153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19154 shlibpath_var=LIBPATH
19155
19156 # AIX 3 has no versioning support, so we append a major version to the name.
19157 soname_spec='${libname}${release}${shared_ext}$major'
19158 ;;
19159
19160aix[4-9]*)
19161 version_type=linux
19162 need_lib_prefix=no
19163 need_version=no
19164 hardcode_into_libs=yes
19165 if test "$host_cpu" = ia64; then
19166 # AIX 5 supports IA64
19167 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19168 shlibpath_var=LD_LIBRARY_PATH
19169 else
19170 # With GCC up to 2.95.x, collect2 would create an import file
19171 # for dependence libraries. The import file would start with
19172 # the line `#! .'. This would cause the generated library to
19173 # depend on `.', always an invalid library. This was fixed in
19174 # development snapshots of GCC prior to 3.0.
19175 case $host_os in
19176 aix4 | aix4.[01] | aix4.[01].*)
19177 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19178 echo ' yes '
19179 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19180 :
19181 else
19182 can_build_shared=no
19183 fi
19184 ;;
19185 esac
19186 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19187 # soname into executable. Probably we can add versioning support to
19188 # collect2, so additional links can be useful in future.
19189 if test "$aix_use_runtimelinking" = yes; then
19190 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19191 # instead of lib<name>.a to let people know that these are not
19192 # typical AIX shared libraries.
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19194 else
19195 # We preserve .a as extension for shared libraries through AIX4.2
19196 # and later when we are not doing run time linking.
19197 library_names_spec='${libname}${release}.a $libname.a'
19198 soname_spec='${libname}${release}${shared_ext}$major'
19199 fi
19200 shlibpath_var=LIBPATH
19201 fi
19202 ;;
19203
19204amigaos*)
19205 case $host_cpu in
19206 powerpc)
19207 # Since July 2007 AmigaOS4 officially supports .so libraries.
19208 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19210 ;;
19211 m68k)
19212 library_names_spec='$libname.ixlibrary $libname.a'
19213 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019214 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 +000019215 ;;
19216 esac
19217 ;;
19218
19219beos*)
19220 library_names_spec='${libname}${shared_ext}'
19221 dynamic_linker="$host_os ld.so"
19222 shlibpath_var=LIBRARY_PATH
19223 ;;
19224
19225bsdi[45]*)
19226 version_type=linux
19227 need_version=no
19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19229 soname_spec='${libname}${release}${shared_ext}$major'
19230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19231 shlibpath_var=LD_LIBRARY_PATH
19232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19234 # the default ld.so.conf also contains /usr/contrib/lib and
19235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19236 # libtool to hard-code these into programs
19237 ;;
19238
19239cygwin* | mingw* | pw32* | cegcc*)
19240 version_type=windows
19241 shrext_cmds=".dll"
19242 need_version=no
19243 need_lib_prefix=no
19244
cristyda16f162011-02-19 23:52:17 +000019245 case $GCC,$cc_basename in
19246 yes,*)
19247 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019248 library_names_spec='$libname.dll.a'
19249 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19250 postinstall_cmds='base_file=`basename \${file}`~
19251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19252 dldir=$destdir/`dirname \$dlpath`~
19253 test -d \$dldir || mkdir -p \$dldir~
19254 $install_prog $dir/$dlname \$dldir/$dlname~
19255 chmod a+x \$dldir/$dlname~
19256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19258 fi'
19259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19260 dlpath=$dir/\$dldll~
19261 $RM \$dlpath'
19262 shlibpath_overrides_runpath=yes
19263
19264 case $host_os in
19265 cygwin*)
19266 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19267 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019268
cristy73bd4a52010-10-05 11:24:23 +000019269 ;;
19270 mingw* | cegcc*)
19271 # MinGW DLLs use traditional 'lib' prefix
19272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019273 ;;
19274 pw32*)
19275 # pw32 DLLs use 'pw' prefix rather than 'lib'
19276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19277 ;;
19278 esac
cristyda16f162011-02-19 23:52:17 +000019279 dynamic_linker='Win32 ld.exe'
19280 ;;
19281
19282 *,cl*)
19283 # Native MSVC
19284 libname_spec='$name'
19285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19286 library_names_spec='${libname}.dll.lib'
19287
19288 case $build_os in
19289 mingw*)
19290 sys_lib_search_path_spec=
19291 lt_save_ifs=$IFS
19292 IFS=';'
19293 for lt_path in $LIB
19294 do
19295 IFS=$lt_save_ifs
19296 # Let DOS variable expansion print the short 8.3 style file name.
19297 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19298 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19299 done
19300 IFS=$lt_save_ifs
19301 # Convert to MSYS style.
19302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19303 ;;
19304 cygwin*)
19305 # Convert to unix form, then to dos form, then back to unix form
19306 # but this time dos style (no spaces!) so that the unix form looks
19307 # like /cygdrive/c/PROGRA~1:/cygdr...
19308 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19309 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19310 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19311 ;;
19312 *)
19313 sys_lib_search_path_spec="$LIB"
19314 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19315 # It is most probably a Windows format PATH.
19316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19317 else
19318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19319 fi
19320 # FIXME: find the short name or the path components, as spaces are
19321 # common. (e.g. "Program Files" -> "PROGRA~1")
19322 ;;
19323 esac
19324
19325 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19326 postinstall_cmds='base_file=`basename \${file}`~
19327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19328 dldir=$destdir/`dirname \$dlpath`~
19329 test -d \$dldir || mkdir -p \$dldir~
19330 $install_prog $dir/$dlname \$dldir/$dlname'
19331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19332 dlpath=$dir/\$dldll~
19333 $RM \$dlpath'
19334 shlibpath_overrides_runpath=yes
19335 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019336 ;;
19337
19338 *)
cristyda16f162011-02-19 23:52:17 +000019339 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019341 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019342 ;;
19343 esac
cristy73bd4a52010-10-05 11:24:23 +000019344 # FIXME: first we should search . and the directory the executable is in
19345 shlibpath_var=PATH
19346 ;;
19347
19348darwin* | rhapsody*)
19349 dynamic_linker="$host_os dyld"
19350 version_type=darwin
19351 need_lib_prefix=no
19352 need_version=no
19353 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19354 soname_spec='${libname}${release}${major}$shared_ext'
19355 shlibpath_overrides_runpath=yes
19356 shlibpath_var=DYLD_LIBRARY_PATH
19357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19358
19359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19360 ;;
19361
19362dgux*)
19363 version_type=linux
19364 need_lib_prefix=no
19365 need_version=no
19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19367 soname_spec='${libname}${release}${shared_ext}$major'
19368 shlibpath_var=LD_LIBRARY_PATH
19369 ;;
19370
19371freebsd1*)
19372 dynamic_linker=no
19373 ;;
19374
19375freebsd* | dragonfly*)
19376 # DragonFly does not have aout. When/if they implement a new
19377 # versioning mechanism, adjust this.
19378 if test -x /usr/bin/objformat; then
19379 objformat=`/usr/bin/objformat`
19380 else
19381 case $host_os in
19382 freebsd[123]*) objformat=aout ;;
19383 *) objformat=elf ;;
19384 esac
19385 fi
19386 version_type=freebsd-$objformat
19387 case $version_type in
19388 freebsd-elf*)
19389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19390 need_version=no
19391 need_lib_prefix=no
19392 ;;
19393 freebsd-*)
19394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19395 need_version=yes
19396 ;;
19397 esac
19398 shlibpath_var=LD_LIBRARY_PATH
19399 case $host_os in
19400 freebsd2*)
19401 shlibpath_overrides_runpath=yes
19402 ;;
19403 freebsd3.[01]* | freebsdelf3.[01]*)
19404 shlibpath_overrides_runpath=yes
19405 hardcode_into_libs=yes
19406 ;;
19407 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19408 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19409 shlibpath_overrides_runpath=no
19410 hardcode_into_libs=yes
19411 ;;
19412 *) # from 4.6 on, and DragonFly
19413 shlibpath_overrides_runpath=yes
19414 hardcode_into_libs=yes
19415 ;;
19416 esac
19417 ;;
19418
19419gnu*)
19420 version_type=linux
19421 need_lib_prefix=no
19422 need_version=no
19423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19424 soname_spec='${libname}${release}${shared_ext}$major'
19425 shlibpath_var=LD_LIBRARY_PATH
19426 hardcode_into_libs=yes
19427 ;;
19428
cristy0c60a692010-11-04 01:09:47 +000019429haiku*)
19430 version_type=linux
19431 need_lib_prefix=no
19432 need_version=no
19433 dynamic_linker="$host_os runtime_loader"
19434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19435 soname_spec='${libname}${release}${shared_ext}$major'
19436 shlibpath_var=LIBRARY_PATH
19437 shlibpath_overrides_runpath=yes
19438 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19439 hardcode_into_libs=yes
19440 ;;
19441
cristy73bd4a52010-10-05 11:24:23 +000019442hpux9* | hpux10* | hpux11*)
19443 # Give a soname corresponding to the major version so that dld.sl refuses to
19444 # link against other versions.
19445 version_type=sunos
19446 need_lib_prefix=no
19447 need_version=no
19448 case $host_cpu in
19449 ia64*)
19450 shrext_cmds='.so'
19451 hardcode_into_libs=yes
19452 dynamic_linker="$host_os dld.so"
19453 shlibpath_var=LD_LIBRARY_PATH
19454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19456 soname_spec='${libname}${release}${shared_ext}$major'
19457 if test "X$HPUX_IA64_MODE" = X32; then
19458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19459 else
19460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19461 fi
19462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19463 ;;
19464 hppa*64*)
19465 shrext_cmds='.sl'
19466 hardcode_into_libs=yes
19467 dynamic_linker="$host_os dld.sl"
19468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19474 ;;
19475 *)
19476 shrext_cmds='.sl'
19477 dynamic_linker="$host_os dld.sl"
19478 shlibpath_var=SHLIB_PATH
19479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19481 soname_spec='${libname}${release}${shared_ext}$major'
19482 ;;
19483 esac
cristy0c60a692010-11-04 01:09:47 +000019484 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019485 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019486 # or fails outright, so override atomically:
19487 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019488 ;;
19489
19490interix[3-9]*)
19491 version_type=linux
19492 need_lib_prefix=no
19493 need_version=no
19494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19495 soname_spec='${libname}${release}${shared_ext}$major'
19496 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19497 shlibpath_var=LD_LIBRARY_PATH
19498 shlibpath_overrides_runpath=no
19499 hardcode_into_libs=yes
19500 ;;
19501
19502irix5* | irix6* | nonstopux*)
19503 case $host_os in
19504 nonstopux*) version_type=nonstopux ;;
19505 *)
19506 if test "$lt_cv_prog_gnu_ld" = yes; then
19507 version_type=linux
19508 else
19509 version_type=irix
19510 fi ;;
19511 esac
19512 need_lib_prefix=no
19513 need_version=no
19514 soname_spec='${libname}${release}${shared_ext}$major'
19515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19516 case $host_os in
19517 irix5* | nonstopux*)
19518 libsuff= shlibsuff=
19519 ;;
19520 *)
19521 case $LD in # libtool.m4 will add one of these switches to LD
19522 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19523 libsuff= shlibsuff= libmagic=32-bit;;
19524 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19525 libsuff=32 shlibsuff=N32 libmagic=N32;;
19526 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19527 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19528 *) libsuff= shlibsuff= libmagic=never-match;;
19529 esac
19530 ;;
19531 esac
19532 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19533 shlibpath_overrides_runpath=no
19534 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19535 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19536 hardcode_into_libs=yes
19537 ;;
19538
19539# No shared lib support for Linux oldld, aout, or coff.
19540linux*oldld* | linux*aout* | linux*coff*)
19541 dynamic_linker=no
19542 ;;
19543
19544# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019545linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019546 version_type=linux
19547 need_lib_prefix=no
19548 need_version=no
19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19550 soname_spec='${libname}${release}${shared_ext}$major'
19551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19552 shlibpath_var=LD_LIBRARY_PATH
19553 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019554
cristy73bd4a52010-10-05 11:24:23 +000019555 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019556 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019557 $as_echo_n "(cached) " >&6
19558else
19559 lt_cv_shlibpath_overrides_runpath=no
19560 save_LDFLAGS=$LDFLAGS
19561 save_libdir=$libdir
19562 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19563 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019565/* end confdefs.h. */
19566
19567int
19568main ()
19569{
19570
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575if ac_fn_cxx_try_link "$LINENO"; then :
19576 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019577 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019578fi
19579fi
19580rm -f core conftest.err conftest.$ac_objext \
19581 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019582 LDFLAGS=$save_LDFLAGS
19583 libdir=$save_libdir
19584
19585fi
19586
19587 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019588
19589 # This implies no fast_install, which is unacceptable.
19590 # Some rework will be needed to allow for fast_install
19591 # before this can be enabled.
19592 hardcode_into_libs=yes
19593
19594 # Add ABI-specific directories to the system library path.
19595 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19596
19597 # Append ld.so.conf contents to the search path
19598 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019599 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 +000019600 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019601
cristy73bd4a52010-10-05 11:24:23 +000019602 fi
19603
19604 # We used to test for /lib/ld.so.1 and disable shared libraries on
19605 # powerpc, because MkLinux only supported shared libraries with the
19606 # GNU dynamic linker. Since this was broken with cross compilers,
19607 # most powerpc-linux boxes support dynamic linking these days and
19608 # people can always --disable-shared, the test was removed, and we
19609 # assume the GNU/Linux dynamic linker is in use.
19610 dynamic_linker='GNU/Linux ld.so'
19611 ;;
19612
19613netbsd*)
19614 version_type=sunos
19615 need_lib_prefix=no
19616 need_version=no
19617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19620 dynamic_linker='NetBSD (a.out) ld.so'
19621 else
19622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19623 soname_spec='${libname}${release}${shared_ext}$major'
19624 dynamic_linker='NetBSD ld.elf_so'
19625 fi
19626 shlibpath_var=LD_LIBRARY_PATH
19627 shlibpath_overrides_runpath=yes
19628 hardcode_into_libs=yes
19629 ;;
19630
19631newsos6)
19632 version_type=linux
19633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19634 shlibpath_var=LD_LIBRARY_PATH
19635 shlibpath_overrides_runpath=yes
19636 ;;
19637
19638*nto* | *qnx*)
19639 version_type=qnx
19640 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 shlibpath_var=LD_LIBRARY_PATH
19645 shlibpath_overrides_runpath=no
19646 hardcode_into_libs=yes
19647 dynamic_linker='ldqnx.so'
19648 ;;
19649
19650openbsd*)
19651 version_type=sunos
19652 sys_lib_dlsearch_path_spec="/usr/lib"
19653 need_lib_prefix=no
19654 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19655 case $host_os in
19656 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19657 *) need_version=no ;;
19658 esac
19659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19661 shlibpath_var=LD_LIBRARY_PATH
19662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19663 case $host_os in
19664 openbsd2.[89] | openbsd2.[89].*)
19665 shlibpath_overrides_runpath=no
19666 ;;
19667 *)
19668 shlibpath_overrides_runpath=yes
19669 ;;
19670 esac
19671 else
19672 shlibpath_overrides_runpath=yes
19673 fi
19674 ;;
19675
19676os2*)
19677 libname_spec='$name'
19678 shrext_cmds=".dll"
19679 need_lib_prefix=no
19680 library_names_spec='$libname${shared_ext} $libname.a'
19681 dynamic_linker='OS/2 ld.exe'
19682 shlibpath_var=LIBPATH
19683 ;;
19684
19685osf3* | osf4* | osf5*)
19686 version_type=osf
19687 need_lib_prefix=no
19688 need_version=no
19689 soname_spec='${libname}${release}${shared_ext}$major'
19690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19691 shlibpath_var=LD_LIBRARY_PATH
19692 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19693 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19694 ;;
19695
19696rdos*)
19697 dynamic_linker=no
19698 ;;
19699
19700solaris*)
19701 version_type=linux
19702 need_lib_prefix=no
19703 need_version=no
19704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19705 soname_spec='${libname}${release}${shared_ext}$major'
19706 shlibpath_var=LD_LIBRARY_PATH
19707 shlibpath_overrides_runpath=yes
19708 hardcode_into_libs=yes
19709 # ldd complains unless libraries are executable
19710 postinstall_cmds='chmod +x $lib'
19711 ;;
19712
19713sunos4*)
19714 version_type=sunos
19715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19717 shlibpath_var=LD_LIBRARY_PATH
19718 shlibpath_overrides_runpath=yes
19719 if test "$with_gnu_ld" = yes; then
19720 need_lib_prefix=no
19721 fi
19722 need_version=yes
19723 ;;
19724
19725sysv4 | sysv4.3*)
19726 version_type=linux
19727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19728 soname_spec='${libname}${release}${shared_ext}$major'
19729 shlibpath_var=LD_LIBRARY_PATH
19730 case $host_vendor in
19731 sni)
19732 shlibpath_overrides_runpath=no
19733 need_lib_prefix=no
19734 runpath_var=LD_RUN_PATH
19735 ;;
19736 siemens)
19737 need_lib_prefix=no
19738 ;;
19739 motorola)
19740 need_lib_prefix=no
19741 need_version=no
19742 shlibpath_overrides_runpath=no
19743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19744 ;;
19745 esac
19746 ;;
19747
19748sysv4*MP*)
19749 if test -d /usr/nec ;then
19750 version_type=linux
19751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19752 soname_spec='$libname${shared_ext}.$major'
19753 shlibpath_var=LD_LIBRARY_PATH
19754 fi
19755 ;;
19756
19757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19758 version_type=freebsd-elf
19759 need_lib_prefix=no
19760 need_version=no
19761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19762 soname_spec='${libname}${release}${shared_ext}$major'
19763 shlibpath_var=LD_LIBRARY_PATH
19764 shlibpath_overrides_runpath=yes
19765 hardcode_into_libs=yes
19766 if test "$with_gnu_ld" = yes; then
19767 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19768 else
19769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19770 case $host_os in
19771 sco3.2v5*)
19772 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19773 ;;
19774 esac
19775 fi
19776 sys_lib_dlsearch_path_spec='/usr/lib'
19777 ;;
19778
19779tpf*)
19780 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19781 version_type=linux
19782 need_lib_prefix=no
19783 need_version=no
19784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19785 shlibpath_var=LD_LIBRARY_PATH
19786 shlibpath_overrides_runpath=no
19787 hardcode_into_libs=yes
19788 ;;
19789
19790uts4*)
19791 version_type=linux
19792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19793 soname_spec='${libname}${release}${shared_ext}$major'
19794 shlibpath_var=LD_LIBRARY_PATH
19795 ;;
19796
19797*)
19798 dynamic_linker=no
19799 ;;
19800esac
19801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19802$as_echo "$dynamic_linker" >&6; }
19803test "$dynamic_linker" = no && can_build_shared=no
19804
19805variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19806if test "$GCC" = yes; then
19807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19808fi
19809
19810if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19811 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19812fi
19813if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19814 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19815fi
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
cristy0c60a692010-11-04 01:09:47 +000019852
19853
cristy73bd4a52010-10-05 11:24:23 +000019854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19855$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19856hardcode_action_CXX=
19857if test -n "$hardcode_libdir_flag_spec_CXX" ||
19858 test -n "$runpath_var_CXX" ||
19859 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19860
19861 # We can hardcode non-existent directories.
19862 if test "$hardcode_direct_CXX" != no &&
19863 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19864 # have to relink, otherwise we might link with an installed library
19865 # when we should be linking with a yet-to-be-installed one
19866 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19867 test "$hardcode_minus_L_CXX" != no; then
19868 # Linking always hardcodes the temporary library directory.
19869 hardcode_action_CXX=relink
19870 else
19871 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19872 hardcode_action_CXX=immediate
19873 fi
19874else
19875 # We cannot hardcode anything, or else we can only hardcode existing
19876 # directories.
19877 hardcode_action_CXX=unsupported
19878fi
19879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19880$as_echo "$hardcode_action_CXX" >&6; }
19881
19882if test "$hardcode_action_CXX" = relink ||
19883 test "$inherit_rpath_CXX" = yes; then
19884 # Fast installation is not supported
19885 enable_fast_install=no
19886elif test "$shlibpath_overrides_runpath" = yes ||
19887 test "$enable_shared" = no; then
19888 # Fast installation is not necessary
19889 enable_fast_install=needless
19890fi
19891
19892
19893
19894
19895
19896
19897
19898 fi # test -n "$compiler"
19899
19900 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019901 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019902 LDCXX=$LD
19903 LD=$lt_save_LD
19904 GCC=$lt_save_GCC
19905 with_gnu_ld=$lt_save_with_gnu_ld
19906 lt_cv_path_LDCXX=$lt_cv_path_LD
19907 lt_cv_path_LD=$lt_save_path_LD
19908 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19909 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19910fi # test "$_lt_caught_CXX_error" != yes
19911
19912ac_ext=c
19913ac_cpp='$CPP $CPPFLAGS'
19914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916ac_compiler_gnu=$ac_cv_c_compiler_gnu
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930 ac_config_commands="$ac_config_commands libtool"
19931
19932
19933
19934
19935# Only expand once:
19936
19937
19938
cristy3ed852e2009-09-05 21:47:34 +000019939
19940
19941# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019942
19943
19944
19945
19946
19947
19948
cristy73bd4a52010-10-05 11:24:23 +000019949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19950$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019951if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019952 $as_echo_n "(cached) " >&6
19953else
19954
19955module=yes
19956eval libltdl_cv_shlibext=$shrext_cmds
19957
19958fi
19959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19960$as_echo "$libltdl_cv_shlibext" >&6; }
19961if test -n "$libltdl_cv_shlibext"; then
19962
19963cat >>confdefs.h <<_ACEOF
19964#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19965_ACEOF
19966
19967fi
19968
19969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19970$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019971if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019972 $as_echo_n "(cached) " >&6
19973else
19974 lt_cv_module_path_var="$shlibpath_var"
19975fi
19976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19977$as_echo "$lt_cv_module_path_var" >&6; }
19978if test -n "$lt_cv_module_path_var"; then
19979
19980cat >>confdefs.h <<_ACEOF
19981#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19982_ACEOF
19983
19984fi
19985
19986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19987$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019988if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019989 $as_echo_n "(cached) " >&6
19990else
19991 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19992fi
19993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19994$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19995if test -n "$lt_cv_sys_dlsearch_path"; then
19996 sys_dlsearch_path=
19997 for dir in $lt_cv_sys_dlsearch_path; do
19998 if test -z "$sys_dlsearch_path"; then
19999 sys_dlsearch_path="$dir"
20000 else
20001 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20002 fi
20003 done
20004
20005cat >>confdefs.h <<_ACEOF
20006#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20007_ACEOF
20008
20009fi
20010
20011
20012LT_DLLOADERS=
20013
20014
20015ac_ext=c
20016ac_cpp='$CPP $CPPFLAGS'
20017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019ac_compiler_gnu=$ac_cv_c_compiler_gnu
20020
20021
20022LIBADD_DLOPEN=
20023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20024$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020025if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020026 $as_echo_n "(cached) " >&6
20027else
20028 ac_func_search_save_LIBS=$LIBS
20029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030/* end confdefs.h. */
20031
20032/* Override any GCC internal prototype to avoid an error.
20033 Use char because int might match the return type of a GCC
20034 builtin and then its argument prototype would still apply. */
20035#ifdef __cplusplus
20036extern "C"
20037#endif
20038char dlopen ();
20039int
20040main ()
20041{
20042return dlopen ();
20043 ;
20044 return 0;
20045}
20046_ACEOF
20047for ac_lib in '' dl; do
20048 if test -z "$ac_lib"; then
20049 ac_res="none required"
20050 else
20051 ac_res=-l$ac_lib
20052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20053 fi
20054 if ac_fn_c_try_link "$LINENO"; then :
20055 ac_cv_search_dlopen=$ac_res
20056fi
20057rm -f core conftest.err conftest.$ac_objext \
20058 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020059 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020060 break
20061fi
20062done
cristyda16f162011-02-19 23:52:17 +000020063if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020064
20065else
20066 ac_cv_search_dlopen=no
20067fi
20068rm conftest.$ac_ext
20069LIBS=$ac_func_search_save_LIBS
20070fi
20071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20072$as_echo "$ac_cv_search_dlopen" >&6; }
20073ac_res=$ac_cv_search_dlopen
20074if test "$ac_res" != no; then :
20075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20076
20077$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20078
20079 if test "$ac_cv_search_dlopen" != "none required" ; then
20080 LIBADD_DLOPEN="-ldl"
20081 fi
20082 libltdl_cv_lib_dl_dlopen="yes"
20083 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20084else
20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086/* end confdefs.h. */
20087#if HAVE_DLFCN_H
20088# include <dlfcn.h>
20089#endif
20090
20091int
20092main ()
20093{
20094dlopen(0, 0);
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099if ac_fn_c_try_link "$LINENO"; then :
20100
20101$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20102
20103 libltdl_cv_func_dlopen="yes"
20104 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20105else
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20107$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020108if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020109 $as_echo_n "(cached) " >&6
20110else
20111 ac_check_lib_save_LIBS=$LIBS
20112LIBS="-lsvld $LIBS"
20113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20114/* end confdefs.h. */
20115
20116/* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20119#ifdef __cplusplus
20120extern "C"
20121#endif
20122char dlopen ();
20123int
20124main ()
20125{
20126return dlopen ();
20127 ;
20128 return 0;
20129}
20130_ACEOF
20131if ac_fn_c_try_link "$LINENO"; then :
20132 ac_cv_lib_svld_dlopen=yes
20133else
20134 ac_cv_lib_svld_dlopen=no
20135fi
20136rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext conftest.$ac_ext
20138LIBS=$ac_check_lib_save_LIBS
20139fi
20140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20141$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020142if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020143
20144$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20145
20146 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20147 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20148fi
20149
20150fi
20151rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20153fi
20154
20155if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20156then
20157 lt_save_LIBS="$LIBS"
20158 LIBS="$LIBS $LIBADD_DLOPEN"
20159 for ac_func in dlerror
20160do :
20161 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020162if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020163 cat >>confdefs.h <<_ACEOF
20164#define HAVE_DLERROR 1
20165_ACEOF
20166
20167fi
20168done
20169
20170 LIBS="$lt_save_LIBS"
20171fi
20172
20173
20174LIBADD_SHL_LOAD=
20175ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020176if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020177
20178$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20179
20180 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20181else
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20183$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020184if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020185 $as_echo_n "(cached) " >&6
20186else
20187 ac_check_lib_save_LIBS=$LIBS
20188LIBS="-ldld $LIBS"
20189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190/* end confdefs.h. */
20191
20192/* Override any GCC internal prototype to avoid an error.
20193 Use char because int might match the return type of a GCC
20194 builtin and then its argument prototype would still apply. */
20195#ifdef __cplusplus
20196extern "C"
20197#endif
20198char shl_load ();
20199int
20200main ()
20201{
20202return shl_load ();
20203 ;
20204 return 0;
20205}
20206_ACEOF
20207if ac_fn_c_try_link "$LINENO"; then :
20208 ac_cv_lib_dld_shl_load=yes
20209else
20210 ac_cv_lib_dld_shl_load=no
20211fi
20212rm -f core conftest.err conftest.$ac_objext \
20213 conftest$ac_exeext conftest.$ac_ext
20214LIBS=$ac_check_lib_save_LIBS
20215fi
20216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20217$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020218if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020219
20220$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20221
20222 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20223 LIBADD_SHL_LOAD="-ldld"
20224fi
20225
20226fi
20227
20228
20229
20230case $host_os in
20231darwin[1567].*)
20232# We only want this for pre-Mac OS X 10.4.
20233 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020234if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020235
20236$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20237
20238 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20239fi
20240
20241 ;;
20242beos*)
20243 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20244 ;;
20245cygwin* | mingw* | os2* | pw32*)
20246 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20247"
cristyda16f162011-02-19 23:52:17 +000020248if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020249 ac_have_decl=1
20250else
20251 ac_have_decl=0
20252fi
20253
20254cat >>confdefs.h <<_ACEOF
20255#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20256_ACEOF
20257
20258 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20259 ;;
20260esac
20261
20262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20263$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020264if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020265 $as_echo_n "(cached) " >&6
20266else
20267 ac_check_lib_save_LIBS=$LIBS
20268LIBS="-ldld $LIBS"
20269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270/* end confdefs.h. */
20271
20272/* Override any GCC internal prototype to avoid an error.
20273 Use char because int might match the return type of a GCC
20274 builtin and then its argument prototype would still apply. */
20275#ifdef __cplusplus
20276extern "C"
20277#endif
20278char dld_link ();
20279int
20280main ()
20281{
20282return dld_link ();
20283 ;
20284 return 0;
20285}
20286_ACEOF
20287if ac_fn_c_try_link "$LINENO"; then :
20288 ac_cv_lib_dld_dld_link=yes
20289else
20290 ac_cv_lib_dld_dld_link=no
20291fi
20292rm -f core conftest.err conftest.$ac_objext \
20293 conftest$ac_exeext conftest.$ac_ext
20294LIBS=$ac_check_lib_save_LIBS
20295fi
20296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20297$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020298if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020299
20300$as_echo "#define HAVE_DLD 1" >>confdefs.h
20301
20302 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20303fi
20304
20305
20306
20307
20308LT_DLPREOPEN=
20309if test -n "$LT_DLLOADERS"
20310then
20311 for lt_loader in $LT_DLLOADERS; do
20312 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20313 done
20314
20315$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20316
20317fi
20318
20319
20320LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20321
20322
20323ac_ext=c
20324ac_cpp='$CPP $CPPFLAGS'
20325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20327ac_compiler_gnu=$ac_cv_c_compiler_gnu
20328
20329
20330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20331$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020332if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020333 $as_echo_n "(cached) " >&6
20334else
20335 lt_cv_sys_symbol_underscore=no
20336 cat > conftest.$ac_ext <<_LT_EOF
20337void nm_test_func(){}
20338int main(){nm_test_func;return 0;}
20339_LT_EOF
20340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20341 (eval $ac_compile) 2>&5
20342 ac_status=$?
20343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20344 test $ac_status = 0; }; then
20345 # Now try to grab the symbols.
20346 ac_nlist=conftest.nm
20347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20348 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20349 ac_status=$?
20350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20351 test $ac_status = 0; } && test -s "$ac_nlist"; then
20352 # See whether the symbols have a leading underscore.
20353 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20354 lt_cv_sys_symbol_underscore=yes
20355 else
20356 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20357 :
20358 else
20359 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20360 fi
20361 fi
20362 else
20363 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20364 fi
20365 else
20366 echo "configure: failed program was:" >&5
20367 cat conftest.c >&5
20368 fi
20369 rm -rf conftest*
20370
20371fi
20372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20373$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20374 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20375
20376
20377if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20378 if test x"$libltdl_cv_func_dlopen" = xyes ||
20379 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20381$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020382if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020383 $as_echo_n "(cached) " >&6
20384else
20385 libltdl_cv_need_uscore=unknown
20386 save_LIBS="$LIBS"
20387 LIBS="$LIBS $LIBADD_DLOPEN"
20388 if test "$cross_compiling" = yes; then :
20389 libltdl_cv_need_uscore=cross
20390else
20391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20392 lt_status=$lt_dlunknown
20393 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020394#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020395#include "confdefs.h"
20396
20397#if HAVE_DLFCN_H
20398#include <dlfcn.h>
20399#endif
20400
20401#include <stdio.h>
20402
20403#ifdef RTLD_GLOBAL
20404# define LT_DLGLOBAL RTLD_GLOBAL
20405#else
20406# ifdef DL_GLOBAL
20407# define LT_DLGLOBAL DL_GLOBAL
20408# else
20409# define LT_DLGLOBAL 0
20410# endif
20411#endif
20412
20413/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20414 find out it does not work in some platform. */
20415#ifndef LT_DLLAZY_OR_NOW
20416# ifdef RTLD_LAZY
20417# define LT_DLLAZY_OR_NOW RTLD_LAZY
20418# else
20419# ifdef DL_LAZY
20420# define LT_DLLAZY_OR_NOW DL_LAZY
20421# else
20422# ifdef RTLD_NOW
20423# define LT_DLLAZY_OR_NOW RTLD_NOW
20424# else
20425# ifdef DL_NOW
20426# define LT_DLLAZY_OR_NOW DL_NOW
20427# else
20428# define LT_DLLAZY_OR_NOW 0
20429# endif
20430# endif
20431# endif
20432# endif
20433#endif
20434
cristy0c60a692010-11-04 01:09:47 +000020435/* When -fvisbility=hidden is used, assume the code has been annotated
20436 correspondingly for the symbols needed. */
20437#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020438int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020439#endif
20440
cristyda16f162011-02-19 23:52:17 +000020441int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020442int main ()
20443{
20444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20445 int status = $lt_dlunknown;
20446
20447 if (self)
20448 {
20449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020450 else
20451 {
20452 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20453 else puts (dlerror ());
20454 }
cristy73bd4a52010-10-05 11:24:23 +000020455 /* dlclose (self); */
20456 }
20457 else
20458 puts (dlerror ());
20459
20460 return status;
20461}
20462_LT_EOF
20463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20464 (eval $ac_link) 2>&5
20465 ac_status=$?
20466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20467 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20468 (./conftest; exit; ) >&5 2>/dev/null
20469 lt_status=$?
20470 case x$lt_status in
20471 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20472 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20473 x$lt_dlunknown|x*) ;;
20474 esac
20475 else :
20476 # compilation failed
20477
20478 fi
20479fi
20480rm -fr conftest*
20481
20482 LIBS="$save_LIBS"
20483
20484fi
20485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20486$as_echo "$libltdl_cv_need_uscore" >&6; }
20487 fi
20488fi
20489
20490if test x"$libltdl_cv_need_uscore" = xyes; then
20491
20492$as_echo "#define NEED_USCORE 1" >>confdefs.h
20493
20494fi
20495
20496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20497$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020498if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020499 $as_echo_n "(cached) " >&6
20500else
20501 # PORTME does your system automatically load deplibs for dlopen?
20502 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20503 # For now, we just catch OSes we know something about -- in the
20504 # future, we'll try test this programmatically.
20505 lt_cv_sys_dlopen_deplibs=unknown
20506 case $host_os in
20507 aix3*|aix4.1.*|aix4.2.*)
20508 # Unknown whether this is true for these versions of AIX, but
20509 # we want this `case' here to explicitly catch those versions.
20510 lt_cv_sys_dlopen_deplibs=unknown
20511 ;;
20512 aix[4-9]*)
20513 lt_cv_sys_dlopen_deplibs=yes
20514 ;;
20515 amigaos*)
20516 case $host_cpu in
20517 powerpc)
20518 lt_cv_sys_dlopen_deplibs=no
20519 ;;
20520 esac
20521 ;;
20522 darwin*)
20523 # Assuming the user has installed a libdl from somewhere, this is true
20524 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20525 lt_cv_sys_dlopen_deplibs=yes
20526 ;;
20527 freebsd* | dragonfly*)
20528 lt_cv_sys_dlopen_deplibs=yes
20529 ;;
cristy0c60a692010-11-04 01:09:47 +000020530 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020531 # GNU and its variants, using gnu ld.so (Glibc)
20532 lt_cv_sys_dlopen_deplibs=yes
20533 ;;
20534 hpux10*|hpux11*)
20535 lt_cv_sys_dlopen_deplibs=yes
20536 ;;
20537 interix*)
20538 lt_cv_sys_dlopen_deplibs=yes
20539 ;;
20540 irix[12345]*|irix6.[01]*)
20541 # Catch all versions of IRIX before 6.2, and indicate that we don't
20542 # know how it worked for any of those versions.
20543 lt_cv_sys_dlopen_deplibs=unknown
20544 ;;
20545 irix*)
20546 # The case above catches anything before 6.2, and it's known that
20547 # at 6.2 and later dlopen does load deplibs.
20548 lt_cv_sys_dlopen_deplibs=yes
20549 ;;
20550 netbsd*)
20551 lt_cv_sys_dlopen_deplibs=yes
20552 ;;
20553 openbsd*)
20554 lt_cv_sys_dlopen_deplibs=yes
20555 ;;
20556 osf[1234]*)
20557 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20558 # it did *not* use an RPATH in a shared library to find objects the
20559 # library depends on, so we explicitly say `no'.
20560 lt_cv_sys_dlopen_deplibs=no
20561 ;;
20562 osf5.0|osf5.0a|osf5.1)
20563 # dlopen *does* load deplibs and with the right loader patch applied
20564 # it even uses RPATH in a shared library to search for shared objects
20565 # that the library depends on, but there's no easy way to know if that
20566 # patch is installed. Since this is the case, all we can really
20567 # say is unknown -- it depends on the patch being installed. If
20568 # it is, this changes to `yes'. Without it, it would be `no'.
20569 lt_cv_sys_dlopen_deplibs=unknown
20570 ;;
20571 osf*)
20572 # the two cases above should catch all versions of osf <= 5.1. Read
20573 # the comments above for what we know about them.
20574 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20575 # is used to find them so we can finally say `yes'.
20576 lt_cv_sys_dlopen_deplibs=yes
20577 ;;
20578 qnx*)
20579 lt_cv_sys_dlopen_deplibs=yes
20580 ;;
20581 solaris*)
20582 lt_cv_sys_dlopen_deplibs=yes
20583 ;;
20584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20585 libltdl_cv_sys_dlopen_deplibs=yes
20586 ;;
20587 esac
20588
20589fi
20590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20591$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20592if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20593
20594$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20595
20596fi
20597
20598:
20599
20600for ac_header in argz.h
20601do :
20602 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20603"
cristyda16f162011-02-19 23:52:17 +000020604if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020605 cat >>confdefs.h <<_ACEOF
20606#define HAVE_ARGZ_H 1
20607_ACEOF
20608
20609fi
20610
20611done
20612
20613
20614ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20615# include <argz.h>
20616#endif
20617"
cristyda16f162011-02-19 23:52:17 +000020618if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020619
20620cat >>confdefs.h <<_ACEOF
20621#define HAVE_ERROR_T 1
20622_ACEOF
20623
20624
20625else
20626
20627$as_echo "#define error_t int" >>confdefs.h
20628
20629
20630$as_echo "#define __error_t_defined 1" >>confdefs.h
20631
20632fi
20633
20634
20635ARGZ_H=
20636for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20637 argz_next argz_stringify
20638do :
20639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20640ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020641if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020642 cat >>confdefs.h <<_ACEOF
20643#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20644_ACEOF
20645
20646else
20647 ARGZ_H=argz.h;
20648
20649 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20650
20651fi
20652done
20653
20654
20655if test -z "$ARGZ_H"; then :
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20657$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020658if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020659 $as_echo_n "(cached) " >&6
20660else
20661 case $host_os in #(
20662 *cygwin*)
20663 lt_cv_sys_argz_works=no
20664 if test "$cross_compiling" != no; then
20665 lt_cv_sys_argz_works="guessing no"
20666 else
20667 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20668 save_IFS=$IFS
20669 IFS=-.
20670 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20671 IFS=$save_IFS
20672 lt_os_major=${2-0}
20673 lt_os_minor=${3-0}
20674 lt_os_micro=${4-0}
20675 if test "$lt_os_major" -gt 1 \
20676 || { test "$lt_os_major" -eq 1 \
20677 && { test "$lt_os_minor" -gt 5 \
20678 || { test "$lt_os_minor" -eq 5 \
20679 && test "$lt_os_micro" -gt 24; }; }; }; then
20680 lt_cv_sys_argz_works=yes
20681 fi
20682 fi
20683 ;; #(
20684 *) lt_cv_sys_argz_works=yes ;;
20685 esac
20686fi
20687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20688$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020689 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020690
20691$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20692
20693else
20694 ARGZ_H=argz.h
20695
20696
20697 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20698
20699fi
20700fi
20701
20702
20703
20704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20705$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020706if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020707 $as_echo_n "(cached) " >&6
20708else
20709 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20710 libltdl_cv_preloaded_symbols=yes
20711 else
20712 libltdl_cv_preloaded_symbols=no
20713 fi
20714
20715fi
20716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20717$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20718if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20719
20720$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20721
20722fi
20723
20724# Set options
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736# Check whether --with-included_ltdl was given.
20737if test "${with_included_ltdl+set}" = set; then :
20738 withval=$with_included_ltdl;
20739fi
20740
20741
20742if test "x$with_included_ltdl" != xyes; then
20743 # We are not being forced to use the included libltdl sources, so
20744 # decide whether there is a useful installed version we can use.
20745 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20746
20747"
cristyda16f162011-02-19 23:52:17 +000020748if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020749 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20750 #include <ltdl.h>
20751"
cristyda16f162011-02-19 23:52:17 +000020752if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20754$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020755if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020756 $as_echo_n "(cached) " >&6
20757else
20758 ac_check_lib_save_LIBS=$LIBS
20759LIBS="-lltdl $LIBS"
20760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761/* end confdefs.h. */
20762
20763/* Override any GCC internal prototype to avoid an error.
20764 Use char because int might match the return type of a GCC
20765 builtin and then its argument prototype would still apply. */
20766#ifdef __cplusplus
20767extern "C"
20768#endif
20769char lt_dladvise_preload ();
20770int
20771main ()
20772{
20773return lt_dladvise_preload ();
20774 ;
20775 return 0;
20776}
20777_ACEOF
20778if ac_fn_c_try_link "$LINENO"; then :
20779 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20780else
20781 ac_cv_lib_ltdl_lt_dladvise_preload=no
20782fi
20783rm -f core conftest.err conftest.$ac_objext \
20784 conftest$ac_exeext conftest.$ac_ext
20785LIBS=$ac_check_lib_save_LIBS
20786fi
20787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20788$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020789if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020790 with_included_ltdl=no
20791else
20792 with_included_ltdl=yes
20793fi
20794
20795else
20796 with_included_ltdl=yes
20797fi
20798
20799else
20800 with_included_ltdl=yes
20801fi
20802
20803
20804fi
20805
20806
20807
20808
20809# Check whether --with-ltdl_include was given.
20810if test "${with_ltdl_include+set}" = set; then :
20811 withval=$with_ltdl_include;
20812fi
20813
20814
20815if test -n "$with_ltdl_include"; then
20816 if test -f "$with_ltdl_include/ltdl.h"; then :
20817 else
cristy98dddb52010-11-04 00:30:15 +000020818 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020819 fi
20820else
20821 with_ltdl_include=no
20822fi
20823
20824
20825# Check whether --with-ltdl_lib was given.
20826if test "${with_ltdl_lib+set}" = set; then :
20827 withval=$with_ltdl_lib;
20828fi
20829
20830
20831if test -n "$with_ltdl_lib"; then
20832 if test -f "$with_ltdl_lib/libltdl.la"; then :
20833 else
cristy98dddb52010-11-04 00:30:15 +000020834 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020835 fi
20836else
20837 with_ltdl_lib=no
20838fi
20839
20840case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20841 ,yes,no,no,)
20842 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020843 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020844 "") enable_ltdl_convenience=yes
20845 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20846esac
20847LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20848LTDLDEPS=$LIBLTDL
20849LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20850
20851
20852
20853
20854
20855# For backwards non-gettext consistent compatibility...
20856INCLTDL="$LTDLINCL"
20857
20858
20859 ;;
20860 ,no,no,no,)
20861 # If the included ltdl is not to be used, then use the
20862 # preinstalled libltdl we found.
20863
20864$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20865
20866 LIBLTDL=-lltdl
20867 LTDLDEPS=
20868 LTDLINCL=
20869 ;;
20870 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020871 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020872 ;;
20873 *) with_included_ltdl=no
20874 LIBLTDL="-L$with_ltdl_lib -lltdl"
20875 LTDLDEPS=
20876 LTDLINCL="-I$with_ltdl_include"
20877 ;;
20878esac
20879INCLTDL="$LTDLINCL"
20880
20881# Report our decision...
20882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20883$as_echo_n "checking where to find libltdl headers... " >&6; }
20884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20885$as_echo "$LTDLINCL" >&6; }
20886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20887$as_echo_n "checking where to find libltdl library... " >&6; }
20888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20889$as_echo "$LIBLTDL" >&6; }
20890
20891
20892
20893# Check whether --enable-ltdl-install was given.
20894if test "${enable_ltdl_install+set}" = set; then :
20895 enableval=$enable_ltdl_install;
20896fi
20897
20898
20899case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20900 *yes*) ;;
20901 *) enable_ltdl_convenience=yes ;;
20902esac
20903
20904 if test x"${enable_ltdl_install-no}" != xno; then
20905 INSTALL_LTDL_TRUE=
20906 INSTALL_LTDL_FALSE='#'
20907else
20908 INSTALL_LTDL_TRUE='#'
20909 INSTALL_LTDL_FALSE=
20910fi
20911
20912 if test x"${enable_ltdl_convenience-no}" != xno; then
20913 CONVENIENCE_LTDL_TRUE=
20914 CONVENIENCE_LTDL_FALSE='#'
20915else
20916 CONVENIENCE_LTDL_TRUE='#'
20917 CONVENIENCE_LTDL_FALSE=
20918fi
20919
20920
20921
20922
20923
20924
cristy73bd4a52010-10-05 11:24:23 +000020925# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20926# the user used. This is so that ltdl.h can pick up the parent projects
20927# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20928# definitions required by ltdl.c.
20929# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20930
20931
20932
20933for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20934do :
20935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20936ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20937"
cristy98dddb52010-11-04 00:30:15 +000020938if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020939 cat >>confdefs.h <<_ACEOF
20940#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20941_ACEOF
20942
20943fi
20944
20945done
20946
20947
20948for ac_func in closedir opendir readdir
20949do :
20950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020952if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020953 cat >>confdefs.h <<_ACEOF
20954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20955_ACEOF
20956
20957else
20958
20959
20960 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20961
20962fi
20963done
20964
20965for ac_func in strlcat strlcpy
20966do :
20967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020969if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020970 cat >>confdefs.h <<_ACEOF
20971#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20972_ACEOF
20973
20974else
20975
20976
20977 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20978
20979fi
20980done
20981
20982
20983
20984cat >>confdefs.h <<_ACEOF
20985#define LT_LIBEXT "$libext"
20986_ACEOF
20987
20988
cristyda16f162011-02-19 23:52:17 +000020989name=
20990eval "lt_libprefix=\"$libname_spec\""
20991
20992cat >>confdefs.h <<_ACEOF
20993#define LT_LIBPREFIX "$lt_libprefix"
20994_ACEOF
20995
20996
cristy73bd4a52010-10-05 11:24:23 +000020997name=ltdl
cristyda16f162011-02-19 23:52:17 +000020998eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020999
21000
21001
21002
21003
21004
21005
21006
21007# Only expand once:
21008
21009
cristy3ed852e2009-09-05 21:47:34 +000021010
21011# Check to see if building shared libraries
21012libtool_build_shared_libs='no'
21013if test "$enable_shared" = 'yes'; then
21014 libtool_build_shared_libs='yes'
21015fi
21016
21017# Check to see if building static libraries
21018libtool_build_static_libs='no'
21019if test "$enable_static" = 'yes'; then
21020 libtool_build_static_libs='yes'
21021fi
21022
cristy73bd4a52010-10-05 11:24:23 +000021023 if test "${libtool_build_shared_libs}" = 'yes'; then
21024 WITH_SHARED_LIBS_TRUE=
21025 WITH_SHARED_LIBS_FALSE='#'
21026else
21027 WITH_SHARED_LIBS_TRUE='#'
21028 WITH_SHARED_LIBS_FALSE=
21029fi
21030
cristy3ed852e2009-09-05 21:47:34 +000021031#
21032# Enable support for building loadable modules
21033#
21034
21035# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021036if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021037 withval=$with_modules; with_modules=$withval
21038else
cristy5a1cefd2010-01-06 20:42:35 +000021039 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021040fi
21041
21042
21043# Only allow building loadable modules if we are building shared libraries
21044if test "$with_modules" != 'no' ; then
21045 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021046 { $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 +000021047$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21048 with_modules='no'
21049 fi
21050fi
21051if test "$with_modules" != 'no'; then
21052
cristy8b350f62009-11-15 23:12:43 +000021053$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021054
21055fi
cristy73bd4a52010-10-05 11:24:23 +000021056 if test "$with_modules" != 'no'; then
21057 WITH_MODULES_TRUE=
21058 WITH_MODULES_FALSE='#'
21059else
21060 WITH_MODULES_TRUE='#'
21061 WITH_MODULES_FALSE=
21062fi
21063
cristy3ed852e2009-09-05 21:47:34 +000021064
21065# Enable building/use of libltdl if we are building shared libraries regardless
21066# of whether modules are built or not.
21067with_ltdl='no'
21068if test "$libtool_build_shared_libs" != 'no'; then
21069 with_ltdl='yes'
21070fi
21071
cristy73bd4a52010-10-05 11:24:23 +000021072 if test "$with_ltdl" != 'no'; then
21073 WITH_LTDL_TRUE=
21074 WITH_LTDL_FALSE='#'
21075else
21076 WITH_LTDL_TRUE='#'
21077 WITH_LTDL_FALSE=
21078fi
21079
cristy3ed852e2009-09-05 21:47:34 +000021080if test "$with_ltdl" != 'no'; then
21081
cristy8b350f62009-11-15 23:12:43 +000021082$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021083
21084
21085 # Set DLLDFLAGS
21086 if test X"$enable_shared" = Xyes; then
21087 DLLDFLAGS=-export-dynamic
21088
21089 fi
21090fi
21091
21092# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021093# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021094# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021095if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021096 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21097else
21098 enable_delegate_build='no'
21099fi
21100
21101
21102# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021103if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021104 enableval=$enable_deprecated; enable_deprecated=$enableval
21105else
21106 enable_deprecated='no'
21107fi
21108
21109
21110if test "$enable_deprecated" = 'yes'; then
21111
cristy8b350f62009-11-15 23:12:43 +000021112$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021113
21114else
21115 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21116fi
21117
21118# Build a version of ImageMagick which operates uninstalled.
21119# Used to build distributions located via MAGICK_HOME / executable path
21120# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021121if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021122 enableval=$enable_installed; enable_installed=$enableval
21123else
21124 enable_installed='yes'
21125fi
21126
21127
21128if test "$enable_installed" = 'yes'; then
21129
cristy8b350f62009-11-15 23:12:43 +000021130$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021131
21132else
21133 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21134fi
21135
21136# Permit enciphering and deciphering image pixels.
21137# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021138if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 enableval=$enable_cipher; enable_cipher=$enableval
21140else
21141 enable_cipher='yes'
21142fi
21143
21144
21145if test "$enable_cipher" = 'yes'; then
21146
cristy8b350f62009-11-15 23:12:43 +000021147$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021148
21149fi
21150
cristy6e3607c2011-09-13 13:59:17 +000021151# Build a zero-configuration version of ImageMagick.
21152# Check whether --enable-zero-configuration was given.
21153if test "${enable_zero_configuration+set}" = set; then :
21154 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021155else
cristy6e3607c2011-09-13 13:59:17 +000021156 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021157fi
21158
21159
cristy6e3607c2011-09-13 13:59:17 +000021160if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021161
cristy6e3607c2011-09-13 13:59:17 +000021162$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021163
cristy81af5702011-09-13 14:20:58 +000021164 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021165fi
21166
21167# Build a high dynamic range version of ImageMagick.
21168# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021169if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021170 enableval=$enable_hdri; enable_hdri=$enableval
21171else
21172 enable_hdri='no'
21173fi
21174
21175
21176MAGICK_HDRI=""
21177if test "$enable_hdri" = 'yes'; then
21178 MAGICK_HDRI="HDRI"
21179
cristy8b350f62009-11-15 23:12:43 +000021180$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021181
cristyfd9dcd42010-08-08 18:07:02 +000021182 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021183fi
21184
cristy3ed852e2009-09-05 21:47:34 +000021185# Build a version of ImageMagick with assert statements.
21186# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021187if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021188 enableval=$enable_assert; enable_assert=$enableval
21189else
21190 enable_assert='yes'
21191fi
21192
21193
21194if test "$enable_assert" = 'no'; then
21195
cristy8b350f62009-11-15 23:12:43 +000021196$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021197
21198fi
21199
cristya448bd22011-10-14 12:38:13 +000021200# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021201
21202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21203$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21204 # Check whether --enable-maintainer-mode was given.
21205if test "${enable_maintainer_mode+set}" = set; then :
21206 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21207else
21208 USE_MAINTAINER_MODE=no
21209fi
21210
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21212$as_echo "$USE_MAINTAINER_MODE" >&6; }
21213 if test $USE_MAINTAINER_MODE = yes; then
21214 MAINTAINER_MODE_TRUE=
21215 MAINTAINER_MODE_FALSE='#'
21216else
21217 MAINTAINER_MODE_TRUE='#'
21218 MAINTAINER_MODE_FALSE=
21219fi
21220
21221 MAINT=$MAINTAINER_MODE_TRUE
21222
21223
cristy3ed852e2009-09-05 21:47:34 +000021224
cristy3ed852e2009-09-05 21:47:34 +000021225# Enable ccmalloc memory debugging support
21226# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021227if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021228 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21229else
21230 enable_ccmalloc='no'
21231fi
21232
21233
21234# Enable Electric Fence memory debugging support
21235# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021236if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021237 enableval=$enable_efence; enable_efence=$enableval
21238else
21239 enable_efence='no'
21240fi
21241
21242
21243# Enable prof-based profiling support
21244# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021245if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021246 enableval=$enable_prof; enable_prof=$enableval
21247else
21248 enable_prof='no'
21249fi
21250
21251
21252# Enable gprof-based profiling support
21253# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021254if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021255 enableval=$enable_gprof; enable_gprof=$enableval
21256else
21257 enable_gprof='no'
21258fi
21259
21260
21261# Enable gcov-based profiling support
21262# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021263if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021264 enableval=$enable_gcov; enable_gcov=$enableval
21265else
21266 enable_gcov='no'
21267fi
21268
21269
21270enable_profiling='no'
21271if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21272 enable_profiling='yes'
21273 if test "$libtool_build_shared_libs" = 'yes'; then
21274 echo "Warning: Can not profile code using shared libraries"
21275 fi
21276fi
21277
21278# Magick API method prefix
21279
21280# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021281if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021282 withval=$with_method_prefix; with_method_prefix=$enableval
21283else
21284 with_method_prefix=''
21285fi
21286
21287
21288if test "$with_method_prefix" != ''; then
21289
21290cat >>confdefs.h <<_ACEOF
21291#define NAMESPACE_PREFIX $with_method_prefix
21292_ACEOF
21293
21294fi
21295
21296# Number of bits in a Quantum
21297
21298# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021299if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021300 withval=$with_quantum_depth; with_quantum_depth=$withval
21301else
21302 with_quantum_depth=16
21303fi
21304
21305
21306if test "$with_quantum_depth" != '8'; then
21307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21308fi
21309
21310case "${with_quantum_depth}" in
21311 8 ) ;;
21312 16 ) ;;
21313 32 ) ;;
21314 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021315 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021316esac
21317QUANTUM_DEPTH="$with_quantum_depth"
21318
21319cat >>confdefs.h <<_ACEOF
21320#define QUANTUM_DEPTH $QUANTUM_DEPTH
21321_ACEOF
21322
21323
21324# Set pixel cache threshold
21325
21326# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021327if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021328 withval=$with_cache; with_cache=$withval
21329else
21330 with_cache=''
21331fi
21332
21333
21334if test "$with_cache" != ''; then
21335
21336cat >>confdefs.h <<_ACEOF
21337#define PixelCacheThreshold $with_cache
21338_ACEOF
21339
21340 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21341fi
21342
21343# Disable/Enable support for full delegate paths
21344
21345# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021346if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021347 withval=$with_frozenpaths; with_frozenpaths=$withval
21348else
21349 with_frozenpaths='no'
21350fi
21351
21352
21353# Enable build/install of Magick++
21354
21355# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021356if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021357 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21358else
21359 with_magick_plus_plus='yes'
21360fi
21361
21362
21363# Disable build/install of PerlMagick.
21364
21365# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021366if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021367 withval=$with_perl; with_perl=$withval
21368else
cristyb5f4e2f2010-04-25 00:49:11 +000021369 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021370fi
21371
21372
21373# Options to pass when configuring PerlMagick
21374
21375# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021376if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021377 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021378fi
21379
21380
cristy3ed852e2009-09-05 21:47:34 +000021381
21382# Enable umem, object-caching memory allocation library.
21383
21384# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021385if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 withval=$with_umem; with_umem=$withval
21387else
21388 with_umem='no'
21389fi
21390
21391if test "$with_umem" != 'yes' ; then
21392 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21393fi
21394
21395#
21396# Specify path to shared libstdc++ if not in normal location
21397#
21398
21399# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021400if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021401 withval=$with_libstdc; with_libstdc=$withval
21402else
21403 with_libstdc=''
21404fi
21405
21406
21407if test "$with_libstdc" != ''; then
21408 if test -d "$with_libstdc"; then
21409 LIBSTDCLDFLAGS="-L$with_libstdc"
21410 fi
21411fi
21412
21413
21414# Does gcc required -traditional?
21415if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021417$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021418if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021419 $as_echo_n "(cached) " >&6
21420else
21421 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021423/* end confdefs.h. */
21424#include <sgtty.h>
21425Autoconf TIOCGETP
21426_ACEOF
21427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021428 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021429 ac_cv_prog_gcc_traditional=yes
21430else
21431 ac_cv_prog_gcc_traditional=no
21432fi
21433rm -f conftest*
21434
21435
21436 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021438/* end confdefs.h. */
21439#include <termio.h>
21440Autoconf TCGETA
21441_ACEOF
21442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021443 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021444 ac_cv_prog_gcc_traditional=yes
21445fi
21446rm -f conftest*
21447
21448 fi
21449fi
cristy8b350f62009-11-15 23:12:43 +000021450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021451$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21452 if test $ac_cv_prog_gcc_traditional = yes; then
21453 CC="$CC -traditional"
21454 fi
21455fi
21456
21457
21458########
21459#
21460# Set defines required to build DLLs and modules using MinGW
21461#
21462########
21463# These options are set for multi-thread DLL module build
21464# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21465# module: _DLL
21466# executable/Magick++: _DLL _MAGICKMOD_
21467MODULE_EXTRA_CPPFLAGS=''
21468LIBRARY_EXTRA_CPPFLAGS=''
21469if test "${native_win32_build}" = 'yes'; then
21470 if test "${libtool_build_shared_libs}" = 'yes'; then
21471 CPPFLAGS="$CPPFLAGS -D_DLL"
21472 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21473 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21474 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21475 if test "$with_modules" = 'yes'; then
21476 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21477 else
21478 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21479 fi
21480 else
21481 CPPFLAGS="$CPPFLAGS -D_LIB"
21482 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21483 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21484 fi
21485 if test "$with_threads" = 'yes'; then
21486 CPPFLAGS="$CPPFLAGS -D_MT"
21487 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21488 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21489 fi
21490fi
21491
21492
21493
21494# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021496$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021497if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021498 $as_echo_n "(cached) " >&6
21499else
cristy8b350f62009-11-15 23:12:43 +000021500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021501/* end confdefs.h. */
21502#include <stdlib.h>
21503#include <stdarg.h>
21504#include <string.h>
21505#include <float.h>
21506
21507int
21508main ()
21509{
21510
21511 ;
21512 return 0;
21513}
21514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021515if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021516 ac_cv_header_stdc=yes
21517else
cristy8b350f62009-11-15 23:12:43 +000021518 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021519fi
cristy3ed852e2009-09-05 21:47:34 +000021520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521
21522if test $ac_cv_header_stdc = yes; then
21523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021525/* end confdefs.h. */
21526#include <string.h>
21527
21528_ACEOF
21529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021530 $EGREP "memchr" >/dev/null 2>&1; then :
21531
cristy3ed852e2009-09-05 21:47:34 +000021532else
21533 ac_cv_header_stdc=no
21534fi
21535rm -f conftest*
21536
21537fi
21538
21539if test $ac_cv_header_stdc = yes; then
21540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
21544
21545_ACEOF
21546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021547 $EGREP "free" >/dev/null 2>&1; then :
21548
cristy3ed852e2009-09-05 21:47:34 +000021549else
21550 ac_cv_header_stdc=no
21551fi
21552rm -f conftest*
21553
21554fi
21555
21556if test $ac_cv_header_stdc = yes; then
21557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021558 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021559 :
21560else
cristy8b350f62009-11-15 23:12:43 +000021561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021562/* end confdefs.h. */
21563#include <ctype.h>
21564#include <stdlib.h>
21565#if ((' ' & 0x0FF) == 0x020)
21566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21568#else
21569# define ISLOWER(c) \
21570 (('a' <= (c) && (c) <= 'i') \
21571 || ('j' <= (c) && (c) <= 'r') \
21572 || ('s' <= (c) && (c) <= 'z'))
21573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21574#endif
21575
21576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21577int
21578main ()
21579{
21580 int i;
21581 for (i = 0; i < 256; i++)
21582 if (XOR (islower (i), ISLOWER (i))
21583 || toupper (i) != TOUPPER (i))
21584 return 2;
21585 return 0;
21586}
21587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021588if ac_fn_c_try_run "$LINENO"; then :
21589
cristy3ed852e2009-09-05 21:47:34 +000021590else
cristy8b350f62009-11-15 23:12:43 +000021591 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021592fi
cristy8b350f62009-11-15 23:12:43 +000021593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21594 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021595fi
21596
cristy3ed852e2009-09-05 21:47:34 +000021597fi
21598fi
cristy8b350f62009-11-15 23:12:43 +000021599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021600$as_echo "$ac_cv_header_stdc" >&6; }
21601if test $ac_cv_header_stdc = yes; then
21602
cristy8b350f62009-11-15 23:12:43 +000021603$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021604
21605fi
21606
21607if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021608 { $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 +000021609 header files. Compilation cannot proceed. Please install the ANSI C
21610 headers and rerun this script." >&5
21611$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21612 header files. Compilation cannot proceed. Please install the ANSI C
21613 headers and rerun this script." >&2;};
21614fi
cristya0b81c32010-01-22 02:54:33 +000021615
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21617$as_echo_n "checking whether to enable assertions... " >&6; }
21618 # Check whether --enable-assert was given.
21619if test "${enable_assert+set}" = set; then :
21620 enableval=$enable_assert; ac_enable_assert=$enableval
21621 if test "x$enableval" = xno; then :
21622
21623$as_echo "#define NDEBUG 1" >>confdefs.h
21624
21625elif test "x$enableval" != xyes; then :
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21627$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21628 ac_enable_assert=yes
21629fi
21630else
21631 ac_enable_assert=yes
21632fi
21633
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21635$as_echo "$ac_enable_assert" >&6; }
21636
cristy3ed852e2009-09-05 21:47:34 +000021637ac_header_dirent=no
21638for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21639 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021641$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021642if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021643 $as_echo_n "(cached) " >&6
21644else
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 <sys/types.h>
21648#include <$ac_hdr>
21649
21650int
21651main ()
21652{
21653if ((DIR *) 0)
21654return 0;
21655 ;
21656 return 0;
21657}
21658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021659if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021660 eval "$as_ac_Header=yes"
21661else
cristy8b350f62009-11-15 23:12:43 +000021662 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021663fi
cristy3ed852e2009-09-05 21:47:34 +000021664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665fi
cristy8b350f62009-11-15 23:12:43 +000021666eval ac_res=\$$as_ac_Header
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021668$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021669if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 cat >>confdefs.h <<_ACEOF
21671#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21672_ACEOF
21673
21674ac_header_dirent=$ac_hdr; break
21675fi
21676
21677done
21678# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21679if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021681$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021682if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021683 $as_echo_n "(cached) " >&6
21684else
21685 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021687/* end confdefs.h. */
21688
21689/* Override any GCC internal prototype to avoid an error.
21690 Use char because int might match the return type of a GCC
21691 builtin and then its argument prototype would still apply. */
21692#ifdef __cplusplus
21693extern "C"
21694#endif
21695char opendir ();
21696int
21697main ()
21698{
21699return opendir ();
21700 ;
21701 return 0;
21702}
21703_ACEOF
21704for ac_lib in '' dir; do
21705 if test -z "$ac_lib"; then
21706 ac_res="none required"
21707 else
21708 ac_res=-l$ac_lib
21709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21710 fi
cristy8b350f62009-11-15 23:12:43 +000021711 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021712 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021713fi
cristy8b350f62009-11-15 23:12:43 +000021714rm -f core conftest.err conftest.$ac_objext \
21715 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021716 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021717 break
21718fi
21719done
cristyda16f162011-02-19 23:52:17 +000021720if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021721
cristy3ed852e2009-09-05 21:47:34 +000021722else
21723 ac_cv_search_opendir=no
21724fi
21725rm conftest.$ac_ext
21726LIBS=$ac_func_search_save_LIBS
21727fi
cristy8b350f62009-11-15 23:12:43 +000021728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021729$as_echo "$ac_cv_search_opendir" >&6; }
21730ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021731if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21733
21734fi
21735
21736else
cristy8b350f62009-11-15 23:12:43 +000021737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021738$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021739if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021740 $as_echo_n "(cached) " >&6
21741else
21742 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021744/* end confdefs.h. */
21745
21746/* Override any GCC internal prototype to avoid an error.
21747 Use char because int might match the return type of a GCC
21748 builtin and then its argument prototype would still apply. */
21749#ifdef __cplusplus
21750extern "C"
21751#endif
21752char opendir ();
21753int
21754main ()
21755{
21756return opendir ();
21757 ;
21758 return 0;
21759}
21760_ACEOF
21761for ac_lib in '' x; do
21762 if test -z "$ac_lib"; then
21763 ac_res="none required"
21764 else
21765 ac_res=-l$ac_lib
21766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21767 fi
cristy8b350f62009-11-15 23:12:43 +000021768 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021770fi
cristy8b350f62009-11-15 23:12:43 +000021771rm -f core conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021773 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 break
21775fi
21776done
cristyda16f162011-02-19 23:52:17 +000021777if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021778
cristy3ed852e2009-09-05 21:47:34 +000021779else
21780 ac_cv_search_opendir=no
21781fi
21782rm conftest.$ac_ext
21783LIBS=$ac_func_search_save_LIBS
21784fi
cristy8b350f62009-11-15 23:12:43 +000021785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021786$as_echo "$ac_cv_search_opendir" >&6; }
21787ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021788if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21790
21791fi
21792
21793fi
21794
21795
21796# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021797for 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 +000021798do :
21799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21800ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021802 cat >>confdefs.h <<_ACEOF
21803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21804_ACEOF
21805
21806fi
21807
21808done
21809
21810
21811########
21812#
21813# Checks for typedefs, structures, and compiler characteristics.
21814#
21815########
21816
cristy8b350f62009-11-15 23:12:43 +000021817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021818$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021819if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021820 $as_echo_n "(cached) " >&6
21821else
cristy8b350f62009-11-15 23:12:43 +000021822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021823/* end confdefs.h. */
21824
21825#include <stdbool.h>
21826#ifndef bool
21827 "error: bool is not defined"
21828#endif
21829#ifndef false
21830 "error: false is not defined"
21831#endif
21832#if false
21833 "error: false is not 0"
21834#endif
21835#ifndef true
21836 "error: true is not defined"
21837#endif
21838#if true != 1
21839 "error: true is not 1"
21840#endif
21841#ifndef __bool_true_false_are_defined
21842 "error: __bool_true_false_are_defined is not defined"
21843#endif
21844
21845 struct s { _Bool s: 1; _Bool t; } s;
21846
21847 char a[true == 1 ? 1 : -1];
21848 char b[false == 0 ? 1 : -1];
21849 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21850 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021851 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021852 char f[(_Bool) 0.0 == false ? 1 : -1];
21853 char g[true];
21854 char h[sizeof (_Bool)];
21855 char i[sizeof s.t];
21856 enum { j = false, k = true, l = false * true, m = true * 256 };
21857 /* The following fails for
21858 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21859 _Bool n[m];
21860 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21861 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021862 /* Catch a bug in an HP-UX C compiler. See
21863 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21864 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21865 */
21866 _Bool q = true;
21867 _Bool *pq = &q;
21868
21869int
21870main ()
21871{
21872
cristyda16f162011-02-19 23:52:17 +000021873 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021874 *pq |= q;
21875 *pq |= ! q;
21876 /* Refer to every declared value, to avoid compiler optimizations. */
21877 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21878 + !m + !n + !o + !p + !q + !pq);
21879
21880 ;
21881 return 0;
21882}
21883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021884if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021885 ac_cv_header_stdbool_h=yes
21886else
cristy8b350f62009-11-15 23:12:43 +000021887 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021888fi
cristy3ed852e2009-09-05 21:47:34 +000021889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890fi
cristy8b350f62009-11-15 23:12:43 +000021891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021892$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021893ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021894if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021895
21896cat >>confdefs.h <<_ACEOF
21897#define HAVE__BOOL 1
21898_ACEOF
21899
21900
21901fi
21902
21903if test $ac_cv_header_stdbool_h = yes; then
21904
cristy8b350f62009-11-15 23:12:43 +000021905$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021906
21907fi
21908
cristy8b350f62009-11-15 23:12:43 +000021909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021910$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021911if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021912 $as_echo_n "(cached) " >&6
21913else
cristy8b350f62009-11-15 23:12:43 +000021914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021915/* end confdefs.h. */
21916
21917int
21918main ()
21919{
21920
21921volatile int x;
21922int * volatile y = (int *) 0;
21923return !x && !y;
21924 ;
21925 return 0;
21926}
21927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021928if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021929 ac_cv_c_volatile=yes
21930else
cristy8b350f62009-11-15 23:12:43 +000021931 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021932fi
cristy3ed852e2009-09-05 21:47:34 +000021933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934fi
cristy8b350f62009-11-15 23:12:43 +000021935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021936$as_echo "$ac_cv_c_volatile" >&6; }
21937if test $ac_cv_c_volatile = no; then
21938
cristy8b350f62009-11-15 23:12:43 +000021939$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021940
21941fi
21942
cristy8b350f62009-11-15 23:12:43 +000021943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021944$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021945if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021946 $as_echo_n "(cached) " >&6
21947else
cristy8b350f62009-11-15 23:12:43 +000021948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021949/* end confdefs.h. */
21950#define x(y) #y
21951
21952char *s = x(teststring);
21953_ACEOF
21954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021955 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021956 ac_cv_c_stringize=no
21957else
21958 ac_cv_c_stringize=yes
21959fi
21960rm -f conftest*
21961
21962fi
cristy8b350f62009-11-15 23:12:43 +000021963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021964$as_echo "$ac_cv_c_stringize" >&6; }
21965if test $ac_cv_c_stringize = yes; then
21966
cristy8b350f62009-11-15 23:12:43 +000021967$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021968
21969fi
21970
cristy8b350f62009-11-15 23:12:43 +000021971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021972$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021973if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021974 $as_echo_n "(cached) " >&6
21975else
cristy8b350f62009-11-15 23:12:43 +000021976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021977/* end confdefs.h. */
21978#include <sys/types.h>
21979#include <sys/stat.h>
21980
21981#if defined S_ISBLK && defined S_IFDIR
21982extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21983#endif
21984
21985#if defined S_ISBLK && defined S_IFCHR
21986extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21987#endif
21988
21989#if defined S_ISLNK && defined S_IFREG
21990extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21991#endif
21992
21993#if defined S_ISSOCK && defined S_IFREG
21994extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21995#endif
21996
21997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021998if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021999 ac_cv_header_stat_broken=no
22000else
cristy8b350f62009-11-15 23:12:43 +000022001 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022002fi
cristy3ed852e2009-09-05 21:47:34 +000022003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004fi
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo "$ac_cv_header_stat_broken" >&6; }
22007if test $ac_cv_header_stat_broken = yes; then
22008
cristy8b350f62009-11-15 23:12:43 +000022009$as_echo "#define STAT_MACROS_BROKEN 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 whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022015if ${ac_cv_header_time+:} 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#include <sys/types.h>
22021#include <sys/time.h>
22022#include <time.h>
22023
22024int
22025main ()
22026{
22027if ((struct tm *) 0)
22028return 0;
22029 ;
22030 return 0;
22031}
22032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022033if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022034 ac_cv_header_time=yes
22035else
cristy8b350f62009-11-15 23:12:43 +000022036 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022037fi
cristy3ed852e2009-09-05 21:47:34 +000022038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22039fi
cristy8b350f62009-11-15 23:12:43 +000022040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022041$as_echo "$ac_cv_header_time" >&6; }
22042if test $ac_cv_header_time = yes; then
22043
cristy8b350f62009-11-15 23:12:43 +000022044$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022045
22046fi
22047
cristy8b350f62009-11-15 23:12:43 +000022048{ $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 +000022049$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022050if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022051 $as_echo_n "(cached) " >&6
22052else
cristy8b350f62009-11-15 23:12:43 +000022053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022054/* end confdefs.h. */
22055#include <sys/types.h>
22056#include <time.h>
22057
22058int
22059main ()
22060{
22061struct tm tm;
22062 int *p = &tm.tm_sec;
22063 return !p;
22064 ;
22065 return 0;
22066}
22067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022068if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022069 ac_cv_struct_tm=time.h
22070else
cristy8b350f62009-11-15 23:12:43 +000022071 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022072fi
cristy3ed852e2009-09-05 21:47:34 +000022073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074fi
cristy8b350f62009-11-15 23:12:43 +000022075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022076$as_echo "$ac_cv_struct_tm" >&6; }
22077if test $ac_cv_struct_tm = sys/time.h; then
22078
cristy8b350f62009-11-15 23:12:43 +000022079$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022080
22081fi
22082
cristy92703d82010-04-26 00:18:18 +000022083ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22084#include <$ac_cv_struct_tm>
22085
22086"
cristyda16f162011-02-19 23:52:17 +000022087if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022088
22089cat >>confdefs.h <<_ACEOF
22090#define HAVE_STRUCT_TM_TM_ZONE 1
22091_ACEOF
22092
22093
22094fi
22095
22096if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22097
22098$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22099
22100else
22101 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22102"
cristyda16f162011-02-19 23:52:17 +000022103if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022104 ac_have_decl=1
22105else
22106 ac_have_decl=0
22107fi
22108
22109cat >>confdefs.h <<_ACEOF
22110#define HAVE_DECL_TZNAME $ac_have_decl
22111_ACEOF
22112
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22114$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022115if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022116 $as_echo_n "(cached) " >&6
22117else
22118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22119/* end confdefs.h. */
22120#include <time.h>
22121#if !HAVE_DECL_TZNAME
22122extern char *tzname[];
22123#endif
22124
22125int
22126main ()
22127{
22128return tzname[0][0];
22129 ;
22130 return 0;
22131}
22132_ACEOF
22133if ac_fn_c_try_link "$LINENO"; then :
22134 ac_cv_var_tzname=yes
22135else
22136 ac_cv_var_tzname=no
22137fi
22138rm -f core conftest.err conftest.$ac_objext \
22139 conftest$ac_exeext conftest.$ac_ext
22140fi
22141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22142$as_echo "$ac_cv_var_tzname" >&6; }
22143 if test $ac_cv_var_tzname = yes; then
22144
22145$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22146
22147 fi
22148fi
22149
cristy8b350f62009-11-15 23:12:43 +000022150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022151$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022152if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022153 $as_echo_n "(cached) " >&6
22154else
22155 echo '#! /bin/cat
22156exit 69
22157' >conftest
22158chmod u+x conftest
22159(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22160if test $? -ne 69; then
22161 ac_cv_sys_interpreter=yes
22162else
22163 ac_cv_sys_interpreter=no
22164fi
22165rm -f conftest
22166fi
cristy8b350f62009-11-15 23:12:43 +000022167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022168$as_echo "$ac_cv_sys_interpreter" >&6; }
22169interpval=$ac_cv_sys_interpreter
22170
22171
cristy3ed852e2009-09-05 21:47:34 +000022172# If the C compiler supports the keyword inline, do nothing. Otherwise
22173# define inline to __inline__ or __inline if it accepts one of those,
22174# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022176$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022177if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022178 $as_echo_n "(cached) " >&6
22179else
22180 ac_cv_c_inline=no
22181for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022183/* end confdefs.h. */
22184#ifndef __cplusplus
22185typedef int foo_t;
22186static $ac_kw foo_t static_foo () {return 0; }
22187$ac_kw foo_t foo () {return 0; }
22188#endif
22189
22190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022191if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022192 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022193fi
cristy3ed852e2009-09-05 21:47:34 +000022194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 test "$ac_cv_c_inline" != no && break
22196done
22197
22198fi
cristy8b350f62009-11-15 23:12:43 +000022199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022200$as_echo "$ac_cv_c_inline" >&6; }
22201
cristy3ed852e2009-09-05 21:47:34 +000022202case $ac_cv_c_inline in
22203 inline | yes) ;;
22204 *)
22205 case $ac_cv_c_inline in
22206 no) ac_val=;;
22207 *) ac_val=$ac_cv_c_inline;;
22208 esac
22209 cat >>confdefs.h <<_ACEOF
22210#ifndef __cplusplus
22211#define inline $ac_val
22212#endif
22213_ACEOF
22214 ;;
22215esac
22216
22217
22218# If the C compiler supports the keyword restrict, do nothing. Otherwise
22219# define restrict to __restrict__ or __restrict if it accepts one of those,
22220# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022222$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022223if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022224 $as_echo_n "(cached) " >&6
22225else
22226 ac_cv_c_restrict=no
22227 # The order here caters to the fact that C++ does not require restrict.
22228 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022230/* end confdefs.h. */
22231typedef int * int_ptr;
22232 int foo (int_ptr $ac_kw ip) {
22233 return ip[0];
22234 }
22235int
22236main ()
22237{
22238int s[1];
22239 int * $ac_kw t = s;
22240 t[0] = 0;
22241 return foo(t)
22242 ;
22243 return 0;
22244}
22245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022246if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022247 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022248fi
cristy3ed852e2009-09-05 21:47:34 +000022249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 test "$ac_cv_c_restrict" != no && break
22251 done
22252
22253fi
cristy8b350f62009-11-15 23:12:43 +000022254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022255$as_echo "$ac_cv_c_restrict" >&6; }
22256
cristy3ed852e2009-09-05 21:47:34 +000022257 case $ac_cv_c_restrict in
22258 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022259 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022260 ;;
22261 *) cat >>confdefs.h <<_ACEOF
22262#define restrict $ac_cv_c_restrict
22263_ACEOF
22264 ;;
22265 esac
22266
22267
22268# If words are stored with the most significant byte first (like
22269# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022271$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022272if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022273 $as_echo_n "(cached) " >&6
22274else
22275 ac_cv_c_bigendian=unknown
22276 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022278/* end confdefs.h. */
22279#ifndef __APPLE_CC__
22280 not a universal capable compiler
22281 #endif
22282 typedef int dummy;
22283
22284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022285if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022286
22287 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022288 # there are at least two -arch flags with different values.
22289 ac_arch=
22290 ac_prev=
22291 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22292 if test -n "$ac_prev"; then
22293 case $ac_word in
22294 i?86 | x86_64 | ppc | ppc64)
22295 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22296 ac_arch=$ac_word
22297 else
22298 ac_cv_c_bigendian=universal
22299 break
22300 fi
22301 ;;
22302 esac
22303 ac_prev=
22304 elif test "x$ac_word" = "x-arch"; then
22305 ac_prev=arch
22306 fi
22307 done
cristy3ed852e2009-09-05 21:47:34 +000022308fi
cristy3ed852e2009-09-05 21:47:34 +000022309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310 if test $ac_cv_c_bigendian = unknown; then
22311 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022313/* end confdefs.h. */
22314#include <sys/types.h>
22315 #include <sys/param.h>
22316
22317int
22318main ()
22319{
22320#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22321 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22322 && LITTLE_ENDIAN)
22323 bogus endian macros
22324 #endif
22325
22326 ;
22327 return 0;
22328}
22329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022330if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022331 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022333/* end confdefs.h. */
22334#include <sys/types.h>
22335 #include <sys/param.h>
22336
22337int
22338main ()
22339{
22340#if BYTE_ORDER != BIG_ENDIAN
22341 not big endian
22342 #endif
22343
22344 ;
22345 return 0;
22346}
22347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022348if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022349 ac_cv_c_bigendian=yes
22350else
cristy8b350f62009-11-15 23:12:43 +000022351 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022352fi
cristy3ed852e2009-09-05 21:47:34 +000022353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022354fi
cristy3ed852e2009-09-05 21:47:34 +000022355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22356 fi
22357 if test $ac_cv_c_bigendian = unknown; then
22358 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022360/* end confdefs.h. */
22361#include <limits.h>
22362
22363int
22364main ()
22365{
22366#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22367 bogus endian macros
22368 #endif
22369
22370 ;
22371 return 0;
22372}
22373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022374if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022375 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022377/* end confdefs.h. */
22378#include <limits.h>
22379
22380int
22381main ()
22382{
22383#ifndef _BIG_ENDIAN
22384 not big endian
22385 #endif
22386
22387 ;
22388 return 0;
22389}
22390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022391if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022392 ac_cv_c_bigendian=yes
22393else
cristy8b350f62009-11-15 23:12:43 +000022394 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022395fi
cristy3ed852e2009-09-05 21:47:34 +000022396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022397fi
cristy3ed852e2009-09-05 21:47:34 +000022398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399 fi
22400 if test $ac_cv_c_bigendian = unknown; then
22401 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022402 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022403 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022405/* end confdefs.h. */
22406short int ascii_mm[] =
22407 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22408 short int ascii_ii[] =
22409 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22410 int use_ascii (int i) {
22411 return ascii_mm[i] + ascii_ii[i];
22412 }
22413 short int ebcdic_ii[] =
22414 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22415 short int ebcdic_mm[] =
22416 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22417 int use_ebcdic (int i) {
22418 return ebcdic_mm[i] + ebcdic_ii[i];
22419 }
22420 extern int foo;
22421
22422int
22423main ()
22424{
22425return use_ascii (foo) == use_ebcdic (foo);
22426 ;
22427 return 0;
22428}
22429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022430if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022431 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22432 ac_cv_c_bigendian=yes
22433 fi
22434 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22435 if test "$ac_cv_c_bigendian" = unknown; then
22436 ac_cv_c_bigendian=no
22437 else
22438 # finding both strings is unlikely to happen, but who knows?
22439 ac_cv_c_bigendian=unknown
22440 fi
22441 fi
cristy3ed852e2009-09-05 21:47:34 +000022442fi
cristy3ed852e2009-09-05 21:47:34 +000022443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444else
cristy8b350f62009-11-15 23:12:43 +000022445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022446/* end confdefs.h. */
22447$ac_includes_default
22448int
22449main ()
22450{
22451
22452 /* Are we little or big endian? From Harbison&Steele. */
22453 union
22454 {
22455 long int l;
22456 char c[sizeof (long int)];
22457 } u;
22458 u.l = 1;
22459 return u.c[sizeof (long int) - 1] == 1;
22460
22461 ;
22462 return 0;
22463}
22464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022465if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022466 ac_cv_c_bigendian=no
22467else
cristy8b350f62009-11-15 23:12:43 +000022468 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022469fi
cristy8b350f62009-11-15 23:12:43 +000022470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22471 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022472fi
22473
cristy3ed852e2009-09-05 21:47:34 +000022474 fi
22475fi
cristy8b350f62009-11-15 23:12:43 +000022476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022477$as_echo "$ac_cv_c_bigendian" >&6; }
22478 case $ac_cv_c_bigendian in #(
22479 yes)
cristy8b350f62009-11-15 23:12:43 +000022480 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022481;; #(
22482 no)
22483 ;; #(
22484 universal)
22485
cristy8b350f62009-11-15 23:12:43 +000022486$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022487
22488 ;; #(
22489 *)
cristy98dddb52010-11-04 00:30:15 +000022490 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022491 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022492 esac
22493
22494
cristy501c8042011-05-26 17:46:28 +000022495# Define to a suitable type, if standard headers do not define it.
22496ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22497case $ac_cv_c_int8_t in #(
22498 no|yes) ;; #(
22499 *)
cristy3ed852e2009-09-05 21:47:34 +000022500
22501cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022502#define int8_t $ac_cv_c_int8_t
22503_ACEOF
22504;;
22505esac
22506
22507ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22508case $ac_cv_c_int16_t in #(
22509 no|yes) ;; #(
22510 *)
22511
22512cat >>confdefs.h <<_ACEOF
22513#define int16_t $ac_cv_c_int16_t
22514_ACEOF
22515;;
22516esac
22517
22518ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22519case $ac_cv_c_int32_t in #(
22520 no|yes) ;; #(
22521 *)
22522
22523cat >>confdefs.h <<_ACEOF
22524#define int32_t $ac_cv_c_int32_t
22525_ACEOF
22526;;
22527esac
22528
22529ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22530case $ac_cv_c_int64_t in #(
22531 no|yes) ;; #(
22532 *)
22533
22534cat >>confdefs.h <<_ACEOF
22535#define int64_t $ac_cv_c_int64_t
22536_ACEOF
22537;;
22538esac
22539
22540
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22542$as_echo_n "checking for long long int... " >&6; }
22543if ${ac_cv_type_long_long_int+:} false; then :
22544 $as_echo_n "(cached) " >&6
22545else
22546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547/* end confdefs.h. */
22548
22549 /* For now, do not test the preprocessor; as of 2007 there are too many
22550 implementations with broken preprocessors. Perhaps this can
22551 be revisited in 2012. In the meantime, code should not expect
22552 #if to work with literals wider than 32 bits. */
22553 /* Test literals. */
22554 long long int ll = 9223372036854775807ll;
22555 long long int nll = -9223372036854775807LL;
22556 unsigned long long int ull = 18446744073709551615ULL;
22557 /* Test constant expressions. */
22558 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22559 ? 1 : -1)];
22560 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22561 ? 1 : -1)];
22562 int i = 63;
22563int
22564main ()
22565{
22566/* Test availability of runtime routines for shift and division. */
22567 long long int llmax = 9223372036854775807ll;
22568 unsigned long long int ullmax = 18446744073709551615ull;
22569 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22570 | (llmax / ll) | (llmax % ll)
22571 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22572 | (ullmax / ull) | (ullmax % ull));
22573 ;
22574 return 0;
22575}
22576
22577_ACEOF
22578if ac_fn_c_try_link "$LINENO"; then :
22579 if test "$cross_compiling" = yes; then :
22580 ac_cv_type_long_long_int=yes
22581else
22582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22583/* end confdefs.h. */
22584#include <limits.h>
22585 #ifndef LLONG_MAX
22586 # define HALF \
22587 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22588 # define LLONG_MAX (HALF - 1 + HALF)
22589 #endif
22590int
22591main ()
22592{
22593long long int n = 1;
22594 int i;
22595 for (i = 0; ; i++)
22596 {
22597 long long int m = n << i;
22598 if (m >> i != n)
22599 return 1;
22600 if (LLONG_MAX / 2 < m)
22601 break;
22602 }
22603 return 0;
22604 ;
22605 return 0;
22606}
22607_ACEOF
22608if ac_fn_c_try_run "$LINENO"; then :
22609 ac_cv_type_long_long_int=yes
22610else
22611 ac_cv_type_long_long_int=no
22612fi
22613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22614 conftest.$ac_objext conftest.beam conftest.$ac_ext
22615fi
22616
22617else
22618 ac_cv_type_long_long_int=no
22619fi
22620rm -f core conftest.err conftest.$ac_objext \
22621 conftest$ac_exeext conftest.$ac_ext
22622fi
22623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22624$as_echo "$ac_cv_type_long_long_int" >&6; }
22625 if test $ac_cv_type_long_long_int = yes; then
22626
22627$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22628
22629 fi
22630
22631
22632
22633 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22634if test "x$ac_cv_type_intmax_t" = xyes; then :
22635
22636$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22637
22638else
22639 test $ac_cv_type_long_long_int = yes \
22640 && ac_type='long long int' \
22641 || ac_type='long int'
22642
22643cat >>confdefs.h <<_ACEOF
22644#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022645_ACEOF
22646
22647fi
22648
22649
cristy501c8042011-05-26 17:46:28 +000022650
22651 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22652if test "x$ac_cv_type_intptr_t" = xyes; then :
22653
22654$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022655
cristy3ed852e2009-09-05 21:47:34 +000022656else
cristy501c8042011-05-26 17:46:28 +000022657 for ac_type in 'int' 'long int' 'long long int'; do
22658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659/* end confdefs.h. */
22660$ac_includes_default
22661int
22662main ()
22663{
22664static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22665test_array [0] = 0
22666
22667 ;
22668 return 0;
22669}
22670_ACEOF
22671if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022672
22673cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022674#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022675_ACEOF
22676
cristy501c8042011-05-26 17:46:28 +000022677 ac_type=
22678fi
22679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22680 test -z "$ac_type" && break
22681 done
cristy3ed852e2009-09-05 21:47:34 +000022682fi
22683
22684
cristy3ed852e2009-09-05 21:47:34 +000022685
cristy501c8042011-05-26 17:46:28 +000022686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22687$as_echo_n "checking for long double... " >&6; }
22688if ${ac_cv_type_long_double+:} false; then :
22689 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022690else
cristy501c8042011-05-26 17:46:28 +000022691 if test "$GCC" = yes; then
22692 ac_cv_type_long_double=yes
22693 else
22694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695/* end confdefs.h. */
22696/* The Stardent Vistra knows sizeof (long double), but does
22697 not support it. */
22698 long double foo = 0.0L;
22699int
22700main ()
22701{
22702static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22703 sizeof (double) <= sizeof (long double))];
22704test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022705
cristy501c8042011-05-26 17:46:28 +000022706 ;
22707 return 0;
22708}
cristy3ed852e2009-09-05 21:47:34 +000022709_ACEOF
cristy501c8042011-05-26 17:46:28 +000022710if ac_fn_c_try_compile "$LINENO"; then :
22711 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022712else
cristy501c8042011-05-26 17:46:28 +000022713 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022714fi
cristy501c8042011-05-26 17:46:28 +000022715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 fi
cristy3ed852e2009-09-05 21:47:34 +000022717fi
cristy501c8042011-05-26 17:46:28 +000022718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22719$as_echo "$ac_cv_type_long_double" >&6; }
22720 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022721
cristy501c8042011-05-26 17:46:28 +000022722$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022723
cristy501c8042011-05-26 17:46:28 +000022724 fi
22725
cristy3ed852e2009-09-05 21:47:34 +000022726
cristy8b350f62009-11-15 23:12:43 +000022727 { $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 +000022728$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022729if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022730 $as_echo_n "(cached) " >&6
22731else
cristy8b350f62009-11-15 23:12:43 +000022732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022733/* end confdefs.h. */
22734#include <float.h>
22735 long double const a[] =
22736 {
22737 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22738 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22739 };
22740 long double
22741 f (long double x)
22742 {
22743 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22744 + (x ? f (x) : 'c'));
22745 }
22746
22747int
22748main ()
22749{
22750static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22751 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22752 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22753 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22754 && (int) LDBL_EPSILON == 0
22755 )];
22756test_array [0] = 0
22757
22758 ;
22759 return 0;
22760}
22761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022762if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022763 ac_cv_type_long_double_wider=yes
22764else
cristy8b350f62009-11-15 23:12:43 +000022765 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022766fi
cristy3ed852e2009-09-05 21:47:34 +000022767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768fi
cristy8b350f62009-11-15 23:12:43 +000022769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022770$as_echo "$ac_cv_type_long_double_wider" >&6; }
22771 if test $ac_cv_type_long_double_wider = yes; then
22772
cristy8b350f62009-11-15 23:12:43 +000022773$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022774
22775 fi
22776
22777
cristy501c8042011-05-26 17:46:28 +000022778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22779$as_echo_n "checking for long long int... " >&6; }
22780if ${ac_cv_type_long_long_int+:} false; then :
22781 $as_echo_n "(cached) " >&6
22782else
22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784/* end confdefs.h. */
22785
22786 /* For now, do not test the preprocessor; as of 2007 there are too many
22787 implementations with broken preprocessors. Perhaps this can
22788 be revisited in 2012. In the meantime, code should not expect
22789 #if to work with literals wider than 32 bits. */
22790 /* Test literals. */
22791 long long int ll = 9223372036854775807ll;
22792 long long int nll = -9223372036854775807LL;
22793 unsigned long long int ull = 18446744073709551615ULL;
22794 /* Test constant expressions. */
22795 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22796 ? 1 : -1)];
22797 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22798 ? 1 : -1)];
22799 int i = 63;
22800int
22801main ()
22802{
22803/* Test availability of runtime routines for shift and division. */
22804 long long int llmax = 9223372036854775807ll;
22805 unsigned long long int ullmax = 18446744073709551615ull;
22806 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22807 | (llmax / ll) | (llmax % ll)
22808 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22809 | (ullmax / ull) | (ullmax % ull));
22810 ;
22811 return 0;
22812}
22813
22814_ACEOF
22815if ac_fn_c_try_link "$LINENO"; then :
22816 if test "$cross_compiling" = yes; then :
22817 ac_cv_type_long_long_int=yes
22818else
22819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820/* end confdefs.h. */
22821#include <limits.h>
22822 #ifndef LLONG_MAX
22823 # define HALF \
22824 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22825 # define LLONG_MAX (HALF - 1 + HALF)
22826 #endif
22827int
22828main ()
22829{
22830long long int n = 1;
22831 int i;
22832 for (i = 0; ; i++)
22833 {
22834 long long int m = n << i;
22835 if (m >> i != n)
22836 return 1;
22837 if (LLONG_MAX / 2 < m)
22838 break;
22839 }
22840 return 0;
22841 ;
22842 return 0;
22843}
22844_ACEOF
22845if ac_fn_c_try_run "$LINENO"; then :
22846 ac_cv_type_long_long_int=yes
22847else
22848 ac_cv_type_long_long_int=no
22849fi
22850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22851 conftest.$ac_objext conftest.beam conftest.$ac_ext
22852fi
22853
22854else
22855 ac_cv_type_long_long_int=no
22856fi
22857rm -f core conftest.err conftest.$ac_objext \
22858 conftest$ac_exeext conftest.$ac_ext
22859fi
22860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22861$as_echo "$ac_cv_type_long_long_int" >&6; }
22862 if test $ac_cv_type_long_long_int = yes; then
22863
22864$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22865
22866 fi
22867
22868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22869$as_echo_n "checking for mbstate_t... " >&6; }
22870if ${ac_cv_type_mbstate_t+:} false; then :
22871 $as_echo_n "(cached) " >&6
22872else
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874/* end confdefs.h. */
22875$ac_includes_default
22876# include <wchar.h>
22877int
22878main ()
22879{
22880mbstate_t x; return sizeof x;
22881 ;
22882 return 0;
22883}
22884_ACEOF
22885if ac_fn_c_try_compile "$LINENO"; then :
22886 ac_cv_type_mbstate_t=yes
22887else
22888 ac_cv_type_mbstate_t=no
22889fi
22890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22891fi
22892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22893$as_echo "$ac_cv_type_mbstate_t" >&6; }
22894 if test $ac_cv_type_mbstate_t = yes; then
22895
22896$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22897
22898 else
22899
22900$as_echo "#define mbstate_t int" >>confdefs.h
22901
22902 fi
22903ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22904if test "x$ac_cv_type_mode_t" = xyes; then :
22905
22906else
22907
22908cat >>confdefs.h <<_ACEOF
22909#define mode_t int
22910_ACEOF
22911
22912fi
22913
22914ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22915if test "x$ac_cv_type_off_t" = xyes; then :
22916
22917else
22918
22919cat >>confdefs.h <<_ACEOF
22920#define off_t long int
22921_ACEOF
22922
22923fi
22924
22925ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22926if test "x$ac_cv_type_pid_t" = xyes; then :
22927
22928else
22929
22930cat >>confdefs.h <<_ACEOF
22931#define pid_t int
22932_ACEOF
22933
22934fi
22935
22936ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22937if test "x$ac_cv_type_size_t" = xyes; then :
22938
22939else
22940
22941cat >>confdefs.h <<_ACEOF
22942#define size_t unsigned int
22943_ACEOF
22944
22945fi
22946
22947ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22948if test "x$ac_cv_type_ssize_t" = xyes; then :
22949
22950else
22951
22952cat >>confdefs.h <<_ACEOF
22953#define ssize_t int
22954_ACEOF
22955
22956fi
22957
22958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22959$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22960if ${ac_cv_type_uid_t+:} false; then :
22961 $as_echo_n "(cached) " >&6
22962else
22963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964/* end confdefs.h. */
22965#include <sys/types.h>
22966
22967_ACEOF
22968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22969 $EGREP "uid_t" >/dev/null 2>&1; then :
22970 ac_cv_type_uid_t=yes
22971else
22972 ac_cv_type_uid_t=no
22973fi
22974rm -f conftest*
22975
22976fi
22977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22978$as_echo "$ac_cv_type_uid_t" >&6; }
22979if test $ac_cv_type_uid_t = no; then
22980
22981$as_echo "#define uid_t int" >>confdefs.h
22982
22983
22984$as_echo "#define gid_t int" >>confdefs.h
22985
22986fi
22987
22988ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22989case $ac_cv_c_uint8_t in #(
22990 no|yes) ;; #(
22991 *)
22992
22993$as_echo "#define _UINT8_T 1" >>confdefs.h
22994
22995
22996cat >>confdefs.h <<_ACEOF
22997#define uint8_t $ac_cv_c_uint8_t
22998_ACEOF
22999;;
23000 esac
23001
23002ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23003case $ac_cv_c_uint16_t in #(
23004 no|yes) ;; #(
23005 *)
23006
23007
23008cat >>confdefs.h <<_ACEOF
23009#define uint16_t $ac_cv_c_uint16_t
23010_ACEOF
23011;;
23012 esac
23013
23014ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23015case $ac_cv_c_uint32_t in #(
23016 no|yes) ;; #(
23017 *)
23018
23019$as_echo "#define _UINT32_T 1" >>confdefs.h
23020
23021
23022cat >>confdefs.h <<_ACEOF
23023#define uint32_t $ac_cv_c_uint32_t
23024_ACEOF
23025;;
23026 esac
23027
23028ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23029case $ac_cv_c_uint64_t in #(
23030 no|yes) ;; #(
23031 *)
23032
23033$as_echo "#define _UINT64_T 1" >>confdefs.h
23034
23035
23036cat >>confdefs.h <<_ACEOF
23037#define uint64_t $ac_cv_c_uint64_t
23038_ACEOF
23039;;
23040 esac
23041
23042
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23044$as_echo_n "checking for unsigned long long int... " >&6; }
23045if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23046 $as_echo_n "(cached) " >&6
23047else
23048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049/* end confdefs.h. */
23050
23051 /* For now, do not test the preprocessor; as of 2007 there are too many
23052 implementations with broken preprocessors. Perhaps this can
23053 be revisited in 2012. In the meantime, code should not expect
23054 #if to work with literals wider than 32 bits. */
23055 /* Test literals. */
23056 long long int ll = 9223372036854775807ll;
23057 long long int nll = -9223372036854775807LL;
23058 unsigned long long int ull = 18446744073709551615ULL;
23059 /* Test constant expressions. */
23060 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23061 ? 1 : -1)];
23062 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23063 ? 1 : -1)];
23064 int i = 63;
23065int
23066main ()
23067{
23068/* Test availability of runtime routines for shift and division. */
23069 long long int llmax = 9223372036854775807ll;
23070 unsigned long long int ullmax = 18446744073709551615ull;
23071 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23072 | (llmax / ll) | (llmax % ll)
23073 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23074 | (ullmax / ull) | (ullmax % ull));
23075 ;
23076 return 0;
23077}
23078
23079_ACEOF
23080if ac_fn_c_try_link "$LINENO"; then :
23081 ac_cv_type_unsigned_long_long_int=yes
23082else
23083 ac_cv_type_unsigned_long_long_int=no
23084fi
23085rm -f core conftest.err conftest.$ac_objext \
23086 conftest$ac_exeext conftest.$ac_ext
23087fi
23088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23089$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23090 if test $ac_cv_type_unsigned_long_long_int = yes; then
23091
23092$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23093
23094 fi
23095
23096
23097
23098 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23099if test "x$ac_cv_type_uintmax_t" = xyes; then :
23100
23101$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23102
23103else
23104 test $ac_cv_type_unsigned_long_long_int = yes \
23105 && ac_type='unsigned long long int' \
23106 || ac_type='unsigned long int'
23107
23108cat >>confdefs.h <<_ACEOF
23109#define uintmax_t $ac_type
23110_ACEOF
23111
23112fi
23113
23114
23115
23116 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23117if test "x$ac_cv_type_uintptr_t" = xyes; then :
23118
23119$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23120
23121else
23122 for ac_type in 'unsigned int' 'unsigned long int' \
23123 'unsigned long long int'; do
23124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23125/* end confdefs.h. */
23126$ac_includes_default
23127int
23128main ()
23129{
23130static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23131test_array [0] = 0
23132
23133 ;
23134 return 0;
23135}
23136_ACEOF
23137if ac_fn_c_try_compile "$LINENO"; then :
23138
23139cat >>confdefs.h <<_ACEOF
23140#define uintptr_t $ac_type
23141_ACEOF
23142
23143 ac_type=
23144fi
23145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 test -z "$ac_type" && break
23147 done
23148fi
23149
23150
23151
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23153$as_echo_n "checking for unsigned long long int... " >&6; }
23154if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23155 $as_echo_n "(cached) " >&6
23156else
23157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23158/* end confdefs.h. */
23159
23160 /* For now, do not test the preprocessor; as of 2007 there are too many
23161 implementations with broken preprocessors. Perhaps this can
23162 be revisited in 2012. In the meantime, code should not expect
23163 #if to work with literals wider than 32 bits. */
23164 /* Test literals. */
23165 long long int ll = 9223372036854775807ll;
23166 long long int nll = -9223372036854775807LL;
23167 unsigned long long int ull = 18446744073709551615ULL;
23168 /* Test constant expressions. */
23169 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23170 ? 1 : -1)];
23171 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23172 ? 1 : -1)];
23173 int i = 63;
23174int
23175main ()
23176{
23177/* Test availability of runtime routines for shift and division. */
23178 long long int llmax = 9223372036854775807ll;
23179 unsigned long long int ullmax = 18446744073709551615ull;
23180 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23181 | (llmax / ll) | (llmax % ll)
23182 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23183 | (ullmax / ull) | (ullmax % ull));
23184 ;
23185 return 0;
23186}
23187
23188_ACEOF
23189if ac_fn_c_try_link "$LINENO"; then :
23190 ac_cv_type_unsigned_long_long_int=yes
23191else
23192 ac_cv_type_unsigned_long_long_int=no
23193fi
23194rm -f core conftest.err conftest.$ac_objext \
23195 conftest$ac_exeext conftest.$ac_ext
23196fi
23197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23198$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23199 if test $ac_cv_type_unsigned_long_long_int = yes; then
23200
23201$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23202
23203 fi
23204
23205
cristy3ed852e2009-09-05 21:47:34 +000023206# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23207# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023209$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023210if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023211 $as_echo_n "(cached) " >&6
23212else
cristy8b350f62009-11-15 23:12:43 +000023213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023214/* end confdefs.h. */
23215$ac_includes_default
23216int
23217main ()
23218{
23219static int test_array [1 - 2 * !(((char) -1) < 0)];
23220test_array [0] = 0
23221
23222 ;
23223 return 0;
23224}
23225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023227 ac_cv_c_char_unsigned=no
23228else
cristy8b350f62009-11-15 23:12:43 +000023229 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023230fi
cristy3ed852e2009-09-05 21:47:34 +000023231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23232fi
cristy8b350f62009-11-15 23:12:43 +000023233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023234$as_echo "$ac_cv_c_char_unsigned" >&6; }
23235if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023236 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023237
23238fi
23239
23240
23241# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23242# The cast to long int works around a bug in the HP C Compiler
23243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23245# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023247$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023248if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023249 $as_echo_n "(cached) " >&6
23250else
cristy8b350f62009-11-15 23:12:43 +000023251 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 +000023252
cristy3ed852e2009-09-05 21:47:34 +000023253else
cristy8b350f62009-11-15 23:12:43 +000023254 if test "$ac_cv_type_signed_short" = yes; then
23255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023257as_fn_error 77 "cannot compute sizeof (signed short)
23258See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023259 else
23260 ac_cv_sizeof_signed_short=0
23261 fi
23262fi
cristy8b350f62009-11-15 23:12:43 +000023263
cristy3ed852e2009-09-05 21:47:34 +000023264fi
cristy8b350f62009-11-15 23:12:43 +000023265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023266$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23267
23268
23269
23270cat >>confdefs.h <<_ACEOF
23271#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23272_ACEOF
23273
23274
23275
23276# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23277# The cast to long int works around a bug in the HP C Compiler
23278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23280# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023282$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023283if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023284 $as_echo_n "(cached) " >&6
23285else
cristy8b350f62009-11-15 23:12:43 +000023286 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 +000023287
cristy3ed852e2009-09-05 21:47:34 +000023288else
cristy8b350f62009-11-15 23:12:43 +000023289 if test "$ac_cv_type_unsigned_short" = yes; then
23290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023292as_fn_error 77 "cannot compute sizeof (unsigned short)
23293See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023294 else
23295 ac_cv_sizeof_unsigned_short=0
23296 fi
23297fi
cristy8b350f62009-11-15 23:12:43 +000023298
cristy3ed852e2009-09-05 21:47:34 +000023299fi
cristy8b350f62009-11-15 23:12:43 +000023300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023301$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23302
23303
23304
23305cat >>confdefs.h <<_ACEOF
23306#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23307_ACEOF
23308
23309
23310
23311# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23312# The cast to long int works around a bug in the HP C Compiler
23313# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23314# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23315# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023317$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023318if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023319 $as_echo_n "(cached) " >&6
23320else
cristy8b350f62009-11-15 23:12:43 +000023321 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 +000023322
cristy3ed852e2009-09-05 21:47:34 +000023323else
cristy8b350f62009-11-15 23:12:43 +000023324 if test "$ac_cv_type_signed_int" = yes; then
23325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023327as_fn_error 77 "cannot compute sizeof (signed int)
23328See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023329 else
23330 ac_cv_sizeof_signed_int=0
23331 fi
23332fi
cristy8b350f62009-11-15 23:12:43 +000023333
cristy3ed852e2009-09-05 21:47:34 +000023334fi
cristy8b350f62009-11-15 23:12:43 +000023335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023336$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23337
23338
23339
23340cat >>confdefs.h <<_ACEOF
23341#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23342_ACEOF
23343
23344
23345
23346# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23347# The cast to long int works around a bug in the HP C Compiler
23348# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23349# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23350# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023352$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023353if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023354 $as_echo_n "(cached) " >&6
23355else
cristy8b350f62009-11-15 23:12:43 +000023356 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 +000023357
cristy3ed852e2009-09-05 21:47:34 +000023358else
cristy8b350f62009-11-15 23:12:43 +000023359 if test "$ac_cv_type_unsigned_int" = yes; then
23360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023362as_fn_error 77 "cannot compute sizeof (unsigned int)
23363See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023364 else
23365 ac_cv_sizeof_unsigned_int=0
23366 fi
23367fi
cristy8b350f62009-11-15 23:12:43 +000023368
cristy3ed852e2009-09-05 21:47:34 +000023369fi
cristy8b350f62009-11-15 23:12:43 +000023370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023371$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23372
23373
23374
23375cat >>confdefs.h <<_ACEOF
23376#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23377_ACEOF
23378
23379
23380
23381# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23382# The cast to long int works around a bug in the HP C Compiler
23383# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23384# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23385# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023387$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023388if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023389 $as_echo_n "(cached) " >&6
23390else
cristy8b350f62009-11-15 23:12:43 +000023391 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 +000023392
cristy3ed852e2009-09-05 21:47:34 +000023393else
cristy8b350f62009-11-15 23:12:43 +000023394 if test "$ac_cv_type_signed_long" = yes; then
23395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023397as_fn_error 77 "cannot compute sizeof (signed long)
23398See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023399 else
23400 ac_cv_sizeof_signed_long=0
23401 fi
23402fi
cristy8b350f62009-11-15 23:12:43 +000023403
cristy3ed852e2009-09-05 21:47:34 +000023404fi
cristy8b350f62009-11-15 23:12:43 +000023405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023406$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23407
23408
23409
23410cat >>confdefs.h <<_ACEOF
23411#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23412_ACEOF
23413
23414
23415
23416# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23417# The cast to long int works around a bug in the HP C Compiler
23418# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23419# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23420# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023422$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023423if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023424 $as_echo_n "(cached) " >&6
23425else
cristy8b350f62009-11-15 23:12:43 +000023426 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 +000023427
cristy3ed852e2009-09-05 21:47:34 +000023428else
cristy8b350f62009-11-15 23:12:43 +000023429 if test "$ac_cv_type_unsigned_long" = yes; then
23430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023432as_fn_error 77 "cannot compute sizeof (unsigned long)
23433See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023434 else
23435 ac_cv_sizeof_unsigned_long=0
23436 fi
23437fi
cristy8b350f62009-11-15 23:12:43 +000023438
cristy3ed852e2009-09-05 21:47:34 +000023439fi
cristy8b350f62009-11-15 23:12:43 +000023440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023441$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23442
23443
23444
23445cat >>confdefs.h <<_ACEOF
23446#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23447_ACEOF
23448
23449
23450
23451# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23452# 'signed long long' is not supported then the value defined is zero.
23453# The cast to long int works around a bug in the HP C Compiler
23454# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23455# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23456# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023459if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023460 $as_echo_n "(cached) " >&6
23461else
cristy8b350f62009-11-15 23:12:43 +000023462 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023463
cristy3ed852e2009-09-05 21:47:34 +000023464else
cristy8b350f62009-11-15 23:12:43 +000023465 if test "$ac_cv_type_signed_long_long" = yes; then
23466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023468as_fn_error 77 "cannot compute sizeof (signed long long)
23469See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023470 else
23471 ac_cv_sizeof_signed_long_long=0
23472 fi
23473fi
cristy8b350f62009-11-15 23:12:43 +000023474
cristy3ed852e2009-09-05 21:47:34 +000023475fi
cristy8b350f62009-11-15 23:12:43 +000023476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023477$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23478
23479
23480
23481cat >>confdefs.h <<_ACEOF
23482#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23483_ACEOF
23484
23485
23486
23487# Obtain size of a 'unsigned long long' and define as
23488# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23489# supported then the value defined is zero.
23490# The cast to long int works around a bug in the HP C Compiler
23491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23493# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023495$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023496if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023497 $as_echo_n "(cached) " >&6
23498else
cristy8b350f62009-11-15 23:12:43 +000023499 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 +000023500
cristy3ed852e2009-09-05 21:47:34 +000023501else
cristy8b350f62009-11-15 23:12:43 +000023502 if test "$ac_cv_type_unsigned_long_long" = yes; then
23503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023505as_fn_error 77 "cannot compute sizeof (unsigned long long)
23506See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023507 else
23508 ac_cv_sizeof_unsigned_long_long=0
23509 fi
23510fi
cristy8b350f62009-11-15 23:12:43 +000023511
cristy3ed852e2009-09-05 21:47:34 +000023512fi
cristy8b350f62009-11-15 23:12:43 +000023513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23515
23516
23517
23518cat >>confdefs.h <<_ACEOF
23519#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23520_ACEOF
23521
23522
23523
23524# Obtain size of off_t and define as SIZEOF_OFF_T
23525# The cast to long int works around a bug in the HP C Compiler
23526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23528# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023530$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023531if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023532 $as_echo_n "(cached) " >&6
23533else
cristy8b350f62009-11-15 23:12:43 +000023534 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 +000023535
cristy3ed852e2009-09-05 21:47:34 +000023536else
cristy8b350f62009-11-15 23:12:43 +000023537 if test "$ac_cv_type_off_t" = yes; then
23538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023540as_fn_error 77 "cannot compute sizeof (off_t)
23541See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023542 else
23543 ac_cv_sizeof_off_t=0
23544 fi
23545fi
cristy8b350f62009-11-15 23:12:43 +000023546
cristy3ed852e2009-09-05 21:47:34 +000023547fi
cristy8b350f62009-11-15 23:12:43 +000023548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023549$as_echo "$ac_cv_sizeof_off_t" >&6; }
23550
23551
23552
23553cat >>confdefs.h <<_ACEOF
23554#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23555_ACEOF
23556
23557
23558
23559# Obtain size of size_t and define as SIZEOF_SIZE_T
23560# The cast to long int works around a bug in the HP C Compiler
23561# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23562# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23563# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023566if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023567 $as_echo_n "(cached) " >&6
23568else
cristy8b350f62009-11-15 23:12:43 +000023569 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 +000023570
cristy3ed852e2009-09-05 21:47:34 +000023571else
cristy8b350f62009-11-15 23:12:43 +000023572 if test "$ac_cv_type_size_t" = yes; then
23573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023575as_fn_error 77 "cannot compute sizeof (size_t)
23576See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023577 else
23578 ac_cv_sizeof_size_t=0
23579 fi
23580fi
cristy8b350f62009-11-15 23:12:43 +000023581
cristy3ed852e2009-09-05 21:47:34 +000023582fi
cristy8b350f62009-11-15 23:12:43 +000023583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023584$as_echo "$ac_cv_sizeof_size_t" >&6; }
23585
23586
23587
23588cat >>confdefs.h <<_ACEOF
23589#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23590_ACEOF
23591
23592
23593
cristy330e9352010-06-01 18:42:49 +000023594# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23595# The cast to long int works around a bug in the HP C Compiler
23596# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23597# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23598# This bug is HP SR number 8606223364.
23599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23600$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023601if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023602 $as_echo_n "(cached) " >&6
23603else
23604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23605
23606else
23607 if test "$ac_cv_type_ssize_t" = yes; then
23608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023610as_fn_error 77 "cannot compute sizeof (ssize_t)
23611See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023612 else
23613 ac_cv_sizeof_ssize_t=0
23614 fi
23615fi
23616
23617fi
23618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23619$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23620
23621
23622
23623cat >>confdefs.h <<_ACEOF
23624#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23625_ACEOF
23626
23627
23628
cristy3ed852e2009-09-05 21:47:34 +000023629# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23630# The cast to long int works around a bug in the HP C Compiler
23631# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23632# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23633# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023635$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023636if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023637 $as_echo_n "(cached) " >&6
23638else
cristy8b350f62009-11-15 23:12:43 +000023639 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 +000023640
cristy3ed852e2009-09-05 21:47:34 +000023641else
cristy8b350f62009-11-15 23:12:43 +000023642 if test "$ac_cv_type_unsigned_intp" = yes; then
23643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023645as_fn_error 77 "cannot compute sizeof (unsigned int*)
23646See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023647 else
23648 ac_cv_sizeof_unsigned_intp=0
23649 fi
23650fi
cristy8b350f62009-11-15 23:12:43 +000023651
cristy3ed852e2009-09-05 21:47:34 +000023652fi
cristy8b350f62009-11-15 23:12:43 +000023653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023654$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23655
23656
23657
23658cat >>confdefs.h <<_ACEOF
23659#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23660_ACEOF
23661
23662
23663
23664#
23665# Compute sized types for current CPU and compiler options.
23666#
23667
cristy8b350f62009-11-15 23:12:43 +000023668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo_n "checking for signed 8-bit type... " >&6; }
23670INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023671{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23672$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023673
23674
cristy8b350f62009-11-15 23:12:43 +000023675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023676$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23677UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023678{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23679$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023680
23681
cristy8b350f62009-11-15 23:12:43 +000023682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023683$as_echo_n "checking for signed 16-bit type... " >&6; }
23684INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023685{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23686$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023687
23688
cristy8b350f62009-11-15 23:12:43 +000023689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023690$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23691UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023692{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23693$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023694
23695
cristy8b350f62009-11-15 23:12:43 +000023696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023697$as_echo_n "checking for signed 32-bit type... " >&6; }
23698INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023699INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023700if test $ac_cv_sizeof_signed_int -eq 4; then
23701 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023702 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023703elif test $ac_cv_sizeof_signed_long -eq 4; then
23704 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023705 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023706fi
cristy09b53e12011-10-14 12:47:22 +000023707{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23708$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023709
23710
cristy6d5e20f2011-04-25 13:48:54 +000023711
cristy8b350f62009-11-15 23:12:43 +000023712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23714UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023715UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023716if test $ac_cv_sizeof_unsigned_int -eq 4; then
23717 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023718 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023719elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23720 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023721 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023722fi
cristy09b53e12011-10-14 12:47:22 +000023723{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23724$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023725
23726
cristy6d5e20f2011-04-25 13:48:54 +000023727
cristy8b350f62009-11-15 23:12:43 +000023728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023729$as_echo_n "checking for signed 64-bit type... " >&6; }
23730INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023731INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023732if test $ac_cv_sizeof_signed_long -eq 8; then
23733 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023734 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023735elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23736 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023737 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023738fi
cristy6d5e20f2011-04-25 13:48:54 +000023739case "${build_os}" in
23740 mingw* )
23741 INT64_F='"I64"'
23742 ;;
23743esac
cristy09b53e12011-10-14 12:47:22 +000023744{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23745$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023746
23747
cristy6d5e20f2011-04-25 13:48:54 +000023748
cristy8b350f62009-11-15 23:12:43 +000023749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023750$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23751UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023752UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023753if test $ac_cv_sizeof_unsigned_long -eq 8; then
23754 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023755 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023756elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23757 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023758 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023759fi
cristy6d5e20f2011-04-25 13:48:54 +000023760case "${build_os}" in
23761 mingw* )
23762 UINT64_F='"I64"'
23763 ;;
23764esac
cristy09b53e12011-10-14 12:47:22 +000023765{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23766$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023767
23768
cristy6d5e20f2011-04-25 13:48:54 +000023769
cristy8b350f62009-11-15 23:12:43 +000023770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023771$as_echo_n "checking for unsigned maximum type... " >&6; }
23772UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023773UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023774if test "$UINT64_T" != 'none'; then
23775 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023776 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023777elif test "$UINT32_T" != 'none'; then
23778 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023779 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023780fi
cristy09b53e12011-10-14 12:47:22 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23782$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023783
23784
cristy6d5e20f2011-04-25 13:48:54 +000023785
cristy8b350f62009-11-15 23:12:43 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo_n "checking for pointer difference type... " >&6; }
23788UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023789UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023790if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23791 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023792 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023793elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23794 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023795 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023796fi
cristy09b53e12011-10-14 12:47:22 +000023797{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23798$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023799
23800
cristy6d5e20f2011-04-25 13:48:54 +000023801
cristy8b350f62009-11-15 23:12:43 +000023802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023803$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023805/* end confdefs.h. */
23806
23807int
23808main ()
23809{
23810{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23811 ;
23812 return 0;
23813}
23814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023815if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023816 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23817$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023818else
cristy09b53e12011-10-14 12:47:22 +000023819 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23820$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023822$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023824/* end confdefs.h. */
23825
23826int
23827main ()
23828{
23829{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23830 ;
23831 return 0;
23832}
23833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023834if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023835 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23836$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023837
cristy8b350f62009-11-15 23:12:43 +000023838$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023839
23840else
cristy09b53e12011-10-14 12:47:22 +000023841 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23842$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023843
cristy8b350f62009-11-15 23:12:43 +000023844$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023845
23846fi
cristy3ed852e2009-09-05 21:47:34 +000023847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23848fi
cristy3ed852e2009-09-05 21:47:34 +000023849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850
23851########
23852#
23853# Check for functions
23854#
23855########
cristy73bd4a52010-10-05 11:24:23 +000023856for ac_header in stdlib.h unistd.h
23857do :
23858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23859ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023860if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023861 cat >>confdefs.h <<_ACEOF
23862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23863_ACEOF
23864
23865fi
23866
23867done
23868
23869for ac_func in getpagesize
23870do :
23871 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023872if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023873 cat >>confdefs.h <<_ACEOF
23874#define HAVE_GETPAGESIZE 1
23875_ACEOF
23876
23877fi
23878done
23879
23880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23881$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023882if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023883 $as_echo_n "(cached) " >&6
23884else
23885 if test "$cross_compiling" = yes; then :
23886 magick_cv_func_mmap_fileio=no
23887else
23888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889/* end confdefs.h. */
23890$ac_includes_default
23891/* malloc might have been renamed as rpl_malloc. */
23892#undef malloc
23893
23894/*
23895 This test is derived from GNU Autoconf's similar macro.
23896 The purpose of this test is to verify that files may be memory
23897 mapped, and that memory mapping and file I/O are coherent.
23898
23899 The test creates a test file, memory maps the file, updates
23900 the file using the memory map, and then reads the file using
23901 file I/O to verify that the file contains the updates.
23902*/
23903
23904#include <fcntl.h>
23905#include <sys/mman.h>
23906
23907#if !STDC_HEADERS && !HAVE_STDLIB_H
23908char *malloc ();
23909#endif
23910
23911/* This mess was copied from the GNU getpagesize.h. */
23912#if !HAVE_GETPAGESIZE
23913/* Assume that all systems that can run configure have sys/param.h. */
23914# if !HAVE_SYS_PARAM_H
23915# define HAVE_SYS_PARAM_H 1
23916# endif
23917
23918# ifdef _SC_PAGESIZE
23919# define getpagesize() sysconf(_SC_PAGESIZE)
23920# else /* no _SC_PAGESIZE */
23921# if HAVE_SYS_PARAM_H
23922# include <sys/param.h>
23923# ifdef EXEC_PAGESIZE
23924# define getpagesize() EXEC_PAGESIZE
23925# else /* no EXEC_PAGESIZE */
23926# ifdef NBPG
23927# define getpagesize() NBPG * CLSIZE
23928# ifndef CLSIZE
23929# define CLSIZE 1
23930# endif /* no CLSIZE */
23931# else /* no NBPG */
23932# ifdef NBPC
23933# define getpagesize() NBPC
23934# else /* no NBPC */
23935# ifdef PAGESIZE
23936# define getpagesize() PAGESIZE
23937# endif /* PAGESIZE */
23938# endif /* no NBPC */
23939# endif /* no NBPG */
23940# endif /* no EXEC_PAGESIZE */
23941# else /* no HAVE_SYS_PARAM_H */
23942# define getpagesize() 8192 /* punt totally */
23943# endif /* no HAVE_SYS_PARAM_H */
23944# endif /* no _SC_PAGESIZE */
23945
23946#endif /* no HAVE_GETPAGESIZE */
23947
23948int
23949main ()
23950{
23951 char *data, *data2, *data3;
23952 int i, pagesize;
23953 int fd;
23954
23955 pagesize = getpagesize ();
23956
23957 /* First, make a file with some known garbage in it. */
23958 data = (char *) malloc (pagesize);
23959 if (!data)
23960 exit (1);
23961 for (i = 0; i < pagesize; ++i)
23962 *(data + i) = rand ();
23963 umask (0);
23964 fd = creat ("conftest.mmap", 0600);
23965 if (fd < 0)
23966 exit (1);
23967 if (write (fd, data, pagesize) != pagesize)
23968 exit (1);
23969 close (fd);
23970
23971 /* Mmap the file as read/write/shared and verify that we see the
23972 same garbage. */
23973 fd = open ("conftest.mmap", O_RDWR);
23974 if (fd < 0)
23975 exit (1);
23976 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23977 if (data2 == 0)
23978 exit (1);
23979 for (i = 0; i < pagesize; ++i)
23980 if (*(data + i) != *(data2 + i))
23981 exit (1);
23982
23983 /* Finally, make sure that changes to the mapped area
23984 percolate back to the file as seen by read(). */
23985 for (i = 0; i < pagesize; ++i)
23986 *(data2 + i) = *(data2 + i) + 1;
23987 data3 = (char *) malloc (pagesize);
23988 if (!data3)
23989 exit (1);
23990 if (read (fd, data3, pagesize) != pagesize)
23991 exit (1);
23992 for (i = 0; i < pagesize; ++i)
23993 if (*(data2 + i) != *(data3 + i))
23994 exit (1);
23995 close (fd);
23996 exit (0);
23997}
23998_ACEOF
23999if ac_fn_c_try_run "$LINENO"; then :
24000 magick_cv_func_mmap_fileio=yes
24001else
24002 magick_cv_func_mmap_fileio=no
24003fi
24004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24005 conftest.$ac_objext conftest.beam conftest.$ac_ext
24006fi
24007
24008fi
24009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24010$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24011if test $magick_cv_func_mmap_fileio = yes; then
24012
24013$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24014
24015fi
24016rm -f conftest.mmap
24017
cristy8b350f62009-11-15 23:12:43 +000024018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024020if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024021 $as_echo_n "(cached) " >&6
24022else
cristy8b350f62009-11-15 23:12:43 +000024023 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024024 ac_cv_func_closedir_void=yes
24025else
cristy8b350f62009-11-15 23:12:43 +000024026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024027/* end confdefs.h. */
24028$ac_includes_default
24029#include <$ac_header_dirent>
24030#ifndef __cplusplus
24031int closedir ();
24032#endif
24033
24034int
24035main ()
24036{
24037return closedir (opendir (".")) != 0;
24038 ;
24039 return 0;
24040}
24041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024042if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024043 ac_cv_func_closedir_void=no
24044else
cristy8b350f62009-11-15 23:12:43 +000024045 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024046fi
cristy8b350f62009-11-15 23:12:43 +000024047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24048 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024049fi
24050
cristy3ed852e2009-09-05 21:47:34 +000024051fi
cristy8b350f62009-11-15 23:12:43 +000024052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024053$as_echo "$ac_cv_func_closedir_void" >&6; }
24054if test $ac_cv_func_closedir_void = yes; then
24055
cristy8b350f62009-11-15 23:12:43 +000024056$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024057
24058fi
24059
cristycd4c5312009-11-22 01:19:08 +000024060
24061
24062
24063 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024064do :
24065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024066ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24067"
cristy98dddb52010-11-04 00:30:15 +000024068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024069 cat >>confdefs.h <<_ACEOF
24070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24071_ACEOF
24072
24073fi
24074
24075done
24076
cristycd4c5312009-11-22 01:19:08 +000024077
24078
24079
24080
24081
24082
24083
cristy3ed852e2009-09-05 21:47:34 +000024084for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024085do :
24086 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024087if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024088 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024089#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024090_ACEOF
24091
24092fi
24093done
24094
cristy8b350f62009-11-15 23:12:43 +000024095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024096$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024097if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024098 $as_echo_n "(cached) " >&6
24099else
cristy8b350f62009-11-15 23:12:43 +000024100 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024101 ac_cv_func_mmap_fixed_mapped=no
24102else
cristy8b350f62009-11-15 23:12:43 +000024103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024104/* end confdefs.h. */
24105$ac_includes_default
24106/* malloc might have been renamed as rpl_malloc. */
24107#undef malloc
24108
24109/* Thanks to Mike Haertel and Jim Avera for this test.
24110 Here is a matrix of mmap possibilities:
24111 mmap private not fixed
24112 mmap private fixed at somewhere currently unmapped
24113 mmap private fixed at somewhere already mapped
24114 mmap shared not fixed
24115 mmap shared fixed at somewhere currently unmapped
24116 mmap shared fixed at somewhere already mapped
24117 For private mappings, we should verify that changes cannot be read()
24118 back from the file, nor mmap's back from the file at a different
24119 address. (There have been systems where private was not correctly
24120 implemented like the infamous i386 svr4.0, and systems where the
24121 VM page cache was not coherent with the file system buffer cache
24122 like early versions of FreeBSD and possibly contemporary NetBSD.)
24123 For shared mappings, we should conversely verify that changes get
24124 propagated back to all the places they're supposed to be.
24125
24126 Grep wants private fixed already mapped.
24127 The main things grep needs to know about mmap are:
24128 * does it exist and is it safe to write into the mmap'd area
24129 * how to use it (BSD variants) */
24130
24131#include <fcntl.h>
24132#include <sys/mman.h>
24133
24134#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24135char *malloc ();
24136#endif
24137
24138/* This mess was copied from the GNU getpagesize.h. */
24139#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024140# ifdef _SC_PAGESIZE
24141# define getpagesize() sysconf(_SC_PAGESIZE)
24142# else /* no _SC_PAGESIZE */
24143# ifdef HAVE_SYS_PARAM_H
24144# include <sys/param.h>
24145# ifdef EXEC_PAGESIZE
24146# define getpagesize() EXEC_PAGESIZE
24147# else /* no EXEC_PAGESIZE */
24148# ifdef NBPG
24149# define getpagesize() NBPG * CLSIZE
24150# ifndef CLSIZE
24151# define CLSIZE 1
24152# endif /* no CLSIZE */
24153# else /* no NBPG */
24154# ifdef NBPC
24155# define getpagesize() NBPC
24156# else /* no NBPC */
24157# ifdef PAGESIZE
24158# define getpagesize() PAGESIZE
24159# endif /* PAGESIZE */
24160# endif /* no NBPC */
24161# endif /* no NBPG */
24162# endif /* no EXEC_PAGESIZE */
24163# else /* no HAVE_SYS_PARAM_H */
24164# define getpagesize() 8192 /* punt totally */
24165# endif /* no HAVE_SYS_PARAM_H */
24166# endif /* no _SC_PAGESIZE */
24167
24168#endif /* no HAVE_GETPAGESIZE */
24169
24170int
24171main ()
24172{
24173 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024174 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024175 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024176 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024177
24178 pagesize = getpagesize ();
24179
24180 /* First, make a file with some known garbage in it. */
24181 data = (char *) malloc (pagesize);
24182 if (!data)
24183 return 1;
24184 for (i = 0; i < pagesize; ++i)
24185 *(data + i) = rand ();
24186 umask (0);
24187 fd = creat ("conftest.mmap", 0600);
24188 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024189 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024190 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024191 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024192 close (fd);
24193
cristycd4c5312009-11-22 01:19:08 +000024194 /* Next, check that the tail of a page is zero-filled. File must have
24195 non-zero length, otherwise we risk SIGBUS for entire page. */
24196 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24197 if (fd2 < 0)
24198 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024199 cdata2 = "";
24200 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024201 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024202 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024203 if (data2 == MAP_FAILED)
24204 return 6;
24205 for (i = 0; i < pagesize; ++i)
24206 if (*(data2 + i))
24207 return 7;
24208 close (fd2);
24209 if (munmap (data2, pagesize))
24210 return 8;
24211
cristy3ed852e2009-09-05 21:47:34 +000024212 /* Next, try to mmap the file at a fixed address which already has
24213 something else allocated at it. If we can, also make sure that
24214 we see the same garbage. */
24215 fd = open ("conftest.mmap", O_RDWR);
24216 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024217 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024218 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24219 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024220 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024221 for (i = 0; i < pagesize; ++i)
24222 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024223 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024224
24225 /* Finally, make sure that changes to the mapped area do not
24226 percolate back to the file as seen by read(). (This is a bug on
24227 some variants of i386 svr4.0.) */
24228 for (i = 0; i < pagesize; ++i)
24229 *(data2 + i) = *(data2 + i) + 1;
24230 data3 = (char *) malloc (pagesize);
24231 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024232 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024233 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024234 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024235 for (i = 0; i < pagesize; ++i)
24236 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024237 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024238 close (fd);
24239 return 0;
24240}
24241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024242if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024243 ac_cv_func_mmap_fixed_mapped=yes
24244else
cristy8b350f62009-11-15 23:12:43 +000024245 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024246fi
cristy8b350f62009-11-15 23:12:43 +000024247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24248 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024249fi
24250
cristy3ed852e2009-09-05 21:47:34 +000024251fi
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24254if test $ac_cv_func_mmap_fixed_mapped = yes; then
24255
cristy8b350f62009-11-15 23:12:43 +000024256$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024257
24258fi
cristycd4c5312009-11-22 01:19:08 +000024259rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024260
cristy3ed852e2009-09-05 21:47:34 +000024261for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024262do :
24263 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024264if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024266#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024267_ACEOF
24268
24269fi
24270
24271done
24272
cristy3ed852e2009-09-05 21:47:34 +000024273for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024274do :
24275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24276ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024277if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024278 cat >>confdefs.h <<_ACEOF
24279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24280_ACEOF
24281
24282fi
24283done
24284
24285if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024287$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024288if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024289 $as_echo_n "(cached) " >&6
24290else
cristy8b350f62009-11-15 23:12:43 +000024291 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024292 ac_cv_func_fork_works=cross
24293else
cristy8b350f62009-11-15 23:12:43 +000024294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024295/* end confdefs.h. */
24296$ac_includes_default
24297int
24298main ()
24299{
24300
24301 /* By Ruediger Kuhlmann. */
24302 return fork () < 0;
24303
24304 ;
24305 return 0;
24306}
24307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024308if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024309 ac_cv_func_fork_works=yes
24310else
cristy8b350f62009-11-15 23:12:43 +000024311 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024312fi
cristy8b350f62009-11-15 23:12:43 +000024313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24314 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024315fi
24316
cristy3ed852e2009-09-05 21:47:34 +000024317fi
cristy8b350f62009-11-15 23:12:43 +000024318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024319$as_echo "$ac_cv_func_fork_works" >&6; }
24320
24321else
24322 ac_cv_func_fork_works=$ac_cv_func_fork
24323fi
24324if test "x$ac_cv_func_fork_works" = xcross; then
24325 case $host in
24326 *-*-amigaos* | *-*-msdosdjgpp*)
24327 # Override, as these systems have only a dummy fork() stub
24328 ac_cv_func_fork_works=no
24329 ;;
24330 *)
24331 ac_cv_func_fork_works=yes
24332 ;;
24333 esac
cristy8b350f62009-11-15 23:12:43 +000024334 { $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 +000024335$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24336fi
24337ac_cv_func_vfork_works=$ac_cv_func_vfork
24338if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024341if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024342 $as_echo_n "(cached) " >&6
24343else
cristy8b350f62009-11-15 23:12:43 +000024344 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024345 ac_cv_func_vfork_works=cross
24346else
cristy8b350f62009-11-15 23:12:43 +000024347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024348/* end confdefs.h. */
24349/* Thanks to Paul Eggert for this test. */
24350$ac_includes_default
24351#include <sys/wait.h>
24352#ifdef HAVE_VFORK_H
24353# include <vfork.h>
24354#endif
24355/* On some sparc systems, changes by the child to local and incoming
24356 argument registers are propagated back to the parent. The compiler
24357 is told about this with #include <vfork.h>, but some compilers
24358 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24359 static variable whose address is put into a register that is
24360 clobbered by the vfork. */
24361static void
24362#ifdef __cplusplus
24363sparc_address_test (int arg)
24364# else
24365sparc_address_test (arg) int arg;
24366#endif
24367{
24368 static pid_t child;
24369 if (!child) {
24370 child = vfork ();
24371 if (child < 0) {
24372 perror ("vfork");
24373 _exit(2);
24374 }
24375 if (!child) {
24376 arg = getpid();
24377 write(-1, "", 0);
24378 _exit (arg);
24379 }
24380 }
24381}
24382
24383int
24384main ()
24385{
24386 pid_t parent = getpid ();
24387 pid_t child;
24388
24389 sparc_address_test (0);
24390
24391 child = vfork ();
24392
24393 if (child == 0) {
24394 /* Here is another test for sparc vfork register problems. This
24395 test uses lots of local variables, at least as many local
24396 variables as main has allocated so far including compiler
24397 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24398 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24399 reuse the register of parent for one of the local variables,
24400 since it will think that parent can't possibly be used any more
24401 in this routine. Assigning to the local variable will thus
24402 munge parent in the parent process. */
24403 pid_t
24404 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24405 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24406 /* Convince the compiler that p..p7 are live; otherwise, it might
24407 use the same hardware register for all 8 local variables. */
24408 if (p != p1 || p != p2 || p != p3 || p != p4
24409 || p != p5 || p != p6 || p != p7)
24410 _exit(1);
24411
24412 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24413 from child file descriptors. If the child closes a descriptor
24414 before it execs or exits, this munges the parent's descriptor
24415 as well. Test for this by closing stdout in the child. */
24416 _exit(close(fileno(stdout)) != 0);
24417 } else {
24418 int status;
24419 struct stat st;
24420
24421 while (wait(&status) != child)
24422 ;
24423 return (
24424 /* Was there some problem with vforking? */
24425 child < 0
24426
24427 /* Did the child fail? (This shouldn't happen.) */
24428 || status
24429
24430 /* Did the vfork/compiler bug occur? */
24431 || parent != getpid()
24432
24433 /* Did the file descriptor bug occur? */
24434 || fstat(fileno(stdout), &st) != 0
24435 );
24436 }
24437}
24438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024439if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024440 ac_cv_func_vfork_works=yes
24441else
cristy8b350f62009-11-15 23:12:43 +000024442 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024443fi
cristy8b350f62009-11-15 23:12:43 +000024444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24445 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024446fi
24447
cristy3ed852e2009-09-05 21:47:34 +000024448fi
cristy8b350f62009-11-15 23:12:43 +000024449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024450$as_echo "$ac_cv_func_vfork_works" >&6; }
24451
24452fi;
24453if test "x$ac_cv_func_fork_works" = xcross; then
24454 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024455 { $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 +000024456$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24457fi
24458
24459if test "x$ac_cv_func_vfork_works" = xyes; then
24460
cristy8b350f62009-11-15 23:12:43 +000024461$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024462
24463else
24464
cristy8b350f62009-11-15 23:12:43 +000024465$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024466
24467fi
24468if test "x$ac_cv_func_fork_works" = xyes; then
24469
cristy8b350f62009-11-15 23:12:43 +000024470$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024471
24472fi
24473
cristy8b350f62009-11-15 23:12:43 +000024474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024475$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024476if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024477 $as_echo_n "(cached) " >&6
24478else
cristy8b350f62009-11-15 23:12:43 +000024479 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024480 ac_cv_func_memcmp_working=no
24481else
cristy8b350f62009-11-15 23:12:43 +000024482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024483/* end confdefs.h. */
24484$ac_includes_default
24485int
24486main ()
24487{
24488
24489 /* Some versions of memcmp are not 8-bit clean. */
24490 char c0 = '\100', c1 = '\200', c2 = '\201';
24491 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24492 return 1;
24493
24494 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24495 or more and with at least one buffer not starting on a 4-byte boundary.
24496 William Lewis provided this test program. */
24497 {
24498 char foo[21];
24499 char bar[21];
24500 int i;
24501 for (i = 0; i < 4; i++)
24502 {
24503 char *a = foo + i;
24504 char *b = bar + i;
24505 strcpy (a, "--------01111111");
24506 strcpy (b, "--------10000000");
24507 if (memcmp (a, b, 16) >= 0)
24508 return 1;
24509 }
24510 return 0;
24511 }
24512
24513 ;
24514 return 0;
24515}
24516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024517if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024518 ac_cv_func_memcmp_working=yes
24519else
cristy8b350f62009-11-15 23:12:43 +000024520 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024521fi
cristy8b350f62009-11-15 23:12:43 +000024522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24523 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024524fi
24525
cristy3ed852e2009-09-05 21:47:34 +000024526fi
cristy8b350f62009-11-15 23:12:43 +000024527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024528$as_echo "$ac_cv_func_memcmp_working" >&6; }
24529test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24530 *" memcmp.$ac_objext "* ) ;;
24531 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24532 ;;
24533esac
24534
24535
cristy3ed852e2009-09-05 21:47:34 +000024536for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024537do :
24538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24539ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024540if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024541 cat >>confdefs.h <<_ACEOF
24542#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24543_ACEOF
24544
24545fi
24546
24547done
24548
cristy8b350f62009-11-15 23:12:43 +000024549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024550$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024551if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024552 $as_echo_n "(cached) " >&6
24553else
24554 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24555 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24556 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024558/* end confdefs.h. */
24559$ac_includes_default
24560#ifdef HAVE_SYS_SELECT_H
24561# include <sys/select.h>
24562#endif
24563#ifdef HAVE_SYS_SOCKET_H
24564# include <sys/socket.h>
24565#endif
24566
24567int
24568main ()
24569{
24570extern int select ($ac_arg1,
24571 $ac_arg234, $ac_arg234, $ac_arg234,
24572 $ac_arg5);
24573 ;
24574 return 0;
24575}
24576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024577if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024578 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024579fi
cristy3ed852e2009-09-05 21:47:34 +000024580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24581 done
24582 done
24583done
24584# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024585: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024586
24587fi
cristy8b350f62009-11-15 23:12:43 +000024588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024589$as_echo "$ac_cv_func_select_args" >&6; }
24590ac_save_IFS=$IFS; IFS=','
24591set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24592IFS=$ac_save_IFS
24593shift
24594
24595cat >>confdefs.h <<_ACEOF
24596#define SELECT_TYPE_ARG1 $1
24597_ACEOF
24598
24599
24600cat >>confdefs.h <<_ACEOF
24601#define SELECT_TYPE_ARG234 ($2)
24602_ACEOF
24603
24604
24605cat >>confdefs.h <<_ACEOF
24606#define SELECT_TYPE_ARG5 ($3)
24607_ACEOF
24608
24609rm -f conftest*
24610
cristyda16f162011-02-19 23:52:17 +000024611if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024612 $as_echo_n "(cached) " >&6
24613else
24614 ac_cv_func_setvbuf_reversed=no
24615fi
24616
24617
cristy8b350f62009-11-15 23:12:43 +000024618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024619$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024620if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024621 $as_echo_n "(cached) " >&6
24622else
cristy8b350f62009-11-15 23:12:43 +000024623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024624/* end confdefs.h. */
24625#include <sys/types.h>
24626#include <signal.h>
24627
24628int
24629main ()
24630{
24631return *(signal (0, 0)) (0) == 1;
24632 ;
24633 return 0;
24634}
24635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024636if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024637 ac_cv_type_signal=int
24638else
cristy8b350f62009-11-15 23:12:43 +000024639 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024640fi
cristy3ed852e2009-09-05 21:47:34 +000024641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24642fi
cristy8b350f62009-11-15 23:12:43 +000024643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024644$as_echo "$ac_cv_type_signal" >&6; }
24645
24646cat >>confdefs.h <<_ACEOF
24647#define RETSIGTYPE $ac_cv_type_signal
24648_ACEOF
24649
24650
cristy8b350f62009-11-15 23:12:43 +000024651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024653if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024654 $as_echo_n "(cached) " >&6
24655else
cristy8b350f62009-11-15 23:12:43 +000024656 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 ac_cv_func_strtod=no
24658else
cristy8b350f62009-11-15 23:12:43 +000024659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024660/* end confdefs.h. */
24661
24662$ac_includes_default
24663#ifndef strtod
24664double strtod ();
24665#endif
24666int
24667main()
24668{
24669 {
24670 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24671 char *string = " +69";
24672 char *term;
24673 double value;
24674 value = strtod (string, &term);
24675 if (value != 69 || term != (string + 4))
24676 return 1;
24677 }
24678
24679 {
24680 /* Under Solaris 2.4, strtod returns the wrong value for the
24681 terminating character under some conditions. */
24682 char *string = "NaN";
24683 char *term;
24684 strtod (string, &term);
24685 if (term != string && *(term - 1) == 0)
24686 return 1;
24687 }
24688 return 0;
24689}
24690
24691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024692if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024693 ac_cv_func_strtod=yes
24694else
cristy8b350f62009-11-15 23:12:43 +000024695 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024696fi
cristy8b350f62009-11-15 23:12:43 +000024697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24698 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024699fi
24700
cristy3ed852e2009-09-05 21:47:34 +000024701fi
cristy8b350f62009-11-15 23:12:43 +000024702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024703$as_echo "$ac_cv_func_strtod" >&6; }
24704if test $ac_cv_func_strtod = no; then
24705 case " $LIBOBJS " in
24706 *" strtod.$ac_objext "* ) ;;
24707 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24708 ;;
24709esac
24710
cristy8b350f62009-11-15 23:12:43 +000024711ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024712if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024713
cristy3ed852e2009-09-05 21:47:34 +000024714fi
24715
cristy3ed852e2009-09-05 21:47:34 +000024716if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024718$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024719if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 $as_echo_n "(cached) " >&6
24721else
24722 ac_check_lib_save_LIBS=$LIBS
24723LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024725/* end confdefs.h. */
24726
24727/* Override any GCC internal prototype to avoid an error.
24728 Use char because int might match the return type of a GCC
24729 builtin and then its argument prototype would still apply. */
24730#ifdef __cplusplus
24731extern "C"
24732#endif
24733char pow ();
24734int
24735main ()
24736{
24737return pow ();
24738 ;
24739 return 0;
24740}
24741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024743 ac_cv_lib_m_pow=yes
24744else
cristy8b350f62009-11-15 23:12:43 +000024745 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024746fi
cristy8b350f62009-11-15 23:12:43 +000024747rm -f core conftest.err conftest.$ac_objext \
24748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024749LIBS=$ac_check_lib_save_LIBS
24750fi
cristy8b350f62009-11-15 23:12:43 +000024751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024752$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024753if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024754 POW_LIB=-lm
24755else
cristy8b350f62009-11-15 23:12:43 +000024756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024757$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24758fi
24759
24760fi
24761
24762fi
24763
cristy7d4a1d62011-10-13 15:54:12 +000024764ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24765if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24766 ac_have_decl=1
24767else
24768 ac_have_decl=0
24769fi
24770
24771cat >>confdefs.h <<_ACEOF
24772#define HAVE_DECL_STRERROR_R $ac_have_decl
24773_ACEOF
24774
24775for ac_func in strerror_r
24776do :
24777 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24778if test "x$ac_cv_func_strerror_r" = xyes; then :
24779 cat >>confdefs.h <<_ACEOF
24780#define HAVE_STRERROR_R 1
24781_ACEOF
24782
24783fi
24784done
24785
24786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24787$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24788if ${ac_cv_func_strerror_r_char_p+:} false; then :
24789 $as_echo_n "(cached) " >&6
24790else
24791
24792 ac_cv_func_strerror_r_char_p=no
24793 if test $ac_cv_have_decl_strerror_r = yes; then
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795/* end confdefs.h. */
24796$ac_includes_default
24797int
24798main ()
24799{
24800
24801 char buf[100];
24802 char x = *strerror_r (0, buf, sizeof buf);
24803 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024804 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024805
24806 ;
24807 return 0;
24808}
24809_ACEOF
24810if ac_fn_c_try_compile "$LINENO"; then :
24811 ac_cv_func_strerror_r_char_p=yes
24812fi
24813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814 else
24815 # strerror_r is not declared. Choose between
24816 # systems that have relatively inaccessible declarations for the
24817 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24818 # former has a strerror_r that returns char*, while the latter
24819 # has a strerror_r that returns `int'.
24820 # This test should segfault on the DEC system.
24821 if test "$cross_compiling" = yes; then :
24822 :
24823else
24824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24825/* end confdefs.h. */
24826$ac_includes_default
24827 extern char *strerror_r ();
24828int
24829main ()
24830{
24831char buf[100];
24832 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024833 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024834 ;
24835 return 0;
24836}
24837_ACEOF
24838if ac_fn_c_try_run "$LINENO"; then :
24839 ac_cv_func_strerror_r_char_p=yes
24840fi
24841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24842 conftest.$ac_objext conftest.beam conftest.$ac_ext
24843fi
24844
24845 fi
24846
24847fi
24848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24849$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24850if test $ac_cv_func_strerror_r_char_p = yes; then
24851
24852$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24853
24854fi
24855
cristy3ed852e2009-09-05 21:47:34 +000024856for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024857do :
24858 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024859if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024860 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024861#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024862_ACEOF
24863
cristy8b350f62009-11-15 23:12:43 +000024864ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024865if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024866
cristy8b350f62009-11-15 23:12:43 +000024867$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024868
24869fi
24870
24871fi
24872done
24873
24874
24875
cristy161b9262010-03-20 19:34:32 +000024876#
24877# Find math library
24878#
24879MATH_LIBS=''
24880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24881$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024882if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024883 $as_echo_n "(cached) " >&6
24884else
24885 ac_check_lib_save_LIBS=$LIBS
24886LIBS="-lm $LIBS"
24887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24888/* end confdefs.h. */
24889
24890/* Override any GCC internal prototype to avoid an error.
24891 Use char because int might match the return type of a GCC
24892 builtin and then its argument prototype would still apply. */
24893#ifdef __cplusplus
24894extern "C"
24895#endif
24896char sqrt ();
24897int
24898main ()
24899{
24900return sqrt ();
24901 ;
24902 return 0;
24903}
24904_ACEOF
24905if ac_fn_c_try_link "$LINENO"; then :
24906 ac_cv_lib_m_sqrt=yes
24907else
24908 ac_cv_lib_m_sqrt=no
24909fi
24910rm -f core conftest.err conftest.$ac_objext \
24911 conftest$ac_exeext conftest.$ac_ext
24912LIBS=$ac_check_lib_save_LIBS
24913fi
24914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24915$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024916if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024917 MATH_LIBS="-lm"
24918fi
24919
24920LIBS="$MATH_LIBS $LIBS"
24921
24922
cristy7d4a1d62011-10-13 15:54:12 +000024923for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000024924do :
24925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24926ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024927if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024928 cat >>confdefs.h <<_ACEOF
24929#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24930_ACEOF
24931
24932fi
24933done
24934
24935
cristye43a45e2009-09-28 14:49:00 +000024936#
24937# Check for clock_gettime().
24938#
cristy8b350f62009-11-15 23:12:43 +000024939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024940$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024941if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024942 $as_echo_n "(cached) " >&6
24943else
24944 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024946/* end confdefs.h. */
24947
24948/* Override any GCC internal prototype to avoid an error.
24949 Use char because int might match the return type of a GCC
24950 builtin and then its argument prototype would still apply. */
24951#ifdef __cplusplus
24952extern "C"
24953#endif
24954char clock_gettime ();
24955int
24956main ()
24957{
24958return clock_gettime ();
24959 ;
24960 return 0;
24961}
24962_ACEOF
24963for ac_lib in '' rt; do
24964 if test -z "$ac_lib"; then
24965 ac_res="none required"
24966 else
24967 ac_res=-l$ac_lib
24968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24969 fi
cristy8b350f62009-11-15 23:12:43 +000024970 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024971 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024972fi
cristy8b350f62009-11-15 23:12:43 +000024973rm -f core conftest.err conftest.$ac_objext \
24974 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024975 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024976 break
24977fi
24978done
cristyda16f162011-02-19 23:52:17 +000024979if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024980
cristye43a45e2009-09-28 14:49:00 +000024981else
24982 ac_cv_search_clock_gettime=no
24983fi
24984rm conftest.$ac_ext
24985LIBS=$ac_func_search_save_LIBS
24986fi
cristy8b350f62009-11-15 23:12:43 +000024987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024988$as_echo "$ac_cv_search_clock_gettime" >&6; }
24989ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024990if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24992
24993
cristy8b350f62009-11-15 23:12:43 +000024994$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024995
cristy8b350f62009-11-15 23:12:43 +000024996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024997$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024999/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025000
25001 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025002int
25003main ()
25004{
25005clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025006 ;
25007 return 0;
25008}
25009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025010if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025011
cristy09b53e12011-10-14 12:47:22 +000025012 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25013$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025014
cristy8b350f62009-11-15 23:12:43 +000025015$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025016
25017
25018else
cristy09b53e12011-10-14 12:47:22 +000025019 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25020$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025021
25022fi
cristye43a45e2009-09-28 14:49:00 +000025023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25024
25025else
25026
cristy8b350f62009-11-15 23:12:43 +000025027 for ac_func in gettimeofday ftime
25028do :
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 :
cristye43a45e2009-09-28 14:49:00 +000025032 cat >>confdefs.h <<_ACEOF
25033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25034_ACEOF
25035 break
25036fi
25037done
25038
25039
25040
25041fi
25042
25043
cristy3ed852e2009-09-05 21:47:34 +000025044########
25045#
25046# Check for function prototypes
25047#
25048########
25049
cristy8b350f62009-11-15 23:12:43 +000025050ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025051#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025052"
cristyda16f162011-02-19 23:52:17 +000025053if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025054 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025055else
cristy8b350f62009-11-15 23:12:43 +000025056 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025057fi
25058
cristy3ed852e2009-09-05 21:47:34 +000025059cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025060#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025062ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025063#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025064"
cristyda16f162011-02-19 23:52:17 +000025065if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025066 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025067else
cristy8b350f62009-11-15 23:12:43 +000025068 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025069fi
25070
cristy3ed852e2009-09-05 21:47:34 +000025071cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025072#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025073_ACEOF
25074
25075
cristy8b350f62009-11-15 23:12:43 +000025076ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025077#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025078"
cristyda16f162011-02-19 23:52:17 +000025079if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025080 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025081else
cristy8b350f62009-11-15 23:12:43 +000025082 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025083fi
25084
cristy3ed852e2009-09-05 21:47:34 +000025085cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025086#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025087_ACEOF
25088
25089
cristy8b350f62009-11-15 23:12:43 +000025090ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025091#include <stdio.h>
25092#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025093"
cristyda16f162011-02-19 23:52:17 +000025094if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025095 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025096else
cristy8b350f62009-11-15 23:12:43 +000025097 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025098fi
25099
cristy3ed852e2009-09-05 21:47:34 +000025100cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025101#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025102_ACEOF
25103
25104
cristy3ed852e2009-09-05 21:47:34 +000025105########
25106#
25107# C++ Support Tests (For Magick++)
25108#
25109########
25110have_magick_plus_plus='no'
25111if test "$with_magick_plus_plus" = 'yes'; then
25112 OLIBS="$LIBS"
25113 LIBS=''
25114 ac_ext=cpp
25115ac_cpp='$CXXCPP $CPPFLAGS'
25116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25119
25120
25121 # Full set of headers used...
25122 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25123 # functional iomanip iosfwd iostream iterator list string strstream utility
25124 ac_ext=cpp
25125ac_cpp='$CXXCPP $CPPFLAGS'
25126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25129
25130 ac_ext=cpp
25131ac_cpp='$CXXCPP $CPPFLAGS'
25132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25135if test -z "$CXX"; then
25136 if test -n "$CCC"; then
25137 CXX=$CCC
25138 else
25139 if test -n "$ac_tool_prefix"; then
25140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25141 do
25142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025146if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025147 $as_echo_n "(cached) " >&6
25148else
25149 if test -n "$CXX"; then
25150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25151else
25152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25153for as_dir in $PATH
25154do
25155 IFS=$as_save_IFS
25156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025161 break 2
25162 fi
25163done
cristy8b350f62009-11-15 23:12:43 +000025164 done
cristy3ed852e2009-09-05 21:47:34 +000025165IFS=$as_save_IFS
25166
25167fi
25168fi
25169CXX=$ac_cv_prog_CXX
25170if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025172$as_echo "$CXX" >&6; }
25173else
cristy8b350f62009-11-15 23:12:43 +000025174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025175$as_echo "no" >&6; }
25176fi
25177
25178
25179 test -n "$CXX" && break
25180 done
25181fi
25182if test -z "$CXX"; then
25183 ac_ct_CXX=$CXX
25184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25185do
25186 # Extract the first word of "$ac_prog", so it can be a program name with args.
25187set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025189$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025190if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025191 $as_echo_n "(cached) " >&6
25192else
25193 if test -n "$ac_ct_CXX"; then
25194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25195else
25196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25197for as_dir in $PATH
25198do
25199 IFS=$as_save_IFS
25200 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025201 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25203 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025205 break 2
25206 fi
25207done
cristy8b350f62009-11-15 23:12:43 +000025208 done
cristy3ed852e2009-09-05 21:47:34 +000025209IFS=$as_save_IFS
25210
25211fi
25212fi
25213ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25214if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025216$as_echo "$ac_ct_CXX" >&6; }
25217else
cristy8b350f62009-11-15 23:12:43 +000025218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025219$as_echo "no" >&6; }
25220fi
25221
25222
25223 test -n "$ac_ct_CXX" && break
25224done
25225
25226 if test "x$ac_ct_CXX" = x; then
25227 CXX="g++"
25228 else
25229 case $cross_compiling:$ac_tool_warned in
25230yes:)
cristy8b350f62009-11-15 23:12:43 +000025231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25233ac_tool_warned=yes ;;
25234esac
25235 CXX=$ac_ct_CXX
25236 fi
25237fi
25238
25239 fi
25240fi
25241# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025242$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025243set X $ac_compile
25244ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025245for ac_option in --version -v -V -qversion; do
25246 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025247case "(($ac_try" in
25248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249 *) ac_try_echo=$ac_try;;
25250esac
cristy8b350f62009-11-15 23:12:43 +000025251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25252$as_echo "$ac_try_echo"; } >&5
25253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025254 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025255 if test -s conftest.err; then
25256 sed '10a\
25257... rest of stderr output deleted ...
25258 10q' conftest.err >conftest.er1
25259 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025260 fi
cristycd4c5312009-11-22 01:19:08 +000025261 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }
25264done
cristy3ed852e2009-09-05 21:47:34 +000025265
cristy8b350f62009-11-15 23:12:43 +000025266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025267$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025268if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025269 $as_echo_n "(cached) " >&6
25270else
cristy8b350f62009-11-15 23:12:43 +000025271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025272/* end confdefs.h. */
25273
25274int
25275main ()
25276{
25277#ifndef __GNUC__
25278 choke me
25279#endif
25280
25281 ;
25282 return 0;
25283}
25284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025285if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025286 ac_compiler_gnu=yes
25287else
cristy8b350f62009-11-15 23:12:43 +000025288 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025289fi
cristy3ed852e2009-09-05 21:47:34 +000025290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25291ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25292
25293fi
cristy8b350f62009-11-15 23:12:43 +000025294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025295$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25296if test $ac_compiler_gnu = yes; then
25297 GXX=yes
25298else
25299 GXX=
25300fi
25301ac_test_CXXFLAGS=${CXXFLAGS+set}
25302ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025304$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025305if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025306 $as_echo_n "(cached) " >&6
25307else
25308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25309 ac_cxx_werror_flag=yes
25310 ac_cv_prog_cxx_g=no
25311 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025313/* end confdefs.h. */
25314
25315int
25316main ()
25317{
25318
25319 ;
25320 return 0;
25321}
25322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025323if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025324 ac_cv_prog_cxx_g=yes
25325else
cristy8b350f62009-11-15 23:12:43 +000025326 CXXFLAGS=""
25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025328/* end confdefs.h. */
25329
25330int
25331main ()
25332{
25333
25334 ;
25335 return 0;
25336}
25337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025338if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025339
cristy8b350f62009-11-15 23:12:43 +000025340else
25341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025342 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025344/* end confdefs.h. */
25345
25346int
25347main ()
25348{
25349
25350 ;
25351 return 0;
25352}
25353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025354if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025355 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025356fi
cristy3ed852e2009-09-05 21:47:34 +000025357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25358fi
cristy3ed852e2009-09-05 21:47:34 +000025359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25360fi
cristy3ed852e2009-09-05 21:47:34 +000025361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25363fi
cristy8b350f62009-11-15 23:12:43 +000025364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025365$as_echo "$ac_cv_prog_cxx_g" >&6; }
25366if test "$ac_test_CXXFLAGS" = set; then
25367 CXXFLAGS=$ac_save_CXXFLAGS
25368elif test $ac_cv_prog_cxx_g = yes; then
25369 if test "$GXX" = yes; then
25370 CXXFLAGS="-g -O2"
25371 else
25372 CXXFLAGS="-g"
25373 fi
25374else
25375 if test "$GXX" = yes; then
25376 CXXFLAGS="-O2"
25377 else
25378 CXXFLAGS=
25379 fi
25380fi
25381ac_ext=cpp
25382ac_cpp='$CXXCPP $CPPFLAGS'
25383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25386
cristy73bd4a52010-10-05 11:24:23 +000025387depcc="$CXX" am_compiler_list=
25388
25389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25390$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025391if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025392 $as_echo_n "(cached) " >&6
25393else
25394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25395 # We make a subdir and do the tests there. Otherwise we can end up
25396 # making bogus files that we don't know about and never remove. For
25397 # instance it was reported that on HP-UX the gcc test will end up
25398 # making a dummy file named `D' -- because `-MD' means `put the output
25399 # in D'.
25400 mkdir conftest.dir
25401 # Copy depcomp to subdir because otherwise we won't find it if we're
25402 # using a relative directory.
25403 cp "$am_depcomp" conftest.dir
25404 cd conftest.dir
25405 # We will build objects and dependencies in a subdirectory because
25406 # it helps to detect inapplicable dependency modes. For instance
25407 # both Tru64's cc and ICC support -MD to output dependencies as a
25408 # side effect of compilation, but ICC will put the dependencies in
25409 # the current directory while Tru64 will put them in the object
25410 # directory.
25411 mkdir sub
25412
25413 am_cv_CXX_dependencies_compiler_type=none
25414 if test "$am_compiler_list" = ""; then
25415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25416 fi
25417 am__universal=false
25418 case " $depcc " in #(
25419 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25420 esac
25421
25422 for depmode in $am_compiler_list; do
25423 # Setup a source with many dependencies, because some compilers
25424 # like to wrap large dependency lists on column 80 (with \), and
25425 # we should not choose a depcomp mode which is confused by this.
25426 #
25427 # We need to recreate these files for each test, as the compiler may
25428 # overwrite some of them when testing with obscure command lines.
25429 # This happens at least with the AIX C compiler.
25430 : > sub/conftest.c
25431 for i in 1 2 3 4 5 6; do
25432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25433 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25434 # Solaris 8's {/usr,}/bin/sh.
25435 touch sub/conftst$i.h
25436 done
25437 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25438
25439 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25440 # mode. It turns out that the SunPro C++ compiler does not properly
25441 # handle `-M -o', and we need to detect this. Also, some Intel
25442 # versions had trouble with output in subdirs
25443 am__obj=sub/conftest.${OBJEXT-o}
25444 am__minus_obj="-o $am__obj"
25445 case $depmode in
25446 gcc)
25447 # This depmode causes a compiler race in universal mode.
25448 test "$am__universal" = false || continue
25449 ;;
25450 nosideeffect)
25451 # after this tag, mechanisms are not by side-effect, so they'll
25452 # only be used when explicitly requested
25453 if test "x$enable_dependency_tracking" = xyes; then
25454 continue
25455 else
25456 break
25457 fi
25458 ;;
25459 msvisualcpp | msvcmsys)
25460 # This compiler won't grok `-c -o', but also, the minuso test has
25461 # not run yet. These depmodes are late enough in the game, and
25462 # so weak that their functioning should not be impacted.
25463 am__obj=conftest.${OBJEXT-o}
25464 am__minus_obj=
25465 ;;
25466 none) break ;;
25467 esac
25468 if depmode=$depmode \
25469 source=sub/conftest.c object=$am__obj \
25470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25471 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25472 >/dev/null 2>conftest.err &&
25473 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25474 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25475 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25476 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25477 # icc doesn't choke on unknown options, it will just issue warnings
25478 # or remarks (even with -Werror). So we grep stderr for any message
25479 # that says an option was ignored or not supported.
25480 # When given -MP, icc 7.0 and 7.1 complain thusly:
25481 # icc: Command line warning: ignoring option '-M'; no argument required
25482 # The diagnosis changed in icc 8.0:
25483 # icc: Command line remark: option '-MP' not supported
25484 if (grep 'ignoring option' conftest.err ||
25485 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25486 am_cv_CXX_dependencies_compiler_type=$depmode
25487 break
25488 fi
25489 fi
25490 done
25491
25492 cd ..
25493 rm -rf conftest.dir
25494else
25495 am_cv_CXX_dependencies_compiler_type=none
25496fi
25497
25498fi
25499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25500$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25501CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25502
25503 if
25504 test "x$enable_dependency_tracking" != xno \
25505 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25506 am__fastdepCXX_TRUE=
25507 am__fastdepCXX_FALSE='#'
25508else
25509 am__fastdepCXX_TRUE='#'
25510 am__fastdepCXX_FALSE=
25511fi
25512
25513
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25515$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025516if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025517 $as_echo_n "(cached) " >&6
25518else
25519
25520 ac_ext=cpp
25521ac_cpp='$CXXCPP $CPPFLAGS'
25522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25525
25526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25527/* end confdefs.h. */
25528
25529int f(int x){return 1;}
25530int f(char x){return 1;}
25531int f(bool x){return 1;}
25532
25533int
25534main ()
25535{
25536bool b = true; return f(b);
25537 ;
25538 return 0;
25539}
25540_ACEOF
25541if ac_fn_cxx_try_compile "$LINENO"; then :
25542 ax_cv_cxx_bool=yes
25543else
25544 ax_cv_cxx_bool=no
25545fi
25546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25547 ac_ext=cpp
25548ac_cpp='$CXXCPP $CPPFLAGS'
25549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25552
25553
25554fi
25555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25556$as_echo "$ax_cv_cxx_bool" >&6; }
25557if test "$ax_cv_cxx_bool" = yes; then
25558
25559$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25560
25561fi
25562
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25564$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025565if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025566 $as_echo_n "(cached) " >&6
25567else
25568
25569 ac_ext=cpp
25570ac_cpp='$CXXCPP $CPPFLAGS'
25571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25574
25575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25576/* end confdefs.h. */
25577namespace Outer { namespace Inner { int i = 0; }}
25578int
25579main ()
25580{
25581using namespace Outer::Inner; return i;
25582 ;
25583 return 0;
25584}
25585_ACEOF
25586if ac_fn_cxx_try_compile "$LINENO"; then :
25587 ax_cv_cxx_namespaces=yes
25588else
25589 ax_cv_cxx_namespaces=no
25590fi
25591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25592 ac_ext=cpp
25593ac_cpp='$CXXCPP $CPPFLAGS'
25594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25597
25598
25599fi
25600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25601$as_echo "$ax_cv_cxx_namespaces" >&6; }
25602if test "$ax_cv_cxx_namespaces" = yes; then
25603
25604$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25605
25606fi
25607
25608
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25610$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025611if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025612 $as_echo_n "(cached) " >&6
25613else
25614
25615 ac_ext=cpp
25616ac_cpp='$CXXCPP $CPPFLAGS'
25617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25620
25621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25622/* end confdefs.h. */
25623#include <iostream>
25624 std::istream& is = std::cin;
25625int
25626main ()
25627{
25628
25629 ;
25630 return 0;
25631}
25632_ACEOF
25633if ac_fn_cxx_try_compile "$LINENO"; then :
25634 ax_cv_cxx_have_std_namespace=yes
25635else
25636 ax_cv_cxx_have_std_namespace=no
25637fi
25638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25639 ac_ext=cpp
25640ac_cpp='$CXXCPP $CPPFLAGS'
25641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25644
25645
25646fi
25647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25648$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25649 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25650
25651$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25652
25653 fi
25654
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25656$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025657if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025658 $as_echo_n "(cached) " >&6
25659else
25660
25661
25662 ac_ext=cpp
25663ac_cpp='$CXXCPP $CPPFLAGS'
25664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25667
25668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25669/* end confdefs.h. */
25670#include <iostream>
25671#include <map>
25672#include <iomanip>
25673#include <cmath>
25674#ifdef HAVE_NAMESPACES
25675using namespace std;
25676#endif
25677int
25678main ()
25679{
25680return 0;
25681 ;
25682 return 0;
25683}
25684_ACEOF
25685if ac_fn_cxx_try_compile "$LINENO"; then :
25686 ac_cv_cxx_have_std_libs=yes
25687else
25688 ac_cv_cxx_have_std_libs=no
25689fi
25690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25691 ac_ext=cpp
25692ac_cpp='$CXXCPP $CPPFLAGS'
25693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25696
25697
25698fi
25699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25700$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25701if test "$ac_cv_cxx_have_std_libs" = yes; then
25702
25703$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25704
25705fi
25706
cristy3ed852e2009-09-05 21:47:34 +000025707
25708 OPENMP_CXXFLAGS=
25709 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025710if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025711 enableval=$enable_openmp;
25712fi
25713
25714 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25716$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025717if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025718 $as_echo_n "(cached) " >&6
25719else
cristy8b350f62009-11-15 23:12:43 +000025720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025722
25723#ifndef _OPENMP
25724 choke me
25725#endif
25726#include <omp.h>
25727int main () { return omp_get_num_threads (); }
25728
25729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025730if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025731 ac_cv_prog_cxx_openmp='none needed'
25732else
cristy8b350f62009-11-15 23:12:43 +000025733 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025734 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25735 ac_save_CXXFLAGS=$CXXFLAGS
25736 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25738/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025739
25740#ifndef _OPENMP
25741 choke me
25742#endif
25743#include <omp.h>
25744int main () { return omp_get_num_threads (); }
25745
25746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025747if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025748 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025749fi
cristy8b350f62009-11-15 23:12:43 +000025750rm -f core conftest.err conftest.$ac_objext \
25751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025752 CXXFLAGS=$ac_save_CXXFLAGS
25753 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25754 break
25755 fi
25756 done
25757fi
cristy8b350f62009-11-15 23:12:43 +000025758rm -f core conftest.err conftest.$ac_objext \
25759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025760fi
cristy8b350f62009-11-15 23:12:43 +000025761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025762$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25763 case $ac_cv_prog_cxx_openmp in #(
25764 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025765 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025766 *)
cristy8b350f62009-11-15 23:12:43 +000025767 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025768 esac
25769 fi
25770
25771
25772 ac_ext=c
25773ac_cpp='$CPP $CPPFLAGS'
25774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25776ac_compiler_gnu=$ac_cv_c_compiler_gnu
25777
25778
cristy8b350f62009-11-15 23:12:43 +000025779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025780$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25781 if \
cristy964cb7f2010-04-25 23:18:00 +000025782 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025783 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025784 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025785 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025786 have_magick_plus_plus='yes'
25787 else
25788 have_magick_plus_plus='no (failed tests)'
25789 fi
cristy09b53e12011-10-14 12:47:22 +000025790 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25791$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025792 LIBS="$OLIBS"
25793fi
cristy73bd4a52010-10-05 11:24:23 +000025794 if test "$have_magick_plus_plus" = 'yes'; then
25795 WITH_MAGICK_PLUS_PLUS_TRUE=
25796 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25797else
25798 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25799 WITH_MAGICK_PLUS_PLUS_FALSE=
25800fi
25801
cristy3ed852e2009-09-05 21:47:34 +000025802
25803# Only check for delegate libraries in subdirectories if requested.
25804if test "$enable_delegate_build" != 'no'; then
25805 # Check for delegate sub-directories and add -I & -L options as required.
25806 # This presumes that delegates are installed as detailed in the ImageMagick
25807 # README. If delegates are installed in a standard location where the
25808 # compiler will automatically find them then these options should not be
25809 # required.
25810
25811 #
25812 # Most delegates have includes in the same directory as the library, but not all...
25813 #
25814 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025815 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025816 if test -d "$builddir/$dir"; then
25817 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25818 else
25819 if test -d "$srcdirfull/$dir"; then
25820 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25821 fi
25822 fi
25823 done
25824
25825 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025826 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025827 if test -d "$builddir/$dir/.libs"; then
25828 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25829 else
25830 if test -d "$srcdirfull/$dir/.libs"; then
25831 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25832 fi
25833 fi
25834 if test -d "$builddir/$dir"; then
25835 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25836 else
25837 if test -d "$srcdirfull/$dir"; then
25838 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25839 fi
25840 fi
25841 done
25842fi
25843
25844# Assume that delegate headers reside under same directory as ImageMagick
25845# installation prefix.
25846MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25847
25848#
25849# Find the X11 RGB database
25850#
cristy8b350f62009-11-15 23:12:43 +000025851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025852$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025853if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025854 $as_echo_n "(cached) " >&6
25855else
25856 # Look for the header file in a standard set of common directories.
25857# Check X11 before X11Rn because it is often a symlink to the current release.
25858 for ac_dir in \
25859 /lib/usr/lib/X11 \
25860 /usr/X11/lib \
25861 /usr/X11R4/lib \
25862 /usr/X11R5/lib \
25863 /usr/X11R6/lib \
25864 /usr/X11R7/lib \
25865 /usr/X386/lib \
25866 /usr/XFree86/lib/X11 \
25867 /usr/athena/lib \
25868 /usr/lib \
25869 /usr/lib/X11 \
25870 /usr/lib/X11R4 \
25871 /usr/lib/X11R5 \
25872 /usr/lib/X11R6 \
25873 /usr/lib/X11R7 \
25874 /usr/local/X11/lib \
25875 /usr/local/X11R4/lib \
25876 /usr/local/X11R5/lib \
25877 /usr/local/X11R6/lib \
25878 /usr/local/lib \
25879 /usr/local/lib/X11 \
25880 /usr/local/lib/X11R4 \
25881 /usr/local/lib/X11R5 \
25882 /usr/local/lib/X11R6 \
25883 /usr/local/lib/X11R7 \
25884 /usr/local/x11r5/lib \
25885 /usr/lpp/Xamples/lib \
25886 /usr/openwin/lib \
25887 /usr/openwin/share/lib \
25888 /usr/unsupported/lib \
25889 /usr/x386/lib \
25890 ; do
25891 if test -f "$ac_dir/X11/rgb.txt"; then
25892 im_cv_x_configure="$ac_dir/X11/"
25893 break
25894 elif test -f "$ac_dir/rgb.txt"; then
25895 im_cv_x_configure="$ac_dir/"
25896 break
25897 fi
25898
25899 done
25900fi
cristy8b350f62009-11-15 23:12:43 +000025901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025902$as_echo "$im_cv_x_configure" >&6; }
25903X11_CONFIGURE_PATH="$im_cv_x_configure"
25904case "${build_os}" in
25905 mingw* )
25906 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25907 ;;
25908esac
25909
25910cat >>confdefs.h <<_ACEOF
25911#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25912_ACEOF
25913
25914
25915#
25916# Find OpenMP library
25917#
25918GOMP_LIBS=''
25919if test "$enable_openmp" != 'no'; then
25920 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025922$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025923if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025924 $as_echo_n "(cached) " >&6
25925else
25926 ac_check_lib_save_LIBS=$LIBS
25927LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025929/* end confdefs.h. */
25930
25931/* Override any GCC internal prototype to avoid an error.
25932 Use char because int might match the return type of a GCC
25933 builtin and then its argument prototype would still apply. */
25934#ifdef __cplusplus
25935extern "C"
25936#endif
25937char GOMP_parallel_start ();
25938int
25939main ()
25940{
25941return GOMP_parallel_start ();
25942 ;
25943 return 0;
25944}
25945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025947 ac_cv_lib_gomp_GOMP_parallel_start=yes
25948else
cristy8b350f62009-11-15 23:12:43 +000025949 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025950fi
cristy8b350f62009-11-15 23:12:43 +000025951rm -f core conftest.err conftest.$ac_objext \
25952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025953LIBS=$ac_check_lib_save_LIBS
25954fi
cristy8b350f62009-11-15 23:12:43 +000025955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025956$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025957if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025958 GOMP_LIBS="-lgomp"
25959fi
25960 # gcc
25961 else
cristy8b350f62009-11-15 23:12:43 +000025962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025963$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025964if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025965 $as_echo_n "(cached) " >&6
25966else
25967 ac_check_lib_save_LIBS=$LIBS
25968LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025970/* end confdefs.h. */
25971
25972/* Override any GCC internal prototype to avoid an error.
25973 Use char because int might match the return type of a GCC
25974 builtin and then its argument prototype would still apply. */
25975#ifdef __cplusplus
25976extern "C"
25977#endif
25978char sunw_mp_register_warn ();
25979int
25980main ()
25981{
25982return sunw_mp_register_warn ();
25983 ;
25984 return 0;
25985}
25986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25989else
cristy8b350f62009-11-15 23:12:43 +000025990 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025991fi
cristy8b350f62009-11-15 23:12:43 +000025992rm -f core conftest.err conftest.$ac_objext \
25993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025994LIBS=$ac_check_lib_save_LIBS
25995fi
cristy8b350f62009-11-15 23:12:43 +000025996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025998if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 GOMP_LIBS="-lmtsk"
26000fi
26001 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026003$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026004if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026005 $as_echo_n "(cached) " >&6
26006else
26007 ac_check_lib_save_LIBS=$LIBS
26008LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026010/* end confdefs.h. */
26011
26012/* Override any GCC internal prototype to avoid an error.
26013 Use char because int might match the return type of a GCC
26014 builtin and then its argument prototype would still apply. */
26015#ifdef __cplusplus
26016extern "C"
26017#endif
26018char _xlsmpFlush ();
26019int
26020main ()
26021{
26022return _xlsmpFlush ();
26023 ;
26024 return 0;
26025}
26026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026027if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026028 ac_cv_lib_xlsmp__xlsmpFlush=yes
26029else
cristy8b350f62009-11-15 23:12:43 +000026030 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026031fi
cristy8b350f62009-11-15 23:12:43 +000026032rm -f core conftest.err conftest.$ac_objext \
26033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026034LIBS=$ac_check_lib_save_LIBS
26035fi
cristy8b350f62009-11-15 23:12:43 +000026036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026037$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026038if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026039 GOMP_LIBS="-lxlsmp"
26040fi
26041 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026043$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026044if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026045 $as_echo_n "(cached) " >&6
26046else
26047 ac_check_lib_save_LIBS=$LIBS
26048LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026050/* end confdefs.h. */
26051
26052/* Override any GCC internal prototype to avoid an error.
26053 Use char because int might match the return type of a GCC
26054 builtin and then its argument prototype would still apply. */
26055#ifdef __cplusplus
26056extern "C"
26057#endif
26058char mp_destroy ();
26059int
26060main ()
26061{
26062return mp_destroy ();
26063 ;
26064 return 0;
26065}
26066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026067if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026068 ac_cv_lib_mp_mp_destroy=yes
26069else
cristy8b350f62009-11-15 23:12:43 +000026070 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026071fi
cristy8b350f62009-11-15 23:12:43 +000026072rm -f core conftest.err conftest.$ac_objext \
26073 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026074LIBS=$ac_check_lib_save_LIBS
26075fi
cristy8b350f62009-11-15 23:12:43 +000026076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026077$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026078if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026079 GOMP_LIBS="-lmp"
26080fi
26081 # SGI IRIX 6.5 MIPSpro C/C++
26082 fi
26083 LIBS="$GOMP_LIBS $LIBS"
26084fi
26085
26086
26087#
26088# Find Posix threads library
26089#
26090THREAD_LIBS=''
26091if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26092
26093 if test "x$PTHREAD_LIBS" = "x"; then
26094 case "${host_cpu}-${host_os}" in
26095 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026096
26097
26098
26099ac_ext=c
26100ac_cpp='$CPP $CPPFLAGS'
26101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26103ac_compiler_gnu=$ac_cv_c_compiler_gnu
26104
26105magick_pthread_lib_ok=no
26106
26107LIB=-lc_r
26108save_LIBS="$LIBS"
26109LIBS="$LIBS $LIB"
26110
26111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26112$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26114/* end confdefs.h. */
26115#include <pthread.h>
26116int
26117main ()
26118{
26119 pthread_t th;
26120 pthread_join(th, 0);
26121 pthread_attr_init(0);
26122 pthread_cleanup_push(0, 0);
26123 pthread_create(0,0,0,0);
26124 pthread_cleanup_pop(0);
26125 ;
26126 return 0;
26127}
26128_ACEOF
26129if ac_fn_c_try_link "$LINENO"; then :
26130 magick_pthread_lib_ok=yes
26131fi
26132rm -f core conftest.err conftest.$ac_objext \
26133 conftest$ac_exeext conftest.$ac_ext
26134
26135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26136$as_echo "${magick_pthread_lib_ok}" >&6; }
26137if test "$magick_pthread_lib_ok" = yes
26138then
26139 PTHREAD_LIBS=-lc_r
26140 :
26141else
26142
26143 :
26144fi
26145
26146LIBS="$save_LIBS"
26147
26148ac_ext=c
26149ac_cpp='$CPP $CPPFLAGS'
26150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152ac_compiler_gnu=$ac_cv_c_compiler_gnu
26153
26154 ;;
cristy3ed852e2009-09-05 21:47:34 +000026155 esac
26156 fi
26157
26158 for lib in pthread pthreads; do
26159 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026160
26161
26162
26163ac_ext=c
26164ac_cpp='$CPP $CPPFLAGS'
26165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26167ac_compiler_gnu=$ac_cv_c_compiler_gnu
26168
26169magick_pthread_lib_ok=no
26170
26171LIB=-l$lib
26172save_LIBS="$LIBS"
26173LIBS="$LIBS $LIB"
26174
26175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26176$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26178/* end confdefs.h. */
26179#include <pthread.h>
26180int
26181main ()
26182{
26183 pthread_t th;
26184 pthread_join(th, 0);
26185 pthread_attr_init(0);
26186 pthread_cleanup_push(0, 0);
26187 pthread_create(0,0,0,0);
26188 pthread_cleanup_pop(0);
26189 ;
26190 return 0;
26191}
26192_ACEOF
26193if ac_fn_c_try_link "$LINENO"; then :
26194 magick_pthread_lib_ok=yes
26195fi
26196rm -f core conftest.err conftest.$ac_objext \
26197 conftest$ac_exeext conftest.$ac_ext
26198
26199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26200$as_echo "${magick_pthread_lib_ok}" >&6; }
26201if test "$magick_pthread_lib_ok" = yes
26202then
26203 PTHREAD_LIBS=-l$lib
26204 :
26205else
26206
26207 :
26208fi
26209
26210LIBS="$save_LIBS"
26211
26212ac_ext=c
26213ac_cpp='$CPP $CPPFLAGS'
26214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26216ac_compiler_gnu=$ac_cv_c_compiler_gnu
26217
26218
cristy3ed852e2009-09-05 21:47:34 +000026219 fi
26220 done
26221
26222 THREAD_LIBS="$PTHREAD_LIBS"
26223 LIBS="$LIBS $THREAD_LIBS"
26224fi
26225
26226
26227#
26228# Check for umem.
26229#
26230have_umem='no'
26231UMEM_LIBS=''
26232if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026234$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026235 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26236$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026237 failed=0
26238 passed=0
cristy8b350f62009-11-15 23:12:43 +000026239 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026240if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026241 passed=`expr $passed + 1`
26242else
26243 failed=`expr $failed + 1`
26244fi
26245
26246
cristy8b350f62009-11-15 23:12:43 +000026247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026249if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026250 $as_echo_n "(cached) " >&6
26251else
26252 ac_check_lib_save_LIBS=$LIBS
26253LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026255/* end confdefs.h. */
26256
26257/* Override any GCC internal prototype to avoid an error.
26258 Use char because int might match the return type of a GCC
26259 builtin and then its argument prototype would still apply. */
26260#ifdef __cplusplus
26261extern "C"
26262#endif
26263char umem_alloc ();
26264int
26265main ()
26266{
26267return umem_alloc ();
26268 ;
26269 return 0;
26270}
26271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026272if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026273 ac_cv_lib_umem_umem_alloc=yes
26274else
cristy8b350f62009-11-15 23:12:43 +000026275 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026276fi
cristy8b350f62009-11-15 23:12:43 +000026277rm -f core conftest.err conftest.$ac_objext \
26278 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026279LIBS=$ac_check_lib_save_LIBS
26280fi
cristy8b350f62009-11-15 23:12:43 +000026281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026282$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026283if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026284 passed=`expr $passed + 1`
26285else
26286 failed=`expr $failed + 1`
26287fi
26288
cristy8b350f62009-11-15 23:12:43 +000026289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026290$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026291if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026292 $as_echo_n "(cached) " >&6
26293else
26294 ac_check_lib_save_LIBS=$LIBS
26295LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026297/* end confdefs.h. */
26298
26299/* Override any GCC internal prototype to avoid an error.
26300 Use char because int might match the return type of a GCC
26301 builtin and then its argument prototype would still apply. */
26302#ifdef __cplusplus
26303extern "C"
26304#endif
26305char umem_free ();
26306int
26307main ()
26308{
26309return umem_free ();
26310 ;
26311 return 0;
26312}
26313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 ac_cv_lib_umem_umem_free=yes
26316else
cristy8b350f62009-11-15 23:12:43 +000026317 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026318fi
cristy8b350f62009-11-15 23:12:43 +000026319rm -f core conftest.err conftest.$ac_objext \
26320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026321LIBS=$ac_check_lib_save_LIBS
26322fi
cristy8b350f62009-11-15 23:12:43 +000026323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026325if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026326 passed=`expr $passed + 1`
26327else
26328 failed=`expr $failed + 1`
26329fi
26330
cristy8b350f62009-11-15 23:12:43 +000026331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026332$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26333 if test $passed -gt 0; then
26334 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026335 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26336$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026337 have_umem='no (failed tests)'
26338 else
26339 UMEM_LIBS='-lumem'
26340 LIBS="$UMEM_LIBS $LIBS"
26341
cristy8b350f62009-11-15 23:12:43 +000026342$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026343
cristy09b53e12011-10-14 12:47:22 +000026344 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26345$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026346 have_umem='yes'
26347 fi
26348 else
cristy09b53e12011-10-14 12:47:22 +000026349 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26350$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026351 fi
26352fi
cristy73bd4a52010-10-05 11:24:23 +000026353 if test "$have_umem" = 'yes'; then
26354 HasUMEM_TRUE=
26355 HasUMEM_FALSE='#'
26356else
26357 HasUMEM_TRUE='#'
26358 HasUMEM_FALSE=
26359fi
26360
cristy3ed852e2009-09-05 21:47:34 +000026361
26362
26363#
26364# Add support for ccmalloc memory debugging library if requested
26365#
26366have_ccmalloc='no'
26367CCMALLOC_LIBS=''
26368if test "$enable_ccmalloc" = 'yes'; then
26369 # Extract the first word of "ccmalloc", so it can be a program name with args.
26370set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026373if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026374 $as_echo_n "(cached) " >&6
26375else
26376 case $CCMALLOCDelegate in
26377 [\\/]* | ?:[\\/]*)
26378 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26379 ;;
26380 *)
26381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26382for as_dir in $PATH
26383do
26384 IFS=$as_save_IFS
26385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26388 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026390 break 2
26391 fi
26392done
cristy8b350f62009-11-15 23:12:43 +000026393 done
cristy3ed852e2009-09-05 21:47:34 +000026394IFS=$as_save_IFS
26395
26396 ;;
26397esac
26398fi
26399CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26400if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026402$as_echo "$CCMALLOCDelegate" >&6; }
26403else
cristy8b350f62009-11-15 23:12:43 +000026404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026405$as_echo "no" >&6; }
26406fi
26407
26408
26409 if test -n "$CCMALLOCDelegate"; then
26410 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26411 OLIBS="$LIBS"
26412 # Assume that gcc is used with ccmalloc.
26413 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026416if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026417 $as_echo_n "(cached) " >&6
26418else
26419 ac_check_lib_save_LIBS=$LIBS
26420LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026422/* end confdefs.h. */
26423
26424/* Override any GCC internal prototype to avoid an error.
26425 Use char because int might match the return type of a GCC
26426 builtin and then its argument prototype would still apply. */
26427#ifdef __cplusplus
26428extern "C"
26429#endif
26430char ccmalloc_malloc ();
26431int
26432main ()
26433{
26434return ccmalloc_malloc ();
26435 ;
26436 return 0;
26437}
26438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026440 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26441else
cristy8b350f62009-11-15 23:12:43 +000026442 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026443fi
cristy8b350f62009-11-15 23:12:43 +000026444rm -f core conftest.err conftest.$ac_objext \
26445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026446LIBS=$ac_check_lib_save_LIBS
26447fi
cristy8b350f62009-11-15 23:12:43 +000026448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026449$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026450if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026451 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26452fi
26453
26454 if test -n "$CCMALLOC_LIBS"; then
26455 LIBS="$OLIBS"
26456 LIBS="$LIBS $CCMALLOC_LIBS"
26457 have_ccmalloc='yes'
26458 else
26459 LIBS="$OLIBS"
26460 fi
26461 fi
26462fi
26463
26464#
26465# Add support for efence memory debugging library if requested
26466#
26467if test "$enable_efence" = 'yes'; then
26468 EFENCE_LIBS='-lefence'
26469 LIBS="$EFENCE_LIBS $LIBS"
26470fi
26471
cristy3ed852e2009-09-05 21:47:34 +000026472
26473#
26474# Check for BZLIB
26475#
26476
26477
26478# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026479if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026480 withval=$with_bzlib; with_bzlib=$withval
26481else
26482 with_bzlib='yes'
26483fi
26484
26485
26486if test "$with_bzlib" != 'yes'; then
26487 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26488fi
26489
26490have_bzlib='no'
26491if test "$with_bzlib" != 'no'; then
26492 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026493 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26494$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026496$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026497 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26498$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026499 failed=0
26500 passed=0
26501 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026502 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026503if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 passed=`expr $passed + 1`
26505else
26506 failed=`expr $failed + 1`
26507fi
26508
26509
cristy8b350f62009-11-15 23:12:43 +000026510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026511$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026512if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026513 $as_echo_n "(cached) " >&6
26514else
26515 ac_check_lib_save_LIBS=$LIBS
26516LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026518/* end confdefs.h. */
26519
26520/* Override any GCC internal prototype to avoid an error.
26521 Use char because int might match the return type of a GCC
26522 builtin and then its argument prototype would still apply. */
26523#ifdef __cplusplus
26524extern "C"
26525#endif
26526char BZ2_bzDecompress ();
26527int
26528main ()
26529{
26530return BZ2_bzDecompress ();
26531 ;
26532 return 0;
26533}
26534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026536 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26537else
cristy8b350f62009-11-15 23:12:43 +000026538 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026539fi
cristy8b350f62009-11-15 23:12:43 +000026540rm -f core conftest.err conftest.$ac_objext \
26541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026542LIBS=$ac_check_lib_save_LIBS
26543fi
cristy8b350f62009-11-15 23:12:43 +000026544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026545$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026546if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026547 found_libbz=`expr $found_libbz + 1`
26548fi
26549
26550 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026552$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026553if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026554 $as_echo_n "(cached) " >&6
26555else
26556 ac_check_lib_save_LIBS=$LIBS
26557LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026559/* end confdefs.h. */
26560
26561/* Override any GCC internal prototype to avoid an error.
26562 Use char because int might match the return type of a GCC
26563 builtin and then its argument prototype would still apply. */
26564#ifdef __cplusplus
26565extern "C"
26566#endif
26567char _imp__BZ2_decompress ();
26568int
26569main ()
26570{
26571return _imp__BZ2_decompress ();
26572 ;
26573 return 0;
26574}
26575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026576if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026577 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26578else
cristy8b350f62009-11-15 23:12:43 +000026579 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026580fi
cristy8b350f62009-11-15 23:12:43 +000026581rm -f core conftest.err conftest.$ac_objext \
26582 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026583LIBS=$ac_check_lib_save_LIBS
26584fi
cristy8b350f62009-11-15 23:12:43 +000026585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026587if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026588 found_libbz=`expr $found_libbz + 1`
26589fi
26590
26591 fi
26592 if test $found_libbz -gt 0; then
26593 passed=`expr $passed + 1`
26594 else
26595 failed=`expr $failed + 1`
26596 fi
cristy8b350f62009-11-15 23:12:43 +000026597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026598$as_echo_n "checking if BZLIB package is complete... " >&6; }
26599 if test $passed -gt 0; then
26600 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026601 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26602$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026603 have_bzlib='no (failed tests)'
26604 else
26605 BZLIB_LIBS='-lbz2'
26606 LIBS="$BZLIB_LIBS $LIBS"
26607
cristy8b350f62009-11-15 23:12:43 +000026608$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026609
cristy09b53e12011-10-14 12:47:22 +000026610 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26611$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026612 have_bzlib='yes'
26613 fi
26614 else
cristy09b53e12011-10-14 12:47:22 +000026615 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26616$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026617 fi
26618fi
cristy73bd4a52010-10-05 11:24:23 +000026619 if test "$have_bzlib" = 'yes'; then
26620 BZLIB_DELEGATE_TRUE=
26621 BZLIB_DELEGATE_FALSE='#'
26622else
26623 BZLIB_DELEGATE_TRUE='#'
26624 BZLIB_DELEGATE_FALSE=
26625fi
26626
cristy3ed852e2009-09-05 21:47:34 +000026627
26628
26629#
26630# Find the X11 include and library directories.
26631#
26632IPC_LIBS=''
26633X11_LIBS=''
26634XEXT_LIBS=''
26635XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026637$as_echo_n "checking for X... " >&6; }
26638
26639
26640# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026641if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026642 withval=$with_x;
26643fi
26644
26645# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26646if test "x$with_x" = xno; then
26647 # The user explicitly disabled X.
26648 have_x=disabled
26649else
26650 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026651 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026652 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026653 $as_echo_n "(cached) " >&6
26654else
26655 # One or both of the vars are not set, and there is no cached value.
26656ac_x_includes=no ac_x_libraries=no
26657rm -f -r conftest.dir
26658if mkdir conftest.dir; then
26659 cd conftest.dir
26660 cat >Imakefile <<'_ACEOF'
26661incroot:
26662 @echo incroot='${INCROOT}'
26663usrlibdir:
26664 @echo usrlibdir='${USRLIBDIR}'
26665libdir:
26666 @echo libdir='${LIBDIR}'
26667_ACEOF
26668 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026669 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026670 for ac_var in incroot usrlibdir libdir; do
26671 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26672 done
26673 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26674 for ac_extension in a so sl dylib la dll; do
26675 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26676 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26677 ac_im_usrlibdir=$ac_im_libdir; break
26678 fi
26679 done
26680 # Screen out bogus values from the imake configuration. They are
26681 # bogus both because they are the default anyway, and because
26682 # using them would break gcc on systems where it needs fixed includes.
26683 case $ac_im_incroot in
26684 /usr/include) ac_x_includes= ;;
26685 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26686 esac
26687 case $ac_im_usrlibdir in
26688 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26689 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26690 esac
26691 fi
26692 cd ..
26693 rm -f -r conftest.dir
26694fi
26695
26696# Standard set of common directories for X headers.
26697# Check X11 before X11Rn because it is often a symlink to the current release.
26698ac_x_header_dirs='
26699/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026700/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026701/usr/X11R6/include
26702/usr/X11R5/include
26703/usr/X11R4/include
26704
26705/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026706/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026707/usr/include/X11R6
26708/usr/include/X11R5
26709/usr/include/X11R4
26710
26711/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026712/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026713/usr/local/X11R6/include
26714/usr/local/X11R5/include
26715/usr/local/X11R4/include
26716
26717/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026718/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026719/usr/local/include/X11R6
26720/usr/local/include/X11R5
26721/usr/local/include/X11R4
26722
26723/usr/X386/include
26724/usr/x386/include
26725/usr/XFree86/include/X11
26726
26727/usr/include
26728/usr/local/include
26729/usr/unsupported/include
26730/usr/athena/include
26731/usr/local/x11r5/include
26732/usr/lpp/Xamples/include
26733
26734/usr/openwin/include
26735/usr/openwin/share/include'
26736
26737if test "$ac_x_includes" = no; then
26738 # Guess where to find include files, by looking for Xlib.h.
26739 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026741/* end confdefs.h. */
26742#include <X11/Xlib.h>
26743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026744if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026745 # We can compile using X headers with no special include directory.
26746ac_x_includes=
26747else
cristyc7083c12009-10-14 03:16:55 +000026748 for ac_dir in $ac_x_header_dirs; do
26749 if test -r "$ac_dir/X11/Xlib.h"; then
26750 ac_x_includes=$ac_dir
26751 break
26752 fi
26753done
26754fi
cristyda16f162011-02-19 23:52:17 +000026755rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026756fi # $ac_x_includes = no
26757
26758if test "$ac_x_libraries" = no; then
26759 # Check for the libraries.
26760 # See if we find them without any special options.
26761 # Don't add to $LIBS permanently.
26762 ac_save_LIBS=$LIBS
26763 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026765/* end confdefs.h. */
26766#include <X11/Xlib.h>
26767int
26768main ()
26769{
26770XrmInitialize ()
26771 ;
26772 return 0;
26773}
26774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026775if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026776 LIBS=$ac_save_LIBS
26777# We can link X programs with no special library path.
26778ac_x_libraries=
26779else
cristy8b350f62009-11-15 23:12:43 +000026780 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026781for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26782do
26783 # Don't even attempt the hair of trying to link an X program!
26784 for ac_extension in a so sl dylib la dll; do
26785 if test -r "$ac_dir/libX11.$ac_extension"; then
26786 ac_x_libraries=$ac_dir
26787 break 2
26788 fi
26789 done
26790done
26791fi
cristy8b350f62009-11-15 23:12:43 +000026792rm -f core conftest.err conftest.$ac_objext \
26793 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026794fi # $ac_x_libraries = no
26795
26796case $ac_x_includes,$ac_x_libraries in #(
26797 no,* | *,no | *\'*)
26798 # Didn't find X, or a directory has "'" in its name.
26799 ac_cv_have_x="have_x=no";; #(
26800 *)
26801 # Record where we found X for the cache.
26802 ac_cv_have_x="have_x=yes\
26803 ac_x_includes='$ac_x_includes'\
26804 ac_x_libraries='$ac_x_libraries'"
26805esac
26806fi
26807;; #(
26808 *) have_x=yes;;
26809 esac
26810 eval "$ac_cv_have_x"
26811fi # $with_x != no
26812
26813if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026815$as_echo "$have_x" >&6; }
26816 no_x=yes
26817else
26818 # If each of the values was on the command line, it overrides each guess.
26819 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26820 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26821 # Update the cache value to reflect the command line values.
26822 ac_cv_have_x="have_x=yes\
26823 ac_x_includes='$x_includes'\
26824 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026826$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26827fi
26828
cristy3ed852e2009-09-05 21:47:34 +000026829if test "$no_x" = yes; then
26830 # Not all programs may use this symbol, but it does not hurt to define it.
26831
cristy8b350f62009-11-15 23:12:43 +000026832$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026833
26834 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26835else
26836 if test -n "$x_includes"; then
26837 X_CFLAGS="$X_CFLAGS -I$x_includes"
26838 fi
26839
26840 # It would also be nice to do this for all -L options, not just this one.
26841 if test -n "$x_libraries"; then
26842 X_LIBS="$X_LIBS -L$x_libraries"
26843 # For Solaris; some versions of Sun CC require a space after -R and
26844 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26847 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26848 ac_xsave_c_werror_flag=$ac_c_werror_flag
26849 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026851/* end confdefs.h. */
26852
26853int
26854main ()
26855{
26856
26857 ;
26858 return 0;
26859}
26860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026861if ac_fn_c_try_link "$LINENO"; then :
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026863$as_echo "no" >&6; }
26864 X_LIBS="$X_LIBS -R$x_libraries"
26865else
cristy8b350f62009-11-15 23:12:43 +000026866 LIBS="$ac_xsave_LIBS -R $x_libraries"
26867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026868/* end confdefs.h. */
26869
26870int
26871main ()
26872{
26873
26874 ;
26875 return 0;
26876}
26877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026878if ac_fn_c_try_link "$LINENO"; then :
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo "yes" >&6; }
26881 X_LIBS="$X_LIBS -R $x_libraries"
26882else
cristy8b350f62009-11-15 23:12:43 +000026883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026884$as_echo "neither works" >&6; }
26885fi
cristy8b350f62009-11-15 23:12:43 +000026886rm -f core conftest.err conftest.$ac_objext \
26887 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026888fi
cristy8b350f62009-11-15 23:12:43 +000026889rm -f core conftest.err conftest.$ac_objext \
26890 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026891 ac_c_werror_flag=$ac_xsave_c_werror_flag
26892 LIBS=$ac_xsave_LIBS
26893 fi
26894
26895 # Check for system-dependent libraries X programs must link with.
26896 # Do this before checking for the system-independent R6 libraries
26897 # (-lICE), since we may need -lsocket or whatever for X linking.
26898
26899 if test "$ISC" = yes; then
26900 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26901 else
26902 # Martyn Johnson says this is needed for Ultrix, if the X
26903 # libraries were built with DECnet support. And Karl Berry says
26904 # the Alpha needs dnet_stub (dnet does not exist).
26905 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026907/* end confdefs.h. */
26908
26909/* Override any GCC internal prototype to avoid an error.
26910 Use char because int might match the return type of a GCC
26911 builtin and then its argument prototype would still apply. */
26912#ifdef __cplusplus
26913extern "C"
26914#endif
26915char XOpenDisplay ();
26916int
26917main ()
26918{
26919return XOpenDisplay ();
26920 ;
26921 return 0;
26922}
26923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026924if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026925
cristy8b350f62009-11-15 23:12:43 +000026926else
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026929if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026930 $as_echo_n "(cached) " >&6
26931else
26932 ac_check_lib_save_LIBS=$LIBS
26933LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026935/* end confdefs.h. */
26936
26937/* Override any GCC internal prototype to avoid an error.
26938 Use char because int might match the return type of a GCC
26939 builtin and then its argument prototype would still apply. */
26940#ifdef __cplusplus
26941extern "C"
26942#endif
26943char dnet_ntoa ();
26944int
26945main ()
26946{
26947return dnet_ntoa ();
26948 ;
26949 return 0;
26950}
26951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026952if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026953 ac_cv_lib_dnet_dnet_ntoa=yes
26954else
cristy8b350f62009-11-15 23:12:43 +000026955 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026956fi
cristy8b350f62009-11-15 23:12:43 +000026957rm -f core conftest.err conftest.$ac_objext \
26958 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026959LIBS=$ac_check_lib_save_LIBS
26960fi
cristy8b350f62009-11-15 23:12:43 +000026961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026963if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026964 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26965fi
26966
26967 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026969$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026970if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026971 $as_echo_n "(cached) " >&6
26972else
26973 ac_check_lib_save_LIBS=$LIBS
26974LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026976/* end confdefs.h. */
26977
26978/* Override any GCC internal prototype to avoid an error.
26979 Use char because int might match the return type of a GCC
26980 builtin and then its argument prototype would still apply. */
26981#ifdef __cplusplus
26982extern "C"
26983#endif
26984char dnet_ntoa ();
26985int
26986main ()
26987{
26988return dnet_ntoa ();
26989 ;
26990 return 0;
26991}
26992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026994 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26995else
cristy8b350f62009-11-15 23:12:43 +000026996 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026997fi
cristy8b350f62009-11-15 23:12:43 +000026998rm -f core conftest.err conftest.$ac_objext \
26999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027000LIBS=$ac_check_lib_save_LIBS
27001fi
cristy8b350f62009-11-15 23:12:43 +000027002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027003$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027004if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027005 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27006fi
27007
27008 fi
27009fi
cristy8b350f62009-11-15 23:12:43 +000027010rm -f core conftest.err conftest.$ac_objext \
27011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027012 LIBS="$ac_xsave_LIBS"
27013
27014 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27015 # to get the SysV transport functions.
27016 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27017 # needs -lnsl.
27018 # The nsl library prevents programs from opening the X display
27019 # on Irix 5.2, according to T.E. Dickey.
27020 # The functions gethostbyname, getservbyname, and inet_addr are
27021 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027022 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027023if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027024
cristy3ed852e2009-09-05 21:47:34 +000027025fi
27026
cristy3ed852e2009-09-05 21:47:34 +000027027 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027029$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027030if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027031 $as_echo_n "(cached) " >&6
27032else
27033 ac_check_lib_save_LIBS=$LIBS
27034LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027036/* end confdefs.h. */
27037
27038/* Override any GCC internal prototype to avoid an error.
27039 Use char because int might match the return type of a GCC
27040 builtin and then its argument prototype would still apply. */
27041#ifdef __cplusplus
27042extern "C"
27043#endif
27044char gethostbyname ();
27045int
27046main ()
27047{
27048return gethostbyname ();
27049 ;
27050 return 0;
27051}
27052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027054 ac_cv_lib_nsl_gethostbyname=yes
27055else
cristy8b350f62009-11-15 23:12:43 +000027056 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027057fi
cristy8b350f62009-11-15 23:12:43 +000027058rm -f core conftest.err conftest.$ac_objext \
27059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027060LIBS=$ac_check_lib_save_LIBS
27061fi
cristy8b350f62009-11-15 23:12:43 +000027062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027063$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027064if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27066fi
27067
27068 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027070$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027071if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027072 $as_echo_n "(cached) " >&6
27073else
27074 ac_check_lib_save_LIBS=$LIBS
27075LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027077/* end confdefs.h. */
27078
27079/* Override any GCC internal prototype to avoid an error.
27080 Use char because int might match the return type of a GCC
27081 builtin and then its argument prototype would still apply. */
27082#ifdef __cplusplus
27083extern "C"
27084#endif
27085char gethostbyname ();
27086int
27087main ()
27088{
27089return gethostbyname ();
27090 ;
27091 return 0;
27092}
27093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027094if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027095 ac_cv_lib_bsd_gethostbyname=yes
27096else
cristy8b350f62009-11-15 23:12:43 +000027097 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027098fi
cristy8b350f62009-11-15 23:12:43 +000027099rm -f core conftest.err conftest.$ac_objext \
27100 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027101LIBS=$ac_check_lib_save_LIBS
27102fi
cristy8b350f62009-11-15 23:12:43 +000027103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027104$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027105if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027106 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27107fi
27108
27109 fi
27110 fi
27111
27112 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27113 # socket/setsockopt and other routines are undefined under SCO ODT
27114 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27115 # on later versions), says Simon Leinen: it contains gethostby*
27116 # variants that don't use the name server (or something). -lsocket
27117 # must be given before -lnsl if both are needed. We assume that
27118 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027119 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027120if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027121
cristy3ed852e2009-09-05 21:47:34 +000027122fi
27123
cristy3ed852e2009-09-05 21:47:34 +000027124 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027127if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027128 $as_echo_n "(cached) " >&6
27129else
27130 ac_check_lib_save_LIBS=$LIBS
27131LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027133/* end confdefs.h. */
27134
27135/* Override any GCC internal prototype to avoid an error.
27136 Use char because int might match the return type of a GCC
27137 builtin and then its argument prototype would still apply. */
27138#ifdef __cplusplus
27139extern "C"
27140#endif
27141char connect ();
27142int
27143main ()
27144{
27145return connect ();
27146 ;
27147 return 0;
27148}
27149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027150if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027151 ac_cv_lib_socket_connect=yes
27152else
cristy8b350f62009-11-15 23:12:43 +000027153 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027154fi
cristy8b350f62009-11-15 23:12:43 +000027155rm -f core conftest.err conftest.$ac_objext \
27156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027157LIBS=$ac_check_lib_save_LIBS
27158fi
cristy8b350f62009-11-15 23:12:43 +000027159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027160$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027161if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027162 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27163fi
27164
27165 fi
27166
27167 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027168 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027169if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027170
cristy3ed852e2009-09-05 21:47:34 +000027171fi
27172
cristy3ed852e2009-09-05 21:47:34 +000027173 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027175$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027176if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027177 $as_echo_n "(cached) " >&6
27178else
27179 ac_check_lib_save_LIBS=$LIBS
27180LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027182/* end confdefs.h. */
27183
27184/* Override any GCC internal prototype to avoid an error.
27185 Use char because int might match the return type of a GCC
27186 builtin and then its argument prototype would still apply. */
27187#ifdef __cplusplus
27188extern "C"
27189#endif
27190char remove ();
27191int
27192main ()
27193{
27194return remove ();
27195 ;
27196 return 0;
27197}
27198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027199if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027200 ac_cv_lib_posix_remove=yes
27201else
cristy8b350f62009-11-15 23:12:43 +000027202 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027203fi
cristy8b350f62009-11-15 23:12:43 +000027204rm -f core conftest.err conftest.$ac_objext \
27205 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027206LIBS=$ac_check_lib_save_LIBS
27207fi
cristy8b350f62009-11-15 23:12:43 +000027208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027210if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27212fi
27213
27214 fi
27215
27216 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027217 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027218if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027219
cristy3ed852e2009-09-05 21:47:34 +000027220fi
27221
cristy3ed852e2009-09-05 21:47:34 +000027222 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027225if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 $as_echo_n "(cached) " >&6
27227else
27228 ac_check_lib_save_LIBS=$LIBS
27229LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027231/* end confdefs.h. */
27232
27233/* Override any GCC internal prototype to avoid an error.
27234 Use char because int might match the return type of a GCC
27235 builtin and then its argument prototype would still apply. */
27236#ifdef __cplusplus
27237extern "C"
27238#endif
27239char shmat ();
27240int
27241main ()
27242{
27243return shmat ();
27244 ;
27245 return 0;
27246}
27247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027249 ac_cv_lib_ipc_shmat=yes
27250else
cristy8b350f62009-11-15 23:12:43 +000027251 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027252fi
cristy8b350f62009-11-15 23:12:43 +000027253rm -f core conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027255LIBS=$ac_check_lib_save_LIBS
27256fi
cristy8b350f62009-11-15 23:12:43 +000027257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027258$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027259if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027260 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27261fi
27262
27263 fi
27264 fi
27265
27266 # Check for libraries that X11R6 Xt/Xaw programs need.
27267 ac_save_LDFLAGS=$LDFLAGS
27268 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27269 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27270 # check for ICE first), but we must link in the order -lSM -lICE or
27271 # we get undefined symbols. So assume we have SM if we have ICE.
27272 # These have to be linked with before -lX11, unlike the other
27273 # libraries we check for below, so use a different variable.
27274 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027276$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027277if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027278 $as_echo_n "(cached) " >&6
27279else
27280 ac_check_lib_save_LIBS=$LIBS
27281LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027283/* end confdefs.h. */
27284
27285/* Override any GCC internal prototype to avoid an error.
27286 Use char because int might match the return type of a GCC
27287 builtin and then its argument prototype would still apply. */
27288#ifdef __cplusplus
27289extern "C"
27290#endif
27291char IceConnectionNumber ();
27292int
27293main ()
27294{
27295return IceConnectionNumber ();
27296 ;
27297 return 0;
27298}
27299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027301 ac_cv_lib_ICE_IceConnectionNumber=yes
27302else
cristy8b350f62009-11-15 23:12:43 +000027303 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027304fi
cristy8b350f62009-11-15 23:12:43 +000027305rm -f core conftest.err conftest.$ac_objext \
27306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027307LIBS=$ac_check_lib_save_LIBS
27308fi
cristy8b350f62009-11-15 23:12:43 +000027309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027310$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027311if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27313fi
27314
27315 LDFLAGS=$ac_save_LDFLAGS
27316
27317fi
27318
27319if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027320 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27321$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027323$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027324 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27325$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027326 LDFLAGS="$LDFLAGS $X_LIBS"
27327 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27328 LIBS="$X11_LIBS $LIBS"
27329 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27330
27331
cristy8b350f62009-11-15 23:12:43 +000027332$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027333
27334 #
27335 # Check for X11 shared memory extension
27336 #
27337 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027338 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027339if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 have_shmctl='yes'
27341fi
27342
27343 if test "$have_shmctl" != 'yes'; then
27344 PERSIST_LIBS=$LIBS
27345 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027347/* end confdefs.h. */
27348
27349/* Override any GCC internal prototype to avoid an error.
27350 Use char because int might match the return type of a GCC
27351 builtin and then its argument prototype would still apply. */
27352#ifdef __cplusplus
27353extern "C"
27354#endif
27355char shmctl ();
27356int
27357main ()
27358{
27359return shmctl ();
27360 ;
27361 return 0;
27362}
27363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027365 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027366fi
cristy8b350f62009-11-15 23:12:43 +000027367rm -f core conftest.err conftest.$ac_objext \
27368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027369 LIBS=$PERSIST_LIBS
27370 fi
27371
27372 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027374$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027375if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 $as_echo_n "(cached) " >&6
27377else
27378 ac_check_lib_save_LIBS=$LIBS
27379LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027381/* end confdefs.h. */
27382
27383/* Override any GCC internal prototype to avoid an error.
27384 Use char because int might match the return type of a GCC
27385 builtin and then its argument prototype would still apply. */
27386#ifdef __cplusplus
27387extern "C"
27388#endif
27389char XShmAttach ();
27390int
27391main ()
27392{
27393return XShmAttach ();
27394 ;
27395 return 0;
27396}
27397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 ac_cv_lib_Xext_XShmAttach=yes
27400else
cristy8b350f62009-11-15 23:12:43 +000027401 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027402fi
cristy8b350f62009-11-15 23:12:43 +000027403rm -f core conftest.err conftest.$ac_objext \
27404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027405LIBS=$ac_check_lib_save_LIBS
27406fi
cristy8b350f62009-11-15 23:12:43 +000027407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027408$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027409if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027411$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027412
27413fi
27414
27415 fi
27416
27417 #
27418 # Check for X11 shape extension
27419 #
cristy8b350f62009-11-15 23:12:43 +000027420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027421$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027422if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027423 $as_echo_n "(cached) " >&6
27424else
27425 ac_check_lib_save_LIBS=$LIBS
27426LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027428/* end confdefs.h. */
27429
27430/* Override any GCC internal prototype to avoid an error.
27431 Use char because int might match the return type of a GCC
27432 builtin and then its argument prototype would still apply. */
27433#ifdef __cplusplus
27434extern "C"
27435#endif
27436char XShapeCombineMask ();
27437int
27438main ()
27439{
27440return XShapeCombineMask ();
27441 ;
27442 return 0;
27443}
27444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027446 ac_cv_lib_Xext_XShapeCombineMask=yes
27447else
cristy8b350f62009-11-15 23:12:43 +000027448 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027449fi
cristy8b350f62009-11-15 23:12:43 +000027450rm -f core conftest.err conftest.$ac_objext \
27451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027452LIBS=$ac_check_lib_save_LIBS
27453fi
cristy8b350f62009-11-15 23:12:43 +000027454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027455$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027456if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027457 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027458$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027459
27460fi
27461
cristy8b350f62009-11-15 23:12:43 +000027462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027463$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027464if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027465 $as_echo_n "(cached) " >&6
27466else
27467 ac_check_lib_save_LIBS=$LIBS
27468LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027470/* end confdefs.h. */
27471
27472/* Override any GCC internal prototype to avoid an error.
27473 Use char because int might match the return type of a GCC
27474 builtin and then its argument prototype would still apply. */
27475#ifdef __cplusplus
27476extern "C"
27477#endif
27478char XtSetEventDispatcher ();
27479int
27480main ()
27481{
27482return XtSetEventDispatcher ();
27483 ;
27484 return 0;
27485}
27486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027487if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27489else
cristy8b350f62009-11-15 23:12:43 +000027490 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027491fi
cristy8b350f62009-11-15 23:12:43 +000027492rm -f core conftest.err conftest.$ac_objext \
27493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027494LIBS=$ac_check_lib_save_LIBS
27495fi
cristy8b350f62009-11-15 23:12:43 +000027496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027497$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027498if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027499 XT_LIBS='-lXt'
27500fi
27501
27502 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27503fi
27504if test "$no_x" != 'yes'; then
27505 have_x='yes'
27506else
27507 have_x='no'
27508fi
cristy73bd4a52010-10-05 11:24:23 +000027509 if test "$have_x" = 'yes'; then
27510 X11_DELEGATE_TRUE=
27511 X11_DELEGATE_FALSE='#'
27512else
27513 X11_DELEGATE_TRUE='#'
27514 X11_DELEGATE_FALSE=
27515fi
27516
cristy3ed852e2009-09-05 21:47:34 +000027517
27518
27519
27520
27521#
27522# Check for ZLIB
27523#
27524
27525# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027526if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027527 withval=$with_zlib; with_zlib=$withval
27528else
27529 with_zlib='yes'
27530fi
27531
27532
27533if test "$with_zlib" != 'yes'; then
27534 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27535fi
27536
27537have_zlib='no'
27538ZLIB_LIBS=''
27539if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027540 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27541$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027543$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027544 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27545$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027546 ZLIB_LIBS=''
27547 failed=0
27548 passed=0
cristy8b350f62009-11-15 23:12:43 +000027549 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027550if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027551 passed=`expr $passed + 1`
27552else
27553 failed=`expr $failed + 1`
27554fi
27555
27556
cristy8b350f62009-11-15 23:12:43 +000027557 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027558if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 passed=`expr $passed + 1`
27560else
27561 failed=`expr $failed + 1`
27562fi
27563
27564
cristy8b350f62009-11-15 23:12:43 +000027565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027567if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027568 $as_echo_n "(cached) " >&6
27569else
27570 ac_check_lib_save_LIBS=$LIBS
27571LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027573/* end confdefs.h. */
27574
27575/* Override any GCC internal prototype to avoid an error.
27576 Use char because int might match the return type of a GCC
27577 builtin and then its argument prototype would still apply. */
27578#ifdef __cplusplus
27579extern "C"
27580#endif
27581char compress ();
27582int
27583main ()
27584{
27585return compress ();
27586 ;
27587 return 0;
27588}
27589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027590if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027591 ac_cv_lib_z_compress=yes
27592else
cristy8b350f62009-11-15 23:12:43 +000027593 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027594fi
cristy8b350f62009-11-15 23:12:43 +000027595rm -f core conftest.err conftest.$ac_objext \
27596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027597LIBS=$ac_check_lib_save_LIBS
27598fi
cristy8b350f62009-11-15 23:12:43 +000027599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027600$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027601if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027602 passed=`expr $passed + 1`
27603else
27604 failed=`expr $failed + 1`
27605fi
27606
cristy8b350f62009-11-15 23:12:43 +000027607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027608$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027609if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 $as_echo_n "(cached) " >&6
27611else
27612 ac_check_lib_save_LIBS=$LIBS
27613LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027615/* end confdefs.h. */
27616
27617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27620#ifdef __cplusplus
27621extern "C"
27622#endif
27623char uncompress ();
27624int
27625main ()
27626{
27627return uncompress ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 ac_cv_lib_z_uncompress=yes
27634else
cristy8b350f62009-11-15 23:12:43 +000027635 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027636fi
cristy8b350f62009-11-15 23:12:43 +000027637rm -f core conftest.err conftest.$ac_objext \
27638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027639LIBS=$ac_check_lib_save_LIBS
27640fi
cristy8b350f62009-11-15 23:12:43 +000027641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027642$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027643if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 passed=`expr $passed + 1`
27645else
27646 failed=`expr $failed + 1`
27647fi
27648
cristy8b350f62009-11-15 23:12:43 +000027649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027651if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 $as_echo_n "(cached) " >&6
27653else
27654 ac_check_lib_save_LIBS=$LIBS
27655LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657/* end confdefs.h. */
27658
27659/* Override any GCC internal prototype to avoid an error.
27660 Use char because int might match the return type of a GCC
27661 builtin and then its argument prototype would still apply. */
27662#ifdef __cplusplus
27663extern "C"
27664#endif
27665char deflate ();
27666int
27667main ()
27668{
27669return deflate ();
27670 ;
27671 return 0;
27672}
27673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 ac_cv_lib_z_deflate=yes
27676else
cristy8b350f62009-11-15 23:12:43 +000027677 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027678fi
cristy8b350f62009-11-15 23:12:43 +000027679rm -f core conftest.err conftest.$ac_objext \
27680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027681LIBS=$ac_check_lib_save_LIBS
27682fi
cristy8b350f62009-11-15 23:12:43 +000027683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027685if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 passed=`expr $passed + 1`
27687else
27688 failed=`expr $failed + 1`
27689fi
27690
cristy8b350f62009-11-15 23:12:43 +000027691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027693if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 $as_echo_n "(cached) " >&6
27695else
27696 ac_check_lib_save_LIBS=$LIBS
27697LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027699/* end confdefs.h. */
27700
27701/* Override any GCC internal prototype to avoid an error.
27702 Use char because int might match the return type of a GCC
27703 builtin and then its argument prototype would still apply. */
27704#ifdef __cplusplus
27705extern "C"
27706#endif
27707char inflate ();
27708int
27709main ()
27710{
27711return inflate ();
27712 ;
27713 return 0;
27714}
27715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027716if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027717 ac_cv_lib_z_inflate=yes
27718else
cristy8b350f62009-11-15 23:12:43 +000027719 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027720fi
cristy8b350f62009-11-15 23:12:43 +000027721rm -f core conftest.err conftest.$ac_objext \
27722 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027723LIBS=$ac_check_lib_save_LIBS
27724fi
cristy8b350f62009-11-15 23:12:43 +000027725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027726$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027727if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027728 passed=`expr $passed + 1`
27729else
27730 failed=`expr $failed + 1`
27731fi
27732
cristy8b350f62009-11-15 23:12:43 +000027733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027734$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027735if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027736 $as_echo_n "(cached) " >&6
27737else
27738 ac_check_lib_save_LIBS=$LIBS
27739LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027741/* end confdefs.h. */
27742
27743/* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27746#ifdef __cplusplus
27747extern "C"
27748#endif
27749char gzseek ();
27750int
27751main ()
27752{
27753return gzseek ();
27754 ;
27755 return 0;
27756}
27757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027759 ac_cv_lib_z_gzseek=yes
27760else
cristy8b350f62009-11-15 23:12:43 +000027761 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027762fi
cristy8b350f62009-11-15 23:12:43 +000027763rm -f core conftest.err conftest.$ac_objext \
27764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027765LIBS=$ac_check_lib_save_LIBS
27766fi
cristy8b350f62009-11-15 23:12:43 +000027767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027769if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027770 passed=`expr $passed + 1`
27771else
27772 failed=`expr $failed + 1`
27773fi
27774
cristy8b350f62009-11-15 23:12:43 +000027775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027777if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 $as_echo_n "(cached) " >&6
27779else
27780 ac_check_lib_save_LIBS=$LIBS
27781LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027783/* end confdefs.h. */
27784
27785/* Override any GCC internal prototype to avoid an error.
27786 Use char because int might match the return type of a GCC
27787 builtin and then its argument prototype would still apply. */
27788#ifdef __cplusplus
27789extern "C"
27790#endif
27791char gztell ();
27792int
27793main ()
27794{
27795return gztell ();
27796 ;
27797 return 0;
27798}
27799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027800if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027801 ac_cv_lib_z_gztell=yes
27802else
cristy8b350f62009-11-15 23:12:43 +000027803 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027804fi
cristy8b350f62009-11-15 23:12:43 +000027805rm -f core conftest.err conftest.$ac_objext \
27806 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027807LIBS=$ac_check_lib_save_LIBS
27808fi
cristy8b350f62009-11-15 23:12:43 +000027809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027810$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027811if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027812 passed=`expr $passed + 1`
27813else
27814 failed=`expr $failed + 1`
27815fi
27816
cristy8b350f62009-11-15 23:12:43 +000027817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo_n "checking if ZLIB package is complete... " >&6; }
27819 if test $passed -gt 0; then
27820 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027821 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27822$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027823 have_zlib='no (failed tests)'
27824 else
27825 ZLIB_LIBS='-lz'
27826 LIBS="$ZLIB_LIBS $LIBS"
27827
cristy8b350f62009-11-15 23:12:43 +000027828$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027829
cristy09b53e12011-10-14 12:47:22 +000027830 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27831$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027832 have_zlib='yes'
27833 fi
27834 else
cristy09b53e12011-10-14 12:47:22 +000027835 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27836$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027837 fi
27838fi
cristy73bd4a52010-10-05 11:24:23 +000027839 if test "$have_zlib" = 'yes'; then
27840 ZLIB_DELEGATE_TRUE=
27841 ZLIB_DELEGATE_FALSE='#'
27842else
27843 ZLIB_DELEGATE_TRUE='#'
27844 ZLIB_DELEGATE_FALSE=
27845fi
27846
cristy3ed852e2009-09-05 21:47:34 +000027847
27848
27849#
27850# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27851#
27852LIB_DL=''
27853if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027855$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027856if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027857 $as_echo_n "(cached) " >&6
27858else
27859 ac_check_lib_save_LIBS=$LIBS
27860LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027862/* end confdefs.h. */
27863
27864/* Override any GCC internal prototype to avoid an error.
27865 Use char because int might match the return type of a GCC
27866 builtin and then its argument prototype would still apply. */
27867#ifdef __cplusplus
27868extern "C"
27869#endif
27870char dlopen ();
27871int
27872main ()
27873{
27874return dlopen ();
27875 ;
27876 return 0;
27877}
27878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027879if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027880 ac_cv_lib_dl_dlopen=yes
27881else
cristy8b350f62009-11-15 23:12:43 +000027882 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027883fi
cristy8b350f62009-11-15 23:12:43 +000027884rm -f core conftest.err conftest.$ac_objext \
27885 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027886LIBS=$ac_check_lib_save_LIBS
27887fi
cristy8b350f62009-11-15 23:12:43 +000027888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027889$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027890if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027891 LIB_DL='-ldl'
27892fi
27893
27894 LIBS="$LIB_DL $LIBS"
27895fi
27896
27897
27898
27899#
27900# Check for Autotrace delegate library.
27901#
27902
27903# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027904if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027905 withval=$with_autotrace; with_autotrace=$withval
27906else
27907 with_autotrace='no'
27908fi
27909
27910
27911if test "$with_autotrace" != 'yes'; then
27912 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27913fi
27914
27915have_autotrace='no'
27916AUTOTRACE_CFLAGS=""
27917AUTOTRACE_LIBS=""
27918AUTOTRACE_PKG=""
27919if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27921$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027922
27923pkg_failed=no
27924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27925$as_echo_n "checking for AUTOTRACE... " >&6; }
27926
27927if test -n "$AUTOTRACE_CFLAGS"; then
27928 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27929 elif test -n "$PKG_CONFIG"; then
27930 if test -n "$PKG_CONFIG" && \
27931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27932 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27933 ac_status=$?
27934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27935 test $ac_status = 0; }; then
27936 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27937else
27938 pkg_failed=yes
27939fi
27940 else
27941 pkg_failed=untried
27942fi
27943if test -n "$AUTOTRACE_LIBS"; then
27944 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27945 elif test -n "$PKG_CONFIG"; then
27946 if test -n "$PKG_CONFIG" && \
27947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27948 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27949 ac_status=$?
27950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27951 test $ac_status = 0; }; then
27952 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27953else
27954 pkg_failed=yes
27955fi
27956 else
27957 pkg_failed=untried
27958fi
27959
27960
27961
27962if test $pkg_failed = yes; then
27963
27964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27965 _pkg_short_errors_supported=yes
27966else
27967 _pkg_short_errors_supported=no
27968fi
27969 if test $_pkg_short_errors_supported = yes; then
27970 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27971 else
27972 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27973 fi
27974 # Put the nasty error message in config.log where it belongs
27975 echo "$AUTOTRACE_PKG_ERRORS" >&5
27976
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27978$as_echo "no" >&6; }
27979 have_autotrace=no
27980elif test $pkg_failed = untried; then
27981 have_autotrace=no
27982else
27983 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27984 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27986$as_echo "yes" >&6; }
27987 have_autotrace=yes
27988fi
cristy09b53e12011-10-14 12:47:22 +000027989 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27990$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027991fi
27992
27993if test "$have_autotrace" = 'yes'; then
27994 failed=0
27995
cristy8b350f62009-11-15 23:12:43 +000027996$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027997
27998 if test "$with_modules" = 'no'; then
27999 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28000 fi
28001fi
28002
cristy73bd4a52010-10-05 11:24:23 +000028003 if test "$have_autotrace" = 'yes'; then
28004 AUTOTRACE_DELEGATE_TRUE=
28005 AUTOTRACE_DELEGATE_FALSE='#'
28006else
28007 AUTOTRACE_DELEGATE_TRUE='#'
28008 AUTOTRACE_DELEGATE_FALSE=
28009fi
28010
cristy3ed852e2009-09-05 21:47:34 +000028011
28012
28013
28014
28015#
28016# Check for Display Postscript delegate library.
28017#
28018
28019# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028020if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028021 withval=$with_dps; with_dps=$withval
28022else
28023 with_dps='yes'
28024fi
28025
28026
28027if test "$with_dps" != 'yes'; then
28028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28029fi
28030
28031have_dps='no'
28032DPS_LIBS=''
28033if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028034 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28035$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028037$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028038 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28039$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028040 failed=0
28041 passed=0
28042 PERSIST_CPPFLAGS="$CPPFLAGS"
28043 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028044 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 +000028045if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028046 passed=`expr $passed + 1`
28047else
28048 failed=`expr $failed + 1`
28049fi
28050
28051
28052 # DPS issues:
28053 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28054 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28055 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28056 # ImageMagick itself doesn't use -lXt.
28057 have_libdps='no'
28058 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028060$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028061if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 $as_echo_n "(cached) " >&6
28063else
28064 ac_check_lib_save_LIBS=$LIBS
28065LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028067/* end confdefs.h. */
28068
28069/* Override any GCC internal prototype to avoid an error.
28070 Use char because int might match the return type of a GCC
28071 builtin and then its argument prototype would still apply. */
28072#ifdef __cplusplus
28073extern "C"
28074#endif
28075char DPSInitialize ();
28076int
28077main ()
28078{
28079return DPSInitialize ();
28080 ;
28081 return 0;
28082}
28083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028085 ac_cv_lib_dps_DPSInitialize=yes
28086else
cristy8b350f62009-11-15 23:12:43 +000028087 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028088fi
cristy8b350f62009-11-15 23:12:43 +000028089rm -f core conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028091LIBS=$ac_check_lib_save_LIBS
28092fi
cristy8b350f62009-11-15 23:12:43 +000028093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028095if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028096 have_libdps='yes'
28097else
28098 have_libdps='no'
28099fi
28100
28101 if test "$have_libdps" != 'yes'; then
28102 # Unset cache variable so we can try again.
28103 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028105$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028106if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028107 $as_echo_n "(cached) " >&6
28108else
28109 ac_check_lib_save_LIBS=$LIBS
28110LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028112/* end confdefs.h. */
28113
28114/* Override any GCC internal prototype to avoid an error.
28115 Use char because int might match the return type of a GCC
28116 builtin and then its argument prototype would still apply. */
28117#ifdef __cplusplus
28118extern "C"
28119#endif
28120char DPSInitialize ();
28121int
28122main ()
28123{
28124return DPSInitialize ();
28125 ;
28126 return 0;
28127}
28128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028129if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028130 ac_cv_lib_dps_DPSInitialize=yes
28131else
cristy8b350f62009-11-15 23:12:43 +000028132 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028133fi
cristy8b350f62009-11-15 23:12:43 +000028134rm -f core conftest.err conftest.$ac_objext \
28135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028136LIBS=$ac_check_lib_save_LIBS
28137fi
cristy8b350f62009-11-15 23:12:43 +000028138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028139$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028140if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028141 have_libdps='yes'
28142else
28143 have_libdps='no'
28144fi
28145
28146 if test "$have_libdps" = 'yes'; then
28147 LIBDPS_XT='-lXt'
28148 fi
28149 fi
28150 if test "$have_libdps" = 'yes'; then
28151 passed=`expr $passed + 1`
28152 else
28153 failed=`expr $failed + 1`
28154 fi
cristy8b350f62009-11-15 23:12:43 +000028155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028156$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028157if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028158 $as_echo_n "(cached) " >&6
28159else
28160 ac_check_lib_save_LIBS=$LIBS
28161LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028163/* end confdefs.h. */
28164
28165/* Override any GCC internal prototype to avoid an error.
28166 Use char because int might match the return type of a GCC
28167 builtin and then its argument prototype would still apply. */
28168#ifdef __cplusplus
28169extern "C"
28170#endif
28171char XDPSPixelsPerPoint ();
28172int
28173main ()
28174{
28175return XDPSPixelsPerPoint ();
28176 ;
28177 return 0;
28178}
28179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028181 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28182else
cristy8b350f62009-11-15 23:12:43 +000028183 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028184fi
cristy8b350f62009-11-15 23:12:43 +000028185rm -f core conftest.err conftest.$ac_objext \
28186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028187LIBS=$ac_check_lib_save_LIBS
28188fi
cristy8b350f62009-11-15 23:12:43 +000028189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028190$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028191if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028192 passed=`expr $passed + 1`
28193else
28194 failed=`expr $failed + 1`
28195fi
28196
cristy8b350f62009-11-15 23:12:43 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028198$as_echo_n "checking if DPS package is complete... " >&6; }
28199 if test $passed -gt 0; then
28200 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28202$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028203 have_dps='no (failed tests)'
28204 CPPFLAGS="$PERSIST_CPPFLAGS"
28205 else
28206 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28207 LIBS="$DPS_LIBS $LIBS"
28208
cristy8b350f62009-11-15 23:12:43 +000028209$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028210
cristy09b53e12011-10-14 12:47:22 +000028211 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28212$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028213 have_dps='yes'
28214 fi
28215 else
cristy09b53e12011-10-14 12:47:22 +000028216 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28217$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028218 CPPFLAGS=$PERSIST_CPPFLAGS
28219 fi
28220fi
cristy73bd4a52010-10-05 11:24:23 +000028221 if test "$have_dps" = 'yes'; then
28222 DPS_DELEGATE_TRUE=
28223 DPS_DELEGATE_FALSE='#'
28224else
28225 DPS_DELEGATE_TRUE='#'
28226 DPS_DELEGATE_FALSE=
28227fi
28228
cristy3ed852e2009-09-05 21:47:34 +000028229
28230
28231
28232#
28233# Check for DJVU delegate library.
28234#
28235
28236# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028237if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028238 withval=$with_djvu; with_djvu=$withval
28239else
28240 with_djvu='yes'
28241fi
28242
28243
28244if test "$with_djvu" != 'yes'; then
28245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28246fi
28247
28248have_djvu='no'
28249DJVU_LIBS=''
28250if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028251 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28252$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028255 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28256$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028257 failed=0
28258 passed=0
cristy8b350f62009-11-15 23:12:43 +000028259 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 +000028260if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028261 passed=`expr $passed + 1`
28262else
28263 failed=`expr $failed + 1`
28264fi
28265
28266
cristy8b350f62009-11-15 23:12:43 +000028267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028268$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028269if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028270 $as_echo_n "(cached) " >&6
28271else
28272 ac_check_lib_save_LIBS=$LIBS
28273LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028275/* end confdefs.h. */
28276
28277/* Override any GCC internal prototype to avoid an error.
28278 Use char because int might match the return type of a GCC
28279 builtin and then its argument prototype would still apply. */
28280#ifdef __cplusplus
28281extern "C"
28282#endif
28283char ddjvu_context_create ();
28284int
28285main ()
28286{
28287return ddjvu_context_create ();
28288 ;
28289 return 0;
28290}
28291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028292if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28294else
cristy8b350f62009-11-15 23:12:43 +000028295 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028296fi
cristy8b350f62009-11-15 23:12:43 +000028297rm -f core conftest.err conftest.$ac_objext \
28298 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028299LIBS=$ac_check_lib_save_LIBS
28300fi
cristy8b350f62009-11-15 23:12:43 +000028301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028302$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028303if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028304 passed=`expr $passed + 1`
28305else
28306 failed=`expr $failed + 1`
28307fi
28308
cristy8b350f62009-11-15 23:12:43 +000028309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310$as_echo_n "checking if DJVU package is complete... " >&6; }
28311 if test $passed -gt 0; then
28312 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028313 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28314$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028315 have_djvu='no (failed tests)'
28316 else
28317 DJVU_LIBS='-ldjvulibre'
28318 LIBS="$DJVU_LIBS $LIBS"
28319
cristy8b350f62009-11-15 23:12:43 +000028320$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028321
cristy09b53e12011-10-14 12:47:22 +000028322 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28323$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028324 have_djvu='yes'
28325 fi
28326 else
cristy09b53e12011-10-14 12:47:22 +000028327 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28328$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028329 fi
28330fi
cristy73bd4a52010-10-05 11:24:23 +000028331 if test "$have_djvu" = 'yes'; then
28332 DJVU_DELEGATE_TRUE=
28333 DJVU_DELEGATE_FALSE='#'
28334else
28335 DJVU_DELEGATE_TRUE='#'
28336 DJVU_DELEGATE_FALSE=
28337fi
28338
cristy3ed852e2009-09-05 21:47:34 +000028339
28340
28341
28342#
cristy430a7312010-01-21 20:44:04 +000028343# Set DejaVu font directory.
28344#
28345
28346# Check whether --with-dejavu-font-dir was given.
28347if test "${with_dejavu_font_dir+set}" = set; then :
28348 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28349else
28350 with_dejavu_font_dir='default'
28351fi
28352
28353
28354if test "$with_dejavu_font_dir" != 'default'; then
28355 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28356fi
28357
28358
28359#
cristy3ed852e2009-09-05 21:47:34 +000028360# Check for FFTW delegate library.
28361#
28362
28363# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028364if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 withval=$with_fftw; with_fftw=$withval
28366else
28367 with_fftw='yes'
28368fi
28369
28370
28371if test "$with_fftw" != 'yes'; then
28372 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28373fi
28374
cristy81beccd2011-10-03 18:17:24 +000028375have_fftw='no'
28376FFTW_LIBS=''
28377if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28379$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28381$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28383$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028384 failed=0
28385 passed=0
28386 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28387if test "x$ac_cv_header_fftw3_h" = xyes; then :
28388 passed=`expr $passed + 1`
28389else
28390 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028391fi
28392
cristy81beccd2011-10-03 18:17:24 +000028393
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28395$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28396if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28397 $as_echo_n "(cached) " >&6
28398else
28399 ac_check_lib_save_LIBS=$LIBS
28400LIBS="-lfftw3 $LIBS"
28401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28402/* end confdefs.h. */
28403
28404/* Override any GCC internal prototype to avoid an error.
28405 Use char because int might match the return type of a GCC
28406 builtin and then its argument prototype would still apply. */
28407#ifdef __cplusplus
28408extern "C"
28409#endif
28410char fftw_execute ();
28411int
28412main ()
28413{
28414return fftw_execute ();
28415 ;
28416 return 0;
28417}
28418_ACEOF
28419if ac_fn_c_try_link "$LINENO"; then :
28420 ac_cv_lib_fftw3_fftw_execute=yes
28421else
28422 ac_cv_lib_fftw3_fftw_execute=no
28423fi
28424rm -f core conftest.err conftest.$ac_objext \
28425 conftest$ac_exeext conftest.$ac_ext
28426LIBS=$ac_check_lib_save_LIBS
28427fi
28428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28429$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28430if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28431 passed=`expr $passed + 1`
28432else
28433 failed=`expr $failed + 1`
28434fi
28435
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28437$as_echo_n "checking if FFTW package is complete... " >&6; }
28438 if test $passed -gt 0; then
28439 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28441$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028442 have_fftw='no (failed tests)'
28443 else
28444 FFTW_LIBS='-lfftw3'
28445 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028446
cristy8b350f62009-11-15 23:12:43 +000028447$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028448
cristy09b53e12011-10-14 12:47:22 +000028449 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28450$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028451 have_fftw='yes'
28452 fi
28453 else
cristy09b53e12011-10-14 12:47:22 +000028454 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28455$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028456 fi
28457fi
cristy73bd4a52010-10-05 11:24:23 +000028458 if test "$have_fftw" = 'yes'; then
28459 FFTW_DELEGATE_TRUE=
28460 FFTW_DELEGATE_FALSE='#'
28461else
28462 FFTW_DELEGATE_TRUE='#'
28463 FFTW_DELEGATE_FALSE=
28464fi
28465
cristy3ed852e2009-09-05 21:47:34 +000028466
28467
28468
28469#
28470# Check for FlashPIX delegate library.
28471#
28472
28473# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028474if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028475 withval=$with_fpx; with_fpx=$withval
28476else
28477 with_fpx='yes'
28478fi
28479
28480
28481if test "$with_fpx" != 'yes'; then
28482 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28483fi
28484
28485have_fpx='no'
28486FPX_LIBS=''
28487if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28489$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028491$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028492 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28493$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028494 failed=0
28495 passed=0
28496 ac_ext=cpp
28497ac_cpp='$CXXCPP $CPPFLAGS'
28498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28501
28502
cristy8b350f62009-11-15 23:12:43 +000028503ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028504if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028505 passed=`expr $passed + 1`
28506else
28507 failed=`expr $failed + 1`
28508fi
28509
28510
cristy8b350f62009-11-15 23:12:43 +000028511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028512$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028513if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028514 $as_echo_n "(cached) " >&6
28515else
28516 ac_check_lib_save_LIBS=$LIBS
28517LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028519/* end confdefs.h. */
28520
28521/* Override any GCC internal prototype to avoid an error.
28522 Use char because int might match the return type of a GCC
28523 builtin and then its argument prototype would still apply. */
28524#ifdef __cplusplus
28525extern "C"
28526#endif
28527char FPX_OpenImageByFilename ();
28528int
28529main ()
28530{
28531return FPX_OpenImageByFilename ();
28532 ;
28533 return 0;
28534}
28535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028536if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028537 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28538else
cristy8b350f62009-11-15 23:12:43 +000028539 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028540fi
cristy8b350f62009-11-15 23:12:43 +000028541rm -f core conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028543LIBS=$ac_check_lib_save_LIBS
28544fi
cristy8b350f62009-11-15 23:12:43 +000028545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028547if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028548 passed=`expr $passed + 1`
28549else
28550 failed=`expr $failed + 1`
28551fi
28552
28553 ac_ext=c
28554ac_cpp='$CPP $CPPFLAGS'
28555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28557ac_compiler_gnu=$ac_cv_c_compiler_gnu
28558
cristy8b350f62009-11-15 23:12:43 +000028559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028560$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28561 if test $passed -gt 0; then
28562 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028563 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28564$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028565 have_fpx='no (failed tests)'
28566 else
28567 FPX_LIBS='-lfpx'
28568
cristy8b350f62009-11-15 23:12:43 +000028569$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028570
cristy09b53e12011-10-14 12:47:22 +000028571 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28572$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028573 have_fpx='yes'
28574 PERLMAINCC="$CXX"
28575 fi
28576 else
cristy09b53e12011-10-14 12:47:22 +000028577 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28578$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028579 fi
28580fi
cristy73bd4a52010-10-05 11:24:23 +000028581 if test "$have_fpx" = 'yes'; then
28582 FPX_DELEGATE_TRUE=
28583 FPX_DELEGATE_FALSE='#'
28584else
28585 FPX_DELEGATE_TRUE='#'
28586 FPX_DELEGATE_FALSE=
28587fi
28588
cristy3ed852e2009-09-05 21:47:34 +000028589
28590
28591
28592#
28593# Check for fontconfig delegate library.
28594#
28595
28596# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028597if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 withval=$with_fontconfig; with_fontconfig=$withval
28599else
28600 with_fontconfig=$have_x
28601fi
28602
28603
28604if test "$with_fontconfig" != 'yes'; then
28605 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28606fi
28607
28608have_fontconfig='no'
28609FONTCONFIG_CFLAGS=""
28610FONTCONFIG_LIBS=""
28611FONTCONFIG_PKG=""
28612if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028613 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28614$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028615
28616pkg_failed=no
28617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28618$as_echo_n "checking for FONTCONFIG... " >&6; }
28619
28620if test -n "$FONTCONFIG_CFLAGS"; then
28621 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28622 elif test -n "$PKG_CONFIG"; then
28623 if test -n "$PKG_CONFIG" && \
28624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28625 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28626 ac_status=$?
28627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28628 test $ac_status = 0; }; then
28629 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28630else
28631 pkg_failed=yes
28632fi
28633 else
28634 pkg_failed=untried
28635fi
28636if test -n "$FONTCONFIG_LIBS"; then
28637 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28638 elif test -n "$PKG_CONFIG"; then
28639 if test -n "$PKG_CONFIG" && \
28640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28641 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28642 ac_status=$?
28643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28644 test $ac_status = 0; }; then
28645 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28646else
28647 pkg_failed=yes
28648fi
28649 else
28650 pkg_failed=untried
28651fi
28652
28653
28654
28655if test $pkg_failed = yes; then
28656
28657if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28658 _pkg_short_errors_supported=yes
28659else
28660 _pkg_short_errors_supported=no
28661fi
28662 if test $_pkg_short_errors_supported = yes; then
28663 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28664 else
28665 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28666 fi
28667 # Put the nasty error message in config.log where it belongs
28668 echo "$FONTCONFIG_PKG_ERRORS" >&5
28669
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28671$as_echo "no" >&6; }
28672 have_fontconfig=no
28673elif test $pkg_failed = untried; then
28674 have_fontconfig=no
28675else
28676 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28677 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28679$as_echo "yes" >&6; }
28680 have_fontconfig=yes
28681fi
cristy09b53e12011-10-14 12:47:22 +000028682 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28683$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028684fi
28685
28686if test "$have_fontconfig" = 'yes'; then
28687
cristy8b350f62009-11-15 23:12:43 +000028688$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028689
cristyd09bcf92010-03-25 03:04:45 +000028690 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028691 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028692 fi
cristy3ed852e2009-09-05 21:47:34 +000028693fi
28694
cristy73bd4a52010-10-05 11:24:23 +000028695 if test "$have_fontconfig" = 'yes'; then
28696 FONTCONFIG_DELEGATE_TRUE=
28697 FONTCONFIG_DELEGATE_FALSE='#'
28698else
28699 FONTCONFIG_DELEGATE_TRUE='#'
28700 FONTCONFIG_DELEGATE_FALSE=
28701fi
28702
cristy3ed852e2009-09-05 21:47:34 +000028703
28704
28705
28706
28707#
cristy81beccd2011-10-03 18:17:24 +000028708# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028709#
28710
28711# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028712if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028713 withval=$with_freetype; with_freetype=$withval
28714else
28715 with_freetype='yes'
28716fi
28717
28718
cristy81beccd2011-10-03 18:17:24 +000028719
cristy3ed852e2009-09-05 21:47:34 +000028720if test "$with_freetype" != 'yes'; then
28721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28722fi
28723
cristy81beccd2011-10-03 18:17:24 +000028724have_freetype='no'
28725FREETYPE_LIBS=''
28726if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028727 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28728$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28730$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28732$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028733 failed=0
28734 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028735 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028736 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028737 freetype_config=''
28738 # Allow the user to specify the location of freetype.
28739 if test "$with_freetype" != 'yes'; then
28740 if test -x "${with_freetype}/bin/freetype-config"; then
28741 freetype_config="${with_freetype}/bin/freetype-config"
28742 elif test -x "${with_freetype}"; then
28743 freetype_config=${with_freetype}
28744 fi
28745 fi
28746 if test -z "$freetype_config"; then
28747 # Extract the first word of "freetype-config", so it can be a program name with args.
28748set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28750$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028751if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028752 $as_echo_n "(cached) " >&6
28753else
cristy98ca0f52011-10-08 23:19:10 +000028754 case $freetype_config in
28755 [\\/]* | ?:[\\/]*)
28756 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28757 ;;
28758 *)
28759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028760for as_dir in $PATH
28761do
28762 IFS=$as_save_IFS
28763 test -z "$as_dir" && as_dir=.
28764 for ac_exec_ext in '' $ac_executable_extensions; do
28765 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 +000028766 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28768 break 2
28769 fi
28770done
28771 done
28772IFS=$as_save_IFS
28773
cristy98ca0f52011-10-08 23:19:10 +000028774 ;;
28775esac
cristy81beccd2011-10-03 18:17:24 +000028776fi
cristy98ca0f52011-10-08 23:19:10 +000028777freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028778if test -n "$freetype_config"; then
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28780$as_echo "$freetype_config" >&6; }
28781else
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28783$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028784fi
28785
cristy98ca0f52011-10-08 23:19:10 +000028786 fi
28787 if test -n "$freetype_config"; then
28788 freetype_prefix=`${freetype_config} --prefix`
28789 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28790 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28791 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028792 fi
28793
28794 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028796$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28797if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28798 $as_echo_n "(cached) " >&6
28799else
28800 ac_check_lib_save_LIBS=$LIBS
28801LIBS="-lfreetype $LIBS"
28802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28803/* end confdefs.h. */
28804
28805/* Override any GCC internal prototype to avoid an error.
28806 Use char because int might match the return type of a GCC
28807 builtin and then its argument prototype would still apply. */
28808#ifdef __cplusplus
28809extern "C"
28810#endif
28811char FT_Init_FreeType ();
28812int
28813main ()
28814{
28815return FT_Init_FreeType ();
28816 ;
28817 return 0;
28818}
28819_ACEOF
28820if ac_fn_c_try_link "$LINENO"; then :
28821 ac_cv_lib_freetype_FT_Init_FreeType=yes
28822else
28823 ac_cv_lib_freetype_FT_Init_FreeType=no
28824fi
28825rm -f core conftest.err conftest.$ac_objext \
28826 conftest$ac_exeext conftest.$ac_ext
28827LIBS=$ac_check_lib_save_LIBS
28828fi
28829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28830$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28831if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28832 FREETYPE_LIBS='-lfreetype'
28833fi
28834
cristy98ca0f52011-10-08 23:19:10 +000028835 if test "$FREETYPE_LIBS" != ''; then
28836 passed=`expr $passed + 1`
28837 else
28838 failed=`expr $failed + 1`
28839 LDFLAGS="$PERSIST_LDFLAGS"
28840 fi
cristy81beccd2011-10-03 18:17:24 +000028841 fi
28842
28843 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28844if test "x$ac_cv_header_ft2build_h" = xyes; then :
28845 FT2BUILD_H='#include <ft2build.h>'
28846else
28847 ft2build=''
28848fi
28849
28850
28851 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28852"
28853if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28854 have_freetype_h='yes'
28855else
28856 have_freetype_h='no'
28857fi
28858
28859
cristy98ca0f52011-10-08 23:19:10 +000028860 if test "$have_freetype_h" = 'yes'; then
28861 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028862 else
cristy98ca0f52011-10-08 23:19:10 +000028863 failed=`expr $failed + 1`
28864 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028865 fi
28866
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28868$as_echo_n "checking if FreeType package is complete... " >&6; }
28869 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028870 if test $failed -gt 0; then
28871 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028872 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28873$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028874 have_freetype='no (failed tests)'
28875 else
28876 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028877
cristy8b350f62009-11-15 23:12:43 +000028878$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028879
cristy98ca0f52011-10-08 23:19:10 +000028880 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028881
28882$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28883
cristy81beccd2011-10-03 18:17:24 +000028884 fi
cristy09b53e12011-10-14 12:47:22 +000028885 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28886$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028887 have_freetype='yes'
28888 fi
cristy81beccd2011-10-03 18:17:24 +000028889 else
cristy09b53e12011-10-14 12:47:22 +000028890 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28891$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028892 fi
28893fi
cristy73bd4a52010-10-05 11:24:23 +000028894 if test "$have_freetype" = 'yes'; then
28895 FREETYPE_DELEGATE_TRUE=
28896 FREETYPE_DELEGATE_FALSE='#'
28897else
28898 FREETYPE_DELEGATE_TRUE='#'
28899 FREETYPE_DELEGATE_FALSE=
28900fi
28901
cristy3ed852e2009-09-05 21:47:34 +000028902
28903
28904
cristy3ed852e2009-09-05 21:47:34 +000028905#
28906# Check for Ghostscript library or framework.
28907#
28908# Test for iapi.h & test for gsapi_new_instance in -lgs
28909# or -framework Ghostscript
28910
28911
28912# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028913if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028914 withval=$with_gslib; with_gslib=$withval
28915else
28916 with_gslib='no'
28917fi
28918
28919
cristyb7931f12009-09-25 10:22:21 +000028920gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028921if test "$with_gslib" != 'yes'; then
28922 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28923fi
28924
28925have_gslib='no'
28926GS_LIBS=''
28927if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028928 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28929$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028931$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028932 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28933$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028934 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028935 failed=0
28936 passed=0
cristy8b350f62009-11-15 23:12:43 +000028937 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 +000028938if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028939 passed=`expr $passed + 1`
28940else
28941 failed=`expr $failed + 1`
28942fi
28943
28944
cristy8b350f62009-11-15 23:12:43 +000028945 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 +000028946if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028947 passed=`expr $passed + 1`
28948else
28949 failed=`expr $failed + 1`
28950fi
28951
28952
cristy73bd4a52010-10-05 11:24:23 +000028953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28954$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028955if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028956 $as_echo_n "(cached) " >&6
28957else
28958 ac_check_framework_save_LIBS=$LIBS
28959LIBS="-framework Ghostscript $LIBS"
28960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28961/* end confdefs.h. */
28962
28963/* Override any GCC internal prototype to avoid an error.
28964 Use char because int might match the return type of a GCC
28965 builtin and then its argument prototype would still apply. */
28966#ifdef __cplusplus
28967extern "C"
28968#endif
28969char gsapi_new_instance ();
28970int
28971main ()
28972{
28973return gsapi_new_instance ();
28974 ;
28975 return 0;
28976}
28977_ACEOF
28978if ac_fn_c_try_link "$LINENO"; then :
28979 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28980else
28981 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28982fi
28983rm -f core conftest.err conftest.$ac_objext \
28984 conftest$ac_exeext conftest.$ac_ext
28985LIBS=$ac_check_framework_save_LIBS
28986fi
28987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28988$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28989if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28990 framework=`expr $framework + 1`
28991else
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028993$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028994if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028995 $as_echo_n "(cached) " >&6
28996else
28997 ac_check_lib_save_LIBS=$LIBS
28998LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029000/* end confdefs.h. */
29001
29002/* Override any GCC internal prototype to avoid an error.
29003 Use char because int might match the return type of a GCC
29004 builtin and then its argument prototype would still apply. */
29005#ifdef __cplusplus
29006extern "C"
29007#endif
29008char gsapi_new_instance ();
29009int
29010main ()
29011{
29012return gsapi_new_instance ();
29013 ;
29014 return 0;
29015}
29016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029017if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029018 ac_cv_lib_gs_gsapi_new_instance=yes
29019else
cristy8b350f62009-11-15 23:12:43 +000029020 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029021fi
cristy8b350f62009-11-15 23:12:43 +000029022rm -f core conftest.err conftest.$ac_objext \
29023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029024LIBS=$ac_check_lib_save_LIBS
29025fi
cristy8b350f62009-11-15 23:12:43 +000029026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029027$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029028if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029029 passed=`expr $passed + 1`
29030else
29031 failed=`expr $failed + 1`
29032fi
cristy73bd4a52010-10-05 11:24:23 +000029033
29034fi
cristy8b350f62009-11-15 23:12:43 +000029035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029036$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29037 if test $passed -gt 0; then
29038 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029039 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29040$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029041 have_gslib='no (failed tests)'
29042 else
29043 if test $framework -gt 0; then
29044 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029045 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029046 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29047$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029048 else
cristy09b53e12011-10-14 12:47:22 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29050$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029051 GS_LIBS='-lgs'
29052 fi
29053 LIBS="$GS_LIBS $LIBS"
29054
cristy8b350f62009-11-15 23:12:43 +000029055$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029056
29057 have_gslib='yes'
29058 fi
29059 else
cristy09b53e12011-10-14 12:47:22 +000029060 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29061$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029062 fi
29063fi
cristy73bd4a52010-10-05 11:24:23 +000029064 if test "$have_gslib" = 'yes'; then
29065 GS_DELEGATE_TRUE=
29066 GS_DELEGATE_FALSE='#'
29067else
29068 GS_DELEGATE_TRUE='#'
29069 GS_DELEGATE_FALSE=
29070fi
29071
cristy3ed852e2009-09-05 21:47:34 +000029072
29073
29074# Set default font search path
29075
29076# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029077if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029078 withval=$with_fontpath; with_fontpath=$withval
29079else
29080 with_fontpath=''
29081fi
29082
29083
29084if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29085 with_fontpath=''
29086else
29087
29088cat >>confdefs.h <<_ACEOF
29089#define MAGICK_FONT_PATH "$with_fontpath"
29090_ACEOF
29091
29092fi
29093if test "$with_fontpath=" != ''; then
29094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29095fi
29096
29097# Set Ghostscript font directory
29098
29099# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029100if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029101 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29102else
29103 with_gs_font_dir='default'
29104fi
29105
29106
29107if test "$with_gs_font_dir" != 'default'; then
29108 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29109fi
29110
29111
29112#
29113# Check for GVC delegate library.
29114#
29115
29116# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029117if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029118 withval=$with_gvc; with_gvc=$withval
29119else
29120 with_gvc='yes'
29121fi
29122
29123
29124if test "$with_gvc" != 'yes'; then
29125 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29126fi
29127
29128GVC_PKG=""
29129if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029130 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29131$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029132
29133pkg_failed=no
29134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29135$as_echo_n "checking for GVC... " >&6; }
29136
29137if test -n "$GVC_CFLAGS"; then
29138 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29139 elif test -n "$PKG_CONFIG"; then
29140 if test -n "$PKG_CONFIG" && \
29141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29142 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29143 ac_status=$?
29144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29145 test $ac_status = 0; }; then
29146 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29147else
29148 pkg_failed=yes
29149fi
29150 else
29151 pkg_failed=untried
29152fi
29153if test -n "$GVC_LIBS"; then
29154 pkg_cv_GVC_LIBS="$GVC_LIBS"
29155 elif test -n "$PKG_CONFIG"; then
29156 if test -n "$PKG_CONFIG" && \
29157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29158 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29159 ac_status=$?
29160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29161 test $ac_status = 0; }; then
29162 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29163else
29164 pkg_failed=yes
29165fi
29166 else
29167 pkg_failed=untried
29168fi
29169
29170
29171
29172if test $pkg_failed = yes; then
29173
29174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29175 _pkg_short_errors_supported=yes
29176else
29177 _pkg_short_errors_supported=no
29178fi
29179 if test $_pkg_short_errors_supported = yes; then
29180 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29181 else
29182 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29183 fi
29184 # Put the nasty error message in config.log where it belongs
29185 echo "$GVC_PKG_ERRORS" >&5
29186
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29188$as_echo "no" >&6; }
29189 have_gvc=no
29190elif test $pkg_failed = untried; then
29191 have_gvc=no
29192else
29193 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29194 GVC_LIBS=$pkg_cv_GVC_LIBS
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29196$as_echo "yes" >&6; }
29197 have_gvc=yes
29198fi
cristy09b53e12011-10-14 12:47:22 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29200$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029201fi
29202
29203if test "$have_gvc" = 'yes'; then
29204
cristy8b350f62009-11-15 23:12:43 +000029205$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029206
29207 if test "$with_modules" = 'no'; then
29208 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29209 fi
29210fi
29211
cristy73bd4a52010-10-05 11:24:23 +000029212 if test "$have_gvc" = 'yes'; then
29213 GVC_DELEGATE_TRUE=
29214 GVC_DELEGATE_FALSE='#'
29215else
29216 GVC_DELEGATE_TRUE='#'
29217 GVC_DELEGATE_FALSE=
29218fi
29219
cristy3ed852e2009-09-05 21:47:34 +000029220
29221
29222
29223
29224#
29225# Check for JBIG delegate library.
29226#
29227
29228
29229# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029230if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029231 withval=$with_jbig; with_jbig=$withval
29232else
29233 with_jbig='yes'
29234fi
29235
29236
29237have_jbig='no'
29238JBIG_LIBS=''
29239if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029240 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29241$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029243$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029244 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29245$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029246 failed=0
29247 passed=0
cristy8b350f62009-11-15 23:12:43 +000029248 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029249if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029250 passed=`expr $passed + 1`
29251else
29252 failed=`expr $failed + 1`
29253fi
29254
29255
cristy8b350f62009-11-15 23:12:43 +000029256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029257$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029258if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029259 $as_echo_n "(cached) " >&6
29260else
29261 ac_check_lib_save_LIBS=$LIBS
29262LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029264/* end confdefs.h. */
29265
29266/* Override any GCC internal prototype to avoid an error.
29267 Use char because int might match the return type of a GCC
29268 builtin and then its argument prototype would still apply. */
29269#ifdef __cplusplus
29270extern "C"
29271#endif
29272char jbg_dec_init ();
29273int
29274main ()
29275{
29276return jbg_dec_init ();
29277 ;
29278 return 0;
29279}
29280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029282 ac_cv_lib_jbig_jbg_dec_init=yes
29283else
cristy8b350f62009-11-15 23:12:43 +000029284 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029285fi
cristy8b350f62009-11-15 23:12:43 +000029286rm -f core conftest.err conftest.$ac_objext \
29287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029288LIBS=$ac_check_lib_save_LIBS
29289fi
cristy8b350f62009-11-15 23:12:43 +000029290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029292if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029293 passed=`expr $passed + 1`
29294else
29295 failed=`expr $failed + 1`
29296fi
29297
cristy8b350f62009-11-15 23:12:43 +000029298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029299$as_echo_n "checking if JBIG package is complete... " >&6; }
29300 if test $passed -gt 0; then
29301 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29303$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029304 have_jbig='no (failed tests)'
29305 else
29306 JBIG_LIBS='-ljbig'
29307 LIBS="$JBIG_LIBS $LIBS"
29308
cristy8b350f62009-11-15 23:12:43 +000029309$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029310
cristy09b53e12011-10-14 12:47:22 +000029311 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29312$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029313 have_jbig='yes'
29314 fi
29315 else
cristy09b53e12011-10-14 12:47:22 +000029316 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29317$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029318 fi
29319fi
cristy73bd4a52010-10-05 11:24:23 +000029320 if test "$have_jbig" = 'yes'; then
29321 JBIG_DELEGATE_TRUE=
29322 JBIG_DELEGATE_FALSE='#'
29323else
29324 JBIG_DELEGATE_TRUE='#'
29325 JBIG_DELEGATE_FALSE=
29326fi
29327
cristy3ed852e2009-09-05 21:47:34 +000029328
29329
29330
29331#
29332# Check for JPEG delegate library.
29333#
29334
29335# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029336if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029337 withval=$with_jpeg; with_jpeg=$withval
29338else
29339 with_jpeg='yes'
29340fi
29341
29342
29343if test "$with_jpeg" != 'yes'; then
29344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29345fi
29346
29347have_jpeg='no'
29348JPEG_LIBS=''
29349if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029350 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29351$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029353$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029354 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29355$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029356 failed=0
29357 passed=0
cristy8b350f62009-11-15 23:12:43 +000029358 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029359if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029360 passed=`expr $passed + 1`
29361else
29362 failed=`expr $failed + 1`
29363fi
29364
29365
cristy8b350f62009-11-15 23:12:43 +000029366 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029367if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029368 passed=`expr $passed + 1`
29369else
29370 failed=`expr $failed + 1`
29371fi
29372
29373
cristy8b350f62009-11-15 23:12:43 +000029374 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029375if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029376 passed=`expr $passed + 1`
29377else
29378 failed=`expr $failed + 1`
29379fi
29380
29381
cristy8b350f62009-11-15 23:12:43 +000029382 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029383if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029384 passed=`expr $passed + 1`
29385else
29386 failed=`expr $failed + 1`
29387fi
29388
29389
cristy8b350f62009-11-15 23:12:43 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029391$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029392if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029393 $as_echo_n "(cached) " >&6
29394else
29395 ac_check_lib_save_LIBS=$LIBS
29396LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029398/* end confdefs.h. */
29399
29400/* Override any GCC internal prototype to avoid an error.
29401 Use char because int might match the return type of a GCC
29402 builtin and then its argument prototype would still apply. */
29403#ifdef __cplusplus
29404extern "C"
29405#endif
29406char jpeg_read_header ();
29407int
29408main ()
29409{
29410return jpeg_read_header ();
29411 ;
29412 return 0;
29413}
29414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029416 ac_cv_lib_jpeg_jpeg_read_header=yes
29417else
cristy8b350f62009-11-15 23:12:43 +000029418 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029419fi
cristy8b350f62009-11-15 23:12:43 +000029420rm -f core conftest.err conftest.$ac_objext \
29421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029422LIBS=$ac_check_lib_save_LIBS
29423fi
cristy8b350f62009-11-15 23:12:43 +000029424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029425$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029426if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029427 passed=`expr $passed + 1`
29428else
29429 failed=`expr $failed + 1`
29430fi
29431
29432
29433# Test for compatible JPEG library
29434if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029436$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029437if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029438 $as_echo_n "(cached) " >&6
29439else
cristy8b350f62009-11-15 23:12:43 +000029440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029441/* end confdefs.h. */
29442#include <stdio.h>
29443#include <stdlib.h>
29444#include <jpeglib.h>
29445
29446int
29447main ()
29448{
29449
29450#if JPEG_LIB_VERSION < 62
29451#error IJG JPEG library must be version 6b or newer!
29452#endif
29453return 0;
29454
29455 ;
29456 return 0;
29457}
29458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029459if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029460 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29461else
cristy8b350f62009-11-15 23:12:43 +000029462 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029463fi
cristy3ed852e2009-09-05 21:47:34 +000029464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29465fi
cristy8b350f62009-11-15 23:12:43 +000029466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029467$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29468fi
cristy8b350f62009-11-15 23:12:43 +000029469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029470$as_echo_n "checking if JPEG package is complete... " >&6; }
29471 if test $passed -gt 0; then
29472 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029473 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29474$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029475 have_jpeg='no (failed tests)'
29476 else
29477 JPEG_LIBS='-ljpeg'
29478 LIBS="$JPEG_LIBS $LIBS"
29479
cristy8b350f62009-11-15 23:12:43 +000029480$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029481
cristy09b53e12011-10-14 12:47:22 +000029482 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29483$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029484 have_jpeg='yes'
29485 fi
29486 else
cristy09b53e12011-10-14 12:47:22 +000029487 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29488$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029489 fi
29490fi
cristy73bd4a52010-10-05 11:24:23 +000029491 if test "$have_jpeg" = 'yes'; then
29492 JPEG_DELEGATE_TRUE=
29493 JPEG_DELEGATE_FALSE='#'
29494else
29495 JPEG_DELEGATE_TRUE='#'
29496 JPEG_DELEGATE_FALSE=
29497fi
29498
cristy3ed852e2009-09-05 21:47:34 +000029499
29500
29501
29502#
29503# Check for JPEG Version 2 delegate library.
29504#
29505
29506# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029507if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029508 withval=$with_jp2; with_jp2=$withval
29509else
29510 with_jp2='yes'
29511fi
29512
29513
29514if test "$with_jp2" != 'yes'; then
29515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29516fi
29517
29518have_jp2='no'
29519JP2_LIBS=''
29520if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029521 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29522$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029524$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29526$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029527 failed=0
29528 passed=0
cristy8b350f62009-11-15 23:12:43 +000029529 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 +000029530if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029531 passed=`expr $passed + 1`
29532else
29533 failed=`expr $failed + 1`
29534fi
29535
29536
cristy8b350f62009-11-15 23:12:43 +000029537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029538$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029539if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029540 $as_echo_n "(cached) " >&6
29541else
29542 ac_check_lib_save_LIBS=$LIBS
29543LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029545/* end confdefs.h. */
29546
29547/* Override any GCC internal prototype to avoid an error.
29548 Use char because int might match the return type of a GCC
29549 builtin and then its argument prototype would still apply. */
29550#ifdef __cplusplus
29551extern "C"
29552#endif
29553char jas_stream_fopen ();
29554int
29555main ()
29556{
29557return jas_stream_fopen ();
29558 ;
29559 return 0;
29560}
29561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029562if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029563 ac_cv_lib_jasper_jas_stream_fopen=yes
29564else
cristy8b350f62009-11-15 23:12:43 +000029565 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029566fi
cristy8b350f62009-11-15 23:12:43 +000029567rm -f core conftest.err conftest.$ac_objext \
29568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029569LIBS=$ac_check_lib_save_LIBS
29570fi
cristy8b350f62009-11-15 23:12:43 +000029571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029572$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029573if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029574 passed=`expr $passed + 1`
29575else
29576 failed=`expr $failed + 1`
29577fi
29578
cristy8b350f62009-11-15 23:12:43 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029580$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29581 if test $passed -gt 0; then
29582 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029583 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29584$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029585 have_jp2='no (failed tests)'
29586 else
29587 JP2_LIBS='-ljasper'
29588 LIBS="$JP2_LIBS $LIBS"
29589
cristy8b350f62009-11-15 23:12:43 +000029590$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029591
cristy09b53e12011-10-14 12:47:22 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29593$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029594 have_jp2='yes'
29595 fi
29596 else
cristy09b53e12011-10-14 12:47:22 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29598$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029599 fi
29600fi
cristy73bd4a52010-10-05 11:24:23 +000029601 if test "$have_jp2" = 'yes'; then
29602 JP2_DELEGATE_TRUE=
29603 JP2_DELEGATE_FALSE='#'
29604else
29605 JP2_DELEGATE_TRUE='#'
29606 JP2_DELEGATE_FALSE=
29607fi
29608
cristy3ed852e2009-09-05 21:47:34 +000029609
29610
29611
29612#
29613# Check for LCMS delegate library.
29614#
cristy71203402010-06-18 13:12:03 +000029615# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029616
29617# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029618if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029619 withval=$with_lcms; with_lcms=$withval
29620else
29621 with_lcms='yes'
29622fi
29623
cristy71203402010-06-18 13:12:03 +000029624if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029625 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29626fi
29627
cristy71203402010-06-18 13:12:03 +000029628# Disable LCMS2.
29629
29630# Check whether --with-lcms2 was given.
29631if test "${with_lcms2+set}" = set; then :
29632 withval=$with_lcms2; with_lcms2=$withval
29633else
29634 with_lcms2='yes'
29635fi
29636
29637if test "$with_lcms2" != 'yes' ; then
29638 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29639fi
29640
29641have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029642LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029643if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029644 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29645$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29647$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29649$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029650 failed=0
29651 passed=0
29652 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029653
29654 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029655 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029656if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029657 have_lcms_header='yes'
29658fi
29659
29660
29661 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029662
29663$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29664
cristy71203402010-06-18 13:12:03 +000029665 passed=`expr $passed + 1`
29666 fi
29667
29668 # Check for <lcms2/lcms2.h)
29669 if test "$have_lcms_header" != 'yes'; then
29670 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 +000029671if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029672 have_lcms_header='yes'
29673fi
29674
29675
cristy71203402010-06-18 13:12:03 +000029676 if test "$have_lcms_header" = 'yes'; then
29677 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029678
cristy71203402010-06-18 13:12:03 +000029679$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029680
cristy71203402010-06-18 13:12:03 +000029681 fi
cristyd09bcf92010-03-25 03:04:45 +000029682 fi
cristy71203402010-06-18 13:12:03 +000029683
29684 # Failed to find lcms header?
29685 if test "$have_lcms_header" != 'yes'; then
29686 failed=`expr $failed + 1`
29687 fi
29688
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29690$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029691if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029692 $as_echo_n "(cached) " >&6
29693else
29694 ac_check_lib_save_LIBS=$LIBS
29695LIBS="-llcms2 $LIBS"
29696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697/* end confdefs.h. */
29698
29699/* Override any GCC internal prototype to avoid an error.
29700 Use char because int might match the return type of a GCC
29701 builtin and then its argument prototype would still apply. */
29702#ifdef __cplusplus
29703extern "C"
29704#endif
cristy71203402010-06-18 13:12:03 +000029705char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029706int
29707main ()
29708{
cristy71203402010-06-18 13:12:03 +000029709return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029710 ;
29711 return 0;
29712}
29713_ACEOF
29714if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029715 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029716else
cristy71203402010-06-18 13:12:03 +000029717 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029718fi
29719rm -f core conftest.err conftest.$ac_objext \
29720 conftest$ac_exeext conftest.$ac_ext
29721LIBS=$ac_check_lib_save_LIBS
29722fi
cristy71203402010-06-18 13:12:03 +000029723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29724$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029725if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029726 passed=`expr $passed + 1`
29727else
29728 failed=`expr $failed + 1`
29729fi
29730
cristy71203402010-06-18 13:12:03 +000029731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29732$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029733 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029734 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29736$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029737 have_lcms2='no (failed tests)'
29738 else
29739 LCMS_LIBS='-llcms2'
29740 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29742$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029743 have_lcms2='yes'
29744 fi
cristyd09bcf92010-03-25 03:04:45 +000029745 else
cristy09b53e12011-10-14 12:47:22 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29747$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029748 fi
29749fi
29750
cristy71203402010-06-18 13:12:03 +000029751#
29752# Check for LCMS v1 (1.11 or later)
29753#
29754if test $have_lcms2 = 'yes'; then
29755 with_lcms='no'
29756fi
29757
29758have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029759if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029760 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29761$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29763$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029764 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29765$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029766 failed=0
29767 passed=0
29768 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029769
29770 # Check for <lcms.h>
29771 if test "$have_lcms_header" != 'yes'; then
29772 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029773if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029774 have_lcms_header='yes'
29775fi
29776
29777
cristy71203402010-06-18 13:12:03 +000029778 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029779 passed=`expr $passed + 1`
29780
cristy8b350f62009-11-15 23:12:43 +000029781$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029782
cristy71203402010-06-18 13:12:03 +000029783 fi
29784 fi
29785
29786 # Check for <lcms/lcms.h>
29787 if test "$have_lcms_header" != 'yes'; then
29788 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 +000029789if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029790 have_lcms_header='yes'
29791fi
29792
29793
cristy71203402010-06-18 13:12:03 +000029794 if test "$have_lcms_header" = 'yes'; then
29795 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029796
cristy8b350f62009-11-15 23:12:43 +000029797$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029798
cristy71203402010-06-18 13:12:03 +000029799 fi
cristy3ed852e2009-09-05 21:47:34 +000029800 fi
cristy71203402010-06-18 13:12:03 +000029801
29802 # Failed to find lcms header?
29803 if test "$have_lcms_header" != 'yes'; then
29804 failed=`expr $failed + 1`
29805 fi
29806
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29808$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029809if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029810 $as_echo_n "(cached) " >&6
29811else
29812 ac_check_lib_save_LIBS=$LIBS
29813LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029815/* end confdefs.h. */
29816
29817/* Override any GCC internal prototype to avoid an error.
29818 Use char because int might match the return type of a GCC
29819 builtin and then its argument prototype would still apply. */
29820#ifdef __cplusplus
29821extern "C"
29822#endif
cristy71203402010-06-18 13:12:03 +000029823char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029824int
29825main ()
29826{
cristy71203402010-06-18 13:12:03 +000029827return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029828 ;
29829 return 0;
29830}
29831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029832if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029833 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029834else
cristy71203402010-06-18 13:12:03 +000029835 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029836fi
cristy8b350f62009-11-15 23:12:43 +000029837rm -f core conftest.err conftest.$ac_objext \
29838 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029839LIBS=$ac_check_lib_save_LIBS
29840fi
cristy71203402010-06-18 13:12:03 +000029841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29842$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029843if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029844 passed=`expr $passed + 1`
29845else
29846 failed=`expr $failed + 1`
29847fi
29848
cristy8b350f62009-11-15 23:12:43 +000029849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029850$as_echo_n "checking if LCMS package is complete... " >&6; }
29851 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029852 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029853 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29854$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029855 have_lcms='no (failed tests)'
29856 else
29857 LCMS_LIBS='-llcms'
29858 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029859 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29860$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029861 have_lcms='yes'
29862 fi
cristy3ed852e2009-09-05 21:47:34 +000029863 else
cristy09b53e12011-10-14 12:47:22 +000029864 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29865$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029866 fi
29867fi
cristy71203402010-06-18 13:12:03 +000029868
cristy73bd4a52010-10-05 11:24:23 +000029869 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29870 LCMS_DELEGATE_TRUE=
29871 LCMS_DELEGATE_FALSE='#'
29872else
29873 LCMS_DELEGATE_TRUE='#'
29874 LCMS_DELEGATE_FALSE=
29875fi
29876
cristy71203402010-06-18 13:12:03 +000029877if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29878
29879$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29880
29881fi
29882
cristy3ed852e2009-09-05 21:47:34 +000029883
29884
29885
29886#
29887# Check for the LQR (Liquid Rescale) delegate library.
29888#
29889
29890# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029891if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029892 withval=$with_lqr; with_lqr=$withval
29893else
29894 with_lqr='yes'
29895fi
29896
29897
29898if test "$with_lqr" != 'yes'; then
29899 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29900fi
29901
29902have_lqr='no'
29903LQR_CFLAGS=""
29904LQR_LIBS=""
29905LQR_PKG=""
29906if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029907 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29908$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029909
29910pkg_failed=no
29911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29912$as_echo_n "checking for LQR... " >&6; }
29913
29914if test -n "$LQR_CFLAGS"; then
29915 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29916 elif test -n "$PKG_CONFIG"; then
29917 if test -n "$PKG_CONFIG" && \
29918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29919 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29920 ac_status=$?
29921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29922 test $ac_status = 0; }; then
29923 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29924else
29925 pkg_failed=yes
29926fi
29927 else
29928 pkg_failed=untried
29929fi
29930if test -n "$LQR_LIBS"; then
29931 pkg_cv_LQR_LIBS="$LQR_LIBS"
29932 elif test -n "$PKG_CONFIG"; then
29933 if test -n "$PKG_CONFIG" && \
29934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29935 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29936 ac_status=$?
29937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29938 test $ac_status = 0; }; then
29939 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29940else
29941 pkg_failed=yes
29942fi
29943 else
29944 pkg_failed=untried
29945fi
29946
29947
29948
29949if test $pkg_failed = yes; then
29950
29951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29952 _pkg_short_errors_supported=yes
29953else
29954 _pkg_short_errors_supported=no
29955fi
29956 if test $_pkg_short_errors_supported = yes; then
29957 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29958 else
29959 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29960 fi
29961 # Put the nasty error message in config.log where it belongs
29962 echo "$LQR_PKG_ERRORS" >&5
29963
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29965$as_echo "no" >&6; }
29966 have_lqr=no
29967elif test $pkg_failed = untried; then
29968 have_lqr=no
29969else
29970 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29971 LQR_LIBS=$pkg_cv_LQR_LIBS
29972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29973$as_echo "yes" >&6; }
29974 have_lqr=yes
29975fi
cristy09b53e12011-10-14 12:47:22 +000029976 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29977$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029978fi
29979
29980if test "$have_lqr" = 'yes'; then
29981
cristy8b350f62009-11-15 23:12:43 +000029982$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029983
29984 CFLAGS="$LQR_CFLAGS $CFLAGS"
29985fi
29986
cristy73bd4a52010-10-05 11:24:23 +000029987 if test "$have_lqr" = 'yes'; then
29988 LQR_DELEGATE_TRUE=
29989 LQR_DELEGATE_FALSE='#'
29990else
29991 LQR_DELEGATE_TRUE='#'
29992 LQR_DELEGATE_FALSE=
29993fi
29994
cristy3ed852e2009-09-05 21:47:34 +000029995
29996
29997
29998
cristy81beccd2011-10-03 18:17:24 +000029999# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030000
30001# Check whether --with-lzma was given.
30002if test "${with_lzma+set}" = set; then :
30003 withval=$with_lzma; with_lzma=$withval
30004else
30005 with_lzma='yes'
30006fi
30007
cristy81beccd2011-10-03 18:17:24 +000030008if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030009 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30010fi
30011
cristy81beccd2011-10-03 18:17:24 +000030012#
30013# Check for LZMA
30014#
30015have_lzma='no'
30016LZMA_LIBS=''
30017if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30019$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030021$as_echo_n "checking for LZMA... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030022 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30023$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030024 failed=0
30025 passed=0
30026 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30027if test "x$ac_cv_header_lzma_h" = xyes; then :
30028 passed=`expr $passed + 1`
30029else
30030 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000030031fi
30032
cristy81beccd2011-10-03 18:17:24 +000030033
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30035$as_echo_n "checking for lzma_code in -llzma... " >&6; }
30036if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30037 $as_echo_n "(cached) " >&6
30038else
30039 ac_check_lib_save_LIBS=$LIBS
30040LIBS="-llzma $LIBS"
30041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30042/* end confdefs.h. */
30043
30044/* Override any GCC internal prototype to avoid an error.
30045 Use char because int might match the return type of a GCC
30046 builtin and then its argument prototype would still apply. */
30047#ifdef __cplusplus
30048extern "C"
30049#endif
30050char lzma_code ();
30051int
30052main ()
30053{
30054return lzma_code ();
30055 ;
30056 return 0;
30057}
30058_ACEOF
30059if ac_fn_c_try_link "$LINENO"; then :
30060 ac_cv_lib_lzma_lzma_code=yes
30061else
30062 ac_cv_lib_lzma_lzma_code=no
30063fi
30064rm -f core conftest.err conftest.$ac_objext \
30065 conftest$ac_exeext conftest.$ac_ext
30066LIBS=$ac_check_lib_save_LIBS
30067fi
30068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30069$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30070if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30071 passed=`expr $passed + 1`
30072else
30073 failed=`expr $failed + 1`
30074fi
30075
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30077$as_echo_n "checking if LZMA package is complete... " >&6; }
30078 if test $passed -gt 0; then
30079 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30081$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030082 have_lzma='no (failed tests)'
30083 else
30084 LZMA_LIBS='-llzma'
30085 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030086
30087$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30088
cristy09b53e12011-10-14 12:47:22 +000030089 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30090$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030091 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030092 fi
cristy81beccd2011-10-03 18:17:24 +000030093 else
cristy09b53e12011-10-14 12:47:22 +000030094 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30095$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030096 fi
cristyfbb0ef02010-12-19 02:32:11 +000030097fi
30098 if test "$have_lzma" = 'yes'; then
30099 LZMA_DELEGATE_TRUE=
30100 LZMA_DELEGATE_FALSE='#'
30101else
30102 LZMA_DELEGATE_TRUE='#'
30103 LZMA_DELEGATE_FALSE=
30104fi
30105
30106
30107
30108
cristy3ed852e2009-09-05 21:47:34 +000030109#
30110# Check for the OpenEXR delegate library.
30111#
30112
30113# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030114if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030115 withval=$with_openexr; with_openexr=$withval
30116else
30117 with_openexr='yes'
30118fi
30119
30120
30121if test "$with_openexr" != 'yes'; then
30122 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30123fi
30124
30125have_openexr='no'
30126OPENEXR_CFLAGS=""
30127OPENEXR_LIBS=""
30128OPENEXR_PKG=""
30129if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030130 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30131$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030132
30133pkg_failed=no
30134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30135$as_echo_n "checking for OPENEXR... " >&6; }
30136
30137if test -n "$OPENEXR_CFLAGS"; then
30138 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30139 elif test -n "$PKG_CONFIG"; then
30140 if test -n "$PKG_CONFIG" && \
30141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30142 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30143 ac_status=$?
30144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30145 test $ac_status = 0; }; then
30146 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30147else
30148 pkg_failed=yes
30149fi
30150 else
30151 pkg_failed=untried
30152fi
30153if test -n "$OPENEXR_LIBS"; then
30154 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30155 elif test -n "$PKG_CONFIG"; then
30156 if test -n "$PKG_CONFIG" && \
30157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30158 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30159 ac_status=$?
30160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30161 test $ac_status = 0; }; then
30162 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30163else
30164 pkg_failed=yes
30165fi
30166 else
30167 pkg_failed=untried
30168fi
30169
30170
30171
30172if test $pkg_failed = yes; then
30173
30174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30175 _pkg_short_errors_supported=yes
30176else
30177 _pkg_short_errors_supported=no
30178fi
30179 if test $_pkg_short_errors_supported = yes; then
30180 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30181 else
30182 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30183 fi
30184 # Put the nasty error message in config.log where it belongs
30185 echo "$OPENEXR_PKG_ERRORS" >&5
30186
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30188$as_echo "no" >&6; }
30189 have_openexr=no
30190elif test $pkg_failed = untried; then
30191 have_openexr=no
30192else
30193 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30194 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30196$as_echo "yes" >&6; }
30197 have_openexr=yes
30198fi
cristy09b53e12011-10-14 12:47:22 +000030199 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30200$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030201fi
30202
30203if test "$have_openexr" = 'yes'; then
30204
cristy8b350f62009-11-15 23:12:43 +000030205$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030206
30207 if test "$with_modules" = 'no'; then
30208 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30209 fi
30210fi
30211
cristy73bd4a52010-10-05 11:24:23 +000030212 if test "$have_openexr" = 'yes'; then
30213 OPENEXR_DELEGATE_TRUE=
30214 OPENEXR_DELEGATE_FALSE='#'
30215else
30216 OPENEXR_DELEGATE_TRUE='#'
30217 OPENEXR_DELEGATE_FALSE=
30218fi
30219
cristy3ed852e2009-09-05 21:47:34 +000030220
30221
30222
30223
30224#
cristy41cbe8a2011-10-27 01:35:18 +000030225# Check for PANGO delegate library.
30226#
30227
30228# Check whether --with-pango was given.
30229if test "${with_pango+set}" = set; then :
30230 withval=$with_pango; with_pango=$withval
30231else
30232 with_pango=$have_x
30233fi
30234
30235
30236if test "$with_pango" != 'yes'; then
30237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30238fi
30239
30240have_pango='no'
30241have_pangoft2='no'
30242PANGO_CFLAGS=""
30243PANGO_LIBS=""
30244PANGO_PKG=""
30245if test "x$with_pango" = "xyes"; then
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30247$as_echo "-------------------------------------------------------------" >&6; }
30248
30249pkg_failed=no
30250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30251$as_echo_n "checking for PANGO... " >&6; }
30252
30253if test -n "$PANGO_CFLAGS"; then
30254 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30255 elif test -n "$PKG_CONFIG"; then
30256 if test -n "$PKG_CONFIG" && \
30257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30258 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30259 ac_status=$?
30260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30261 test $ac_status = 0; }; then
30262 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango" 2>/dev/null`
30263else
30264 pkg_failed=yes
30265fi
30266 else
30267 pkg_failed=untried
30268fi
30269if test -n "$PANGO_LIBS"; then
30270 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30271 elif test -n "$PKG_CONFIG"; then
30272 if test -n "$PKG_CONFIG" && \
30273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30274 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30275 ac_status=$?
30276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30277 test $ac_status = 0; }; then
30278 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango" 2>/dev/null`
30279else
30280 pkg_failed=yes
30281fi
30282 else
30283 pkg_failed=untried
30284fi
30285
30286
30287
30288if test $pkg_failed = yes; then
30289
30290if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30291 _pkg_short_errors_supported=yes
30292else
30293 _pkg_short_errors_supported=no
30294fi
30295 if test $_pkg_short_errors_supported = yes; then
30296 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango" 2>&1`
30297 else
30298 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango" 2>&1`
30299 fi
30300 # Put the nasty error message in config.log where it belongs
30301 echo "$PANGO_PKG_ERRORS" >&5
30302
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30304$as_echo "no" >&6; }
30305 have_pango=no
30306elif test $pkg_failed = untried; then
30307 have_pango=no
30308else
30309 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30310 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30312$as_echo "yes" >&6; }
30313 have_pango=yes
30314fi
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30316$as_echo "" >&6; }
30317
30318pkg_failed=no
30319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30320$as_echo_n "checking for PANGO... " >&6; }
30321
30322if test -n "$PANGO_CFLAGS"; then
30323 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30324 elif test -n "$PKG_CONFIG"; then
30325 if test -n "$PKG_CONFIG" && \
30326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30327 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30328 ac_status=$?
30329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30330 test $ac_status = 0; }; then
30331 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30332else
30333 pkg_failed=yes
30334fi
30335 else
30336 pkg_failed=untried
30337fi
30338if test -n "$PANGO_LIBS"; then
30339 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30340 elif test -n "$PKG_CONFIG"; then
30341 if test -n "$PKG_CONFIG" && \
30342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30343 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30344 ac_status=$?
30345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30346 test $ac_status = 0; }; then
30347 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30348else
30349 pkg_failed=yes
30350fi
30351 else
30352 pkg_failed=untried
30353fi
30354
30355
30356
30357if test $pkg_failed = yes; then
30358
30359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30360 _pkg_short_errors_supported=yes
30361else
30362 _pkg_short_errors_supported=no
30363fi
30364 if test $_pkg_short_errors_supported = yes; then
30365 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2" 2>&1`
30366 else
30367 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2" 2>&1`
30368 fi
30369 # Put the nasty error message in config.log where it belongs
30370 echo "$PANGO_PKG_ERRORS" >&5
30371
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30373$as_echo "no" >&6; }
30374 have_pangoft2=no
30375elif test $pkg_failed = untried; then
30376 have_pangoft2=no
30377else
30378 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30379 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30381$as_echo "yes" >&6; }
30382 have_pangoft2=yes
30383fi
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30385$as_echo "" >&6; }
30386fi
30387
30388if test "$have_pango" = 'yes'; then
30389
30390$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30391
30392 if test "$with_modules" = 'no'; then
30393 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30394 fi
30395fi
30396
30397if test "$have_pangoft2" = 'yes'; then
30398
30399$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30400
30401 if test "$with_modules" = 'no'; then
30402 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30403 fi
30404fi
30405
30406 if test "$have_pango" = 'yes'; then
30407 PANGO_DELEGATE_TRUE=
30408 PANGO_DELEGATE_FALSE='#'
30409else
30410 PANGO_DELEGATE_TRUE='#'
30411 PANGO_DELEGATE_FALSE=
30412fi
30413
30414 if test "$have_pangoft2" = 'yes'; then
30415 PANGOFT2_DELEGATE_TRUE=
30416 PANGOFT2_DELEGATE_FALSE='#'
30417else
30418 PANGOFT2_DELEGATE_TRUE='#'
30419 PANGOFT2_DELEGATE_FALSE=
30420fi
30421
30422
30423
30424
30425
30426#
cristy3ed852e2009-09-05 21:47:34 +000030427# Check for PNG delegate library.
30428#
30429
30430# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030431if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030432 withval=$with_png; with_png=$withval
30433else
30434 with_png='yes'
30435fi
30436
30437
30438if test "$with_png" != 'yes'; then
30439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30440fi
30441
cristy81beccd2011-10-03 18:17:24 +000030442have_png='no'
30443PNG_LIBS=''
30444
30445if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30447$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30449$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030450 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30451$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030452 failed=0
30453 passed=0
30454 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30455if test "x$ac_cv_header_png_h" = xyes; then :
30456 passed=`expr $passed + 1`
30457else
30458 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030459fi
30460
cristy81beccd2011-10-03 18:17:24 +000030461
30462
30463 if test $passed -gt 0; then
30464 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030465 if test "$have_png" = 'no' ; then
30466 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030467 pnglib='png'
30468 else
30469 pnglib="png1${var}"
30470 fi
30471
30472# Test for compatible LIBPNG library
30473 failed=0
30474 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030475 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030476 if test "${pnglib}" != 'png' ; then
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30478$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30480/* end confdefs.h. */
30481#include <stdio.h>
30482#include <stdlib.h>
30483#include <png.h>
30484
30485int
30486main ()
30487{
30488
30489#if PNG_LIBPNG_VER_MINOR != ${var}
30490#error LIBPNG library must be version 1${var}!
30491Kaboom, Kaboom
30492#endif
30493return 0;
30494
30495 ;
30496 return 0;
30497}
30498_ACEOF
30499if ac_fn_c_try_compile "$LINENO"; then :
30500 ac_cv_libpng_ok='yes'
30501else
30502 ac_cv_libpng_ok='no'
30503fi
30504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30505 if test "$ac_cv_libpng_ok" = 'yes' ; then
30506 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030507 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30508$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030509 else
30510 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30512$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030513 fi
30514 else
30515 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30517$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030518 fi
30519 fi
30520
30521 if test $passed -gt 0 -a $failed -le 0; then
30522 if test "1${var}" = '15' ; then
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30524$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30525if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30526 $as_echo_n "(cached) " >&6
30527else
30528 ac_check_lib_save_LIBS=$LIBS
30529LIBS="-lpng15 $LIBS"
30530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30531/* end confdefs.h. */
30532
30533/* Override any GCC internal prototype to avoid an error.
30534 Use char because int might match the return type of a GCC
30535 builtin and then its argument prototype would still apply. */
30536#ifdef __cplusplus
30537extern "C"
30538#endif
30539char png_get_io_ptr ();
30540int
30541main ()
30542{
30543return png_get_io_ptr ();
30544 ;
30545 return 0;
30546}
30547_ACEOF
30548if ac_fn_c_try_link "$LINENO"; then :
30549 ac_cv_lib_png15_png_get_io_ptr=yes
30550else
30551 ac_cv_lib_png15_png_get_io_ptr=no
30552fi
30553rm -f core conftest.err conftest.$ac_objext \
30554 conftest$ac_exeext conftest.$ac_ext
30555LIBS=$ac_check_lib_save_LIBS
30556fi
30557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30558$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30559if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30560 passed=`expr $passed + 1`
30561else
30562 failed=`expr $failed + 1`
30563fi
30564
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30566$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30567if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30568 $as_echo_n "(cached) " >&6
30569else
30570 ac_check_lib_save_LIBS=$LIBS
30571LIBS="-lpng15 $LIBS"
30572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30573/* end confdefs.h. */
30574
30575/* Override any GCC internal prototype to avoid an error.
30576 Use char because int might match the return type of a GCC
30577 builtin and then its argument prototype would still apply. */
30578#ifdef __cplusplus
30579extern "C"
30580#endif
30581char png_longjmp ();
30582int
30583main ()
30584{
30585return png_longjmp ();
30586 ;
30587 return 0;
30588}
30589_ACEOF
30590if ac_fn_c_try_link "$LINENO"; then :
30591 ac_cv_lib_png15_png_longjmp=yes
30592else
30593 ac_cv_lib_png15_png_longjmp=no
30594fi
30595rm -f core conftest.err conftest.$ac_objext \
30596 conftest$ac_exeext conftest.$ac_ext
30597LIBS=$ac_check_lib_save_LIBS
30598fi
30599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30600$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30601if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30602 passed=`expr $passed + 1`
30603else
30604 failed=`expr $failed + 1`
30605fi
30606
30607 fi
30608 if test "1${var}" = '14' ; then
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30610$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30611if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30612 $as_echo_n "(cached) " >&6
30613else
30614 ac_check_lib_save_LIBS=$LIBS
30615LIBS="-lpng14 $LIBS"
30616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30617/* end confdefs.h. */
30618
30619/* Override any GCC internal prototype to avoid an error.
30620 Use char because int might match the return type of a GCC
30621 builtin and then its argument prototype would still apply. */
30622#ifdef __cplusplus
30623extern "C"
30624#endif
30625char png_get_io_ptr ();
30626int
30627main ()
30628{
30629return png_get_io_ptr ();
30630 ;
30631 return 0;
30632}
30633_ACEOF
30634if ac_fn_c_try_link "$LINENO"; then :
30635 ac_cv_lib_png14_png_get_io_ptr=yes
30636else
30637 ac_cv_lib_png14_png_get_io_ptr=no
30638fi
30639rm -f core conftest.err conftest.$ac_objext \
30640 conftest$ac_exeext conftest.$ac_ext
30641LIBS=$ac_check_lib_save_LIBS
30642fi
30643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30644$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30645if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30646 passed=`expr $passed + 1`
30647else
30648 failed=`expr $failed + 1`
30649fi
30650
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30652$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30653if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30654 $as_echo_n "(cached) " >&6
30655else
30656 ac_check_lib_save_LIBS=$LIBS
30657LIBS="-lpng14 $LIBS"
30658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30659/* end confdefs.h. */
30660
30661/* Override any GCC internal prototype to avoid an error.
30662 Use char because int might match the return type of a GCC
30663 builtin and then its argument prototype would still apply. */
30664#ifdef __cplusplus
30665extern "C"
30666#endif
30667char png_get_io_state ();
30668int
30669main ()
30670{
30671return png_get_io_state ();
30672 ;
30673 return 0;
30674}
30675_ACEOF
30676if ac_fn_c_try_link "$LINENO"; then :
30677 ac_cv_lib_png14_png_get_io_state=yes
30678else
30679 ac_cv_lib_png14_png_get_io_state=no
30680fi
30681rm -f core conftest.err conftest.$ac_objext \
30682 conftest$ac_exeext conftest.$ac_ext
30683LIBS=$ac_check_lib_save_LIBS
30684fi
30685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30686$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30687if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30688 passed=`expr $passed + 1`
30689else
30690 failed=`expr $failed + 1`
30691fi
30692
30693 fi
30694 if test "1${var}" = '12' ; then
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30696$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30697if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30698 $as_echo_n "(cached) " >&6
30699else
30700 ac_check_lib_save_LIBS=$LIBS
30701LIBS="-lpng12 $LIBS"
30702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30703/* end confdefs.h. */
30704
30705/* Override any GCC internal prototype to avoid an error.
30706 Use char because int might match the return type of a GCC
30707 builtin and then its argument prototype would still apply. */
30708#ifdef __cplusplus
30709extern "C"
30710#endif
30711char png_get_io_ptr ();
30712int
30713main ()
30714{
30715return png_get_io_ptr ();
30716 ;
30717 return 0;
30718}
30719_ACEOF
30720if ac_fn_c_try_link "$LINENO"; then :
30721 ac_cv_lib_png12_png_get_io_ptr=yes
30722else
30723 ac_cv_lib_png12_png_get_io_ptr=no
30724fi
30725rm -f core conftest.err conftest.$ac_objext \
30726 conftest$ac_exeext conftest.$ac_ext
30727LIBS=$ac_check_lib_save_LIBS
30728fi
30729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30730$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30731if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30732 passed=`expr $passed + 1`
30733else
30734 failed=`expr $failed + 1`
30735fi
30736
30737 fi
30738 if test "1${var}" = '1' ; then
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30740$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30741if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30742 $as_echo_n "(cached) " >&6
30743else
30744 ac_check_lib_save_LIBS=$LIBS
30745LIBS="-lpng $LIBS"
30746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30747/* end confdefs.h. */
30748
30749/* Override any GCC internal prototype to avoid an error.
30750 Use char because int might match the return type of a GCC
30751 builtin and then its argument prototype would still apply. */
30752#ifdef __cplusplus
30753extern "C"
30754#endif
30755char png_get_io_ptr ();
30756int
30757main ()
30758{
30759return png_get_io_ptr ();
30760 ;
30761 return 0;
30762}
30763_ACEOF
30764if ac_fn_c_try_link "$LINENO"; then :
30765 ac_cv_lib_png_png_get_io_ptr=yes
30766else
30767 ac_cv_lib_png_png_get_io_ptr=no
30768fi
30769rm -f core conftest.err conftest.$ac_objext \
30770 conftest$ac_exeext conftest.$ac_ext
30771LIBS=$ac_check_lib_save_LIBS
30772fi
30773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30774$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30775if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30776 passed=`expr $passed + 1`
30777else
30778 failed=`expr $failed + 1`
30779fi
30780
30781 fi
30782 if test $passed -gt 0 -a $failed -le 0 ; then
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30784$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30785 if test $passed -gt 0 ; then
30786 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030787 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30788$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030789 have_png='no (failed tests)'
30790 else
30791 PNG_LIBS="-l${pnglib}"
30792 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030793
cristy8b350f62009-11-15 23:12:43 +000030794$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030795
cristy09b53e12011-10-14 12:47:22 +000030796 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30797$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030798 have_png='yes'
30799 fi
30800 fi
30801 fi
30802 fi
30803 fi
30804 done
30805 fi
cristy3ed852e2009-09-05 21:47:34 +000030806fi
cristy64877302011-08-23 19:10:31 +000030807
cristy73bd4a52010-10-05 11:24:23 +000030808 if test "$have_png" = 'yes'; then
30809 PNG_DELEGATE_TRUE=
30810 PNG_DELEGATE_FALSE='#'
30811else
30812 PNG_DELEGATE_TRUE='#'
30813 PNG_DELEGATE_FALSE=
30814fi
30815
cristy3ed852e2009-09-05 21:47:34 +000030816
cristy50d3f5c2011-09-10 20:09:06 +000030817
cristy3ed852e2009-09-05 21:47:34 +000030818
30819
30820#
30821# Check for RSVG delegate library.
30822#
30823
30824# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030825if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030826 withval=$with_rsvg; with_rsvg=$withval
30827else
30828 with_rsvg=$have_x
30829fi
30830
30831
30832if test "$with_rsvg" != 'yes'; then
30833 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30834fi
30835
30836have_rsvg='no'
30837have_cairo='no'
30838RSVG_CFLAGS=""
30839RSVG_LIBS=""
30840RSVG_PKG=""
30841if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030842 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30843$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030844
30845pkg_failed=no
30846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30847$as_echo_n "checking for RSVG... " >&6; }
30848
30849if test -n "$RSVG_CFLAGS"; then
30850 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30851 elif test -n "$PKG_CONFIG"; then
30852 if test -n "$PKG_CONFIG" && \
30853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30854 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30855 ac_status=$?
30856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30857 test $ac_status = 0; }; then
30858 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30859else
30860 pkg_failed=yes
30861fi
30862 else
30863 pkg_failed=untried
30864fi
30865if test -n "$RSVG_LIBS"; then
30866 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30867 elif test -n "$PKG_CONFIG"; then
30868 if test -n "$PKG_CONFIG" && \
30869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30870 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30871 ac_status=$?
30872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30873 test $ac_status = 0; }; then
30874 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30875else
30876 pkg_failed=yes
30877fi
30878 else
30879 pkg_failed=untried
30880fi
30881
30882
30883
30884if test $pkg_failed = yes; then
30885
30886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30887 _pkg_short_errors_supported=yes
30888else
30889 _pkg_short_errors_supported=no
30890fi
30891 if test $_pkg_short_errors_supported = yes; then
30892 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30893 else
30894 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30895 fi
30896 # Put the nasty error message in config.log where it belongs
30897 echo "$RSVG_PKG_ERRORS" >&5
30898
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30900$as_echo "no" >&6; }
30901 have_rsvg=no
30902elif test $pkg_failed = untried; then
30903 have_rsvg=no
30904else
30905 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30906 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30908$as_echo "yes" >&6; }
30909 have_rsvg=yes
30910fi
cristy09b53e12011-10-14 12:47:22 +000030911 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30912$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030913
30914pkg_failed=no
30915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30916$as_echo_n "checking for CAIRO_SVG... " >&6; }
30917
30918if test -n "$CAIRO_SVG_CFLAGS"; then
30919 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30920 elif test -n "$PKG_CONFIG"; then
30921 if test -n "$PKG_CONFIG" && \
30922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30923 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30924 ac_status=$?
30925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30926 test $ac_status = 0; }; then
30927 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30928else
30929 pkg_failed=yes
30930fi
30931 else
30932 pkg_failed=untried
30933fi
30934if test -n "$CAIRO_SVG_LIBS"; then
30935 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30936 elif test -n "$PKG_CONFIG"; then
30937 if test -n "$PKG_CONFIG" && \
30938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30939 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30940 ac_status=$?
30941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30942 test $ac_status = 0; }; then
30943 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30944else
30945 pkg_failed=yes
30946fi
30947 else
30948 pkg_failed=untried
30949fi
30950
30951
30952
30953if test $pkg_failed = yes; then
30954
30955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30956 _pkg_short_errors_supported=yes
30957else
30958 _pkg_short_errors_supported=no
30959fi
30960 if test $_pkg_short_errors_supported = yes; then
30961 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30962 else
30963 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30964 fi
30965 # Put the nasty error message in config.log where it belongs
30966 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30967
30968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30969$as_echo "no" >&6; }
30970 have_cairo=no
30971elif test $pkg_failed = untried; then
30972 have_cairo=no
30973else
30974 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30975 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30977$as_echo "yes" >&6; }
30978 have_cairo=yes
30979fi
cristy09b53e12011-10-14 12:47:22 +000030980 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30981$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030982fi
30983
30984if test "$have_rsvg" = 'yes'; then
30985
cristy8b350f62009-11-15 23:12:43 +000030986$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030987
30988 if test "$with_modules" = 'no'; then
30989 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30990 fi
30991fi
30992
30993if test "$have_cairo" = 'yes'; then
30994
cristy8b350f62009-11-15 23:12:43 +000030995$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030996
30997 if test "$with_modules" = 'no'; then
30998 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30999 fi
31000fi
31001
cristy73bd4a52010-10-05 11:24:23 +000031002 if test "$have_rsvg" = 'yes'; then
31003 RSVG_DELEGATE_TRUE=
31004 RSVG_DELEGATE_FALSE='#'
31005else
31006 RSVG_DELEGATE_TRUE='#'
31007 RSVG_DELEGATE_FALSE=
31008fi
31009
31010 if test "$have_cairo" = 'yes'; then
31011 CAIRO_DELEGATE_TRUE=
31012 CAIRO_DELEGATE_FALSE='#'
31013else
31014 CAIRO_DELEGATE_TRUE='#'
31015 CAIRO_DELEGATE_FALSE=
31016fi
31017
cristy3ed852e2009-09-05 21:47:34 +000031018
31019
31020
31021
31022#
31023# Check for TIFF delegate library.
31024#
31025
31026# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031027if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031028 withval=$with_tiff; with_tiff=$withval
31029else
31030 with_tiff='yes'
31031fi
31032
31033
31034if test "$with_tiff" != 'yes'; then
31035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31036fi
31037
31038have_tiff='no'
31039TIFF_LIBS=''
31040if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031041 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31042$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031044$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031045 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31046$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031047 failed=0
31048 passed=0
cristy8b350f62009-11-15 23:12:43 +000031049 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031050if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031051 passed=`expr $passed + 1`
31052else
31053 failed=`expr $failed + 1`
31054fi
31055
31056
cristy8b350f62009-11-15 23:12:43 +000031057 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031058if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031059 passed=`expr $passed + 1`
31060else
31061 failed=`expr $failed + 1`
31062fi
31063
31064
cristy8b350f62009-11-15 23:12:43 +000031065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031066$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031067if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031068 $as_echo_n "(cached) " >&6
31069else
31070 ac_check_lib_save_LIBS=$LIBS
31071LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031073/* end confdefs.h. */
31074
31075/* Override any GCC internal prototype to avoid an error.
31076 Use char because int might match the return type of a GCC
31077 builtin and then its argument prototype would still apply. */
31078#ifdef __cplusplus
31079extern "C"
31080#endif
31081char TIFFOpen ();
31082int
31083main ()
31084{
31085return TIFFOpen ();
31086 ;
31087 return 0;
31088}
31089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031091 ac_cv_lib_tiff_TIFFOpen=yes
31092else
cristy8b350f62009-11-15 23:12:43 +000031093 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031094fi
cristy8b350f62009-11-15 23:12:43 +000031095rm -f core conftest.err conftest.$ac_objext \
31096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031097LIBS=$ac_check_lib_save_LIBS
31098fi
cristy8b350f62009-11-15 23:12:43 +000031099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031100$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031101if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031102 passed=`expr $passed + 1`
31103else
31104 failed=`expr $failed + 1`
31105fi
31106
cristy8b350f62009-11-15 23:12:43 +000031107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031108$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031109if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031110 $as_echo_n "(cached) " >&6
31111else
31112 ac_check_lib_save_LIBS=$LIBS
31113LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031115/* end confdefs.h. */
31116
31117/* Override any GCC internal prototype to avoid an error.
31118 Use char because int might match the return type of a GCC
31119 builtin and then its argument prototype would still apply. */
31120#ifdef __cplusplus
31121extern "C"
31122#endif
31123char TIFFClientOpen ();
31124int
31125main ()
31126{
31127return TIFFClientOpen ();
31128 ;
31129 return 0;
31130}
31131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031132if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031133 ac_cv_lib_tiff_TIFFClientOpen=yes
31134else
cristy8b350f62009-11-15 23:12:43 +000031135 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031136fi
cristy8b350f62009-11-15 23:12:43 +000031137rm -f core conftest.err conftest.$ac_objext \
31138 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031139LIBS=$ac_check_lib_save_LIBS
31140fi
cristy8b350f62009-11-15 23:12:43 +000031141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031142$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031143if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031144 passed=`expr $passed + 1`
31145else
31146 failed=`expr $failed + 1`
31147fi
31148
cristyb97f1002010-07-26 14:02:57 +000031149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
31150$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031151if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000031152 $as_echo_n "(cached) " >&6
31153else
31154 ac_check_lib_save_LIBS=$LIBS
31155LIBS="-ltiff $LIBS"
31156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31157/* end confdefs.h. */
31158
31159/* Override any GCC internal prototype to avoid an error.
31160 Use char because int might match the return type of a GCC
31161 builtin and then its argument prototype would still apply. */
31162#ifdef __cplusplus
31163extern "C"
31164#endif
31165char TIFFIsBigEndian ();
31166int
31167main ()
31168{
31169return TIFFIsBigEndian ();
31170 ;
31171 return 0;
31172}
31173_ACEOF
31174if ac_fn_c_try_link "$LINENO"; then :
31175 ac_cv_lib_tiff_TIFFIsBigEndian=yes
31176else
31177 ac_cv_lib_tiff_TIFFIsBigEndian=no
31178fi
31179rm -f core conftest.err conftest.$ac_objext \
31180 conftest$ac_exeext conftest.$ac_ext
31181LIBS=$ac_check_lib_save_LIBS
31182fi
31183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
31184$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000031185if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000031186 passed=`expr $passed + 1`
31187else
31188 failed=`expr $failed + 1`
31189fi
31190
cristy8b350f62009-11-15 23:12:43 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031192$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031193if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031194 $as_echo_n "(cached) " >&6
31195else
31196 ac_check_lib_save_LIBS=$LIBS
31197LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031199/* end confdefs.h. */
31200
31201/* Override any GCC internal prototype to avoid an error.
31202 Use char because int might match the return type of a GCC
31203 builtin and then its argument prototype would still apply. */
31204#ifdef __cplusplus
31205extern "C"
31206#endif
31207char TIFFIsByteSwapped ();
31208int
31209main ()
31210{
31211return TIFFIsByteSwapped ();
31212 ;
31213 return 0;
31214}
31215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031217 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31218else
cristy8b350f62009-11-15 23:12:43 +000031219 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031220fi
cristy8b350f62009-11-15 23:12:43 +000031221rm -f core conftest.err conftest.$ac_objext \
31222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031223LIBS=$ac_check_lib_save_LIBS
31224fi
cristy8b350f62009-11-15 23:12:43 +000031225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031226$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031227if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031228 passed=`expr $passed + 1`
31229else
31230 failed=`expr $failed + 1`
31231fi
31232
cristy8b350f62009-11-15 23:12:43 +000031233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031234$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031235if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031236 $as_echo_n "(cached) " >&6
31237else
31238 ac_check_lib_save_LIBS=$LIBS
31239LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031241/* end confdefs.h. */
31242
31243/* Override any GCC internal prototype to avoid an error.
31244 Use char because int might match the return type of a GCC
31245 builtin and then its argument prototype would still apply. */
31246#ifdef __cplusplus
31247extern "C"
31248#endif
31249char TIFFReadRGBATile ();
31250int
31251main ()
31252{
31253return TIFFReadRGBATile ();
31254 ;
31255 return 0;
31256}
31257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031258if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031259 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31260else
cristy8b350f62009-11-15 23:12:43 +000031261 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031262fi
cristy8b350f62009-11-15 23:12:43 +000031263rm -f core conftest.err conftest.$ac_objext \
31264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031265LIBS=$ac_check_lib_save_LIBS
31266fi
cristy8b350f62009-11-15 23:12:43 +000031267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031268$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031269if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031270 passed=`expr $passed + 1`
31271else
31272 failed=`expr $failed + 1`
31273fi
31274
cristy8b350f62009-11-15 23:12:43 +000031275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031276$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031277if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031278 $as_echo_n "(cached) " >&6
31279else
31280 ac_check_lib_save_LIBS=$LIBS
31281LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031283/* end confdefs.h. */
31284
31285/* Override any GCC internal prototype to avoid an error.
31286 Use char because int might match the return type of a GCC
31287 builtin and then its argument prototype would still apply. */
31288#ifdef __cplusplus
31289extern "C"
31290#endif
31291char TIFFReadRGBAStrip ();
31292int
31293main ()
31294{
31295return TIFFReadRGBAStrip ();
31296 ;
31297 return 0;
31298}
31299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031301 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31302else
cristy8b350f62009-11-15 23:12:43 +000031303 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031304fi
cristy8b350f62009-11-15 23:12:43 +000031305rm -f core conftest.err conftest.$ac_objext \
31306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031307LIBS=$ac_check_lib_save_LIBS
31308fi
cristy8b350f62009-11-15 23:12:43 +000031309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031311if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031312 passed=`expr $passed + 1`
31313else
31314 failed=`expr $failed + 1`
31315fi
31316
cristy8b350f62009-11-15 23:12:43 +000031317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031318$as_echo_n "checking if TIFF package is complete... " >&6; }
31319 if test $passed -gt 0; then
31320 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031321 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31322$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031323 have_tiff='no (failed tests)'
31324 else
31325 TIFF_LIBS='-ltiff'
31326 LIBS="$TIFF_LIBS $LIBS"
31327
cristy8b350f62009-11-15 23:12:43 +000031328$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031329
cristy09b53e12011-10-14 12:47:22 +000031330 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31331$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031332 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031333 for ac_header in tiffconf.h
31334do :
31335 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031336if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031337 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031338#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031339_ACEOF
31340
31341fi
31342
31343done
31344
cristy8b350f62009-11-15 23:12:43 +000031345 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031346 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31347 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031348do :
31349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31350ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031351if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031352 cat >>confdefs.h <<_ACEOF
31353#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31354_ACEOF
31355
31356fi
31357done
31358
31359 fi
31360 else
cristy09b53e12011-10-14 12:47:22 +000031361 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31362$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031363 fi
31364fi
cristy73bd4a52010-10-05 11:24:23 +000031365 if test "$have_tiff" = 'yes'; then
31366 TIFF_DELEGATE_TRUE=
31367 TIFF_DELEGATE_FALSE='#'
31368else
31369 TIFF_DELEGATE_TRUE='#'
31370 TIFF_DELEGATE_FALSE=
31371fi
31372
cristy3ed852e2009-09-05 21:47:34 +000031373
31374
31375
31376#
cristyb1860752011-03-14 00:27:46 +000031377# Check for WEBP delegate library.
31378#
31379
31380# Check whether --with-webp was given.
31381if test "${with_webp+set}" = set; then :
31382 withval=$with_webp; with_webp=$withval
31383else
31384 with_webp='yes'
31385fi
31386
31387
31388if test "$with_webp" != 'yes'; then
31389 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31390fi
31391
31392have_webp='no'
31393WEBP_LIBS=''
31394if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031395 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31396$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31398$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031399 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31400$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031401 failed=0
31402 passed=0
31403 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31404if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31405 passed=`expr $passed + 1`
31406else
31407 failed=`expr $failed + 1`
31408fi
31409
31410
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31412$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31413if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31414 $as_echo_n "(cached) " >&6
31415else
31416 ac_check_lib_save_LIBS=$LIBS
31417LIBS="-lwebp $LIBS"
31418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31419/* end confdefs.h. */
31420
31421/* Override any GCC internal prototype to avoid an error.
31422 Use char because int might match the return type of a GCC
31423 builtin and then its argument prototype would still apply. */
31424#ifdef __cplusplus
31425extern "C"
31426#endif
31427char WebPDecodeRGB ();
31428int
31429main ()
31430{
31431return WebPDecodeRGB ();
31432 ;
31433 return 0;
31434}
31435_ACEOF
31436if ac_fn_c_try_link "$LINENO"; then :
31437 ac_cv_lib_webp_WebPDecodeRGB=yes
31438else
31439 ac_cv_lib_webp_WebPDecodeRGB=no
31440fi
31441rm -f core conftest.err conftest.$ac_objext \
31442 conftest$ac_exeext conftest.$ac_ext
31443LIBS=$ac_check_lib_save_LIBS
31444fi
31445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31446$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31447if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31448 passed=`expr $passed + 1`
31449else
31450 failed=`expr $failed + 1`
31451fi
31452
31453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31454$as_echo_n "checking if WEBP package is complete... " >&6; }
31455 if test $passed -gt 0; then
31456 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31458$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031459 have_webp='no (failed tests)'
31460 else
31461 WEBP_LIBS='-lwebp'
31462 LIBS="$WEBP_LIBS $LIBS"
31463
31464$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31465
cristy09b53e12011-10-14 12:47:22 +000031466 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31467$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031468 have_webp='yes'
31469 fi
31470 else
cristy09b53e12011-10-14 12:47:22 +000031471 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31472$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031473 fi
31474fi
31475 if test "$have_webp" = 'yes'; then
31476 WEBP_DELEGATE_TRUE=
31477 WEBP_DELEGATE_FALSE='#'
31478else
31479 WEBP_DELEGATE_TRUE='#'
31480 WEBP_DELEGATE_FALSE=
31481fi
31482
31483
31484
31485
31486#
cristy3ed852e2009-09-05 21:47:34 +000031487# Set Windows font directory.
31488#
31489
31490# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031491if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031492 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31493else
31494 with_windows_font_dir=''
31495fi
31496
31497if test "$with_windows_font_dir" != '' ; then
31498 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31499fi
31500
31501
31502#
31503# Check for WMF delegate library.
31504#
31505
31506# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031507if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031508 withval=$with_wmf; with_wmf=$withval
31509else
cristy8d63d1d2010-01-06 20:38:37 +000031510 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031511fi
31512
31513
31514if test "$with_wmf" != 'yes'; then
31515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31516fi
31517
31518have_wmf='no'
31519WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031520if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031521 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31522$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031524$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031525 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31526$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031527 failed=0
31528 passed=0
31529 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31530if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31531 passed=`expr $passed + 1`
31532else
31533 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031534fi
31535
31536
glennrp33e524b2011-08-24 17:41:57 +000031537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31538$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31539if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031540 $as_echo_n "(cached) " >&6
31541else
31542 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031543LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031545/* end confdefs.h. */
31546
31547/* Override any GCC internal prototype to avoid an error.
31548 Use char because int might match the return type of a GCC
31549 builtin and then its argument prototype would still apply. */
31550#ifdef __cplusplus
31551extern "C"
31552#endif
glennrp33e524b2011-08-24 17:41:57 +000031553char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031554int
31555main ()
31556{
glennrp33e524b2011-08-24 17:41:57 +000031557return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031558 ;
31559 return 0;
31560}
31561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031562if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031563 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031564else
glennrp33e524b2011-08-24 17:41:57 +000031565 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031566fi
cristy8b350f62009-11-15 23:12:43 +000031567rm -f core conftest.err conftest.$ac_objext \
31568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031569LIBS=$ac_check_lib_save_LIBS
31570fi
glennrp33e524b2011-08-24 17:41:57 +000031571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31572$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31573if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31574 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031575else
glennrp33e524b2011-08-24 17:41:57 +000031576 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031577fi
31578
glennrp33e524b2011-08-24 17:41:57 +000031579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31580$as_echo_n "checking if WMF package is complete... " >&6; }
31581 if test $passed -gt 0; then
31582 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31584$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031585 have_wmf='no (failed tests)'
31586 else
31587 WMF_LIBS='-lwmf -lwmflite'
31588 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031589
cristy8b350f62009-11-15 23:12:43 +000031590$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031591
cristy09b53e12011-10-14 12:47:22 +000031592 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31593$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031594 have_wmf='yes'
31595 fi
31596 else
cristy09b53e12011-10-14 12:47:22 +000031597 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31598$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031599 fi
cristy3ed852e2009-09-05 21:47:34 +000031600fi
cristy73bd4a52010-10-05 11:24:23 +000031601 if test "$have_wmf" = 'yes'; then
31602 WMF_DELEGATE_TRUE=
31603 WMF_DELEGATE_FALSE='#'
31604else
31605 WMF_DELEGATE_TRUE='#'
31606 WMF_DELEGATE_FALSE=
31607fi
31608
cristy3ed852e2009-09-05 21:47:34 +000031609
31610
31611
cristy81beccd2011-10-03 18:17:24 +000031612
31613
cristy3ed852e2009-09-05 21:47:34 +000031614#
31615# Check for XML delegate library.
31616#
31617
31618# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031619if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031620 withval=$with_xml; with_xml=$withval
31621else
cristy81beccd2011-10-03 18:17:24 +000031622 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031623fi
31624
31625
cristy81beccd2011-10-03 18:17:24 +000031626if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031627 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31628fi
31629
cristy81beccd2011-10-03 18:17:24 +000031630have_xml='no'
31631XML_LIBS=''
31632if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31634$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31636$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031637 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31638$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031639 PERSIST_LDFLAGS=$LDFLAGS
31640 PERSIST_CPPFLAGS=$CPPFLAGS
31641 xml2_config=''
31642 # Extract the first word of "xml2-config", so it can be a program name with args.
31643set dummy xml2-config; ac_word=$2
31644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31645$as_echo_n "checking for $ac_word... " >&6; }
31646if ${ac_cv_path_xml2_config+:} false; then :
31647 $as_echo_n "(cached) " >&6
31648else
31649 case $xml2_config in
31650 [\\/]* | ?:[\\/]*)
31651 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31652 ;;
31653 *)
31654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31655for as_dir in $PATH
31656do
31657 IFS=$as_save_IFS
31658 test -z "$as_dir" && as_dir=.
31659 for ac_exec_ext in '' $ac_executable_extensions; do
31660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31661 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31663 break 2
31664 fi
31665done
31666 done
31667IFS=$as_save_IFS
31668
31669 ;;
31670esac
31671fi
31672xml2_config=$ac_cv_path_xml2_config
31673if test -n "$xml2_config"; then
31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31675$as_echo "$xml2_config" >&6; }
31676else
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031679fi
31680
cristy81beccd2011-10-03 18:17:24 +000031681 if test -n "$xml2_config"; then
31682 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31683 # the shared library installed under /usr/lib, whereas the package
31684 # installs itself under $prefix/libxml and $prefix/lib.
31685 xml2_prefix=`xml2-config --prefix`
31686 if test -d "${xml2_prefix}/include/libxml2"; then
31687 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31688 fi
31689 if test "${xml2_prefix}" != '/usr'; then
31690 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31691 fi
31692 fi
31693 failed=0
31694 passed=0
31695 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31696if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31697 passed=`expr $passed + 1`
31698else
31699 failed=`expr $failed + 1`
31700fi
31701
31702
31703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31704$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31705if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31706 $as_echo_n "(cached) " >&6
31707else
31708 ac_check_lib_save_LIBS=$LIBS
31709LIBS="-lxml2 $LIBS"
31710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31711/* end confdefs.h. */
31712
31713/* Override any GCC internal prototype to avoid an error.
31714 Use char because int might match the return type of a GCC
31715 builtin and then its argument prototype would still apply. */
31716#ifdef __cplusplus
31717extern "C"
31718#endif
31719char xmlSAXVersion ();
31720int
31721main ()
31722{
31723return xmlSAXVersion ();
31724 ;
31725 return 0;
31726}
31727_ACEOF
31728if ac_fn_c_try_link "$LINENO"; then :
31729 ac_cv_lib_xml2_xmlSAXVersion=yes
31730else
31731 ac_cv_lib_xml2_xmlSAXVersion=no
31732fi
31733rm -f core conftest.err conftest.$ac_objext \
31734 conftest$ac_exeext conftest.$ac_ext
31735LIBS=$ac_check_lib_save_LIBS
31736fi
31737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31738$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31739if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31740 passed=`expr $passed + 1`
31741else
31742 failed=`expr $failed + 1`
31743fi
31744
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31746$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31747if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31748 $as_echo_n "(cached) " >&6
31749else
31750 ac_check_lib_save_LIBS=$LIBS
31751LIBS="-lxml2 $LIBS"
31752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31753/* end confdefs.h. */
31754
31755/* Override any GCC internal prototype to avoid an error.
31756 Use char because int might match the return type of a GCC
31757 builtin and then its argument prototype would still apply. */
31758#ifdef __cplusplus
31759extern "C"
31760#endif
31761char xmlParseChunk ();
31762int
31763main ()
31764{
31765return xmlParseChunk ();
31766 ;
31767 return 0;
31768}
31769_ACEOF
31770if ac_fn_c_try_link "$LINENO"; then :
31771 ac_cv_lib_xml2_xmlParseChunk=yes
31772else
31773 ac_cv_lib_xml2_xmlParseChunk=no
31774fi
31775rm -f core conftest.err conftest.$ac_objext \
31776 conftest$ac_exeext conftest.$ac_ext
31777LIBS=$ac_check_lib_save_LIBS
31778fi
31779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31780$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31781if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31782 passed=`expr $passed + 1`
31783else
31784 failed=`expr $failed + 1`
31785fi
31786
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31788$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31789if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31790 $as_echo_n "(cached) " >&6
31791else
31792 ac_check_lib_save_LIBS=$LIBS
31793LIBS="-lxml2 $LIBS"
31794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31795/* end confdefs.h. */
31796
31797/* Override any GCC internal prototype to avoid an error.
31798 Use char because int might match the return type of a GCC
31799 builtin and then its argument prototype would still apply. */
31800#ifdef __cplusplus
31801extern "C"
31802#endif
31803char xmlCreatePushParserCtxt ();
31804int
31805main ()
31806{
31807return xmlCreatePushParserCtxt ();
31808 ;
31809 return 0;
31810}
31811_ACEOF
31812if ac_fn_c_try_link "$LINENO"; then :
31813 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31814else
31815 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31816fi
31817rm -f core conftest.err conftest.$ac_objext \
31818 conftest$ac_exeext conftest.$ac_ext
31819LIBS=$ac_check_lib_save_LIBS
31820fi
31821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31822$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31823if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31824 passed=`expr $passed + 1`
31825else
31826 failed=`expr $failed + 1`
31827fi
31828
31829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31830$as_echo_n "checking if XML package is complete... " >&6; }
31831 if test $passed -gt 0; then
31832 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031833 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31834$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031835 have_xml='no (failed tests)'
31836 LDFLAGS="$PERSIST_LDFLAGS"
31837 CPPFLAGS="$PERSIST_CPPFLAGS"
31838 else
31839 XML_LIBS='-lxml2'
31840 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031841
cristy8b350f62009-11-15 23:12:43 +000031842$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031843
cristy09b53e12011-10-14 12:47:22 +000031844 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31845$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031846 have_xml='yes'
31847 fi
31848 else
cristy09b53e12011-10-14 12:47:22 +000031849 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31850$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031851 fi
31852fi
cristy73bd4a52010-10-05 11:24:23 +000031853 if test "$have_xml" = 'yes'; then
31854 XML_DELEGATE_TRUE=
31855 XML_DELEGATE_FALSE='#'
31856else
31857 XML_DELEGATE_TRUE='#'
31858 XML_DELEGATE_FALSE=
31859fi
31860
cristy3ed852e2009-09-05 21:47:34 +000031861
31862
31863
31864# Substitute compiler name to build/link PerlMagick
31865#
31866
31867
31868#
31869# Configure install Paths
31870#
31871
31872# Subdirectory under lib to place ImageMagick lib files
31873LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31874
31875cat >>confdefs.h <<_ACEOF
31876#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31877_ACEOF
31878
31879
31880# Path to ImageMagick bin directory
31881EXECUTABLE_PATH="${BIN_DIR}"
31882DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31883case "${build_os}" in
31884 mingw* )
31885 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31886 ;;
31887esac
31888
31889cat >>confdefs.h <<_ACEOF
31890#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31891_ACEOF
31892
31893
31894
31895# Path to ImageMagick lib
31896LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31897DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31898case "${build_os}" in
31899 mingw* )
31900 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31901 ;;
31902esac
31903
31904cat >>confdefs.h <<_ACEOF
31905#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31906_ACEOF
31907
31908
31909
cristy3ed852e2009-09-05 21:47:34 +000031910#
31911# Subdirectory under lib to place ImageMagick coder module files
31912CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31913
31914cat >>confdefs.h <<_ACEOF
31915#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31916_ACEOF
31917
31918CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31919DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31920case "${build_os}" in
31921 mingw* )
31922 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31923 ;;
31924esac
31925
31926cat >>confdefs.h <<_ACEOF
31927#define CODER_PATH "$DEFINE_CODER_PATH"
31928_ACEOF
31929
31930
31931
31932#
31933# Subdirectory under lib to place ImageMagick filter module files
31934FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31935
31936cat >>confdefs.h <<_ACEOF
31937#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31938_ACEOF
31939
31940FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31941DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31942case "${build_os}" in
31943 mingw* )
31944 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31945 ;;
31946esac
31947
31948cat >>confdefs.h <<_ACEOF
31949#define FILTER_PATH "$DEFINE_FILTER_PATH"
31950_ACEOF
31951
31952
31953
31954#
31955# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031956DOCUMENTATION_RELATIVE_PATH=""
31957DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31958DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031959case "${build_os}" in
31960 mingw* )
31961 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31962 ;;
31963esac
31964
31965cat >>confdefs.h <<_ACEOF
31966#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31967_ACEOF
31968
31969
31970
cristy3cf8a722011-03-20 23:32:22 +000031971# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031972CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031973
31974cat >>confdefs.h <<_ACEOF
31975#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31976_ACEOF
31977
31978CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31979DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31980case "${build_os}" in
31981 mingw* )
31982 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31983 ;;
31984esac
31985
31986cat >>confdefs.h <<_ACEOF
31987#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31988_ACEOF
31989
31990
31991
31992# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031993SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031994
31995cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031996#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031997_ACEOF
31998
cristy4f820712011-04-01 12:35:43 +000031999SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32000DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032001case "${build_os}" in
32002 mingw* )
cristy4f820712011-04-01 12:35:43 +000032003 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032004 ;;
32005esac
32006
32007cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032008#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032009_ACEOF
32010
32011
32012
32013#
32014# program_transform_name is formed for use in a Makefile, so create a
32015# modified version for use in a shell script.
32016configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32017
32018# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032019{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32020$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032022$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032023{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32024$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032025AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032026BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032027BZIPDelegateDefault='bzip2'
32028BrowseDelegateDefault='xdg-open'
32029CGMDecodeDelegateDefault='ralcgm'
32030CatDelegateDefault='cat'
32031DNGDecodeDelegateDefault='ufraw-batch'
32032GVCDecodeDelegateDefault='dot'
32033DVIDecodeDelegateDefault='dvips'
32034EchoDelegateDefault='echo'
32035EditorDelegateDefault='xterm'
32036FIGDecodeDelegateDefault='fig2dev'
32037ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32038DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32039MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32040GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032041HPGLDecodeDelegateDefault='hp2xx'
32042HTMLDecodeDelegateDefault='html2ps'
32043ILBMDecodeDelegateDefault='ilbmtoppm'
32044ILBMEncodeDelegateDefault='ppmtoilbm'
32045LPDelegateDefault='lp'
32046LPRDelegateDefault='lpr'
32047LZWDecodeDelegateDefault='uncompress'
32048LZWEncodeDelegateDefault='compress'
32049LaunchDelegateDefault='gimp'
32050MANDelegateDefault='groff'
32051MPEGDecodeDelegateDefault='ffmpeg'
32052MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032053MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032054MVDelegateDefault='mv'
32055PCLDelegateDefault='pcl6'
32056PGPDecodeDelegateDefault='pgpv'
32057POVDelegateDefault='povray'
32058if test "$native_win32_build" = 'yes'; then
32059 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032060elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032061 PSDelegateDefault='gsc'
32062else
32063 PSDelegateDefault='gs'
32064fi
32065RLEEncodeDelegateDefault='rawtorle'
32066RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032067RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032068SCANDecodeDelegateDefault='scanimage'
32069TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032070UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032071WMFDecodeDelegateDefault='wmf2eps'
32072WWWDecodeDelegateDefault='curl'
32073XPSDelegateDefault='gxps'
32074ZipDelegateDefault='gzip'
32075
32076# Search for delegates
32077# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32078set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032081if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032082 $as_echo_n "(cached) " >&6
32083else
32084 case $AutotraceDecodeDelegate in
32085 [\\/]* | ?:[\\/]*)
32086 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32087 ;;
32088 *)
32089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32090for as_dir in $PATH
32091do
32092 IFS=$as_save_IFS
32093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32096 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032098 break 2
32099 fi
32100done
cristy8b350f62009-11-15 23:12:43 +000032101 done
cristy3ed852e2009-09-05 21:47:34 +000032102IFS=$as_save_IFS
32103
32104 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32105 ;;
32106esac
32107fi
32108AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32109if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo "$AutotraceDecodeDelegate" >&6; }
32112else
cristy8b350f62009-11-15 23:12:43 +000032113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032114$as_echo "no" >&6; }
32115fi
32116
32117
cristy3ed852e2009-09-05 21:47:34 +000032118# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32119set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032122if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032123 $as_echo_n "(cached) " >&6
32124else
32125 case $BlenderDecodeDelegate in
32126 [\\/]* | ?:[\\/]*)
32127 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32128 ;;
32129 *)
32130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32131for as_dir in $PATH
32132do
32133 IFS=$as_save_IFS
32134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32137 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032139 break 2
32140 fi
32141done
cristy8b350f62009-11-15 23:12:43 +000032142 done
cristy3ed852e2009-09-05 21:47:34 +000032143IFS=$as_save_IFS
32144
32145 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32146 ;;
32147esac
32148fi
32149BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32150if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo "$BlenderDecodeDelegate" >&6; }
32153else
cristy8b350f62009-11-15 23:12:43 +000032154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032155$as_echo "no" >&6; }
32156fi
32157
32158
32159# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32160set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032162$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032163if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032164 $as_echo_n "(cached) " >&6
32165else
32166 case $BZIPDelegate in
32167 [\\/]* | ?:[\\/]*)
32168 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32169 ;;
32170 *)
32171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32172for as_dir in $PATH
32173do
32174 IFS=$as_save_IFS
32175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32178 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032180 break 2
32181 fi
32182done
cristy8b350f62009-11-15 23:12:43 +000032183 done
cristy3ed852e2009-09-05 21:47:34 +000032184IFS=$as_save_IFS
32185
32186 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32187 ;;
32188esac
32189fi
32190BZIPDelegate=$ac_cv_path_BZIPDelegate
32191if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032193$as_echo "$BZIPDelegate" >&6; }
32194else
cristy8b350f62009-11-15 23:12:43 +000032195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032196$as_echo "no" >&6; }
32197fi
32198
32199
32200# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32201set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032204if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032205 $as_echo_n "(cached) " >&6
32206else
32207 case $BrowseDelegate in
32208 [\\/]* | ?:[\\/]*)
32209 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32210 ;;
32211 *)
32212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32213for as_dir in $PATH
32214do
32215 IFS=$as_save_IFS
32216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32219 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032221 break 2
32222 fi
32223done
cristy8b350f62009-11-15 23:12:43 +000032224 done
cristy3ed852e2009-09-05 21:47:34 +000032225IFS=$as_save_IFS
32226
32227 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32228 ;;
32229esac
32230fi
32231BrowseDelegate=$ac_cv_path_BrowseDelegate
32232if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032234$as_echo "$BrowseDelegate" >&6; }
32235else
cristy8b350f62009-11-15 23:12:43 +000032236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032237$as_echo "no" >&6; }
32238fi
32239
32240
32241# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32242set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032244$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032245if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032246 $as_echo_n "(cached) " >&6
32247else
32248 case $CGMDecodeDelegate in
32249 [\\/]* | ?:[\\/]*)
32250 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32251 ;;
32252 *)
32253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32254for as_dir in $PATH
32255do
32256 IFS=$as_save_IFS
32257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32260 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032262 break 2
32263 fi
32264done
cristy8b350f62009-11-15 23:12:43 +000032265 done
cristy3ed852e2009-09-05 21:47:34 +000032266IFS=$as_save_IFS
32267
32268 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32269 ;;
32270esac
32271fi
32272CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32273if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032275$as_echo "$CGMDecodeDelegate" >&6; }
32276else
cristy8b350f62009-11-15 23:12:43 +000032277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032278$as_echo "no" >&6; }
32279fi
32280
32281
32282# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32283set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032285$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032286if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032287 $as_echo_n "(cached) " >&6
32288else
32289 case $CatDelegate in
32290 [\\/]* | ?:[\\/]*)
32291 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32292 ;;
32293 *)
32294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32295for as_dir in $PATH
32296do
32297 IFS=$as_save_IFS
32298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32301 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032303 break 2
32304 fi
32305done
cristy8b350f62009-11-15 23:12:43 +000032306 done
cristy3ed852e2009-09-05 21:47:34 +000032307IFS=$as_save_IFS
32308
32309 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32310 ;;
32311esac
32312fi
32313CatDelegate=$ac_cv_path_CatDelegate
32314if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032316$as_echo "$CatDelegate" >&6; }
32317else
cristy8b350f62009-11-15 23:12:43 +000032318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032319$as_echo "no" >&6; }
32320fi
32321
32322
32323# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32324set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032326$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032327if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032328 $as_echo_n "(cached) " >&6
32329else
32330 case $DNGDecodeDelegate in
32331 [\\/]* | ?:[\\/]*)
32332 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32333 ;;
32334 *)
32335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32336for as_dir in $PATH
32337do
32338 IFS=$as_save_IFS
32339 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32342 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032344 break 2
32345 fi
32346done
cristy8b350f62009-11-15 23:12:43 +000032347 done
cristy3ed852e2009-09-05 21:47:34 +000032348IFS=$as_save_IFS
32349
32350 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32351 ;;
32352esac
32353fi
32354DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32355if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032357$as_echo "$DNGDecodeDelegate" >&6; }
32358else
cristy8b350f62009-11-15 23:12:43 +000032359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032360$as_echo "no" >&6; }
32361fi
32362
32363
32364# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32365set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032368if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032369 $as_echo_n "(cached) " >&6
32370else
32371 case $GVCDecodeDelegate in
32372 [\\/]* | ?:[\\/]*)
32373 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32374 ;;
32375 *)
32376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32377for as_dir in $PATH
32378do
32379 IFS=$as_save_IFS
32380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32383 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032385 break 2
32386 fi
32387done
cristy8b350f62009-11-15 23:12:43 +000032388 done
cristy3ed852e2009-09-05 21:47:34 +000032389IFS=$as_save_IFS
32390
32391 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32392 ;;
32393esac
32394fi
32395GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32396if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032398$as_echo "$GVCDecodeDelegate" >&6; }
32399else
cristy8b350f62009-11-15 23:12:43 +000032400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032401$as_echo "no" >&6; }
32402fi
32403
32404
32405# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32406set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032409if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032410 $as_echo_n "(cached) " >&6
32411else
32412 case $DVIDecodeDelegate in
32413 [\\/]* | ?:[\\/]*)
32414 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32415 ;;
32416 *)
32417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32418for as_dir in $PATH
32419do
32420 IFS=$as_save_IFS
32421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32424 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032426 break 2
32427 fi
32428done
cristy8b350f62009-11-15 23:12:43 +000032429 done
cristy3ed852e2009-09-05 21:47:34 +000032430IFS=$as_save_IFS
32431
32432 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32433 ;;
32434esac
32435fi
32436DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32437if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032439$as_echo "$DVIDecodeDelegate" >&6; }
32440else
cristy8b350f62009-11-15 23:12:43 +000032441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032442$as_echo "no" >&6; }
32443fi
32444
32445
32446# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32447set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032450if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032451 $as_echo_n "(cached) " >&6
32452else
32453 case $EchoDelegate in
32454 [\\/]* | ?:[\\/]*)
32455 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32456 ;;
32457 *)
32458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32459for as_dir in $PATH
32460do
32461 IFS=$as_save_IFS
32462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32465 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032467 break 2
32468 fi
32469done
cristy8b350f62009-11-15 23:12:43 +000032470 done
cristy3ed852e2009-09-05 21:47:34 +000032471IFS=$as_save_IFS
32472
32473 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32474 ;;
32475esac
32476fi
32477EchoDelegate=$ac_cv_path_EchoDelegate
32478if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032480$as_echo "$EchoDelegate" >&6; }
32481else
cristy8b350f62009-11-15 23:12:43 +000032482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032483$as_echo "no" >&6; }
32484fi
32485
32486
32487# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32488set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032491if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032492 $as_echo_n "(cached) " >&6
32493else
32494 case $EditorDelegate in
32495 [\\/]* | ?:[\\/]*)
32496 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32497 ;;
32498 *)
32499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32500for as_dir in $PATH
32501do
32502 IFS=$as_save_IFS
32503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32506 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032508 break 2
32509 fi
32510done
cristy8b350f62009-11-15 23:12:43 +000032511 done
cristy3ed852e2009-09-05 21:47:34 +000032512IFS=$as_save_IFS
32513
32514 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32515 ;;
32516esac
32517fi
32518EditorDelegate=$ac_cv_path_EditorDelegate
32519if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032521$as_echo "$EditorDelegate" >&6; }
32522else
cristy8b350f62009-11-15 23:12:43 +000032523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032524$as_echo "no" >&6; }
32525fi
32526
32527
32528# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32529set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032532if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032533 $as_echo_n "(cached) " >&6
32534else
32535 case $FIGDecodeDelegate in
32536 [\\/]* | ?:[\\/]*)
32537 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32538 ;;
32539 *)
32540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32541for as_dir in $PATH
32542do
32543 IFS=$as_save_IFS
32544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32547 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032549 break 2
32550 fi
32551done
cristy8b350f62009-11-15 23:12:43 +000032552 done
cristy3ed852e2009-09-05 21:47:34 +000032553IFS=$as_save_IFS
32554
32555 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32556 ;;
32557esac
32558fi
32559FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32560if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032562$as_echo "$FIGDecodeDelegate" >&6; }
32563else
cristy8b350f62009-11-15 23:12:43 +000032564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032565$as_echo "no" >&6; }
32566fi
32567
32568
32569# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32570set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032573if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032574 $as_echo_n "(cached) " >&6
32575else
32576 case $ConvertDelegate in
32577 [\\/]* | ?:[\\/]*)
32578 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32579 ;;
32580 *)
32581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32582for as_dir in $PATH
32583do
32584 IFS=$as_save_IFS
32585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32588 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032590 break 2
32591 fi
32592done
cristy8b350f62009-11-15 23:12:43 +000032593 done
cristy3ed852e2009-09-05 21:47:34 +000032594IFS=$as_save_IFS
32595
32596 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32597 ;;
32598esac
32599fi
32600ConvertDelegate=$ac_cv_path_ConvertDelegate
32601if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032603$as_echo "$ConvertDelegate" >&6; }
32604else
cristy8b350f62009-11-15 23:12:43 +000032605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032606$as_echo "no" >&6; }
32607fi
32608
32609
32610# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32611set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032614if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032615 $as_echo_n "(cached) " >&6
32616else
32617 case $DisplayDelegate in
32618 [\\/]* | ?:[\\/]*)
32619 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32620 ;;
32621 *)
32622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32623for as_dir in $PATH
32624do
32625 IFS=$as_save_IFS
32626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32629 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032631 break 2
32632 fi
32633done
cristy8b350f62009-11-15 23:12:43 +000032634 done
cristy3ed852e2009-09-05 21:47:34 +000032635IFS=$as_save_IFS
32636
32637 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32638 ;;
32639esac
32640fi
32641DisplayDelegate=$ac_cv_path_DisplayDelegate
32642if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032644$as_echo "$DisplayDelegate" >&6; }
32645else
cristy8b350f62009-11-15 23:12:43 +000032646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032647$as_echo "no" >&6; }
32648fi
32649
32650
32651# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32652set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032655if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032656 $as_echo_n "(cached) " >&6
32657else
32658 case $MogrifyDelegate in
32659 [\\/]* | ?:[\\/]*)
32660 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32661 ;;
32662 *)
32663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32664for as_dir in $PATH
32665do
32666 IFS=$as_save_IFS
32667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32670 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032672 break 2
32673 fi
32674done
cristy8b350f62009-11-15 23:12:43 +000032675 done
cristy3ed852e2009-09-05 21:47:34 +000032676IFS=$as_save_IFS
32677
32678 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32679 ;;
32680esac
32681fi
32682MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32683if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032685$as_echo "$MogrifyDelegate" >&6; }
32686else
cristy8b350f62009-11-15 23:12:43 +000032687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032688$as_echo "no" >&6; }
32689fi
32690
32691
32692# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32693set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032696if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032697 $as_echo_n "(cached) " >&6
32698else
32699 case $GnuplotDecodeDelegate in
32700 [\\/]* | ?:[\\/]*)
32701 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32702 ;;
32703 *)
32704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32705for as_dir in $PATH
32706do
32707 IFS=$as_save_IFS
32708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32711 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032713 break 2
32714 fi
32715done
cristy8b350f62009-11-15 23:12:43 +000032716 done
cristy3ed852e2009-09-05 21:47:34 +000032717IFS=$as_save_IFS
32718
32719 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32720 ;;
32721esac
32722fi
32723GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32724if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032726$as_echo "$GnuplotDecodeDelegate" >&6; }
32727else
cristy8b350f62009-11-15 23:12:43 +000032728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032729$as_echo "no" >&6; }
32730fi
32731
32732
cristy3ed852e2009-09-05 21:47:34 +000032733# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32734set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032737if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032738 $as_echo_n "(cached) " >&6
32739else
32740 case $HPGLDecodeDelegate in
32741 [\\/]* | ?:[\\/]*)
32742 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32743 ;;
32744 *)
32745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32746for as_dir in $PATH
32747do
32748 IFS=$as_save_IFS
32749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32752 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032754 break 2
32755 fi
32756done
cristy8b350f62009-11-15 23:12:43 +000032757 done
cristy3ed852e2009-09-05 21:47:34 +000032758IFS=$as_save_IFS
32759
32760 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32761 ;;
32762esac
32763fi
32764HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32765if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032767$as_echo "$HPGLDecodeDelegate" >&6; }
32768else
cristy8b350f62009-11-15 23:12:43 +000032769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032770$as_echo "no" >&6; }
32771fi
32772
32773
32774# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32775set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032778if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032779 $as_echo_n "(cached) " >&6
32780else
32781 case $HTMLDecodeDelegate in
32782 [\\/]* | ?:[\\/]*)
32783 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32784 ;;
32785 *)
32786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32787for as_dir in $PATH
32788do
32789 IFS=$as_save_IFS
32790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32793 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032795 break 2
32796 fi
32797done
cristy8b350f62009-11-15 23:12:43 +000032798 done
cristy3ed852e2009-09-05 21:47:34 +000032799IFS=$as_save_IFS
32800
32801 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32802 ;;
32803esac
32804fi
32805HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32806if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032808$as_echo "$HTMLDecodeDelegate" >&6; }
32809else
cristy8b350f62009-11-15 23:12:43 +000032810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032811$as_echo "no" >&6; }
32812fi
32813
32814
32815# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32816set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032819if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032820 $as_echo_n "(cached) " >&6
32821else
32822 case $ILBMDecodeDelegate in
32823 [\\/]* | ?:[\\/]*)
32824 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32825 ;;
32826 *)
32827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32828for as_dir in $PATH
32829do
32830 IFS=$as_save_IFS
32831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32834 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836 break 2
32837 fi
32838done
cristy8b350f62009-11-15 23:12:43 +000032839 done
cristy3ed852e2009-09-05 21:47:34 +000032840IFS=$as_save_IFS
32841
32842 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32843 ;;
32844esac
32845fi
32846ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32847if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032849$as_echo "$ILBMDecodeDelegate" >&6; }
32850else
cristy8b350f62009-11-15 23:12:43 +000032851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032852$as_echo "no" >&6; }
32853fi
32854
32855
32856# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32857set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032860if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032861 $as_echo_n "(cached) " >&6
32862else
32863 case $ILBMEncodeDelegate in
32864 [\\/]* | ?:[\\/]*)
32865 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32866 ;;
32867 *)
32868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32869for as_dir in $PATH
32870do
32871 IFS=$as_save_IFS
32872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32875 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877 break 2
32878 fi
32879done
cristy8b350f62009-11-15 23:12:43 +000032880 done
cristy3ed852e2009-09-05 21:47:34 +000032881IFS=$as_save_IFS
32882
32883 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32884 ;;
32885esac
32886fi
32887ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32888if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890$as_echo "$ILBMEncodeDelegate" >&6; }
32891else
cristy8b350f62009-11-15 23:12:43 +000032892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032893$as_echo "no" >&6; }
32894fi
32895
32896
32897# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32898set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032901if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032902 $as_echo_n "(cached) " >&6
32903else
32904 case $LPDelegate in
32905 [\\/]* | ?:[\\/]*)
32906 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32907 ;;
32908 *)
32909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32910for as_dir in $PATH
32911do
32912 IFS=$as_save_IFS
32913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32916 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918 break 2
32919 fi
32920done
cristy8b350f62009-11-15 23:12:43 +000032921 done
cristy3ed852e2009-09-05 21:47:34 +000032922IFS=$as_save_IFS
32923
32924 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32925 ;;
32926esac
32927fi
32928LPDelegate=$ac_cv_path_LPDelegate
32929if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo "$LPDelegate" >&6; }
32932else
cristy8b350f62009-11-15 23:12:43 +000032933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934$as_echo "no" >&6; }
32935fi
32936
32937
32938# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32939set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032942if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032943 $as_echo_n "(cached) " >&6
32944else
32945 case $LPRDelegate in
32946 [\\/]* | ?:[\\/]*)
32947 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32948 ;;
32949 *)
32950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32951for as_dir in $PATH
32952do
32953 IFS=$as_save_IFS
32954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32957 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959 break 2
32960 fi
32961done
cristy8b350f62009-11-15 23:12:43 +000032962 done
cristy3ed852e2009-09-05 21:47:34 +000032963IFS=$as_save_IFS
32964
32965 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32966 ;;
32967esac
32968fi
32969LPRDelegate=$ac_cv_path_LPRDelegate
32970if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032972$as_echo "$LPRDelegate" >&6; }
32973else
cristy8b350f62009-11-15 23:12:43 +000032974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032975$as_echo "no" >&6; }
32976fi
32977
32978
32979# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32980set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032983if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032984 $as_echo_n "(cached) " >&6
32985else
32986 case $LZWDecodeDelegate in
32987 [\\/]* | ?:[\\/]*)
32988 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32989 ;;
32990 *)
32991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32992for as_dir in $PATH
32993do
32994 IFS=$as_save_IFS
32995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32998 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000 break 2
33001 fi
33002done
cristy8b350f62009-11-15 23:12:43 +000033003 done
cristy3ed852e2009-09-05 21:47:34 +000033004IFS=$as_save_IFS
33005
33006 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33007 ;;
33008esac
33009fi
33010LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33011if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033013$as_echo "$LZWDecodeDelegate" >&6; }
33014else
cristy8b350f62009-11-15 23:12:43 +000033015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033016$as_echo "no" >&6; }
33017fi
33018
33019
33020# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33021set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033024if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033025 $as_echo_n "(cached) " >&6
33026else
33027 case $LZWEncodeDelegate in
33028 [\\/]* | ?:[\\/]*)
33029 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33030 ;;
33031 *)
33032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33033for as_dir in $PATH
33034do
33035 IFS=$as_save_IFS
33036 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33039 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041 break 2
33042 fi
33043done
cristy8b350f62009-11-15 23:12:43 +000033044 done
cristy3ed852e2009-09-05 21:47:34 +000033045IFS=$as_save_IFS
33046
33047 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33048 ;;
33049esac
33050fi
33051LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33052if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054$as_echo "$LZWEncodeDelegate" >&6; }
33055else
cristy8b350f62009-11-15 23:12:43 +000033056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033057$as_echo "no" >&6; }
33058fi
33059
33060
33061# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33062set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033065if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033066 $as_echo_n "(cached) " >&6
33067else
33068 case $LaunchDelegate in
33069 [\\/]* | ?:[\\/]*)
33070 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33071 ;;
33072 *)
33073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33074for as_dir in $PATH
33075do
33076 IFS=$as_save_IFS
33077 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33080 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033082 break 2
33083 fi
33084done
cristy8b350f62009-11-15 23:12:43 +000033085 done
cristy3ed852e2009-09-05 21:47:34 +000033086IFS=$as_save_IFS
33087
33088 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33089 ;;
33090esac
33091fi
33092LaunchDelegate=$ac_cv_path_LaunchDelegate
33093if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo "$LaunchDelegate" >&6; }
33096else
cristy8b350f62009-11-15 23:12:43 +000033097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098$as_echo "no" >&6; }
33099fi
33100
33101
33102# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33103set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033106if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033107 $as_echo_n "(cached) " >&6
33108else
33109 case $MANDelegate in
33110 [\\/]* | ?:[\\/]*)
33111 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33112 ;;
33113 *)
33114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33115for as_dir in $PATH
33116do
33117 IFS=$as_save_IFS
33118 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33121 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123 break 2
33124 fi
33125done
cristy8b350f62009-11-15 23:12:43 +000033126 done
cristy3ed852e2009-09-05 21:47:34 +000033127IFS=$as_save_IFS
33128
33129 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33130 ;;
33131esac
33132fi
33133MANDelegate=$ac_cv_path_MANDelegate
33134if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033136$as_echo "$MANDelegate" >&6; }
33137else
cristy8b350f62009-11-15 23:12:43 +000033138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139$as_echo "no" >&6; }
33140fi
33141
33142
33143# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33144set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033147if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033148 $as_echo_n "(cached) " >&6
33149else
33150 case $MPEGDecodeDelegate in
33151 [\\/]* | ?:[\\/]*)
33152 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33153 ;;
33154 *)
33155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33156for as_dir in $PATH
33157do
33158 IFS=$as_save_IFS
33159 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033160 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33162 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033164 break 2
33165 fi
33166done
cristy8b350f62009-11-15 23:12:43 +000033167 done
cristy3ed852e2009-09-05 21:47:34 +000033168IFS=$as_save_IFS
33169
33170 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33171 ;;
33172esac
33173fi
33174MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33175if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033177$as_echo "$MPEGDecodeDelegate" >&6; }
33178else
cristy8b350f62009-11-15 23:12:43 +000033179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033180$as_echo "no" >&6; }
33181fi
33182
33183
33184# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33185set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033188if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033189 $as_echo_n "(cached) " >&6
33190else
33191 case $MPEGEncodeDelegate in
33192 [\\/]* | ?:[\\/]*)
33193 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33194 ;;
33195 *)
33196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33197for as_dir in $PATH
33198do
33199 IFS=$as_save_IFS
33200 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033201 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33203 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033205 break 2
33206 fi
33207done
cristy8b350f62009-11-15 23:12:43 +000033208 done
cristy3ed852e2009-09-05 21:47:34 +000033209IFS=$as_save_IFS
33210
33211 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33212 ;;
33213esac
33214fi
33215MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33216if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033218$as_echo "$MPEGEncodeDelegate" >&6; }
33219else
cristy8b350f62009-11-15 23:12:43 +000033220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221$as_echo "no" >&6; }
33222fi
33223
33224
cristy935c86e2010-06-05 23:50:07 +000033225# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33226set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033229if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033230 $as_echo_n "(cached) " >&6
33231else
33232 case $MrSIDDecodeDelegate in
33233 [\\/]* | ?:[\\/]*)
33234 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33235 ;;
33236 *)
33237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33238for as_dir in $PATH
33239do
33240 IFS=$as_save_IFS
33241 test -z "$as_dir" && as_dir=.
33242 for ac_exec_ext in '' $ac_executable_extensions; do
33243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33244 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33246 break 2
33247 fi
33248done
33249 done
33250IFS=$as_save_IFS
33251
33252 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33253 ;;
33254esac
33255fi
33256MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33257if test -n "$MrSIDDecodeDelegate"; then
33258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33259$as_echo "$MrSIDDecodeDelegate" >&6; }
33260else
33261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33262$as_echo "no" >&6; }
33263fi
33264
33265
cristy3ed852e2009-09-05 21:47:34 +000033266# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33267set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033270if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033271 $as_echo_n "(cached) " >&6
33272else
33273 case $MVDelegate in
33274 [\\/]* | ?:[\\/]*)
33275 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33276 ;;
33277 *)
33278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33279for as_dir in $PATH
33280do
33281 IFS=$as_save_IFS
33282 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33285 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033287 break 2
33288 fi
33289done
cristy8b350f62009-11-15 23:12:43 +000033290 done
cristy3ed852e2009-09-05 21:47:34 +000033291IFS=$as_save_IFS
33292
33293 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33294 ;;
33295esac
33296fi
33297MVDelegate=$ac_cv_path_MVDelegate
33298if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033300$as_echo "$MVDelegate" >&6; }
33301else
cristy8b350f62009-11-15 23:12:43 +000033302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033303$as_echo "no" >&6; }
33304fi
33305
33306
33307# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33308set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033311if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033312 $as_echo_n "(cached) " >&6
33313else
33314 case $PCLDelegate in
33315 [\\/]* | ?:[\\/]*)
33316 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33317 ;;
33318 *)
33319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33320for as_dir in $PATH
33321do
33322 IFS=$as_save_IFS
33323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33326 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033328 break 2
33329 fi
33330done
cristy8b350f62009-11-15 23:12:43 +000033331 done
cristy3ed852e2009-09-05 21:47:34 +000033332IFS=$as_save_IFS
33333
33334 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33335 ;;
33336esac
33337fi
33338PCLDelegate=$ac_cv_path_PCLDelegate
33339if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033341$as_echo "$PCLDelegate" >&6; }
33342else
cristy8b350f62009-11-15 23:12:43 +000033343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033344$as_echo "no" >&6; }
33345fi
33346
33347
33348# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33349set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033352if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033353 $as_echo_n "(cached) " >&6
33354else
33355 case $PGPDecodeDelegate in
33356 [\\/]* | ?:[\\/]*)
33357 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33358 ;;
33359 *)
33360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33361for as_dir in $PATH
33362do
33363 IFS=$as_save_IFS
33364 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33367 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369 break 2
33370 fi
33371done
cristy8b350f62009-11-15 23:12:43 +000033372 done
cristy3ed852e2009-09-05 21:47:34 +000033373IFS=$as_save_IFS
33374
33375 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33376 ;;
33377esac
33378fi
33379PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33380if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033382$as_echo "$PGPDecodeDelegate" >&6; }
33383else
cristy8b350f62009-11-15 23:12:43 +000033384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033385$as_echo "no" >&6; }
33386fi
33387
33388
33389# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33390set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033393if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033394 $as_echo_n "(cached) " >&6
33395else
33396 case $POVDelegate in
33397 [\\/]* | ?:[\\/]*)
33398 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33399 ;;
33400 *)
33401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33402for as_dir in $PATH
33403do
33404 IFS=$as_save_IFS
33405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33408 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033410 break 2
33411 fi
33412done
cristy8b350f62009-11-15 23:12:43 +000033413 done
cristy3ed852e2009-09-05 21:47:34 +000033414IFS=$as_save_IFS
33415
33416 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33417 ;;
33418esac
33419fi
33420POVDelegate=$ac_cv_path_POVDelegate
33421if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033423$as_echo "$POVDelegate" >&6; }
33424else
cristy8b350f62009-11-15 23:12:43 +000033425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033426$as_echo "no" >&6; }
33427fi
33428
33429
33430for ac_prog in gsx gsc "$PSDelegateDefault"
33431do
33432 # Extract the first word of "$ac_prog", so it can be a program name with args.
33433set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033435$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033436if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033437 $as_echo_n "(cached) " >&6
33438else
33439 case $PSDelegate in
33440 [\\/]* | ?:[\\/]*)
33441 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33442 ;;
33443 *)
33444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33445for as_dir in $PATH
33446do
33447 IFS=$as_save_IFS
33448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33451 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033453 break 2
33454 fi
33455done
cristy8b350f62009-11-15 23:12:43 +000033456 done
cristy3ed852e2009-09-05 21:47:34 +000033457IFS=$as_save_IFS
33458
33459 ;;
33460esac
33461fi
33462PSDelegate=$ac_cv_path_PSDelegate
33463if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo "$PSDelegate" >&6; }
33466else
cristy8b350f62009-11-15 23:12:43 +000033467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033468$as_echo "no" >&6; }
33469fi
33470
33471
33472 test -n "$PSDelegate" && break
33473done
33474test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33475
33476# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33477set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033480if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033481 $as_echo_n "(cached) " >&6
33482else
33483 case $RLEEncodeDelegate in
33484 [\\/]* | ?:[\\/]*)
33485 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33486 ;;
33487 *)
33488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33489for as_dir in $PATH
33490do
33491 IFS=$as_save_IFS
33492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33495 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033497 break 2
33498 fi
33499done
cristy8b350f62009-11-15 23:12:43 +000033500 done
cristy3ed852e2009-09-05 21:47:34 +000033501IFS=$as_save_IFS
33502
33503 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33504 ;;
33505esac
33506fi
33507RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33508if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033510$as_echo "$RLEEncodeDelegate" >&6; }
33511else
cristy8b350f62009-11-15 23:12:43 +000033512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513$as_echo "no" >&6; }
33514fi
33515
33516
33517# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33518set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033521if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033522 $as_echo_n "(cached) " >&6
33523else
33524 case $RMDelegate in
33525 [\\/]* | ?:[\\/]*)
33526 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33527 ;;
33528 *)
33529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33530for as_dir in $PATH
33531do
33532 IFS=$as_save_IFS
33533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33536 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033538 break 2
33539 fi
33540done
cristy8b350f62009-11-15 23:12:43 +000033541 done
cristy3ed852e2009-09-05 21:47:34 +000033542IFS=$as_save_IFS
33543
33544 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33545 ;;
33546esac
33547fi
33548RMDelegate=$ac_cv_path_RMDelegate
33549if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033551$as_echo "$RMDelegate" >&6; }
33552else
cristy8b350f62009-11-15 23:12:43 +000033553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo "no" >&6; }
33555fi
33556
33557
cristy4689cf02010-02-17 21:15:45 +000033558# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33559set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033562if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033563 $as_echo_n "(cached) " >&6
33564else
33565 case $RSVGDecodeDelegate in
33566 [\\/]* | ?:[\\/]*)
33567 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33568 ;;
33569 *)
33570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33571for as_dir in $PATH
33572do
33573 IFS=$as_save_IFS
33574 test -z "$as_dir" && as_dir=.
33575 for ac_exec_ext in '' $ac_executable_extensions; do
33576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33577 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33579 break 2
33580 fi
33581done
33582 done
33583IFS=$as_save_IFS
33584
33585 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33586 ;;
33587esac
33588fi
33589RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33590if test -n "$RSVGDecodeDelegate"; then
33591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33592$as_echo "$RSVGDecodeDelegate" >&6; }
33593else
33594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33595$as_echo "no" >&6; }
33596fi
33597
33598
cristy3ed852e2009-09-05 21:47:34 +000033599# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33600set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033603if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033604 $as_echo_n "(cached) " >&6
33605else
33606 case $SCANDecodeDelegate in
33607 [\\/]* | ?:[\\/]*)
33608 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33609 ;;
33610 *)
33611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33612for as_dir in $PATH
33613do
33614 IFS=$as_save_IFS
33615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33618 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033620 break 2
33621 fi
33622done
cristy8b350f62009-11-15 23:12:43 +000033623 done
cristy3ed852e2009-09-05 21:47:34 +000033624IFS=$as_save_IFS
33625
33626 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33627 ;;
33628esac
33629fi
33630SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33631if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033633$as_echo "$SCANDecodeDelegate" >&6; }
33634else
cristy8b350f62009-11-15 23:12:43 +000033635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636$as_echo "no" >&6; }
33637fi
33638
33639
33640# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33641set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033644if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033645 $as_echo_n "(cached) " >&6
33646else
33647 case $TXTDelegate in
33648 [\\/]* | ?:[\\/]*)
33649 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33650 ;;
33651 *)
33652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33653for as_dir in $PATH
33654do
33655 IFS=$as_save_IFS
33656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33659 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033661 break 2
33662 fi
33663done
cristy8b350f62009-11-15 23:12:43 +000033664 done
cristy3ed852e2009-09-05 21:47:34 +000033665IFS=$as_save_IFS
33666
33667 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33668 ;;
33669esac
33670fi
33671TXTDelegate=$ac_cv_path_TXTDelegate
33672if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033674$as_echo "$TXTDelegate" >&6; }
33675else
cristy8b350f62009-11-15 23:12:43 +000033676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677$as_echo "no" >&6; }
33678fi
33679
33680
cristy5ac9ac82010-07-29 13:24:24 +000033681# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33682set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033685if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033686 $as_echo_n "(cached) " >&6
33687else
33688 case $UniconvertorDelegate in
33689 [\\/]* | ?:[\\/]*)
33690 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33691 ;;
33692 *)
33693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33694for as_dir in $PATH
33695do
33696 IFS=$as_save_IFS
33697 test -z "$as_dir" && as_dir=.
33698 for ac_exec_ext in '' $ac_executable_extensions; do
33699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33700 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33702 break 2
33703 fi
33704done
33705 done
33706IFS=$as_save_IFS
33707
33708 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33709 ;;
33710esac
33711fi
33712UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33713if test -n "$UniconvertorDelegate"; then
33714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33715$as_echo "$UniconvertorDelegate" >&6; }
33716else
33717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33718$as_echo "no" >&6; }
33719fi
33720
33721
cristy3ed852e2009-09-05 21:47:34 +000033722# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33723set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033726if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033727 $as_echo_n "(cached) " >&6
33728else
33729 case $WMFDecodeDelegate in
33730 [\\/]* | ?:[\\/]*)
33731 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33732 ;;
33733 *)
33734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33735for as_dir in $PATH
33736do
33737 IFS=$as_save_IFS
33738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33741 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033743 break 2
33744 fi
33745done
cristy8b350f62009-11-15 23:12:43 +000033746 done
cristy3ed852e2009-09-05 21:47:34 +000033747IFS=$as_save_IFS
33748
33749 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33750 ;;
33751esac
33752fi
33753WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33754if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033756$as_echo "$WMFDecodeDelegate" >&6; }
33757else
cristy8b350f62009-11-15 23:12:43 +000033758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo "no" >&6; }
33760fi
33761
33762
33763# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33764set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033767if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033768 $as_echo_n "(cached) " >&6
33769else
33770 case $WWWDecodeDelegate in
33771 [\\/]* | ?:[\\/]*)
33772 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33773 ;;
33774 *)
33775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33776for as_dir in $PATH
33777do
33778 IFS=$as_save_IFS
33779 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33782 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033784 break 2
33785 fi
33786done
cristy8b350f62009-11-15 23:12:43 +000033787 done
cristy3ed852e2009-09-05 21:47:34 +000033788IFS=$as_save_IFS
33789
33790 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33791 ;;
33792esac
33793fi
33794WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33795if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033797$as_echo "$WWWDecodeDelegate" >&6; }
33798else
cristy8b350f62009-11-15 23:12:43 +000033799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800$as_echo "no" >&6; }
33801fi
33802
33803
33804# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33805set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033808if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033809 $as_echo_n "(cached) " >&6
33810else
33811 case $XPSDelegate in
33812 [\\/]* | ?:[\\/]*)
33813 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33814 ;;
33815 *)
33816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33817for as_dir in $PATH
33818do
33819 IFS=$as_save_IFS
33820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33823 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033825 break 2
33826 fi
33827done
cristy8b350f62009-11-15 23:12:43 +000033828 done
cristy3ed852e2009-09-05 21:47:34 +000033829IFS=$as_save_IFS
33830
33831 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33832 ;;
33833esac
33834fi
33835XPSDelegate=$ac_cv_path_XPSDelegate
33836if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033838$as_echo "$XPSDelegate" >&6; }
33839else
cristy8b350f62009-11-15 23:12:43 +000033840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841$as_echo "no" >&6; }
33842fi
33843
33844
33845# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33846set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033849if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033850 $as_echo_n "(cached) " >&6
33851else
33852 case $ZipDelegate in
33853 [\\/]* | ?:[\\/]*)
33854 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33855 ;;
33856 *)
33857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33858for as_dir in $PATH
33859do
33860 IFS=$as_save_IFS
33861 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033862 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33864 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033866 break 2
33867 fi
33868done
cristy8b350f62009-11-15 23:12:43 +000033869 done
cristy3ed852e2009-09-05 21:47:34 +000033870IFS=$as_save_IFS
33871
33872 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33873 ;;
33874esac
33875fi
33876ZipDelegate=$ac_cv_path_ZipDelegate
33877if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033879$as_echo "$ZipDelegate" >&6; }
33880else
cristy8b350f62009-11-15 23:12:43 +000033881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882$as_echo "no" >&6; }
33883fi
33884
33885
33886
33887# Prefer lpr to lp; lp needs options tacked on.
33888if test "$LPRDelegate" != no; then
33889 PrintDelegate="$LPRDelegate"
33890else
33891 PrintDelegate="$LPDelegate -c -s"
33892fi
33893
33894
33895# Installed ImageMagick utiltity paths
33896ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33897DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33898MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33899
33900# Set delegate booleans
33901have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33902have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33903have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33904have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33905have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033906have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033907have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33908have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033909have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33910have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33911
33912#
33913# Test for font directories
33914#
33915type_include_files=''
33916
cristy430a7312010-01-21 20:44:04 +000033917# Dejavu fonts.
33918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33919$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33920dejavu_font_dir=''
33921if test "${with_dejavu_font_dir}" != 'default'; then
33922 dejavu_font_dir="${with_dejavu_font_dir}/"
33923else
33924 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33925 if test -f "${font_dir}DejaVuSerif.ttf"; then
33926 dejavu_font_dir="${font_dir}"
33927 break 1
33928 fi
33929 done
33930fi
33931if test "${dejavu_font_dir}x" != 'x'; then
33932 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033933 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33934$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033935else
cristy09b53e12011-10-14 12:47:22 +000033936 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33937$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033938fi
33939
33940
cristy3ed852e2009-09-05 21:47:34 +000033941# Windows
33942windows_font_dir=''
33943if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33944 windows_font_dir="${with_windows_font_dir}/"
33945fi
cristy430a7312010-01-21 20:44:04 +000033946if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033947 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33948 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33949 fi
33950 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33951 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33952 fi
33953 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33954 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33955 fi
33956fi
cristy430a7312010-01-21 20:44:04 +000033957if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033958 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33959fi
33960
33961
33962# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33965ghostscript_font_dir=''
33966if test "${with_gs_font_dir}" != 'default'; then
33967 ghostscript_font_dir="${with_gs_font_dir}/"
33968else
33969 if test "${native_win32_build}" = 'yes'; then
33970 # Native Windows Build
33971 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33972 if test -f "${font_dir}a010013l.pfb"; then
33973 ghostscript_font_dir="$font_dir"
33974 break 1
33975 fi
33976 done
33977 if test "${PSDelegate}" != 'gswin32c'; then
33978 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33979 fi
33980 else
33981 # Linux / Mac OS X / Unix Build
33982 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
33983 if test -f "${font_dir}a010013l.pfb"; then
33984 ghostscript_font_dir="${font_dir}"
33985 break 1
33986 fi
33987 done
33988 if test "${ghostscript_font_dir}x" = 'x'; then
33989 if test "$PSDelegate" != 'gs'; then
33990 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33991 fi
33992 fi
33993 fi
33994fi
33995if test "${ghostscript_font_dir}x" != 'x'; then
33996 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033997 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
33998$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000033999else
cristy09b53e12011-10-14 12:47:22 +000034000 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34001$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034002fi
34003
34004case "${build_os}" in
34005 mingw* )
34006 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34007 ;;
34008esac
34009
34010
34011
34012#
34013# Handle case where user doesn't want frozen paths
34014#
34015if test "$with_frozenpaths" != 'yes'; then
34016 # Re-set delegate definitions to default (no paths)
34017 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034018 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34019 BZIPDelegate="$BZIPDelegateDefault"
34020 BrowseDelegate="$BrowseDelegateDefault"
34021 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34022 CatDelegate="$CatDelegateDefault"
34023 ConvertDelegate="$ConvertDelegateDefault"
34024 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34025 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34026 EchoDelegate="$EchoDelegateDefault"
34027 EditorDelegate="$EditorDelegateDefault"
34028 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34029 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34030 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34031 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34032 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34033 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34034 LPDelegate="$LPDelegateDefault"
34035 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34036 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34037 LaunchDelegate="$LaunchDelegateDefault"
34038 MANDelegate="$MANDelegateDefault"
34039 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34040 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034041 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034042 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34043 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034044 PCLDelegate="$PCLDelegateDefault"
34045 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34046 POVDelegate="$POVDelegateDefault"
34047 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034048 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34049 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034050 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034051 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34052 ShowImageDelegate="$ShowImageDelegateDefault"
34053 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034054 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034055 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34056 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34057 XPSDelegate="$XPSDelegateDefault"
34058 ZipDelegate="$ZipDelegateDefault"
34059fi
34060
34061# Delegate substitutions
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104#
34105# RPM support.
34106#
34107RPM=''
34108for ac_prog in gnutar gtar tar
34109do
34110 # Extract the first word of "$ac_prog", so it can be a program name with args.
34111set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034114if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034115 $as_echo_n "(cached) " >&6
34116else
34117 if test -n "$TAR"; then
34118 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34119else
34120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34121for as_dir in $PATH
34122do
34123 IFS=$as_save_IFS
34124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34127 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034129 break 2
34130 fi
34131done
cristy8b350f62009-11-15 23:12:43 +000034132 done
cristy3ed852e2009-09-05 21:47:34 +000034133IFS=$as_save_IFS
34134
34135fi
34136fi
34137TAR=$ac_cv_prog_TAR
34138if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034140$as_echo "$TAR" >&6; }
34141else
cristy8b350f62009-11-15 23:12:43 +000034142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034143$as_echo "no" >&6; }
34144fi
34145
34146
34147 test -n "$TAR" && break
34148done
34149
34150for ac_prog in perl
34151do
34152 # Extract the first word of "$ac_prog", so it can be a program name with args.
34153set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034155$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034156if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034157 $as_echo_n "(cached) " >&6
34158else
34159 if test -n "$PERL"; then
34160 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34161else
34162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34163for as_dir in $PATH
34164do
34165 IFS=$as_save_IFS
34166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34169 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034171 break 2
34172 fi
34173done
cristy8b350f62009-11-15 23:12:43 +000034174 done
cristy3ed852e2009-09-05 21:47:34 +000034175IFS=$as_save_IFS
34176
34177fi
34178fi
34179PERL=$ac_cv_prog_PERL
34180if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034182$as_echo "$PERL" >&6; }
34183else
cristy8b350f62009-11-15 23:12:43 +000034184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034185$as_echo "no" >&6; }
34186fi
34187
34188
34189 test -n "$PERL" && break
34190done
34191
34192for ac_prog in rpmbuild rpm
34193do
34194 # Extract the first word of "$ac_prog", so it can be a program name with args.
34195set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034198if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034199 $as_echo_n "(cached) " >&6
34200else
34201 if test -n "$RPM"; then
34202 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34203else
34204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34205for as_dir in $PATH
34206do
34207 IFS=$as_save_IFS
34208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34211 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034213 break 2
34214 fi
34215done
cristy8b350f62009-11-15 23:12:43 +000034216 done
cristy3ed852e2009-09-05 21:47:34 +000034217IFS=$as_save_IFS
34218
34219fi
34220fi
34221RPM=$ac_cv_prog_RPM
34222if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034224$as_echo "$RPM" >&6; }
34225else
cristy8b350f62009-11-15 23:12:43 +000034226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo "no" >&6; }
34228fi
34229
34230
34231 test -n "$RPM" && break
34232done
34233
34234
cristy73bd4a52010-10-05 11:24:23 +000034235ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34236
34237
34238AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34239
34240
34241AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34242
34243
34244AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34245
34246
34247 if test "x$RPM" != "x" ; then
34248 RPM_DELEGATE_TRUE=
34249 RPM_DELEGATE_FALSE='#'
34250else
34251 RPM_DELEGATE_TRUE='#'
34252 RPM_DELEGATE_FALSE=
34253fi
34254
cristy3ed852e2009-09-05 21:47:34 +000034255
34256#
34257# 7ZIP support (http://p7zip.sourceforge.net/)
34258#
34259P7ZIP=''
34260for ac_prog in 7za
34261do
34262 # Extract the first word of "$ac_prog", so it can be a program name with args.
34263set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034266if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034267 $as_echo_n "(cached) " >&6
34268else
34269 if test -n "$P7ZIP"; then
34270 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34271else
34272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34273for as_dir in $PATH
34274do
34275 IFS=$as_save_IFS
34276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34279 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034281 break 2
34282 fi
34283done
cristy8b350f62009-11-15 23:12:43 +000034284 done
cristy3ed852e2009-09-05 21:47:34 +000034285IFS=$as_save_IFS
34286
34287fi
34288fi
34289P7ZIP=$ac_cv_prog_P7ZIP
34290if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034292$as_echo "$P7ZIP" >&6; }
34293else
cristy8b350f62009-11-15 23:12:43 +000034294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034295$as_echo "no" >&6; }
34296fi
34297
34298
34299 test -n "$P7ZIP" && break
34300done
34301
34302
cristy73bd4a52010-10-05 11:24:23 +000034303 if test "x$P7ZIP" != "x" ; then
34304 P7ZIP_DELEGATE_TRUE=
34305 P7ZIP_DELEGATE_FALSE='#'
34306else
34307 P7ZIP_DELEGATE_TRUE='#'
34308 P7ZIP_DELEGATE_FALSE=
34309fi
34310
cristy3ed852e2009-09-05 21:47:34 +000034311
34312#
34313# ZIP support (http://www.info-zip.org/Zip.html)
34314#
34315ZIP=''
34316for ac_prog in zip
34317do
34318 # Extract the first word of "$ac_prog", so it can be a program name with args.
34319set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034322if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034323 $as_echo_n "(cached) " >&6
34324else
34325 if test -n "$ZIP"; then
34326 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34327else
34328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34329for as_dir in $PATH
34330do
34331 IFS=$as_save_IFS
34332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34335 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337 break 2
34338 fi
34339done
cristy8b350f62009-11-15 23:12:43 +000034340 done
cristy3ed852e2009-09-05 21:47:34 +000034341IFS=$as_save_IFS
34342
34343fi
34344fi
34345ZIP=$ac_cv_prog_ZIP
34346if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034348$as_echo "$ZIP" >&6; }
34349else
cristy8b350f62009-11-15 23:12:43 +000034350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034351$as_echo "no" >&6; }
34352fi
34353
34354
34355 test -n "$ZIP" && break
34356done
34357
34358
cristy73bd4a52010-10-05 11:24:23 +000034359 if test "x$ZIP" != "x" ; then
34360 ZIP_DELEGATE_TRUE=
34361 ZIP_DELEGATE_FALSE='#'
34362else
34363 ZIP_DELEGATE_TRUE='#'
34364 ZIP_DELEGATE_FALSE=
34365fi
34366
cristy3ed852e2009-09-05 21:47:34 +000034367
34368#
34369# GhostPCL related configuration.
34370#
34371PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034372PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034373PCLMonoDevice=pbmraw
34374if test -z "$PCLVersion"; then
34375 PCLVersion='unknown'
34376fi
34377if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034378 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34379$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034382 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34383$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034384 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034386$as_echo_n "checking for pcl color device... " >&6; }
34387 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34388 :
34389 else
34390 PCLColorDevice=ppmraw
34391 fi
cristy09b53e12011-10-14 12:47:22 +000034392 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34393$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034394
34395 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397$as_echo_n "checking for pcl CMYK device... " >&6; }
34398 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34399 :
34400 else
34401 PCLCMYKDevice=$PCLColorDevice
34402 fi
cristy09b53e12011-10-14 12:47:22 +000034403 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34404$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034405
34406 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034408$as_echo_n "checking for pcl mono device... " >&6; }
34409 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34410 :
34411 else
34412 PCLMonoDevice=$PCLColorDevice
34413 fi
cristy09b53e12011-10-14 12:47:22 +000034414 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34415$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034416fi
34417
34418
34419
34420
34421
34422
34423#
34424# GhostXPS related configuration.
34425#
34426XPSColorDevice=ppmraw
34427XPSCMYKDevice=bmpsep8
34428XPSMonoDevice=pbmraw
34429if test -z "$XPSVersion"; then
34430 XPSVersion='unknown'
34431fi
34432if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034433 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34434$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034436$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34438$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034439 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo_n "checking for xps color device... " >&6; }
34442 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34443 :
34444 else
34445 XPSColorDevice=ppmraw
34446 fi
cristy09b53e12011-10-14 12:47:22 +000034447 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34448$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034449
34450 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034452$as_echo_n "checking for xps CMYK device... " >&6; }
34453 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34454 :
34455 else
34456 XPSCMYKDevice=$XPSColorDevice
34457 fi
cristy09b53e12011-10-14 12:47:22 +000034458 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34459$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034460
34461 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463$as_echo_n "checking for xps mono device... " >&6; }
34464 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34465 :
34466 else
34467 XPSMonoDevice=$XPSColorDevice
34468 fi
cristy09b53e12011-10-14 12:47:22 +000034469 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34470$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034471fi
34472
34473
34474
34475
34476
34477
34478#
34479# Ghostscript related configuration.
34480#
cristya97426c2011-02-04 01:41:27 +000034481GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034482GSColorDevice=pnmraw
34483GSCMYKDevice=pam
34484GSMonoDevice=pbmraw
34485GSPDFDevice=pdfwrite
34486GSPSDevice=pswrite
34487GSEPSDevice=epswrite
34488GSVersion='unknown'
34489if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034490 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34491$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034493$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34495$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497$as_echo_n "checking for Ghostscript version... " >&6; }
34498 if GSVersion=`$PSDelegate --version`; then
34499 :
34500 else
34501 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34502 fi
cristy09b53e12011-10-14 12:47:22 +000034503 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34504$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034505
34506 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034508$as_echo_n "checking for gs alpha device... " >&6; }
34509 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34510 :
34511 else
34512 GSAlphaDevice=pnmraw
34513 fi
cristy09b53e12011-10-14 12:47:22 +000034514 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34515$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034516
34517 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034519$as_echo_n "checking for gs color device... " >&6; }
34520 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34521 :
34522 else
34523 GSColorDevice=pnmraw
34524 fi
cristy09b53e12011-10-14 12:47:22 +000034525 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34526$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034527
34528 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034530$as_echo_n "checking for gs CMYK device... " >&6; }
34531 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34532 :
34533 else
34534 GSCMYKDevice=bmpsep8
34535 fi
cristy09b53e12011-10-14 12:47:22 +000034536 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34537$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034538
34539 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034541$as_echo_n "checking for gs mono device... " >&6; }
34542 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34543 :
34544 else
34545 GSMonoDevice=$GSColorDevice
34546 fi
cristy09b53e12011-10-14 12:47:22 +000034547 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34548$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034549
34550 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034552$as_echo_n "checking for gs PDF writing device... " >&6; }
34553 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34554 :
34555 else
34556 GSPDFDevice=nodevice
34557 fi
cristy09b53e12011-10-14 12:47:22 +000034558 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34559$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034560
34561 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034563$as_echo_n "checking for gs PS writing device... " >&6; }
34564 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34565 :
34566 else
34567 GSPSDevice=nodevice
34568 fi
cristy09b53e12011-10-14 12:47:22 +000034569 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34570$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034571
34572 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034574$as_echo_n "checking for gs EPS writing device... " >&6; }
34575 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34576 :
34577 else
34578 GSEPSDevice=nodevice
34579 fi
cristy09b53e12011-10-14 12:47:22 +000034580 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34581$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034582fi
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593#
34594# PerlMagick-related configuration
34595#
34596
34597# Look for PERL if PerlMagick requested
34598# If name/path of desired PERL interpreter is specified, look for that one first
34599have_perl='no'
34600if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034601 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34602$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034604$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034605 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34606$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034607 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034609$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034610if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034611 $as_echo_n "(cached) " >&6
34612else
34613 ac_cv_path_PERL="$with_perl"
34614fi
cristy8b350f62009-11-15 23:12:43 +000034615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034616$as_echo "$ac_cv_path_PERL" >&6; };
34617 PERL=$ac_cv_path_PERL
34618 have_perl="$ac_cv_path_PERL"
34619 else
34620 for ac_prog in perl perl5
34621do
34622 # Extract the first word of "$ac_prog", so it can be a program name with args.
34623set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034626if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034627 $as_echo_n "(cached) " >&6
34628else
34629 case $PERL in
34630 [\\/]* | ?:[\\/]*)
34631 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34632 ;;
34633 *)
34634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34635for as_dir in $PATH
34636do
34637 IFS=$as_save_IFS
34638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34641 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643 break 2
34644 fi
34645done
cristy8b350f62009-11-15 23:12:43 +000034646 done
cristy3ed852e2009-09-05 21:47:34 +000034647IFS=$as_save_IFS
34648
34649 ;;
34650esac
34651fi
34652PERL=$ac_cv_path_PERL
34653if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034655$as_echo "$PERL" >&6; }
34656else
cristy8b350f62009-11-15 23:12:43 +000034657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034658$as_echo "no" >&6; }
34659fi
34660
34661
34662 test -n "$PERL" && break
34663done
34664 if test "$ac_cv_path_PERL"; then
34665 have_perl="$ac_cv_path_PERL"
34666 fi
34667 fi
34668fi
34669
cristy949301e2010-01-06 01:38:40 +000034670if test "$with_perl" != 'yes' ; then
34671 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34672fi
34673
34674PERL_SUPPORTS_DESTDIR='no'
34675
cristy3ed852e2009-09-05 21:47:34 +000034676with_perl_static='no'
34677with_perl_dynamic='no'
34678if test "$have_perl" != 'no'; then
34679 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34680 with_perl_static='yes'
34681 fi
34682 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34683 with_perl_dynamic='yes'
34684 fi
34685 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034686
34687
34688
34689
34690 if test -n "$PERL"; then :
34691
34692 ax_perl_version="5.8.1"
34693
34694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34695$as_echo_n "checking for perl version... " >&6; }
34696
34697 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34698
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34700$as_echo "$perl_version" >&6; }
34701
34702 PERL_VERSION=$perl_version
34703
34704
34705
34706
34707
34708 # Used to indicate true or false condition
34709 ax_compare_version=false
34710
34711 # Convert the two version strings to be compared into a format that
34712 # allows a simple string comparison. The end result is that a version
34713 # string of the form 1.12.5-r617 will be converted to the form
34714 # 0001001200050617. In other words, each number is zero padded to four
34715 # digits, and non digits are removed.
34716
34717 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34718 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34719 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34720 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34721 -e 's/[^0-9]//g'`
34722
34723
34724 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34725 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34726 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34727 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34728 -e 's/[^0-9]//g'`
34729
34730
34731 ax_compare_version=`echo "x$ax_compare_version_A
34732x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34733
34734
34735
34736 if test "$ax_compare_version" = "true" ; then
34737
34738 :
34739 PERL_SUPPORTS_DESTDIR='yes'
34740
34741 else
34742 :
34743 PERL_SUPPORTS_DESTDIR='no'
34744
34745 fi
34746
34747
34748else
34749
34750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34751$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34752 PERL_SUPPORTS_DESTDIR='no'
34753
cristy3ed852e2009-09-05 21:47:34 +000034754fi
cristy73bd4a52010-10-05 11:24:23 +000034755
34756fi
34757 if test "$have_perl" != 'no'; then
34758 WITH_PERL_TRUE=
34759 WITH_PERL_FALSE='#'
34760else
34761 WITH_PERL_TRUE='#'
34762 WITH_PERL_FALSE=
34763fi
34764
34765 if test $with_perl_static = 'yes'; then
34766 WITH_PERL_STATIC_TRUE=
34767 WITH_PERL_STATIC_FALSE='#'
34768else
34769 WITH_PERL_STATIC_TRUE='#'
34770 WITH_PERL_STATIC_FALSE=
34771fi
34772
34773 if test $with_perl_dynamic = 'yes'; then
34774 WITH_PERL_DYNAMIC_TRUE=
34775 WITH_PERL_DYNAMIC_FALSE='#'
34776else
34777 WITH_PERL_DYNAMIC_TRUE='#'
34778 WITH_PERL_DYNAMIC_FALSE=
34779fi
34780
cristy3ed852e2009-09-05 21:47:34 +000034781
34782
34783# Determine path to pick up MagickCore library from for use with building PerlMagick
34784MAGICKCORE_PATH="${LIB_DIR}"
34785if test $with_perl_static = 'yes'; then
34786 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34787 libtool_objdir=$objdir
34788
34789 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034790 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034791fi
34792
34793
34794# Create a simple string containing format names for all delegate libraries
34795DELEGATES=''
34796if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34797if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34798if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34799if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34800if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34801if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34802if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34803if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34804if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34805if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34806if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34807if test "$have_jpeg" = 'yes'; then
34808 DELEGATES="$DELEGATES jpeg";
34809 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34810fi
34811if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034812if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034813if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34814if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034815if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034816if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34817if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34818if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34819if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34820if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34821if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34822if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34823if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34824if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34825
34826
34827
34828#
34829# Handle special compiler flags
34830#
34831
34832# Add '-p' if prof source profiling support enabled
34833if test "$enable_prof" = 'yes'; then
34834 CFLAGS="-p $CFLAGS"
34835 CXXFLAGS="-p $CXXFLAGS"
34836 LDFLAGS="-p $LDFLAGS"
34837fi
34838
34839# Add '-pg' if gprof source profiling support enabled
34840if test "$enable_gprof" = 'yes'; then
34841 CFLAGS="-pg $CFLAGS"
34842 CXXFLAGS="-pg $CXXFLAGS"
34843 LDFLAGS="-pg $LDFLAGS"
34844fi
34845
34846# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34847# This is a gcc-specific feature
34848if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034850$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034851if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034852 $as_echo_n "(cached) " >&6
34853else
34854 ac_check_lib_save_LIBS=$LIBS
34855LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034857/* end confdefs.h. */
34858
34859/* Override any GCC internal prototype to avoid an error.
34860 Use char because int might match the return type of a GCC
34861 builtin and then its argument prototype would still apply. */
34862#ifdef __cplusplus
34863extern "C"
34864#endif
34865char _gcov_init ();
34866int
34867main ()
34868{
34869return _gcov_init ();
34870 ;
34871 return 0;
34872}
34873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034874if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034875 ac_cv_lib_gcov__gcov_init=yes
34876else
cristy8b350f62009-11-15 23:12:43 +000034877 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034878fi
cristy8b350f62009-11-15 23:12:43 +000034879rm -f core conftest.err conftest.$ac_objext \
34880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034881LIBS=$ac_check_lib_save_LIBS
34882fi
cristy8b350f62009-11-15 23:12:43 +000034883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034884$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034885if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034886 cat >>confdefs.h <<_ACEOF
34887#define HAVE_LIBGCOV 1
34888_ACEOF
34889
34890 LIBS="-lgcov $LIBS"
34891
34892fi
34893
cristy8b350f62009-11-15 23:12:43 +000034894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034895$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034896if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034897 $as_echo_n "(cached) " >&6
34898else
34899 ac_check_lib_save_LIBS=$LIBS
34900LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034902/* end confdefs.h. */
34903
34904/* Override any GCC internal prototype to avoid an error.
34905 Use char because int might match the return type of a GCC
34906 builtin and then its argument prototype would still apply. */
34907#ifdef __cplusplus
34908extern "C"
34909#endif
34910char __gcov_init ();
34911int
34912main ()
34913{
34914return __gcov_init ();
34915 ;
34916 return 0;
34917}
34918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034920 ac_cv_lib_gcov___gcov_init=yes
34921else
cristy8b350f62009-11-15 23:12:43 +000034922 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034923fi
cristy8b350f62009-11-15 23:12:43 +000034924rm -f core conftest.err conftest.$ac_objext \
34925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034926LIBS=$ac_check_lib_save_LIBS
34927fi
cristy8b350f62009-11-15 23:12:43 +000034928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034930if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034931 cat >>confdefs.h <<_ACEOF
34932#define HAVE_LIBGCOV 1
34933_ACEOF
34934
34935 LIBS="-lgcov $LIBS"
34936
34937fi
34938
34939 case "$target_os" in
34940 darwin*)
34941 OSX_GCOV_LDFLAG="-Wl,-single_module"
34942 ;;
34943 *)
34944 OSX_GCOV_LDFLAG=""
34945 ;;
34946 esac
34947
34948 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34949 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34950 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34951fi
34952
34953#
34954# Build library dependency list for libMagickCore
34955#
34956
34957MAGICK_LIBLTDL='' # Libltdl for build
34958MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34959MAGICK_LTDLDEPS='' # extra libltdl dependencies
34960if test "$with_ltdl" != 'no'
34961then
34962 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34963 MAGICK_API_LIBLTDL='-lltdl'
34964 fi
34965 MAGICK_LIBLTDL=${LIBLTDL}
34966 MAGICK_LTDLDEPS=${LTDLDEPS}
34967fi
34968
34969
34970
34971if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034972 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 +000034973else
cristy41cbe8a2011-10-27 01:35:18 +000034974 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 +000034975fi
34976
34977
34978#
34979# Remove extraneous spaces from output variables (asthetic)
34980#
34981X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34982X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34983X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34984X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34985
34986CC=`echo $CC | sed -e 's/ */ /g'`
34987CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34988CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34989CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34990DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34991DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34992LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34993TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34994MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34995#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34996
34997# Pass only user-provided LIBS as "global" libraries
34998LIBS=$USER_LIBS
34999
35000#AC_SUBST(CPPFLAGS)
35001
35002#AC_SUBST(LDFLAGS)
35003#AC_SUBST(X_PRE_LIBS)
35004#AC_SUBST(X_LIBS)
35005#AC_SUBST(X_EXTRA_LIBS)
35006
35007MAGICK_CFLAGS=$CFLAGS
35008MAGICK_CXXFLAGS="$CXXFLAGS"
35009MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35010MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35011MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35012MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35013
35014
35015
35016
35017
35018
35019
35020
cristyfd9dcd42010-08-08 18:07:02 +000035021
cristy3ed852e2009-09-05 21:47:34 +000035022# Set configured scripts to executable.
35023ac_config_commands="$ac_config_commands default"
35024
35025ac_config_commands="$ac_config_commands MagickCore-config.in"
35026
cristy3ed852e2009-09-05 21:47:34 +000035027ac_config_commands="$ac_config_commands MagickWand-config.in"
35028
cristy3ed852e2009-09-05 21:47:34 +000035029ac_config_commands="$ac_config_commands Magick++-config.in"
35030
35031ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35032
35033
cristy09b53e12011-10-14 12:47:22 +000035034{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35035$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35036{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35037$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035038cat >confcache <<\_ACEOF
35039# This file is a shell script that caches the results of configure
35040# tests run on this system so they can be shared between configure
35041# scripts and configure runs, see configure's option --config-cache.
35042# It is not useful on other systems. If it contains results you don't
35043# want to keep, you may remove or edit it.
35044#
35045# config.status only pays attention to the cache file if you give it
35046# the --recheck option to rerun configure.
35047#
35048# `ac_cv_env_foo' variables (set or unset) will be overridden when
35049# loading this file, other *unset* `ac_cv_foo' will be assigned the
35050# following values.
35051
35052_ACEOF
35053
35054# The following way of writing the cache mishandles newlines in values,
35055# but we know of no workaround that is simple, portable, and efficient.
35056# So, we kill variables containing newlines.
35057# Ultrix sh set writes to stderr and can't be redirected directly,
35058# and sets the high bit in the cache file unless we assign to the vars.
35059(
35060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35061 eval ac_val=\$$ac_var
35062 case $ac_val in #(
35063 *${as_nl}*)
35064 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035066$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35067 esac
35068 case $ac_var in #(
35069 _ | IFS | as_nl) ;; #(
35070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035071 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035072 esac ;;
35073 esac
35074 done
35075
35076 (set) 2>&1 |
35077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35078 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035079 # `set' does not quote correctly, so add quotes: double-quote
35080 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035081 sed -n \
35082 "s/'/'\\\\''/g;
35083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35084 ;; #(
35085 *)
35086 # `set' quotes correctly as required by POSIX, so do not add quotes.
35087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35088 ;;
35089 esac |
35090 sort
35091) |
35092 sed '
35093 /^ac_cv_env_/b end
35094 t clear
35095 :clear
35096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35097 t end
35098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35099 :end' >>confcache
35100if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35101 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035102 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035104$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035105 if test ! -f "$cache_file" || test -h "$cache_file"; then
35106 cat confcache >"$cache_file"
35107 else
35108 case $cache_file in #(
35109 */* | ?:*)
35110 mv -f confcache "$cache_file"$$ &&
35111 mv -f "$cache_file"$$ "$cache_file" ;; #(
35112 *)
35113 mv -f confcache "$cache_file" ;;
35114 esac
35115 fi
35116 fi
cristy3ed852e2009-09-05 21:47:34 +000035117 else
cristy8b350f62009-11-15 23:12:43 +000035118 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035119$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35120 fi
35121fi
35122rm -f confcache
35123
35124test "x$prefix" = xNONE && prefix=$ac_default_prefix
35125# Let make expand exec_prefix.
35126test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35127
35128DEFS=-DHAVE_CONFIG_H
35129
35130ac_libobjs=
35131ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035132U=
cristy3ed852e2009-09-05 21:47:34 +000035133for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35134 # 1. Remove the extension, and $U if already installed.
35135 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35136 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35137 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35138 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035139 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35140 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035141done
35142LIBOBJS=$ac_libobjs
35143
35144LTLIBOBJS=$ac_ltlibobjs
35145
35146
cristy73bd4a52010-10-05 11:24:23 +000035147 if test -n "$EXEEXT"; then
35148 am__EXEEXT_TRUE=
35149 am__EXEEXT_FALSE='#'
35150else
35151 am__EXEEXT_TRUE='#'
35152 am__EXEEXT_FALSE=
35153fi
cristy3ed852e2009-09-05 21:47:34 +000035154
cristy73bd4a52010-10-05 11:24:23 +000035155if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035156 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035157Usually this means the macro was only invoked conditionally." "$LINENO" 5
35158fi
35159if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035160 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035161Usually this means the macro was only invoked conditionally." "$LINENO" 5
35162fi
35163if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035164 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035165Usually this means the macro was only invoked conditionally." "$LINENO" 5
35166fi
35167if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035168 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035169Usually this means the macro was only invoked conditionally." "$LINENO" 5
35170fi
35171if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035172 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035173Usually this means the macro was only invoked conditionally." "$LINENO" 5
35174fi
35175if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035176 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035177Usually this means the macro was only invoked conditionally." "$LINENO" 5
35178fi
35179if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035180 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035181Usually this means the macro was only invoked conditionally." "$LINENO" 5
35182fi
35183if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035184 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035185Usually this means the macro was only invoked conditionally." "$LINENO" 5
35186fi
cristy73bd4a52010-10-05 11:24:23 +000035187if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035188 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035189Usually this means the macro was only invoked conditionally." "$LINENO" 5
35190fi
35191if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035192 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035193Usually this means the macro was only invoked conditionally." "$LINENO" 5
35194fi
35195LT_CONFIG_H=config/config.h
35196
35197 _ltdl_libobjs=
35198 _ltdl_ltlibobjs=
35199 if test -n "$_LT_LIBOBJS"; then
35200 # Remove the extension.
35201 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35202 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35203 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35204 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35205 done
35206 fi
35207 ltdl_LIBOBJS=$_ltdl_libobjs
35208
35209 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35210
35211
35212if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035213 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035214Usually this means the macro was only invoked conditionally." "$LINENO" 5
35215fi
35216if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035217 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035218Usually this means the macro was only invoked conditionally." "$LINENO" 5
35219fi
35220if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035221 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035222Usually this means the macro was only invoked conditionally." "$LINENO" 5
35223fi
35224if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035225 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035226Usually this means the macro was only invoked conditionally." "$LINENO" 5
35227fi
35228
35229if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035230 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035231Usually this means the macro was only invoked conditionally." "$LINENO" 5
35232fi
35233if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035234 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035235Usually this means the macro was only invoked conditionally." "$LINENO" 5
35236fi
35237if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035238 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035239Usually this means the macro was only invoked conditionally." "$LINENO" 5
35240fi
35241if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035242 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035243Usually this means the macro was only invoked conditionally." "$LINENO" 5
35244fi
35245if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035246 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035247Usually this means the macro was only invoked conditionally." "$LINENO" 5
35248fi
35249if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035250 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035251Usually this means the macro was only invoked conditionally." "$LINENO" 5
35252fi
35253if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035254 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035255Usually this means the macro was only invoked conditionally." "$LINENO" 5
35256fi
35257if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035258 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035259Usually this means the macro was only invoked conditionally." "$LINENO" 5
35260fi
35261if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035262 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035263Usually this means the macro was only invoked conditionally." "$LINENO" 5
35264fi
35265if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035266 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035267Usually this means the macro was only invoked conditionally." "$LINENO" 5
35268fi
35269if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035270 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035271Usually this means the macro was only invoked conditionally." "$LINENO" 5
35272fi
35273if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035274 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035275Usually this means the macro was only invoked conditionally." "$LINENO" 5
35276fi
35277if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035278 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035279Usually this means the macro was only invoked conditionally." "$LINENO" 5
35280fi
35281if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035282 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035283Usually this means the macro was only invoked conditionally." "$LINENO" 5
35284fi
35285if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035286 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035287Usually this means the macro was only invoked conditionally." "$LINENO" 5
35288fi
35289if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035290 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035291Usually this means the macro was only invoked conditionally." "$LINENO" 5
35292fi
35293if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035294 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035295Usually this means the macro was only invoked conditionally." "$LINENO" 5
35296fi
35297if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035298 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035299Usually this means the macro was only invoked conditionally." "$LINENO" 5
35300fi
35301if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035302 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035303Usually this means the macro was only invoked conditionally." "$LINENO" 5
35304fi
35305if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035306 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035307Usually this means the macro was only invoked conditionally." "$LINENO" 5
35308fi
cristyfbb0ef02010-12-19 02:32:11 +000035309if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35310 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35311Usually this means the macro was only invoked conditionally." "$LINENO" 5
35312fi
cristy73bd4a52010-10-05 11:24:23 +000035313if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035314 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035315Usually this means the macro was only invoked conditionally." "$LINENO" 5
35316fi
cristy41cbe8a2011-10-27 01:35:18 +000035317if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35318 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35319Usually this means the macro was only invoked conditionally." "$LINENO" 5
35320fi
35321if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35322 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35323Usually this means the macro was only invoked conditionally." "$LINENO" 5
35324fi
cristy73bd4a52010-10-05 11:24:23 +000035325if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035326 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035327Usually this means the macro was only invoked conditionally." "$LINENO" 5
35328fi
35329if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035330 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035331Usually this means the macro was only invoked conditionally." "$LINENO" 5
35332fi
35333if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035334 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035335Usually this means the macro was only invoked conditionally." "$LINENO" 5
35336fi
35337if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035338 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035339Usually this means the macro was only invoked conditionally." "$LINENO" 5
35340fi
cristyb1860752011-03-14 00:27:46 +000035341if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35342 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35343Usually this means the macro was only invoked conditionally." "$LINENO" 5
35344fi
cristy73bd4a52010-10-05 11:24:23 +000035345if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035346 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035347Usually this means the macro was only invoked conditionally." "$LINENO" 5
35348fi
35349if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035350 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035351Usually this means the macro was only invoked conditionally." "$LINENO" 5
35352fi
35353if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035354 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035355Usually this means the macro was only invoked conditionally." "$LINENO" 5
35356fi
35357if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035358 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035359Usually this means the macro was only invoked conditionally." "$LINENO" 5
35360fi
35361if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035362 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035363Usually this means the macro was only invoked conditionally." "$LINENO" 5
35364fi
35365if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035366 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035367Usually this means the macro was only invoked conditionally." "$LINENO" 5
35368fi
35369if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035370 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035371Usually this means the macro was only invoked conditionally." "$LINENO" 5
35372fi
35373if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035374 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035375Usually this means the macro was only invoked conditionally." "$LINENO" 5
35376fi
cristy3ed852e2009-09-05 21:47:34 +000035377
cristyda16f162011-02-19 23:52:17 +000035378: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035379ac_write_fail=0
35380ac_clean_files_save=$ac_clean_files
35381ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035382{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035383$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035384as_write_fail=0
35385cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035386#! $SHELL
35387# Generated by $as_me.
35388# Run this file to recreate the current configuration.
35389# Compiler output produced by configure, useful for debugging
35390# configure, is in config.log if it exists.
35391
35392debug=false
35393ac_cs_recheck=false
35394ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035395
cristy8b350f62009-11-15 23:12:43 +000035396SHELL=\${CONFIG_SHELL-$SHELL}
35397export SHELL
35398_ASEOF
35399cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35400## -------------------- ##
35401## M4sh Initialization. ##
35402## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035403
35404# Be more Bourne compatible
35405DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035406if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035407 emulate sh
35408 NULLCMD=:
35409 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35410 # is contrary to our usage. Disable this feature.
35411 alias -g '${1+"$@"}'='"$@"'
35412 setopt NO_GLOB_SUBST
35413else
cristy8b350f62009-11-15 23:12:43 +000035414 case `(set -o) 2>/dev/null` in #(
35415 *posix*) :
35416 set -o posix ;; #(
35417 *) :
35418 ;;
cristy3ed852e2009-09-05 21:47:34 +000035419esac
cristy3ed852e2009-09-05 21:47:34 +000035420fi
35421
35422
cristy3ed852e2009-09-05 21:47:34 +000035423as_nl='
35424'
35425export as_nl
35426# Printing a long string crashes Solaris 7 /usr/bin/printf.
35427as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35428as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35429as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035430# Prefer a ksh shell builtin over an external printf program on Solaris,
35431# but without wasting forks for bash or zsh.
35432if test -z "$BASH_VERSION$ZSH_VERSION" \
35433 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35434 as_echo='print -r --'
35435 as_echo_n='print -rn --'
35436elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035437 as_echo='printf %s\n'
35438 as_echo_n='printf %s'
35439else
35440 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35441 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35442 as_echo_n='/usr/ucb/echo -n'
35443 else
35444 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35445 as_echo_n_body='eval
35446 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035447 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035448 *"$as_nl"*)
35449 expr "X$arg" : "X\\(.*\\)$as_nl";
35450 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35451 esac;
35452 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35453 '
35454 export as_echo_n_body
35455 as_echo_n='sh -c $as_echo_n_body as_echo'
35456 fi
35457 export as_echo_body
35458 as_echo='sh -c $as_echo_body as_echo'
35459fi
35460
35461# The user is always right.
35462if test "${PATH_SEPARATOR+set}" != set; then
35463 PATH_SEPARATOR=:
35464 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35465 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35466 PATH_SEPARATOR=';'
35467 }
35468fi
35469
cristy3ed852e2009-09-05 21:47:34 +000035470
35471# IFS
35472# We need space, tab and new line, in precisely that order. Quoting is
35473# there to prevent editors from complaining about space-tab.
35474# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35475# splitting by setting IFS to empty value.)
35476IFS=" "" $as_nl"
35477
35478# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035479as_myself=
cristy8b350f62009-11-15 23:12:43 +000035480case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035481 *[\\/]* ) as_myself=$0 ;;
35482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35483for as_dir in $PATH
35484do
35485 IFS=$as_save_IFS
35486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35488 done
cristy3ed852e2009-09-05 21:47:34 +000035489IFS=$as_save_IFS
35490
35491 ;;
35492esac
35493# We did not find ourselves, most probably we were run as `sh COMMAND'
35494# in which case we are not to be found in the path.
35495if test "x$as_myself" = x; then
35496 as_myself=$0
35497fi
35498if test ! -f "$as_myself"; then
35499 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035500 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035501fi
35502
cristy8b350f62009-11-15 23:12:43 +000035503# Unset variables that we do not need and which cause bugs (e.g. in
35504# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35505# suppresses any "Segmentation fault" message there. '((' could
35506# trigger a bug in pdksh 5.2.14.
35507for as_var in BASH_ENV ENV MAIL MAILPATH
35508do eval test x\${$as_var+set} = xset \
35509 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035510done
35511PS1='$ '
35512PS2='> '
35513PS4='+ '
35514
35515# NLS nuisances.
35516LC_ALL=C
35517export LC_ALL
35518LANGUAGE=C
35519export LANGUAGE
35520
cristy8b350f62009-11-15 23:12:43 +000035521# CDPATH.
35522(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35523
35524
cristy98dddb52010-11-04 00:30:15 +000035525# as_fn_error STATUS ERROR [LINENO LOG_FD]
35526# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035527# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35528# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035529# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035530as_fn_error ()
35531{
cristy98dddb52010-11-04 00:30:15 +000035532 as_status=$1; test $as_status -eq 0 && as_status=1
35533 if test "$4"; then
35534 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35535 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035536 fi
cristy98dddb52010-11-04 00:30:15 +000035537 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035538 as_fn_exit $as_status
35539} # as_fn_error
35540
35541
35542# as_fn_set_status STATUS
35543# -----------------------
35544# Set $? to STATUS, without forking.
35545as_fn_set_status ()
35546{
35547 return $1
35548} # as_fn_set_status
35549
35550# as_fn_exit STATUS
35551# -----------------
35552# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35553as_fn_exit ()
35554{
35555 set +e
35556 as_fn_set_status $1
35557 exit $1
35558} # as_fn_exit
35559
35560# as_fn_unset VAR
35561# ---------------
35562# Portably unset VAR.
35563as_fn_unset ()
35564{
35565 { eval $1=; unset $1;}
35566}
35567as_unset=as_fn_unset
35568# as_fn_append VAR VALUE
35569# ----------------------
35570# Append the text in VALUE to the end of the definition contained in VAR. Take
35571# advantage of any shell optimizations that allow amortized linear growth over
35572# repeated appends, instead of the typical quadratic growth present in naive
35573# implementations.
35574if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35575 eval 'as_fn_append ()
35576 {
35577 eval $1+=\$2
35578 }'
35579else
35580 as_fn_append ()
35581 {
35582 eval $1=\$$1\$2
35583 }
35584fi # as_fn_append
35585
35586# as_fn_arith ARG...
35587# ------------------
35588# Perform arithmetic evaluation on the ARGs, and store the result in the
35589# global $as_val. Take advantage of shells that can avoid forks. The arguments
35590# must be portable across $(()) and expr.
35591if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35592 eval 'as_fn_arith ()
35593 {
35594 as_val=$(( $* ))
35595 }'
35596else
35597 as_fn_arith ()
35598 {
35599 as_val=`expr "$@" || test $? -eq 1`
35600 }
35601fi # as_fn_arith
35602
35603
cristy3ed852e2009-09-05 21:47:34 +000035604if expr a : '\(a\)' >/dev/null 2>&1 &&
35605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35606 as_expr=expr
35607else
35608 as_expr=false
35609fi
35610
35611if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35612 as_basename=basename
35613else
35614 as_basename=false
35615fi
35616
cristy8b350f62009-11-15 23:12:43 +000035617if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35618 as_dirname=dirname
35619else
35620 as_dirname=false
35621fi
cristy3ed852e2009-09-05 21:47:34 +000035622
cristy3ed852e2009-09-05 21:47:34 +000035623as_me=`$as_basename -- "$0" ||
35624$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35625 X"$0" : 'X\(//\)$' \| \
35626 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35627$as_echo X/"$0" |
35628 sed '/^.*\/\([^/][^/]*\)\/*$/{
35629 s//\1/
35630 q
35631 }
35632 /^X\/\(\/\/\)$/{
35633 s//\1/
35634 q
35635 }
35636 /^X\/\(\/\).*/{
35637 s//\1/
35638 q
35639 }
35640 s/.*/./; q'`
35641
cristy8b350f62009-11-15 23:12:43 +000035642# Avoid depending upon Character Ranges.
35643as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35644as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35645as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35646as_cr_digits='0123456789'
35647as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035648
35649ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035650case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035651-n*)
cristy8b350f62009-11-15 23:12:43 +000035652 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035654 xy) ECHO_C='\c';;
35655 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35656 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035657 esac;;
35658*)
35659 ECHO_N='-n';;
35660esac
cristy3ed852e2009-09-05 21:47:34 +000035661
35662rm -f conf$$ conf$$.exe conf$$.file
35663if test -d conf$$.dir; then
35664 rm -f conf$$.dir/conf$$.file
35665else
35666 rm -f conf$$.dir
35667 mkdir conf$$.dir 2>/dev/null
35668fi
35669if (echo >conf$$.file) 2>/dev/null; then
35670 if ln -s conf$$.file conf$$ 2>/dev/null; then
35671 as_ln_s='ln -s'
35672 # ... but there are two gotchas:
35673 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35674 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35675 # In both cases, we have to default to `cp -p'.
35676 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35677 as_ln_s='cp -p'
35678 elif ln conf$$.file conf$$ 2>/dev/null; then
35679 as_ln_s=ln
35680 else
35681 as_ln_s='cp -p'
35682 fi
35683else
35684 as_ln_s='cp -p'
35685fi
35686rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35687rmdir conf$$.dir 2>/dev/null
35688
cristy8b350f62009-11-15 23:12:43 +000035689
35690# as_fn_mkdir_p
35691# -------------
35692# Create "$as_dir" as a directory, including parents if necessary.
35693as_fn_mkdir_p ()
35694{
35695
35696 case $as_dir in #(
35697 -*) as_dir=./$as_dir;;
35698 esac
35699 test -d "$as_dir" || eval $as_mkdir_p || {
35700 as_dirs=
35701 while :; do
35702 case $as_dir in #(
35703 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35704 *) as_qdir=$as_dir;;
35705 esac
35706 as_dirs="'$as_qdir' $as_dirs"
35707 as_dir=`$as_dirname -- "$as_dir" ||
35708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35709 X"$as_dir" : 'X\(//\)[^/]' \| \
35710 X"$as_dir" : 'X\(//\)$' \| \
35711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35712$as_echo X"$as_dir" |
35713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35714 s//\1/
35715 q
35716 }
35717 /^X\(\/\/\)[^/].*/{
35718 s//\1/
35719 q
35720 }
35721 /^X\(\/\/\)$/{
35722 s//\1/
35723 q
35724 }
35725 /^X\(\/\).*/{
35726 s//\1/
35727 q
35728 }
35729 s/.*/./; q'`
35730 test -d "$as_dir" && break
35731 done
35732 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035733 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035734
35735
35736} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035737if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035738 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035739else
35740 test -d ./-p && rmdir ./-p
35741 as_mkdir_p=false
35742fi
35743
35744if test -x / >/dev/null 2>&1; then
35745 as_test_x='test -x'
35746else
35747 if ls -dL / >/dev/null 2>&1; then
35748 as_ls_L_option=L
35749 else
35750 as_ls_L_option=
35751 fi
35752 as_test_x='
35753 eval sh -c '\''
35754 if test -d "$1"; then
35755 test -d "$1/.";
35756 else
cristy8b350f62009-11-15 23:12:43 +000035757 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035758 -*)set "./$1";;
35759 esac;
cristy8b350f62009-11-15 23:12:43 +000035760 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035761 ???[sx]*):;;*)false;;esac;fi
35762 '\'' sh
35763 '
35764fi
35765as_executable_p=$as_test_x
35766
35767# Sed expression to map a string onto a valid CPP name.
35768as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35769
35770# Sed expression to map a string onto a valid variable name.
35771as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35772
35773
35774exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035775## ----------------------------------- ##
35776## Main body of $CONFIG_STATUS script. ##
35777## ----------------------------------- ##
35778_ASEOF
35779test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035780
cristy8b350f62009-11-15 23:12:43 +000035781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35782# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035783# report actual input values of CONFIG_FILES etc. instead of their
35784# values after options handling.
35785ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035786This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035787generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035788
35789 CONFIG_FILES = $CONFIG_FILES
35790 CONFIG_HEADERS = $CONFIG_HEADERS
35791 CONFIG_LINKS = $CONFIG_LINKS
35792 CONFIG_COMMANDS = $CONFIG_COMMANDS
35793 $ $0 $@
35794
35795on `(hostname || uname -n) 2>/dev/null | sed 1q`
35796"
35797
35798_ACEOF
35799
35800case $ac_config_files in *"
35801"*) set x $ac_config_files; shift; ac_config_files=$*;;
35802esac
35803
35804case $ac_config_headers in *"
35805"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35806esac
35807
35808
35809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35810# Files that config.status was made for.
35811config_files="$ac_config_files"
35812config_headers="$ac_config_headers"
35813config_commands="$ac_config_commands"
35814
35815_ACEOF
35816
35817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35818ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035819\`$as_me' instantiates files and other configuration actions
35820from templates according to the current configuration. Unless the files
35821and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035822
cristy8b350f62009-11-15 23:12:43 +000035823Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035824
35825 -h, --help print this help, then exit
35826 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035827 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035828 -q, --quiet, --silent
35829 do not print progress messages
35830 -d, --debug don't remove temporary files
35831 --recheck update $as_me by reconfiguring in the same conditions
35832 --file=FILE[:TEMPLATE]
35833 instantiate the configuration file FILE
35834 --header=FILE[:TEMPLATE]
35835 instantiate the configuration header FILE
35836
35837Configuration files:
35838$config_files
35839
35840Configuration headers:
35841$config_headers
35842
35843Configuration commands:
35844$config_commands
35845
cristy8b350f62009-11-15 23:12:43 +000035846Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035847
35848_ACEOF
35849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035850ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035851ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035852ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035853configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035854 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035855
cristy98dddb52010-11-04 00:30:15 +000035856Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035857This config.status script is free software; the Free Software Foundation
35858gives unlimited permission to copy, distribute and modify it."
35859
35860ac_pwd='$ac_pwd'
35861srcdir='$srcdir'
35862INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035863MKDIR_P='$MKDIR_P'
35864AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035865test -n "\$AWK" || AWK=awk
35866_ACEOF
35867
35868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35869# The default lists apply if the user does not specify any file.
35870ac_need_defaults=:
35871while test $# != 0
35872do
35873 case $1 in
cristyda16f162011-02-19 23:52:17 +000035874 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35877 ac_shift=:
35878 ;;
cristyda16f162011-02-19 23:52:17 +000035879 --*=)
35880 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35881 ac_optarg=
35882 ac_shift=:
35883 ;;
cristy3ed852e2009-09-05 21:47:34 +000035884 *)
35885 ac_option=$1
35886 ac_optarg=$2
35887 ac_shift=shift
35888 ;;
35889 esac
35890
35891 case $ac_option in
35892 # Handling of the options.
35893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35894 ac_cs_recheck=: ;;
35895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35896 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035897 --config | --confi | --conf | --con | --co | --c )
35898 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035899 --debug | --debu | --deb | --de | --d | -d )
35900 debug=: ;;
35901 --file | --fil | --fi | --f )
35902 $ac_shift
35903 case $ac_optarg in
35904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035905 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035906 esac
cristy8b350f62009-11-15 23:12:43 +000035907 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035908 ac_need_defaults=false;;
35909 --header | --heade | --head | --hea )
35910 $ac_shift
35911 case $ac_optarg in
35912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35913 esac
cristy8b350f62009-11-15 23:12:43 +000035914 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035915 ac_need_defaults=false;;
35916 --he | --h)
35917 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035918 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035919Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035920 --help | --hel | -h )
35921 $as_echo "$ac_cs_usage"; exit ;;
35922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35924 ac_cs_silent=: ;;
35925
35926 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035927 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035928Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035929
cristy8b350f62009-11-15 23:12:43 +000035930 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035931 ac_need_defaults=false ;;
35932
35933 esac
35934 shift
35935done
35936
35937ac_configure_extra_args=
35938
35939if $ac_cs_silent; then
35940 exec 6>/dev/null
35941 ac_configure_extra_args="$ac_configure_extra_args --silent"
35942fi
35943
35944_ACEOF
35945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35946if \$ac_cs_recheck; then
35947 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35948 shift
35949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35950 CONFIG_SHELL='$SHELL'
35951 export CONFIG_SHELL
35952 exec "\$@"
35953fi
35954
35955_ACEOF
35956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35957exec 5>>config.log
35958{
35959 echo
35960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35961## Running $as_me. ##
35962_ASBOX
35963 $as_echo "$ac_log"
35964} >&5
35965
35966_ACEOF
35967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035968#
35969# INIT-COMMANDS
35970#
35971PACKAGE="$PACKAGE"
35972AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35973
35974
35975# The HP-UX ksh and POSIX shell print the target directory to stdout
35976# if CDPATH is set.
35977(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35978
35979sed_quote_subst='$sed_quote_subst'
35980double_quote_subst='$double_quote_subst'
35981delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035982SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35983Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35984GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35985EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35986FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35987SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35988ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35989LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35990macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35991macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35992AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35993DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35994OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35995enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35996enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35997pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35998enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35999host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36000host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36001host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36002build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36003build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36004build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36005NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36006LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36007max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36008ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36009exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36010lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36011lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36012lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036013lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36014lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036015reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36016reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36017deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36018file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036019file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36020want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36021sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036022AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36023AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036024archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036025STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36026RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36027old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36028old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36029old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36030lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36031CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36032CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36033compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36034GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36035lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36036lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36037lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36038lt_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 +000036039nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36040lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036041objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36042MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36043lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036044lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036045lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036046lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36047lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36048need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036049MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036050DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36051NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36052LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36053OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36054OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36055libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36056shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36057extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36058archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36059enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36060export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36061whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36062compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36063old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36064old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36065archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36066archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36067module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36068module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36069with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36070allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36071no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36072hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36073hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36074hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36075hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36076hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36077hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36078hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36079hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36080inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36081link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036082always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36083export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36084exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36085include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36086prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036087postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036088file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36089variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36090need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36091need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36092version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36093runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36094shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36095shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36096libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36097library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36098soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36099install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36100postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36101postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36102finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36103finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36104hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36105sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36106sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36107hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36108enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36109enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36110enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36111old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36112striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36113compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36114predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36115postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36116predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36117postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36118compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36119LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36120reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36121reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36122old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36123compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36124GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36125lt_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 +000036126lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036127lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036128lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36129lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36130archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36131enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36132export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36133whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36134compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36135old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36136old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36137archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36138archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36139module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36140module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36141with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36142allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36143no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36144hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36145hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36146hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36147hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36148hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36149hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36150hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36151hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36152inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36153link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036154always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36155export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36156exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36157include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36158prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036159postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036160file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36161hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36162compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36163predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36164postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36165predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36166postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36167compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036168
36169LTCC='$LTCC'
36170LTCFLAGS='$LTCFLAGS'
36171compiler='$compiler_DEFAULT'
36172
cristy0c60a692010-11-04 01:09:47 +000036173# A function that is used when there is no print builtin or printf.
36174func_fallback_echo ()
36175{
36176 eval 'cat <<_LTECHO_EOF
36177\$1
36178_LTECHO_EOF'
36179}
36180
cristy73bd4a52010-10-05 11:24:23 +000036181# Quote evaled strings.
36182for var in SED \
36183GREP \
36184EGREP \
36185FGREP \
cristy0c60a692010-11-04 01:09:47 +000036186SHELL \
36187ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036188LD \
cristy0c60a692010-11-04 01:09:47 +000036189AS \
36190DLLTOOL \
36191OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000036192NM \
36193LN_S \
36194lt_SP2NL \
36195lt_NL2SP \
36196reload_flag \
36197deplibs_check_method \
36198file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036199file_magic_glob \
36200want_nocaseglob \
36201sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036202AR \
36203AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036204archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036205STRIP \
36206RANLIB \
36207CC \
36208CFLAGS \
36209compiler \
36210lt_cv_sys_global_symbol_pipe \
36211lt_cv_sys_global_symbol_to_cdecl \
36212lt_cv_sys_global_symbol_to_c_name_address \
36213lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036214nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036215lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036216lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036217lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036218lt_prog_compiler_static \
36219lt_cv_prog_compiler_c_o \
36220need_locks \
cristyda16f162011-02-19 23:52:17 +000036221MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036222DSYMUTIL \
36223NMEDIT \
36224LIPO \
36225OTOOL \
36226OTOOL64 \
36227shrext_cmds \
36228export_dynamic_flag_spec \
36229whole_archive_flag_spec \
36230compiler_needs_object \
36231with_gnu_ld \
36232allow_undefined_flag \
36233no_undefined_flag \
36234hardcode_libdir_flag_spec \
36235hardcode_libdir_flag_spec_ld \
36236hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036237exclude_expsyms \
36238include_expsyms \
36239file_list_spec \
36240variables_saved_for_relink \
36241libname_spec \
36242library_names_spec \
36243soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036244install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036245finish_eval \
36246old_striplib \
36247striplib \
36248compiler_lib_search_dirs \
36249predep_objects \
36250postdep_objects \
36251predeps \
36252postdeps \
36253compiler_lib_search_path \
36254LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036255reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036256compiler_CXX \
36257lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036258lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036259lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036260lt_prog_compiler_static_CXX \
36261lt_cv_prog_compiler_c_o_CXX \
36262export_dynamic_flag_spec_CXX \
36263whole_archive_flag_spec_CXX \
36264compiler_needs_object_CXX \
36265with_gnu_ld_CXX \
36266allow_undefined_flag_CXX \
36267no_undefined_flag_CXX \
36268hardcode_libdir_flag_spec_CXX \
36269hardcode_libdir_flag_spec_ld_CXX \
36270hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036271exclude_expsyms_CXX \
36272include_expsyms_CXX \
36273file_list_spec_CXX \
36274compiler_lib_search_dirs_CXX \
36275predep_objects_CXX \
36276postdep_objects_CXX \
36277predeps_CXX \
36278postdeps_CXX \
36279compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036281 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036283 ;;
36284 *)
36285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36286 ;;
36287 esac
36288done
36289
36290# Double-quote double-evaled strings.
36291for var in reload_cmds \
36292old_postinstall_cmds \
36293old_postuninstall_cmds \
36294old_archive_cmds \
36295extract_expsyms_cmds \
36296old_archive_from_new_cmds \
36297old_archive_from_expsyms_cmds \
36298archive_cmds \
36299archive_expsym_cmds \
36300module_cmds \
36301module_expsym_cmds \
36302export_symbols_cmds \
36303prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036304postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036305postinstall_cmds \
36306postuninstall_cmds \
36307finish_cmds \
36308sys_lib_search_path_spec \
36309sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036310reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036311old_archive_cmds_CXX \
36312old_archive_from_new_cmds_CXX \
36313old_archive_from_expsyms_cmds_CXX \
36314archive_cmds_CXX \
36315archive_expsym_cmds_CXX \
36316module_cmds_CXX \
36317module_expsym_cmds_CXX \
36318export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036319prelink_cmds_CXX \
36320postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036321 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036322 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036323 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036324 ;;
36325 *)
36326 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36327 ;;
36328 esac
36329done
36330
cristy73bd4a52010-10-05 11:24:23 +000036331ac_aux_dir='$ac_aux_dir'
36332xsi_shell='$xsi_shell'
36333lt_shell_append='$lt_shell_append'
36334
36335# See if we are running on zsh, and set the options which allow our
36336# commands through without removal of \ escapes INIT.
36337if test -n "\${ZSH_VERSION+set}" ; then
36338 setopt NO_GLOB_SUBST
36339fi
36340
36341
36342 PACKAGE='$PACKAGE'
36343 VERSION='$VERSION'
36344 TIMESTAMP='$TIMESTAMP'
36345 RM='$RM'
36346 ofile='$ofile'
36347
36348
36349
36350
36351
36352
cristy3ed852e2009-09-05 21:47:34 +000036353_ACEOF
36354
36355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36356
36357# Handling of arguments.
36358for ac_config_target in $ac_config_targets
36359do
36360 case $ac_config_target in
36361 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036362 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036363 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36364 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36365 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36366 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36367 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036368 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036369 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36370 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36371 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36372 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36373 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036374 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036375 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36376 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036377 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36378 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36379 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036380 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36381 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36382 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36383 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36384 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36385 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36386 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36387 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36388 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36389 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36390 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36391 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36392 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36393 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36394 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36395 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36396 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036397 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36398 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036399 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36400 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036401 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36402 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036403 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036404 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36405 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36406
cristy98dddb52010-11-04 00:30:15 +000036407 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036408 esac
36409done
36410
36411
36412# If the user did not use the arguments to specify the items to instantiate,
36413# then the envvar interface is used. Set only those that are not.
36414# We use the long form for the default assignment because of an extremely
36415# bizarre bug on SunOS 4.1.3.
36416if $ac_need_defaults; then
36417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36420fi
36421
36422# Have a temporary directory for convenience. Make it in the build tree
36423# simply because there is no reason against having it here, and in addition,
36424# creating and moving files from /tmp can sometimes cause problems.
36425# Hook for its removal unless debugging.
36426# Note that there is a small window in which the directory will not be cleaned:
36427# after its creation but before its name has been assigned to `$tmp'.
36428$debug ||
36429{
cristyda16f162011-02-19 23:52:17 +000036430 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036431 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036432 : "${ac_tmp:=$tmp}"
36433 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036434' 0
cristy8b350f62009-11-15 23:12:43 +000036435 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036436}
36437# Create a (secure) tmp directory for tmp files.
36438
36439{
36440 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036441 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036442} ||
36443{
36444 tmp=./conf$$-$RANDOM
36445 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036446} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036447ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036448
36449# Set up the scripts for CONFIG_FILES section.
36450# No need to generate them if there are no CONFIG_FILES.
36451# This happens for instance with `./config.status config.h'.
36452if test -n "$CONFIG_FILES"; then
36453
36454
cristy8b350f62009-11-15 23:12:43 +000036455ac_cr=`echo X | tr X '\015'`
36456# On cygwin, bash can eat \r inside `` if the user requested igncr.
36457# But we know of no other shell where ac_cr would be empty at this
36458# point, so we can use a bashism as a fallback.
36459if test "x$ac_cr" = x; then
36460 eval ac_cr=\$\'\\r\'
36461fi
cristy3ed852e2009-09-05 21:47:34 +000036462ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36463if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036464 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036465else
36466 ac_cs_awk_cr=$ac_cr
36467fi
36468
cristyda16f162011-02-19 23:52:17 +000036469echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036470_ACEOF
36471
36472
36473{
36474 echo "cat >conf$$subs.awk <<_ACEOF" &&
36475 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36476 echo "_ACEOF"
36477} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036478 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36479ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036480ac_delim='%!_!# '
36481for ac_last_try in false false false false false :; do
36482 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036483 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036484
36485 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36486 if test $ac_delim_n = $ac_delim_num; then
36487 break
36488 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036490 else
36491 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36492 fi
36493done
36494rm -f conf$$subs.sh
36495
36496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036497cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036498_ACEOF
36499sed -n '
36500h
36501s/^/S["/; s/!.*/"]=/
36502p
36503g
36504s/^[^!]*!//
36505:repl
36506t repl
36507s/'"$ac_delim"'$//
36508t delim
36509:nl
36510h
cristycd4c5312009-11-22 01:19:08 +000036511s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036512t more1
36513s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36514p
36515n
36516b repl
36517:more1
36518s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36519p
36520g
36521s/.\{148\}//
36522t nl
36523:delim
36524h
cristycd4c5312009-11-22 01:19:08 +000036525s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036526t more2
36527s/["\\]/\\&/g; s/^/"/; s/$/"/
36528p
36529b
36530:more2
36531s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36532p
36533g
36534s/.\{148\}//
36535t delim
36536' <conf$$subs.awk | sed '
36537/^[^""]/{
36538 N
36539 s/\n//
36540}
36541' >>$CONFIG_STATUS || ac_write_fail=1
36542rm -f conf$$subs.awk
36543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36544_ACAWK
cristyda16f162011-02-19 23:52:17 +000036545cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036546 for (key in S) S_is_set[key] = 1
36547 FS = ""
36548
36549}
36550{
36551 line = $ 0
36552 nfields = split(line, field, "@")
36553 substed = 0
36554 len = length(field[1])
36555 for (i = 2; i < nfields; i++) {
36556 key = field[i]
36557 keylen = length(key)
36558 if (S_is_set[key]) {
36559 value = S[key]
36560 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36561 len += length(value) + length(field[++i])
36562 substed = 1
36563 } else
36564 len += 1 + keylen
36565 }
36566
36567 print line
36568}
36569
36570_ACAWK
36571_ACEOF
36572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36573if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36574 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36575else
36576 cat
cristyda16f162011-02-19 23:52:17 +000036577fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036578 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036579_ACEOF
36580
cristy98dddb52010-11-04 00:30:15 +000036581# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36582# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036583# trailing colons and then remove the whole line if VPATH becomes empty
36584# (actually we leave an empty line to preserve line numbers).
36585if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036586 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36587h
36588s///
36589s/^/:/
36590s/[ ]*$/:/
36591s/:\$(srcdir):/:/g
36592s/:\${srcdir}:/:/g
36593s/:@srcdir@:/:/g
36594s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036595s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036596x
36597s/\(=[ ]*\).*/\1/
36598G
36599s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036600s/^[^=]*=[ ]*$//
36601}'
36602fi
36603
36604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36605fi # test -n "$CONFIG_FILES"
36606
36607# Set up the scripts for CONFIG_HEADERS section.
36608# No need to generate them if there are no CONFIG_HEADERS.
36609# This happens for instance with `./config.status Makefile'.
36610if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036611cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036612BEGIN {
36613_ACEOF
36614
36615# Transform confdefs.h into an awk script `defines.awk', embedded as
36616# here-document in config.status, that substitutes the proper values into
36617# config.h.in to produce config.h.
36618
36619# Create a delimiter string that does not exist in confdefs.h, to ease
36620# handling of long lines.
36621ac_delim='%!_!# '
36622for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036623 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36624 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036625 break
36626 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036627 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036628 else
36629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36630 fi
36631done
36632
36633# For the awk script, D is an array of macro values keyed by name,
36634# likewise P contains macro parameters if any. Preserve backslash
36635# newline sequences.
36636
36637ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36638sed -n '
36639s/.\{148\}/&'"$ac_delim"'/g
36640t rset
36641:rset
36642s/^[ ]*#[ ]*define[ ][ ]*/ /
36643t def
36644d
36645:def
36646s/\\$//
36647t bsnl
36648s/["\\]/\\&/g
36649s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36650D["\1"]=" \3"/p
36651s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36652d
36653:bsnl
36654s/["\\]/\\&/g
36655s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36656D["\1"]=" \3\\\\\\n"\\/p
36657t cont
36658s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36659t cont
36660d
36661:cont
36662n
36663s/.\{148\}/&'"$ac_delim"'/g
36664t clear
36665:clear
36666s/\\$//
36667t bsnlc
36668s/["\\]/\\&/g; s/^/"/; s/$/"/p
36669d
36670:bsnlc
36671s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36672b cont
36673' <confdefs.h | sed '
36674s/'"$ac_delim"'/"\\\
36675"/g' >>$CONFIG_STATUS || ac_write_fail=1
36676
36677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36678 for (key in D) D_is_set[key] = 1
36679 FS = ""
36680}
36681/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36682 line = \$ 0
36683 split(line, arg, " ")
36684 if (arg[1] == "#") {
36685 defundef = arg[2]
36686 mac1 = arg[3]
36687 } else {
36688 defundef = substr(arg[1], 2)
36689 mac1 = arg[2]
36690 }
36691 split(mac1, mac2, "(") #)
36692 macro = mac2[1]
36693 prefix = substr(line, 1, index(line, defundef) - 1)
36694 if (D_is_set[macro]) {
36695 # Preserve the white space surrounding the "#".
36696 print prefix "define", macro P[macro] D[macro]
36697 next
36698 } else {
36699 # Replace #undef with comments. This is necessary, for example,
36700 # in the case of _POSIX_SOURCE, which is predefined and required
36701 # on some systems where configure will not decide to define it.
36702 if (defundef == "undef") {
36703 print "/*", prefix defundef, macro, "*/"
36704 next
36705 }
36706 }
36707}
36708{ print }
36709_ACAWK
36710_ACEOF
36711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036712 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036713fi # test -n "$CONFIG_HEADERS"
36714
36715
36716eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36717shift
36718for ac_tag
36719do
36720 case $ac_tag in
36721 :[FHLC]) ac_mode=$ac_tag; continue;;
36722 esac
36723 case $ac_mode$ac_tag in
36724 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036725 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036726 :[FH]-) ac_tag=-:-;;
36727 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36728 esac
36729 ac_save_IFS=$IFS
36730 IFS=:
36731 set x $ac_tag
36732 IFS=$ac_save_IFS
36733 shift
36734 ac_file=$1
36735 shift
36736
36737 case $ac_mode in
36738 :L) ac_source=$1;;
36739 :[FH])
36740 ac_file_inputs=
36741 for ac_f
36742 do
36743 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036744 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036745 *) # Look for the file first in the build tree, then in the source tree
36746 # (if the path is not absolute). The absolute path cannot be DOS-style,
36747 # because $ac_f cannot contain `:'.
36748 test -f "$ac_f" ||
36749 case $ac_f in
36750 [\\/$]*) false;;
36751 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36752 esac ||
cristy98dddb52010-11-04 00:30:15 +000036753 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036754 esac
36755 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036756 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036757 done
36758
36759 # Let's still pretend it is `configure' which instantiates (i.e., don't
36760 # use $as_me), people would be surprised to read:
36761 # /* config.h. Generated by config.status. */
36762 configure_input='Generated from '`
36763 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36764 `' by configure.'
36765 if test x"$ac_file" != x-; then
36766 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036768$as_echo "$as_me: creating $ac_file" >&6;}
36769 fi
36770 # Neutralize special characters interpreted by sed in replacement strings.
36771 case $configure_input in #(
36772 *\&* | *\|* | *\\* )
36773 ac_sed_conf_input=`$as_echo "$configure_input" |
36774 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36775 *) ac_sed_conf_input=$configure_input;;
36776 esac
36777
36778 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036779 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036781 esac
36782 ;;
36783 esac
36784
36785 ac_dir=`$as_dirname -- "$ac_file" ||
36786$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36787 X"$ac_file" : 'X\(//\)[^/]' \| \
36788 X"$ac_file" : 'X\(//\)$' \| \
36789 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36790$as_echo X"$ac_file" |
36791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36792 s//\1/
36793 q
36794 }
36795 /^X\(\/\/\)[^/].*/{
36796 s//\1/
36797 q
36798 }
36799 /^X\(\/\/\)$/{
36800 s//\1/
36801 q
36802 }
36803 /^X\(\/\).*/{
36804 s//\1/
36805 q
36806 }
36807 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036808 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036809 ac_builddir=.
36810
36811case "$ac_dir" in
36812.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36813*)
36814 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36815 # A ".." for each directory in $ac_dir_suffix.
36816 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36817 case $ac_top_builddir_sub in
36818 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36819 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36820 esac ;;
36821esac
36822ac_abs_top_builddir=$ac_pwd
36823ac_abs_builddir=$ac_pwd$ac_dir_suffix
36824# for backward compatibility:
36825ac_top_builddir=$ac_top_build_prefix
36826
36827case $srcdir in
36828 .) # We are building in place.
36829 ac_srcdir=.
36830 ac_top_srcdir=$ac_top_builddir_sub
36831 ac_abs_top_srcdir=$ac_pwd ;;
36832 [\\/]* | ?:[\\/]* ) # Absolute name.
36833 ac_srcdir=$srcdir$ac_dir_suffix;
36834 ac_top_srcdir=$srcdir
36835 ac_abs_top_srcdir=$srcdir ;;
36836 *) # Relative name.
36837 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36838 ac_top_srcdir=$ac_top_build_prefix$srcdir
36839 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36840esac
36841ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36842
36843
36844 case $ac_mode in
36845 :F)
36846 #
36847 # CONFIG_FILE
36848 #
36849
36850 case $INSTALL in
36851 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36852 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36853 esac
cristy73bd4a52010-10-05 11:24:23 +000036854 ac_MKDIR_P=$MKDIR_P
36855 case $MKDIR_P in
36856 [\\/$]* | ?:[\\/]* ) ;;
36857 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36858 esac
cristy3ed852e2009-09-05 21:47:34 +000036859_ACEOF
36860
36861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36862# If the template does not know about datarootdir, expand it.
36863# FIXME: This hack should be removed a few years after 2.60.
36864ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036865ac_sed_dataroot='
36866/datarootdir/ {
36867 p
36868 q
36869}
36870/@datadir@/p
36871/@docdir@/p
36872/@infodir@/p
36873/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036874/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036875case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36876*datarootdir*) ac_datarootdir_seen=yes;;
36877*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036879$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36880_ACEOF
36881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36882 ac_datarootdir_hack='
36883 s&@datadir@&$datadir&g
36884 s&@docdir@&$docdir&g
36885 s&@infodir@&$infodir&g
36886 s&@localedir@&$localedir&g
36887 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036888 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036889esac
36890_ACEOF
36891
36892# Neutralize VPATH when `$srcdir' = `.'.
36893# Shell code in configure.ac might set extrasub.
36894# FIXME: do we really want to maintain this feature?
36895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36896ac_sed_extra="$ac_vpsub
36897$extrasub
36898_ACEOF
36899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36900:t
36901/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36902s|@configure_input@|$ac_sed_conf_input|;t t
36903s&@top_builddir@&$ac_top_builddir_sub&;t t
36904s&@top_build_prefix@&$ac_top_build_prefix&;t t
36905s&@srcdir@&$ac_srcdir&;t t
36906s&@abs_srcdir@&$ac_abs_srcdir&;t t
36907s&@top_srcdir@&$ac_top_srcdir&;t t
36908s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36909s&@builddir@&$ac_builddir&;t t
36910s&@abs_builddir@&$ac_abs_builddir&;t t
36911s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36912s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036913s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036914$ac_datarootdir_hack
36915"
cristyda16f162011-02-19 23:52:17 +000036916eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36917 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036918
36919test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036920 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36922 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036924which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036925$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036926which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036927
cristyda16f162011-02-19 23:52:17 +000036928 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036929 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036930 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36931 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036932 esac \
cristy98dddb52010-11-04 00:30:15 +000036933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036934 ;;
36935 :H)
36936 #
36937 # CONFIG_HEADER
36938 #
36939 if test x"$ac_file" != x-; then
36940 {
36941 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036942 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36943 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036945 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036946 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036947$as_echo "$as_me: $ac_file is unchanged" >&6;}
36948 else
36949 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036950 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036952 fi
36953 else
36954 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036955 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036956 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036957 fi
cristy73bd4a52010-10-05 11:24:23 +000036958# Compute "$ac_file"'s index in $config_headers.
36959_am_arg="$ac_file"
36960_am_stamp_count=1
36961for _am_header in $config_headers :; do
36962 case $_am_header in
36963 $_am_arg | $_am_arg:* )
36964 break ;;
36965 * )
36966 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36967 esac
36968done
36969echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36970$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36971 X"$_am_arg" : 'X\(//\)[^/]' \| \
36972 X"$_am_arg" : 'X\(//\)$' \| \
36973 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36974$as_echo X"$_am_arg" |
36975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36976 s//\1/
36977 q
36978 }
36979 /^X\(\/\/\)[^/].*/{
36980 s//\1/
36981 q
36982 }
36983 /^X\(\/\/\)$/{
36984 s//\1/
36985 q
36986 }
36987 /^X\(\/\).*/{
36988 s//\1/
36989 q
36990 }
36991 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036992 ;;
36993
cristy8b350f62009-11-15 23:12:43 +000036994 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036995$as_echo "$as_me: executing $ac_file commands" >&6;}
36996 ;;
36997 esac
36998
36999
37000 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037001 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037002ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37003ac_prefix_conf_PKG=`echo MagickCore`
37004ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37005ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37006ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37007if test ".$ac_prefix_conf_INP" = "."; then
37008 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37009 case "$ac_file" in
37010 *.h) ac_prefix_conf_INP=$ac_file ;;
37011 *)
37012 esac
37013 test ".$ac_prefix_conf_INP" != "." && break
37014 done
37015fi
37016if test ".$ac_prefix_conf_INP" = "."; then
37017 case "$ac_prefix_conf_OUT" in
37018 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37019 ;;
37020 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37021 ;;
37022 *) ac_prefix_conf_INP=config.h
37023 ;;
37024 esac
37025fi
37026if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037027 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037028else
37029 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37030 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37031 fi fi
37032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37033$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37034 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037035 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37036 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37037 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37038 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37039 $as_echo "#endif/" >> conftest.prefix
37040 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37041 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37042 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037043 # now executing _script on _DEF input to create _OUT output file
37044 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37045 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37046 echo ' ' >>$tmp/pconfig.h
37047 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37048
37049 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37050 echo ' ' >>$tmp/pconfig.h
37051 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37052 echo "#endif" >>$tmp/pconfig.h
37053 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37054 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37055$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37056 else
37057 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37058$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37059 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37060 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37061 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37062$as_echo X"$ac_prefix_conf_OUT" |
37063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37064 s//\1/
37065 q
37066 }
37067 /^X\(\/\/\)[^/].*/{
37068 s//\1/
37069 q
37070 }
37071 /^X\(\/\/\)$/{
37072 s//\1/
37073 q
37074 }
37075 /^X\(\/\).*/{
37076 s//\1/
37077 q
37078 }
37079 s/.*/./; q'`
37080 as_dir="$ac_dir"; as_fn_mkdir_p
37081 rm -f "$ac_prefix_conf_OUT"
37082 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37083 fi
37084 cp conftest.prefix _configs.sed
37085 else
cristy98dddb52010-11-04 00:30:15 +000037086 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 +000037087 fi
37088 rm -f conftest.*
37089fi
37090 ;;
37091 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37092 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37093 # are listed without --file. Let's play safe and only enable the eval
37094 # if we detect the quoting.
37095 case $CONFIG_FILES in
37096 *\'*) eval set x "$CONFIG_FILES" ;;
37097 *) set x $CONFIG_FILES ;;
37098 esac
37099 shift
37100 for mf
37101 do
37102 # Strip MF so we end up with the name of the file.
37103 mf=`echo "$mf" | sed -e 's/:.*$//'`
37104 # Check whether this is an Automake generated Makefile or not.
37105 # We used to match only the files named `Makefile.in', but
37106 # some people rename them; so instead we look at the file content.
37107 # Grep'ing the first line is not enough: some people post-process
37108 # each Makefile.in and add a new line on top of each file to say so.
37109 # Grep'ing the whole file is not good either: AIX grep has a line
37110 # limit of 2048, but all sed's we know have understand at least 4000.
37111 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37112 dirpart=`$as_dirname -- "$mf" ||
37113$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37114 X"$mf" : 'X\(//\)[^/]' \| \
37115 X"$mf" : 'X\(//\)$' \| \
37116 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37117$as_echo X"$mf" |
37118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37119 s//\1/
37120 q
37121 }
37122 /^X\(\/\/\)[^/].*/{
37123 s//\1/
37124 q
37125 }
37126 /^X\(\/\/\)$/{
37127 s//\1/
37128 q
37129 }
37130 /^X\(\/\).*/{
37131 s//\1/
37132 q
37133 }
37134 s/.*/./; q'`
37135 else
37136 continue
37137 fi
37138 # Extract the definition of DEPDIR, am__include, and am__quote
37139 # from the Makefile without running `make'.
37140 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37141 test -z "$DEPDIR" && continue
37142 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37143 test -z "am__include" && continue
37144 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37145 # When using ansi2knr, U may be empty or an underscore; expand it
37146 U=`sed -n 's/^U = //p' < "$mf"`
37147 # Find all dependency output files, they are included files with
37148 # $(DEPDIR) in their names. We invoke sed twice because it is the
37149 # simplest approach to changing $(DEPDIR) to its actual value in the
37150 # expansion.
37151 for file in `sed -n "
37152 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37153 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37154 # Make sure the directory exists.
37155 test -f "$dirpart/$file" && continue
37156 fdir=`$as_dirname -- "$file" ||
37157$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37158 X"$file" : 'X\(//\)[^/]' \| \
37159 X"$file" : 'X\(//\)$' \| \
37160 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37161$as_echo X"$file" |
37162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37163 s//\1/
37164 q
37165 }
37166 /^X\(\/\/\)[^/].*/{
37167 s//\1/
37168 q
37169 }
37170 /^X\(\/\/\)$/{
37171 s//\1/
37172 q
37173 }
37174 /^X\(\/\).*/{
37175 s//\1/
37176 q
37177 }
37178 s/.*/./; q'`
37179 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37180 # echo "creating $dirpart/$file"
37181 echo '# dummy' > "$dirpart/$file"
37182 done
37183 done
37184}
37185 ;;
37186 "libtool":C)
37187
37188 # See if we are running on zsh, and set the options which allow our
37189 # commands through without removal of \ escapes.
37190 if test -n "${ZSH_VERSION+set}" ; then
37191 setopt NO_GLOB_SUBST
37192 fi
37193
37194 cfgfile="${ofile}T"
37195 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37196 $RM "$cfgfile"
37197
37198 cat <<_LT_EOF >> "$cfgfile"
37199#! $SHELL
37200
37201# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37202# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37203# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37204# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37205#
37206# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000037207# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37208# Inc.
cristy73bd4a52010-10-05 11:24:23 +000037209# Written by Gordon Matzigkeit, 1996
37210#
37211# This file is part of GNU Libtool.
37212#
37213# GNU Libtool is free software; you can redistribute it and/or
37214# modify it under the terms of the GNU General Public License as
37215# published by the Free Software Foundation; either version 2 of
37216# the License, or (at your option) any later version.
37217#
37218# As a special exception to the GNU General Public License,
37219# if you distribute this file as part of a program or library that
37220# is built using GNU Libtool, you may include this file under the
37221# same distribution terms that you use for the rest of that program.
37222#
37223# GNU Libtool is distributed in the hope that it will be useful,
37224# but WITHOUT ANY WARRANTY; without even the implied warranty of
37225# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37226# GNU General Public License for more details.
37227#
37228# You should have received a copy of the GNU General Public License
37229# along with GNU Libtool; see the file COPYING. If not, a copy
37230# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37231# obtained by writing to the Free Software Foundation, Inc.,
37232# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37233
37234
37235# The names of the tagged configurations supported by this script.
37236available_tags="CXX "
37237
37238# ### BEGIN LIBTOOL CONFIG
37239
37240# A sed program that does not truncate output.
37241SED=$lt_SED
37242
37243# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37244Xsed="\$SED -e 1s/^X//"
37245
37246# A grep program that handles long lines.
37247GREP=$lt_GREP
37248
37249# An ERE matcher.
37250EGREP=$lt_EGREP
37251
37252# A literal string matcher.
37253FGREP=$lt_FGREP
37254
cristy0c60a692010-11-04 01:09:47 +000037255# Shell to use when invoking shell scripts.
37256SHELL=$lt_SHELL
37257
37258# An echo program that protects backslashes.
37259ECHO=$lt_ECHO
37260
cristy73bd4a52010-10-05 11:24:23 +000037261# Which release of libtool.m4 was used?
37262macro_version=$macro_version
37263macro_revision=$macro_revision
37264
37265# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037266AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037267
37268# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037269DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037270
37271# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037272OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037273
37274# Whether or not to build shared libraries.
37275build_libtool_libs=$enable_shared
37276
37277# Whether or not to build static libraries.
37278build_old_libs=$enable_static
37279
37280# What type of objects to build.
37281pic_mode=$pic_mode
37282
37283# Whether or not to optimize for fast installation.
37284fast_install=$enable_fast_install
37285
37286# The host system.
37287host_alias=$host_alias
37288host=$host
37289host_os=$host_os
37290
37291# The build system.
37292build_alias=$build_alias
37293build=$build
37294build_os=$build_os
37295
37296# A BSD- or MS-compatible name lister.
37297NM=$lt_NM
37298
37299# Whether we need soft or hard links.
37300LN_S=$lt_LN_S
37301
37302# What is the maximum length of a command?
37303max_cmd_len=$max_cmd_len
37304
37305# Object file suffix (normally "o").
37306objext=$ac_objext
37307
37308# Executable file suffix (normally "").
37309exeext=$exeext
37310
37311# whether the shell understands "unset".
37312lt_unset=$lt_unset
37313
37314# turn spaces into newlines.
37315SP2NL=$lt_lt_SP2NL
37316
37317# turn newlines into spaces.
37318NL2SP=$lt_lt_NL2SP
37319
cristyda16f162011-02-19 23:52:17 +000037320# convert \$build file names to \$host format.
37321to_host_file_cmd=$lt_cv_to_host_file_cmd
37322
37323# convert \$build files to toolchain format.
37324to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37325
cristy73bd4a52010-10-05 11:24:23 +000037326# Method to check whether dependent libraries are shared objects.
37327deplibs_check_method=$lt_deplibs_check_method
37328
cristyda16f162011-02-19 23:52:17 +000037329# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037330file_magic_cmd=$lt_file_magic_cmd
37331
cristyda16f162011-02-19 23:52:17 +000037332# How to find potential files when deplibs_check_method = "file_magic".
37333file_magic_glob=$lt_file_magic_glob
37334
37335# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37336want_nocaseglob=$lt_want_nocaseglob
37337
37338# Command to associate shared and link libraries.
37339sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37340
cristy73bd4a52010-10-05 11:24:23 +000037341# The archiver.
37342AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037343
37344# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037345AR_FLAGS=$lt_AR_FLAGS
37346
cristyda16f162011-02-19 23:52:17 +000037347# How to feed a file listing to the archiver.
37348archiver_list_spec=$lt_archiver_list_spec
37349
cristy73bd4a52010-10-05 11:24:23 +000037350# A symbol stripping program.
37351STRIP=$lt_STRIP
37352
37353# Commands used to install an old-style archive.
37354RANLIB=$lt_RANLIB
37355old_postinstall_cmds=$lt_old_postinstall_cmds
37356old_postuninstall_cmds=$lt_old_postuninstall_cmds
37357
cristy0c60a692010-11-04 01:09:47 +000037358# Whether to use a lock for old archive extraction.
37359lock_old_archive_extraction=$lock_old_archive_extraction
37360
cristy73bd4a52010-10-05 11:24:23 +000037361# A C compiler.
37362LTCC=$lt_CC
37363
37364# LTCC compiler flags.
37365LTCFLAGS=$lt_CFLAGS
37366
37367# Take the output of nm and produce a listing of raw symbols and C names.
37368global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37369
37370# Transform the output of nm in a proper C declaration.
37371global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37372
37373# Transform the output of nm in a C name address pair.
37374global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37375
37376# Transform the output of nm in a C name address pair when lib prefix is needed.
37377global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37378
cristyda16f162011-02-19 23:52:17 +000037379# Specify filename containing input files for \$NM.
37380nm_file_list_spec=$lt_nm_file_list_spec
37381
37382# The root where to search for dependent libraries,and in which our libraries should be installed.
37383lt_sysroot=$lt_sysroot
37384
cristy73bd4a52010-10-05 11:24:23 +000037385# The name of the directory that contains temporary libtool files.
37386objdir=$objdir
37387
cristy73bd4a52010-10-05 11:24:23 +000037388# Used to examine libraries when file_magic_cmd begins with "file".
37389MAGIC_CMD=$MAGIC_CMD
37390
37391# Must we lock files when doing compilation?
37392need_locks=$lt_need_locks
37393
cristyda16f162011-02-19 23:52:17 +000037394# Manifest tool.
37395MANIFEST_TOOL=$lt_MANIFEST_TOOL
37396
cristy73bd4a52010-10-05 11:24:23 +000037397# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37398DSYMUTIL=$lt_DSYMUTIL
37399
37400# Tool to change global to local symbols on Mac OS X.
37401NMEDIT=$lt_NMEDIT
37402
37403# Tool to manipulate fat objects and archives on Mac OS X.
37404LIPO=$lt_LIPO
37405
37406# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37407OTOOL=$lt_OTOOL
37408
37409# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37410OTOOL64=$lt_OTOOL64
37411
37412# Old archive suffix (normally "a").
37413libext=$libext
37414
37415# Shared library suffix (normally ".so").
37416shrext_cmds=$lt_shrext_cmds
37417
37418# The commands to extract the exported symbol list from a shared archive.
37419extract_expsyms_cmds=$lt_extract_expsyms_cmds
37420
37421# Variables whose values should be saved in libtool wrapper scripts and
37422# restored at link time.
37423variables_saved_for_relink=$lt_variables_saved_for_relink
37424
37425# Do we need the "lib" prefix for modules?
37426need_lib_prefix=$need_lib_prefix
37427
37428# Do we need a version for libraries?
37429need_version=$need_version
37430
37431# Library versioning type.
37432version_type=$version_type
37433
37434# Shared library runtime path variable.
37435runpath_var=$runpath_var
37436
37437# Shared library path variable.
37438shlibpath_var=$shlibpath_var
37439
37440# Is shlibpath searched before the hard-coded library search path?
37441shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37442
37443# Format of library name prefix.
37444libname_spec=$lt_libname_spec
37445
37446# List of archive names. First name is the real one, the rest are links.
37447# The last name is the one that the linker finds with -lNAME
37448library_names_spec=$lt_library_names_spec
37449
37450# The coded name of the library, if different from the real name.
37451soname_spec=$lt_soname_spec
37452
cristy0c60a692010-11-04 01:09:47 +000037453# Permission mode override for installation of shared libraries.
37454install_override_mode=$lt_install_override_mode
37455
cristy73bd4a52010-10-05 11:24:23 +000037456# Command to use after installation of a shared archive.
37457postinstall_cmds=$lt_postinstall_cmds
37458
37459# Command to use after uninstallation of a shared archive.
37460postuninstall_cmds=$lt_postuninstall_cmds
37461
37462# Commands used to finish a libtool library installation in a directory.
37463finish_cmds=$lt_finish_cmds
37464
37465# As "finish_cmds", except a single script fragment to be evaled but
37466# not shown.
37467finish_eval=$lt_finish_eval
37468
37469# Whether we should hardcode library paths into libraries.
37470hardcode_into_libs=$hardcode_into_libs
37471
37472# Compile-time system search path for libraries.
37473sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37474
37475# Run-time system search path for libraries.
37476sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37477
37478# Whether dlopen is supported.
37479dlopen_support=$enable_dlopen
37480
37481# Whether dlopen of programs is supported.
37482dlopen_self=$enable_dlopen_self
37483
37484# Whether dlopen of statically linked programs is supported.
37485dlopen_self_static=$enable_dlopen_self_static
37486
37487# Commands to strip libraries.
37488old_striplib=$lt_old_striplib
37489striplib=$lt_striplib
37490
37491
37492# The linker used to build libraries.
37493LD=$lt_LD
37494
cristy0c60a692010-11-04 01:09:47 +000037495# How to create reloadable object files.
37496reload_flag=$lt_reload_flag
37497reload_cmds=$lt_reload_cmds
37498
cristy73bd4a52010-10-05 11:24:23 +000037499# Commands used to build an old-style archive.
37500old_archive_cmds=$lt_old_archive_cmds
37501
37502# A language specific compiler.
37503CC=$lt_compiler
37504
37505# Is the compiler the GNU compiler?
37506with_gcc=$GCC
37507
37508# Compiler flag to turn off builtin functions.
37509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37510
cristy73bd4a52010-10-05 11:24:23 +000037511# Additional compiler flags for building library objects.
37512pic_flag=$lt_lt_prog_compiler_pic
37513
cristyda16f162011-02-19 23:52:17 +000037514# How to pass a linker flag through the compiler.
37515wl=$lt_lt_prog_compiler_wl
37516
cristy73bd4a52010-10-05 11:24:23 +000037517# Compiler flag to prevent dynamic linking.
37518link_static_flag=$lt_lt_prog_compiler_static
37519
37520# Does compiler simultaneously support -c and -o options?
37521compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37522
37523# Whether or not to add -lc for building shared libraries.
37524build_libtool_need_lc=$archive_cmds_need_lc
37525
37526# Whether or not to disallow shared libs when runtime libs are static.
37527allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37528
37529# Compiler flag to allow reflexive dlopens.
37530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37531
37532# Compiler flag to generate shared objects directly from archives.
37533whole_archive_flag_spec=$lt_whole_archive_flag_spec
37534
37535# Whether the compiler copes with passing no objects directly.
37536compiler_needs_object=$lt_compiler_needs_object
37537
37538# Create an old-style archive from a shared archive.
37539old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37540
37541# Create a temporary old-style archive to link instead of a shared archive.
37542old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37543
37544# Commands used to build a shared archive.
37545archive_cmds=$lt_archive_cmds
37546archive_expsym_cmds=$lt_archive_expsym_cmds
37547
37548# Commands used to build a loadable module if different from building
37549# a shared archive.
37550module_cmds=$lt_module_cmds
37551module_expsym_cmds=$lt_module_expsym_cmds
37552
37553# Whether we are building with GNU ld or not.
37554with_gnu_ld=$lt_with_gnu_ld
37555
37556# Flag that allows shared libraries with undefined symbols to be built.
37557allow_undefined_flag=$lt_allow_undefined_flag
37558
37559# Flag that enforces no undefined symbols.
37560no_undefined_flag=$lt_no_undefined_flag
37561
37562# Flag to hardcode \$libdir into a binary during linking.
37563# This must work even if \$libdir does not exist
37564hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37565
37566# If ld is used when linking, flag to hardcode \$libdir into a binary
37567# during linking. This must work even if \$libdir does not exist.
37568hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37569
37570# Whether we need a single "-rpath" flag with a separated argument.
37571hardcode_libdir_separator=$lt_hardcode_libdir_separator
37572
37573# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37574# DIR into the resulting binary.
37575hardcode_direct=$hardcode_direct
37576
37577# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37578# DIR into the resulting binary and the resulting library dependency is
37579# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37580# library is relocated.
37581hardcode_direct_absolute=$hardcode_direct_absolute
37582
37583# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37584# into the resulting binary.
37585hardcode_minus_L=$hardcode_minus_L
37586
37587# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37588# into the resulting binary.
37589hardcode_shlibpath_var=$hardcode_shlibpath_var
37590
37591# Set to "yes" if building a shared library automatically hardcodes DIR
37592# into the library and all subsequent libraries and executables linked
37593# against it.
37594hardcode_automatic=$hardcode_automatic
37595
37596# Set to yes if linker adds runtime paths of dependent libraries
37597# to runtime path list.
37598inherit_rpath=$inherit_rpath
37599
37600# Whether libtool must link a program against all its dependency libraries.
37601link_all_deplibs=$link_all_deplibs
37602
cristy73bd4a52010-10-05 11:24:23 +000037603# Set to "yes" if exported symbols are required.
37604always_export_symbols=$always_export_symbols
37605
37606# The commands to list exported symbols.
37607export_symbols_cmds=$lt_export_symbols_cmds
37608
37609# Symbols that should not be listed in the preloaded symbols.
37610exclude_expsyms=$lt_exclude_expsyms
37611
37612# Symbols that must always be exported.
37613include_expsyms=$lt_include_expsyms
37614
37615# Commands necessary for linking programs (against libraries) with templates.
37616prelink_cmds=$lt_prelink_cmds
37617
cristyda16f162011-02-19 23:52:17 +000037618# Commands necessary for finishing linking programs.
37619postlink_cmds=$lt_postlink_cmds
37620
cristy73bd4a52010-10-05 11:24:23 +000037621# Specify filename containing input files.
37622file_list_spec=$lt_file_list_spec
37623
37624# How to hardcode a shared library path into an executable.
37625hardcode_action=$hardcode_action
37626
37627# The directories searched by this compiler when creating a shared library.
37628compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37629
37630# Dependencies to place before and after the objects being linked to
37631# create a shared library.
37632predep_objects=$lt_predep_objects
37633postdep_objects=$lt_postdep_objects
37634predeps=$lt_predeps
37635postdeps=$lt_postdeps
37636
37637# The library search path used internally by the compiler when linking
37638# a shared library.
37639compiler_lib_search_path=$lt_compiler_lib_search_path
37640
37641# ### END LIBTOOL CONFIG
37642
37643_LT_EOF
37644
37645 case $host_os in
37646 aix3*)
37647 cat <<\_LT_EOF >> "$cfgfile"
37648# AIX sometimes has problems with the GCC collect2 program. For some
37649# reason, if we set the COLLECT_NAMES environment variable, the problems
37650# vanish in a puff of smoke.
37651if test "X${COLLECT_NAMES+set}" != Xset; then
37652 COLLECT_NAMES=
37653 export COLLECT_NAMES
37654fi
37655_LT_EOF
37656 ;;
37657 esac
37658
37659
37660ltmain="$ac_aux_dir/ltmain.sh"
37661
37662
37663 # We use sed instead of cat because bash on DJGPP gets confused if
37664 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37665 # text mode, it properly converts lines to CR/LF. This bash problem
37666 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037667 sed '$q' "$ltmain" >> "$cfgfile" \
37668 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037669
cristyda16f162011-02-19 23:52:17 +000037670 if test x"$xsi_shell" = xyes; then
37671 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37672func_dirname ()\
37673{\
37674\ case ${1} in\
37675\ */*) func_dirname_result="${1%/*}${2}" ;;\
37676\ * ) func_dirname_result="${3}" ;;\
37677\ esac\
37678} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37679 && mv -f "$cfgfile.tmp" "$cfgfile" \
37680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37681test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037682
37683
cristyda16f162011-02-19 23:52:17 +000037684 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37685func_basename ()\
37686{\
37687\ func_basename_result="${1##*/}"\
37688} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37689 && mv -f "$cfgfile.tmp" "$cfgfile" \
37690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37691test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037692
37693
cristyda16f162011-02-19 23:52:17 +000037694 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37695func_dirname_and_basename ()\
37696{\
37697\ case ${1} in\
37698\ */*) func_dirname_result="${1%/*}${2}" ;;\
37699\ * ) func_dirname_result="${3}" ;;\
37700\ esac\
37701\ func_basename_result="${1##*/}"\
37702} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37703 && mv -f "$cfgfile.tmp" "$cfgfile" \
37704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37705test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037706
cristyda16f162011-02-19 23:52:17 +000037707
37708 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37709func_stripname ()\
37710{\
37711\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37712\ # positional parameters, so assign one to ordinary parameter first.\
37713\ func_stripname_result=${3}\
37714\ func_stripname_result=${func_stripname_result#"${1}"}\
37715\ func_stripname_result=${func_stripname_result%"${2}"}\
37716} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37717 && mv -f "$cfgfile.tmp" "$cfgfile" \
37718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37719test 0 -eq $? || _lt_function_replace_fail=:
37720
37721
37722 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37723func_split_long_opt ()\
37724{\
37725\ func_split_long_opt_name=${1%%=*}\
37726\ func_split_long_opt_arg=${1#*=}\
37727} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37728 && mv -f "$cfgfile.tmp" "$cfgfile" \
37729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37730test 0 -eq $? || _lt_function_replace_fail=:
37731
37732
37733 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37734func_split_short_opt ()\
37735{\
37736\ func_split_short_opt_arg=${1#??}\
37737\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37738} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37739 && mv -f "$cfgfile.tmp" "$cfgfile" \
37740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37741test 0 -eq $? || _lt_function_replace_fail=:
37742
37743
37744 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37745func_lo2o ()\
37746{\
37747\ case ${1} in\
37748\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37749\ *) func_lo2o_result=${1} ;;\
37750\ esac\
37751} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37752 && mv -f "$cfgfile.tmp" "$cfgfile" \
37753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37754test 0 -eq $? || _lt_function_replace_fail=:
37755
37756
37757 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37758func_xform ()\
37759{\
37760 func_xform_result=${1%.*}.lo\
37761} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37762 && mv -f "$cfgfile.tmp" "$cfgfile" \
37763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37764test 0 -eq $? || _lt_function_replace_fail=:
37765
37766
37767 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37768func_arith ()\
37769{\
37770 func_arith_result=$(( $* ))\
37771} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37772 && mv -f "$cfgfile.tmp" "$cfgfile" \
37773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37774test 0 -eq $? || _lt_function_replace_fail=:
37775
37776
37777 sed -e '/^func_len ()$/,/^} # func_len /c\
37778func_len ()\
37779{\
37780 func_len_result=${#1}\
37781} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37782 && mv -f "$cfgfile.tmp" "$cfgfile" \
37783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37784test 0 -eq $? || _lt_function_replace_fail=:
37785
37786fi
37787
37788if test x"$lt_shell_append" = xyes; then
37789 sed -e '/^func_append ()$/,/^} # func_append /c\
37790func_append ()\
37791{\
37792 eval "${1}+=\\${2}"\
37793} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37794 && mv -f "$cfgfile.tmp" "$cfgfile" \
37795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37796test 0 -eq $? || _lt_function_replace_fail=:
37797
37798
37799 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37800func_append_quoted ()\
37801{\
37802\ func_quote_for_eval "${2}"\
37803\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37804} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37805 && mv -f "$cfgfile.tmp" "$cfgfile" \
37806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37807test 0 -eq $? || _lt_function_replace_fail=:
37808
37809
37810 # Save a `func_append' function call where possible by direct use of '+='
37811 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37812 && mv -f "$cfgfile.tmp" "$cfgfile" \
37813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37814 test 0 -eq $? || _lt_function_replace_fail=:
37815else
37816 # Save a `func_append' function call even when '+=' is not available
37817 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37818 && mv -f "$cfgfile.tmp" "$cfgfile" \
37819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37820 test 0 -eq $? || _lt_function_replace_fail=:
37821fi
37822
37823if test x"$_lt_function_replace_fail" = x":"; then
37824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37825$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37826fi
37827
37828
37829 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037830 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37831 chmod +x "$ofile"
37832
37833
37834 cat <<_LT_EOF >> "$ofile"
37835
37836# ### BEGIN LIBTOOL TAG CONFIG: CXX
37837
37838# The linker used to build libraries.
37839LD=$lt_LD_CXX
37840
cristy0c60a692010-11-04 01:09:47 +000037841# How to create reloadable object files.
37842reload_flag=$lt_reload_flag_CXX
37843reload_cmds=$lt_reload_cmds_CXX
37844
cristy73bd4a52010-10-05 11:24:23 +000037845# Commands used to build an old-style archive.
37846old_archive_cmds=$lt_old_archive_cmds_CXX
37847
37848# A language specific compiler.
37849CC=$lt_compiler_CXX
37850
37851# Is the compiler the GNU compiler?
37852with_gcc=$GCC_CXX
37853
37854# Compiler flag to turn off builtin functions.
37855no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37856
cristy73bd4a52010-10-05 11:24:23 +000037857# Additional compiler flags for building library objects.
37858pic_flag=$lt_lt_prog_compiler_pic_CXX
37859
cristyda16f162011-02-19 23:52:17 +000037860# How to pass a linker flag through the compiler.
37861wl=$lt_lt_prog_compiler_wl_CXX
37862
cristy73bd4a52010-10-05 11:24:23 +000037863# Compiler flag to prevent dynamic linking.
37864link_static_flag=$lt_lt_prog_compiler_static_CXX
37865
37866# Does compiler simultaneously support -c and -o options?
37867compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37868
37869# Whether or not to add -lc for building shared libraries.
37870build_libtool_need_lc=$archive_cmds_need_lc_CXX
37871
37872# Whether or not to disallow shared libs when runtime libs are static.
37873allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37874
37875# Compiler flag to allow reflexive dlopens.
37876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37877
37878# Compiler flag to generate shared objects directly from archives.
37879whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37880
37881# Whether the compiler copes with passing no objects directly.
37882compiler_needs_object=$lt_compiler_needs_object_CXX
37883
37884# Create an old-style archive from a shared archive.
37885old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37886
37887# Create a temporary old-style archive to link instead of a shared archive.
37888old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37889
37890# Commands used to build a shared archive.
37891archive_cmds=$lt_archive_cmds_CXX
37892archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37893
37894# Commands used to build a loadable module if different from building
37895# a shared archive.
37896module_cmds=$lt_module_cmds_CXX
37897module_expsym_cmds=$lt_module_expsym_cmds_CXX
37898
37899# Whether we are building with GNU ld or not.
37900with_gnu_ld=$lt_with_gnu_ld_CXX
37901
37902# Flag that allows shared libraries with undefined symbols to be built.
37903allow_undefined_flag=$lt_allow_undefined_flag_CXX
37904
37905# Flag that enforces no undefined symbols.
37906no_undefined_flag=$lt_no_undefined_flag_CXX
37907
37908# Flag to hardcode \$libdir into a binary during linking.
37909# This must work even if \$libdir does not exist
37910hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37911
37912# If ld is used when linking, flag to hardcode \$libdir into a binary
37913# during linking. This must work even if \$libdir does not exist.
37914hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37915
37916# Whether we need a single "-rpath" flag with a separated argument.
37917hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37918
37919# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37920# DIR into the resulting binary.
37921hardcode_direct=$hardcode_direct_CXX
37922
37923# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37924# DIR into the resulting binary and the resulting library dependency is
37925# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37926# library is relocated.
37927hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37928
37929# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37930# into the resulting binary.
37931hardcode_minus_L=$hardcode_minus_L_CXX
37932
37933# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37934# into the resulting binary.
37935hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37936
37937# Set to "yes" if building a shared library automatically hardcodes DIR
37938# into the library and all subsequent libraries and executables linked
37939# against it.
37940hardcode_automatic=$hardcode_automatic_CXX
37941
37942# Set to yes if linker adds runtime paths of dependent libraries
37943# to runtime path list.
37944inherit_rpath=$inherit_rpath_CXX
37945
37946# Whether libtool must link a program against all its dependency libraries.
37947link_all_deplibs=$link_all_deplibs_CXX
37948
cristy73bd4a52010-10-05 11:24:23 +000037949# Set to "yes" if exported symbols are required.
37950always_export_symbols=$always_export_symbols_CXX
37951
37952# The commands to list exported symbols.
37953export_symbols_cmds=$lt_export_symbols_cmds_CXX
37954
37955# Symbols that should not be listed in the preloaded symbols.
37956exclude_expsyms=$lt_exclude_expsyms_CXX
37957
37958# Symbols that must always be exported.
37959include_expsyms=$lt_include_expsyms_CXX
37960
37961# Commands necessary for linking programs (against libraries) with templates.
37962prelink_cmds=$lt_prelink_cmds_CXX
37963
cristyda16f162011-02-19 23:52:17 +000037964# Commands necessary for finishing linking programs.
37965postlink_cmds=$lt_postlink_cmds_CXX
37966
cristy73bd4a52010-10-05 11:24:23 +000037967# Specify filename containing input files.
37968file_list_spec=$lt_file_list_spec_CXX
37969
37970# How to hardcode a shared library path into an executable.
37971hardcode_action=$hardcode_action_CXX
37972
37973# The directories searched by this compiler when creating a shared library.
37974compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37975
37976# Dependencies to place before and after the objects being linked to
37977# create a shared library.
37978predep_objects=$lt_predep_objects_CXX
37979postdep_objects=$lt_postdep_objects_CXX
37980predeps=$lt_predeps_CXX
37981postdeps=$lt_postdeps_CXX
37982
37983# The library search path used internally by the compiler when linking
37984# a shared library.
37985compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37986
37987# ### END LIBTOOL TAG CONFIG: CXX
37988_LT_EOF
37989
37990 ;;
cristy4c08aed2011-07-01 19:47:50 +000037991 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037992 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037993 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37994 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37995
37996 esac
37997done # for ac_tag
37998
37999
cristy8b350f62009-11-15 23:12:43 +000038000as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038001_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038002ac_clean_files=$ac_clean_files_save
38003
38004test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038005 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038006
38007
38008# configure is writing to config.log, and then calls config.status.
38009# config.status does its own redirection, appending to config.log.
38010# Unfortunately, on DOS this fails, as config.log is still kept open
38011# by configure, so config.status won't be able to write to it; its
38012# output is simply discarded. So we exec the FD to /dev/null,
38013# effectively closing config.log, so it can be properly (re)opened and
38014# appended to by config.status. When coming back to configure, we
38015# need to make the FD available again.
38016if test "$no_create" != yes; then
38017 ac_cs_success=:
38018 ac_config_status_args=
38019 test "$silent" = yes &&
38020 ac_config_status_args="$ac_config_status_args --quiet"
38021 exec 5>/dev/null
38022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38023 exec 5>>config.log
38024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38025 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038026 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038027fi
38028if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038030$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38031fi
38032
38033
38034rm -f magick-version
38035
cristy430a7312010-01-21 20:44:04 +000038036result_dejavu_font_dir='none'
38037if test "${dejavu_font_dir}x" != 'x'; then
38038 result_dejavu_font_dir=$dejavu_font_dir
38039fi
38040
cristy3ed852e2009-09-05 21:47:34 +000038041result_ghostscript_font_dir='none'
38042if test "${ghostscript_font_dir}x" != 'x'; then
38043 result_ghostscript_font_dir=$ghostscript_font_dir
38044fi
38045
38046result_windows_font_dir='none'
38047if test "${windows_font_dir}x" != 'x'; then
38048 result_windows_font_dir=${windows_font_dir}
38049fi
38050
cristy09b53e12011-10-14 12:47:22 +000038051{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038052ImageMagick is configured as follows. Please verify that this configuration
38053matches your expectations.
38054
38055Host system type: $host
38056Build system type: $build
38057
38058 Option Value
38059-------------------------------------------------------------------------------
38060Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38061Static libraries --enable-static=$enable_static $libtool_build_static_libs
38062Module support --with-modules=$with_modules $with_modules
38063GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38064Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38065High Dynamic Range Imagery
38066 --enable-hdri=$enable_hdri $enable_hdri
38067
38068Delegate Configuration:
38069BZLIB --with-bzlib=$with_bzlib $have_bzlib
38070Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038071Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038072DJVU --with-djvu=$with_djvu $have_djvu
38073DPS --with-dps=$with_dps $have_dps
38074FFTW --with-fftw=$with_fftw $have_fftw
38075FlashPIX --with-fpx=$with_fpx $have_fpx
38076FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38077FreeType --with-freetype=$with_freetype $have_freetype
38078GhostPCL None $PCLDelegate ($PCLVersion)
38079GhostXPS None $XPSDelegate ($XPSVersion)
38080Ghostscript None $PSDelegate ($GSVersion)
38081Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38082Ghostscript lib --with-gslib=$with_gslib $have_gslib
38083Graphviz --with-gvc=$with_gvc $have_gvc
38084JBIG --with-jbig=$with_jbig $have_jbig
38085JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38086JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038087LCMS v1 --with-lcms=$with_lcms $have_lcms
38088LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038089LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038090LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038091Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38092OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038093PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038094PERL --with-perl=$with_perl $have_perl
38095PNG --with-png=$with_png $have_png
38096RSVG --with-rsvg=$with_rsvg $have_rsvg
38097TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038098WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038099Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38100WMF --with-wmf=$with_wmf $have_wmf
38101X11 --with-x=$with_x $have_x
38102XML --with-xml=$with_xml $have_xml
38103ZLIB --with-zlib=$with_zlib $have_zlib
38104
38105X11 Configuration:
38106 X_CFLAGS = $X_CFLAGS
38107 X_PRE_LIBS = $X_PRE_LIBS
38108 X_LIBS = $X_LIBS
38109 X_EXTRA_LIBS = $X_EXTRA_LIBS
38110
38111Options used to compile and link:
38112 PREFIX = $PREFIX_DIR
38113 EXEC-PREFIX = $EXEC_PREFIX_DIR
38114 VERSION = $PACKAGE_VERSION
38115 CC = $CC
38116 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038117 CPPFLAGS = $MAGICK_CPPFLAGS
38118 PCFLAGS = $MAGICK_PCFLAGS
38119 DEFS = $DEFS
38120 LDFLAGS = $LDFLAGS
38121 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38122 LIBS = $MAGICK_LIBS
38123 CXX = $CXX
38124 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038125 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038126" >&5
cristy09b53e12011-10-14 12:47:22 +000038127$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038128ImageMagick is configured as follows. Please verify that this configuration
38129matches your expectations.
38130
38131Host system type: $host
38132Build system type: $build
38133
38134 Option Value
38135-------------------------------------------------------------------------------
38136Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38137Static libraries --enable-static=$enable_static $libtool_build_static_libs
38138Module support --with-modules=$with_modules $with_modules
38139GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38140Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38141High Dynamic Range Imagery
38142 --enable-hdri=$enable_hdri $enable_hdri
38143
38144Delegate Configuration:
38145BZLIB --with-bzlib=$with_bzlib $have_bzlib
38146Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038147Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038148DJVU --with-djvu=$with_djvu $have_djvu
38149DPS --with-dps=$with_dps $have_dps
38150FFTW --with-fftw=$with_fftw $have_fftw
38151FlashPIX --with-fpx=$with_fpx $have_fpx
38152FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38153FreeType --with-freetype=$with_freetype $have_freetype
38154GhostPCL None $PCLDelegate ($PCLVersion)
38155GhostXPS None $XPSDelegate ($XPSVersion)
38156Ghostscript None $PSDelegate ($GSVersion)
38157Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38158Ghostscript lib --with-gslib=$with_gslib $have_gslib
38159Graphviz --with-gvc=$with_gvc $have_gvc
38160JBIG --with-jbig=$with_jbig $have_jbig
38161JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38162JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038163LCMS v1 --with-lcms=$with_lcms $have_lcms
38164LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038165LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038166LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038167Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38168OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038169PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038170PERL --with-perl=$with_perl $have_perl
38171PNG --with-png=$with_png $have_png
38172RSVG --with-rsvg=$with_rsvg $have_rsvg
38173TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038174WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038175Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38176WMF --with-wmf=$with_wmf $have_wmf
38177X11 --with-x=$with_x $have_x
38178XML --with-xml=$with_xml $have_xml
38179ZLIB --with-zlib=$with_zlib $have_zlib
38180
38181X11 Configuration:
38182 X_CFLAGS = $X_CFLAGS
38183 X_PRE_LIBS = $X_PRE_LIBS
38184 X_LIBS = $X_LIBS
38185 X_EXTRA_LIBS = $X_EXTRA_LIBS
38186
38187Options used to compile and link:
38188 PREFIX = $PREFIX_DIR
38189 EXEC-PREFIX = $EXEC_PREFIX_DIR
38190 VERSION = $PACKAGE_VERSION
38191 CC = $CC
38192 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038193 CPPFLAGS = $MAGICK_CPPFLAGS
38194 PCFLAGS = $MAGICK_PCFLAGS
38195 DEFS = $DEFS
38196 LDFLAGS = $LDFLAGS
38197 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38198 LIBS = $MAGICK_LIBS
38199 CXX = $CXX
38200 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038201 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038202" >&6;}