blob: 7bb5f0eb69bfa2d79f7fb5e9aeb69163ddb7fbe7 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy45dbd322011-03-27 16:40:38 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 6.6.9.
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'
cristy45dbd322011-03-27 16:40:38 +0000576PACKAGE_TARNAME='ImageMagick-6.6.9'
577PACKAGE_VERSION='6.6.9'
578PACKAGE_STRING='ImageMagick 6.6.9'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
582ac_unique_file="magick/MagickCore.h"
583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
724SHARE_CONFIGURE_PATH
cristy45dbd322011-03-27 16:40:38 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726SHARE_PATH
727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
732PERLMAINCC
733XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000734XML_DELEGATE_FALSE
735XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000736xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000737WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000738WMF_DELEGATE_FALSE
739WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000740WEBP_LIBS
741WEBP_DELEGATE_FALSE
742WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000743TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000744TIFF_DELEGATE_FALSE
745TIFF_DELEGATE_TRUE
746CAIRO_DELEGATE_FALSE
747CAIRO_DELEGATE_TRUE
748RSVG_DELEGATE_FALSE
749RSVG_DELEGATE_TRUE
750CAIRO_SVG_LIBS
751CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000752RSVG_LIBS
753RSVG_CFLAGS
754PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755PNG_DELEGATE_FALSE
756PNG_DELEGATE_TRUE
757OPENEXR_DELEGATE_FALSE
758OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000759OPENEXR_LIBS
760OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000761LZMA_LIBS
762LZMA_DELEGATE_FALSE
763LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000764LQR_DELEGATE_FALSE
765LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766LQR_LIBS
767LQR_CFLAGS
768LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000769LCMS_DELEGATE_FALSE
770LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772JP2_DELEGATE_FALSE
773JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775JPEG_DELEGATE_FALSE
776JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778JBIG_DELEGATE_FALSE
779JBIG_DELEGATE_TRUE
780GVC_DELEGATE_FALSE
781GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782GVC_LIBS
783GVC_CFLAGS
784GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785GS_DELEGATE_FALSE
786GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000788FREETYPE_DELEGATE_FALSE
789FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000791FONTCONFIG_DELEGATE_FALSE
792FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793FONTCONFIG_LIBS
794FONTCONFIG_CFLAGS
795FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000796FPX_DELEGATE_FALSE
797FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000799FFTW_DELEGATE_FALSE
800FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802DJVU_DELEGATE_FALSE
803DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805DPS_DELEGATE_FALSE
806DPS_DELEGATE_TRUE
807AUTOTRACE_DELEGATE_FALSE
808AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809AUTOTRACE_LIBS
810AUTOTRACE_CFLAGS
811LIB_DL
812ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813ZLIB_DELEGATE_FALSE
814ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815XEXT_LIBS
816X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817X11_DELEGATE_FALSE
818X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819X_EXTRA_LIBS
820X_LIBS
821X_PRE_LIBS
822X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000823XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000824BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825BZLIB_DELEGATE_FALSE
826BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827CCMALLOCDelegate
828UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829HasUMEM_FALSE
830HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831THREAD_LIBS
832GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833WITH_MAGICK_PLUS_PLUS_FALSE
834WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000836MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000837POW_LIB
838LIBOBJS
839UINTPTR_T
840UINTMAX_T
841UINT64_T
842INT64_T
843UINT32_T
844INT32_T
845UINT16_T
846INT16_T
847UINT8_T
848INT8_T
849LIBRARY_EXTRA_CPPFLAGS
850MODULE_EXTRA_CPPFLAGS
851LIBSTDCLDFLAGS
852PERL_MAKE_OPTIONS
853QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000854MAINT
855MAINTAINER_MODE_FALSE
856MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000857MAGICK_HDRI
858DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000859WITH_LTDL_FALSE
860WITH_LTDL_TRUE
861WITH_MODULES_FALSE
862WITH_MODULES_TRUE
863WITH_SHARED_LIBS_FALSE
864WITH_SHARED_LIBS_TRUE
865LTDLOPEN
866LT_CONFIG_H
867CONVENIENCE_LTDL_FALSE
868CONVENIENCE_LTDL_TRUE
869INSTALL_LTDL_FALSE
870INSTALL_LTDL_TRUE
871ARGZ_H
872sys_symbol_underscore
873LIBADD_DL
874LT_DLPREOPEN
875LIBADD_DLD_LINK
876LIBADD_SHL_LOAD
877LIBADD_DLOPEN
878LT_DLLOADERS
879INCLTDL
880LTDLINCL
881LTDLDEPS
882LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000883LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000884CXXCPP
885OTOOL64
886OTOOL
887LIPO
888NMEDIT
889DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000890MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000891RANLIB
cristyda16f162011-02-19 23:52:17 +0000892ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000893AR
894NM
895ac_ct_DUMPBIN
896DUMPBIN
897LIBTOOL
898OBJDUMP
899DLLTOOL
900AS
cristy3ed852e2009-09-05 21:47:34 +0000901LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000902CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000903CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000904OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000905PTHREAD_CFLAGS
906PTHREAD_LIBS
907PTHREAD_CC
908ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000909WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000910USING_CL_FALSE
911USING_CL_TRUE
912CYGWIN_BUILD_FALSE
913CYGWIN_BUILD_TRUE
914WIN32_NATIVE_BUILD_FALSE
915WIN32_NATIVE_BUILD_TRUE
916WINGDI32_DELEGATE_FALSE
917WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000919PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000920LN_S
cristy3ed852e2009-09-05 21:47:34 +0000921LD
cristy73bd4a52010-10-05 11:24:23 +0000922FGREP
923SED
924am__fastdepCXX_FALSE
925am__fastdepCXX_TRUE
926CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000927ac_ct_CXX
928CXXFLAGS
929CXX
cristya0b81c32010-01-22 02:54:33 +0000930EGREP
931GREP
932CPP
cristy73bd4a52010-10-05 11:24:23 +0000933am__fastdepCC_FALSE
934am__fastdepCC_TRUE
935CCDEPMODE
936AMDEPBACKSLASH
937AMDEP_FALSE
938AMDEP_TRUE
939am__quote
940am__include
941DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000942OBJEXT
943EXEEXT
944ac_ct_CC
945CPPFLAGS
946LDFLAGS
947CFLAGS
948CC
949DIRSEP
950MAGICK_FILTER_MODULE_PATH
951MAGICK_CONFIGURE_BUILD_PATH
952MAGICK_CONFIGURE_SRC_PATH
953MAGICK_CODER_MODULE_PATH
954MAN_DIR
955INFO_DIR
956PERSISTINCLUDE_DIR
957INCLUDE_DIR
958LIB_DIR
959LOCALSTATE_DIR
960SHAREDSTATE_DIR
961SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000962DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000963DATA_DIR
964LIBEXEC_DIR
965SBIN_DIR
966BIN_DIR
967EXEC_PREFIX_DIR
968PREFIX_DIR
969CONFIG_STATUS_DEPENDENCIES
970MAGICK_LIB_VERSION_NUMBER
971MAGICK_LIB_VERSION_TEXT
972MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000973AM_BACKSLASH
974AM_DEFAULT_VERBOSITY
975am__untar
976am__tar
977AMTAR
978am__leading_dot
979SET_MAKE
980AWK
981mkdir_p
982MKDIR_P
983INSTALL_STRIP_PROGRAM
984STRIP
985install_sh
986MAKEINFO
987AUTOHEADER
988AUTOMAKE
989AUTOCONF
990ACLOCAL
991VERSION
992PACKAGE
993CYGPATH_W
994am__isrc
995INSTALL_DATA
996INSTALL_SCRIPT
997INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000998PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000999PACKAGE_RELEASE_DATE
1000PACKAGE_LIB_VERSION_NUMBER
1001PACKAGE_LIB_VERSION
1002PACKAGE_CHANGE_DATE
1003PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001004MAGICK_LIBRARY_VERSION_INFO
1005MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001006MAGICK_LIBRARY_AGE
1007MAGICK_LIBRARY_REVISION
1008MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001009MAGICK_TARGET_OS
1010MAGICK_TARGET_VENDOR
1011MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001012target_os
1013target_vendor
1014target_cpu
1015target
1016host_os
1017host_vendor
1018host_cpu
1019host
1020build_os
1021build_vendor
1022build_cpu
1023build
1024CONFIGURE_ARGS
1025DISTCHECK_CONFIG_FLAGS
1026target_alias
1027host_alias
1028build_alias
1029LIBS
1030ECHO_T
1031ECHO_N
1032ECHO_C
1033DEFS
1034mandir
1035localedir
1036libdir
1037psdir
1038pdfdir
1039dvidir
1040htmldir
1041infodir
1042docdir
1043oldincludedir
1044includedir
1045localstatedir
1046sharedstatedir
1047sysconfdir
1048datadir
1049datarootdir
1050libexecdir
1051sbindir
1052bindir
1053program_transform_name
1054prefix
1055exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001056PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001057PACKAGE_BUGREPORT
1058PACKAGE_STRING
1059PACKAGE_VERSION
1060PACKAGE_TARNAME
1061PACKAGE_NAME
1062PATH_SEPARATOR
1063SHELL'
1064ac_subst_files=''
1065ac_user_opts='
1066enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001067enable_silent_rules
1068enable_dependency_tracking
1069with_gnu_ld
1070with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001071enable_bounds_checking
1072enable_osx_universal_binary
1073with_threads
1074enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001075enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001076enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001077enable_shared
1078enable_static
1079with_pic
1080enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001081with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001082enable_libtool_lock
1083with_included_ltdl
1084with_ltdl_include
1085with_ltdl_lib
1086enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001087with_modules
1088enable_delegate_build
1089enable_deprecated
1090enable_installed
1091enable_cipher
1092enable_embeddable
1093enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001094enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001095enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001096enable_ccmalloc
1097enable_efence
1098enable_prof
1099enable_gprof
1100enable_gcov
1101with_method_prefix
1102with_quantum_depth
1103with_cache
1104with_frozenpaths
1105with_magick_plus_plus
1106with_perl
1107with_perl_options
1108with_umem
1109with_libstdc
1110with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001111with_x
cristy3ed852e2009-09-05 21:47:34 +00001112with_zlib
1113with_autotrace
1114with_dps
1115with_djvu
cristy430a7312010-01-21 20:44:04 +00001116with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001117with_fftw
1118with_fpx
1119with_fontconfig
1120with_freetype
1121with_gslib
1122with_fontpath
1123with_gs_font_dir
1124with_gvc
1125with_jbig
1126with_jpeg
1127with_jp2
1128with_lcms
cristy71203402010-06-18 13:12:03 +00001129with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001130with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001131with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001132with_openexr
1133with_png
1134with_rsvg
1135with_tiff
cristyb1860752011-03-14 00:27:46 +00001136with_webp
cristy3ed852e2009-09-05 21:47:34 +00001137with_windows_font_dir
1138with_wmf
1139with_xml
1140'
1141 ac_precious_vars='build_alias
1142host_alias
1143target_alias
1144CC
1145CFLAGS
1146LDFLAGS
1147LIBS
1148CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001149CPP
cristy3ed852e2009-09-05 21:47:34 +00001150CXX
1151CXXFLAGS
1152CCC
cristy73bd4a52010-10-05 11:24:23 +00001153PKG_CONFIG
1154CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001155XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001156AUTOTRACE_CFLAGS
1157AUTOTRACE_LIBS
1158FONTCONFIG_CFLAGS
1159FONTCONFIG_LIBS
1160GVC_CFLAGS
1161GVC_LIBS
1162LQR_CFLAGS
1163LQR_LIBS
1164OPENEXR_CFLAGS
1165OPENEXR_LIBS
1166RSVG_CFLAGS
1167RSVG_LIBS
1168CAIRO_SVG_CFLAGS
1169CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001170
1171
1172# Initialize some variables set by options.
1173ac_init_help=
1174ac_init_version=false
1175ac_unrecognized_opts=
1176ac_unrecognized_sep=
1177# The variables have the same names as the options, with
1178# dashes changed to underlines.
1179cache_file=/dev/null
1180exec_prefix=NONE
1181no_create=
1182no_recursion=
1183prefix=NONE
1184program_prefix=NONE
1185program_suffix=NONE
1186program_transform_name=s,x,x,
1187silent=
1188site=
1189srcdir=
1190verbose=
1191x_includes=NONE
1192x_libraries=NONE
1193
1194# Installation directory options.
1195# These are left unexpanded so users can "make install exec_prefix=/foo"
1196# and all the variables that are supposed to be based on exec_prefix
1197# by default will actually change.
1198# Use braces instead of parens because sh, perl, etc. also accept them.
1199# (The list follows the same order as the GNU Coding Standards.)
1200bindir='${exec_prefix}/bin'
1201sbindir='${exec_prefix}/sbin'
1202libexecdir='${exec_prefix}/libexec'
1203datarootdir='${prefix}/share'
1204datadir='${datarootdir}'
1205sysconfdir='${prefix}/etc'
1206sharedstatedir='${prefix}/com'
1207localstatedir='${prefix}/var'
1208includedir='${prefix}/include'
1209oldincludedir='/usr/include'
1210docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1211infodir='${datarootdir}/info'
1212htmldir='${docdir}'
1213dvidir='${docdir}'
1214pdfdir='${docdir}'
1215psdir='${docdir}'
1216libdir='${exec_prefix}/lib'
1217localedir='${datarootdir}/locale'
1218mandir='${datarootdir}/man'
1219
1220ac_prev=
1221ac_dashdash=
1222for ac_option
1223do
1224 # If the previous option needs an argument, assign it.
1225 if test -n "$ac_prev"; then
1226 eval $ac_prev=\$ac_option
1227 ac_prev=
1228 continue
1229 fi
1230
1231 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001232 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1233 *=) ac_optarg= ;;
1234 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001235 esac
1236
1237 # Accept the important Cygnus configure options, so we can diagnose typos.
1238
1239 case $ac_dashdash$ac_option in
1240 --)
1241 ac_dashdash=yes ;;
1242
1243 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1244 ac_prev=bindir ;;
1245 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1246 bindir=$ac_optarg ;;
1247
1248 -build | --build | --buil | --bui | --bu)
1249 ac_prev=build_alias ;;
1250 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1251 build_alias=$ac_optarg ;;
1252
1253 -cache-file | --cache-file | --cache-fil | --cache-fi \
1254 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1255 ac_prev=cache_file ;;
1256 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1257 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1258 cache_file=$ac_optarg ;;
1259
1260 --config-cache | -C)
1261 cache_file=config.cache ;;
1262
1263 -datadir | --datadir | --datadi | --datad)
1264 ac_prev=datadir ;;
1265 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1266 datadir=$ac_optarg ;;
1267
1268 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1269 | --dataroo | --dataro | --datar)
1270 ac_prev=datarootdir ;;
1271 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1272 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1273 datarootdir=$ac_optarg ;;
1274
1275 -disable-* | --disable-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001279 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"enable_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval enable_$ac_useropt=no ;;
1290
1291 -docdir | --docdir | --docdi | --doc | --do)
1292 ac_prev=docdir ;;
1293 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1294 docdir=$ac_optarg ;;
1295
1296 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1297 ac_prev=dvidir ;;
1298 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1299 dvidir=$ac_optarg ;;
1300
1301 -enable-* | --enable-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001305 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"enable_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval enable_$ac_useropt=\$ac_optarg ;;
1316
1317 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1318 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1319 | --exec | --exe | --ex)
1320 ac_prev=exec_prefix ;;
1321 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1322 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1323 | --exec=* | --exe=* | --ex=*)
1324 exec_prefix=$ac_optarg ;;
1325
1326 -gas | --gas | --ga | --g)
1327 # Obsolete; use --with-gas.
1328 with_gas=yes ;;
1329
1330 -help | --help | --hel | --he | -h)
1331 ac_init_help=long ;;
1332 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1333 ac_init_help=recursive ;;
1334 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1335 ac_init_help=short ;;
1336
1337 -host | --host | --hos | --ho)
1338 ac_prev=host_alias ;;
1339 -host=* | --host=* | --hos=* | --ho=*)
1340 host_alias=$ac_optarg ;;
1341
1342 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1343 ac_prev=htmldir ;;
1344 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1345 | --ht=*)
1346 htmldir=$ac_optarg ;;
1347
1348 -includedir | --includedir | --includedi | --included | --include \
1349 | --includ | --inclu | --incl | --inc)
1350 ac_prev=includedir ;;
1351 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1352 | --includ=* | --inclu=* | --incl=* | --inc=*)
1353 includedir=$ac_optarg ;;
1354
1355 -infodir | --infodir | --infodi | --infod | --info | --inf)
1356 ac_prev=infodir ;;
1357 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1358 infodir=$ac_optarg ;;
1359
1360 -libdir | --libdir | --libdi | --libd)
1361 ac_prev=libdir ;;
1362 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1363 libdir=$ac_optarg ;;
1364
1365 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1366 | --libexe | --libex | --libe)
1367 ac_prev=libexecdir ;;
1368 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1369 | --libexe=* | --libex=* | --libe=*)
1370 libexecdir=$ac_optarg ;;
1371
1372 -localedir | --localedir | --localedi | --localed | --locale)
1373 ac_prev=localedir ;;
1374 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1375 localedir=$ac_optarg ;;
1376
1377 -localstatedir | --localstatedir | --localstatedi | --localstated \
1378 | --localstate | --localstat | --localsta | --localst | --locals)
1379 ac_prev=localstatedir ;;
1380 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1381 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1382 localstatedir=$ac_optarg ;;
1383
1384 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1385 ac_prev=mandir ;;
1386 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1387 mandir=$ac_optarg ;;
1388
1389 -nfp | --nfp | --nf)
1390 # Obsolete; use --without-fp.
1391 with_fp=no ;;
1392
1393 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1394 | --no-cr | --no-c | -n)
1395 no_create=yes ;;
1396
1397 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1398 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1399 no_recursion=yes ;;
1400
1401 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1402 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1403 | --oldin | --oldi | --old | --ol | --o)
1404 ac_prev=oldincludedir ;;
1405 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1406 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1407 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1408 oldincludedir=$ac_optarg ;;
1409
1410 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1411 ac_prev=prefix ;;
1412 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1413 prefix=$ac_optarg ;;
1414
1415 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1416 | --program-pre | --program-pr | --program-p)
1417 ac_prev=program_prefix ;;
1418 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1419 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1420 program_prefix=$ac_optarg ;;
1421
1422 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1423 | --program-suf | --program-su | --program-s)
1424 ac_prev=program_suffix ;;
1425 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1426 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1427 program_suffix=$ac_optarg ;;
1428
1429 -program-transform-name | --program-transform-name \
1430 | --program-transform-nam | --program-transform-na \
1431 | --program-transform-n | --program-transform- \
1432 | --program-transform | --program-transfor \
1433 | --program-transfo | --program-transf \
1434 | --program-trans | --program-tran \
1435 | --progr-tra | --program-tr | --program-t)
1436 ac_prev=program_transform_name ;;
1437 -program-transform-name=* | --program-transform-name=* \
1438 | --program-transform-nam=* | --program-transform-na=* \
1439 | --program-transform-n=* | --program-transform-=* \
1440 | --program-transform=* | --program-transfor=* \
1441 | --program-transfo=* | --program-transf=* \
1442 | --program-trans=* | --program-tran=* \
1443 | --progr-tra=* | --program-tr=* | --program-t=*)
1444 program_transform_name=$ac_optarg ;;
1445
1446 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1447 ac_prev=pdfdir ;;
1448 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1449 pdfdir=$ac_optarg ;;
1450
1451 -psdir | --psdir | --psdi | --psd | --ps)
1452 ac_prev=psdir ;;
1453 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1454 psdir=$ac_optarg ;;
1455
1456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1457 | -silent | --silent | --silen | --sile | --sil)
1458 silent=yes ;;
1459
1460 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1461 ac_prev=sbindir ;;
1462 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1463 | --sbi=* | --sb=*)
1464 sbindir=$ac_optarg ;;
1465
1466 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1467 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1468 | --sharedst | --shareds | --shared | --share | --shar \
1469 | --sha | --sh)
1470 ac_prev=sharedstatedir ;;
1471 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1472 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1473 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1474 | --sha=* | --sh=*)
1475 sharedstatedir=$ac_optarg ;;
1476
1477 -site | --site | --sit)
1478 ac_prev=site ;;
1479 -site=* | --site=* | --sit=*)
1480 site=$ac_optarg ;;
1481
1482 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1483 ac_prev=srcdir ;;
1484 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1485 srcdir=$ac_optarg ;;
1486
1487 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1488 | --syscon | --sysco | --sysc | --sys | --sy)
1489 ac_prev=sysconfdir ;;
1490 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1491 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1492 sysconfdir=$ac_optarg ;;
1493
1494 -target | --target | --targe | --targ | --tar | --ta | --t)
1495 ac_prev=target_alias ;;
1496 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1497 target_alias=$ac_optarg ;;
1498
1499 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1500 verbose=yes ;;
1501
1502 -version | --version | --versio | --versi | --vers | -V)
1503 ac_init_version=: ;;
1504
1505 -with-* | --with-*)
1506 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1507 # Reject names that are not valid shell variable names.
1508 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001509 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001510 ac_useropt_orig=$ac_useropt
1511 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1512 case $ac_user_opts in
1513 *"
1514"with_$ac_useropt"
1515"*) ;;
1516 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1517 ac_unrecognized_sep=', ';;
1518 esac
1519 eval with_$ac_useropt=\$ac_optarg ;;
1520
1521 -without-* | --without-*)
1522 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1533 ac_unrecognized_sep=', ';;
1534 esac
1535 eval with_$ac_useropt=no ;;
1536
1537 --x)
1538 # Obsolete; use --with-x.
1539 with_x=yes ;;
1540
1541 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1542 | --x-incl | --x-inc | --x-in | --x-i)
1543 ac_prev=x_includes ;;
1544 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1545 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1546 x_includes=$ac_optarg ;;
1547
1548 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1549 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1550 ac_prev=x_libraries ;;
1551 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1552 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1553 x_libraries=$ac_optarg ;;
1554
cristy98dddb52010-11-04 00:30:15 +00001555 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1556Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001557 ;;
1558
1559 *=*)
1560 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1561 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001562 case $ac_envvar in #(
1563 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001564 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001565 esac
cristy3ed852e2009-09-05 21:47:34 +00001566 eval $ac_envvar=\$ac_optarg
1567 export $ac_envvar ;;
1568
1569 *)
1570 # FIXME: should be removed in autoconf 3.0.
1571 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1572 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1573 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001574 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001575 ;;
1576
1577 esac
1578done
1579
1580if test -n "$ac_prev"; then
1581 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001582 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001583fi
1584
1585if test -n "$ac_unrecognized_opts"; then
1586 case $enable_option_checking in
1587 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001588 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001589 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1590 esac
1591fi
1592
1593# Check all directory arguments for consistency.
1594for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1595 datadir sysconfdir sharedstatedir localstatedir includedir \
1596 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1597 libdir localedir mandir
1598do
1599 eval ac_val=\$$ac_var
1600 # Remove trailing slashes.
1601 case $ac_val in
1602 */ )
1603 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1604 eval $ac_var=\$ac_val;;
1605 esac
1606 # Be sure to have absolute directory names.
1607 case $ac_val in
1608 [\\/$]* | ?:[\\/]* ) continue;;
1609 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1610 esac
cristy98dddb52010-11-04 00:30:15 +00001611 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001612done
1613
1614# There might be people who depend on the old broken behavior: `$host'
1615# used to hold the argument of --host etc.
1616# FIXME: To remove some day.
1617build=$build_alias
1618host=$host_alias
1619target=$target_alias
1620
1621# FIXME: To remove some day.
1622if test "x$host_alias" != x; then
1623 if test "x$build_alias" = x; then
1624 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001625 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1626 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001627 elif test "x$build_alias" != "x$host_alias"; then
1628 cross_compiling=yes
1629 fi
1630fi
1631
1632ac_tool_prefix=
1633test -n "$host_alias" && ac_tool_prefix=$host_alias-
1634
1635test "$silent" = yes && exec 6>/dev/null
1636
1637
1638ac_pwd=`pwd` && test -n "$ac_pwd" &&
1639ac_ls_di=`ls -di .` &&
1640ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001641 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001642test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001643 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001644
1645
1646# Find the source files, if location was not specified.
1647if test -z "$srcdir"; then
1648 ac_srcdir_defaulted=yes
1649 # Try the directory containing this script, then the parent directory.
1650 ac_confdir=`$as_dirname -- "$as_myself" ||
1651$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1652 X"$as_myself" : 'X\(//\)[^/]' \| \
1653 X"$as_myself" : 'X\(//\)$' \| \
1654 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1655$as_echo X"$as_myself" |
1656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1657 s//\1/
1658 q
1659 }
1660 /^X\(\/\/\)[^/].*/{
1661 s//\1/
1662 q
1663 }
1664 /^X\(\/\/\)$/{
1665 s//\1/
1666 q
1667 }
1668 /^X\(\/\).*/{
1669 s//\1/
1670 q
1671 }
1672 s/.*/./; q'`
1673 srcdir=$ac_confdir
1674 if test ! -r "$srcdir/$ac_unique_file"; then
1675 srcdir=..
1676 fi
1677else
1678 ac_srcdir_defaulted=no
1679fi
1680if test ! -r "$srcdir/$ac_unique_file"; then
1681 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001682 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001683fi
1684ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1685ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001686 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001687 pwd)`
1688# When building in place, set srcdir=.
1689if test "$ac_abs_confdir" = "$ac_pwd"; then
1690 srcdir=.
1691fi
1692# Remove unnecessary trailing slashes from srcdir.
1693# Double slashes in file names in object file debugging info
1694# mess up M-x gdb in Emacs.
1695case $srcdir in
1696*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1697esac
1698for ac_var in $ac_precious_vars; do
1699 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1700 eval ac_env_${ac_var}_value=\$${ac_var}
1701 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1702 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1703done
1704
1705#
1706# Report the --help message.
1707#
1708if test "$ac_init_help" = "long"; then
1709 # Omit some internal or obsolete options to make the list less imposing.
1710 # This message is too long to be a string in the A/UX 3.1 sh.
1711 cat <<_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001712\`configure' configures ImageMagick 6.6.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001713
1714Usage: $0 [OPTION]... [VAR=VALUE]...
1715
1716To assign environment variables (e.g., CC, CFLAGS...), specify them as
1717VAR=VALUE. See below for descriptions of some of the useful variables.
1718
1719Defaults for the options are specified in brackets.
1720
1721Configuration:
1722 -h, --help display this help and exit
1723 --help=short display options specific to this package
1724 --help=recursive display the short help of all the included packages
1725 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001726 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001727 --cache-file=FILE cache test results in FILE [disabled]
1728 -C, --config-cache alias for \`--cache-file=config.cache'
1729 -n, --no-create do not create output files
1730 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1731
1732Installation directories:
1733 --prefix=PREFIX install architecture-independent files in PREFIX
1734 [$ac_default_prefix]
1735 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1736 [PREFIX]
1737
1738By default, \`make install' will install all the files in
1739\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1740an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1741for instance \`--prefix=\$HOME'.
1742
1743For better control, use the options below.
1744
1745Fine tuning of the installation directories:
1746 --bindir=DIR user executables [EPREFIX/bin]
1747 --sbindir=DIR system admin executables [EPREFIX/sbin]
1748 --libexecdir=DIR program executables [EPREFIX/libexec]
1749 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1750 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1751 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1752 --libdir=DIR object code libraries [EPREFIX/lib]
1753 --includedir=DIR C header files [PREFIX/include]
1754 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1755 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1756 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1757 --infodir=DIR info documentation [DATAROOTDIR/info]
1758 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1759 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001760 --docdir=DIR documentation root
cristy45dbd322011-03-27 16:40:38 +00001761 [DATAROOTDIR/doc/ImageMagick-6.6.9]
cristy3ed852e2009-09-05 21:47:34 +00001762 --htmldir=DIR html documentation [DOCDIR]
1763 --dvidir=DIR dvi documentation [DOCDIR]
1764 --pdfdir=DIR pdf documentation [DOCDIR]
1765 --psdir=DIR ps documentation [DOCDIR]
1766_ACEOF
1767
1768 cat <<\_ACEOF
1769
cristy73bd4a52010-10-05 11:24:23 +00001770Program names:
1771 --program-prefix=PREFIX prepend PREFIX to installed program names
1772 --program-suffix=SUFFIX append SUFFIX to installed program names
1773 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1774
cristy3ed852e2009-09-05 21:47:34 +00001775X features:
1776 --x-includes=DIR X include files are in DIR
1777 --x-libraries=DIR X library files are in DIR
1778
1779System types:
1780 --build=BUILD configure for building on BUILD [guessed]
1781 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1782 --target=TARGET configure for building compilers for TARGET [HOST]
1783_ACEOF
1784fi
1785
1786if test -n "$ac_init_help"; then
1787 case $ac_init_help in
cristy45dbd322011-03-27 16:40:38 +00001788 short | recursive ) echo "Configuration of ImageMagick 6.6.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001789 esac
1790 cat <<\_ACEOF
1791
1792Optional Features:
1793 --disable-option-checking ignore unrecognized --enable/--with options
1794 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1795 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001796 --enable-silent-rules less verbose build output (undo: `make V=1')
1797 --disable-silent-rules verbose build output (undo: `make V=0')
1798 --disable-dependency-tracking speeds up one-time build
1799 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001800 --bounds-checking enable run-time bounds-checking
1801 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001802 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001803 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001804 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001805 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001806 --enable-shared[=PKGS] build shared libraries [default=yes]
1807 --enable-static[=PKGS] build static libraries [default=yes]
1808 --enable-fast-install[=PKGS]
1809 optimize for fast installation [default=yes]
1810 --disable-libtool-lock avoid locking (might break parallel builds)
1811 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001812 --enable-delegate-build look for delegate libraries in build directory
1813 --disable-deprecated exclude deprecated methods in MagickCore and
1814 MagickWand API's
1815 --disable-installed Formally install ImageMagick under PREFIX
1816 --disable-cipher disable enciphering and deciphering image pixels
1817 --enable-embeddable enable self-contained, embeddable,
1818 zero-configuration ImageMagick
1819 --enable-hdri accurately represent the wide range of intensity
1820 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001821 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001822 --enable-maintainer-mode enable make rules and dependencies not useful
1823 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001824 --enable-ccmalloc enable 'ccmalloc' memory debug support
1825 --enable-efence enable 'efence' memory debug support
1826 --enable-prof enable 'prof' profiling support
1827 --enable-gprof enable 'gprof' profiling support
1828 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001829 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001830
1831Optional Packages:
1832 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1833 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001834 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1835 --with-dmalloc use dmalloc, as in
1836 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001837 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001838 --with-pic try to use only PIC/non-PIC objects [default=use
1839 both]
cristyda16f162011-02-19 23:52:17 +00001840 --with-sysroot=DIR Search for dependent libraries within DIR
1841 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001842 --with-included-ltdl use the GNU ltdl sources included here
1843 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1844 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001845 --with-modules enable building dynamically loadable modules
1846 --with-method-prefix=PREFIX
1847 prefix MagickCore API methods
1848 --with-quantum-depth=DEPTH
1849 number of bits in a pixel quantum (default 16)
1850 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1851 memory)
1852 --with-frozenpaths freeze delegate paths
1853 --without-magick-plus-plus
1854 disable build/install of Magick++
1855 --with-perl enable build/install of PerlMagick
1856 --with-perl-options=OPTIONS
1857 options to pass on command-line when generating
1858 PerlMagick's build file
1859 --with-umem enable umem memory allocation library support
1860 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1861 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001862 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001863 --without-zlib disable ZLIB support
1864 --with-autotrace enable autotrace support
1865 --without-dps disable Display Postscript support
1866 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001867 --with-dejavu-font-dir=DIR
1868 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001869 --without-fftw disable FFTW support
1870 --without-fpx disable FlashPIX support
1871 --without-fontconfig disable fontconfig support
1872 --without-freetype disable Freetype support
1873 --without-gslib enable Ghostscript library support
1874 --with-fontpath=DIR prepend to default font search path
1875 --with-gs-font-dir=DIR Ghostscript font directory
1876 --without-gvc disable GVC support
1877 --without-jbig disable JBIG support
1878 --without-jpeg disable JPEG support
1879 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001880 --without-lcms disable lcms (v1.1X) support
1881 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001882 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001883 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001884 --without-openexr disable OpenEXR support
1885 --without-png disable PNG support
1886 --without-rsvg disable RSVG support
1887 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001888 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001889 --with-windows-font-dir=DIR
1890 directory containing MS-Windows fonts
1891 --without-wmf disable WMF support
1892 --without-xml disable XML support
1893
1894Some influential environment variables:
1895 CC C compiler command
1896 CFLAGS C compiler flags
1897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1898 nonstandard directory <lib dir>
1899 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001900 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001901 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001902 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001903 CXX C++ compiler command
1904 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001905 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001906 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001907 XMKMF Path to xmkmf, Makefile generator for X Window System
1908 AUTOTRACE_CFLAGS
1909 C compiler flags for AUTOTRACE, overriding pkg-config
1910 AUTOTRACE_LIBS
1911 linker flags for AUTOTRACE, overriding pkg-config
1912 FONTCONFIG_CFLAGS
1913 C compiler flags for FONTCONFIG, overriding pkg-config
1914 FONTCONFIG_LIBS
1915 linker flags for FONTCONFIG, overriding pkg-config
1916 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1917 GVC_LIBS linker flags for GVC, overriding pkg-config
1918 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1919 LQR_LIBS linker flags for LQR, overriding pkg-config
1920 OPENEXR_CFLAGS
1921 C compiler flags for OPENEXR, overriding pkg-config
1922 OPENEXR_LIBS
1923 linker flags for OPENEXR, overriding pkg-config
1924 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1925 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1926 CAIRO_SVG_CFLAGS
1927 C compiler flags for CAIRO_SVG, overriding pkg-config
1928 CAIRO_SVG_LIBS
1929 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001930
1931Use these variables to override the choices made by `configure' or to help
1932it to find libraries and programs with nonstandard names/locations.
1933
1934Report bugs to <http://www.imagemagick.org>.
1935_ACEOF
1936ac_status=$?
1937fi
1938
1939if test "$ac_init_help" = "recursive"; then
1940 # If there are subdirs, report their specific --help.
1941 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1942 test -d "$ac_dir" ||
1943 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1944 continue
1945 ac_builddir=.
1946
1947case "$ac_dir" in
1948.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1949*)
1950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1951 # A ".." for each directory in $ac_dir_suffix.
1952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1953 case $ac_top_builddir_sub in
1954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1956 esac ;;
1957esac
1958ac_abs_top_builddir=$ac_pwd
1959ac_abs_builddir=$ac_pwd$ac_dir_suffix
1960# for backward compatibility:
1961ac_top_builddir=$ac_top_build_prefix
1962
1963case $srcdir in
1964 .) # We are building in place.
1965 ac_srcdir=.
1966 ac_top_srcdir=$ac_top_builddir_sub
1967 ac_abs_top_srcdir=$ac_pwd ;;
1968 [\\/]* | ?:[\\/]* ) # Absolute name.
1969 ac_srcdir=$srcdir$ac_dir_suffix;
1970 ac_top_srcdir=$srcdir
1971 ac_abs_top_srcdir=$srcdir ;;
1972 *) # Relative name.
1973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1974 ac_top_srcdir=$ac_top_build_prefix$srcdir
1975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1976esac
1977ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1978
1979 cd "$ac_dir" || { ac_status=$?; continue; }
1980 # Check for guested configure.
1981 if test -f "$ac_srcdir/configure.gnu"; then
1982 echo &&
1983 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1984 elif test -f "$ac_srcdir/configure"; then
1985 echo &&
1986 $SHELL "$ac_srcdir/configure" --help=recursive
1987 else
1988 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1989 fi || ac_status=$?
1990 cd "$ac_pwd" || { ac_status=$?; break; }
1991 done
1992fi
1993
1994test -n "$ac_init_help" && exit $ac_status
1995if $ac_init_version; then
1996 cat <<\_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001997ImageMagick configure 6.6.9
cristyda16f162011-02-19 23:52:17 +00001998generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00001999
cristy98dddb52010-11-04 00:30:15 +00002000Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002001This configure script is free software; the Free Software Foundation
2002gives unlimited permission to copy, distribute and modify it.
2003_ACEOF
2004 exit
2005fi
cristy8b350f62009-11-15 23:12:43 +00002006
2007## ------------------------ ##
2008## Autoconf initialization. ##
2009## ------------------------ ##
2010
2011# ac_fn_c_try_compile LINENO
2012# --------------------------
2013# Try to compile conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_c_try_compile ()
2015{
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 rm -f conftest.$ac_objext
2018 if { { ac_try="$ac_compile"
2019case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_compile") 2>conftest.err
2026 ac_status=$?
2027 if test -s conftest.err; then
2028 grep -v '^ *+' conftest.err >conftest.er1
2029 cat conftest.er1 >&5
2030 mv -f conftest.er1 conftest.err
2031 fi
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && {
2034 test -z "$ac_c_werror_flag" ||
2035 test ! -s conftest.err
2036 } && test -s conftest.$ac_objext; then :
2037 ac_retval=0
2038else
2039 $as_echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 ac_retval=1
2043fi
cristyda16f162011-02-19 23:52:17 +00002044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002045 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002046
2047} # ac_fn_c_try_compile
2048
cristy95646052009-11-28 23:05:30 +00002049# ac_fn_c_try_cpp LINENO
2050# ----------------------
2051# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2052ac_fn_c_try_cpp ()
2053{
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_cpp conftest.$ac_ext"
2056case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2063 ac_status=$?
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2068 fi
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002070 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2072 test ! -s conftest.err
2073 }; then :
2074 ac_retval=0
2075else
2076 $as_echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_retval=1
2080fi
cristyda16f162011-02-19 23:52:17 +00002081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002082 as_fn_set_status $ac_retval
2083
2084} # ac_fn_c_try_cpp
2085
cristy8b350f62009-11-15 23:12:43 +00002086# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2087# -------------------------------------------------------
2088# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2089# the include files in INCLUDES and setting the cache variable VAR
2090# accordingly.
2091ac_fn_c_check_header_mongrel ()
2092{
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002094 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002097if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002098 $as_echo_n "(cached) " >&6
2099fi
2100eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102$as_echo "$ac_res" >&6; }
2103else
2104 # Is the header compilable?
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2106$as_echo_n "checking $2 usability... " >&6; }
2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110#include <$2>
2111_ACEOF
2112if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_header_compiler=yes
2114else
2115 ac_header_compiler=no
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2119$as_echo "$ac_header_compiler" >&6; }
2120
2121# Is the header present?
2122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2123$as_echo_n "checking $2 presence... " >&6; }
2124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126#include <$2>
2127_ACEOF
2128if ac_fn_c_try_cpp "$LINENO"; then :
2129 ac_header_preproc=yes
2130else
2131 ac_header_preproc=no
2132fi
cristyda16f162011-02-19 23:52:17 +00002133rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2135$as_echo "$ac_header_preproc" >&6; }
2136
2137# So? What about this header?
2138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2139 yes:no: )
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2141$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2143$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2144 ;;
2145 no:yes:* )
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2147$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2149$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2151$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2153$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2155$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002156( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002157## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002158## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002159 ) | sed "s/^/$as_me: WARNING: /" >&2
2160 ;;
2161esac
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002164if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002165 $as_echo_n "(cached) " >&6
2166else
2167 eval "$3=\$ac_header_compiler"
2168fi
2169eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172fi
cristyda16f162011-02-19 23:52:17 +00002173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002174
2175} # ac_fn_c_check_header_mongrel
2176
2177# ac_fn_c_try_run LINENO
2178# ----------------------
2179# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2180# that executables *can* be run.
2181ac_fn_c_try_run ()
2182{
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if { { ac_try="$ac_link"
2185case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188esac
2189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190$as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_link") 2>&5
2192 ac_status=$?
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2195 { { case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198esac
2199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200$as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_try") 2>&5
2202 ac_status=$?
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; }; }; then :
2205 ac_retval=0
2206else
2207 $as_echo "$as_me: program exited with status $ac_status" >&5
2208 $as_echo "$as_me: failed program was:" >&5
2209sed 's/^/| /' conftest.$ac_ext >&5
2210
2211 ac_retval=$ac_status
2212fi
2213 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002215 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002216
2217} # ac_fn_c_try_run
2218
2219# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2220# -------------------------------------------------------
2221# Tests whether HEADER exists and can be compiled using the include files in
2222# INCLUDES, setting the cache variable VAR accordingly.
2223ac_fn_c_check_header_compile ()
2224{
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002228if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002229 $as_echo_n "(cached) " >&6
2230else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h. */
2233$4
2234#include <$2>
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$3=yes"
2238else
2239 eval "$3=no"
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243eval ac_res=\$$3
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002247
2248} # ac_fn_c_check_header_compile
2249
cristya0b81c32010-01-22 02:54:33 +00002250# ac_fn_cxx_try_compile LINENO
2251# ----------------------------
2252# Try to compile conftest.$ac_ext, and return whether this succeeded.
2253ac_fn_cxx_try_compile ()
2254{
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 rm -f conftest.$ac_objext
2257 if { { ac_try="$ac_compile"
2258case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
2262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263$as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_compile") 2>conftest.err
2265 ac_status=$?
2266 if test -s conftest.err; then
2267 grep -v '^ *+' conftest.err >conftest.er1
2268 cat conftest.er1 >&5
2269 mv -f conftest.er1 conftest.err
2270 fi
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } && {
2273 test -z "$ac_cxx_werror_flag" ||
2274 test ! -s conftest.err
2275 } && test -s conftest.$ac_objext; then :
2276 ac_retval=0
2277else
2278 $as_echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 ac_retval=1
2282fi
cristyda16f162011-02-19 23:52:17 +00002283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002284 as_fn_set_status $ac_retval
2285
2286} # ac_fn_cxx_try_compile
2287
cristy8b350f62009-11-15 23:12:43 +00002288# ac_fn_c_try_link LINENO
2289# -----------------------
2290# Try to link conftest.$ac_ext, and return whether this succeeded.
2291ac_fn_c_try_link ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 rm -f conftest.$ac_objext conftest$ac_exeext
2295 if { { ac_try="$ac_link"
2296case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299esac
2300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2301$as_echo "$ac_try_echo"; } >&5
2302 (eval "$ac_link") 2>conftest.err
2303 ac_status=$?
2304 if test -s conftest.err; then
2305 grep -v '^ *+' conftest.err >conftest.er1
2306 cat conftest.er1 >&5
2307 mv -f conftest.er1 conftest.err
2308 fi
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && {
2311 test -z "$ac_c_werror_flag" ||
2312 test ! -s conftest.err
2313 } && test -s conftest$ac_exeext && {
2314 test "$cross_compiling" = yes ||
2315 $as_test_x conftest$ac_exeext
2316 }; then :
2317 ac_retval=0
2318else
2319 $as_echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 ac_retval=1
2323fi
2324 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2325 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2326 # interfere with the next link command; also delete a directory that is
2327 # left behind by Apple's compiler. We do this before executing the actions.
2328 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002330 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002331
2332} # ac_fn_c_try_link
2333
cristy73bd4a52010-10-05 11:24:23 +00002334# ac_fn_c_check_func LINENO FUNC VAR
2335# ----------------------------------
2336# Tests whether FUNC exists, setting the cache variable VAR accordingly
2337ac_fn_c_check_func ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002342if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002343 $as_echo_n "(cached) " >&6
2344else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h. */
2347/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2349#define $2 innocuous_$2
2350
2351/* System header to define __stub macros and hopefully few prototypes,
2352 which can conflict with char $2 (); below.
2353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2354 <limits.h> exists even on freestanding compilers. */
2355
2356#ifdef __STDC__
2357# include <limits.h>
2358#else
2359# include <assert.h>
2360#endif
2361
2362#undef $2
2363
2364/* Override any GCC internal prototype to avoid an error.
2365 Use char because int might match the return type of a GCC
2366 builtin and then its argument prototype would still apply. */
2367#ifdef __cplusplus
2368extern "C"
2369#endif
2370char $2 ();
2371/* The GNU C library defines this for functions which it implements
2372 to always fail with ENOSYS. Some functions are actually named
2373 something starting with __ and the normal name is an alias. */
2374#if defined __stub_$2 || defined __stub___$2
2375choke me
2376#endif
2377
2378int
2379main ()
2380{
2381return $2 ();
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_link "$LINENO"; then :
2387 eval "$3=yes"
2388else
2389 eval "$3=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext \
2392 conftest$ac_exeext conftest.$ac_ext
2393fi
2394eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002398
2399} # ac_fn_c_check_func
2400
2401# ac_fn_cxx_try_cpp LINENO
2402# ------------------------
2403# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2404ac_fn_cxx_try_cpp ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 if { { ac_try="$ac_cpp conftest.$ac_ext"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413$as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002422 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002423 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2424 test ! -s conftest.err
2425 }; then :
2426 ac_retval=0
2427else
2428 $as_echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 ac_retval=1
2432fi
cristyda16f162011-02-19 23:52:17 +00002433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002434 as_fn_set_status $ac_retval
2435
2436} # ac_fn_cxx_try_cpp
2437
2438# ac_fn_cxx_try_link LINENO
2439# -------------------------
2440# Try to link conftest.$ac_ext, and return whether this succeeded.
2441ac_fn_cxx_try_link ()
2442{
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { { ac_try="$ac_link"
2446case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449esac
2450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451$as_echo "$ac_try_echo"; } >&5
2452 (eval "$ac_link") 2>conftest.err
2453 ac_status=$?
2454 if test -s conftest.err; then
2455 grep -v '^ *+' conftest.err >conftest.er1
2456 cat conftest.er1 >&5
2457 mv -f conftest.er1 conftest.err
2458 fi
2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 test $ac_status = 0; } && {
2461 test -z "$ac_cxx_werror_flag" ||
2462 test ! -s conftest.err
2463 } && test -s conftest$ac_exeext && {
2464 test "$cross_compiling" = yes ||
2465 $as_test_x conftest$ac_exeext
2466 }; then :
2467 ac_retval=0
2468else
2469 $as_echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 ac_retval=1
2473fi
2474 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2475 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2476 # interfere with the next link command; also delete a directory that is
2477 # left behind by Apple's compiler. We do this before executing the actions.
2478 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002480 as_fn_set_status $ac_retval
2481
2482} # ac_fn_cxx_try_link
2483
cristy98dddb52010-11-04 00:30:15 +00002484# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2485# ---------------------------------------------
2486# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2487# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002488ac_fn_c_check_decl ()
2489{
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002491 as_decl_name=`echo $2|sed 's/ *(.*//'`
2492 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2494$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002495if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002496 $as_echo_n "(cached) " >&6
2497else
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499/* end confdefs.h. */
2500$4
2501int
2502main ()
2503{
cristy98dddb52010-11-04 00:30:15 +00002504#ifndef $as_decl_name
2505#ifdef __cplusplus
2506 (void) $as_decl_use;
2507#else
2508 (void) $as_decl_name;
2509#endif
cristy73bd4a52010-10-05 11:24:23 +00002510#endif
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516if ac_fn_c_try_compile "$LINENO"; then :
2517 eval "$3=yes"
2518else
2519 eval "$3=no"
2520fi
2521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522fi
2523eval ac_res=\$$3
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002527
2528} # ac_fn_c_check_decl
2529
cristy8b350f62009-11-15 23:12:43 +00002530# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2531# -------------------------------------------
2532# Tests whether TYPE exists after having included INCLUDES, setting cache
2533# variable VAR accordingly.
2534ac_fn_c_check_type ()
2535{
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002539if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002540 $as_echo_n "(cached) " >&6
2541else
2542 eval "$3=no"
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546int
2547main ()
2548{
2549if (sizeof ($2))
2550 return 0;
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555if ac_fn_c_try_compile "$LINENO"; then :
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557/* end confdefs.h. */
2558$4
2559int
2560main ()
2561{
2562if (sizeof (($2)))
2563 return 0;
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568if ac_fn_c_try_compile "$LINENO"; then :
2569
2570else
2571 eval "$3=yes"
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576fi
2577eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002581
2582} # ac_fn_c_check_type
2583
cristy92703d82010-04-26 00:18:18 +00002584# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2585# ----------------------------------------------------
2586# Tries to find if the field MEMBER exists in type AGGR, after including
2587# INCLUDES, setting cache variable VAR accordingly.
2588ac_fn_c_check_member ()
2589{
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2592$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002593if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002594 $as_echo_n "(cached) " >&6
2595else
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$5
2599int
2600main ()
2601{
2602static $2 ac_aggr;
2603if (ac_aggr.$3)
2604return 0;
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609if ac_fn_c_try_compile "$LINENO"; then :
2610 eval "$4=yes"
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$5
2615int
2616main ()
2617{
2618static $2 ac_aggr;
2619if (sizeof ac_aggr.$3)
2620return 0;
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 eval "$4=yes"
2627else
2628 eval "$4=no"
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634eval ac_res=\$$4
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002638
2639} # ac_fn_c_check_member
2640
cristy8b350f62009-11-15 23:12:43 +00002641# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2642# --------------------------------------------
2643# Tries to find the compile-time value of EXPR in a program that includes
2644# INCLUDES, setting VAR accordingly. Returns whether the value could be
2645# computed
2646ac_fn_c_compute_int ()
2647{
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 if test "$cross_compiling" = yes; then
2650 # Depending upon the size, compute the lo and hi bounds.
2651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */
2653$4
2654int
2655main ()
2656{
2657static int test_array [1 - 2 * !(($2) >= 0)];
2658test_array [0] = 0
2659
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_compile "$LINENO"; then :
2665 ac_lo=0 ac_mid=0
2666 while :; do
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668/* end confdefs.h. */
2669$4
2670int
2671main ()
2672{
2673static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2674test_array [0] = 0
2675
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681 ac_hi=$ac_mid; break
2682else
2683 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2684 if test $ac_lo -le $ac_mid; then
2685 ac_lo= ac_hi=
2686 break
2687 fi
2688 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2689fi
2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 done
2692else
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694/* end confdefs.h. */
2695$4
2696int
2697main ()
2698{
2699static int test_array [1 - 2 * !(($2) < 0)];
2700test_array [0] = 0
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 ac_hi=-1 ac_mid=-1
2708 while :; do
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h. */
2711$4
2712int
2713main ()
2714{
2715static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2716test_array [0] = 0
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723 ac_lo=$ac_mid; break
2724else
2725 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2726 if test $ac_mid -le $ac_hi; then
2727 ac_lo= ac_hi=
2728 break
2729 fi
2730 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 done
2734else
2735 ac_lo= ac_hi=
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740# Binary search between lo and hi bounds.
2741while test "x$ac_lo" != "x$ac_hi"; do
2742 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h. */
2745$4
2746int
2747main ()
2748{
2749static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2750test_array [0] = 0
2751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756if ac_fn_c_try_compile "$LINENO"; then :
2757 ac_hi=$ac_mid
2758else
2759 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2760fi
2761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762done
2763case $ac_lo in #((
2764?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2765'') ac_retval=1 ;;
2766esac
2767 else
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h. */
2770$4
2771static long int longval () { return $2; }
2772static unsigned long int ulongval () { return $2; }
2773#include <stdio.h>
2774#include <stdlib.h>
2775int
2776main ()
2777{
2778
2779 FILE *f = fopen ("conftest.val", "w");
2780 if (! f)
2781 return 1;
2782 if (($2) < 0)
2783 {
2784 long int i = longval ();
2785 if (i != ($2))
2786 return 1;
2787 fprintf (f, "%ld", i);
2788 }
2789 else
2790 {
2791 unsigned long int i = ulongval ();
2792 if (i != ($2))
2793 return 1;
2794 fprintf (f, "%lu", i);
2795 }
2796 /* Do not output a trailing newline, as this causes \r\n confusion
2797 on some platforms. */
2798 return ferror (f) || fclose (f) != 0;
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_run "$LINENO"; then :
2805 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2806else
2807 ac_retval=1
2808fi
2809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2810 conftest.$ac_objext conftest.beam conftest.$ac_ext
2811rm -f conftest.val
2812
2813 fi
cristyda16f162011-02-19 23:52:17 +00002814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002815 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002816
2817} # ac_fn_c_compute_int
2818
2819# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2820# ---------------------------------------------------------
2821# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2822# the include files in INCLUDES and setting the cache variable VAR
2823# accordingly.
2824ac_fn_cxx_check_header_mongrel ()
2825{
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002827 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2829$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002830if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002831 $as_echo_n "(cached) " >&6
2832fi
2833eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835$as_echo "$ac_res" >&6; }
2836else
2837 # Is the header compilable?
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2839$as_echo_n "checking $2 usability... " >&6; }
2840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h. */
2842$4
2843#include <$2>
2844_ACEOF
2845if ac_fn_cxx_try_compile "$LINENO"; then :
2846 ac_header_compiler=yes
2847else
2848 ac_header_compiler=no
2849fi
2850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2852$as_echo "$ac_header_compiler" >&6; }
2853
2854# Is the header present?
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2856$as_echo_n "checking $2 presence... " >&6; }
2857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858/* end confdefs.h. */
2859#include <$2>
2860_ACEOF
2861if ac_fn_cxx_try_cpp "$LINENO"; then :
2862 ac_header_preproc=yes
2863else
2864 ac_header_preproc=no
2865fi
cristyda16f162011-02-19 23:52:17 +00002866rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2868$as_echo "$ac_header_preproc" >&6; }
2869
2870# So? What about this header?
2871case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2872 yes:no: )
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2874$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2876$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2877 ;;
2878 no:yes:* )
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2880$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2882$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2884$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2886$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2888$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002889( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002890## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002891## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002892 ) | sed "s/^/$as_me: WARNING: /" >&2
2893 ;;
2894esac
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002897if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002898 $as_echo_n "(cached) " >&6
2899else
2900 eval "$3=\$ac_header_compiler"
2901fi
2902eval ac_res=\$$3
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904$as_echo "$ac_res" >&6; }
2905fi
cristyda16f162011-02-19 23:52:17 +00002906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002907
2908} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002909cat >config.log <<_ACEOF
2910This file contains any messages produced by compilers while
2911running configure, to aid debugging if configure makes a mistake.
2912
cristy45dbd322011-03-27 16:40:38 +00002913It was created by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +00002914generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002915
2916 $ $0 $@
2917
2918_ACEOF
2919exec 5>>config.log
2920{
2921cat <<_ASUNAME
2922## --------- ##
2923## Platform. ##
2924## --------- ##
2925
2926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2927uname -m = `(uname -m) 2>/dev/null || echo unknown`
2928uname -r = `(uname -r) 2>/dev/null || echo unknown`
2929uname -s = `(uname -s) 2>/dev/null || echo unknown`
2930uname -v = `(uname -v) 2>/dev/null || echo unknown`
2931
2932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2933/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2934
2935/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2936/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2938/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2939/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2940/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2941/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2942
2943_ASUNAME
2944
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002950 $as_echo "PATH: $as_dir"
2951 done
cristy3ed852e2009-09-05 21:47:34 +00002952IFS=$as_save_IFS
2953
2954} >&5
2955
2956cat >&5 <<_ACEOF
2957
2958
2959## ----------- ##
2960## Core tests. ##
2961## ----------- ##
2962
2963_ACEOF
2964
2965
2966# Keep a trace of the command line.
2967# Strip out --no-create and --no-recursion so they do not pile up.
2968# Strip out --silent because we don't want to record it for future runs.
2969# Also quote any args containing shell meta-characters.
2970# Make two passes to allow for proper duplicate-argument suppression.
2971ac_configure_args=
2972ac_configure_args0=
2973ac_configure_args1=
2974ac_must_keep_next=false
2975for ac_pass in 1 2
2976do
2977 for ac_arg
2978 do
2979 case $ac_arg in
2980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2982 | -silent | --silent | --silen | --sile | --sil)
2983 continue ;;
2984 *\'*)
2985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2986 esac
2987 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002989 2)
cristy8b350f62009-11-15 23:12:43 +00002990 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002991 if test $ac_must_keep_next = true; then
2992 ac_must_keep_next=false # Got value, back to normal.
2993 else
2994 case $ac_arg in
2995 *=* | --config-cache | -C | -disable-* | --disable-* \
2996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2998 | -with-* | --with-* | -without-* | --without-* | --x)
2999 case "$ac_configure_args0 " in
3000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3001 esac
3002 ;;
3003 -* ) ac_must_keep_next=true ;;
3004 esac
3005 fi
cristy8b350f62009-11-15 23:12:43 +00003006 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003007 ;;
3008 esac
3009 done
3010done
cristy8b350f62009-11-15 23:12:43 +00003011{ ac_configure_args0=; unset ac_configure_args0;}
3012{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003013
3014# When interrupted or exit'd, cleanup temporary files, and complete
3015# config.log. We remove comments because anyway the quotes in there
3016# would cause problems or look ugly.
3017# WARNING: Use '\'' to represent an apostrophe within the trap.
3018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3019trap 'exit_status=$?
3020 # Save into config.log some information that might help in debugging.
3021 {
3022 echo
3023
cristy98dddb52010-11-04 00:30:15 +00003024 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003025## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003026## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003027 echo
3028 # The following way of writing the cache mishandles newlines in values,
3029(
3030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3031 eval ac_val=\$$ac_var
3032 case $ac_val in #(
3033 *${as_nl}*)
3034 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3037 esac
3038 case $ac_var in #(
3039 _ | IFS | as_nl) ;; #(
3040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003041 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003042 esac ;;
3043 esac
3044 done
3045 (set) 2>&1 |
3046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3047 *${as_nl}ac_space=\ *)
3048 sed -n \
3049 "s/'\''/'\''\\\\'\'''\''/g;
3050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3051 ;; #(
3052 *)
3053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3054 ;;
3055 esac |
3056 sort
3057)
3058 echo
3059
cristy98dddb52010-11-04 00:30:15 +00003060 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003061## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003062## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003063 echo
3064 for ac_var in $ac_subst_vars
3065 do
3066 eval ac_val=\$$ac_var
3067 case $ac_val in
3068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3069 esac
3070 $as_echo "$ac_var='\''$ac_val'\''"
3071 done | sort
3072 echo
3073
3074 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003075 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003076## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003077## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003078 echo
3079 for ac_var in $ac_subst_files
3080 do
3081 eval ac_val=\$$ac_var
3082 case $ac_val in
3083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3084 esac
3085 $as_echo "$ac_var='\''$ac_val'\''"
3086 done | sort
3087 echo
3088 fi
3089
3090 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003091 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003092## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003093## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003094 echo
3095 cat confdefs.h
3096 echo
3097 fi
3098 test "$ac_signal" != 0 &&
3099 $as_echo "$as_me: caught signal $ac_signal"
3100 $as_echo "$as_me: exit $exit_status"
3101 } >&5
3102 rm -f core *.core core.conftest.* &&
3103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3104 exit $exit_status
3105' 0
3106for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003108done
3109ac_signal=0
3110
3111# confdefs.h avoids OS command line length limits that DEFS can exceed.
3112rm -f -r conftest* confdefs.h
3113
cristy8b350f62009-11-15 23:12:43 +00003114$as_echo "/* confdefs.h */" > confdefs.h
3115
cristy3ed852e2009-09-05 21:47:34 +00003116# Predefined preprocessor variables.
3117
3118cat >>confdefs.h <<_ACEOF
3119#define PACKAGE_NAME "$PACKAGE_NAME"
3120_ACEOF
3121
cristy3ed852e2009-09-05 21:47:34 +00003122cat >>confdefs.h <<_ACEOF
3123#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3124_ACEOF
3125
cristy3ed852e2009-09-05 21:47:34 +00003126cat >>confdefs.h <<_ACEOF
3127#define PACKAGE_VERSION "$PACKAGE_VERSION"
3128_ACEOF
3129
cristy3ed852e2009-09-05 21:47:34 +00003130cat >>confdefs.h <<_ACEOF
3131#define PACKAGE_STRING "$PACKAGE_STRING"
3132_ACEOF
3133
cristy3ed852e2009-09-05 21:47:34 +00003134cat >>confdefs.h <<_ACEOF
3135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3136_ACEOF
3137
cristy8b350f62009-11-15 23:12:43 +00003138cat >>confdefs.h <<_ACEOF
3139#define PACKAGE_URL "$PACKAGE_URL"
3140_ACEOF
3141
cristy3ed852e2009-09-05 21:47:34 +00003142
3143# Let the site file select an alternate cache file if it wants to.
3144# Prefer an explicitly selected file to automatically selected ones.
3145ac_site_file1=NONE
3146ac_site_file2=NONE
3147if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003148 # We do not want a PATH search for config.site.
3149 case $CONFIG_SITE in #((
3150 -*) ac_site_file1=./$CONFIG_SITE;;
3151 */*) ac_site_file1=$CONFIG_SITE;;
3152 *) ac_site_file1=./$CONFIG_SITE;;
3153 esac
cristy3ed852e2009-09-05 21:47:34 +00003154elif test "x$prefix" != xNONE; then
3155 ac_site_file1=$prefix/share/config.site
3156 ac_site_file2=$prefix/etc/config.site
3157else
3158 ac_site_file1=$ac_default_prefix/share/config.site
3159 ac_site_file2=$ac_default_prefix/etc/config.site
3160fi
3161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3162do
3163 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3167 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003168 . "$ac_site_file" \
3169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171as_fn_error $? "failed to load site script $ac_site_file
3172See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003173 fi
3174done
3175
3176if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003177 # Some versions of bash will fail to source /dev/null (special files
3178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003181$as_echo "$as_me: loading cache $cache_file" >&6;}
3182 case $cache_file in
3183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3184 *) . "./$cache_file";;
3185 esac
3186 fi
3187else
cristy8b350f62009-11-15 23:12:43 +00003188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003189$as_echo "$as_me: creating cache $cache_file" >&6;}
3190 >$cache_file
3191fi
3192
cristycd4c5312009-11-22 01:19:08 +00003193as_fn_append ac_header_list " stdlib.h"
3194as_fn_append ac_header_list " unistd.h"
3195as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003196# Check that the precious variables saved in the cache have kept the same
3197# value.
3198ac_cache_corrupted=false
3199for ac_var in $ac_precious_vars; do
3200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3201 eval ac_new_set=\$ac_env_${ac_var}_set
3202 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3203 eval ac_new_val=\$ac_env_${ac_var}_value
3204 case $ac_old_set,$ac_new_set in
3205 set,)
cristy8b350f62009-11-15 23:12:43 +00003206 { $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 +00003207$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3208 ac_cache_corrupted=: ;;
3209 ,set)
cristy8b350f62009-11-15 23:12:43 +00003210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3212 ac_cache_corrupted=: ;;
3213 ,);;
3214 *)
3215 if test "x$ac_old_val" != "x$ac_new_val"; then
3216 # differences in whitespace do not lead to failure.
3217 ac_old_val_w=`echo x $ac_old_val`
3218 ac_new_val_w=`echo x $ac_new_val`
3219 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3222 ac_cache_corrupted=:
3223 else
cristy8b350f62009-11-15 23:12:43 +00003224 { $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 +00003225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3226 eval $ac_var=\$ac_old_val
3227 fi
cristy8b350f62009-11-15 23:12:43 +00003228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003229$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003231$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3232 fi;;
3233 esac
3234 # Pass precious variables to config.status.
3235 if test "$ac_new_set" = set; then
3236 case $ac_new_val in
3237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3238 *) ac_arg=$ac_var=$ac_new_val ;;
3239 esac
3240 case " $ac_configure_args " in
3241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003242 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003243 esac
3244 fi
3245done
3246if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003251 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003252fi
cristy8b350f62009-11-15 23:12:43 +00003253## -------------------- ##
3254## Main body of script. ##
3255## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003256
3257ac_ext=c
3258ac_cpp='$CPP $CPPFLAGS'
3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263
3264
3265ac_aux_dir=
3266for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003267 if test -f "$ac_dir/install-sh"; then
3268 ac_aux_dir=$ac_dir
3269 ac_install_sh="$ac_aux_dir/install-sh -c"
3270 break
3271 elif test -f "$ac_dir/install.sh"; then
3272 ac_aux_dir=$ac_dir
3273 ac_install_sh="$ac_aux_dir/install.sh -c"
3274 break
3275 elif test -f "$ac_dir/shtool"; then
3276 ac_aux_dir=$ac_dir
3277 ac_install_sh="$ac_aux_dir/shtool install -c"
3278 break
3279 fi
cristy3ed852e2009-09-05 21:47:34 +00003280done
3281if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003282 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003283fi
3284
3285# These three variables are undocumented and unsupported,
3286# and are intended to be withdrawn in a future Autoconf release.
3287# They can cause serious problems if a builder's source tree is in a directory
3288# whose full name contains unusual characters.
3289ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3290ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3291ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3292
3293
3294
3295
3296ac_config_headers="$ac_config_headers config/config.h"
3297
cristy24fc1fe2010-10-23 21:13:01 +00003298
cristy73bd4a52010-10-05 11:24:23 +00003299ac_config_commands="$ac_config_commands magick/magick-config.h"
3300
cristy430a7312010-01-21 20:44:04 +00003301ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003302
3303
3304#
3305# Save initial user-tunable values
3306#
3307USER_LIBS=$LIBS
3308for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3309 eval isset=\${$var+set}
3310 if test "$isset" = 'set'; then
3311 eval val=$`echo $var`
3312 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3313 fi
3314done
3315
3316
3317CONFIGURE_ARGS="$0 ${ac_configure_args}"
3318
3319
3320# Source file containing package/library versioning information.
3321. ${srcdir}/version.sh
3322
cristy15a88782010-01-31 23:24:49 +00003323echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003324# Make sure we can run config.sub.
3325$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003326 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003327
cristy8b350f62009-11-15 23:12:43 +00003328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003330if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003331 $as_echo_n "(cached) " >&6
3332else
3333 ac_build_alias=$build_alias
3334test "x$ac_build_alias" = x &&
3335 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3336test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003337 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003338ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003340
3341fi
cristy8b350f62009-11-15 23:12:43 +00003342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003343$as_echo "$ac_cv_build" >&6; }
3344case $ac_cv_build in
3345*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003346*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003347esac
3348build=$ac_cv_build
3349ac_save_IFS=$IFS; IFS='-'
3350set x $ac_cv_build
3351shift
3352build_cpu=$1
3353build_vendor=$2
3354shift; shift
3355# Remember, the first character of IFS is used to create $*,
3356# except with old shells:
3357build_os=$*
3358IFS=$ac_save_IFS
3359case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3360
3361
cristy8b350f62009-11-15 23:12:43 +00003362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003364if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003365 $as_echo_n "(cached) " >&6
3366else
3367 if test "x$host_alias" = x; then
3368 ac_cv_host=$ac_cv_build
3369else
3370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003372fi
3373
3374fi
cristy8b350f62009-11-15 23:12:43 +00003375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003376$as_echo "$ac_cv_host" >&6; }
3377case $ac_cv_host in
3378*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003379*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003380esac
3381host=$ac_cv_host
3382ac_save_IFS=$IFS; IFS='-'
3383set x $ac_cv_host
3384shift
3385host_cpu=$1
3386host_vendor=$2
3387shift; shift
3388# Remember, the first character of IFS is used to create $*,
3389# except with old shells:
3390host_os=$*
3391IFS=$ac_save_IFS
3392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3393
3394
cristy8b350f62009-11-15 23:12:43 +00003395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003397if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003398 $as_echo_n "(cached) " >&6
3399else
3400 if test "x$target_alias" = x; then
3401 ac_cv_target=$ac_cv_host
3402else
3403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003405fi
3406
3407fi
cristy8b350f62009-11-15 23:12:43 +00003408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$ac_cv_target" >&6; }
3410case $ac_cv_target in
3411*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003412*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003413esac
3414target=$ac_cv_target
3415ac_save_IFS=$IFS; IFS='-'
3416set x $ac_cv_target
3417shift
3418target_cpu=$1
3419target_vendor=$2
3420shift; shift
3421# Remember, the first character of IFS is used to create $*,
3422# except with old shells:
3423target_os=$*
3424IFS=$ac_save_IFS
3425case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3426
3427
3428# The aliases save the names the user supplied, while $host etc.
3429# will get canonicalized.
3430test -n "$target_alias" &&
3431 test "$program_prefix$program_suffix$program_transform_name" = \
3432 NONENONEs,x,x, &&
3433 program_prefix=${target_alias}-
3434
cristy837d6dc2010-02-27 01:16:57 +00003435
3436
3437
3438
cristy3225a072010-04-17 01:47:28 +00003439MAGICK_TARGET_CPU=$target_cpu
3440
3441
3442MAGICK_TARGET_VENDOR=$target_vendor
3443
3444
3445MAGICK_TARGET_OS=$target_os
3446
3447
cristy3ed852e2009-09-05 21:47:34 +00003448# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003449MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3450
3451MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3452
cristy3ed852e2009-09-05 21:47:34 +00003453
3454
3455# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3457$as_echo_n "checking whether build environment is sane... " >&6; }
3458# Just in case
3459sleep 1
3460echo timestamp > conftest.file
3461# Reject unsafe characters in $srcdir or the absolute working directory
3462# name. Accept space and tab only in the latter.
3463am_lf='
3464'
3465case `pwd` in
3466 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003467 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003468esac
3469case $srcdir in
3470 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003471 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003472esac
cristy3ed852e2009-09-05 21:47:34 +00003473
cristy73bd4a52010-10-05 11:24:23 +00003474# Do `set' in a subshell so we don't clobber the current shell's
3475# arguments. Must try -L first in case configure is actually a
3476# symlink; some systems play weird games with the mod time of symlinks
3477# (eg FreeBSD returns the mod time of the symlink's containing
3478# directory).
3479if (
3480 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3481 if test "$*" = "X"; then
3482 # -L didn't work.
3483 set X `ls -t "$srcdir/configure" conftest.file`
3484 fi
3485 rm -f conftest.file
3486 if test "$*" != "X $srcdir/configure conftest.file" \
3487 && test "$*" != "X conftest.file $srcdir/configure"; then
3488
3489 # If neither matched, then we have a broken ls. This can happen
3490 # if, for instance, CONFIG_SHELL is bash and it inherits a
3491 # broken ls alias from the environment. This has actually
3492 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003493 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003494alias in your environment" "$LINENO" 5
3495 fi
3496
3497 test "$2" = conftest.file
3498 )
3499then
3500 # Ok.
3501 :
3502else
cristy98dddb52010-11-04 00:30:15 +00003503 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003504Check your system clock" "$LINENO" 5
3505fi
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507$as_echo "yes" >&6; }
3508
3509am__api_version='1.11'
3510
3511# Find a good install program. We prefer a C program (faster),
3512# so one script is as good as another. But avoid the broken or
3513# incompatible versions:
3514# SysV /etc/install, /usr/sbin/install
3515# SunOS /usr/etc/install
3516# IRIX /sbin/install
3517# AIX /bin/install
3518# AmigaOS /C/install, which installs bootblocks on floppy discs
3519# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3520# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3521# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3522# OS/2's system install, which has a completely different semantic
3523# ./install, which can be erroneously created by make from ./install.sh.
3524# Reject install programs that cannot install multiple files.
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3526$as_echo_n "checking for a BSD-compatible install... " >&6; }
3527if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003528if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003529 $as_echo_n "(cached) " >&6
3530else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 # Account for people who put trailing slashes in PATH elements.
3537case $as_dir/ in #((
3538 ./ | .// | /[cC]/* | \
3539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3540 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3541 /usr/ucb/* ) ;;
3542 *)
3543 # OSF1 and SCO ODT 3.0 have their own names for install.
3544 # Don't use installbsd from OSF since it installs stuff as root
3545 # by default.
3546 for ac_prog in ginstall scoinst install; do
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3549 if test $ac_prog = install &&
3550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3551 # AIX install. It has an incompatible calling convention.
3552 :
3553 elif test $ac_prog = install &&
3554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3555 # program-specific install script used by HP pwplus--don't use.
3556 :
3557 else
3558 rm -rf conftest.one conftest.two conftest.dir
3559 echo one > conftest.one
3560 echo two > conftest.two
3561 mkdir conftest.dir
3562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3563 test -s conftest.one && test -s conftest.two &&
3564 test -s conftest.dir/conftest.one &&
3565 test -s conftest.dir/conftest.two
3566 then
3567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3568 break 3
3569 fi
3570 fi
3571 fi
3572 done
3573 done
3574 ;;
3575esac
3576
3577 done
3578IFS=$as_save_IFS
3579
3580rm -rf conftest.one conftest.two conftest.dir
3581
3582fi
3583 if test "${ac_cv_path_install+set}" = set; then
3584 INSTALL=$ac_cv_path_install
3585 else
3586 # As a last resort, use the slow shell script. Don't cache a
3587 # value for INSTALL within a source directory, because that will
3588 # break other packages using the cache if that directory is
3589 # removed, or if the value is a relative name.
3590 INSTALL=$ac_install_sh
3591 fi
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3594$as_echo "$INSTALL" >&6; }
3595
3596# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3597# It thinks the first close brace ends the variable substitution.
3598test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3599
3600test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3601
3602test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3603
3604test "$program_prefix" != NONE &&
3605 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3606# Use a double $ so make ignores it.
3607test "$program_suffix" != NONE &&
3608 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3609# Double any \ or $.
3610# By default was `s,x,x', remove it if useless.
3611ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3612program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3613
3614# expand $ac_aux_dir to an absolute path
3615am_aux_dir=`cd $ac_aux_dir && pwd`
3616
3617if test x"${MISSING+set}" != xset; then
3618 case $am_aux_dir in
3619 *\ * | *\ *)
3620 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3621 *)
3622 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3623 esac
3624fi
3625# Use eval to expand $SHELL
3626if eval "$MISSING --run true"; then
3627 am_missing_run="$MISSING --run "
3628else
3629 am_missing_run=
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3631$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3632fi
3633
3634if test x"${install_sh}" != xset; then
3635 case $am_aux_dir in
3636 *\ * | *\ *)
3637 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3638 *)
3639 install_sh="\${SHELL} $am_aux_dir/install-sh"
3640 esac
3641fi
3642
3643# Installed binaries are usually stripped using `strip' when the user
3644# run `make install-strip'. However `strip' might not be the right
3645# tool to use in cross-compilation environments, therefore Automake
3646# will honor the `STRIP' environment variable to overrule this program.
3647if test "$cross_compiling" != no; then
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3650set dummy ${ac_tool_prefix}strip; ac_word=$2
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003653if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003654 $as_echo_n "(cached) " >&6
3655else
3656 if test -n "$STRIP"; then
3657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670done
3671 done
3672IFS=$as_save_IFS
3673
3674fi
3675fi
3676STRIP=$ac_cv_prog_STRIP
3677if test -n "$STRIP"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3679$as_echo "$STRIP" >&6; }
3680else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682$as_echo "no" >&6; }
3683fi
3684
3685
3686fi
3687if test -z "$ac_cv_prog_STRIP"; then
3688 ac_ct_STRIP=$STRIP
3689 # Extract the first word of "strip", so it can be a program name with args.
3690set dummy strip; ac_word=$2
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003693if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003694 $as_echo_n "(cached) " >&6
3695else
3696 if test -n "$ac_ct_STRIP"; then
3697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3698else
3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700for as_dir in $PATH
3701do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_ac_ct_STRIP="strip"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710done
3711 done
3712IFS=$as_save_IFS
3713
3714fi
3715fi
3716ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3717if test -n "$ac_ct_STRIP"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3719$as_echo "$ac_ct_STRIP" >&6; }
3720else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722$as_echo "no" >&6; }
3723fi
3724
3725 if test "x$ac_ct_STRIP" = x; then
3726 STRIP=":"
3727 else
3728 case $cross_compiling:$ac_tool_warned in
3729yes:)
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3732ac_tool_warned=yes ;;
3733esac
3734 STRIP=$ac_ct_STRIP
3735 fi
3736else
3737 STRIP="$ac_cv_prog_STRIP"
3738fi
3739
3740fi
3741INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3742
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3744$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3745if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003746 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003747 $as_echo_n "(cached) " >&6
3748else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_prog in mkdir gmkdir; do
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3757 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3758 'mkdir (GNU coreutils) '* | \
3759 'mkdir (coreutils) '* | \
3760 'mkdir (fileutils) '4.1*)
3761 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3762 break 3;;
3763 esac
3764 done
3765 done
3766 done
3767IFS=$as_save_IFS
3768
3769fi
3770
3771 test -d ./--version && rmdir ./--version
3772 if test "${ac_cv_path_mkdir+set}" = set; then
3773 MKDIR_P="$ac_cv_path_mkdir -p"
3774 else
3775 # As a last resort, use the slow shell script. Don't cache a
3776 # value for MKDIR_P within a source directory, because that will
3777 # break other packages using the cache if that directory is
3778 # removed, or if the value is a relative name.
3779 MKDIR_P="$ac_install_sh -d"
3780 fi
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3783$as_echo "$MKDIR_P" >&6; }
3784
3785mkdir_p="$MKDIR_P"
3786case $mkdir_p in
3787 [\\/$]* | ?:[\\/]*) ;;
3788 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3789esac
3790
3791for ac_prog in gawk mawk nawk awk
3792do
3793 # Extract the first word of "$ac_prog", so it can be a program name with args.
3794set dummy $ac_prog; ac_word=$2
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003797if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003798 $as_echo_n "(cached) " >&6
3799else
3800 if test -n "$AWK"; then
3801 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3802else
3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804for as_dir in $PATH
3805do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 ac_cv_prog_AWK="$ac_prog"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814done
3815 done
3816IFS=$as_save_IFS
3817
3818fi
3819fi
3820AWK=$ac_cv_prog_AWK
3821if test -n "$AWK"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3823$as_echo "$AWK" >&6; }
3824else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826$as_echo "no" >&6; }
3827fi
3828
3829
3830 test -n "$AWK" && break
3831done
3832
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3834$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3835set x ${MAKE-make}
3836ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003837if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003838 $as_echo_n "(cached) " >&6
3839else
3840 cat >conftest.make <<\_ACEOF
3841SHELL = /bin/sh
3842all:
3843 @echo '@@@%%%=$(MAKE)=@@@%%%'
3844_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003845# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003846case `${MAKE-make} -f conftest.make 2>/dev/null` in
3847 *@@@%%%=?*=@@@%%%*)
3848 eval ac_cv_prog_make_${ac_make}_set=yes;;
3849 *)
3850 eval ac_cv_prog_make_${ac_make}_set=no;;
3851esac
3852rm -f conftest.make
3853fi
3854if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3856$as_echo "yes" >&6; }
3857 SET_MAKE=
3858else
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860$as_echo "no" >&6; }
3861 SET_MAKE="MAKE=${MAKE-make}"
3862fi
3863
3864rm -rf .tst 2>/dev/null
3865mkdir .tst 2>/dev/null
3866if test -d .tst; then
3867 am__leading_dot=.
3868else
3869 am__leading_dot=_
3870fi
3871rmdir .tst 2>/dev/null
3872
3873if test "`cd $srcdir && pwd`" != "`pwd`"; then
3874 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3875 # is not polluted with repeated "-I."
3876 am__isrc=' -I$(srcdir)'
3877 # test to see if srcdir already configured
3878 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003879 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003880 fi
3881fi
3882
3883# test whether we have cygpath
3884if test -z "$CYGPATH_W"; then
3885 if (cygpath --version) >/dev/null 2>/dev/null; then
3886 CYGPATH_W='cygpath -w'
3887 else
3888 CYGPATH_W=echo
3889 fi
3890fi
3891
3892
3893# Define the identity of the package.
3894 PACKAGE=$PACKAGE_NAME
3895 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3896
3897
3898# Some tools Automake needs.
3899
3900ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3901
3902
3903AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3904
3905
3906AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3907
3908
3909AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3910
3911
3912MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3913
3914# We need awk for the "check" target. The system "awk" is bad on
3915# some platforms.
3916# Always define AMTAR for backward compatibility.
3917
3918AMTAR=${AMTAR-"${am_missing_run}tar"}
3919
3920am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3921
3922
3923
3924
3925
cristy3ed852e2009-09-05 21:47:34 +00003926
3927# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003928# Check whether --enable-silent-rules was given.
3929if test "${enable_silent_rules+set}" = set; then :
3930 enableval=$enable_silent_rules;
3931fi
3932
3933case $enable_silent_rules in
3934yes) AM_DEFAULT_VERBOSITY=0;;
3935no) AM_DEFAULT_VERBOSITY=1;;
3936*) AM_DEFAULT_VERBOSITY=0;;
3937esac
3938AM_BACKSLASH='\'
3939
cristy3ed852e2009-09-05 21:47:34 +00003940
3941MAGICK_LIB_VERSION="0x"
3942if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3943 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3944fi
3945MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3946if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3947 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3948fi
3949MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3950if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3951 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3952fi
3953MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3954
3955
3956# Definition used to define MagickLibVersionText in version.h
3957MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3958
3959
3960# Definition used to define MagickLibVersionNumber in version.h
3961MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3962
3963
3964# Regenerate config.status if ChangeLog or version.sh is updated.
3965CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3966
3967
3968PERLMAINCC=$CC
3969
3970MAGICK_CFLAGS=''
3971MAGICK_CPPFLAGS=$CPPFLAGS_USER
3972MAGICK_PCFLAGS=$CPPFLAGS_USER
3973MAGICK_LDFLAGS=''
3974MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003975MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003976
3977#
3978# Evaluate shell variable equivalents to Makefile directory variables
3979#
3980if test "x$prefix" = xNONE; then
3981 prefix=$ac_default_prefix
3982fi
3983# Let make expand exec_prefix.
3984if test "x$exec_prefix" = xNONE; then
3985 exec_prefix='${prefix}'
3986fi
3987
3988#
3989eval "eval PREFIX_DIR=${prefix}"
3990
3991eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3992
3993eval "eval BIN_DIR=$bindir"
3994
3995eval "eval SBIN_DIR=$sbindir"
3996
3997eval "eval LIBEXEC_DIR=$libexecdir"
3998
3999eval "eval DATA_DIR=$datadir"
4000
cristyd55889c2011-03-27 00:50:24 +00004001eval "eval DOC_DIR=$docdir"
4002
cristy3ed852e2009-09-05 21:47:34 +00004003eval "eval SYSCONF_DIR=$sysconfdir"
4004
4005eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4006
4007eval "eval LOCALSTATE_DIR=$localstatedir"
4008
4009eval "eval LIB_DIR=$libdir"
4010
4011eval "eval INCLUDE_DIR=$includedir"
4012
4013eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4014
4015eval "eval INFO_DIR=$infodir"
4016
4017eval "eval MAN_DIR=$mandir"
4018
4019
4020# Get full paths to source and build directories
4021srcdirfull="`cd $srcdir && pwd`"
4022builddir="`pwd`"
4023
4024#
4025# Compute variables useful for running uninstalled software.
4026#
4027MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4028MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4029MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4030MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4031DIRSEP=':'
4032case "${build_os}" in
4033 mingw* )
4034 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4035 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4036 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4037 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4038 DIRSEP=';'
4039 ;;
4040esac
4041case "${host_os}" in
4042 mingw* )
4043 DIRSEP=';'
4044 ;;
4045esac
4046
4047
4048
4049
4050
4051
cristya0b81c32010-01-22 02:54:33 +00004052
4053#
4054# Enable OS features.
4055#
cristy73bd4a52010-10-05 11:24:23 +00004056DEPDIR="${am__leading_dot}deps"
4057
4058ac_config_commands="$ac_config_commands depfiles"
4059
4060
4061am_make=${MAKE-make}
4062cat > confinc << 'END'
4063am__doit:
4064 @echo this is the am__doit target
4065.PHONY: am__doit
4066END
4067# If we don't find an include directive, just comment out the code.
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4069$as_echo_n "checking for style of include used by $am_make... " >&6; }
4070am__include="#"
4071am__quote=
4072_am_result=none
4073# First try GNU make style include.
4074echo "include confinc" > confmf
4075# Ignore all kinds of additional output from `make'.
4076case `$am_make -s -f confmf 2> /dev/null` in #(
4077*the\ am__doit\ target*)
4078 am__include=include
4079 am__quote=
4080 _am_result=GNU
4081 ;;
4082esac
4083# Now try BSD make style include.
4084if test "$am__include" = "#"; then
4085 echo '.include "confinc"' > confmf
4086 case `$am_make -s -f confmf 2> /dev/null` in #(
4087 *the\ am__doit\ target*)
4088 am__include=.include
4089 am__quote="\""
4090 _am_result=BSD
4091 ;;
4092 esac
4093fi
4094
4095
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4097$as_echo "$_am_result" >&6; }
4098rm -f confinc confmf
4099
4100# Check whether --enable-dependency-tracking was given.
4101if test "${enable_dependency_tracking+set}" = set; then :
4102 enableval=$enable_dependency_tracking;
4103fi
4104
4105if test "x$enable_dependency_tracking" != xno; then
4106 am_depcomp="$ac_aux_dir/depcomp"
4107 AMDEPBACKSLASH='\'
4108fi
4109 if test "x$enable_dependency_tracking" != xno; then
4110 AMDEP_TRUE=
4111 AMDEP_FALSE='#'
4112else
4113 AMDEP_TRUE='#'
4114 AMDEP_FALSE=
4115fi
4116
4117
cristy3ed852e2009-09-05 21:47:34 +00004118ac_ext=c
4119ac_cpp='$CPP $CPPFLAGS'
4120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123if test -n "$ac_tool_prefix"; then
4124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4125set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004128if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004129 $as_echo_n "(cached) " >&6
4130else
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004143 break 2
4144 fi
4145done
cristy8b350f62009-11-15 23:12:43 +00004146 done
cristy3ed852e2009-09-05 21:47:34 +00004147IFS=$as_save_IFS
4148
4149fi
4150fi
4151CC=$ac_cv_prog_CC
4152if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004154$as_echo "$CC" >&6; }
4155else
cristy8b350f62009-11-15 23:12:43 +00004156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004157$as_echo "no" >&6; }
4158fi
4159
4160
4161fi
4162if test -z "$ac_cv_prog_CC"; then
4163 ac_ct_CC=$CC
4164 # Extract the first word of "gcc", so it can be a program name with args.
4165set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004168if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004169 $as_echo_n "(cached) " >&6
4170else
4171 if test -n "$ac_ct_CC"; then
4172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004183 break 2
4184 fi
4185done
cristy8b350f62009-11-15 23:12:43 +00004186 done
cristy3ed852e2009-09-05 21:47:34 +00004187IFS=$as_save_IFS
4188
4189fi
4190fi
4191ac_ct_CC=$ac_cv_prog_ac_ct_CC
4192if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004194$as_echo "$ac_ct_CC" >&6; }
4195else
cristy8b350f62009-11-15 23:12:43 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo "no" >&6; }
4198fi
4199
4200 if test "x$ac_ct_CC" = x; then
4201 CC=""
4202 else
4203 case $cross_compiling:$ac_tool_warned in
4204yes:)
cristy8b350f62009-11-15 23:12:43 +00004205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4207ac_tool_warned=yes ;;
4208esac
4209 CC=$ac_ct_CC
4210 fi
4211else
4212 CC="$ac_cv_prog_CC"
4213fi
4214
4215if test -z "$CC"; then
4216 if test -n "$ac_tool_prefix"; then
4217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4218set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004221if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004222 $as_echo_n "(cached) " >&6
4223else
4224 if test -n "$CC"; then
4225 ac_cv_prog_CC="$CC" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004236 break 2
4237 fi
4238done
cristy8b350f62009-11-15 23:12:43 +00004239 done
cristy3ed852e2009-09-05 21:47:34 +00004240IFS=$as_save_IFS
4241
4242fi
4243fi
4244CC=$ac_cv_prog_CC
4245if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004247$as_echo "$CC" >&6; }
4248else
cristy8b350f62009-11-15 23:12:43 +00004249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004250$as_echo "no" >&6; }
4251fi
4252
4253
4254 fi
4255fi
4256if test -z "$CC"; then
4257 # Extract the first word of "cc", so it can be a program name with args.
4258set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004261if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004262 $as_echo_n "(cached) " >&6
4263else
4264 if test -n "$CC"; then
4265 ac_cv_prog_CC="$CC" # Let the user override the test.
4266else
4267 ac_prog_rejected=no
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004273 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4276 ac_prog_rejected=yes
4277 continue
4278 fi
4279 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004281 break 2
4282 fi
4283done
cristy8b350f62009-11-15 23:12:43 +00004284 done
cristy3ed852e2009-09-05 21:47:34 +00004285IFS=$as_save_IFS
4286
4287if test $ac_prog_rejected = yes; then
4288 # We found a bogon in the path, so make sure we never use it.
4289 set dummy $ac_cv_prog_CC
4290 shift
4291 if test $# != 0; then
4292 # We chose a different compiler from the bogus one.
4293 # However, it has the same basename, so the bogon will be chosen
4294 # first if we set CC to just the basename; use the full file name.
4295 shift
4296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4297 fi
4298fi
4299fi
4300fi
4301CC=$ac_cv_prog_CC
4302if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004304$as_echo "$CC" >&6; }
4305else
cristy8b350f62009-11-15 23:12:43 +00004306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004307$as_echo "no" >&6; }
4308fi
4309
4310
4311fi
4312if test -z "$CC"; then
4313 if test -n "$ac_tool_prefix"; then
4314 for ac_prog in cl.exe
4315 do
4316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4317set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004320if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004321 $as_echo_n "(cached) " >&6
4322else
4323 if test -n "$CC"; then
4324 ac_cv_prog_CC="$CC" # Let the user override the test.
4325else
4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH
4328do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004335 break 2
4336 fi
4337done
cristy8b350f62009-11-15 23:12:43 +00004338 done
cristy3ed852e2009-09-05 21:47:34 +00004339IFS=$as_save_IFS
4340
4341fi
4342fi
4343CC=$ac_cv_prog_CC
4344if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004346$as_echo "$CC" >&6; }
4347else
cristy8b350f62009-11-15 23:12:43 +00004348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004349$as_echo "no" >&6; }
4350fi
4351
4352
4353 test -n "$CC" && break
4354 done
4355fi
4356if test -z "$CC"; then
4357 ac_ct_CC=$CC
4358 for ac_prog in cl.exe
4359do
4360 # Extract the first word of "$ac_prog", so it can be a program name with args.
4361set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004364if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004365 $as_echo_n "(cached) " >&6
4366else
4367 if test -n "$ac_ct_CC"; then
4368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4369else
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379 break 2
4380 fi
4381done
cristy8b350f62009-11-15 23:12:43 +00004382 done
cristy3ed852e2009-09-05 21:47:34 +00004383IFS=$as_save_IFS
4384
4385fi
4386fi
4387ac_ct_CC=$ac_cv_prog_ac_ct_CC
4388if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo "$ac_ct_CC" >&6; }
4391else
cristy8b350f62009-11-15 23:12:43 +00004392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004393$as_echo "no" >&6; }
4394fi
4395
4396
4397 test -n "$ac_ct_CC" && break
4398done
4399
4400 if test "x$ac_ct_CC" = x; then
4401 CC=""
4402 else
4403 case $cross_compiling:$ac_tool_warned in
4404yes:)
cristy8b350f62009-11-15 23:12:43 +00004405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4407ac_tool_warned=yes ;;
4408esac
4409 CC=$ac_ct_CC
4410 fi
4411fi
4412
4413fi
4414
4415
cristy8b350f62009-11-15 23:12:43 +00004416test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004418as_fn_error $? "no acceptable C compiler found in \$PATH
4419See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004420
4421# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004422$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004423set X $ac_compile
4424ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004425for ac_option in --version -v -V -qversion; do
4426 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
cristy8b350f62009-11-15 23:12:43 +00004431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432$as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004434 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004435 if test -s conftest.err; then
4436 sed '10a\
4437... rest of stderr output deleted ...
4438 10q' conftest.err >conftest.er1
4439 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004440 fi
cristycd4c5312009-11-22 01:19:08 +00004441 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }
4444done
cristy3ed852e2009-09-05 21:47:34 +00004445
cristy8b350f62009-11-15 23:12:43 +00004446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004447/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004448
cristy3ed852e2009-09-05 21:47:34 +00004449int
4450main ()
4451{
4452
4453 ;
4454 return 0;
4455}
4456_ACEOF
4457ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004458ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004459# Try to create an executable without -o first, disregard a.out.
4460# It will help us diagnose broken compilers, and finding out an intuition
4461# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4463$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004464ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4465
4466# The possible output files:
4467ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4468
4469ac_rmfiles=
4470for ac_file in $ac_files
4471do
4472 case $ac_file in
4473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4474 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4475 esac
4476done
4477rm -f $ac_rmfiles
4478
cristy8b350f62009-11-15 23:12:43 +00004479if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004480case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
cristy8b350f62009-11-15 23:12:43 +00004484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4485$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004486 (eval "$ac_link_default") 2>&5
4487 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004490 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4491# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4492# in a Makefile. We should not override ac_cv_exeext if it was cached,
4493# so that the user can short-circuit this test for compilers unknown to
4494# Autoconf.
4495for ac_file in $ac_files ''
4496do
4497 test -f "$ac_file" || continue
4498 case $ac_file in
4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4500 ;;
4501 [ab].out )
4502 # We found the default executable, but exeext='' is most
4503 # certainly right.
4504 break;;
4505 *.* )
cristy8b350f62009-11-15 23:12:43 +00004506 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004507 then :; else
4508 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4509 fi
4510 # We set ac_cv_exeext here because the later test for it is not
4511 # safe: cross compilers may not add the suffix if given an `-o'
4512 # argument, so we may need to know it at that point already.
4513 # Even if this section looks crufty: it has the advantage of
4514 # actually working.
4515 break;;
4516 * )
4517 break;;
4518 esac
4519done
4520test "$ac_cv_exeext" = no && ac_cv_exeext=
4521
4522else
4523 ac_file=''
4524fi
cristy8b350f62009-11-15 23:12:43 +00004525if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527$as_echo "no" >&6; }
4528$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529sed 's/^/| /' conftest.$ac_ext >&5
4530
cristy8b350f62009-11-15 23:12:43 +00004531{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004533as_fn_error 77 "C compiler cannot create executables
4534See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004535else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004538fi
cristycd4c5312009-11-22 01:19:08 +00004539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4540$as_echo_n "checking for C compiler default output file name... " >&6; }
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4542$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004543ac_exeext=$ac_cv_exeext
4544
cristycd4c5312009-11-22 01:19:08 +00004545rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004546ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004549if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004550case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553esac
cristy8b350f62009-11-15 23:12:43 +00004554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004556 (eval "$ac_link") 2>&5
4557 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004560 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4561# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4562# work properly (i.e., refer to `conftest.exe'), while it won't with
4563# `rm'.
4564for ac_file in conftest.exe conftest conftest.*; do
4565 test -f "$ac_file" || continue
4566 case $ac_file in
4567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4568 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4569 break;;
4570 * ) break;;
4571 esac
4572done
4573else
cristy8b350f62009-11-15 23:12:43 +00004574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004576as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4577See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004578fi
cristycd4c5312009-11-22 01:19:08 +00004579rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004581$as_echo "$ac_cv_exeext" >&6; }
4582
4583rm -f conftest.$ac_ext
4584EXEEXT=$ac_cv_exeext
4585ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h. */
4588#include <stdio.h>
4589int
4590main ()
4591{
4592FILE *f = fopen ("conftest.out", "w");
4593 return ferror (f) || fclose (f) != 0;
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599ac_clean_files="$ac_clean_files conftest.out"
4600# Check that the compiler produces executables we can run. If not, either
4601# the compiler is broken, or we cross compile.
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4603$as_echo_n "checking whether we are cross compiling... " >&6; }
4604if test "$cross_compiling" != yes; then
4605 { { ac_try="$ac_link"
4606case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609esac
4610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611$as_echo "$ac_try_echo"; } >&5
4612 (eval "$ac_link") 2>&5
4613 ac_status=$?
4614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615 test $ac_status = 0; }
4616 if { ac_try='./conftest$ac_cv_exeext'
4617 { { case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620esac
4621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4622$as_echo "$ac_try_echo"; } >&5
4623 (eval "$ac_try") 2>&5
4624 ac_status=$?
4625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }; }; then
4627 cross_compiling=no
4628 else
4629 if test "$cross_compiling" = maybe; then
4630 cross_compiling=yes
4631 else
4632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004634as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004635If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004636See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004637 fi
4638 fi
4639fi
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4641$as_echo "$cross_compiling" >&6; }
4642
4643rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4644ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004646$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004647if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004648 $as_echo_n "(cached) " >&6
4649else
cristy8b350f62009-11-15 23:12:43 +00004650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004651/* end confdefs.h. */
4652
4653int
4654main ()
4655{
4656
4657 ;
4658 return 0;
4659}
4660_ACEOF
4661rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004662if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004663case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666esac
cristy8b350f62009-11-15 23:12:43 +00004667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004669 (eval "$ac_compile") 2>&5
4670 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004673 for ac_file in conftest.o conftest.obj conftest.*; do
4674 test -f "$ac_file" || continue;
4675 case $ac_file in
4676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4678 break;;
4679 esac
4680done
4681else
4682 $as_echo "$as_me: failed program was:" >&5
4683sed 's/^/| /' conftest.$ac_ext >&5
4684
cristy8b350f62009-11-15 23:12:43 +00004685{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004687as_fn_error $? "cannot compute suffix of object files: cannot compile
4688See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004689fi
cristy3ed852e2009-09-05 21:47:34 +00004690rm -f conftest.$ac_cv_objext conftest.$ac_ext
4691fi
cristy8b350f62009-11-15 23:12:43 +00004692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004693$as_echo "$ac_cv_objext" >&6; }
4694OBJEXT=$ac_cv_objext
4695ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004697$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004698if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004699 $as_echo_n "(cached) " >&6
4700else
cristy8b350f62009-11-15 23:12:43 +00004701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004702/* end confdefs.h. */
4703
4704int
4705main ()
4706{
4707#ifndef __GNUC__
4708 choke me
4709#endif
4710
4711 ;
4712 return 0;
4713}
4714_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004715if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004716 ac_compiler_gnu=yes
4717else
cristy8b350f62009-11-15 23:12:43 +00004718 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004719fi
cristy3ed852e2009-09-05 21:47:34 +00004720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721ac_cv_c_compiler_gnu=$ac_compiler_gnu
4722
4723fi
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4726if test $ac_compiler_gnu = yes; then
4727 GCC=yes
4728else
4729 GCC=
4730fi
4731ac_test_CFLAGS=${CFLAGS+set}
4732ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004734$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004735if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004736 $as_echo_n "(cached) " >&6
4737else
4738 ac_save_c_werror_flag=$ac_c_werror_flag
4739 ac_c_werror_flag=yes
4740 ac_cv_prog_cc_g=no
4741 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004743/* end confdefs.h. */
4744
4745int
4746main ()
4747{
4748
4749 ;
4750 return 0;
4751}
4752_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004753if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004754 ac_cv_prog_cc_g=yes
4755else
cristy8b350f62009-11-15 23:12:43 +00004756 CFLAGS=""
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004758/* end confdefs.h. */
4759
4760int
4761main ()
4762{
4763
4764 ;
4765 return 0;
4766}
4767_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004768if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004769
cristy8b350f62009-11-15 23:12:43 +00004770else
4771 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004772 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004774/* end confdefs.h. */
4775
4776int
4777main ()
4778{
4779
4780 ;
4781 return 0;
4782}
4783_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004784if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004785 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004786fi
cristy3ed852e2009-09-05 21:47:34 +00004787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788fi
cristy3ed852e2009-09-05 21:47:34 +00004789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790fi
cristy3ed852e2009-09-05 21:47:34 +00004791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 ac_c_werror_flag=$ac_save_c_werror_flag
4793fi
cristy8b350f62009-11-15 23:12:43 +00004794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004795$as_echo "$ac_cv_prog_cc_g" >&6; }
4796if test "$ac_test_CFLAGS" = set; then
4797 CFLAGS=$ac_save_CFLAGS
4798elif test $ac_cv_prog_cc_g = yes; then
4799 if test "$GCC" = yes; then
4800 CFLAGS="-g -O2"
4801 else
4802 CFLAGS="-g"
4803 fi
4804else
4805 if test "$GCC" = yes; then
4806 CFLAGS="-O2"
4807 else
4808 CFLAGS=
4809 fi
4810fi
cristy8b350f62009-11-15 23:12:43 +00004811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004812$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004813if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004814 $as_echo_n "(cached) " >&6
4815else
4816 ac_cv_prog_cc_c89=no
4817ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004819/* end confdefs.h. */
4820#include <stdarg.h>
4821#include <stdio.h>
4822#include <sys/types.h>
4823#include <sys/stat.h>
4824/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4825struct buf { int x; };
4826FILE * (*rcsopen) (struct buf *, struct stat *, int);
4827static char *e (p, i)
4828 char **p;
4829 int i;
4830{
4831 return p[i];
4832}
4833static char *f (char * (*g) (char **, int), char **p, ...)
4834{
4835 char *s;
4836 va_list v;
4837 va_start (v,p);
4838 s = g (p, va_arg (v,int));
4839 va_end (v);
4840 return s;
4841}
4842
4843/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4844 function prototypes and stuff, but not '\xHH' hex character constants.
4845 These don't provoke an error unfortunately, instead are silently treated
4846 as 'x'. The following induces an error, until -std is added to get
4847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4848 array size at least. It's necessary to write '\x00'==0 to get something
4849 that's true only with -std. */
4850int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4851
4852/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4853 inside strings and character constants. */
4854#define FOO(x) 'x'
4855int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4856
4857int test (int i, double x);
4858struct s1 {int (*f) (int a);};
4859struct s2 {int (*f) (double a);};
4860int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4861int argc;
4862char **argv;
4863int
4864main ()
4865{
4866return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4867 ;
4868 return 0;
4869}
4870_ACEOF
4871for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4872 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4873do
4874 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004875 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004876 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004877fi
cristy3ed852e2009-09-05 21:47:34 +00004878rm -f core conftest.err conftest.$ac_objext
4879 test "x$ac_cv_prog_cc_c89" != "xno" && break
4880done
4881rm -f conftest.$ac_ext
4882CC=$ac_save_CC
4883
4884fi
4885# AC_CACHE_VAL
4886case "x$ac_cv_prog_cc_c89" in
4887 x)
cristy8b350f62009-11-15 23:12:43 +00004888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004889$as_echo "none needed" >&6; } ;;
4890 xno)
cristy8b350f62009-11-15 23:12:43 +00004891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004892$as_echo "unsupported" >&6; } ;;
4893 *)
4894 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004896$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4897esac
cristy8b350f62009-11-15 23:12:43 +00004898if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004899
cristy8b350f62009-11-15 23:12:43 +00004900fi
cristy3ed852e2009-09-05 21:47:34 +00004901
4902ac_ext=c
4903ac_cpp='$CPP $CPPFLAGS'
4904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004907
cristy73bd4a52010-10-05 11:24:23 +00004908depcc="$CC" am_compiler_list=
4909
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4911$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004912if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004913 $as_echo_n "(cached) " >&6
4914else
4915 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4916 # We make a subdir and do the tests there. Otherwise we can end up
4917 # making bogus files that we don't know about and never remove. For
4918 # instance it was reported that on HP-UX the gcc test will end up
4919 # making a dummy file named `D' -- because `-MD' means `put the output
4920 # in D'.
4921 mkdir conftest.dir
4922 # Copy depcomp to subdir because otherwise we won't find it if we're
4923 # using a relative directory.
4924 cp "$am_depcomp" conftest.dir
4925 cd conftest.dir
4926 # We will build objects and dependencies in a subdirectory because
4927 # it helps to detect inapplicable dependency modes. For instance
4928 # both Tru64's cc and ICC support -MD to output dependencies as a
4929 # side effect of compilation, but ICC will put the dependencies in
4930 # the current directory while Tru64 will put them in the object
4931 # directory.
4932 mkdir sub
4933
4934 am_cv_CC_dependencies_compiler_type=none
4935 if test "$am_compiler_list" = ""; then
4936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4937 fi
4938 am__universal=false
4939 case " $depcc " in #(
4940 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4941 esac
4942
4943 for depmode in $am_compiler_list; do
4944 # Setup a source with many dependencies, because some compilers
4945 # like to wrap large dependency lists on column 80 (with \), and
4946 # we should not choose a depcomp mode which is confused by this.
4947 #
4948 # We need to recreate these files for each test, as the compiler may
4949 # overwrite some of them when testing with obscure command lines.
4950 # This happens at least with the AIX C compiler.
4951 : > sub/conftest.c
4952 for i in 1 2 3 4 5 6; do
4953 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4954 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4955 # Solaris 8's {/usr,}/bin/sh.
4956 touch sub/conftst$i.h
4957 done
4958 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4959
4960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4961 # mode. It turns out that the SunPro C++ compiler does not properly
4962 # handle `-M -o', and we need to detect this. Also, some Intel
4963 # versions had trouble with output in subdirs
4964 am__obj=sub/conftest.${OBJEXT-o}
4965 am__minus_obj="-o $am__obj"
4966 case $depmode in
4967 gcc)
4968 # This depmode causes a compiler race in universal mode.
4969 test "$am__universal" = false || continue
4970 ;;
4971 nosideeffect)
4972 # after this tag, mechanisms are not by side-effect, so they'll
4973 # only be used when explicitly requested
4974 if test "x$enable_dependency_tracking" = xyes; then
4975 continue
4976 else
4977 break
4978 fi
4979 ;;
4980 msvisualcpp | msvcmsys)
4981 # This compiler won't grok `-c -o', but also, the minuso test has
4982 # not run yet. These depmodes are late enough in the game, and
4983 # so weak that their functioning should not be impacted.
4984 am__obj=conftest.${OBJEXT-o}
4985 am__minus_obj=
4986 ;;
4987 none) break ;;
4988 esac
4989 if depmode=$depmode \
4990 source=sub/conftest.c object=$am__obj \
4991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4992 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4993 >/dev/null 2>conftest.err &&
4994 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4996 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4998 # icc doesn't choke on unknown options, it will just issue warnings
4999 # or remarks (even with -Werror). So we grep stderr for any message
5000 # that says an option was ignored or not supported.
5001 # When given -MP, icc 7.0 and 7.1 complain thusly:
5002 # icc: Command line warning: ignoring option '-M'; no argument required
5003 # The diagnosis changed in icc 8.0:
5004 # icc: Command line remark: option '-MP' not supported
5005 if (grep 'ignoring option' conftest.err ||
5006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5007 am_cv_CC_dependencies_compiler_type=$depmode
5008 break
5009 fi
5010 fi
5011 done
5012
5013 cd ..
5014 rm -rf conftest.dir
5015else
5016 am_cv_CC_dependencies_compiler_type=none
5017fi
5018
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5021$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5022CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5023
5024 if
5025 test "x$enable_dependency_tracking" != xno \
5026 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5027 am__fastdepCC_TRUE=
5028 am__fastdepCC_FALSE='#'
5029else
5030 am__fastdepCC_TRUE='#'
5031 am__fastdepCC_FALSE=
5032fi
5033
5034
cristy3ed852e2009-09-05 21:47:34 +00005035
cristya0b81c32010-01-22 02:54:33 +00005036ac_ext=c
5037ac_cpp='$CPP $CPPFLAGS'
5038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5042$as_echo_n "checking how to run the C preprocessor... " >&6; }
5043# On Suns, sometimes $CPP names a directory.
5044if test -n "$CPP" && test -d "$CPP"; then
5045 CPP=
5046fi
5047if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005048 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005049 $as_echo_n "(cached) " >&6
5050else
5051 # Double quotes because CPP needs to be expanded
5052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5053 do
5054 ac_preproc_ok=false
5055for ac_c_preproc_warn_flag in '' yes
5056do
5057 # Use a header file that comes with gcc, so configuring glibc
5058 # with a fresh cross-compiler works.
5059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060 # <limits.h> exists even on freestanding compilers.
5061 # On the NeXT, cc -E runs the code through the compiler's parser,
5062 # not just through cpp. "Syntax error" is here to catch this case.
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h. */
5065#ifdef __STDC__
5066# include <limits.h>
5067#else
5068# include <assert.h>
5069#endif
5070 Syntax error
5071_ACEOF
5072if ac_fn_c_try_cpp "$LINENO"; then :
5073
5074else
5075 # Broken: fails on valid input.
5076continue
5077fi
cristyda16f162011-02-19 23:52:17 +00005078rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005079
5080 # OK, works on sane cases. Now check whether nonexistent headers
5081 # can be detected and how.
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h. */
5084#include <ac_nonexistent.h>
5085_ACEOF
5086if ac_fn_c_try_cpp "$LINENO"; then :
5087 # Broken: success on invalid input.
5088continue
5089else
5090 # Passes both tests.
5091ac_preproc_ok=:
5092break
5093fi
cristyda16f162011-02-19 23:52:17 +00005094rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005095
5096done
5097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005098rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005099if $ac_preproc_ok; then :
5100 break
5101fi
5102
5103 done
5104 ac_cv_prog_CPP=$CPP
5105
5106fi
5107 CPP=$ac_cv_prog_CPP
5108else
5109 ac_cv_prog_CPP=$CPP
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5112$as_echo "$CPP" >&6; }
5113ac_preproc_ok=false
5114for ac_c_preproc_warn_flag in '' yes
5115do
5116 # Use a header file that comes with gcc, so configuring glibc
5117 # with a fresh cross-compiler works.
5118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119 # <limits.h> exists even on freestanding compilers.
5120 # On the NeXT, cc -E runs the code through the compiler's parser,
5121 # not just through cpp. "Syntax error" is here to catch this case.
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h. */
5124#ifdef __STDC__
5125# include <limits.h>
5126#else
5127# include <assert.h>
5128#endif
5129 Syntax error
5130_ACEOF
5131if ac_fn_c_try_cpp "$LINENO"; then :
5132
5133else
5134 # Broken: fails on valid input.
5135continue
5136fi
cristyda16f162011-02-19 23:52:17 +00005137rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005138
5139 # OK, works on sane cases. Now check whether nonexistent headers
5140 # can be detected and how.
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142/* end confdefs.h. */
5143#include <ac_nonexistent.h>
5144_ACEOF
5145if ac_fn_c_try_cpp "$LINENO"; then :
5146 # Broken: success on invalid input.
5147continue
5148else
5149 # Passes both tests.
5150ac_preproc_ok=:
5151break
5152fi
cristyda16f162011-02-19 23:52:17 +00005153rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005154
5155done
5156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005157rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005158if $ac_preproc_ok; then :
5159
5160else
5161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005163as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5164See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005165fi
5166
5167ac_ext=c
5168ac_cpp='$CPP $CPPFLAGS'
5169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5175$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005176if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005177 $as_echo_n "(cached) " >&6
5178else
5179 if test -z "$GREP"; then
5180 ac_path_GREP_found=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_prog in grep ggrep; do
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5190 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5191# Check for GNU ac_path_GREP and select it if it is found.
5192 # Check for GNU $ac_path_GREP
5193case `"$ac_path_GREP" --version 2>&1` in
5194*GNU*)
5195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5196*)
5197 ac_count=0
5198 $as_echo_n 0123456789 >"conftest.in"
5199 while :
5200 do
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 $as_echo 'GREP' >> "conftest.nl"
5205 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207 as_fn_arith $ac_count + 1 && ac_count=$as_val
5208 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_GREP="$ac_path_GREP"
5211 ac_path_GREP_max=$ac_count
5212 fi
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5215 done
5216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217esac
5218
5219 $ac_path_GREP_found && break 3
5220 done
5221 done
5222 done
5223IFS=$as_save_IFS
5224 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005225 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005226 fi
5227else
5228 ac_cv_path_GREP=$GREP
5229fi
5230
5231fi
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5233$as_echo "$ac_cv_path_GREP" >&6; }
5234 GREP="$ac_cv_path_GREP"
5235
5236
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5238$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005239if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005240 $as_echo_n "(cached) " >&6
5241else
5242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5243 then ac_cv_path_EGREP="$GREP -E"
5244 else
5245 if test -z "$EGREP"; then
5246 ac_path_EGREP_found=false
5247 # Loop through the user's path and test for each of PROGNAME-LIST
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_prog in egrep; do
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5257# Check for GNU ac_path_EGREP and select it if it is found.
5258 # Check for GNU $ac_path_EGREP
5259case `"$ac_path_EGREP" --version 2>&1` in
5260*GNU*)
5261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5262*)
5263 ac_count=0
5264 $as_echo_n 0123456789 >"conftest.in"
5265 while :
5266 do
5267 cat "conftest.in" "conftest.in" >"conftest.tmp"
5268 mv "conftest.tmp" "conftest.in"
5269 cp "conftest.in" "conftest.nl"
5270 $as_echo 'EGREP' >> "conftest.nl"
5271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273 as_fn_arith $ac_count + 1 && ac_count=$as_val
5274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5275 # Best one so far, save it but keep looking for a better one
5276 ac_cv_path_EGREP="$ac_path_EGREP"
5277 ac_path_EGREP_max=$ac_count
5278 fi
5279 # 10*(2^10) chars as input seems more than enough
5280 test $ac_count -gt 10 && break
5281 done
5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283esac
5284
5285 $ac_path_EGREP_found && break 3
5286 done
5287 done
5288 done
5289IFS=$as_save_IFS
5290 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005291 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005292 fi
5293else
5294 ac_cv_path_EGREP=$EGREP
5295fi
5296
5297 fi
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5300$as_echo "$ac_cv_path_EGREP" >&6; }
5301 EGREP="$ac_cv_path_EGREP"
5302
5303
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5305$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005306if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005307 $as_echo_n "(cached) " >&6
5308else
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h. */
5311#include <stdlib.h>
5312#include <stdarg.h>
5313#include <string.h>
5314#include <float.h>
5315
5316int
5317main ()
5318{
5319
5320 ;
5321 return 0;
5322}
5323_ACEOF
5324if ac_fn_c_try_compile "$LINENO"; then :
5325 ac_cv_header_stdc=yes
5326else
5327 ac_cv_header_stdc=no
5328fi
5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330
5331if test $ac_cv_header_stdc = yes; then
5332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h. */
5335#include <string.h>
5336
5337_ACEOF
5338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 $EGREP "memchr" >/dev/null 2>&1; then :
5340
5341else
5342 ac_cv_header_stdc=no
5343fi
5344rm -f conftest*
5345
5346fi
5347
5348if test $ac_cv_header_stdc = yes; then
5349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h. */
5352#include <stdlib.h>
5353
5354_ACEOF
5355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356 $EGREP "free" >/dev/null 2>&1; then :
5357
5358else
5359 ac_cv_header_stdc=no
5360fi
5361rm -f conftest*
5362
5363fi
5364
5365if test $ac_cv_header_stdc = yes; then
5366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5367 if test "$cross_compiling" = yes; then :
5368 :
5369else
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h. */
5372#include <ctype.h>
5373#include <stdlib.h>
5374#if ((' ' & 0x0FF) == 0x020)
5375# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5376# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5377#else
5378# define ISLOWER(c) \
5379 (('a' <= (c) && (c) <= 'i') \
5380 || ('j' <= (c) && (c) <= 'r') \
5381 || ('s' <= (c) && (c) <= 'z'))
5382# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5383#endif
5384
5385#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5386int
5387main ()
5388{
5389 int i;
5390 for (i = 0; i < 256; i++)
5391 if (XOR (islower (i), ISLOWER (i))
5392 || toupper (i) != TOUPPER (i))
5393 return 2;
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_run "$LINENO"; then :
5398
5399else
5400 ac_cv_header_stdc=no
5401fi
5402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5403 conftest.$ac_objext conftest.beam conftest.$ac_ext
5404fi
5405
5406fi
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5409$as_echo "$ac_cv_header_stdc" >&6; }
5410if test $ac_cv_header_stdc = yes; then
5411
5412$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5413
5414fi
5415
5416# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5417for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5418 inttypes.h stdint.h unistd.h
5419do :
5420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5421ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5422"
cristy98dddb52010-11-04 00:30:15 +00005423if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005424 cat >>confdefs.h <<_ACEOF
5425#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5426_ACEOF
5427
5428fi
5429
5430done
5431
5432
5433
5434 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 +00005435if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005436 MINIX=yes
5437else
5438 MINIX=
5439fi
5440
5441
5442 if test "$MINIX" = yes; then
5443
5444$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5445
5446
5447$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5448
5449
5450$as_echo "#define _MINIX 1" >>confdefs.h
5451
5452 fi
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5456$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005457if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005458 $as_echo_n "(cached) " >&6
5459else
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462
5463# define __EXTENSIONS__ 1
5464 $ac_includes_default
5465int
5466main ()
5467{
5468
5469 ;
5470 return 0;
5471}
5472_ACEOF
5473if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_cv_safe_to_define___extensions__=yes
5475else
5476 ac_cv_safe_to_define___extensions__=no
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479fi
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5481$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5482 test $ac_cv_safe_to_define___extensions__ = yes &&
5483 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5484
5485 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5486
5487 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5488
5489 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5490
5491 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5492
5493
5494
5495# Check for programs
5496ac_ext=c
5497ac_cpp='$CPP $CPPFLAGS'
5498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500ac_compiler_gnu=$ac_cv_c_compiler_gnu
5501if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}gcc; ac_word=$2
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005506if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005507 $as_echo_n "(cached) " >&6
5508else
5509 if test -n "$CC"; then
5510 ac_cv_prog_CC="$CC" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523done
5524 done
5525IFS=$as_save_IFS
5526
5527fi
5528fi
5529CC=$ac_cv_prog_CC
5530if test -n "$CC"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5532$as_echo "$CC" >&6; }
5533else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538
5539fi
5540if test -z "$ac_cv_prog_CC"; then
5541 ac_ct_CC=$CC
5542 # Extract the first word of "gcc", so it can be a program name with args.
5543set dummy gcc; ac_word=$2
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005546if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005547 $as_echo_n "(cached) " >&6
5548else
5549 if test -n "$ac_ct_CC"; then
5550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_ac_ct_CC="gcc"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5562 fi
5563done
5564 done
5565IFS=$as_save_IFS
5566
5567fi
5568fi
5569ac_ct_CC=$ac_cv_prog_ac_ct_CC
5570if test -n "$ac_ct_CC"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5572$as_echo "$ac_ct_CC" >&6; }
5573else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576fi
5577
5578 if test "x$ac_ct_CC" = x; then
5579 CC=""
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582yes:)
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585ac_tool_warned=yes ;;
5586esac
5587 CC=$ac_ct_CC
5588 fi
5589else
5590 CC="$ac_cv_prog_CC"
5591fi
5592
5593if test -z "$CC"; then
5594 if test -n "$ac_tool_prefix"; then
5595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5596set dummy ${ac_tool_prefix}cc; ac_word=$2
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005599if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005600 $as_echo_n "(cached) " >&6
5601else
5602 if test -n "$CC"; then
5603 ac_cv_prog_CC="$CC" # Let the user override the test.
5604else
5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612 ac_cv_prog_CC="${ac_tool_prefix}cc"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616done
5617 done
5618IFS=$as_save_IFS
5619
5620fi
5621fi
5622CC=$ac_cv_prog_CC
5623if test -n "$CC"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5625$as_echo "$CC" >&6; }
5626else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628$as_echo "no" >&6; }
5629fi
5630
5631
5632 fi
5633fi
5634if test -z "$CC"; then
5635 # Extract the first word of "cc", so it can be a program name with args.
5636set dummy cc; ac_word=$2
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005639if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005640 $as_echo_n "(cached) " >&6
5641else
5642 if test -n "$CC"; then
5643 ac_cv_prog_CC="$CC" # Let the user override the test.
5644else
5645 ac_prog_rejected=no
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5654 ac_prog_rejected=yes
5655 continue
5656 fi
5657 ac_cv_prog_CC="cc"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661done
5662 done
5663IFS=$as_save_IFS
5664
5665if test $ac_prog_rejected = yes; then
5666 # We found a bogon in the path, so make sure we never use it.
5667 set dummy $ac_cv_prog_CC
5668 shift
5669 if test $# != 0; then
5670 # We chose a different compiler from the bogus one.
5671 # However, it has the same basename, so the bogon will be chosen
5672 # first if we set CC to just the basename; use the full file name.
5673 shift
5674 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5675 fi
5676fi
5677fi
5678fi
5679CC=$ac_cv_prog_CC
5680if test -n "$CC"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5682$as_echo "$CC" >&6; }
5683else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685$as_echo "no" >&6; }
5686fi
5687
5688
5689fi
5690if test -z "$CC"; then
5691 if test -n "$ac_tool_prefix"; then
5692 for ac_prog in cl.exe
5693 do
5694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005698if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005699 $as_echo_n "(cached) " >&6
5700else
5701 if test -n "$CC"; then
5702 ac_cv_prog_CC="$CC" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715done
5716 done
5717IFS=$as_save_IFS
5718
5719fi
5720fi
5721CC=$ac_cv_prog_CC
5722if test -n "$CC"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5724$as_echo "$CC" >&6; }
5725else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727$as_echo "no" >&6; }
5728fi
5729
5730
5731 test -n "$CC" && break
5732 done
5733fi
5734if test -z "$CC"; then
5735 ac_ct_CC=$CC
5736 for ac_prog in cl.exe
5737do
5738 # Extract the first word of "$ac_prog", so it can be a program name with args.
5739set dummy $ac_prog; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005742if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005743 $as_echo_n "(cached) " >&6
5744else
5745 if test -n "$ac_ct_CC"; then
5746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_prog_ac_ct_CC="$ac_prog"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760 done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765ac_ct_CC=$ac_cv_prog_ac_ct_CC
5766if test -n "$ac_ct_CC"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5768$as_echo "$ac_ct_CC" >&6; }
5769else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5774
5775 test -n "$ac_ct_CC" && break
5776done
5777
5778 if test "x$ac_ct_CC" = x; then
5779 CC=""
5780 else
5781 case $cross_compiling:$ac_tool_warned in
5782yes:)
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5785ac_tool_warned=yes ;;
5786esac
5787 CC=$ac_ct_CC
5788 fi
5789fi
5790
5791fi
5792
5793
5794test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005796as_fn_error $? "no acceptable C compiler found in \$PATH
5797See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005798
5799# Provide some information about the compiler.
5800$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5801set X $ac_compile
5802ac_compiler=$2
5803for ac_option in --version -v -V -qversion; do
5804 { { ac_try="$ac_compiler $ac_option >&5"
5805case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5810$as_echo "$ac_try_echo"; } >&5
5811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5812 ac_status=$?
5813 if test -s conftest.err; then
5814 sed '10a\
5815... rest of stderr output deleted ...
5816 10q' conftest.err >conftest.er1
5817 cat conftest.er1 >&5
5818 fi
5819 rm -f conftest.er1 conftest.err
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; }
5822done
5823
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5825$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005826if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005827 $as_echo_n "(cached) " >&6
5828else
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h. */
5831
5832int
5833main ()
5834{
5835#ifndef __GNUC__
5836 choke me
5837#endif
5838
5839 ;
5840 return 0;
5841}
5842_ACEOF
5843if ac_fn_c_try_compile "$LINENO"; then :
5844 ac_compiler_gnu=yes
5845else
5846 ac_compiler_gnu=no
5847fi
5848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849ac_cv_c_compiler_gnu=$ac_compiler_gnu
5850
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5853$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5854if test $ac_compiler_gnu = yes; then
5855 GCC=yes
5856else
5857 GCC=
5858fi
5859ac_test_CFLAGS=${CFLAGS+set}
5860ac_save_CFLAGS=$CFLAGS
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5862$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005863if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005864 $as_echo_n "(cached) " >&6
5865else
5866 ac_save_c_werror_flag=$ac_c_werror_flag
5867 ac_c_werror_flag=yes
5868 ac_cv_prog_cc_g=no
5869 CFLAGS="-g"
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h. */
5872
5873int
5874main ()
5875{
5876
5877 ;
5878 return 0;
5879}
5880_ACEOF
5881if ac_fn_c_try_compile "$LINENO"; then :
5882 ac_cv_prog_cc_g=yes
5883else
5884 CFLAGS=""
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886/* end confdefs.h. */
5887
5888int
5889main ()
5890{
5891
5892 ;
5893 return 0;
5894}
5895_ACEOF
5896if ac_fn_c_try_compile "$LINENO"; then :
5897
5898else
5899 ac_c_werror_flag=$ac_save_c_werror_flag
5900 CFLAGS="-g"
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h. */
5903
5904int
5905main ()
5906{
5907
5908 ;
5909 return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"; then :
5913 ac_cv_prog_cc_g=yes
5914fi
5915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916fi
5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918fi
5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 ac_c_werror_flag=$ac_save_c_werror_flag
5921fi
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5923$as_echo "$ac_cv_prog_cc_g" >&6; }
5924if test "$ac_test_CFLAGS" = set; then
5925 CFLAGS=$ac_save_CFLAGS
5926elif test $ac_cv_prog_cc_g = yes; then
5927 if test "$GCC" = yes; then
5928 CFLAGS="-g -O2"
5929 else
5930 CFLAGS="-g"
5931 fi
5932else
5933 if test "$GCC" = yes; then
5934 CFLAGS="-O2"
5935 else
5936 CFLAGS=
5937 fi
5938fi
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5940$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005941if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005942 $as_echo_n "(cached) " >&6
5943else
5944 ac_cv_prog_cc_c89=no
5945ac_save_CC=$CC
5946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h. */
5948#include <stdarg.h>
5949#include <stdio.h>
5950#include <sys/types.h>
5951#include <sys/stat.h>
5952/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5953struct buf { int x; };
5954FILE * (*rcsopen) (struct buf *, struct stat *, int);
5955static char *e (p, i)
5956 char **p;
5957 int i;
5958{
5959 return p[i];
5960}
5961static char *f (char * (*g) (char **, int), char **p, ...)
5962{
5963 char *s;
5964 va_list v;
5965 va_start (v,p);
5966 s = g (p, va_arg (v,int));
5967 va_end (v);
5968 return s;
5969}
5970
5971/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5972 function prototypes and stuff, but not '\xHH' hex character constants.
5973 These don't provoke an error unfortunately, instead are silently treated
5974 as 'x'. The following induces an error, until -std is added to get
5975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5976 array size at least. It's necessary to write '\x00'==0 to get something
5977 that's true only with -std. */
5978int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5979
5980/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5981 inside strings and character constants. */
5982#define FOO(x) 'x'
5983int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5984
5985int test (int i, double x);
5986struct s1 {int (*f) (int a);};
5987struct s2 {int (*f) (double a);};
5988int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5989int argc;
5990char **argv;
5991int
5992main ()
5993{
5994return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5995 ;
5996 return 0;
5997}
5998_ACEOF
5999for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6000 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6001do
6002 CC="$ac_save_CC $ac_arg"
6003 if ac_fn_c_try_compile "$LINENO"; then :
6004 ac_cv_prog_cc_c89=$ac_arg
6005fi
6006rm -f core conftest.err conftest.$ac_objext
6007 test "x$ac_cv_prog_cc_c89" != "xno" && break
6008done
6009rm -f conftest.$ac_ext
6010CC=$ac_save_CC
6011
6012fi
6013# AC_CACHE_VAL
6014case "x$ac_cv_prog_cc_c89" in
6015 x)
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6017$as_echo "none needed" >&6; } ;;
6018 xno)
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6020$as_echo "unsupported" >&6; } ;;
6021 *)
6022 CC="$CC $ac_cv_prog_cc_c89"
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6024$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6025esac
6026if test "x$ac_cv_prog_cc_c89" != xno; then :
6027
6028fi
6029
6030ac_ext=c
6031ac_cpp='$CPP $CPPFLAGS'
6032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
cristy73bd4a52010-10-05 11:24:23 +00006036depcc="$CC" am_compiler_list=
6037
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6039$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006040if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006041 $as_echo_n "(cached) " >&6
6042else
6043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6044 # We make a subdir and do the tests there. Otherwise we can end up
6045 # making bogus files that we don't know about and never remove. For
6046 # instance it was reported that on HP-UX the gcc test will end up
6047 # making a dummy file named `D' -- because `-MD' means `put the output
6048 # in D'.
6049 mkdir conftest.dir
6050 # Copy depcomp to subdir because otherwise we won't find it if we're
6051 # using a relative directory.
6052 cp "$am_depcomp" conftest.dir
6053 cd conftest.dir
6054 # We will build objects and dependencies in a subdirectory because
6055 # it helps to detect inapplicable dependency modes. For instance
6056 # both Tru64's cc and ICC support -MD to output dependencies as a
6057 # side effect of compilation, but ICC will put the dependencies in
6058 # the current directory while Tru64 will put them in the object
6059 # directory.
6060 mkdir sub
6061
6062 am_cv_CC_dependencies_compiler_type=none
6063 if test "$am_compiler_list" = ""; then
6064 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6065 fi
6066 am__universal=false
6067 case " $depcc " in #(
6068 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6069 esac
6070
6071 for depmode in $am_compiler_list; do
6072 # Setup a source with many dependencies, because some compilers
6073 # like to wrap large dependency lists on column 80 (with \), and
6074 # we should not choose a depcomp mode which is confused by this.
6075 #
6076 # We need to recreate these files for each test, as the compiler may
6077 # overwrite some of them when testing with obscure command lines.
6078 # This happens at least with the AIX C compiler.
6079 : > sub/conftest.c
6080 for i in 1 2 3 4 5 6; do
6081 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6082 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6083 # Solaris 8's {/usr,}/bin/sh.
6084 touch sub/conftst$i.h
6085 done
6086 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6087
6088 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6089 # mode. It turns out that the SunPro C++ compiler does not properly
6090 # handle `-M -o', and we need to detect this. Also, some Intel
6091 # versions had trouble with output in subdirs
6092 am__obj=sub/conftest.${OBJEXT-o}
6093 am__minus_obj="-o $am__obj"
6094 case $depmode in
6095 gcc)
6096 # This depmode causes a compiler race in universal mode.
6097 test "$am__universal" = false || continue
6098 ;;
6099 nosideeffect)
6100 # after this tag, mechanisms are not by side-effect, so they'll
6101 # only be used when explicitly requested
6102 if test "x$enable_dependency_tracking" = xyes; then
6103 continue
6104 else
6105 break
6106 fi
6107 ;;
6108 msvisualcpp | msvcmsys)
6109 # This compiler won't grok `-c -o', but also, the minuso test has
6110 # not run yet. These depmodes are late enough in the game, and
6111 # so weak that their functioning should not be impacted.
6112 am__obj=conftest.${OBJEXT-o}
6113 am__minus_obj=
6114 ;;
6115 none) break ;;
6116 esac
6117 if depmode=$depmode \
6118 source=sub/conftest.c object=$am__obj \
6119 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6120 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6121 >/dev/null 2>conftest.err &&
6122 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6123 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6124 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6125 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6126 # icc doesn't choke on unknown options, it will just issue warnings
6127 # or remarks (even with -Werror). So we grep stderr for any message
6128 # that says an option was ignored or not supported.
6129 # When given -MP, icc 7.0 and 7.1 complain thusly:
6130 # icc: Command line warning: ignoring option '-M'; no argument required
6131 # The diagnosis changed in icc 8.0:
6132 # icc: Command line remark: option '-MP' not supported
6133 if (grep 'ignoring option' conftest.err ||
6134 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6135 am_cv_CC_dependencies_compiler_type=$depmode
6136 break
6137 fi
6138 fi
6139 done
6140
6141 cd ..
6142 rm -rf conftest.dir
6143else
6144 am_cv_CC_dependencies_compiler_type=none
6145fi
6146
6147fi
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6149$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6150CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6151
6152 if
6153 test "x$enable_dependency_tracking" != xno \
6154 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6155 am__fastdepCC_TRUE=
6156 am__fastdepCC_FALSE='#'
6157else
6158 am__fastdepCC_TRUE='#'
6159 am__fastdepCC_FALSE=
6160fi
6161
6162
cristy95646052009-11-28 23:05:30 +00006163ac_ext=cpp
6164ac_cpp='$CXXCPP $CPPFLAGS'
6165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6168if test -z "$CXX"; then
6169 if test -n "$CCC"; then
6170 CXX=$CCC
6171 else
6172 if test -n "$ac_tool_prefix"; then
6173 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6174 do
6175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006179if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006180 $as_echo_n "(cached) " >&6
6181else
6182 if test -n "$CXX"; then
6183 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6195 fi
6196done
6197 done
6198IFS=$as_save_IFS
6199
6200fi
6201fi
6202CXX=$ac_cv_prog_CXX
6203if test -n "$CXX"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6205$as_echo "$CXX" >&6; }
6206else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208$as_echo "no" >&6; }
6209fi
6210
6211
6212 test -n "$CXX" && break
6213 done
6214fi
6215if test -z "$CXX"; then
6216 ac_ct_CXX=$CXX
6217 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6218do
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220set dummy $ac_prog; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006223if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006224 $as_echo_n "(cached) " >&6
6225else
6226 if test -n "$ac_ct_CXX"; then
6227 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_ac_ct_CXX="$ac_prog"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240done
6241 done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6247if test -n "$ac_ct_CXX"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6249$as_echo "$ac_ct_CXX" >&6; }
6250else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255
6256 test -n "$ac_ct_CXX" && break
6257done
6258
6259 if test "x$ac_ct_CXX" = x; then
6260 CXX="g++"
6261 else
6262 case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266ac_tool_warned=yes ;;
6267esac
6268 CXX=$ac_ct_CXX
6269 fi
6270fi
6271
6272 fi
6273fi
6274# Provide some information about the compiler.
6275$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6276set X $ac_compile
6277ac_compiler=$2
6278for ac_option in --version -v -V -qversion; do
6279 { { ac_try="$ac_compiler $ac_option >&5"
6280case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283esac
6284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6285$as_echo "$ac_try_echo"; } >&5
6286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6287 ac_status=$?
6288 if test -s conftest.err; then
6289 sed '10a\
6290... rest of stderr output deleted ...
6291 10q' conftest.err >conftest.er1
6292 cat conftest.er1 >&5
6293 fi
6294 rm -f conftest.er1 conftest.err
6295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6296 test $ac_status = 0; }
6297done
6298
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6300$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006301if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006302 $as_echo_n "(cached) " >&6
6303else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305/* end confdefs.h. */
6306
6307int
6308main ()
6309{
6310#ifndef __GNUC__
6311 choke me
6312#endif
6313
6314 ;
6315 return 0;
6316}
6317_ACEOF
6318if ac_fn_cxx_try_compile "$LINENO"; then :
6319 ac_compiler_gnu=yes
6320else
6321 ac_compiler_gnu=no
6322fi
6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6325
6326fi
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6328$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6329if test $ac_compiler_gnu = yes; then
6330 GXX=yes
6331else
6332 GXX=
6333fi
6334ac_test_CXXFLAGS=${CXXFLAGS+set}
6335ac_save_CXXFLAGS=$CXXFLAGS
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6337$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006338if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006339 $as_echo_n "(cached) " >&6
6340else
6341 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6342 ac_cxx_werror_flag=yes
6343 ac_cv_prog_cxx_g=no
6344 CXXFLAGS="-g"
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h. */
6347
6348int
6349main ()
6350{
6351
6352 ;
6353 return 0;
6354}
6355_ACEOF
6356if ac_fn_cxx_try_compile "$LINENO"; then :
6357 ac_cv_prog_cxx_g=yes
6358else
6359 CXXFLAGS=""
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h. */
6362
6363int
6364main ()
6365{
6366
6367 ;
6368 return 0;
6369}
6370_ACEOF
6371if ac_fn_cxx_try_compile "$LINENO"; then :
6372
6373else
6374 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6375 CXXFLAGS="-g"
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h. */
6378
6379int
6380main ()
6381{
6382
6383 ;
6384 return 0;
6385}
6386_ACEOF
6387if ac_fn_cxx_try_compile "$LINENO"; then :
6388 ac_cv_prog_cxx_g=yes
6389fi
6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391fi
6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6396fi
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6398$as_echo "$ac_cv_prog_cxx_g" >&6; }
6399if test "$ac_test_CXXFLAGS" = set; then
6400 CXXFLAGS=$ac_save_CXXFLAGS
6401elif test $ac_cv_prog_cxx_g = yes; then
6402 if test "$GXX" = yes; then
6403 CXXFLAGS="-g -O2"
6404 else
6405 CXXFLAGS="-g"
6406 fi
6407else
6408 if test "$GXX" = yes; then
6409 CXXFLAGS="-O2"
6410 else
6411 CXXFLAGS=
6412 fi
6413fi
6414ac_ext=c
6415ac_cpp='$CPP $CPPFLAGS'
6416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6418ac_compiler_gnu=$ac_cv_c_compiler_gnu
6419
cristy73bd4a52010-10-05 11:24:23 +00006420depcc="$CXX" am_compiler_list=
6421
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6423$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006424if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006425 $as_echo_n "(cached) " >&6
6426else
6427 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6428 # We make a subdir and do the tests there. Otherwise we can end up
6429 # making bogus files that we don't know about and never remove. For
6430 # instance it was reported that on HP-UX the gcc test will end up
6431 # making a dummy file named `D' -- because `-MD' means `put the output
6432 # in D'.
6433 mkdir conftest.dir
6434 # Copy depcomp to subdir because otherwise we won't find it if we're
6435 # using a relative directory.
6436 cp "$am_depcomp" conftest.dir
6437 cd conftest.dir
6438 # We will build objects and dependencies in a subdirectory because
6439 # it helps to detect inapplicable dependency modes. For instance
6440 # both Tru64's cc and ICC support -MD to output dependencies as a
6441 # side effect of compilation, but ICC will put the dependencies in
6442 # the current directory while Tru64 will put them in the object
6443 # directory.
6444 mkdir sub
6445
6446 am_cv_CXX_dependencies_compiler_type=none
6447 if test "$am_compiler_list" = ""; then
6448 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6449 fi
6450 am__universal=false
6451 case " $depcc " in #(
6452 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6453 esac
6454
6455 for depmode in $am_compiler_list; do
6456 # Setup a source with many dependencies, because some compilers
6457 # like to wrap large dependency lists on column 80 (with \), and
6458 # we should not choose a depcomp mode which is confused by this.
6459 #
6460 # We need to recreate these files for each test, as the compiler may
6461 # overwrite some of them when testing with obscure command lines.
6462 # This happens at least with the AIX C compiler.
6463 : > sub/conftest.c
6464 for i in 1 2 3 4 5 6; do
6465 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6466 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6467 # Solaris 8's {/usr,}/bin/sh.
6468 touch sub/conftst$i.h
6469 done
6470 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6471
6472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6473 # mode. It turns out that the SunPro C++ compiler does not properly
6474 # handle `-M -o', and we need to detect this. Also, some Intel
6475 # versions had trouble with output in subdirs
6476 am__obj=sub/conftest.${OBJEXT-o}
6477 am__minus_obj="-o $am__obj"
6478 case $depmode in
6479 gcc)
6480 # This depmode causes a compiler race in universal mode.
6481 test "$am__universal" = false || continue
6482 ;;
6483 nosideeffect)
6484 # after this tag, mechanisms are not by side-effect, so they'll
6485 # only be used when explicitly requested
6486 if test "x$enable_dependency_tracking" = xyes; then
6487 continue
6488 else
6489 break
6490 fi
6491 ;;
6492 msvisualcpp | msvcmsys)
6493 # This compiler won't grok `-c -o', but also, the minuso test has
6494 # not run yet. These depmodes are late enough in the game, and
6495 # so weak that their functioning should not be impacted.
6496 am__obj=conftest.${OBJEXT-o}
6497 am__minus_obj=
6498 ;;
6499 none) break ;;
6500 esac
6501 if depmode=$depmode \
6502 source=sub/conftest.c object=$am__obj \
6503 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6504 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6505 >/dev/null 2>conftest.err &&
6506 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6507 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6508 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6509 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6510 # icc doesn't choke on unknown options, it will just issue warnings
6511 # or remarks (even with -Werror). So we grep stderr for any message
6512 # that says an option was ignored or not supported.
6513 # When given -MP, icc 7.0 and 7.1 complain thusly:
6514 # icc: Command line warning: ignoring option '-M'; no argument required
6515 # The diagnosis changed in icc 8.0:
6516 # icc: Command line remark: option '-MP' not supported
6517 if (grep 'ignoring option' conftest.err ||
6518 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6519 am_cv_CXX_dependencies_compiler_type=$depmode
6520 break
6521 fi
6522 fi
6523 done
6524
6525 cd ..
6526 rm -rf conftest.dir
6527else
6528 am_cv_CXX_dependencies_compiler_type=none
6529fi
6530
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6533$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6534CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6535
6536 if
6537 test "x$enable_dependency_tracking" != xno \
6538 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6539 am__fastdepCXX_TRUE=
6540 am__fastdepCXX_FALSE='#'
6541else
6542 am__fastdepCXX_TRUE='#'
6543 am__fastdepCXX_FALSE=
6544fi
6545
6546
cristy8b350f62009-11-15 23:12:43 +00006547 case $ac_cv_prog_cc_stdc in #(
6548 no) :
6549 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6550 *) :
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006552$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006553if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006554 $as_echo_n "(cached) " >&6
6555else
6556 ac_cv_prog_cc_c99=no
6557ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006559/* end confdefs.h. */
6560#include <stdarg.h>
6561#include <stdbool.h>
6562#include <stdlib.h>
6563#include <wchar.h>
6564#include <stdio.h>
6565
6566// Check varargs macros. These examples are taken from C99 6.10.3.5.
6567#define debug(...) fprintf (stderr, __VA_ARGS__)
6568#define showlist(...) puts (#__VA_ARGS__)
6569#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6570static void
6571test_varargs_macros (void)
6572{
6573 int x = 1234;
6574 int y = 5678;
6575 debug ("Flag");
6576 debug ("X = %d\n", x);
6577 showlist (The first, second, and third items.);
6578 report (x>y, "x is %d but y is %d", x, y);
6579}
6580
6581// Check long long types.
6582#define BIG64 18446744073709551615ull
6583#define BIG32 4294967295ul
6584#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6585#if !BIG_OK
6586 your preprocessor is broken;
6587#endif
6588#if BIG_OK
6589#else
6590 your preprocessor is broken;
6591#endif
6592static long long int bignum = -9223372036854775807LL;
6593static unsigned long long int ubignum = BIG64;
6594
6595struct incomplete_array
6596{
6597 int datasize;
6598 double data[];
6599};
6600
6601struct named_init {
6602 int number;
6603 const wchar_t *name;
6604 double average;
6605};
6606
6607typedef const char *ccp;
6608
6609static inline int
6610test_restrict (ccp restrict text)
6611{
6612 // See if C++-style comments work.
6613 // Iterate through items via the restricted pointer.
6614 // Also check for declarations in for loops.
6615 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6616 continue;
6617 return 0;
6618}
6619
6620// Check varargs and va_copy.
6621static void
6622test_varargs (const char *format, ...)
6623{
6624 va_list args;
6625 va_start (args, format);
6626 va_list args_copy;
6627 va_copy (args_copy, args);
6628
6629 const char *str;
6630 int number;
6631 float fnumber;
6632
6633 while (*format)
6634 {
6635 switch (*format++)
6636 {
6637 case 's': // string
6638 str = va_arg (args_copy, const char *);
6639 break;
6640 case 'd': // int
6641 number = va_arg (args_copy, int);
6642 break;
6643 case 'f': // float
6644 fnumber = va_arg (args_copy, double);
6645 break;
6646 default:
6647 break;
6648 }
6649 }
6650 va_end (args_copy);
6651 va_end (args);
6652}
6653
6654int
6655main ()
6656{
6657
6658 // Check bool.
6659 _Bool success = false;
6660
6661 // Check restrict.
6662 if (test_restrict ("String literal") == 0)
6663 success = true;
6664 char *restrict newvar = "Another string";
6665
6666 // Check varargs.
6667 test_varargs ("s, d' f .", "string", 65, 34.234);
6668 test_varargs_macros ();
6669
6670 // Check flexible array members.
6671 struct incomplete_array *ia =
6672 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6673 ia->datasize = 10;
6674 for (int i = 0; i < ia->datasize; ++i)
6675 ia->data[i] = i * 1.234;
6676
6677 // Check named initializers.
6678 struct named_init ni = {
6679 .number = 34,
6680 .name = L"Test wide string",
6681 .average = 543.34343,
6682 };
6683
6684 ni.number = 58;
6685
6686 int dynamic_array[ni.number];
6687 dynamic_array[ni.number - 1] = 543;
6688
6689 // work around unused variable warnings
6690 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6691 || dynamic_array[ni.number - 1] != 543);
6692
6693 ;
6694 return 0;
6695}
6696_ACEOF
6697for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6698do
6699 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006700 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006701 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006702fi
cristy3ed852e2009-09-05 21:47:34 +00006703rm -f core conftest.err conftest.$ac_objext
6704 test "x$ac_cv_prog_cc_c99" != "xno" && break
6705done
6706rm -f conftest.$ac_ext
6707CC=$ac_save_CC
6708
6709fi
6710# AC_CACHE_VAL
6711case "x$ac_cv_prog_cc_c99" in
6712 x)
cristy8b350f62009-11-15 23:12:43 +00006713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006714$as_echo "none needed" >&6; } ;;
6715 xno)
cristy8b350f62009-11-15 23:12:43 +00006716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006717$as_echo "unsupported" >&6; } ;;
6718 *)
6719 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006721$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6722esac
cristy8b350f62009-11-15 23:12:43 +00006723if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006724 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6725else
cristy8b350f62009-11-15 23:12:43 +00006726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006727$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006728if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006729 $as_echo_n "(cached) " >&6
6730else
6731 ac_cv_prog_cc_c89=no
6732ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006734/* end confdefs.h. */
6735#include <stdarg.h>
6736#include <stdio.h>
6737#include <sys/types.h>
6738#include <sys/stat.h>
6739/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6740struct buf { int x; };
6741FILE * (*rcsopen) (struct buf *, struct stat *, int);
6742static char *e (p, i)
6743 char **p;
6744 int i;
6745{
6746 return p[i];
6747}
6748static char *f (char * (*g) (char **, int), char **p, ...)
6749{
6750 char *s;
6751 va_list v;
6752 va_start (v,p);
6753 s = g (p, va_arg (v,int));
6754 va_end (v);
6755 return s;
6756}
6757
6758/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6759 function prototypes and stuff, but not '\xHH' hex character constants.
6760 These don't provoke an error unfortunately, instead are silently treated
6761 as 'x'. The following induces an error, until -std is added to get
6762 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6763 array size at least. It's necessary to write '\x00'==0 to get something
6764 that's true only with -std. */
6765int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6766
6767/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6768 inside strings and character constants. */
6769#define FOO(x) 'x'
6770int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6771
6772int test (int i, double x);
6773struct s1 {int (*f) (int a);};
6774struct s2 {int (*f) (double a);};
6775int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6776int argc;
6777char **argv;
6778int
6779main ()
6780{
6781return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6782 ;
6783 return 0;
6784}
6785_ACEOF
6786for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6787 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6788do
6789 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006790 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006791 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006792fi
cristy3ed852e2009-09-05 21:47:34 +00006793rm -f core conftest.err conftest.$ac_objext
6794 test "x$ac_cv_prog_cc_c89" != "xno" && break
6795done
6796rm -f conftest.$ac_ext
6797CC=$ac_save_CC
6798
6799fi
6800# AC_CACHE_VAL
6801case "x$ac_cv_prog_cc_c89" in
6802 x)
cristy8b350f62009-11-15 23:12:43 +00006803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006804$as_echo "none needed" >&6; } ;;
6805 xno)
cristy8b350f62009-11-15 23:12:43 +00006806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006807$as_echo "unsupported" >&6; } ;;
6808 *)
6809 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006811$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6812esac
cristy8b350f62009-11-15 23:12:43 +00006813if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6815else
6816 ac_cv_prog_cc_stdc=no
6817fi
6818
cristy3ed852e2009-09-05 21:47:34 +00006819fi
cristy3ed852e2009-09-05 21:47:34 +00006820 ;;
6821esac
cristy8b350f62009-11-15 23:12:43 +00006822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006823$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006824 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006825 $as_echo_n "(cached) " >&6
6826fi
6827
cristy8b350f62009-11-15 23:12:43 +00006828 case $ac_cv_prog_cc_stdc in #(
6829 no) :
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6831$as_echo "unsupported" >&6; } ;; #(
6832 '') :
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6834$as_echo "none needed" >&6; } ;; #(
6835 *) :
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006837$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6838esac
6839
cristy3ed852e2009-09-05 21:47:34 +00006840ac_ext=c
6841ac_cpp='$CPP $CPPFLAGS'
6842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006846$as_echo_n "checking how to run the C preprocessor... " >&6; }
6847# On Suns, sometimes $CPP names a directory.
6848if test -n "$CPP" && test -d "$CPP"; then
6849 CPP=
6850fi
6851if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006852 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006853 $as_echo_n "(cached) " >&6
6854else
6855 # Double quotes because CPP needs to be expanded
6856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6857 do
6858 ac_preproc_ok=false
6859for ac_c_preproc_warn_flag in '' yes
6860do
6861 # Use a header file that comes with gcc, so configuring glibc
6862 # with a fresh cross-compiler works.
6863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 # <limits.h> exists even on freestanding compilers.
6865 # On the NeXT, cc -E runs the code through the compiler's parser,
6866 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006868/* end confdefs.h. */
6869#ifdef __STDC__
6870# include <limits.h>
6871#else
6872# include <assert.h>
6873#endif
6874 Syntax error
6875_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006876if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006877
cristy8b350f62009-11-15 23:12:43 +00006878else
cristy3ed852e2009-09-05 21:47:34 +00006879 # Broken: fails on valid input.
6880continue
6881fi
cristyda16f162011-02-19 23:52:17 +00006882rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006883
6884 # OK, works on sane cases. Now check whether nonexistent headers
6885 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006887/* end confdefs.h. */
6888#include <ac_nonexistent.h>
6889_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006890if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006891 # Broken: success on invalid input.
6892continue
6893else
cristy3ed852e2009-09-05 21:47:34 +00006894 # Passes both tests.
6895ac_preproc_ok=:
6896break
6897fi
cristyda16f162011-02-19 23:52:17 +00006898rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006899
6900done
6901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006902rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006903if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006904 break
6905fi
6906
6907 done
6908 ac_cv_prog_CPP=$CPP
6909
6910fi
6911 CPP=$ac_cv_prog_CPP
6912else
6913 ac_cv_prog_CPP=$CPP
6914fi
cristy8b350f62009-11-15 23:12:43 +00006915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006916$as_echo "$CPP" >&6; }
6917ac_preproc_ok=false
6918for ac_c_preproc_warn_flag in '' yes
6919do
6920 # Use a header file that comes with gcc, so configuring glibc
6921 # with a fresh cross-compiler works.
6922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6923 # <limits.h> exists even on freestanding compilers.
6924 # On the NeXT, cc -E runs the code through the compiler's parser,
6925 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006927/* end confdefs.h. */
6928#ifdef __STDC__
6929# include <limits.h>
6930#else
6931# include <assert.h>
6932#endif
6933 Syntax error
6934_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006935if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006936
cristy8b350f62009-11-15 23:12:43 +00006937else
cristy3ed852e2009-09-05 21:47:34 +00006938 # Broken: fails on valid input.
6939continue
6940fi
cristyda16f162011-02-19 23:52:17 +00006941rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006942
6943 # OK, works on sane cases. Now check whether nonexistent headers
6944 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006946/* end confdefs.h. */
6947#include <ac_nonexistent.h>
6948_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006949if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006950 # Broken: success on invalid input.
6951continue
6952else
cristy3ed852e2009-09-05 21:47:34 +00006953 # Passes both tests.
6954ac_preproc_ok=:
6955break
6956fi
cristyda16f162011-02-19 23:52:17 +00006957rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006958
6959done
6960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006961rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006962if $ac_preproc_ok; then :
6963
cristy3ed852e2009-09-05 21:47:34 +00006964else
cristy8b350f62009-11-15 23:12:43 +00006965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006967as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6968See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006969fi
6970
6971ac_ext=c
6972ac_cpp='$CPP $CPPFLAGS'
6973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976
cristy73bd4a52010-10-05 11:24:23 +00006977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6978$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006979if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006980 $as_echo_n "(cached) " >&6
6981else
6982 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6983 for ac_i in 1 2 3 4 5 6 7; do
6984 ac_script="$ac_script$as_nl$ac_script"
6985 done
6986 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6987 { ac_script=; unset ac_script;}
6988 if test -z "$SED"; then
6989 ac_path_SED_found=false
6990 # Loop through the user's path and test for each of PROGNAME-LIST
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_prog in sed gsed; do
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6999 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7000# Check for GNU ac_path_SED and select it if it is found.
7001 # Check for GNU $ac_path_SED
7002case `"$ac_path_SED" --version 2>&1` in
7003*GNU*)
7004 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7005*)
7006 ac_count=0
7007 $as_echo_n 0123456789 >"conftest.in"
7008 while :
7009 do
7010 cat "conftest.in" "conftest.in" >"conftest.tmp"
7011 mv "conftest.tmp" "conftest.in"
7012 cp "conftest.in" "conftest.nl"
7013 $as_echo '' >> "conftest.nl"
7014 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7016 as_fn_arith $ac_count + 1 && ac_count=$as_val
7017 if test $ac_count -gt ${ac_path_SED_max-0}; then
7018 # Best one so far, save it but keep looking for a better one
7019 ac_cv_path_SED="$ac_path_SED"
7020 ac_path_SED_max=$ac_count
7021 fi
7022 # 10*(2^10) chars as input seems more than enough
7023 test $ac_count -gt 10 && break
7024 done
7025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7026esac
7027
7028 $ac_path_SED_found && break 3
7029 done
7030 done
7031 done
7032IFS=$as_save_IFS
7033 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007034 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007035 fi
7036else
7037 ac_cv_path_SED=$SED
7038fi
7039
7040fi
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7042$as_echo "$ac_cv_path_SED" >&6; }
7043 SED="$ac_cv_path_SED"
7044 rm -f conftest.sed
7045
7046test -z "$SED" && SED=sed
7047Xsed="$SED -e 1s/^X//"
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7060$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007061if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007062 $as_echo_n "(cached) " >&6
7063else
7064 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7065 then ac_cv_path_FGREP="$GREP -F"
7066 else
7067 if test -z "$FGREP"; then
7068 ac_path_FGREP_found=false
7069 # Loop through the user's path and test for each of PROGNAME-LIST
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_prog in fgrep; do
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7078 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7079# Check for GNU ac_path_FGREP and select it if it is found.
7080 # Check for GNU $ac_path_FGREP
7081case `"$ac_path_FGREP" --version 2>&1` in
7082*GNU*)
7083 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7084*)
7085 ac_count=0
7086 $as_echo_n 0123456789 >"conftest.in"
7087 while :
7088 do
7089 cat "conftest.in" "conftest.in" >"conftest.tmp"
7090 mv "conftest.tmp" "conftest.in"
7091 cp "conftest.in" "conftest.nl"
7092 $as_echo 'FGREP' >> "conftest.nl"
7093 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7095 as_fn_arith $ac_count + 1 && ac_count=$as_val
7096 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7097 # Best one so far, save it but keep looking for a better one
7098 ac_cv_path_FGREP="$ac_path_FGREP"
7099 ac_path_FGREP_max=$ac_count
7100 fi
7101 # 10*(2^10) chars as input seems more than enough
7102 test $ac_count -gt 10 && break
7103 done
7104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7105esac
7106
7107 $ac_path_FGREP_found && break 3
7108 done
7109 done
7110 done
7111IFS=$as_save_IFS
7112 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007113 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007114 fi
7115else
7116 ac_cv_path_FGREP=$FGREP
7117fi
7118
7119 fi
7120fi
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7122$as_echo "$ac_cv_path_FGREP" >&6; }
7123 FGREP="$ac_cv_path_FGREP"
7124
7125
7126test -z "$GREP" && GREP=grep
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
cristy0c60a692010-11-04 01:09:47 +00007144ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7146ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7147
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7149$as_echo_n "checking how to print strings... " >&6; }
7150# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007151if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007152 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7153 ECHO='print -r --'
7154elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7155 ECHO='printf %s\n'
7156else
7157 # Use this function as a fallback that always works.
7158 func_fallback_echo ()
7159 {
7160 eval 'cat <<_LTECHO_EOF
7161$1
7162_LTECHO_EOF'
7163 }
7164 ECHO='func_fallback_echo'
7165fi
7166
7167# func_echo_all arg...
7168# Invoke $ECHO with all args, space-separated.
7169func_echo_all ()
7170{
7171 $ECHO ""
7172}
7173
7174case "$ECHO" in
7175 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7176$as_echo "printf" >&6; } ;;
7177 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7178$as_echo "print -r" >&6; } ;;
7179 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7180$as_echo "cat" >&6; } ;;
7181esac
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
cristy73bd4a52010-10-05 11:24:23 +00007196
7197
7198# Check whether --with-gnu-ld was given.
7199if test "${with_gnu_ld+set}" = set; then :
7200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7201else
7202 with_gnu_ld=no
7203fi
7204
7205ac_prog=ld
7206if test "$GCC" = yes; then
7207 # Check if gcc -print-prog-name=ld gives a path.
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7209$as_echo_n "checking for ld used by $CC... " >&6; }
7210 case $host in
7211 *-*-mingw*)
7212 # gcc leaves a trailing carriage return which upsets mingw
7213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7214 *)
7215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7216 esac
7217 case $ac_prog in
7218 # Accept absolute paths.
7219 [\\/]* | ?:[\\/]*)
7220 re_direlt='/[^/][^/]*/\.\./'
7221 # Canonicalize the pathname of ld
7222 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7223 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7224 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7225 done
7226 test -z "$LD" && LD="$ac_prog"
7227 ;;
7228 "")
7229 # If it fails, then pretend we aren't using GCC.
7230 ac_prog=ld
7231 ;;
7232 *)
7233 # If it is relative, then search for the first ld in PATH.
7234 with_gnu_ld=unknown
7235 ;;
7236 esac
7237elif test "$with_gnu_ld" = yes; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7239$as_echo_n "checking for GNU ld... " >&6; }
7240else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7242$as_echo_n "checking for non-GNU ld... " >&6; }
7243fi
cristyda16f162011-02-19 23:52:17 +00007244if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007245 $as_echo_n "(cached) " >&6
7246else
7247 if test -z "$LD"; then
7248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7249 for ac_dir in $PATH; do
7250 IFS="$lt_save_ifs"
7251 test -z "$ac_dir" && ac_dir=.
7252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7253 lt_cv_path_LD="$ac_dir/$ac_prog"
7254 # Check to see if the program is GNU ld. I'd rather use --version,
7255 # but apparently some variants of GNU ld only accept -v.
7256 # Break only if it was the GNU/non-GNU ld that we prefer.
7257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7258 *GNU* | *'with BFD'*)
7259 test "$with_gnu_ld" != no && break
7260 ;;
7261 *)
7262 test "$with_gnu_ld" != yes && break
7263 ;;
7264 esac
7265 fi
7266 done
7267 IFS="$lt_save_ifs"
7268else
7269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7270fi
7271fi
7272
7273LD="$lt_cv_path_LD"
7274if test -n "$LD"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7276$as_echo "$LD" >&6; }
7277else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279$as_echo "no" >&6; }
7280fi
cristy98dddb52010-11-04 00:30:15 +00007281test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7283$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007284if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007285 $as_echo_n "(cached) " >&6
7286else
7287 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7288case `$LD -v 2>&1 </dev/null` in
7289*GNU* | *'with BFD'*)
7290 lt_cv_prog_gnu_ld=yes
7291 ;;
7292*)
7293 lt_cv_prog_gnu_ld=no
7294 ;;
7295esac
7296fi
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7298$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7299with_gnu_ld=$lt_cv_prog_gnu_ld
7300
7301
7302
7303
7304
7305
7306
7307
7308
cristy3ed852e2009-09-05 21:47:34 +00007309
cristy837d6dc2010-02-27 01:16:57 +00007310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7311$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007312if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007313 $as_echo_n "(cached) " >&6
7314else
7315 ac_cv_prog_cc_c99=no
7316ac_save_CC=$CC
7317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318/* end confdefs.h. */
7319#include <stdarg.h>
7320#include <stdbool.h>
7321#include <stdlib.h>
7322#include <wchar.h>
7323#include <stdio.h>
7324
7325// Check varargs macros. These examples are taken from C99 6.10.3.5.
7326#define debug(...) fprintf (stderr, __VA_ARGS__)
7327#define showlist(...) puts (#__VA_ARGS__)
7328#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7329static void
7330test_varargs_macros (void)
7331{
7332 int x = 1234;
7333 int y = 5678;
7334 debug ("Flag");
7335 debug ("X = %d\n", x);
7336 showlist (The first, second, and third items.);
7337 report (x>y, "x is %d but y is %d", x, y);
7338}
7339
7340// Check long long types.
7341#define BIG64 18446744073709551615ull
7342#define BIG32 4294967295ul
7343#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7344#if !BIG_OK
7345 your preprocessor is broken;
7346#endif
7347#if BIG_OK
7348#else
7349 your preprocessor is broken;
7350#endif
7351static long long int bignum = -9223372036854775807LL;
7352static unsigned long long int ubignum = BIG64;
7353
7354struct incomplete_array
7355{
7356 int datasize;
7357 double data[];
7358};
7359
7360struct named_init {
7361 int number;
7362 const wchar_t *name;
7363 double average;
7364};
7365
7366typedef const char *ccp;
7367
7368static inline int
7369test_restrict (ccp restrict text)
7370{
7371 // See if C++-style comments work.
7372 // Iterate through items via the restricted pointer.
7373 // Also check for declarations in for loops.
7374 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7375 continue;
7376 return 0;
7377}
7378
7379// Check varargs and va_copy.
7380static void
7381test_varargs (const char *format, ...)
7382{
7383 va_list args;
7384 va_start (args, format);
7385 va_list args_copy;
7386 va_copy (args_copy, args);
7387
7388 const char *str;
7389 int number;
7390 float fnumber;
7391
7392 while (*format)
7393 {
7394 switch (*format++)
7395 {
7396 case 's': // string
7397 str = va_arg (args_copy, const char *);
7398 break;
7399 case 'd': // int
7400 number = va_arg (args_copy, int);
7401 break;
7402 case 'f': // float
7403 fnumber = va_arg (args_copy, double);
7404 break;
7405 default:
7406 break;
7407 }
7408 }
7409 va_end (args_copy);
7410 va_end (args);
7411}
7412
7413int
7414main ()
7415{
7416
7417 // Check bool.
7418 _Bool success = false;
7419
7420 // Check restrict.
7421 if (test_restrict ("String literal") == 0)
7422 success = true;
7423 char *restrict newvar = "Another string";
7424
7425 // Check varargs.
7426 test_varargs ("s, d' f .", "string", 65, 34.234);
7427 test_varargs_macros ();
7428
7429 // Check flexible array members.
7430 struct incomplete_array *ia =
7431 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7432 ia->datasize = 10;
7433 for (int i = 0; i < ia->datasize; ++i)
7434 ia->data[i] = i * 1.234;
7435
7436 // Check named initializers.
7437 struct named_init ni = {
7438 .number = 34,
7439 .name = L"Test wide string",
7440 .average = 543.34343,
7441 };
7442
7443 ni.number = 58;
7444
7445 int dynamic_array[ni.number];
7446 dynamic_array[ni.number - 1] = 543;
7447
7448 // work around unused variable warnings
7449 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7450 || dynamic_array[ni.number - 1] != 543);
7451
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7457do
7458 CC="$ac_save_CC $ac_arg"
7459 if ac_fn_c_try_compile "$LINENO"; then :
7460 ac_cv_prog_cc_c99=$ac_arg
7461fi
7462rm -f core conftest.err conftest.$ac_objext
7463 test "x$ac_cv_prog_cc_c99" != "xno" && break
7464done
7465rm -f conftest.$ac_ext
7466CC=$ac_save_CC
7467
7468fi
7469# AC_CACHE_VAL
7470case "x$ac_cv_prog_cc_c99" in
7471 x)
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7473$as_echo "none needed" >&6; } ;;
7474 xno)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7476$as_echo "unsupported" >&6; } ;;
7477 *)
7478 CC="$CC $ac_cv_prog_cc_c99"
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7480$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7481esac
7482if test "x$ac_cv_prog_cc_c99" != xno; then :
7483
7484fi
7485
7486
cristy73bd4a52010-10-05 11:24:23 +00007487if test "x$CC" != xcc; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7489$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7490else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7492$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7493fi
7494set dummy $CC; ac_cc=`$as_echo "$2" |
7495 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007496if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007497 $as_echo_n "(cached) " >&6
7498else
cristy73bd4a52010-10-05 11:24:23 +00007499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h. */
7501
7502int
7503main ()
7504{
7505
7506 ;
7507 return 0;
7508}
7509_ACEOF
7510# Make sure it works both with $CC and with simple cc.
7511# We do the test twice because some compilers refuse to overwrite an
7512# existing .o file with -o, though they will create one.
7513ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7514rm -f conftest2.*
7515if { { case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7518esac
7519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7520$as_echo "$ac_try_echo"; } >&5
7521 (eval "$ac_try") 2>&5
7522 ac_status=$?
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; } &&
7525 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
7529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530$as_echo "$ac_try_echo"; } >&5
7531 (eval "$ac_try") 2>&5
7532 ac_status=$?
7533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; };
7535then
7536 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7537 if test "x$CC" != xcc; then
7538 # Test first that cc exists at all.
7539 if { ac_try='cc -c conftest.$ac_ext >&5'
7540 { { case "(($ac_try" in
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7543esac
7544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7545$as_echo "$ac_try_echo"; } >&5
7546 (eval "$ac_try") 2>&5
7547 ac_status=$?
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }; }; then
7550 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7551 rm -f conftest2.*
7552 if { { case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555esac
7556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7557$as_echo "$ac_try_echo"; } >&5
7558 (eval "$ac_try") 2>&5
7559 ac_status=$?
7560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561 test $ac_status = 0; } &&
7562 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565esac
7566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7567$as_echo "$ac_try_echo"; } >&5
7568 (eval "$ac_try") 2>&5
7569 ac_status=$?
7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; };
7572 then
7573 # cc works too.
7574 :
7575 else
7576 # cc exists but doesn't like -o.
7577 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7578 fi
7579 fi
7580 fi
7581else
7582 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7583fi
7584rm -f core conftest*
7585
7586fi
7587if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7589$as_echo "yes" >&6; }
7590else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592$as_echo "no" >&6; }
7593
7594$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7595
7596fi
7597
7598# FIXME: we rely on the cache variable name because
7599# there is no other way.
7600set dummy $CC
7601am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7602eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7603if test "$am_t" != yes; then
7604 # Losing compiler, so override with the script.
7605 # FIXME: It is wrong to rewrite CC.
7606 # But if we don't then we get into trouble of one sort or another.
7607 # A longer-term fix would be to have automake use am__CC in this case,
7608 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7609 CC="$am_aux_dir/compile $CC"
7610fi
7611
7612
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7614$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007615if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007616 $as_echo_n "(cached) " >&6
7617else
7618 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007619 ac_ext=c
7620ac_cpp='$CPP $CPPFLAGS'
7621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
7625 ac_save_CFLAGS="$CFLAGS"
7626for 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" #
7627do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h. */
7630
7631int
7632main ()
7633{
cristy24fc1fe2010-10-23 21:13:01 +00007634
cristy73bd4a52010-10-05 11:24:23 +00007635 ;
7636 return 0;
7637}
7638_ACEOF
7639if ac_fn_c_try_compile "$LINENO"; then :
7640 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7641fi
7642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643done
7644 CFLAGS="$ac_save_CFLAGS"
7645 ac_ext=c
7646ac_cpp='$CPP $CPPFLAGS'
7647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651
7652fi
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7654$as_echo "$ac_cv_cflags_warn_all" >&6; }
7655case ".$ac_cv_cflags_warn_all" in
7656 .ok|.ok,*) ;;
7657 .|.no|.no,*)
7658 ;;
7659 *)
7660 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7661 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7662 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7663 ac_status=$?
7664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7665 test $ac_status = 0; }
7666 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7667 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7668 ac_status=$?
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }
7671 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7672 fi
7673 ;;
nicolas6237c462010-10-05 06:11:49 +00007674esac
cristy3ed852e2009-09-05 21:47:34 +00007675
cristya0b81c32010-01-22 02:54:33 +00007676
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7678$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7679set x ${MAKE-make}
7680ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007681if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007682 $as_echo_n "(cached) " >&6
7683else
7684 cat >conftest.make <<\_ACEOF
7685SHELL = /bin/sh
7686all:
7687 @echo '@@@%%%=$(MAKE)=@@@%%%'
7688_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007689# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007690case `${MAKE-make} -f conftest.make 2>/dev/null` in
7691 *@@@%%%=?*=@@@%%%*)
7692 eval ac_cv_prog_make_${ac_make}_set=yes;;
7693 *)
7694 eval ac_cv_prog_make_${ac_make}_set=no;;
7695esac
7696rm -f conftest.make
7697fi
7698if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700$as_echo "yes" >&6; }
7701 SET_MAKE=
7702else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705 SET_MAKE="MAKE=${MAKE-make}"
7706fi
7707
cristy8b350f62009-11-15 23:12:43 +00007708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007709$as_echo_n "checking whether ln -s works... " >&6; }
7710LN_S=$as_ln_s
7711if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007713$as_echo "yes" >&6; }
7714else
cristy8b350f62009-11-15 23:12:43 +00007715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007716$as_echo "no, using $LN_S" >&6; }
7717fi
7718
cristy73bd4a52010-10-05 11:24:23 +00007719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7720$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7721
7722# Check whether --with-dmalloc was given.
7723if test "${with_dmalloc+set}" = set; then :
7724 withval=$with_dmalloc; if test "$withval" = yes; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7726$as_echo "yes" >&6; }
7727
7728$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7729
7730 LIBS="$LIBS -ldmalloc"
7731 LDFLAGS="$LDFLAGS -g"
7732else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
7736else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740
7741
7742
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7744$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007745if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007746 $as_echo_n "(cached) " >&6
7747else
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749/* end confdefs.h. */
7750#include <stdlib.h>
7751 static void foo(void) __attribute__ ((unused));
7752 static void
7753 foo(void) {
7754 exit(1);
7755 }
7756
7757int
7758main ()
7759{
7760
7761 ;
7762 return 0;
7763}
7764_ACEOF
7765if ac_fn_c_try_compile "$LINENO"; then :
7766 ax_cv___attribute__=yes
7767else
7768 ax_cv___attribute__=no
7769
7770fi
7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772
7773fi
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7775$as_echo "$ax_cv___attribute__" >&6; }
7776 if test "$ax_cv___attribute__" = "yes"; then
7777
7778$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7779
7780 fi
7781
7782
7783
7784if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7785 if test -n "$ac_tool_prefix"; then
7786 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7787set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007790if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007791 $as_echo_n "(cached) " >&6
7792else
7793 case $PKG_CONFIG in
7794 [\\/]* | ?:[\\/]*)
7795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7796 ;;
7797 *)
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809done
7810 done
7811IFS=$as_save_IFS
7812
7813 ;;
7814esac
7815fi
7816PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7817if test -n "$PKG_CONFIG"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7819$as_echo "$PKG_CONFIG" >&6; }
7820else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825
7826fi
7827if test -z "$ac_cv_path_PKG_CONFIG"; then
7828 ac_pt_PKG_CONFIG=$PKG_CONFIG
7829 # Extract the first word of "pkg-config", so it can be a program name with args.
7830set dummy pkg-config; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007833if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007834 $as_echo_n "(cached) " >&6
7835else
7836 case $ac_pt_PKG_CONFIG in
7837 [\\/]* | ?:[\\/]*)
7838 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7839 ;;
7840 *)
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852done
7853 done
7854IFS=$as_save_IFS
7855
7856 ;;
7857esac
7858fi
7859ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7860if test -n "$ac_pt_PKG_CONFIG"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7862$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7863else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865$as_echo "no" >&6; }
7866fi
7867
7868 if test "x$ac_pt_PKG_CONFIG" = x; then
7869 PKG_CONFIG=""
7870 else
7871 case $cross_compiling:$ac_tool_warned in
7872yes:)
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875ac_tool_warned=yes ;;
7876esac
7877 PKG_CONFIG=$ac_pt_PKG_CONFIG
7878 fi
7879else
7880 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7881fi
7882
7883fi
7884if test -n "$PKG_CONFIG"; then
7885 _pkg_min_version=0.9.0
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7887$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7888 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7890$as_echo "yes" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
7894 PKG_CONFIG=""
7895 fi
7896
7897fi
cristy3ed852e2009-09-05 21:47:34 +00007898
7899#
cristy3ed852e2009-09-05 21:47:34 +00007900# Enable run-time checking.
7901#
7902# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007903if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007904 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7905else
7906 enable_bounds_checking='no'
7907fi
7908
7909
7910if test "$enable_bounds_checking" = yes; then
7911
cristy8b350f62009-11-15 23:12:43 +00007912$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007913
7914fi
7915
7916#
7917# Tests for Windows
7918#
7919
7920
cristy73bd4a52010-10-05 11:24:23 +00007921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7922$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007923if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007924 $as_echo_n "(cached) " >&6
7925else
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h. */
7928
7929int
7930main ()
7931{
7932#ifndef _MSC_VER
7933 choke me
7934#endif
7935
7936 ;
7937 return 0;
7938}
7939_ACEOF
7940if ac_fn_c_try_compile "$LINENO"; then :
7941 ax_compiler_ms=yes
7942else
7943 ax_compiler_ms=no
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946ax_cv_c_compiler_ms=$ax_compiler_ms
7947
7948fi
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7950$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007951
7952GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007953native_win32_build='no'
7954cygwin_build='no'
7955case "${host_os}" in
7956 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007957 cygwin_build='yes'
7958 GDI32_LIBS='-lgdi32'
7959 ;;
7960 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007961 native_win32_build='yes'
7962 GDI32_LIBS='-lgdi32'
7963 ;;
7964esac
7965if test "${GDI32_LIBS}x" != 'x'; then
7966
cristy8b350f62009-11-15 23:12:43 +00007967$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007968
7969fi
7970
cristy73bd4a52010-10-05 11:24:23 +00007971 if test "${GDI32_LIBS}x" != 'x' ; then
7972 WINGDI32_DELEGATE_TRUE=
7973 WINGDI32_DELEGATE_FALSE='#'
7974else
7975 WINGDI32_DELEGATE_TRUE='#'
7976 WINGDI32_DELEGATE_FALSE=
7977fi
7978
7979 if test "${native_win32_build}" = 'yes' ; then
7980 WIN32_NATIVE_BUILD_TRUE=
7981 WIN32_NATIVE_BUILD_FALSE='#'
7982else
7983 WIN32_NATIVE_BUILD_TRUE='#'
7984 WIN32_NATIVE_BUILD_FALSE=
7985fi
7986
7987 if test "${cygwin_build}" = 'yes' ; then
7988 CYGWIN_BUILD_TRUE=
7989 CYGWIN_BUILD_FALSE='#'
7990else
7991 CYGWIN_BUILD_TRUE='#'
7992 CYGWIN_BUILD_FALSE=
7993fi
7994
7995 if test "x${CC}" = 'xcl.exe' ; then
7996 USING_CL_TRUE=
7997 USING_CL_FALSE='#'
7998else
7999 USING_CL_TRUE='#'
8000 USING_CL_FALSE=
8001fi
8002
cristy3ed852e2009-09-05 21:47:34 +00008003
8004WinPathScript="${srcdirfull}/winpath.sh"
8005
8006
8007#
8008# Compiler flags tweaks
8009#
8010if test "${GCC}" != "yes"; then
8011 case "${host}" in
8012 *-*-hpux* )
8013 # aCC: HP ANSI C++ B3910B A.03.34
8014 CFLAGS="${CFLAGS} -Wp,-H30000"
8015 if test -n "${CXXFLAGS}"; then
8016 CXXFLAGS='-AA'
8017 else
8018 CXXFLAGS="${CXXFLAGS} -AA"
8019 fi
8020 ;;
8021 *-dec-osf5.* )
8022 # Compaq alphaev68-dec-osf5.1 compiler
8023 if test -n "${CXXFLAGS}"; then
8024 CXXFLAGS='-std strict_ansi -noimplicit_include'
8025 else
8026 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8027 fi
8028 esac
8029fi
8030
8031# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008033$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008034if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008035 $as_echo_n "(cached) " >&6
8036else
8037
8038im_cv_ld_lazyload='none'
8039case "${host}" in
8040 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8041 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8042 im_cv_ld_lazyload='-Wl,-zlazyload'
8043 fi
8044 ;;
8045esac
8046
8047fi
cristy8b350f62009-11-15 23:12:43 +00008048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008049$as_echo "$im_cv_ld_lazyload" >&6; }
8050if test "${im_cv_ld_lazyload}" != 'none' ; then
8051 if test -z "${LDFLAGS}" ; then
8052 LDFLAGS="${im_cv_ld_lazyload}"
8053 else
8054 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8055 fi
8056fi
8057
8058case "$host" in
8059*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008060 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008061if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008062 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8063else
8064 build_osxuniversal=no
8065fi
8066
8067
8068 if test "${build_osxuniversal}" != no ; then
8069 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008070 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008071Please re-run configure with these options:
8072 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008073 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008074 fi
8075 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8076 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8077 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8078 fi
8079 ;;
8080esac
8081
8082# Enable support for threads
8083
8084# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008085if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008086 withval=$with_threads; with_threads=$withval
8087else
8088 with_threads='yes'
8089fi
8090
8091
8092have_threads=no
8093if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008094
8095
8096
8097ac_ext=c
8098ac_cpp='$CPP $CPPFLAGS'
8099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102
8103ax_pthread_ok=no
8104
8105# We used to check for pthread.h first, but this fails if pthread.h
8106# requires special compiler flags (e.g. on True64 or Sequent).
8107# It gets checked for in the link test anyway.
8108
8109# First of all, check if the user has set any of the PTHREAD_LIBS,
8110# etcetera environment variables, and if threads linking works using
8111# them:
8112if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8113 save_CFLAGS="$CFLAGS"
8114 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8115 save_LIBS="$LIBS"
8116 LIBS="$PTHREAD_LIBS $LIBS"
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8118$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h. */
8121
8122/* Override any GCC internal prototype to avoid an error.
8123 Use char because int might match the return type of a GCC
8124 builtin and then its argument prototype would still apply. */
8125#ifdef __cplusplus
8126extern "C"
8127#endif
8128char pthread_join ();
8129int
8130main ()
8131{
8132return pthread_join ();
8133 ;
8134 return 0;
8135}
8136_ACEOF
8137if ac_fn_c_try_link "$LINENO"; then :
8138 ax_pthread_ok=yes
8139fi
8140rm -f core conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8143$as_echo "$ax_pthread_ok" >&6; }
8144 if test x"$ax_pthread_ok" = xno; then
8145 PTHREAD_LIBS=""
8146 PTHREAD_CFLAGS=""
8147 fi
8148 LIBS="$save_LIBS"
8149 CFLAGS="$save_CFLAGS"
8150fi
8151
8152# We must check for the threads library under a number of different
8153# names; the ordering is very important because some systems
8154# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8155# libraries is broken (non-POSIX).
8156
8157# Create a list of thread flags to try. Items starting with a "-" are
8158# C compiler flags, and other items are library names, except for "none"
8159# which indicates that we try without any flags at all, and "pthread-config"
8160# which is a program returning the flags for the Pth emulation library.
8161
8162ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8163
8164# The ordering *is* (sometimes) important. Some notes on the
8165# individual items follow:
8166
8167# pthreads: AIX (must check this before -lpthread)
8168# none: in case threads are in libc; should be tried before -Kthread and
8169# other compiler flags to prevent continual compiler warnings
8170# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8171# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8172# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8173# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8174# -pthreads: Solaris/gcc
8175# -mthreads: Mingw32/gcc, Lynx/gcc
8176# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8177# doesn't hurt to check since this sometimes defines pthreads too;
8178# also defines -D_REENTRANT)
8179# ... -mt is also the pthreads flag for HP/aCC
8180# pthread: Linux, etcetera
8181# --thread-safe: KAI C++
8182# pthread-config: use pthread-config program (for GNU Pth library)
8183
8184case "${host_cpu}-${host_os}" in
8185 *solaris*)
8186
8187 # On Solaris (at least, for some versions), libc contains stubbed
8188 # (non-functional) versions of the pthreads routines, so link-based
8189 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8190 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8191 # a function called by this macro, so we could check for that, but
8192 # who knows whether they'll stub that too in a future libc.) So,
8193 # we'll just look for -pthreads and -lpthread first:
8194
8195 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8196 ;;
8197
8198 *-darwin*)
8199 ax_pthread_flags="-pthread $ax_pthread_flags"
8200 ;;
8201esac
8202
8203if test x"$ax_pthread_ok" = xno; then
8204for flag in $ax_pthread_flags; do
8205
8206 case $flag in
8207 none)
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8209$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8210 ;;
8211
8212 -*)
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8214$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8215 PTHREAD_CFLAGS="$flag"
8216 ;;
8217
8218 pthread-config)
8219 # Extract the first word of "pthread-config", so it can be a program name with args.
8220set dummy pthread-config; ac_word=$2
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008223if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008224 $as_echo_n "(cached) " >&6
8225else
8226 if test -n "$ax_pthread_config"; then
8227 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236 ac_cv_prog_ax_pthread_config="yes"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 break 2
8239 fi
8240done
8241 done
8242IFS=$as_save_IFS
8243
8244 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8245fi
8246fi
8247ax_pthread_config=$ac_cv_prog_ax_pthread_config
8248if test -n "$ax_pthread_config"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8250$as_echo "$ax_pthread_config" >&6; }
8251else
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
8254fi
8255
8256
8257 if test x"$ax_pthread_config" = xno; then continue; fi
8258 PTHREAD_CFLAGS="`pthread-config --cflags`"
8259 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8260 ;;
8261
8262 *)
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8264$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8265 PTHREAD_LIBS="-l$flag"
8266 ;;
8267 esac
8268
8269 save_LIBS="$LIBS"
8270 save_CFLAGS="$CFLAGS"
8271 LIBS="$PTHREAD_LIBS $LIBS"
8272 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8273
8274 # Check for various functions. We must include pthread.h,
8275 # since some functions may be macros. (On the Sequent, we
8276 # need a special flag -Kthread to make this header compile.)
8277 # We check for pthread_join because it is in -lpthread on IRIX
8278 # while pthread_create is in libc. We check for pthread_attr_init
8279 # due to DEC craziness with -lpthreads. We check for
8280 # pthread_cleanup_push because it is one of the few pthread
8281 # functions on Solaris that doesn't have a non-functional libc stub.
8282 # We try pthread_create on general principles.
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284/* end confdefs.h. */
8285#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008286 static void routine(void* a) {a=0;}
8287 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008288int
8289main ()
8290{
8291pthread_t th; pthread_attr_t attr;
8292 pthread_create(&th,0,start_routine,0);
8293 pthread_join(th, 0);
8294 pthread_attr_init(&attr);
8295 pthread_cleanup_push(routine, 0);
8296 pthread_cleanup_pop(0);
8297 ;
8298 return 0;
8299}
8300_ACEOF
8301if ac_fn_c_try_link "$LINENO"; then :
8302 ax_pthread_ok=yes
8303fi
8304rm -f core conftest.err conftest.$ac_objext \
8305 conftest$ac_exeext conftest.$ac_ext
8306
8307 LIBS="$save_LIBS"
8308 CFLAGS="$save_CFLAGS"
8309
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8311$as_echo "$ax_pthread_ok" >&6; }
8312 if test "x$ax_pthread_ok" = xyes; then
8313 break;
8314 fi
8315
8316 PTHREAD_LIBS=""
8317 PTHREAD_CFLAGS=""
8318done
8319fi
8320
8321# Various other checks:
8322if test "x$ax_pthread_ok" = xyes; then
8323 save_LIBS="$LIBS"
8324 LIBS="$PTHREAD_LIBS $LIBS"
8325 save_CFLAGS="$CFLAGS"
8326 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8327
8328 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8330$as_echo_n "checking for joinable pthread attribute... " >&6; }
8331 attr_name=unknown
8332 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h. */
8335#include <pthread.h>
8336int
8337main ()
8338{
8339int attr=$attr; return attr;
8340 ;
8341 return 0;
8342}
8343_ACEOF
8344if ac_fn_c_try_link "$LINENO"; then :
8345 attr_name=$attr; break
8346fi
8347rm -f core conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8349 done
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8351$as_echo "$attr_name" >&6; }
8352 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8353
8354cat >>confdefs.h <<_ACEOF
8355#define PTHREAD_CREATE_JOINABLE $attr_name
8356_ACEOF
8357
8358 fi
8359
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8361$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8362 flag=no
8363 case "${host_cpu}-${host_os}" in
8364 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8365 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8366 esac
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8368$as_echo "${flag}" >&6; }
8369 if test "x$flag" != xno; then
8370 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8371 fi
8372
8373 LIBS="$save_LIBS"
8374 CFLAGS="$save_CFLAGS"
8375
8376 # More AIX lossage: must compile with xlc_r or cc_r
8377 if test x"$GCC" != xyes; then
8378 for ac_prog in xlc_r cc_r
8379do
8380 # Extract the first word of "$ac_prog", so it can be a program name with args.
8381set dummy $ac_prog; ac_word=$2
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008384if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008385 $as_echo_n "(cached) " >&6
8386else
8387 if test -n "$PTHREAD_CC"; then
8388 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8389else
8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_PTHREAD_CC="$ac_prog"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8400 fi
8401done
8402 done
8403IFS=$as_save_IFS
8404
8405fi
8406fi
8407PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8408if test -n "$PTHREAD_CC"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8410$as_echo "$PTHREAD_CC" >&6; }
8411else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
8414fi
8415
8416
8417 test -n "$PTHREAD_CC" && break
8418done
8419test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8420
8421 else
8422 PTHREAD_CC=$CC
8423 fi
8424else
8425 PTHREAD_CC="$CC"
8426fi
8427
8428
8429
8430
8431
8432# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8433if test x"$ax_pthread_ok" = xyes; then
8434
8435$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8436
8437 :
8438else
8439 ax_pthread_ok=no
8440
8441fi
8442ac_ext=c
8443ac_cpp='$CPP $CPPFLAGS'
8444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446ac_compiler_gnu=$ac_cv_c_compiler_gnu
8447
8448
cristy7acf8fb2010-09-23 19:58:53 +00008449 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008450 have_threads=yes
8451 DEF_THREAD="$PTHREAD_CFLAGS"
8452 CFLAGS="$CFLAGS $DEF_THREAD"
8453 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8454 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008455 { $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 +00008456$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8457 CC="$PTHREAD_CC"
8458 fi
cristy55bf91c2010-09-24 00:29:41 +00008459
8460$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8461
cristy3ed852e2009-09-05 21:47:34 +00008462 fi
8463fi
8464
8465# Enable support for OpenMP
8466if test "$have_threads" != 'yes'; then
8467 ac_cv_prog_c_openmp=unsupported
8468fi
8469
8470 OPENMP_CFLAGS=
8471 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008472if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008473 enableval=$enable_openmp;
8474fi
8475
8476 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008478$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008479if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008480 $as_echo_n "(cached) " >&6
8481else
cristy8b350f62009-11-15 23:12:43 +00008482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008484
8485#ifndef _OPENMP
8486 choke me
8487#endif
8488#include <omp.h>
8489int main () { return omp_get_num_threads (); }
8490
8491_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008492if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008493 ac_cv_prog_c_openmp='none needed'
8494else
cristy8b350f62009-11-15 23:12:43 +00008495 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008496 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8497 ac_save_CFLAGS=$CFLAGS
8498 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008501
8502#ifndef _OPENMP
8503 choke me
8504#endif
8505#include <omp.h>
8506int main () { return omp_get_num_threads (); }
8507
8508_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008510 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008511fi
cristy8b350f62009-11-15 23:12:43 +00008512rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008514 CFLAGS=$ac_save_CFLAGS
8515 if test "$ac_cv_prog_c_openmp" != unsupported; then
8516 break
8517 fi
8518 done
8519fi
cristy8b350f62009-11-15 23:12:43 +00008520rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008522fi
cristy8b350f62009-11-15 23:12:43 +00008523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008524$as_echo "$ac_cv_prog_c_openmp" >&6; }
8525 case $ac_cv_prog_c_openmp in #(
8526 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008527 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008528 *)
cristy8b350f62009-11-15 23:12:43 +00008529 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008530 esac
8531 fi
8532
8533
8534CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8535MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8536
cristy391f1ce2010-09-09 17:23:28 +00008537if test "$enable_openmp" != no; then
8538 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8539 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8540 fi
8541fi
cristy3ed852e2009-09-05 21:47:34 +00008542
cristy736173a2009-09-20 21:18:22 +00008543# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008544
8545
8546
8547ac_ext=c
8548ac_cpp='$CPP $CPPFLAGS'
8549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8551ac_compiler_gnu=$ac_cv_c_compiler_gnu
8552
8553ax_pthread_ok=no
8554
8555# We used to check for pthread.h first, but this fails if pthread.h
8556# requires special compiler flags (e.g. on True64 or Sequent).
8557# It gets checked for in the link test anyway.
8558
8559# First of all, check if the user has set any of the PTHREAD_LIBS,
8560# etcetera environment variables, and if threads linking works using
8561# them:
8562if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8563 save_CFLAGS="$CFLAGS"
8564 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8565 save_LIBS="$LIBS"
8566 LIBS="$PTHREAD_LIBS $LIBS"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8568$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h. */
8571
8572/* Override any GCC internal prototype to avoid an error.
8573 Use char because int might match the return type of a GCC
8574 builtin and then its argument prototype would still apply. */
8575#ifdef __cplusplus
8576extern "C"
8577#endif
8578char pthread_join ();
8579int
8580main ()
8581{
8582return pthread_join ();
8583 ;
8584 return 0;
8585}
8586_ACEOF
8587if ac_fn_c_try_link "$LINENO"; then :
8588 ax_pthread_ok=yes
8589fi
8590rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8593$as_echo "$ax_pthread_ok" >&6; }
8594 if test x"$ax_pthread_ok" = xno; then
8595 PTHREAD_LIBS=""
8596 PTHREAD_CFLAGS=""
8597 fi
8598 LIBS="$save_LIBS"
8599 CFLAGS="$save_CFLAGS"
8600fi
8601
8602# We must check for the threads library under a number of different
8603# names; the ordering is very important because some systems
8604# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8605# libraries is broken (non-POSIX).
8606
8607# Create a list of thread flags to try. Items starting with a "-" are
8608# C compiler flags, and other items are library names, except for "none"
8609# which indicates that we try without any flags at all, and "pthread-config"
8610# which is a program returning the flags for the Pth emulation library.
8611
8612ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8613
8614# The ordering *is* (sometimes) important. Some notes on the
8615# individual items follow:
8616
8617# pthreads: AIX (must check this before -lpthread)
8618# none: in case threads are in libc; should be tried before -Kthread and
8619# other compiler flags to prevent continual compiler warnings
8620# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8621# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8622# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8623# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8624# -pthreads: Solaris/gcc
8625# -mthreads: Mingw32/gcc, Lynx/gcc
8626# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8627# doesn't hurt to check since this sometimes defines pthreads too;
8628# also defines -D_REENTRANT)
8629# ... -mt is also the pthreads flag for HP/aCC
8630# pthread: Linux, etcetera
8631# --thread-safe: KAI C++
8632# pthread-config: use pthread-config program (for GNU Pth library)
8633
8634case "${host_cpu}-${host_os}" in
8635 *solaris*)
8636
8637 # On Solaris (at least, for some versions), libc contains stubbed
8638 # (non-functional) versions of the pthreads routines, so link-based
8639 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8640 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8641 # a function called by this macro, so we could check for that, but
8642 # who knows whether they'll stub that too in a future libc.) So,
8643 # we'll just look for -pthreads and -lpthread first:
8644
8645 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8646 ;;
8647
8648 *-darwin*)
8649 ax_pthread_flags="-pthread $ax_pthread_flags"
8650 ;;
8651esac
8652
8653if test x"$ax_pthread_ok" = xno; then
8654for flag in $ax_pthread_flags; do
8655
8656 case $flag in
8657 none)
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8659$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8660 ;;
8661
8662 -*)
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8664$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8665 PTHREAD_CFLAGS="$flag"
8666 ;;
8667
8668 pthread-config)
8669 # Extract the first word of "pthread-config", so it can be a program name with args.
8670set dummy pthread-config; ac_word=$2
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008673if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008674 $as_echo_n "(cached) " >&6
8675else
8676 if test -n "$ax_pthread_config"; then
8677 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8678else
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8686 ac_cv_prog_ax_pthread_config="yes"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690done
8691 done
8692IFS=$as_save_IFS
8693
8694 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8695fi
8696fi
8697ax_pthread_config=$ac_cv_prog_ax_pthread_config
8698if test -n "$ax_pthread_config"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8700$as_echo "$ax_pthread_config" >&6; }
8701else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703$as_echo "no" >&6; }
8704fi
8705
8706
8707 if test x"$ax_pthread_config" = xno; then continue; fi
8708 PTHREAD_CFLAGS="`pthread-config --cflags`"
8709 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8710 ;;
8711
8712 *)
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8714$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8715 PTHREAD_LIBS="-l$flag"
8716 ;;
8717 esac
8718
8719 save_LIBS="$LIBS"
8720 save_CFLAGS="$CFLAGS"
8721 LIBS="$PTHREAD_LIBS $LIBS"
8722 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8723
8724 # Check for various functions. We must include pthread.h,
8725 # since some functions may be macros. (On the Sequent, we
8726 # need a special flag -Kthread to make this header compile.)
8727 # We check for pthread_join because it is in -lpthread on IRIX
8728 # while pthread_create is in libc. We check for pthread_attr_init
8729 # due to DEC craziness with -lpthreads. We check for
8730 # pthread_cleanup_push because it is one of the few pthread
8731 # functions on Solaris that doesn't have a non-functional libc stub.
8732 # We try pthread_create on general principles.
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734/* end confdefs.h. */
8735#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008736 static void routine(void* a) {a=0;}
8737 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008738int
8739main ()
8740{
8741pthread_t th; pthread_attr_t attr;
8742 pthread_create(&th,0,start_routine,0);
8743 pthread_join(th, 0);
8744 pthread_attr_init(&attr);
8745 pthread_cleanup_push(routine, 0);
8746 pthread_cleanup_pop(0);
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751if ac_fn_c_try_link "$LINENO"; then :
8752 ax_pthread_ok=yes
8753fi
8754rm -f core conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756
8757 LIBS="$save_LIBS"
8758 CFLAGS="$save_CFLAGS"
8759
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8761$as_echo "$ax_pthread_ok" >&6; }
8762 if test "x$ax_pthread_ok" = xyes; then
8763 break;
8764 fi
8765
8766 PTHREAD_LIBS=""
8767 PTHREAD_CFLAGS=""
8768done
8769fi
8770
8771# Various other checks:
8772if test "x$ax_pthread_ok" = xyes; then
8773 save_LIBS="$LIBS"
8774 LIBS="$PTHREAD_LIBS $LIBS"
8775 save_CFLAGS="$CFLAGS"
8776 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8777
8778 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8780$as_echo_n "checking for joinable pthread attribute... " >&6; }
8781 attr_name=unknown
8782 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784/* end confdefs.h. */
8785#include <pthread.h>
8786int
8787main ()
8788{
8789int attr=$attr; return attr;
8790 ;
8791 return 0;
8792}
8793_ACEOF
8794if ac_fn_c_try_link "$LINENO"; then :
8795 attr_name=$attr; break
8796fi
8797rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 done
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8801$as_echo "$attr_name" >&6; }
8802 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8803
8804cat >>confdefs.h <<_ACEOF
8805#define PTHREAD_CREATE_JOINABLE $attr_name
8806_ACEOF
8807
8808 fi
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8811$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8812 flag=no
8813 case "${host_cpu}-${host_os}" in
8814 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8815 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8816 esac
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8818$as_echo "${flag}" >&6; }
8819 if test "x$flag" != xno; then
8820 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8821 fi
8822
8823 LIBS="$save_LIBS"
8824 CFLAGS="$save_CFLAGS"
8825
8826 # More AIX lossage: must compile with xlc_r or cc_r
8827 if test x"$GCC" != xyes; then
8828 for ac_prog in xlc_r cc_r
8829do
8830 # Extract the first word of "$ac_prog", so it can be a program name with args.
8831set dummy $ac_prog; ac_word=$2
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008834if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008835 $as_echo_n "(cached) " >&6
8836else
8837 if test -n "$PTHREAD_CC"; then
8838 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8839else
8840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841for as_dir in $PATH
8842do
8843 IFS=$as_save_IFS
8844 test -z "$as_dir" && as_dir=.
8845 for ac_exec_ext in '' $ac_executable_extensions; do
8846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8847 ac_cv_prog_PTHREAD_CC="$ac_prog"
8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 break 2
8850 fi
8851done
8852 done
8853IFS=$as_save_IFS
8854
8855fi
8856fi
8857PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8858if test -n "$PTHREAD_CC"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8860$as_echo "$PTHREAD_CC" >&6; }
8861else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863$as_echo "no" >&6; }
8864fi
8865
8866
8867 test -n "$PTHREAD_CC" && break
8868done
8869test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8870
8871 else
8872 PTHREAD_CC=$CC
8873 fi
8874else
8875 PTHREAD_CC="$CC"
8876fi
8877
8878
8879
8880
8881
8882# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8883if test x"$ax_pthread_ok" = xyes; then
8884
8885$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8886
8887 :
8888else
8889 ax_pthread_ok=no
8890
8891fi
8892ac_ext=c
8893ac_cpp='$CPP $CPPFLAGS'
8894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897
8898
8899
8900# Check whether --enable-opencl was given.
8901if test "${enable_opencl+set}" = set; then :
8902 enableval=$enable_opencl; disable_opencl=$enableval
8903else
8904 disable_opencl='yes'
8905fi
8906
8907
8908if test "$disable_opencl" = 'yes'; then
8909 ac_ext=c
8910ac_cpp='$CPP $CPPFLAGS'
8911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913ac_compiler_gnu=$ac_cv_c_compiler_gnu
8914
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8916$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008917if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008918 $as_echo_n "(cached) " >&6
8919else
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h. */
8922
8923int
8924main ()
8925{
8926#ifndef _MSC_VER
8927 choke me
8928#endif
8929
8930 ;
8931 return 0;
8932}
8933_ACEOF
8934if ac_fn_c_try_compile "$LINENO"; then :
8935 ax_compiler_ms=yes
8936else
8937 ax_compiler_ms=no
8938fi
8939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940ax_cv_c_compiler_ms=$ax_compiler_ms
8941
8942fi
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8944$as_echo "$ax_cv_c_compiler_ms" >&6; }
8945 if test X$ax_compiler_ms = Xno; then :
8946 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8947fi
8948
8949 ax_save_CPPFLAGS=$CPPFLAGS
8950 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8951 for ac_header in CL/cl.h OpenCL/cl.h
8952do :
8953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8954ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008955if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008956 cat >>confdefs.h <<_ACEOF
8957#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8958_ACEOF
8959
8960fi
8961
8962done
8963
8964 CPPFLAGS=$ax_save_CPPFLAGS
8965
8966 for ac_header in windows.h
8967do :
8968 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008969if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008970 cat >>confdefs.h <<_ACEOF
8971#define HAVE_WINDOWS_H 1
8972_ACEOF
8973
8974fi
8975
8976done
8977
8978
8979
8980
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8982$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008983if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008984 $as_echo_n "(cached) " >&6
8985else
8986 ax_cv_check_cl_libcl=no
8987 case $host_cpu in
8988 x86_64) ax_check_cl_libdir=lib64 ;;
8989 *) ax_check_cl_libdir=lib ;;
8990 esac
8991 ax_save_CPPFLAGS=$CPPFLAGS
8992 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8993 ax_save_LIBS=$LIBS
8994 LIBS=""
8995 ax_check_libs="-lOpenCL -lCL -lclparser"
8996 for ax_lib in $ax_check_libs; do
8997 if test X$ax_compiler_ms = Xyes; then :
8998 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8999else
9000 ax_try_lib=$ax_lib
9001fi
9002 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h. */
9005
9006 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9007 # include <windows.h>
9008 # endif
9009 # ifdef HAVE_CL_CL_H
9010 # include <CL/cl.h>
9011 # elif defined(HAVE_OPENCL_CL_H)
9012 # include <OpenCL/cl.h>
9013 # else
9014 # error no CL.h
9015 # endif
9016int
9017main ()
9018{
9019clCreateContextFromType(0,0,0,0,0)
9020 ;
9021 return 0;
9022}
9023_ACEOF
9024if ac_fn_c_try_link "$LINENO"; then :
9025 ax_cv_check_cl_libcl=$ax_try_lib; break
9026else
9027 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"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h. */
9030
9031 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9032 # include <windows.h>
9033 # endif
9034 # ifdef HAVE_CL_CL_H
9035 # include <CL/cl.h>
9036 # elif defined(HAVE_OPENCL_CL_H)
9037 # include <OpenCL/cl.h>
9038 # else
9039 # error no CL.h
9040 # endif
9041int
9042main ()
9043{
9044clCreateContextFromType(0,0,0,0,0)
9045 ;
9046 return 0;
9047}
9048_ACEOF
9049if ac_fn_c_try_link "$LINENO"; then :
9050 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9051else
cristy78c5a0c2010-12-04 20:00:59 +00009052 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 +00009053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054/* end confdefs.h. */
9055
9056 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9057 # include <windows.h>
9058 # endif
9059 # ifdef HAVE_CL_CL_H
9060 # include <CL/cl.h>
9061 # elif defined(HAVE_OPENCL_CL_H)
9062 # include <OpenCL/cl.h>
9063 # else
9064 # error no CL.h
9065 # endif
9066int
9067main ()
9068{
9069clCreateContextFromType(0,0,0,0,0)
9070 ;
9071 return 0;
9072}
9073_ACEOF
9074if ac_fn_c_try_link "$LINENO"; then :
9075 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9076fi
9077rm -f core conftest.err conftest.$ac_objext \
9078 conftest$ac_exeext conftest.$ac_ext
9079fi
9080rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082fi
9083rm -f core conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085 done
9086
9087 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009088 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090/* end confdefs.h. */
9091
9092 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9093 # include <windows.h>
9094 # endif
9095 # ifdef HAVE_CL_CL_H
9096 # include <CL/cl.h>
9097 # elif defined(HAVE_OPENCL_CL_H)
9098 # include <OpenCL/cl.h>
9099 # else
9100 # error no CL.h
9101 # endif
9102int
9103main ()
9104{
9105clCreateContextFromType(0,0,0,0,0)
9106 ;
9107 return 0;
9108}
9109_ACEOF
9110if ac_fn_c_try_link "$LINENO"; then :
9111 ax_cv_check_cl_libcl=$LIBS
9112fi
9113rm -f core conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9115fi
9116
9117 LIBS=$ax_save_LIBS
9118 CPPFLAGS=$ax_save_CPPFLAGS
9119fi
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9121$as_echo "$ax_cv_check_cl_libcl" >&6; }
9122
9123 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9124 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9125else
9126 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9127$as_echo "#define _OPENCL 1" >>confdefs.h
9128
9129fi
9130 ac_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
9136fi
9137
9138
9139
9140
cristyc7083c12009-10-14 03:16:55 +00009141CFLAGS="$CL_CFLAGS $CFLAGS"
9142LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009143
cristy391f1ce2010-09-09 17:23:28 +00009144if test "$enable_opencl" != no; then
9145 if test "_OPENCL" = '1'; then
9146 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9147 fi
cristyfd9dcd42010-08-08 18:07:02 +00009148fi
cristy2e8b51d2009-10-17 18:26:15 +00009149
cristy3ed852e2009-09-05 21:47:34 +00009150########
9151#
9152# Check for large file support
9153#
9154########
9155# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009156if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009157 enableval=$enable_largefile;
9158fi
9159
9160if test "$enable_largefile" != no; then
9161
cristy8b350f62009-11-15 23:12:43 +00009162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009163$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009164if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009165 $as_echo_n "(cached) " >&6
9166else
9167 ac_cv_sys_largefile_CC=no
9168 if test "$GCC" != yes; then
9169 ac_save_CC=$CC
9170 while :; do
9171 # IRIX 6.2 and later do not support large files by default,
9172 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009174/* end confdefs.h. */
9175#include <sys/types.h>
9176 /* Check that off_t can represent 2**63 - 1 correctly.
9177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9178 since some C++ compilers masquerading as C compilers
9179 incorrectly reject 9223372036854775807. */
9180#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9182 && LARGE_OFF_T % 2147483647 == 1)
9183 ? 1 : -1];
9184int
9185main ()
9186{
9187
9188 ;
9189 return 0;
9190}
9191_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009192 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009193 break
cristy3ed852e2009-09-05 21:47:34 +00009194fi
cristy3ed852e2009-09-05 21:47:34 +00009195rm -f core conftest.err conftest.$ac_objext
9196 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009197 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009198 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009199fi
cristy3ed852e2009-09-05 21:47:34 +00009200rm -f core conftest.err conftest.$ac_objext
9201 break
9202 done
9203 CC=$ac_save_CC
9204 rm -f conftest.$ac_ext
9205 fi
9206fi
cristy8b350f62009-11-15 23:12:43 +00009207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009208$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9209 if test "$ac_cv_sys_largefile_CC" != no; then
9210 CC=$CC$ac_cv_sys_largefile_CC
9211 fi
9212
cristy8b350f62009-11-15 23:12:43 +00009213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009214$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009215if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009216 $as_echo_n "(cached) " >&6
9217else
9218 while :; do
cristy8b350f62009-11-15 23:12:43 +00009219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009220/* end confdefs.h. */
9221#include <sys/types.h>
9222 /* Check that off_t can represent 2**63 - 1 correctly.
9223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9224 since some C++ compilers masquerading as C compilers
9225 incorrectly reject 9223372036854775807. */
9226#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9228 && LARGE_OFF_T % 2147483647 == 1)
9229 ? 1 : -1];
9230int
9231main ()
9232{
9233
9234 ;
9235 return 0;
9236}
9237_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009238if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009239 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009240fi
cristy3ed852e2009-09-05 21:47:34 +00009241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009243/* end confdefs.h. */
9244#define _FILE_OFFSET_BITS 64
9245#include <sys/types.h>
9246 /* Check that off_t can represent 2**63 - 1 correctly.
9247 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9248 since some C++ compilers masquerading as C compilers
9249 incorrectly reject 9223372036854775807. */
9250#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9251 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9252 && LARGE_OFF_T % 2147483647 == 1)
9253 ? 1 : -1];
9254int
9255main ()
9256{
9257
9258 ;
9259 return 0;
9260}
9261_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009262if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009263 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009264fi
cristy3ed852e2009-09-05 21:47:34 +00009265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266 ac_cv_sys_file_offset_bits=unknown
9267 break
9268done
9269fi
cristy8b350f62009-11-15 23:12:43 +00009270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009271$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9272case $ac_cv_sys_file_offset_bits in #(
9273 no | unknown) ;;
9274 *)
9275cat >>confdefs.h <<_ACEOF
9276#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9277_ACEOF
9278;;
9279esac
9280rm -rf conftest*
9281 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009283$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009284if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009285 $as_echo_n "(cached) " >&6
9286else
9287 while :; do
cristy8b350f62009-11-15 23:12:43 +00009288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009289/* end confdefs.h. */
9290#include <sys/types.h>
9291 /* Check that off_t can represent 2**63 - 1 correctly.
9292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9293 since some C++ compilers masquerading as C compilers
9294 incorrectly reject 9223372036854775807. */
9295#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9297 && LARGE_OFF_T % 2147483647 == 1)
9298 ? 1 : -1];
9299int
9300main ()
9301{
9302
9303 ;
9304 return 0;
9305}
9306_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009307if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009308 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009309fi
cristy3ed852e2009-09-05 21:47:34 +00009310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009312/* end confdefs.h. */
9313#define _LARGE_FILES 1
9314#include <sys/types.h>
9315 /* Check that off_t can represent 2**63 - 1 correctly.
9316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9317 since some C++ compilers masquerading as C compilers
9318 incorrectly reject 9223372036854775807. */
9319#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9321 && LARGE_OFF_T % 2147483647 == 1)
9322 ? 1 : -1];
9323int
9324main ()
9325{
9326
9327 ;
9328 return 0;
9329}
9330_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009331if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009332 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009333fi
cristy3ed852e2009-09-05 21:47:34 +00009334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9335 ac_cv_sys_large_files=unknown
9336 break
9337done
9338fi
cristy8b350f62009-11-15 23:12:43 +00009339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009340$as_echo "$ac_cv_sys_large_files" >&6; }
9341case $ac_cv_sys_large_files in #(
9342 no | unknown) ;;
9343 *)
9344cat >>confdefs.h <<_ACEOF
9345#define _LARGE_FILES $ac_cv_sys_large_files
9346_ACEOF
9347;;
9348esac
9349rm -rf conftest*
9350 fi
9351fi
9352
cristy8b350f62009-11-15 23:12:43 +00009353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009354$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009355if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009356 $as_echo_n "(cached) " >&6
9357else
9358 while :; do
cristy8b350f62009-11-15 23:12:43 +00009359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009360/* end confdefs.h. */
9361#include <sys/types.h> /* for off_t */
9362 #include <stdio.h>
9363int
9364main ()
9365{
9366int (*fp) (FILE *, off_t, int) = fseeko;
9367 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9368 ;
9369 return 0;
9370}
9371_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009372if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009373 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009374fi
cristy8b350f62009-11-15 23:12:43 +00009375rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009378/* end confdefs.h. */
9379#define _LARGEFILE_SOURCE 1
9380#include <sys/types.h> /* for off_t */
9381 #include <stdio.h>
9382int
9383main ()
9384{
9385int (*fp) (FILE *, off_t, int) = fseeko;
9386 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9387 ;
9388 return 0;
9389}
9390_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009391if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009392 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009393fi
cristy8b350f62009-11-15 23:12:43 +00009394rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009396 ac_cv_sys_largefile_source=unknown
9397 break
9398done
9399fi
cristy8b350f62009-11-15 23:12:43 +00009400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009401$as_echo "$ac_cv_sys_largefile_source" >&6; }
9402case $ac_cv_sys_largefile_source in #(
9403 no | unknown) ;;
9404 *)
9405cat >>confdefs.h <<_ACEOF
9406#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9407_ACEOF
9408;;
9409esac
9410rm -rf conftest*
9411
9412# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9413# in glibc 2.1.3, but that breaks too many other things.
9414# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9415if test $ac_cv_sys_largefile_source != unknown; then
9416
cristy8b350f62009-11-15 23:12:43 +00009417$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009418
9419fi
9420
9421LFS_CPPFLAGS=''
9422if test "$enable_largefile" != no; then
9423 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9424 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9425 else
cristy8b350f62009-11-15 23:12:43 +00009426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009427$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009428 if test "$cross_compiling" = yes; then :
9429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009431as_fn_error $? "cannot run test program while cross compiling
9432See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009433else
cristy8b350f62009-11-15 23:12:43 +00009434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009436#include <unistd.h>
9437 main () {
9438 exit(!(sizeof(off_t) == 8));
9439 }
cristyda16f162011-02-19 23:52:17 +00009440int
9441main ()
9442{
9443
9444 ;
9445 return 0;
9446}
cristy3ed852e2009-09-05 21:47:34 +00009447_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009448if ac_fn_c_try_run "$LINENO"; then :
9449 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009450
cristy8b350f62009-11-15 23:12:43 +00009451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009452$as_echo "yes" >&6; }
9453else
cristy8b350f62009-11-15 23:12:43 +00009454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009455$as_echo "no" >&6; }
9456fi
cristy8b350f62009-11-15 23:12:43 +00009457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9458 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009459fi
9460
cristy3ed852e2009-09-05 21:47:34 +00009461 fi
9462 if test "$ac_cv_sys_large_files" != 'no'; then
9463 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9464 fi
9465 if test "$ac_cv_sys_largefile_source" != 'no'; then
9466 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9467 fi
9468fi
9469
9470
9471#
9472# Configure libtool & libltdl
9473#
9474# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009475enable_dlopen=yes
9476
9477
9478
9479case `pwd` in
9480 *\ * | *\ *)
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9482$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9483esac
9484
9485
9486
cristyda16f162011-02-19 23:52:17 +00009487macro_version='2.4'
9488macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502ltmain="$ac_aux_dir/ltmain.sh"
9503
cristy0c60a692010-11-04 01:09:47 +00009504# Backslashify metacharacters that are still active within
9505# double-quoted strings.
9506sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9507
9508# Same as above, but do not quote variable references.
9509double_quote_subst='s/\(["`\\]\)/\\\1/g'
9510
9511# Sed substitution to delay expansion of an escaped shell variable in a
9512# double_quote_subst'ed string.
9513delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9514
9515# Sed substitution to delay expansion of an escaped single quote.
9516delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9517
9518# Sed substitution to avoid accidental globbing in evaled expressions
9519no_glob_subst='s/\*/\\\*/g'
9520
cristy73bd4a52010-10-05 11:24:23 +00009521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9522$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009523if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009524 $as_echo_n "(cached) " >&6
9525else
9526 if test -n "$NM"; then
9527 # Let the user override the test.
9528 lt_cv_path_NM="$NM"
9529else
9530 lt_nm_to_check="${ac_tool_prefix}nm"
9531 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9532 lt_nm_to_check="$lt_nm_to_check nm"
9533 fi
9534 for lt_tmp_nm in $lt_nm_to_check; do
9535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9536 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9537 IFS="$lt_save_ifs"
9538 test -z "$ac_dir" && ac_dir=.
9539 tmp_nm="$ac_dir/$lt_tmp_nm"
9540 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9541 # Check to see if the nm accepts a BSD-compat flag.
9542 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9543 # nm: unknown option "B" ignored
9544 # Tru64's nm complains that /dev/null is an invalid object file
9545 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9546 */dev/null* | *'Invalid file or object type'*)
9547 lt_cv_path_NM="$tmp_nm -B"
9548 break
9549 ;;
9550 *)
9551 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9552 */dev/null*)
9553 lt_cv_path_NM="$tmp_nm -p"
9554 break
9555 ;;
9556 *)
9557 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9558 continue # so that we can try to find one that supports BSD flags
9559 ;;
9560 esac
9561 ;;
9562 esac
9563 fi
9564 done
9565 IFS="$lt_save_ifs"
9566 done
9567 : ${lt_cv_path_NM=no}
9568fi
9569fi
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9571$as_echo "$lt_cv_path_NM" >&6; }
9572if test "$lt_cv_path_NM" != "no"; then
9573 NM="$lt_cv_path_NM"
9574else
9575 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009576 if test -n "$DUMPBIN"; then :
9577 # Let the user override the test.
9578 else
9579 if test -n "$ac_tool_prefix"; then
9580 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009581 do
9582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009586if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009587 $as_echo_n "(cached) " >&6
9588else
9589 if test -n "$DUMPBIN"; then
9590 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9591else
9592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593for as_dir in $PATH
9594do
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9599 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9602 fi
9603done
9604 done
9605IFS=$as_save_IFS
9606
9607fi
9608fi
9609DUMPBIN=$ac_cv_prog_DUMPBIN
9610if test -n "$DUMPBIN"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9612$as_echo "$DUMPBIN" >&6; }
9613else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615$as_echo "no" >&6; }
9616fi
9617
9618
9619 test -n "$DUMPBIN" && break
9620 done
9621fi
9622if test -z "$DUMPBIN"; then
9623 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009624 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009625do
9626 # Extract the first word of "$ac_prog", so it can be a program name with args.
9627set dummy $ac_prog; ac_word=$2
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009630if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009631 $as_echo_n "(cached) " >&6
9632else
9633 if test -n "$ac_ct_DUMPBIN"; then
9634 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9635else
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647done
9648 done
9649IFS=$as_save_IFS
9650
9651fi
9652fi
9653ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9654if test -n "$ac_ct_DUMPBIN"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9656$as_echo "$ac_ct_DUMPBIN" >&6; }
9657else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659$as_echo "no" >&6; }
9660fi
9661
9662
9663 test -n "$ac_ct_DUMPBIN" && break
9664done
9665
9666 if test "x$ac_ct_DUMPBIN" = x; then
9667 DUMPBIN=":"
9668 else
9669 case $cross_compiling:$ac_tool_warned in
9670yes:)
9671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9673ac_tool_warned=yes ;;
9674esac
9675 DUMPBIN=$ac_ct_DUMPBIN
9676 fi
9677fi
9678
cristy0c60a692010-11-04 01:09:47 +00009679 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9680 *COFF*)
9681 DUMPBIN="$DUMPBIN -symbols"
9682 ;;
9683 *)
9684 DUMPBIN=:
9685 ;;
9686 esac
9687 fi
cristy73bd4a52010-10-05 11:24:23 +00009688
9689 if test "$DUMPBIN" != ":"; then
9690 NM="$DUMPBIN"
9691 fi
9692fi
9693test -z "$NM" && NM=nm
9694
9695
9696
9697
9698
9699
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9701$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009702if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009703 $as_echo_n "(cached) " >&6
9704else
9705 lt_cv_nm_interface="BSD nm"
9706 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009707 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009708 (eval "$ac_compile" 2>conftest.err)
9709 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009710 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009711 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9712 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009713 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009714 cat conftest.out >&5
9715 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9716 lt_cv_nm_interface="MS dumpbin"
9717 fi
9718 rm -f conftest*
9719fi
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9721$as_echo "$lt_cv_nm_interface" >&6; }
9722
9723# find the maximum length of command line arguments
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9725$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009726if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009727 $as_echo_n "(cached) " >&6
9728else
9729 i=0
9730 teststring="ABCD"
9731
9732 case $build_os in
9733 msdosdjgpp*)
9734 # On DJGPP, this test can blow up pretty badly due to problems in libc
9735 # (any single argument exceeding 2000 bytes causes a buffer overrun
9736 # during glob expansion). Even if it were fixed, the result of this
9737 # check would be larger than it should be.
9738 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9739 ;;
9740
9741 gnu*)
9742 # Under GNU Hurd, this test is not required because there is
9743 # no limit to the length of command line arguments.
9744 # Libtool will interpret -1 as no limit whatsoever
9745 lt_cv_sys_max_cmd_len=-1;
9746 ;;
9747
9748 cygwin* | mingw* | cegcc*)
9749 # On Win9x/ME, this test blows up -- it succeeds, but takes
9750 # about 5 minutes as the teststring grows exponentially.
9751 # Worse, since 9x/ME are not pre-emptively multitasking,
9752 # you end up with a "frozen" computer, even though with patience
9753 # the test eventually succeeds (with a max line length of 256k).
9754 # Instead, let's just punt: use the minimum linelength reported by
9755 # all of the supported platforms: 8192 (on NT/2K/XP).
9756 lt_cv_sys_max_cmd_len=8192;
9757 ;;
9758
cristy0c60a692010-11-04 01:09:47 +00009759 mint*)
9760 # On MiNT this can take a long time and run out of memory.
9761 lt_cv_sys_max_cmd_len=8192;
9762 ;;
9763
cristy73bd4a52010-10-05 11:24:23 +00009764 amigaos*)
9765 # On AmigaOS with pdksh, this test takes hours, literally.
9766 # So we just punt and use a minimum line length of 8192.
9767 lt_cv_sys_max_cmd_len=8192;
9768 ;;
9769
9770 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9771 # This has been around since 386BSD, at least. Likely further.
9772 if test -x /sbin/sysctl; then
9773 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9774 elif test -x /usr/sbin/sysctl; then
9775 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9776 else
9777 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9778 fi
9779 # And add a safety zone
9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9782 ;;
9783
9784 interix*)
9785 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9786 lt_cv_sys_max_cmd_len=196608
9787 ;;
9788
9789 osf*)
9790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9792 # nice to cause kernel panics so lets avoid the loop below.
9793 # First set a reasonable default.
9794 lt_cv_sys_max_cmd_len=16384
9795 #
9796 if test -x /sbin/sysconfig; then
9797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9798 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9799 esac
9800 fi
9801 ;;
9802 sco3.2v5*)
9803 lt_cv_sys_max_cmd_len=102400
9804 ;;
9805 sysv5* | sco5v6* | sysv4.2uw2*)
9806 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9807 if test -n "$kargmax"; then
9808 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9809 else
9810 lt_cv_sys_max_cmd_len=32768
9811 fi
9812 ;;
9813 *)
9814 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9815 if test -n "$lt_cv_sys_max_cmd_len"; then
9816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9818 else
9819 # Make teststring a little bigger before we do anything with it.
9820 # a 1K string should be a reasonable start.
9821 for i in 1 2 3 4 5 6 7 8 ; do
9822 teststring=$teststring$teststring
9823 done
9824 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9825 # If test is not a shell built-in, we'll probably end up computing a
9826 # maximum length that is only half of the actual maximum length, but
9827 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009828 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9829 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009830 test $i != 17 # 1/2 MB should be enough
9831 do
9832 i=`expr $i + 1`
9833 teststring=$teststring$teststring
9834 done
9835 # Only check the string length outside the loop.
9836 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9837 teststring=
9838 # Add a significant safety factor because C++ compilers can tack on
9839 # massive amounts of additional arguments before passing them to the
9840 # linker. It appears as though 1/2 is a usable value.
9841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9842 fi
9843 ;;
9844 esac
9845
9846fi
9847
9848if test -n $lt_cv_sys_max_cmd_len ; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9850$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9851else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9853$as_echo "none" >&6; }
9854fi
9855max_cmd_len=$lt_cv_sys_max_cmd_len
9856
9857
9858
9859
9860
9861
9862: ${CP="cp -f"}
9863: ${MV="mv -f"}
9864: ${RM="rm -f"}
9865
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9867$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9868# Try some XSI features
9869xsi_shell=no
9870( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009871 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9872 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009873 && eval 'test $(( 1 + 1 )) -eq 2 \
9874 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9875 && xsi_shell=yes
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9877$as_echo "$xsi_shell" >&6; }
9878
9879
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9881$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9882lt_shell_append=no
9883( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9884 >/dev/null 2>&1 \
9885 && lt_shell_append=yes
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9887$as_echo "$lt_shell_append" >&6; }
9888
9889
9890if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9891 lt_unset=unset
9892else
9893 lt_unset=false
9894fi
9895
9896
9897
9898
9899
9900# test EBCDIC or ASCII
9901case `echo X|tr X '\101'` in
9902 A) # ASCII based system
9903 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9904 lt_SP2NL='tr \040 \012'
9905 lt_NL2SP='tr \015\012 \040\040'
9906 ;;
9907 *) # EBCDIC based system
9908 lt_SP2NL='tr \100 \n'
9909 lt_NL2SP='tr \r\n \100\100'
9910 ;;
9911esac
9912
9913
9914
9915
9916
9917
9918
9919
9920
cristyda16f162011-02-19 23:52:17 +00009921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9922$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9923if ${lt_cv_to_host_file_cmd+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925else
9926 case $host in
9927 *-*-mingw* )
9928 case $build in
9929 *-*-mingw* ) # actually msys
9930 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9931 ;;
9932 *-*-cygwin* )
9933 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9934 ;;
9935 * ) # otherwise, assume *nix
9936 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9937 ;;
9938 esac
9939 ;;
9940 *-*-cygwin* )
9941 case $build in
9942 *-*-mingw* ) # actually msys
9943 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9944 ;;
9945 *-*-cygwin* )
9946 lt_cv_to_host_file_cmd=func_convert_file_noop
9947 ;;
9948 * ) # otherwise, assume *nix
9949 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9950 ;;
9951 esac
9952 ;;
9953 * ) # unhandled hosts (and "normal" native builds)
9954 lt_cv_to_host_file_cmd=func_convert_file_noop
9955 ;;
9956esac
9957
9958fi
9959
9960to_host_file_cmd=$lt_cv_to_host_file_cmd
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9962$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9963
9964
9965
9966
9967
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9969$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9970if ${lt_cv_to_tool_file_cmd+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972else
9973 #assume ordinary cross tools, or native build.
9974lt_cv_to_tool_file_cmd=func_convert_file_noop
9975case $host in
9976 *-*-mingw* )
9977 case $build in
9978 *-*-mingw* ) # actually msys
9979 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9980 ;;
9981 esac
9982 ;;
9983esac
9984
9985fi
9986
9987to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9989$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9990
9991
9992
9993
9994
cristy73bd4a52010-10-05 11:24:23 +00009995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9996$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009997if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009998 $as_echo_n "(cached) " >&6
9999else
10000 lt_cv_ld_reload_flag='-r'
10001fi
10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10003$as_echo "$lt_cv_ld_reload_flag" >&6; }
10004reload_flag=$lt_cv_ld_reload_flag
10005case $reload_flag in
10006"" | " "*) ;;
10007*) reload_flag=" $reload_flag" ;;
10008esac
10009reload_cmds='$LD$reload_flag -o $output$reload_objs'
10010case $host_os in
cristyda16f162011-02-19 23:52:17 +000010011 cygwin* | mingw* | pw32* | cegcc*)
10012 if test "$GCC" != yes; then
10013 reload_cmds=false
10014 fi
10015 ;;
cristy73bd4a52010-10-05 11:24:23 +000010016 darwin*)
10017 if test "$GCC" = yes; then
10018 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10019 else
10020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10021 fi
10022 ;;
10023esac
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033if test -n "$ac_tool_prefix"; then
10034 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10035set dummy ${ac_tool_prefix}objdump; ac_word=$2
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010038if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010039 $as_echo_n "(cached) " >&6
10040else
10041 if test -n "$OBJDUMP"; then
10042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10043else
10044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045for as_dir in $PATH
10046do
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053 break 2
10054 fi
10055done
10056 done
10057IFS=$as_save_IFS
10058
10059fi
10060fi
10061OBJDUMP=$ac_cv_prog_OBJDUMP
10062if test -n "$OBJDUMP"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10064$as_echo "$OBJDUMP" >&6; }
10065else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067$as_echo "no" >&6; }
10068fi
10069
10070
10071fi
10072if test -z "$ac_cv_prog_OBJDUMP"; then
10073 ac_ct_OBJDUMP=$OBJDUMP
10074 # Extract the first word of "objdump", so it can be a program name with args.
10075set dummy objdump; ac_word=$2
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010078if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010079 $as_echo_n "(cached) " >&6
10080else
10081 if test -n "$ac_ct_OBJDUMP"; then
10082 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10083else
10084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $PATH
10086do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10091 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10094 fi
10095done
10096 done
10097IFS=$as_save_IFS
10098
10099fi
10100fi
10101ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10102if test -n "$ac_ct_OBJDUMP"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10104$as_echo "$ac_ct_OBJDUMP" >&6; }
10105else
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107$as_echo "no" >&6; }
10108fi
10109
10110 if test "x$ac_ct_OBJDUMP" = x; then
10111 OBJDUMP="false"
10112 else
10113 case $cross_compiling:$ac_tool_warned in
10114yes:)
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10117ac_tool_warned=yes ;;
10118esac
10119 OBJDUMP=$ac_ct_OBJDUMP
10120 fi
10121else
10122 OBJDUMP="$ac_cv_prog_OBJDUMP"
10123fi
10124
10125test -z "$OBJDUMP" && OBJDUMP=objdump
10126
10127
10128
10129
10130
10131
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10133$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010134if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010135 $as_echo_n "(cached) " >&6
10136else
10137 lt_cv_file_magic_cmd='$MAGIC_CMD'
10138lt_cv_file_magic_test_file=
10139lt_cv_deplibs_check_method='unknown'
10140# Need to set the preceding variable on all platforms that support
10141# interlibrary dependencies.
10142# 'none' -- dependencies not supported.
10143# `unknown' -- same as none, but documents that we really don't know.
10144# 'pass_all' -- all dependencies passed with no checks.
10145# 'test_compile' -- check by making test program.
10146# 'file_magic [[regex]]' -- check by looking for files in library path
10147# which responds to the $file_magic_cmd with a given extended regex.
10148# If you have `file' or equivalent on your system and you're not sure
10149# whether `pass_all' will *always* work, you probably want this one.
10150
10151case $host_os in
10152aix[4-9]*)
10153 lt_cv_deplibs_check_method=pass_all
10154 ;;
10155
10156beos*)
10157 lt_cv_deplibs_check_method=pass_all
10158 ;;
10159
10160bsdi[45]*)
10161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10162 lt_cv_file_magic_cmd='/usr/bin/file -L'
10163 lt_cv_file_magic_test_file=/shlib/libc.so
10164 ;;
10165
10166cygwin*)
10167 # func_win32_libid is a shell function defined in ltmain.sh
10168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10169 lt_cv_file_magic_cmd='func_win32_libid'
10170 ;;
10171
10172mingw* | pw32*)
10173 # Base MSYS/MinGW do not provide the 'file' command needed by
10174 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10175 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010176 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10177 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10179 lt_cv_file_magic_cmd='func_win32_libid'
10180 else
cristy0c60a692010-11-04 01:09:47 +000010181 # Keep this pattern in sync with the one in func_win32_libid.
10182 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 +000010183 lt_cv_file_magic_cmd='$OBJDUMP -f'
10184 fi
10185 ;;
10186
cristy0c60a692010-11-04 01:09:47 +000010187cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010188 # use the weaker test based on 'objdump'. See mingw*.
10189 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10190 lt_cv_file_magic_cmd='$OBJDUMP -f'
10191 ;;
10192
10193darwin* | rhapsody*)
10194 lt_cv_deplibs_check_method=pass_all
10195 ;;
10196
10197freebsd* | dragonfly*)
10198 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10199 case $host_cpu in
10200 i*86 )
10201 # Not sure whether the presence of OpenBSD here was a mistake.
10202 # Let's accept both of them until this is cleared up.
10203 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10204 lt_cv_file_magic_cmd=/usr/bin/file
10205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10206 ;;
10207 esac
10208 else
10209 lt_cv_deplibs_check_method=pass_all
10210 fi
10211 ;;
10212
10213gnu*)
10214 lt_cv_deplibs_check_method=pass_all
10215 ;;
10216
cristy0c60a692010-11-04 01:09:47 +000010217haiku*)
10218 lt_cv_deplibs_check_method=pass_all
10219 ;;
10220
cristy73bd4a52010-10-05 11:24:23 +000010221hpux10.20* | hpux11*)
10222 lt_cv_file_magic_cmd=/usr/bin/file
10223 case $host_cpu in
10224 ia64*)
10225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10226 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10227 ;;
10228 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010229 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 +000010230 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10231 ;;
10232 *)
cristy0c60a692010-11-04 01:09:47 +000010233 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 +000010234 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10235 ;;
10236 esac
10237 ;;
10238
10239interix[3-9]*)
10240 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10242 ;;
10243
10244irix5* | irix6* | nonstopux*)
10245 case $LD in
10246 *-32|*"-32 ") libmagic=32-bit;;
10247 *-n32|*"-n32 ") libmagic=N32;;
10248 *-64|*"-64 ") libmagic=64-bit;;
10249 *) libmagic=never-match;;
10250 esac
10251 lt_cv_deplibs_check_method=pass_all
10252 ;;
10253
10254# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010255linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010256 lt_cv_deplibs_check_method=pass_all
10257 ;;
10258
10259netbsd*)
10260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10262 else
10263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10264 fi
10265 ;;
10266
10267newos6*)
10268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10269 lt_cv_file_magic_cmd=/usr/bin/file
10270 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10271 ;;
10272
10273*nto* | *qnx*)
10274 lt_cv_deplibs_check_method=pass_all
10275 ;;
10276
10277openbsd*)
10278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10280 else
10281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10282 fi
10283 ;;
10284
10285osf3* | osf4* | osf5*)
10286 lt_cv_deplibs_check_method=pass_all
10287 ;;
10288
10289rdos*)
10290 lt_cv_deplibs_check_method=pass_all
10291 ;;
10292
10293solaris*)
10294 lt_cv_deplibs_check_method=pass_all
10295 ;;
10296
10297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10298 lt_cv_deplibs_check_method=pass_all
10299 ;;
10300
10301sysv4 | sysv4.3*)
10302 case $host_vendor in
10303 motorola)
10304 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]'
10305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10306 ;;
10307 ncr)
10308 lt_cv_deplibs_check_method=pass_all
10309 ;;
10310 sequent)
10311 lt_cv_file_magic_cmd='/bin/file'
10312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10313 ;;
10314 sni)
10315 lt_cv_file_magic_cmd='/bin/file'
10316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10317 lt_cv_file_magic_test_file=/lib/libc.so
10318 ;;
10319 siemens)
10320 lt_cv_deplibs_check_method=pass_all
10321 ;;
10322 pc)
10323 lt_cv_deplibs_check_method=pass_all
10324 ;;
10325 esac
10326 ;;
10327
10328tpf*)
10329 lt_cv_deplibs_check_method=pass_all
10330 ;;
10331esac
10332
10333fi
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10335$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010336
10337file_magic_glob=
10338want_nocaseglob=no
10339if test "$build" = "$host"; then
10340 case $host_os in
10341 mingw* | pw32*)
10342 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10343 want_nocaseglob=yes
10344 else
10345 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10346 fi
10347 ;;
10348 esac
10349fi
10350
cristy73bd4a52010-10-05 11:24:23 +000010351file_magic_cmd=$lt_cv_file_magic_cmd
10352deplibs_check_method=$lt_cv_deplibs_check_method
10353test -z "$deplibs_check_method" && deplibs_check_method=unknown
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
cristyda16f162011-02-19 23:52:17 +000010366
10367
10368
10369
10370
10371
10372
10373
10374
10375
cristy73bd4a52010-10-05 11:24:23 +000010376if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010377 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10378set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010381if ${ac_cv_prog_DLLTOOL+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383else
10384 if test -n "$DLLTOOL"; then
10385 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10386else
10387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388for as_dir in $PATH
10389do
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10394 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396 break 2
10397 fi
10398done
10399 done
10400IFS=$as_save_IFS
10401
10402fi
10403fi
10404DLLTOOL=$ac_cv_prog_DLLTOOL
10405if test -n "$DLLTOOL"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10407$as_echo "$DLLTOOL" >&6; }
10408else
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410$as_echo "no" >&6; }
10411fi
10412
10413
10414fi
10415if test -z "$ac_cv_prog_DLLTOOL"; then
10416 ac_ct_DLLTOOL=$DLLTOOL
10417 # Extract the first word of "dlltool", so it can be a program name with args.
10418set dummy dlltool; ac_word=$2
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420$as_echo_n "checking for $ac_word... " >&6; }
10421if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423else
10424 if test -n "$ac_ct_DLLTOOL"; then
10425 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10426else
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_exec_ext in '' $ac_executable_extensions; do
10433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10434 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 break 2
10437 fi
10438done
10439 done
10440IFS=$as_save_IFS
10441
10442fi
10443fi
10444ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10445if test -n "$ac_ct_DLLTOOL"; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10447$as_echo "$ac_ct_DLLTOOL" >&6; }
10448else
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450$as_echo "no" >&6; }
10451fi
10452
10453 if test "x$ac_ct_DLLTOOL" = x; then
10454 DLLTOOL="false"
10455 else
10456 case $cross_compiling:$ac_tool_warned in
10457yes:)
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10460ac_tool_warned=yes ;;
10461esac
10462 DLLTOOL=$ac_ct_DLLTOOL
10463 fi
10464else
10465 DLLTOOL="$ac_cv_prog_DLLTOOL"
10466fi
10467
10468test -z "$DLLTOOL" && DLLTOOL=dlltool
10469
10470
10471
10472
10473
10474
10475
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10477$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10478if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480else
10481 lt_cv_sharedlib_from_linklib_cmd='unknown'
10482
10483case $host_os in
10484cygwin* | mingw* | pw32* | cegcc*)
10485 # two different shell functions defined in ltmain.sh
10486 # decide which to use based on capabilities of $DLLTOOL
10487 case `$DLLTOOL --help 2>&1` in
10488 *--identify-strict*)
10489 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10490 ;;
10491 *)
10492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10493 ;;
10494 esac
10495 ;;
10496*)
10497 # fallback: assume linklib IS sharedlib
10498 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10499 ;;
10500esac
10501
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10504$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10505sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10506test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10507
10508
10509
10510
10511
10512
10513
10514if test -n "$ac_tool_prefix"; then
10515 for ac_prog in ar
10516 do
10517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10518set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520$as_echo_n "checking for $ac_word... " >&6; }
10521if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010522 $as_echo_n "(cached) " >&6
10523else
10524 if test -n "$AR"; then
10525 ac_cv_prog_AR="$AR" # Let the user override the test.
10526else
10527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528for as_dir in $PATH
10529do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 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 +000010534 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538done
10539 done
10540IFS=$as_save_IFS
10541
10542fi
10543fi
10544AR=$ac_cv_prog_AR
10545if test -n "$AR"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10547$as_echo "$AR" >&6; }
10548else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550$as_echo "no" >&6; }
10551fi
10552
10553
cristyda16f162011-02-19 23:52:17 +000010554 test -n "$AR" && break
10555 done
cristy73bd4a52010-10-05 11:24:23 +000010556fi
cristyda16f162011-02-19 23:52:17 +000010557if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010558 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010559 for ac_prog in ar
10560do
10561 # Extract the first word of "$ac_prog", so it can be a program name with args.
10562set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010565if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010566 $as_echo_n "(cached) " >&6
10567else
10568 if test -n "$ac_ct_AR"; then
10569 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 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 +000010578 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582done
10583 done
10584IFS=$as_save_IFS
10585
10586fi
10587fi
10588ac_ct_AR=$ac_cv_prog_ac_ct_AR
10589if test -n "$ac_ct_AR"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10591$as_echo "$ac_ct_AR" >&6; }
10592else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
10595fi
10596
cristyda16f162011-02-19 23:52:17 +000010597
10598 test -n "$ac_ct_AR" && break
10599done
10600
cristy73bd4a52010-10-05 11:24:23 +000010601 if test "x$ac_ct_AR" = x; then
10602 AR="false"
10603 else
10604 case $cross_compiling:$ac_tool_warned in
10605yes:)
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10608ac_tool_warned=yes ;;
10609esac
10610 AR=$ac_ct_AR
10611 fi
cristy73bd4a52010-10-05 11:24:23 +000010612fi
10613
cristyda16f162011-02-19 23:52:17 +000010614: ${AR=ar}
10615: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
cristyda16f162011-02-19 23:52:17 +000010627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10628$as_echo_n "checking for archiver @FILE support... " >&6; }
10629if ${lt_cv_ar_at_file+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631else
10632 lt_cv_ar_at_file=no
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634/* end confdefs.h. */
10635
10636int
10637main ()
10638{
10639
10640 ;
10641 return 0;
10642}
10643_ACEOF
10644if ac_fn_c_try_compile "$LINENO"; then :
10645 echo conftest.$ac_objext > conftest.lst
10646 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10648 (eval $lt_ar_try) 2>&5
10649 ac_status=$?
10650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10651 test $ac_status = 0; }
10652 if test "$ac_status" -eq 0; then
10653 # Ensure the archiver fails upon bogus file names.
10654 rm -f conftest.$ac_objext libconftest.a
10655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10656 (eval $lt_ar_try) 2>&5
10657 ac_status=$?
10658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10659 test $ac_status = 0; }
10660 if test "$ac_status" -ne 0; then
10661 lt_cv_ar_at_file=@
10662 fi
10663 fi
10664 rm -f conftest.* libconftest.a
10665
10666fi
10667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668
10669fi
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10671$as_echo "$lt_cv_ar_at_file" >&6; }
10672
10673if test "x$lt_cv_ar_at_file" = xno; then
10674 archiver_list_spec=
10675else
10676 archiver_list_spec=$lt_cv_ar_at_file
10677fi
10678
10679
10680
10681
10682
10683
10684
cristy73bd4a52010-10-05 11:24:23 +000010685if test -n "$ac_tool_prefix"; then
10686 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10687set dummy ${ac_tool_prefix}strip; ac_word=$2
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010690if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010691 $as_echo_n "(cached) " >&6
10692else
10693 if test -n "$STRIP"; then
10694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10695else
10696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697for as_dir in $PATH
10698do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10703 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 break 2
10706 fi
10707done
10708 done
10709IFS=$as_save_IFS
10710
10711fi
10712fi
10713STRIP=$ac_cv_prog_STRIP
10714if test -n "$STRIP"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10716$as_echo "$STRIP" >&6; }
10717else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719$as_echo "no" >&6; }
10720fi
10721
10722
10723fi
10724if test -z "$ac_cv_prog_STRIP"; then
10725 ac_ct_STRIP=$STRIP
10726 # Extract the first word of "strip", so it can be a program name with args.
10727set dummy strip; ac_word=$2
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010730if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010731 $as_echo_n "(cached) " >&6
10732else
10733 if test -n "$ac_ct_STRIP"; then
10734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10735else
10736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737for as_dir in $PATH
10738do
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743 ac_cv_prog_ac_ct_STRIP="strip"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10746 fi
10747done
10748 done
10749IFS=$as_save_IFS
10750
10751fi
10752fi
10753ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10754if test -n "$ac_ct_STRIP"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10756$as_echo "$ac_ct_STRIP" >&6; }
10757else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759$as_echo "no" >&6; }
10760fi
10761
10762 if test "x$ac_ct_STRIP" = x; then
10763 STRIP=":"
10764 else
10765 case $cross_compiling:$ac_tool_warned in
10766yes:)
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10769ac_tool_warned=yes ;;
10770esac
10771 STRIP=$ac_ct_STRIP
10772 fi
10773else
10774 STRIP="$ac_cv_prog_STRIP"
10775fi
10776
10777test -z "$STRIP" && STRIP=:
10778
10779
10780
10781
10782
10783
10784if test -n "$ac_tool_prefix"; then
10785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010789if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010790 $as_echo_n "(cached) " >&6
10791else
10792 if test -n "$RANLIB"; then
10793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806done
10807 done
10808IFS=$as_save_IFS
10809
10810fi
10811fi
10812RANLIB=$ac_cv_prog_RANLIB
10813if test -n "$RANLIB"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10815$as_echo "$RANLIB" >&6; }
10816else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
10819fi
10820
10821
10822fi
10823if test -z "$ac_cv_prog_RANLIB"; then
10824 ac_ct_RANLIB=$RANLIB
10825 # Extract the first word of "ranlib", so it can be a program name with args.
10826set dummy ranlib; ac_word=$2
10827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010829if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010830 $as_echo_n "(cached) " >&6
10831else
10832 if test -n "$ac_ct_RANLIB"; then
10833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10834else
10835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10842 ac_cv_prog_ac_ct_RANLIB="ranlib"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10845 fi
10846done
10847 done
10848IFS=$as_save_IFS
10849
10850fi
10851fi
10852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10853if test -n "$ac_ct_RANLIB"; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10855$as_echo "$ac_ct_RANLIB" >&6; }
10856else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858$as_echo "no" >&6; }
10859fi
10860
10861 if test "x$ac_ct_RANLIB" = x; then
10862 RANLIB=":"
10863 else
10864 case $cross_compiling:$ac_tool_warned in
10865yes:)
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10868ac_tool_warned=yes ;;
10869esac
10870 RANLIB=$ac_ct_RANLIB
10871 fi
10872else
10873 RANLIB="$ac_cv_prog_RANLIB"
10874fi
10875
10876test -z "$RANLIB" && RANLIB=:
10877
10878
10879
10880
10881
10882
10883# Determine commands to create old-style static archives.
10884old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10885old_postinstall_cmds='chmod 644 $oldlib'
10886old_postuninstall_cmds=
10887
10888if test -n "$RANLIB"; then
10889 case $host_os in
10890 openbsd*)
10891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10892 ;;
10893 *)
10894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10895 ;;
10896 esac
10897 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10898fi
10899
cristy0c60a692010-11-04 01:09:47 +000010900case $host_os in
10901 darwin*)
10902 lock_old_archive_extraction=yes ;;
10903 *)
10904 lock_old_archive_extraction=no ;;
10905esac
10906
10907
10908
10909
10910
10911
cristy73bd4a52010-10-05 11:24:23 +000010912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945# If no C compiler was specified, use CC.
10946LTCC=${LTCC-"$CC"}
10947
10948# If no C compiler flags were specified, use CFLAGS.
10949LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10950
10951# Allow CC to be a program name with arguments.
10952compiler=$CC
10953
10954
10955# Check for command to grab the raw symbol name followed by C symbol from nm.
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10957$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010958if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010959 $as_echo_n "(cached) " >&6
10960else
10961
10962# These are sane defaults that work on at least a few old systems.
10963# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10964
10965# Character class describing NM global symbol codes.
10966symcode='[BCDEGRST]'
10967
10968# Regexp to match symbols that can be accessed directly from C.
10969sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10970
10971# Define system-specific variables.
10972case $host_os in
10973aix*)
10974 symcode='[BCDT]'
10975 ;;
10976cygwin* | mingw* | pw32* | cegcc*)
10977 symcode='[ABCDGISTW]'
10978 ;;
10979hpux*)
10980 if test "$host_cpu" = ia64; then
10981 symcode='[ABCDEGRST]'
10982 fi
10983 ;;
10984irix* | nonstopux*)
10985 symcode='[BCDEGRST]'
10986 ;;
10987osf*)
10988 symcode='[BCDEGQRST]'
10989 ;;
10990solaris*)
10991 symcode='[BDRT]'
10992 ;;
10993sco3.2v5*)
10994 symcode='[DT]'
10995 ;;
10996sysv4.2uw2*)
10997 symcode='[DT]'
10998 ;;
10999sysv5* | sco5v6* | unixware* | OpenUNIX*)
11000 symcode='[ABDT]'
11001 ;;
11002sysv4)
11003 symcode='[DFNSTU]'
11004 ;;
11005esac
11006
11007# If we're using GNU nm, then use its standard symbol codes.
11008case `$NM -V 2>&1` in
11009*GNU* | *'with BFD'*)
11010 symcode='[ABCDGIRSTW]' ;;
11011esac
11012
11013# Transform an extracted symbol line into a proper C declaration.
11014# Some systems (esp. on ia64) link data and code symbols differently,
11015# so use this general approach.
11016lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11017
11018# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011019lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11020lt_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 +000011021
11022# Handle CRLF in mingw tool chain
11023opt_cr=
11024case $build_os in
11025mingw*)
11026 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11027 ;;
11028esac
11029
11030# Try without a prefix underscore, then with it.
11031for ac_symprfx in "" "_"; do
11032
11033 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11034 symxfrm="\\1 $ac_symprfx\\2 \\2"
11035
11036 # Write the raw and C identifiers.
11037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11038 # Fake it for dumpbin and say T for any non-static function
11039 # and D for any global variable.
11040 # Also find C++ and __fastcall symbols from MSVC++,
11041 # which start with @ or ?.
11042 lt_cv_sys_global_symbol_pipe="$AWK '"\
11043" {last_section=section; section=\$ 3};"\
11044" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11045" \$ 0!~/External *\|/{next};"\
11046" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11047" {if(hide[section]) next};"\
11048" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11049" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11050" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11051" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11052" ' prfx=^$ac_symprfx"
11053 else
11054 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11055 fi
cristyda16f162011-02-19 23:52:17 +000011056 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011057
11058 # Check to see that the pipe works correctly.
11059 pipe_works=no
11060
11061 rm -f conftest*
11062 cat > conftest.$ac_ext <<_LT_EOF
11063#ifdef __cplusplus
11064extern "C" {
11065#endif
11066char nm_test_var;
11067void nm_test_func(void);
11068void nm_test_func(void){}
11069#ifdef __cplusplus
11070}
11071#endif
11072int main(){nm_test_var='a';nm_test_func();return(0);}
11073_LT_EOF
11074
11075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11076 (eval $ac_compile) 2>&5
11077 ac_status=$?
11078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11079 test $ac_status = 0; }; then
11080 # Now try to grab the symbols.
11081 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11083 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011084 ac_status=$?
11085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11086 test $ac_status = 0; } && test -s "$nlist"; then
11087 # Try sorting and uniquifying the output.
11088 if sort "$nlist" | uniq > "$nlist"T; then
11089 mv -f "$nlist"T "$nlist"
11090 else
11091 rm -f "$nlist"T
11092 fi
11093
11094 # Make sure that we snagged all the symbols we need.
11095 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11096 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11097 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011098/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11099#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11100/* DATA imports from DLLs on WIN32 con't be const, because runtime
11101 relocations are performed -- see ld's documentation on pseudo-relocs. */
11102# define LT_DLSYM_CONST
11103#elif defined(__osf__)
11104/* This system does not cope well with relocations in const data. */
11105# define LT_DLSYM_CONST
11106#else
11107# define LT_DLSYM_CONST const
11108#endif
11109
cristy73bd4a52010-10-05 11:24:23 +000011110#ifdef __cplusplus
11111extern "C" {
11112#endif
11113
11114_LT_EOF
11115 # Now generate the symbol file.
11116 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11117
11118 cat <<_LT_EOF >> conftest.$ac_ext
11119
11120/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011121LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011122 const char *name;
11123 void *address;
11124}
11125lt__PROGRAM__LTX_preloaded_symbols[] =
11126{
11127 { "@PROGRAM@", (void *) 0 },
11128_LT_EOF
11129 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11130 cat <<\_LT_EOF >> conftest.$ac_ext
11131 {0, (void *) 0}
11132};
11133
11134/* This works around a problem in FreeBSD linker */
11135#ifdef FREEBSD_WORKAROUND
11136static const void *lt_preloaded_setup() {
11137 return lt__PROGRAM__LTX_preloaded_symbols;
11138}
11139#endif
11140
11141#ifdef __cplusplus
11142}
11143#endif
11144_LT_EOF
11145 # Now try linking the two files.
11146 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011147 lt_globsym_save_LIBS=$LIBS
11148 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011149 LIBS="conftstm.$ac_objext"
11150 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11152 (eval $ac_link) 2>&5
11153 ac_status=$?
11154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11155 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11156 pipe_works=yes
11157 fi
cristyda16f162011-02-19 23:52:17 +000011158 LIBS=$lt_globsym_save_LIBS
11159 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011160 else
11161 echo "cannot find nm_test_func in $nlist" >&5
11162 fi
11163 else
11164 echo "cannot find nm_test_var in $nlist" >&5
11165 fi
11166 else
11167 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11168 fi
11169 else
11170 echo "$progname: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11172 fi
11173 rm -rf conftest* conftst*
11174
11175 # Do not use the global_symbol_pipe unless it works.
11176 if test "$pipe_works" = yes; then
11177 break
11178 else
11179 lt_cv_sys_global_symbol_pipe=
11180 fi
11181done
11182
11183fi
11184
11185if test -z "$lt_cv_sys_global_symbol_pipe"; then
11186 lt_cv_sys_global_symbol_to_cdecl=
11187fi
11188if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11190$as_echo "failed" >&6; }
11191else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11193$as_echo "ok" >&6; }
11194fi
11195
cristyda16f162011-02-19 23:52:17 +000011196# Response file support.
11197if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11198 nm_file_list_spec='@'
11199elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11200 nm_file_list_spec='@'
11201fi
cristy73bd4a52010-10-05 11:24:23 +000011202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
cristyda16f162011-02-19 23:52:17 +000011223
11224
11225
11226
11227
11228
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11230$as_echo_n "checking for sysroot... " >&6; }
11231
11232# Check whether --with-sysroot was given.
11233if test "${with_sysroot+set}" = set; then :
11234 withval=$with_sysroot;
11235else
11236 with_sysroot=no
11237fi
11238
11239
11240lt_sysroot=
11241case ${with_sysroot} in #(
11242 yes)
11243 if test "$GCC" = yes; then
11244 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11245 fi
11246 ;; #(
11247 /*)
11248 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11249 ;; #(
11250 no|'')
11251 ;; #(
11252 *)
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11254$as_echo "${with_sysroot}" >&6; }
11255 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11256 ;;
11257esac
11258
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11260$as_echo "${lt_sysroot:-no}" >&6; }
11261
11262
11263
11264
11265
cristy73bd4a52010-10-05 11:24:23 +000011266# Check whether --enable-libtool-lock was given.
11267if test "${enable_libtool_lock+set}" = set; then :
11268 enableval=$enable_libtool_lock;
11269fi
11270
11271test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11272
11273# Some flags need to be propagated to the compiler or linker for good
11274# libtool support.
11275case $host in
11276ia64-*-hpux*)
11277 # Find out which ABI we are using.
11278 echo 'int i;' > conftest.$ac_ext
11279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11280 (eval $ac_compile) 2>&5
11281 ac_status=$?
11282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283 test $ac_status = 0; }; then
11284 case `/usr/bin/file conftest.$ac_objext` in
11285 *ELF-32*)
11286 HPUX_IA64_MODE="32"
11287 ;;
11288 *ELF-64*)
11289 HPUX_IA64_MODE="64"
11290 ;;
11291 esac
11292 fi
11293 rm -rf conftest*
11294 ;;
11295*-*-irix6*)
11296 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011297 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11299 (eval $ac_compile) 2>&5
11300 ac_status=$?
11301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11302 test $ac_status = 0; }; then
11303 if test "$lt_cv_prog_gnu_ld" = yes; then
11304 case `/usr/bin/file conftest.$ac_objext` in
11305 *32-bit*)
11306 LD="${LD-ld} -melf32bsmip"
11307 ;;
11308 *N32*)
11309 LD="${LD-ld} -melf32bmipn32"
11310 ;;
11311 *64-bit*)
11312 LD="${LD-ld} -melf64bmip"
11313 ;;
11314 esac
11315 else
11316 case `/usr/bin/file conftest.$ac_objext` in
11317 *32-bit*)
11318 LD="${LD-ld} -32"
11319 ;;
11320 *N32*)
11321 LD="${LD-ld} -n32"
11322 ;;
11323 *64-bit*)
11324 LD="${LD-ld} -64"
11325 ;;
11326 esac
11327 fi
11328 fi
11329 rm -rf conftest*
11330 ;;
11331
11332x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11333s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11334 # Find out which ABI we are using.
11335 echo 'int i;' > conftest.$ac_ext
11336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11337 (eval $ac_compile) 2>&5
11338 ac_status=$?
11339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340 test $ac_status = 0; }; then
11341 case `/usr/bin/file conftest.o` in
11342 *32-bit*)
11343 case $host in
11344 x86_64-*kfreebsd*-gnu)
11345 LD="${LD-ld} -m elf_i386_fbsd"
11346 ;;
11347 x86_64-*linux*)
11348 LD="${LD-ld} -m elf_i386"
11349 ;;
11350 ppc64-*linux*|powerpc64-*linux*)
11351 LD="${LD-ld} -m elf32ppclinux"
11352 ;;
11353 s390x-*linux*)
11354 LD="${LD-ld} -m elf_s390"
11355 ;;
11356 sparc64-*linux*)
11357 LD="${LD-ld} -m elf32_sparc"
11358 ;;
11359 esac
11360 ;;
11361 *64-bit*)
11362 case $host in
11363 x86_64-*kfreebsd*-gnu)
11364 LD="${LD-ld} -m elf_x86_64_fbsd"
11365 ;;
11366 x86_64-*linux*)
11367 LD="${LD-ld} -m elf_x86_64"
11368 ;;
11369 ppc*-*linux*|powerpc*-*linux*)
11370 LD="${LD-ld} -m elf64ppc"
11371 ;;
11372 s390*-*linux*|s390*-*tpf*)
11373 LD="${LD-ld} -m elf64_s390"
11374 ;;
11375 sparc*-*linux*)
11376 LD="${LD-ld} -m elf64_sparc"
11377 ;;
11378 esac
11379 ;;
11380 esac
11381 fi
11382 rm -rf conftest*
11383 ;;
11384
11385*-*-sco3.2v5*)
11386 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11387 SAVE_CFLAGS="$CFLAGS"
11388 CFLAGS="$CFLAGS -belf"
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11390$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011391if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011392 $as_echo_n "(cached) " >&6
11393else
11394 ac_ext=c
11395ac_cpp='$CPP $CPPFLAGS'
11396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11398ac_compiler_gnu=$ac_cv_c_compiler_gnu
11399
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401/* end confdefs.h. */
11402
11403int
11404main ()
11405{
11406
11407 ;
11408 return 0;
11409}
11410_ACEOF
11411if ac_fn_c_try_link "$LINENO"; then :
11412 lt_cv_cc_needs_belf=yes
11413else
11414 lt_cv_cc_needs_belf=no
11415fi
11416rm -f core conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11418 ac_ext=c
11419ac_cpp='$CPP $CPPFLAGS'
11420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11422ac_compiler_gnu=$ac_cv_c_compiler_gnu
11423
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11426$as_echo "$lt_cv_cc_needs_belf" >&6; }
11427 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11428 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11429 CFLAGS="$SAVE_CFLAGS"
11430 fi
11431 ;;
11432sparc*-*solaris*)
11433 # Find out which ABI we are using.
11434 echo 'int i;' > conftest.$ac_ext
11435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11436 (eval $ac_compile) 2>&5
11437 ac_status=$?
11438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; }; then
11440 case `/usr/bin/file conftest.o` in
11441 *64-bit*)
11442 case $lt_cv_prog_gnu_ld in
11443 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11444 *)
11445 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11446 LD="${LD-ld} -64"
11447 fi
11448 ;;
11449 esac
11450 ;;
11451 esac
11452 fi
11453 rm -rf conftest*
11454 ;;
11455esac
11456
11457need_locks="$enable_libtool_lock"
11458
cristyda16f162011-02-19 23:52:17 +000011459if test -n "$ac_tool_prefix"; then
11460 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11461set dummy ${ac_tool_prefix}mt; ac_word=$2
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463$as_echo_n "checking for $ac_word... " >&6; }
11464if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466else
11467 if test -n "$MANIFEST_TOOL"; then
11468 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11469else
11470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471for as_dir in $PATH
11472do
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11477 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 break 2
11480 fi
11481done
11482 done
11483IFS=$as_save_IFS
11484
11485fi
11486fi
11487MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11488if test -n "$MANIFEST_TOOL"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11490$as_echo "$MANIFEST_TOOL" >&6; }
11491else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493$as_echo "no" >&6; }
11494fi
11495
11496
11497fi
11498if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11499 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11500 # Extract the first word of "mt", so it can be a program name with args.
11501set dummy mt; ac_word=$2
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503$as_echo_n "checking for $ac_word... " >&6; }
11504if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506else
11507 if test -n "$ac_ct_MANIFEST_TOOL"; then
11508 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11509else
11510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511for as_dir in $PATH
11512do
11513 IFS=$as_save_IFS
11514 test -z "$as_dir" && as_dir=.
11515 for ac_exec_ext in '' $ac_executable_extensions; do
11516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11517 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519 break 2
11520 fi
11521done
11522 done
11523IFS=$as_save_IFS
11524
11525fi
11526fi
11527ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11528if test -n "$ac_ct_MANIFEST_TOOL"; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11530$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11531else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533$as_echo "no" >&6; }
11534fi
11535
11536 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11537 MANIFEST_TOOL=":"
11538 else
11539 case $cross_compiling:$ac_tool_warned in
11540yes:)
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11543ac_tool_warned=yes ;;
11544esac
11545 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11546 fi
11547else
11548 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11549fi
11550
11551test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11553$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11554if ${lt_cv_path_mainfest_tool+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556else
11557 lt_cv_path_mainfest_tool=no
11558 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11559 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11560 cat conftest.err >&5
11561 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11562 lt_cv_path_mainfest_tool=yes
11563 fi
11564 rm -f conftest*
11565fi
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11567$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11568if test "x$lt_cv_path_mainfest_tool" != xyes; then
11569 MANIFEST_TOOL=:
11570fi
11571
11572
11573
11574
11575
cristy73bd4a52010-10-05 11:24:23 +000011576
11577 case $host_os in
11578 rhapsody* | darwin*)
11579 if test -n "$ac_tool_prefix"; then
11580 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11581set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011584if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011585 $as_echo_n "(cached) " >&6
11586else
11587 if test -n "$DSYMUTIL"; then
11588 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11589else
11590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591for as_dir in $PATH
11592do
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11597 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 break 2
11600 fi
11601done
11602 done
11603IFS=$as_save_IFS
11604
11605fi
11606fi
11607DSYMUTIL=$ac_cv_prog_DSYMUTIL
11608if test -n "$DSYMUTIL"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11610$as_echo "$DSYMUTIL" >&6; }
11611else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
11614fi
11615
11616
11617fi
11618if test -z "$ac_cv_prog_DSYMUTIL"; then
11619 ac_ct_DSYMUTIL=$DSYMUTIL
11620 # Extract the first word of "dsymutil", so it can be a program name with args.
11621set dummy dsymutil; ac_word=$2
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011624if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011625 $as_echo_n "(cached) " >&6
11626else
11627 if test -n "$ac_ct_DSYMUTIL"; then
11628 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11629else
11630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631for as_dir in $PATH
11632do
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
11636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11637 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 break 2
11640 fi
11641done
11642 done
11643IFS=$as_save_IFS
11644
11645fi
11646fi
11647ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11648if test -n "$ac_ct_DSYMUTIL"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11650$as_echo "$ac_ct_DSYMUTIL" >&6; }
11651else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653$as_echo "no" >&6; }
11654fi
11655
11656 if test "x$ac_ct_DSYMUTIL" = x; then
11657 DSYMUTIL=":"
11658 else
11659 case $cross_compiling:$ac_tool_warned in
11660yes:)
11661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11663ac_tool_warned=yes ;;
11664esac
11665 DSYMUTIL=$ac_ct_DSYMUTIL
11666 fi
11667else
11668 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11669fi
11670
11671 if test -n "$ac_tool_prefix"; then
11672 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11673set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011676if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011677 $as_echo_n "(cached) " >&6
11678else
11679 if test -n "$NMEDIT"; then
11680 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11681else
11682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683for as_dir in $PATH
11684do
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11689 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 break 2
11692 fi
11693done
11694 done
11695IFS=$as_save_IFS
11696
11697fi
11698fi
11699NMEDIT=$ac_cv_prog_NMEDIT
11700if test -n "$NMEDIT"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11702$as_echo "$NMEDIT" >&6; }
11703else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705$as_echo "no" >&6; }
11706fi
11707
11708
11709fi
11710if test -z "$ac_cv_prog_NMEDIT"; then
11711 ac_ct_NMEDIT=$NMEDIT
11712 # Extract the first word of "nmedit", so it can be a program name with args.
11713set dummy nmedit; ac_word=$2
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011716if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011717 $as_echo_n "(cached) " >&6
11718else
11719 if test -n "$ac_ct_NMEDIT"; then
11720 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11721else
11722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
11727 for ac_exec_ext in '' $ac_executable_extensions; do
11728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11729 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 break 2
11732 fi
11733done
11734 done
11735IFS=$as_save_IFS
11736
11737fi
11738fi
11739ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11740if test -n "$ac_ct_NMEDIT"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11742$as_echo "$ac_ct_NMEDIT" >&6; }
11743else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
11746fi
11747
11748 if test "x$ac_ct_NMEDIT" = x; then
11749 NMEDIT=":"
11750 else
11751 case $cross_compiling:$ac_tool_warned in
11752yes:)
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11755ac_tool_warned=yes ;;
11756esac
11757 NMEDIT=$ac_ct_NMEDIT
11758 fi
11759else
11760 NMEDIT="$ac_cv_prog_NMEDIT"
11761fi
11762
11763 if test -n "$ac_tool_prefix"; then
11764 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11765set dummy ${ac_tool_prefix}lipo; ac_word=$2
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011768if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011769 $as_echo_n "(cached) " >&6
11770else
11771 if test -n "$LIPO"; then
11772 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11773else
11774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775for as_dir in $PATH
11776do
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11781 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11784 fi
11785done
11786 done
11787IFS=$as_save_IFS
11788
11789fi
11790fi
11791LIPO=$ac_cv_prog_LIPO
11792if test -n "$LIPO"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11794$as_echo "$LIPO" >&6; }
11795else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797$as_echo "no" >&6; }
11798fi
11799
11800
11801fi
11802if test -z "$ac_cv_prog_LIPO"; then
11803 ac_ct_LIPO=$LIPO
11804 # Extract the first word of "lipo", so it can be a program name with args.
11805set dummy lipo; ac_word=$2
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011808if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011809 $as_echo_n "(cached) " >&6
11810else
11811 if test -n "$ac_ct_LIPO"; then
11812 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11813else
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821 ac_cv_prog_ac_ct_LIPO="lipo"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11824 fi
11825done
11826 done
11827IFS=$as_save_IFS
11828
11829fi
11830fi
11831ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11832if test -n "$ac_ct_LIPO"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11834$as_echo "$ac_ct_LIPO" >&6; }
11835else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
11838fi
11839
11840 if test "x$ac_ct_LIPO" = x; then
11841 LIPO=":"
11842 else
11843 case $cross_compiling:$ac_tool_warned in
11844yes:)
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11847ac_tool_warned=yes ;;
11848esac
11849 LIPO=$ac_ct_LIPO
11850 fi
11851else
11852 LIPO="$ac_cv_prog_LIPO"
11853fi
11854
11855 if test -n "$ac_tool_prefix"; then
11856 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11857set dummy ${ac_tool_prefix}otool; ac_word=$2
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011860if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011861 $as_echo_n "(cached) " >&6
11862else
11863 if test -n "$OTOOL"; then
11864 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11865else
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11873 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877done
11878 done
11879IFS=$as_save_IFS
11880
11881fi
11882fi
11883OTOOL=$ac_cv_prog_OTOOL
11884if test -n "$OTOOL"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11886$as_echo "$OTOOL" >&6; }
11887else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
11890fi
11891
11892
11893fi
11894if test -z "$ac_cv_prog_OTOOL"; then
11895 ac_ct_OTOOL=$OTOOL
11896 # Extract the first word of "otool", so it can be a program name with args.
11897set dummy otool; ac_word=$2
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011900if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011901 $as_echo_n "(cached) " >&6
11902else
11903 if test -n "$ac_ct_OTOOL"; then
11904 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11905else
11906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11913 ac_cv_prog_ac_ct_OTOOL="otool"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917done
11918 done
11919IFS=$as_save_IFS
11920
11921fi
11922fi
11923ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11924if test -n "$ac_ct_OTOOL"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11926$as_echo "$ac_ct_OTOOL" >&6; }
11927else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929$as_echo "no" >&6; }
11930fi
11931
11932 if test "x$ac_ct_OTOOL" = x; then
11933 OTOOL=":"
11934 else
11935 case $cross_compiling:$ac_tool_warned in
11936yes:)
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11939ac_tool_warned=yes ;;
11940esac
11941 OTOOL=$ac_ct_OTOOL
11942 fi
11943else
11944 OTOOL="$ac_cv_prog_OTOOL"
11945fi
11946
11947 if test -n "$ac_tool_prefix"; then
11948 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11949set dummy ${ac_tool_prefix}otool64; ac_word=$2
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011952if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011953 $as_echo_n "(cached) " >&6
11954else
11955 if test -n "$OTOOL64"; then
11956 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11957else
11958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959for as_dir in $PATH
11960do
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11968 fi
11969done
11970 done
11971IFS=$as_save_IFS
11972
11973fi
11974fi
11975OTOOL64=$ac_cv_prog_OTOOL64
11976if test -n "$OTOOL64"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11978$as_echo "$OTOOL64" >&6; }
11979else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981$as_echo "no" >&6; }
11982fi
11983
11984
11985fi
11986if test -z "$ac_cv_prog_OTOOL64"; then
11987 ac_ct_OTOOL64=$OTOOL64
11988 # Extract the first word of "otool64", so it can be a program name with args.
11989set dummy otool64; ac_word=$2
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011992if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011993 $as_echo_n "(cached) " >&6
11994else
11995 if test -n "$ac_ct_OTOOL64"; then
11996 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11997else
11998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999for as_dir in $PATH
12000do
12001 IFS=$as_save_IFS
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12005 ac_cv_prog_ac_ct_OTOOL64="otool64"
12006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 break 2
12008 fi
12009done
12010 done
12011IFS=$as_save_IFS
12012
12013fi
12014fi
12015ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12016if test -n "$ac_ct_OTOOL64"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12018$as_echo "$ac_ct_OTOOL64" >&6; }
12019else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021$as_echo "no" >&6; }
12022fi
12023
12024 if test "x$ac_ct_OTOOL64" = x; then
12025 OTOOL64=":"
12026 else
12027 case $cross_compiling:$ac_tool_warned in
12028yes:)
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12031ac_tool_warned=yes ;;
12032esac
12033 OTOOL64=$ac_ct_OTOOL64
12034 fi
12035else
12036 OTOOL64="$ac_cv_prog_OTOOL64"
12037fi
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12066$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012067if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012068 $as_echo_n "(cached) " >&6
12069else
12070 lt_cv_apple_cc_single_mod=no
12071 if test -z "${LT_MULTI_MODULE}"; then
12072 # By default we will add the -single_module flag. You can override
12073 # by either setting the environment variable LT_MULTI_MODULE
12074 # non-empty at configure time, or by adding -multi_module to the
12075 # link flags.
12076 rm -rf libconftest.dylib*
12077 echo "int foo(void){return 1;}" > conftest.c
12078 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12079-dynamiclib -Wl,-single_module conftest.c" >&5
12080 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12081 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12082 _lt_result=$?
12083 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12084 lt_cv_apple_cc_single_mod=yes
12085 else
12086 cat conftest.err >&5
12087 fi
12088 rm -rf libconftest.dylib*
12089 rm -f conftest.*
12090 fi
12091fi
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12093$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12095$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012096if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012097 $as_echo_n "(cached) " >&6
12098else
12099 lt_cv_ld_exported_symbols_list=no
12100 save_LDFLAGS=$LDFLAGS
12101 echo "_main" > conftest.sym
12102 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104/* end confdefs.h. */
12105
12106int
12107main ()
12108{
12109
12110 ;
12111 return 0;
12112}
12113_ACEOF
12114if ac_fn_c_try_link "$LINENO"; then :
12115 lt_cv_ld_exported_symbols_list=yes
12116else
12117 lt_cv_ld_exported_symbols_list=no
12118fi
12119rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121 LDFLAGS="$save_LDFLAGS"
12122
12123fi
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12125$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12127$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012128if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012129 $as_echo_n "(cached) " >&6
12130else
12131 lt_cv_ld_force_load=no
12132 cat > conftest.c << _LT_EOF
12133int forced_loaded() { return 2;}
12134_LT_EOF
12135 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12136 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12137 echo "$AR cru libconftest.a conftest.o" >&5
12138 $AR cru libconftest.a conftest.o 2>&5
12139 echo "$RANLIB libconftest.a" >&5
12140 $RANLIB libconftest.a 2>&5
12141 cat > conftest.c << _LT_EOF
12142int main() { return 0;}
12143_LT_EOF
12144 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12145 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12146 _lt_result=$?
12147 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12148 lt_cv_ld_force_load=yes
12149 else
12150 cat conftest.err >&5
12151 fi
12152 rm -f conftest.err libconftest.a conftest conftest.c
12153 rm -rf conftest.dSYM
12154
12155fi
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12157$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012158 case $host_os in
12159 rhapsody* | darwin1.[012])
12160 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12161 darwin1.*)
12162 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12163 darwin*) # darwin 5.x on
12164 # if running on 10.5 or later, the deployment target defaults
12165 # to the OS version, if on x86, and 10.4, the deployment
12166 # target defaults to 10.4. Don't you love it?
12167 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12168 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12169 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12170 10.[012]*)
12171 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12172 10.*)
12173 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12174 esac
12175 ;;
12176 esac
12177 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12178 _lt_dar_single_mod='$single_module'
12179 fi
12180 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12181 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12182 else
12183 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12184 fi
cristy0c60a692010-11-04 01:09:47 +000012185 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012186 _lt_dsymutil='~$DSYMUTIL $lib || :'
12187 else
12188 _lt_dsymutil=
12189 fi
12190 ;;
12191 esac
12192
12193for ac_header in dlfcn.h
12194do :
12195 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12196"
cristyda16f162011-02-19 23:52:17 +000012197if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012198 cat >>confdefs.h <<_ACEOF
12199#define HAVE_DLFCN_H 1
12200_ACEOF
12201
12202fi
12203
12204done
12205
12206
12207
cristy73bd4a52010-10-05 11:24:23 +000012208
cristyda16f162011-02-19 23:52:17 +000012209func_stripname_cnf ()
12210{
12211 case ${2} in
12212 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12213 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12214 esac
12215} # func_stripname_cnf
12216
12217
12218
cristy73bd4a52010-10-05 11:24:23 +000012219
12220
12221# Set options
12222enable_win32_dll=yes
12223
12224case $host in
cristy0c60a692010-11-04 01:09:47 +000012225*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012226 if test -n "$ac_tool_prefix"; then
12227 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12228set dummy ${ac_tool_prefix}as; ac_word=$2
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012231if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012232 $as_echo_n "(cached) " >&6
12233else
12234 if test -n "$AS"; then
12235 ac_cv_prog_AS="$AS" # Let the user override the test.
12236else
12237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238for as_dir in $PATH
12239do
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12244 ac_cv_prog_AS="${ac_tool_prefix}as"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12247 fi
12248done
12249 done
12250IFS=$as_save_IFS
12251
12252fi
12253fi
12254AS=$ac_cv_prog_AS
12255if test -n "$AS"; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12257$as_echo "$AS" >&6; }
12258else
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260$as_echo "no" >&6; }
12261fi
12262
12263
12264fi
12265if test -z "$ac_cv_prog_AS"; then
12266 ac_ct_AS=$AS
12267 # Extract the first word of "as", so it can be a program name with args.
12268set dummy as; ac_word=$2
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012271if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012272 $as_echo_n "(cached) " >&6
12273else
12274 if test -n "$ac_ct_AS"; then
12275 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12276else
12277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278for as_dir in $PATH
12279do
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12284 ac_cv_prog_ac_ct_AS="as"
12285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 break 2
12287 fi
12288done
12289 done
12290IFS=$as_save_IFS
12291
12292fi
12293fi
12294ac_ct_AS=$ac_cv_prog_ac_ct_AS
12295if test -n "$ac_ct_AS"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12297$as_echo "$ac_ct_AS" >&6; }
12298else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
12301fi
12302
12303 if test "x$ac_ct_AS" = x; then
12304 AS="false"
12305 else
12306 case $cross_compiling:$ac_tool_warned in
12307yes:)
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12310ac_tool_warned=yes ;;
12311esac
12312 AS=$ac_ct_AS
12313 fi
12314else
12315 AS="$ac_cv_prog_AS"
12316fi
12317
12318 if test -n "$ac_tool_prefix"; then
12319 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12320set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012323if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012324 $as_echo_n "(cached) " >&6
12325else
12326 if test -n "$DLLTOOL"; then
12327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12328else
12329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330for as_dir in $PATH
12331do
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12336 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12339 fi
12340done
12341 done
12342IFS=$as_save_IFS
12343
12344fi
12345fi
12346DLLTOOL=$ac_cv_prog_DLLTOOL
12347if test -n "$DLLTOOL"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12349$as_echo "$DLLTOOL" >&6; }
12350else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352$as_echo "no" >&6; }
12353fi
12354
12355
12356fi
12357if test -z "$ac_cv_prog_DLLTOOL"; then
12358 ac_ct_DLLTOOL=$DLLTOOL
12359 # Extract the first word of "dlltool", so it can be a program name with args.
12360set dummy dlltool; ac_word=$2
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012363if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012364 $as_echo_n "(cached) " >&6
12365else
12366 if test -n "$ac_ct_DLLTOOL"; then
12367 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12368else
12369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370for as_dir in $PATH
12371do
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12376 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 break 2
12379 fi
12380done
12381 done
12382IFS=$as_save_IFS
12383
12384fi
12385fi
12386ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12387if test -n "$ac_ct_DLLTOOL"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12389$as_echo "$ac_ct_DLLTOOL" >&6; }
12390else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392$as_echo "no" >&6; }
12393fi
12394
12395 if test "x$ac_ct_DLLTOOL" = x; then
12396 DLLTOOL="false"
12397 else
12398 case $cross_compiling:$ac_tool_warned in
12399yes:)
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12402ac_tool_warned=yes ;;
12403esac
12404 DLLTOOL=$ac_ct_DLLTOOL
12405 fi
12406else
12407 DLLTOOL="$ac_cv_prog_DLLTOOL"
12408fi
12409
12410 if test -n "$ac_tool_prefix"; then
12411 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12412set dummy ${ac_tool_prefix}objdump; ac_word=$2
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012415if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012416 $as_echo_n "(cached) " >&6
12417else
12418 if test -n "$OBJDUMP"; then
12419 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12420else
12421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422for as_dir in $PATH
12423do
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12428 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 break 2
12431 fi
12432done
12433 done
12434IFS=$as_save_IFS
12435
12436fi
12437fi
12438OBJDUMP=$ac_cv_prog_OBJDUMP
12439if test -n "$OBJDUMP"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12441$as_echo "$OBJDUMP" >&6; }
12442else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444$as_echo "no" >&6; }
12445fi
12446
12447
12448fi
12449if test -z "$ac_cv_prog_OBJDUMP"; then
12450 ac_ct_OBJDUMP=$OBJDUMP
12451 # Extract the first word of "objdump", so it can be a program name with args.
12452set dummy objdump; ac_word=$2
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012455if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012456 $as_echo_n "(cached) " >&6
12457else
12458 if test -n "$ac_ct_OBJDUMP"; then
12459 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12460else
12461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $PATH
12463do
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 break 2
12471 fi
12472done
12473 done
12474IFS=$as_save_IFS
12475
12476fi
12477fi
12478ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12479if test -n "$ac_ct_OBJDUMP"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12481$as_echo "$ac_ct_OBJDUMP" >&6; }
12482else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
12485fi
12486
12487 if test "x$ac_ct_OBJDUMP" = x; then
12488 OBJDUMP="false"
12489 else
12490 case $cross_compiling:$ac_tool_warned in
12491yes:)
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12494ac_tool_warned=yes ;;
12495esac
12496 OBJDUMP=$ac_ct_OBJDUMP
12497 fi
12498else
12499 OBJDUMP="$ac_cv_prog_OBJDUMP"
12500fi
12501
12502 ;;
12503esac
12504
12505test -z "$AS" && AS=as
12506
12507
12508
12509
12510
12511test -z "$DLLTOOL" && DLLTOOL=dlltool
12512
12513
12514
12515
12516
12517test -z "$OBJDUMP" && OBJDUMP=objdump
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527 # Check whether --enable-shared was given.
12528if test "${enable_shared+set}" = set; then :
12529 enableval=$enable_shared; p=${PACKAGE-default}
12530 case $enableval in
12531 yes) enable_shared=yes ;;
12532 no) enable_shared=no ;;
12533 *)
12534 enable_shared=no
12535 # Look at the argument we got. We use all the common list separators.
12536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12537 for pkg in $enableval; do
12538 IFS="$lt_save_ifs"
12539 if test "X$pkg" = "X$p"; then
12540 enable_shared=yes
12541 fi
12542 done
12543 IFS="$lt_save_ifs"
12544 ;;
12545 esac
12546else
12547 enable_shared=yes
12548fi
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558 # Check whether --enable-static was given.
12559if test "${enable_static+set}" = set; then :
12560 enableval=$enable_static; p=${PACKAGE-default}
12561 case $enableval in
12562 yes) enable_static=yes ;;
12563 no) enable_static=no ;;
12564 *)
12565 enable_static=no
12566 # Look at the argument we got. We use all the common list separators.
12567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12568 for pkg in $enableval; do
12569 IFS="$lt_save_ifs"
12570 if test "X$pkg" = "X$p"; then
12571 enable_static=yes
12572 fi
12573 done
12574 IFS="$lt_save_ifs"
12575 ;;
12576 esac
12577else
12578 enable_static=yes
12579fi
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590# Check whether --with-pic was given.
12591if test "${with_pic+set}" = set; then :
12592 withval=$with_pic; pic_mode="$withval"
12593else
12594 pic_mode=default
12595fi
12596
12597
12598test -z "$pic_mode" && pic_mode=default
12599
12600
12601
12602
12603
12604
12605
12606 # Check whether --enable-fast-install was given.
12607if test "${enable_fast_install+set}" = set; then :
12608 enableval=$enable_fast_install; p=${PACKAGE-default}
12609 case $enableval in
12610 yes) enable_fast_install=yes ;;
12611 no) enable_fast_install=no ;;
12612 *)
12613 enable_fast_install=no
12614 # Look at the argument we got. We use all the common list separators.
12615 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12616 for pkg in $enableval; do
12617 IFS="$lt_save_ifs"
12618 if test "X$pkg" = "X$p"; then
12619 enable_fast_install=yes
12620 fi
12621 done
12622 IFS="$lt_save_ifs"
12623 ;;
12624 esac
12625else
12626 enable_fast_install=yes
12627fi
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639# This can be used to rebuild libtool when needed
12640LIBTOOL_DEPS="$ltmain"
12641
12642# Always use our own libtool.
12643LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
cristy0c60a692010-11-04 01:09:47 +000012669
cristy73bd4a52010-10-05 11:24:23 +000012670test -z "$LN_S" && LN_S="ln -s"
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685if test -n "${ZSH_VERSION+set}" ; then
12686 setopt NO_GLOB_SUBST
12687fi
12688
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12690$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012691if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012692 $as_echo_n "(cached) " >&6
12693else
12694 rm -f .libs 2>/dev/null
12695mkdir .libs 2>/dev/null
12696if test -d .libs; then
12697 lt_cv_objdir=.libs
12698else
12699 # MS-DOS does not allow filenames that begin with a dot.
12700 lt_cv_objdir=_libs
12701fi
12702rmdir .libs 2>/dev/null
12703fi
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12705$as_echo "$lt_cv_objdir" >&6; }
12706objdir=$lt_cv_objdir
12707
12708
12709
12710
12711
12712cat >>confdefs.h <<_ACEOF
12713#define LT_OBJDIR "$lt_cv_objdir/"
12714_ACEOF
12715
12716
12717
12718
cristy73bd4a52010-10-05 11:24:23 +000012719case $host_os in
12720aix3*)
12721 # AIX sometimes has problems with the GCC collect2 program. For some
12722 # reason, if we set the COLLECT_NAMES environment variable, the problems
12723 # vanish in a puff of smoke.
12724 if test "X${COLLECT_NAMES+set}" != Xset; then
12725 COLLECT_NAMES=
12726 export COLLECT_NAMES
12727 fi
12728 ;;
12729esac
12730
cristy73bd4a52010-10-05 11:24:23 +000012731# Global variables:
12732ofile=libtool
12733can_build_shared=yes
12734
12735# All known linkers require a `.a' archive for static linking (except MSVC,
12736# which needs '.lib').
12737libext=a
12738
12739with_gnu_ld="$lt_cv_prog_gnu_ld"
12740
12741old_CC="$CC"
12742old_CFLAGS="$CFLAGS"
12743
12744# Set sane defaults for various variables
12745test -z "$CC" && CC=cc
12746test -z "$LTCC" && LTCC=$CC
12747test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12748test -z "$LD" && LD=ld
12749test -z "$ac_objext" && ac_objext=o
12750
12751for cc_temp in $compiler""; do
12752 case $cc_temp in
12753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12755 \-*) ;;
12756 *) break;;
12757 esac
12758done
cristy0c60a692010-11-04 01:09:47 +000012759cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012760
12761
12762# Only perform the check for file, if the check method requires it
12763test -z "$MAGIC_CMD" && MAGIC_CMD=file
12764case $deplibs_check_method in
12765file_magic*)
12766 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12768$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012769if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012770 $as_echo_n "(cached) " >&6
12771else
12772 case $MAGIC_CMD in
12773[\\/*] | ?:[\\/]*)
12774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12775 ;;
12776*)
12777 lt_save_MAGIC_CMD="$MAGIC_CMD"
12778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12780 for ac_dir in $ac_dummy; do
12781 IFS="$lt_save_ifs"
12782 test -z "$ac_dir" && ac_dir=.
12783 if test -f $ac_dir/${ac_tool_prefix}file; then
12784 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12785 if test -n "$file_magic_test_file"; then
12786 case $deplibs_check_method in
12787 "file_magic "*)
12788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12791 $EGREP "$file_magic_regex" > /dev/null; then
12792 :
12793 else
12794 cat <<_LT_EOF 1>&2
12795
12796*** Warning: the command libtool uses to detect shared libraries,
12797*** $file_magic_cmd, produces output that libtool cannot recognize.
12798*** The result is that libtool may fail to recognize shared libraries
12799*** as such. This will affect the creation of libtool libraries that
12800*** depend on shared libraries, but programs linked with such libtool
12801*** libraries will work regardless of this problem. Nevertheless, you
12802*** may want to report the problem to your system manager and/or to
12803*** bug-libtool@gnu.org
12804
12805_LT_EOF
12806 fi ;;
12807 esac
12808 fi
12809 break
12810 fi
12811 done
12812 IFS="$lt_save_ifs"
12813 MAGIC_CMD="$lt_save_MAGIC_CMD"
12814 ;;
12815esac
12816fi
12817
12818MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12819if test -n "$MAGIC_CMD"; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12821$as_echo "$MAGIC_CMD" >&6; }
12822else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824$as_echo "no" >&6; }
12825fi
12826
12827
12828
12829
12830
12831if test -z "$lt_cv_path_MAGIC_CMD"; then
12832 if test -n "$ac_tool_prefix"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12834$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012835if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012836 $as_echo_n "(cached) " >&6
12837else
12838 case $MAGIC_CMD in
12839[\\/*] | ?:[\\/]*)
12840 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12841 ;;
12842*)
12843 lt_save_MAGIC_CMD="$MAGIC_CMD"
12844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12845 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12846 for ac_dir in $ac_dummy; do
12847 IFS="$lt_save_ifs"
12848 test -z "$ac_dir" && ac_dir=.
12849 if test -f $ac_dir/file; then
12850 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12851 if test -n "$file_magic_test_file"; then
12852 case $deplibs_check_method in
12853 "file_magic "*)
12854 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12856 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12857 $EGREP "$file_magic_regex" > /dev/null; then
12858 :
12859 else
12860 cat <<_LT_EOF 1>&2
12861
12862*** Warning: the command libtool uses to detect shared libraries,
12863*** $file_magic_cmd, produces output that libtool cannot recognize.
12864*** The result is that libtool may fail to recognize shared libraries
12865*** as such. This will affect the creation of libtool libraries that
12866*** depend on shared libraries, but programs linked with such libtool
12867*** libraries will work regardless of this problem. Nevertheless, you
12868*** may want to report the problem to your system manager and/or to
12869*** bug-libtool@gnu.org
12870
12871_LT_EOF
12872 fi ;;
12873 esac
12874 fi
12875 break
12876 fi
12877 done
12878 IFS="$lt_save_ifs"
12879 MAGIC_CMD="$lt_save_MAGIC_CMD"
12880 ;;
12881esac
12882fi
12883
12884MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12885if test -n "$MAGIC_CMD"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12887$as_echo "$MAGIC_CMD" >&6; }
12888else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890$as_echo "no" >&6; }
12891fi
12892
12893
12894 else
12895 MAGIC_CMD=:
12896 fi
12897fi
12898
12899 fi
12900 ;;
12901esac
12902
12903# Use C for the default configuration in the libtool script
12904
12905lt_save_CC="$CC"
12906ac_ext=c
12907ac_cpp='$CPP $CPPFLAGS'
12908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12910ac_compiler_gnu=$ac_cv_c_compiler_gnu
12911
12912
12913# Source file extension for C test sources.
12914ac_ext=c
12915
12916# Object file extension for compiled C test sources.
12917objext=o
12918objext=$objext
12919
12920# Code to be used in simple compile tests
12921lt_simple_compile_test_code="int some_variable = 0;"
12922
12923# Code to be used in simple link tests
12924lt_simple_link_test_code='int main(){return(0);}'
12925
12926
12927
12928
12929
12930
12931
12932# If no C compiler was specified, use CC.
12933LTCC=${LTCC-"$CC"}
12934
12935# If no C compiler flags were specified, use CFLAGS.
12936LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12937
12938# Allow CC to be a program name with arguments.
12939compiler=$CC
12940
12941# Save the default compiler, since it gets overwritten when the other
12942# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12943compiler_DEFAULT=$CC
12944
12945# save warnings/boilerplate of simple test code
12946ac_outfile=conftest.$ac_objext
12947echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12948eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12949_lt_compiler_boilerplate=`cat conftest.err`
12950$RM conftest*
12951
12952ac_outfile=conftest.$ac_objext
12953echo "$lt_simple_link_test_code" >conftest.$ac_ext
12954eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12955_lt_linker_boilerplate=`cat conftest.err`
12956$RM -r conftest*
12957
12958
12959## CAVEAT EMPTOR:
12960## There is no encapsulation within the following macros, do not change
12961## the running order or otherwise move them around unless you know exactly
12962## what you are doing...
12963if test -n "$compiler"; then
12964
12965lt_prog_compiler_no_builtin_flag=
12966
12967if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012968 case $cc_basename in
12969 nvcc*)
12970 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12971 *)
12972 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12973 esac
cristy73bd4a52010-10-05 11:24:23 +000012974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12976$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012977if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012978 $as_echo_n "(cached) " >&6
12979else
12980 lt_cv_prog_compiler_rtti_exceptions=no
12981 ac_outfile=conftest.$ac_objext
12982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12983 lt_compiler_flag="-fno-rtti -fno-exceptions"
12984 # Insert the option either (1) after the last *FLAGS variable, or
12985 # (2) before a word containing "conftest.", or (3) at the end.
12986 # Note that $ac_compile itself does not contain backslashes and begins
12987 # with a dollar sign (not a hyphen), so the echo should work correctly.
12988 # The option is referenced via a variable to avoid confusing sed.
12989 lt_compile=`echo "$ac_compile" | $SED \
12990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12992 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012994 (eval "$lt_compile" 2>conftest.err)
12995 ac_status=$?
12996 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012998 if (exit $ac_status) && test -s "$ac_outfile"; then
12999 # The compiler can only warn and ignore the option if not recognized
13000 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13004 lt_cv_prog_compiler_rtti_exceptions=yes
13005 fi
13006 fi
13007 $RM conftest*
13008
13009fi
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13011$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13012
13013if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13014 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13015else
13016 :
13017fi
13018
13019fi
13020
13021
13022
13023
13024
13025
13026 lt_prog_compiler_wl=
13027lt_prog_compiler_pic=
13028lt_prog_compiler_static=
13029
cristy73bd4a52010-10-05 11:24:23 +000013030
13031 if test "$GCC" = yes; then
13032 lt_prog_compiler_wl='-Wl,'
13033 lt_prog_compiler_static='-static'
13034
13035 case $host_os in
13036 aix*)
13037 # All AIX code is PIC.
13038 if test "$host_cpu" = ia64; then
13039 # AIX 5 now supports IA64 processor
13040 lt_prog_compiler_static='-Bstatic'
13041 fi
13042 ;;
13043
13044 amigaos*)
13045 case $host_cpu in
13046 powerpc)
13047 # see comment about AmigaOS4 .so support
13048 lt_prog_compiler_pic='-fPIC'
13049 ;;
13050 m68k)
13051 # FIXME: we need at least 68020 code to build shared libraries, but
13052 # adding the `-m68020' flag to GCC prevents building anything better,
13053 # like `-m68040'.
13054 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13055 ;;
13056 esac
13057 ;;
13058
13059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13060 # PIC is the default for these OSes.
13061 ;;
13062
13063 mingw* | cygwin* | pw32* | os2* | cegcc*)
13064 # This hack is so that the source file can tell whether it is being
13065 # built for inclusion in a dll (and should export symbols for example).
13066 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13067 # (--disable-auto-import) libraries
13068 lt_prog_compiler_pic='-DDLL_EXPORT'
13069 ;;
13070
13071 darwin* | rhapsody*)
13072 # PIC is the default on this platform
13073 # Common symbols not allowed in MH_DYLIB files
13074 lt_prog_compiler_pic='-fno-common'
13075 ;;
13076
cristy0c60a692010-11-04 01:09:47 +000013077 haiku*)
13078 # PIC is the default for Haiku.
13079 # The "-static" flag exists, but is broken.
13080 lt_prog_compiler_static=
13081 ;;
13082
cristy73bd4a52010-10-05 11:24:23 +000013083 hpux*)
13084 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13085 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13086 # sets the default TLS model and affects inlining.
13087 case $host_cpu in
13088 hppa*64*)
13089 # +Z the default
13090 ;;
13091 *)
13092 lt_prog_compiler_pic='-fPIC'
13093 ;;
13094 esac
13095 ;;
13096
13097 interix[3-9]*)
13098 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13099 # Instead, we relocate shared libraries at runtime.
13100 ;;
13101
13102 msdosdjgpp*)
13103 # Just because we use GCC doesn't mean we suddenly get shared libraries
13104 # on systems that don't support them.
13105 lt_prog_compiler_can_build_shared=no
13106 enable_shared=no
13107 ;;
13108
13109 *nto* | *qnx*)
13110 # QNX uses GNU C++, but need to define -shared option too, otherwise
13111 # it will coredump.
13112 lt_prog_compiler_pic='-fPIC -shared'
13113 ;;
13114
13115 sysv4*MP*)
13116 if test -d /usr/nec; then
13117 lt_prog_compiler_pic=-Kconform_pic
13118 fi
13119 ;;
13120
13121 *)
13122 lt_prog_compiler_pic='-fPIC'
13123 ;;
13124 esac
cristy0c60a692010-11-04 01:09:47 +000013125
13126 case $cc_basename in
13127 nvcc*) # Cuda Compiler Driver 2.2
13128 lt_prog_compiler_wl='-Xlinker '
13129 lt_prog_compiler_pic='-Xcompiler -fPIC'
13130 ;;
13131 esac
cristy73bd4a52010-10-05 11:24:23 +000013132 else
13133 # PORTME Check for flag to pass linker flags through the system compiler.
13134 case $host_os in
13135 aix*)
13136 lt_prog_compiler_wl='-Wl,'
13137 if test "$host_cpu" = ia64; then
13138 # AIX 5 now supports IA64 processor
13139 lt_prog_compiler_static='-Bstatic'
13140 else
13141 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13142 fi
13143 ;;
13144
13145 mingw* | cygwin* | pw32* | os2* | cegcc*)
13146 # This hack is so that the source file can tell whether it is being
13147 # built for inclusion in a dll (and should export symbols for example).
13148 lt_prog_compiler_pic='-DDLL_EXPORT'
13149 ;;
13150
13151 hpux9* | hpux10* | hpux11*)
13152 lt_prog_compiler_wl='-Wl,'
13153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13154 # not for PA HP-UX.
13155 case $host_cpu in
13156 hppa*64*|ia64*)
13157 # +Z the default
13158 ;;
13159 *)
13160 lt_prog_compiler_pic='+Z'
13161 ;;
13162 esac
13163 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13164 lt_prog_compiler_static='${wl}-a ${wl}archive'
13165 ;;
13166
13167 irix5* | irix6* | nonstopux*)
13168 lt_prog_compiler_wl='-Wl,'
13169 # PIC (with -KPIC) is the default.
13170 lt_prog_compiler_static='-non_shared'
13171 ;;
13172
cristy0c60a692010-11-04 01:09:47 +000013173 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013174 case $cc_basename in
13175 # old Intel for x86_64 which still supported -KPIC.
13176 ecc*)
13177 lt_prog_compiler_wl='-Wl,'
13178 lt_prog_compiler_pic='-KPIC'
13179 lt_prog_compiler_static='-static'
13180 ;;
13181 # icc used to be incompatible with GCC.
13182 # ICC 10 doesn't accept -KPIC any more.
13183 icc* | ifort*)
13184 lt_prog_compiler_wl='-Wl,'
13185 lt_prog_compiler_pic='-fPIC'
13186 lt_prog_compiler_static='-static'
13187 ;;
13188 # Lahey Fortran 8.1.
13189 lf95*)
13190 lt_prog_compiler_wl='-Wl,'
13191 lt_prog_compiler_pic='--shared'
13192 lt_prog_compiler_static='--static'
13193 ;;
cristyda16f162011-02-19 23:52:17 +000013194 nagfor*)
13195 # NAG Fortran compiler
13196 lt_prog_compiler_wl='-Wl,-Wl,,'
13197 lt_prog_compiler_pic='-PIC'
13198 lt_prog_compiler_static='-Bstatic'
13199 ;;
cristy0c60a692010-11-04 01:09:47 +000013200 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013201 # Portland Group compilers (*not* the Pentium gcc compiler,
13202 # which looks to be a dead project)
13203 lt_prog_compiler_wl='-Wl,'
13204 lt_prog_compiler_pic='-fpic'
13205 lt_prog_compiler_static='-Bstatic'
13206 ;;
13207 ccc*)
13208 lt_prog_compiler_wl='-Wl,'
13209 # All Alpha code is PIC.
13210 lt_prog_compiler_static='-non_shared'
13211 ;;
cristy0c60a692010-11-04 01:09:47 +000013212 xl* | bgxl* | bgf* | mpixl*)
13213 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013214 lt_prog_compiler_wl='-Wl,'
13215 lt_prog_compiler_pic='-qpic'
13216 lt_prog_compiler_static='-qstaticlink'
13217 ;;
13218 *)
13219 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013220 *Sun\ F* | *Sun*Fortran*)
13221 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13222 lt_prog_compiler_pic='-KPIC'
13223 lt_prog_compiler_static='-Bstatic'
13224 lt_prog_compiler_wl=''
13225 ;;
cristy73bd4a52010-10-05 11:24:23 +000013226 *Sun\ C*)
13227 # Sun C 5.9
13228 lt_prog_compiler_pic='-KPIC'
13229 lt_prog_compiler_static='-Bstatic'
13230 lt_prog_compiler_wl='-Wl,'
13231 ;;
cristy73bd4a52010-10-05 11:24:23 +000013232 esac
13233 ;;
13234 esac
13235 ;;
13236
13237 newsos6)
13238 lt_prog_compiler_pic='-KPIC'
13239 lt_prog_compiler_static='-Bstatic'
13240 ;;
13241
13242 *nto* | *qnx*)
13243 # QNX uses GNU C++, but need to define -shared option too, otherwise
13244 # it will coredump.
13245 lt_prog_compiler_pic='-fPIC -shared'
13246 ;;
13247
13248 osf3* | osf4* | osf5*)
13249 lt_prog_compiler_wl='-Wl,'
13250 # All OSF/1 code is PIC.
13251 lt_prog_compiler_static='-non_shared'
13252 ;;
13253
13254 rdos*)
13255 lt_prog_compiler_static='-non_shared'
13256 ;;
13257
13258 solaris*)
13259 lt_prog_compiler_pic='-KPIC'
13260 lt_prog_compiler_static='-Bstatic'
13261 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013262 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013263 lt_prog_compiler_wl='-Qoption ld ';;
13264 *)
13265 lt_prog_compiler_wl='-Wl,';;
13266 esac
13267 ;;
13268
13269 sunos4*)
13270 lt_prog_compiler_wl='-Qoption ld '
13271 lt_prog_compiler_pic='-PIC'
13272 lt_prog_compiler_static='-Bstatic'
13273 ;;
13274
13275 sysv4 | sysv4.2uw2* | sysv4.3*)
13276 lt_prog_compiler_wl='-Wl,'
13277 lt_prog_compiler_pic='-KPIC'
13278 lt_prog_compiler_static='-Bstatic'
13279 ;;
13280
13281 sysv4*MP*)
13282 if test -d /usr/nec ;then
13283 lt_prog_compiler_pic='-Kconform_pic'
13284 lt_prog_compiler_static='-Bstatic'
13285 fi
13286 ;;
13287
13288 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13289 lt_prog_compiler_wl='-Wl,'
13290 lt_prog_compiler_pic='-KPIC'
13291 lt_prog_compiler_static='-Bstatic'
13292 ;;
13293
13294 unicos*)
13295 lt_prog_compiler_wl='-Wl,'
13296 lt_prog_compiler_can_build_shared=no
13297 ;;
13298
13299 uts4*)
13300 lt_prog_compiler_pic='-pic'
13301 lt_prog_compiler_static='-Bstatic'
13302 ;;
13303
13304 *)
13305 lt_prog_compiler_can_build_shared=no
13306 ;;
13307 esac
13308 fi
13309
13310case $host_os in
13311 # For platforms which do not support PIC, -DPIC is meaningless:
13312 *djgpp*)
13313 lt_prog_compiler_pic=
13314 ;;
13315 *)
13316 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13317 ;;
13318esac
cristy73bd4a52010-10-05 11:24:23 +000013319
cristyda16f162011-02-19 23:52:17 +000013320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13321$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13322if ${lt_cv_prog_compiler_pic+:} false; then :
13323 $as_echo_n "(cached) " >&6
13324else
13325 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13326fi
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13328$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13329lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013330
13331#
13332# Check to make sure the PIC flag actually works.
13333#
13334if test -n "$lt_prog_compiler_pic"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13336$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013337if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013338 $as_echo_n "(cached) " >&6
13339else
13340 lt_cv_prog_compiler_pic_works=no
13341 ac_outfile=conftest.$ac_objext
13342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13343 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13344 # Insert the option either (1) after the last *FLAGS variable, or
13345 # (2) before a word containing "conftest.", or (3) at the end.
13346 # Note that $ac_compile itself does not contain backslashes and begins
13347 # with a dollar sign (not a hyphen), so the echo should work correctly.
13348 # The option is referenced via a variable to avoid confusing sed.
13349 lt_compile=`echo "$ac_compile" | $SED \
13350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13352 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013354 (eval "$lt_compile" 2>conftest.err)
13355 ac_status=$?
13356 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013358 if (exit $ac_status) && test -s "$ac_outfile"; then
13359 # The compiler can only warn and ignore the option if not recognized
13360 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13364 lt_cv_prog_compiler_pic_works=yes
13365 fi
13366 fi
13367 $RM conftest*
13368
13369fi
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13371$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13372
13373if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13374 case $lt_prog_compiler_pic in
13375 "" | " "*) ;;
13376 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13377 esac
13378else
13379 lt_prog_compiler_pic=
13380 lt_prog_compiler_can_build_shared=no
13381fi
13382
13383fi
13384
13385
13386
13387
13388
13389
cristyda16f162011-02-19 23:52:17 +000013390
13391
13392
13393
13394
cristy73bd4a52010-10-05 11:24:23 +000013395#
13396# Check to make sure the static flag actually works.
13397#
13398wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13400$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013401if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013402 $as_echo_n "(cached) " >&6
13403else
13404 lt_cv_prog_compiler_static_works=no
13405 save_LDFLAGS="$LDFLAGS"
13406 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13407 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13408 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13409 # The linker can only warn and ignore the option if not recognized
13410 # So say no if there are warnings
13411 if test -s conftest.err; then
13412 # Append any errors to the config.log.
13413 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013414 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13416 if diff conftest.exp conftest.er2 >/dev/null; then
13417 lt_cv_prog_compiler_static_works=yes
13418 fi
13419 else
13420 lt_cv_prog_compiler_static_works=yes
13421 fi
13422 fi
13423 $RM -r conftest*
13424 LDFLAGS="$save_LDFLAGS"
13425
13426fi
13427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13428$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13429
13430if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13431 :
13432else
13433 lt_prog_compiler_static=
13434fi
13435
13436
13437
13438
13439
13440
13441
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13443$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013444if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013445 $as_echo_n "(cached) " >&6
13446else
13447 lt_cv_prog_compiler_c_o=no
13448 $RM -r conftest 2>/dev/null
13449 mkdir conftest
13450 cd conftest
13451 mkdir out
13452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13453
13454 lt_compiler_flag="-o out/conftest2.$ac_objext"
13455 # Insert the option either (1) after the last *FLAGS variable, or
13456 # (2) before a word containing "conftest.", or (3) at the end.
13457 # Note that $ac_compile itself does not contain backslashes and begins
13458 # with a dollar sign (not a hyphen), so the echo should work correctly.
13459 lt_compile=`echo "$ac_compile" | $SED \
13460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13462 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013464 (eval "$lt_compile" 2>out/conftest.err)
13465 ac_status=$?
13466 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13469 then
13470 # The compiler can only warn and ignore the option if not recognized
13471 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13475 lt_cv_prog_compiler_c_o=yes
13476 fi
13477 fi
13478 chmod u+w . 2>&5
13479 $RM conftest*
13480 # SGI C++ compiler will create directory out/ii_files/ for
13481 # template instantiation
13482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13483 $RM out/* && rmdir out
13484 cd ..
13485 $RM -r conftest
13486 $RM conftest*
13487
13488fi
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13490$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13491
13492
13493
13494
13495
13496
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13498$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013499if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013500 $as_echo_n "(cached) " >&6
13501else
13502 lt_cv_prog_compiler_c_o=no
13503 $RM -r conftest 2>/dev/null
13504 mkdir conftest
13505 cd conftest
13506 mkdir out
13507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13508
13509 lt_compiler_flag="-o out/conftest2.$ac_objext"
13510 # Insert the option either (1) after the last *FLAGS variable, or
13511 # (2) before a word containing "conftest.", or (3) at the end.
13512 # Note that $ac_compile itself does not contain backslashes and begins
13513 # with a dollar sign (not a hyphen), so the echo should work correctly.
13514 lt_compile=`echo "$ac_compile" | $SED \
13515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13517 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013519 (eval "$lt_compile" 2>out/conftest.err)
13520 ac_status=$?
13521 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13524 then
13525 # The compiler can only warn and ignore the option if not recognized
13526 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13530 lt_cv_prog_compiler_c_o=yes
13531 fi
13532 fi
13533 chmod u+w . 2>&5
13534 $RM conftest*
13535 # SGI C++ compiler will create directory out/ii_files/ for
13536 # template instantiation
13537 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13538 $RM out/* && rmdir out
13539 cd ..
13540 $RM -r conftest
13541 $RM conftest*
13542
13543fi
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13545$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13546
13547
13548
13549
13550hard_links="nottested"
13551if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13552 # do not overwrite the value of need_locks provided by the user
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13554$as_echo_n "checking if we can lock with hard links... " >&6; }
13555 hard_links=yes
13556 $RM conftest*
13557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13558 touch conftest.a
13559 ln conftest.a conftest.b 2>&5 || hard_links=no
13560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13562$as_echo "$hard_links" >&6; }
13563 if test "$hard_links" = no; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13565$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13566 need_locks=warn
13567 fi
13568else
13569 need_locks=no
13570fi
13571
13572
13573
13574
13575
13576
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13578$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13579
13580 runpath_var=
13581 allow_undefined_flag=
13582 always_export_symbols=no
13583 archive_cmds=
13584 archive_expsym_cmds=
13585 compiler_needs_object=no
13586 enable_shared_with_static_runtimes=no
13587 export_dynamic_flag_spec=
13588 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13589 hardcode_automatic=no
13590 hardcode_direct=no
13591 hardcode_direct_absolute=no
13592 hardcode_libdir_flag_spec=
13593 hardcode_libdir_flag_spec_ld=
13594 hardcode_libdir_separator=
13595 hardcode_minus_L=no
13596 hardcode_shlibpath_var=unsupported
13597 inherit_rpath=no
13598 link_all_deplibs=unknown
13599 module_cmds=
13600 module_expsym_cmds=
13601 old_archive_from_new_cmds=
13602 old_archive_from_expsyms_cmds=
13603 thread_safe_flag_spec=
13604 whole_archive_flag_spec=
13605 # include_expsyms should be a list of space-separated symbols to be *always*
13606 # included in the symbol list
13607 include_expsyms=
13608 # exclude_expsyms can be an extended regexp of symbols to exclude
13609 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13610 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13611 # as well as any symbol that contains `d'.
13612 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13613 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13614 # platforms (ab)use it in PIC code, but their linkers get confused if
13615 # the symbol is explicitly referenced. Since portable code cannot
13616 # rely on this symbol name, it's probably fine to never include it in
13617 # preloaded symbol tables.
13618 # Exclude shared library initialization/finalization symbols.
13619 extract_expsyms_cmds=
13620
13621 case $host_os in
13622 cygwin* | mingw* | pw32* | cegcc*)
13623 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13624 # When not using gcc, we currently assume that we are using
13625 # Microsoft Visual C++.
13626 if test "$GCC" != yes; then
13627 with_gnu_ld=no
13628 fi
13629 ;;
13630 interix*)
13631 # we just hope/assume this is gcc and not c89 (= MSVC++)
13632 with_gnu_ld=yes
13633 ;;
13634 openbsd*)
13635 with_gnu_ld=no
13636 ;;
13637 esac
13638
13639 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013640
13641 # On some targets, GNU ld is compatible enough with the native linker
13642 # that we're better off using the native interface for both.
13643 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013644 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013645 case $host_os in
13646 aix*)
13647 # The AIX port of GNU ld has always aspired to compatibility
13648 # with the native linker. However, as the warning in the GNU ld
13649 # block says, versions before 2.19.5* couldn't really create working
13650 # shared libraries, regardless of the interface used.
13651 case `$LD -v 2>&1` in
13652 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13653 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13654 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13655 *)
13656 lt_use_gnu_ld_interface=yes
13657 ;;
13658 esac
13659 ;;
13660 *)
13661 lt_use_gnu_ld_interface=yes
13662 ;;
13663 esac
13664 fi
13665
13666 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013667 # If archive_cmds runs LD, not CC, wlarc should be empty
13668 wlarc='${wl}'
13669
13670 # Set some defaults for GNU ld with shared library support. These
13671 # are reset later if shared libraries are not supported. Putting them
13672 # here allows them to be overridden if necessary.
13673 runpath_var=LD_RUN_PATH
13674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13675 export_dynamic_flag_spec='${wl}--export-dynamic'
13676 # ancient GNU ld didn't support --whole-archive et. al.
13677 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13678 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13679 else
13680 whole_archive_flag_spec=
13681 fi
13682 supports_anon_versioning=no
13683 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013684 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013685 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13686 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13687 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13688 *\ 2.11.*) ;; # other 2.11 versions
13689 *) supports_anon_versioning=yes ;;
13690 esac
13691
13692 # See if GNU ld supports shared libraries.
13693 case $host_os in
13694 aix[3-9]*)
13695 # On AIX/PPC, the GNU linker is very broken
13696 if test "$host_cpu" != ia64; then
13697 ld_shlibs=no
13698 cat <<_LT_EOF 1>&2
13699
cristy0c60a692010-11-04 01:09:47 +000013700*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013701*** to be unable to reliably create shared libraries on AIX.
13702*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013703*** really care for shared libraries, you may want to install binutils
13704*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13705*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013706
13707_LT_EOF
13708 fi
13709 ;;
13710
13711 amigaos*)
13712 case $host_cpu in
13713 powerpc)
13714 # see comment about AmigaOS4 .so support
13715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13716 archive_expsym_cmds=''
13717 ;;
13718 m68k)
13719 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)'
13720 hardcode_libdir_flag_spec='-L$libdir'
13721 hardcode_minus_L=yes
13722 ;;
13723 esac
13724 ;;
13725
13726 beos*)
13727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13728 allow_undefined_flag=unsupported
13729 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13730 # support --undefined. This deserves some investigation. FIXME
13731 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13732 else
13733 ld_shlibs=no
13734 fi
13735 ;;
13736
13737 cygwin* | mingw* | pw32* | cegcc*)
13738 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13739 # as there is no search path for DLLs.
13740 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013741 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013742 allow_undefined_flag=unsupported
13743 always_export_symbols=no
13744 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013745 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'
13746 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 +000013747
13748 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13750 # If the export-symbols file already is a .def file (1st line
13751 # is EXPORTS), use it as is; otherwise, prepend...
13752 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13753 cp $export_symbols $output_objdir/$soname.def;
13754 else
13755 echo EXPORTS > $output_objdir/$soname.def;
13756 cat $export_symbols >> $output_objdir/$soname.def;
13757 fi~
13758 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13759 else
13760 ld_shlibs=no
13761 fi
13762 ;;
13763
cristy0c60a692010-11-04 01:09:47 +000013764 haiku*)
13765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13766 link_all_deplibs=yes
13767 ;;
13768
cristy73bd4a52010-10-05 11:24:23 +000013769 interix[3-9]*)
13770 hardcode_direct=no
13771 hardcode_shlibpath_var=no
13772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13773 export_dynamic_flag_spec='${wl}-E'
13774 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13775 # Instead, shared libraries are loaded at an image base (0x10000000 by
13776 # default) and relocated if they conflict, which is a slow very memory
13777 # consuming and fragmenting process. To avoid this, we pick a random,
13778 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13779 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13781 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'
13782 ;;
13783
cristy0c60a692010-11-04 01:09:47 +000013784 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013785 tmp_diet=no
13786 if test "$host_os" = linux-dietlibc; then
13787 case $cc_basename in
13788 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13789 esac
13790 fi
13791 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13792 && test "$tmp_diet" = no
13793 then
cristyda16f162011-02-19 23:52:17 +000013794 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013795 tmp_sharedflag='-shared'
13796 case $cc_basename,$host_cpu in
13797 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013798 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 +000013799 tmp_addflag=' $pic_flag'
13800 ;;
cristy0c60a692010-11-04 01:09:47 +000013801 pgf77* | pgf90* | pgf95* | pgfortran*)
13802 # Portland Group f77 and f90 compilers
13803 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 +000013804 tmp_addflag=' $pic_flag -Mnomain' ;;
13805 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13806 tmp_addflag=' -i_dynamic' ;;
13807 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13808 tmp_addflag=' -i_dynamic -nofor_main' ;;
13809 ifc* | ifort*) # Intel Fortran compiler
13810 tmp_addflag=' -nofor_main' ;;
13811 lf95*) # Lahey Fortran 8.1
13812 whole_archive_flag_spec=
13813 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013814 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013815 tmp_sharedflag='-qmkshrobj'
13816 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013817 nvcc*) # Cuda Compiler Driver 2.2
13818 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'
13819 compiler_needs_object=yes
13820 ;;
cristy73bd4a52010-10-05 11:24:23 +000013821 esac
13822 case `$CC -V 2>&1 | sed 5q` in
13823 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013824 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 +000013825 compiler_needs_object=yes
13826 tmp_sharedflag='-G' ;;
13827 *Sun\ F*) # Sun Fortran 8.3
13828 tmp_sharedflag='-G' ;;
13829 esac
13830 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831
13832 if test "x$supports_anon_versioning" = xyes; then
13833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13835 echo "local: *; };" >> $output_objdir/$libname.ver~
13836 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13837 fi
13838
13839 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013840 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013841 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13842 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13843 hardcode_libdir_flag_spec=
13844 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013845 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013846 if test "x$supports_anon_versioning" = xyes; then
13847 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13849 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013850 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013851 fi
13852 ;;
13853 esac
13854 else
13855 ld_shlibs=no
13856 fi
13857 ;;
13858
13859 netbsd*)
13860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13861 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13862 wlarc=
13863 else
cristyda16f162011-02-19 23:52:17 +000013864 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13865 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 +000013866 fi
13867 ;;
13868
13869 solaris*)
13870 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13871 ld_shlibs=no
13872 cat <<_LT_EOF 1>&2
13873
13874*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13875*** create shared libraries on Solaris systems. Therefore, libtool
13876*** is disabling shared libraries support. We urge you to upgrade GNU
13877*** binutils to release 2.9.1 or newer. Another option is to modify
13878*** your PATH or compiler configuration so that the native linker is
13879*** used, and then restart.
13880
13881_LT_EOF
13882 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884 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 +000013885 else
13886 ld_shlibs=no
13887 fi
13888 ;;
13889
13890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13891 case `$LD -v 2>&1` in
13892 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13893 ld_shlibs=no
13894 cat <<_LT_EOF 1>&2
13895
13896*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13897*** reliably create shared libraries on SCO systems. Therefore, libtool
13898*** is disabling shared libraries support. We urge you to upgrade GNU
13899*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13900*** your PATH or compiler configuration so that the native linker is
13901*** used, and then restart.
13902
13903_LT_EOF
13904 ;;
13905 *)
13906 # For security reasons, it is highly recommended that you always
13907 # use absolute paths for naming shared libraries, and exclude the
13908 # DT_RUNPATH tag from executables and libraries. But doing so
13909 # requires that you compile everything twice, which is a pain.
13910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13914 else
13915 ld_shlibs=no
13916 fi
13917 ;;
13918 esac
13919 ;;
13920
13921 sunos4*)
13922 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13923 wlarc=
13924 hardcode_direct=yes
13925 hardcode_shlibpath_var=no
13926 ;;
13927
13928 *)
13929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013930 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13931 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 +000013932 else
13933 ld_shlibs=no
13934 fi
13935 ;;
13936 esac
13937
13938 if test "$ld_shlibs" = no; then
13939 runpath_var=
13940 hardcode_libdir_flag_spec=
13941 export_dynamic_flag_spec=
13942 whole_archive_flag_spec=
13943 fi
13944 else
13945 # PORTME fill in a description of your system's linker (not GNU ld)
13946 case $host_os in
13947 aix3*)
13948 allow_undefined_flag=unsupported
13949 always_export_symbols=yes
13950 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'
13951 # Note: this linker hardcodes the directories in LIBPATH if there
13952 # are no directories specified by -L.
13953 hardcode_minus_L=yes
13954 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13955 # Neither direct hardcoding nor static linking is supported with a
13956 # broken collect2.
13957 hardcode_direct=unsupported
13958 fi
13959 ;;
13960
13961 aix[4-9]*)
13962 if test "$host_cpu" = ia64; then
13963 # On IA64, the linker does run time linking by default, so we don't
13964 # have to do anything special.
13965 aix_use_runtimelinking=no
13966 exp_sym_flag='-Bexport'
13967 no_entry_flag=""
13968 else
13969 # If we're using GNU nm, then we don't want the "-C" option.
13970 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013971 # Also, AIX nm treats weak defined symbols like other global
13972 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013973 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013974 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 +000013975 else
13976 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'
13977 fi
13978 aix_use_runtimelinking=no
13979
13980 # Test if we are trying to use run time linking or normal
13981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13982 # need to do runtime linking.
13983 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13984 for ld_flag in $LDFLAGS; do
13985 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13986 aix_use_runtimelinking=yes
13987 break
13988 fi
13989 done
13990 ;;
13991 esac
13992
13993 exp_sym_flag='-bexport'
13994 no_entry_flag='-bnoentry'
13995 fi
13996
13997 # When large executables or shared objects are built, AIX ld can
13998 # have problems creating the table of contents. If linking a library
13999 # or program results in "error TOC overflow" add -mminimal-toc to
14000 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14001 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14002
14003 archive_cmds=''
14004 hardcode_direct=yes
14005 hardcode_direct_absolute=yes
14006 hardcode_libdir_separator=':'
14007 link_all_deplibs=yes
14008 file_list_spec='${wl}-f,'
14009
14010 if test "$GCC" = yes; then
14011 case $host_os in aix4.[012]|aix4.[012].*)
14012 # We only want to do this on AIX 4.2 and lower, the check
14013 # below for broken collect2 doesn't work under 4.3+
14014 collect2name=`${CC} -print-prog-name=collect2`
14015 if test -f "$collect2name" &&
14016 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14017 then
14018 # We have reworked collect2
14019 :
14020 else
14021 # We have old collect2
14022 hardcode_direct=unsupported
14023 # It fails to find uninstalled libraries when the uninstalled
14024 # path is not listed in the libpath. Setting hardcode_minus_L
14025 # to unsupported forces relinking
14026 hardcode_minus_L=yes
14027 hardcode_libdir_flag_spec='-L$libdir'
14028 hardcode_libdir_separator=
14029 fi
14030 ;;
14031 esac
14032 shared_flag='-shared'
14033 if test "$aix_use_runtimelinking" = yes; then
14034 shared_flag="$shared_flag "'${wl}-G'
14035 fi
14036 else
14037 # not using gcc
14038 if test "$host_cpu" = ia64; then
14039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14040 # chokes on -Wl,-G. The following line is correct:
14041 shared_flag='-G'
14042 else
14043 if test "$aix_use_runtimelinking" = yes; then
14044 shared_flag='${wl}-G'
14045 else
14046 shared_flag='${wl}-bM:SRE'
14047 fi
14048 fi
14049 fi
14050
14051 export_dynamic_flag_spec='${wl}-bexpall'
14052 # It seems that -bexpall does not export symbols beginning with
14053 # underscore (_), so it is better to generate a list of symbols to export.
14054 always_export_symbols=yes
14055 if test "$aix_use_runtimelinking" = yes; then
14056 # Warning - without using the other runtime loading flags (-brtl),
14057 # -berok will link without error, but may produce a broken library.
14058 allow_undefined_flag='-berok'
14059 # Determine the default libpath from the value encoded in an
14060 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014061 if test "${lt_cv_aix_libpath+set}" = set; then
14062 aix_libpath=$lt_cv_aix_libpath
14063else
14064 if ${lt_cv_aix_libpath_+:} false; then :
14065 $as_echo_n "(cached) " >&6
14066else
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014068/* end confdefs.h. */
14069
14070int
14071main ()
14072{
14073
14074 ;
14075 return 0;
14076}
14077_ACEOF
14078if ac_fn_c_try_link "$LINENO"; then :
14079
cristyda16f162011-02-19 23:52:17 +000014080 lt_aix_libpath_sed='
14081 /Import File Strings/,/^$/ {
14082 /^0/ {
14083 s/^0 *\([^ ]*\) *$/\1/
14084 p
14085 }
14086 }'
14087 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14088 # Check for a 64-bit object if we didn't find anything.
14089 if test -z "$lt_cv_aix_libpath_"; then
14090 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14091 fi
cristy73bd4a52010-10-05 11:24:23 +000014092fi
14093rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014095 if test -z "$lt_cv_aix_libpath_"; then
14096 lt_cv_aix_libpath_="/usr/lib:/lib"
14097 fi
14098
14099fi
14100
14101 aix_libpath=$lt_cv_aix_libpath_
14102fi
cristy73bd4a52010-10-05 11:24:23 +000014103
14104 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014105 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 +000014106 else
14107 if test "$host_cpu" = ia64; then
14108 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14109 allow_undefined_flag="-z nodefs"
14110 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"
14111 else
14112 # Determine the default libpath from the value encoded in an
14113 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014114 if test "${lt_cv_aix_libpath+set}" = set; then
14115 aix_libpath=$lt_cv_aix_libpath
14116else
14117 if ${lt_cv_aix_libpath_+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119else
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014121/* end confdefs.h. */
14122
14123int
14124main ()
14125{
14126
14127 ;
14128 return 0;
14129}
14130_ACEOF
14131if ac_fn_c_try_link "$LINENO"; then :
14132
cristyda16f162011-02-19 23:52:17 +000014133 lt_aix_libpath_sed='
14134 /Import File Strings/,/^$/ {
14135 /^0/ {
14136 s/^0 *\([^ ]*\) *$/\1/
14137 p
14138 }
14139 }'
14140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14141 # Check for a 64-bit object if we didn't find anything.
14142 if test -z "$lt_cv_aix_libpath_"; then
14143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14144 fi
cristy73bd4a52010-10-05 11:24:23 +000014145fi
14146rm -f core conftest.err conftest.$ac_objext \
14147 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014148 if test -z "$lt_cv_aix_libpath_"; then
14149 lt_cv_aix_libpath_="/usr/lib:/lib"
14150 fi
14151
14152fi
14153
14154 aix_libpath=$lt_cv_aix_libpath_
14155fi
cristy73bd4a52010-10-05 11:24:23 +000014156
14157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14158 # Warning - without using the other run time loading flags,
14159 # -berok will link without error, but may produce a broken library.
14160 no_undefined_flag=' ${wl}-bernotok'
14161 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014162 if test "$with_gnu_ld" = yes; then
14163 # We only use this code for GNU lds that support --whole-archive.
14164 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14165 else
14166 # Exported symbols can be pulled into shared objects from archives
14167 whole_archive_flag_spec='$convenience'
14168 fi
cristy73bd4a52010-10-05 11:24:23 +000014169 archive_cmds_need_lc=yes
14170 # This is similar to how AIX traditionally builds its shared libraries.
14171 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'
14172 fi
14173 fi
14174 ;;
14175
14176 amigaos*)
14177 case $host_cpu in
14178 powerpc)
14179 # see comment about AmigaOS4 .so support
14180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14181 archive_expsym_cmds=''
14182 ;;
14183 m68k)
14184 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)'
14185 hardcode_libdir_flag_spec='-L$libdir'
14186 hardcode_minus_L=yes
14187 ;;
14188 esac
14189 ;;
14190
14191 bsdi[45]*)
14192 export_dynamic_flag_spec=-rdynamic
14193 ;;
14194
14195 cygwin* | mingw* | pw32* | cegcc*)
14196 # When not using gcc, we currently assume that we are using
14197 # Microsoft Visual C++.
14198 # hardcode_libdir_flag_spec is actually meaningless, as there is
14199 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014200 case $cc_basename in
14201 cl*)
14202 # Native MSVC
14203 hardcode_libdir_flag_spec=' '
14204 allow_undefined_flag=unsupported
14205 always_export_symbols=yes
14206 file_list_spec='@'
14207 # Tell ltmain to make .lib files, not .a files.
14208 libext=lib
14209 # Tell ltmain to make .dll files, not .so files.
14210 shrext_cmds=".dll"
14211 # FIXME: Setting linknames here is a bad hack.
14212 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14213 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14214 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14215 else
14216 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14217 fi~
14218 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14219 linknames='
14220 # The linker will not automatically build a static lib if we build a DLL.
14221 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14222 enable_shared_with_static_runtimes=yes
14223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14224 # Don't use ranlib
14225 old_postinstall_cmds='chmod 644 $oldlib'
14226 postlink_cmds='lt_outputfile="@OUTPUT@"~
14227 lt_tool_outputfile="@TOOL_OUTPUT@"~
14228 case $lt_outputfile in
14229 *.exe|*.EXE) ;;
14230 *)
14231 lt_outputfile="$lt_outputfile.exe"
14232 lt_tool_outputfile="$lt_tool_outputfile.exe"
14233 ;;
14234 esac~
14235 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14236 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14237 $RM "$lt_outputfile.manifest";
14238 fi'
14239 ;;
14240 *)
14241 # Assume MSVC wrapper
14242 hardcode_libdir_flag_spec=' '
14243 allow_undefined_flag=unsupported
14244 # Tell ltmain to make .lib files, not .a files.
14245 libext=lib
14246 # Tell ltmain to make .dll files, not .so files.
14247 shrext_cmds=".dll"
14248 # FIXME: Setting linknames here is a bad hack.
14249 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14250 # The linker will automatically build a .lib file if we build a DLL.
14251 old_archive_from_new_cmds='true'
14252 # FIXME: Should let the user specify the lib program.
14253 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14254 enable_shared_with_static_runtimes=yes
14255 ;;
14256 esac
cristy73bd4a52010-10-05 11:24:23 +000014257 ;;
14258
14259 darwin* | rhapsody*)
14260
14261
14262 archive_cmds_need_lc=no
14263 hardcode_direct=no
14264 hardcode_automatic=yes
14265 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014266 if test "$lt_cv_ld_force_load" = "yes"; then
14267 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\"`'
14268 else
14269 whole_archive_flag_spec=''
14270 fi
cristy73bd4a52010-10-05 11:24:23 +000014271 link_all_deplibs=yes
14272 allow_undefined_flag="$_lt_dar_allow_undefined"
14273 case $cc_basename in
14274 ifort*) _lt_dar_can_shared=yes ;;
14275 *) _lt_dar_can_shared=$GCC ;;
14276 esac
14277 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014278 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014279 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14280 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14281 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}"
14282 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}"
14283
14284 else
14285 ld_shlibs=no
14286 fi
14287
14288 ;;
14289
14290 dgux*)
14291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_libdir_flag_spec='-L$libdir'
14293 hardcode_shlibpath_var=no
14294 ;;
14295
14296 freebsd1*)
14297 ld_shlibs=no
14298 ;;
14299
14300 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14301 # support. Future versions do this automatically, but an explicit c++rt0.o
14302 # does not break anything, and helps significantly (at the cost of a little
14303 # extra space).
14304 freebsd2.2*)
14305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14306 hardcode_libdir_flag_spec='-R$libdir'
14307 hardcode_direct=yes
14308 hardcode_shlibpath_var=no
14309 ;;
14310
14311 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14312 freebsd2*)
14313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14314 hardcode_direct=yes
14315 hardcode_minus_L=yes
14316 hardcode_shlibpath_var=no
14317 ;;
14318
14319 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14320 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014322 hardcode_libdir_flag_spec='-R$libdir'
14323 hardcode_direct=yes
14324 hardcode_shlibpath_var=no
14325 ;;
14326
14327 hpux9*)
14328 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014329 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 +000014330 else
14331 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'
14332 fi
14333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14334 hardcode_libdir_separator=:
14335 hardcode_direct=yes
14336
14337 # hardcode_minus_L: Not really in the search PATH,
14338 # but as the default location of the library.
14339 hardcode_minus_L=yes
14340 export_dynamic_flag_spec='${wl}-E'
14341 ;;
14342
14343 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014344 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014345 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 +000014346 else
14347 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14348 fi
14349 if test "$with_gnu_ld" = no; then
14350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14351 hardcode_libdir_flag_spec_ld='+b $libdir'
14352 hardcode_libdir_separator=:
14353 hardcode_direct=yes
14354 hardcode_direct_absolute=yes
14355 export_dynamic_flag_spec='${wl}-E'
14356 # hardcode_minus_L: Not really in the search PATH,
14357 # but as the default location of the library.
14358 hardcode_minus_L=yes
14359 fi
14360 ;;
14361
14362 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014363 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014364 case $host_cpu in
14365 hppa*64*)
14366 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 ;;
14368 ia64*)
cristyda16f162011-02-19 23:52:17 +000014369 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014370 ;;
14371 *)
cristyda16f162011-02-19 23:52:17 +000014372 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 +000014373 ;;
14374 esac
14375 else
14376 case $host_cpu in
14377 hppa*64*)
14378 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14379 ;;
14380 ia64*)
14381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14382 ;;
14383 *)
cristy0c60a692010-11-04 01:09:47 +000014384
14385 # Older versions of the 11.00 compiler do not understand -b yet
14386 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14388$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014389if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014390 $as_echo_n "(cached) " >&6
14391else
14392 lt_cv_prog_compiler__b=no
14393 save_LDFLAGS="$LDFLAGS"
14394 LDFLAGS="$LDFLAGS -b"
14395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14397 # The linker can only warn and ignore the option if not recognized
14398 # So say no if there are warnings
14399 if test -s conftest.err; then
14400 # Append any errors to the config.log.
14401 cat conftest.err 1>&5
14402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14404 if diff conftest.exp conftest.er2 >/dev/null; then
14405 lt_cv_prog_compiler__b=yes
14406 fi
14407 else
14408 lt_cv_prog_compiler__b=yes
14409 fi
14410 fi
14411 $RM -r conftest*
14412 LDFLAGS="$save_LDFLAGS"
14413
14414fi
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14416$as_echo "$lt_cv_prog_compiler__b" >&6; }
14417
14418if test x"$lt_cv_prog_compiler__b" = xyes; then
14419 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14420else
14421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14422fi
14423
cristy73bd4a52010-10-05 11:24:23 +000014424 ;;
14425 esac
14426 fi
14427 if test "$with_gnu_ld" = no; then
14428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14429 hardcode_libdir_separator=:
14430
14431 case $host_cpu in
14432 hppa*64*|ia64*)
14433 hardcode_direct=no
14434 hardcode_shlibpath_var=no
14435 ;;
14436 *)
14437 hardcode_direct=yes
14438 hardcode_direct_absolute=yes
14439 export_dynamic_flag_spec='${wl}-E'
14440
14441 # hardcode_minus_L: Not really in the search PATH,
14442 # but as the default location of the library.
14443 hardcode_minus_L=yes
14444 ;;
14445 esac
14446 fi
14447 ;;
14448
14449 irix5* | irix6* | nonstopux*)
14450 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014451 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 +000014452 # Try to use the -exported_symbol ld option, if it does not
14453 # work, assume that -exports_file does not work either and
14454 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014455 # This should be the same for all languages, so no per-tag cache variable.
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14457$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14458if ${lt_cv_irix_exported_symbol+:} false; then :
14459 $as_echo_n "(cached) " >&6
14460else
14461 save_LDFLAGS="$LDFLAGS"
14462 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014464/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014465int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014466_ACEOF
14467if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014468 lt_cv_irix_exported_symbol=yes
14469else
14470 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014471fi
14472rm -f core conftest.err conftest.$ac_objext \
14473 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014474 LDFLAGS="$save_LDFLAGS"
14475fi
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14477$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14478 if test "$lt_cv_irix_exported_symbol" = yes; then
14479 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'
14480 fi
cristy73bd4a52010-10-05 11:24:23 +000014481 else
cristy0c60a692010-11-04 01:09:47 +000014482 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'
14483 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 +000014484 fi
14485 archive_cmds_need_lc='no'
14486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14487 hardcode_libdir_separator=:
14488 inherit_rpath=yes
14489 link_all_deplibs=yes
14490 ;;
14491
14492 netbsd*)
14493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14495 else
14496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14497 fi
14498 hardcode_libdir_flag_spec='-R$libdir'
14499 hardcode_direct=yes
14500 hardcode_shlibpath_var=no
14501 ;;
14502
14503 newsos6)
14504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14505 hardcode_direct=yes
14506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14507 hardcode_libdir_separator=:
14508 hardcode_shlibpath_var=no
14509 ;;
14510
14511 *nto* | *qnx*)
14512 ;;
14513
14514 openbsd*)
14515 if test -f /usr/libexec/ld.so; then
14516 hardcode_direct=yes
14517 hardcode_shlibpath_var=no
14518 hardcode_direct_absolute=yes
14519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14521 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14523 export_dynamic_flag_spec='${wl}-E'
14524 else
14525 case $host_os in
14526 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14528 hardcode_libdir_flag_spec='-R$libdir'
14529 ;;
14530 *)
14531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14533 ;;
14534 esac
14535 fi
14536 else
14537 ld_shlibs=no
14538 fi
14539 ;;
14540
14541 os2*)
14542 hardcode_libdir_flag_spec='-L$libdir'
14543 hardcode_minus_L=yes
14544 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014545 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 +000014546 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14547 ;;
14548
14549 osf3*)
14550 if test "$GCC" = yes; then
14551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014552 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 +000014553 else
14554 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014555 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 +000014556 fi
14557 archive_cmds_need_lc='no'
14558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14559 hardcode_libdir_separator=:
14560 ;;
14561
14562 osf4* | osf5*) # as osf3* with the addition of -msym flag
14563 if test "$GCC" = yes; then
14564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014565 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 +000014566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14567 else
14568 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014569 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 +000014570 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 +000014571 $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 +000014572
14573 # Both c and cxx compiler support -rpath directly
14574 hardcode_libdir_flag_spec='-rpath $libdir'
14575 fi
14576 archive_cmds_need_lc='no'
14577 hardcode_libdir_separator=:
14578 ;;
14579
14580 solaris*)
14581 no_undefined_flag=' -z defs'
14582 if test "$GCC" = yes; then
14583 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014584 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 +000014585 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 +000014586 $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 +000014587 else
14588 case `$CC -V 2>&1` in
14589 *"Compilers 5.0"*)
14590 wlarc=''
14591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14594 ;;
14595 *)
14596 wlarc='${wl}'
14597 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14599 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14600 ;;
14601 esac
14602 fi
14603 hardcode_libdir_flag_spec='-R$libdir'
14604 hardcode_shlibpath_var=no
14605 case $host_os in
14606 solaris2.[0-5] | solaris2.[0-5].*) ;;
14607 *)
14608 # The compiler driver will combine and reorder linker options,
14609 # but understands `-z linker_flag'. GCC discards it without `$wl',
14610 # but is careful enough not to reorder.
14611 # Supported since Solaris 2.6 (maybe 2.5.1?)
14612 if test "$GCC" = yes; then
14613 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14614 else
14615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14616 fi
14617 ;;
14618 esac
14619 link_all_deplibs=yes
14620 ;;
14621
14622 sunos4*)
14623 if test "x$host_vendor" = xsequent; then
14624 # Use $CC to link under sequent, because it throws in some extra .o
14625 # files that make .init and .fini sections work.
14626 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14627 else
14628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14629 fi
14630 hardcode_libdir_flag_spec='-L$libdir'
14631 hardcode_direct=yes
14632 hardcode_minus_L=yes
14633 hardcode_shlibpath_var=no
14634 ;;
14635
14636 sysv4)
14637 case $host_vendor in
14638 sni)
14639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640 hardcode_direct=yes # is this really true???
14641 ;;
14642 siemens)
14643 ## LD is ld it makes a PLAMLIB
14644 ## CC just makes a GrossModule.
14645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14646 reload_cmds='$CC -r -o $output$reload_objs'
14647 hardcode_direct=no
14648 ;;
14649 motorola)
14650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14652 ;;
14653 esac
14654 runpath_var='LD_RUN_PATH'
14655 hardcode_shlibpath_var=no
14656 ;;
14657
14658 sysv4.3*)
14659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660 hardcode_shlibpath_var=no
14661 export_dynamic_flag_spec='-Bexport'
14662 ;;
14663
14664 sysv4*MP*)
14665 if test -d /usr/nec; then
14666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14667 hardcode_shlibpath_var=no
14668 runpath_var=LD_RUN_PATH
14669 hardcode_runpath_var=yes
14670 ld_shlibs=yes
14671 fi
14672 ;;
14673
14674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14675 no_undefined_flag='${wl}-z,text'
14676 archive_cmds_need_lc=no
14677 hardcode_shlibpath_var=no
14678 runpath_var='LD_RUN_PATH'
14679
14680 if test "$GCC" = yes; then
14681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 else
14684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 fi
14687 ;;
14688
14689 sysv5* | sco3.2v5* | sco5v6*)
14690 # Note: We can NOT use -z defs as we might desire, because we do not
14691 # link with -lc, and that would cause any symbols used from libc to
14692 # always be unresolved, which means just about no library would
14693 # ever link correctly. If we're not using GNU ld we use -z text
14694 # though, which does catch some bad symbols but isn't as heavy-handed
14695 # as -z defs.
14696 no_undefined_flag='${wl}-z,text'
14697 allow_undefined_flag='${wl}-z,nodefs'
14698 archive_cmds_need_lc=no
14699 hardcode_shlibpath_var=no
14700 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14701 hardcode_libdir_separator=':'
14702 link_all_deplibs=yes
14703 export_dynamic_flag_spec='${wl}-Bexport'
14704 runpath_var='LD_RUN_PATH'
14705
14706 if test "$GCC" = yes; then
14707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14709 else
14710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712 fi
14713 ;;
14714
14715 uts4*)
14716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14717 hardcode_libdir_flag_spec='-L$libdir'
14718 hardcode_shlibpath_var=no
14719 ;;
14720
14721 *)
14722 ld_shlibs=no
14723 ;;
14724 esac
14725
14726 if test x$host_vendor = xsni; then
14727 case $host in
14728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14729 export_dynamic_flag_spec='${wl}-Blargedynsym'
14730 ;;
14731 esac
14732 fi
14733 fi
14734
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14736$as_echo "$ld_shlibs" >&6; }
14737test "$ld_shlibs" = no && can_build_shared=no
14738
14739with_gnu_ld=$with_gnu_ld
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755#
14756# Do we need to explicitly link libc?
14757#
14758case "x$archive_cmds_need_lc" in
14759x|xyes)
14760 # Assume -lc should be added
14761 archive_cmds_need_lc=yes
14762
14763 if test "$enable_shared" = yes && test "$GCC" = yes; then
14764 case $archive_cmds in
14765 *'~'*)
14766 # FIXME: we may have to deal with multi-command sequences.
14767 ;;
14768 '$CC '*)
14769 # Test whether the compiler implicitly links with -lc since on some
14770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14771 # to ld, don't add -lc before -lgcc.
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14773$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014774if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014775 $as_echo_n "(cached) " >&6
14776else
14777 $RM conftest*
14778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014779
cristy0c60a692010-11-04 01:09:47 +000014780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014781 (eval $ac_compile) 2>&5
14782 ac_status=$?
14783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14784 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014785 soname=conftest
14786 lib=conftest
14787 libobjs=conftest.$ac_objext
14788 deplibs=
14789 wl=$lt_prog_compiler_wl
14790 pic_flag=$lt_prog_compiler_pic
14791 compiler_flags=-v
14792 linker_flags=-v
14793 verstring=
14794 output_objdir=.
14795 libname=conftest
14796 lt_save_allow_undefined_flag=$allow_undefined_flag
14797 allow_undefined_flag=
14798 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 +000014799 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14800 ac_status=$?
14801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014803 then
14804 lt_cv_archive_cmds_need_lc=no
14805 else
14806 lt_cv_archive_cmds_need_lc=yes
14807 fi
14808 allow_undefined_flag=$lt_save_allow_undefined_flag
14809 else
14810 cat conftest.err 1>&5
14811 fi
14812 $RM conftest*
14813
14814fi
14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14816$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14817 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014818 ;;
14819 esac
14820 fi
14821 ;;
14822esac
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14981$as_echo_n "checking dynamic linker characteristics... " >&6; }
14982
14983if test "$GCC" = yes; then
14984 case $host_os in
14985 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14986 *) lt_awk_arg="/^libraries:/" ;;
14987 esac
cristy0c60a692010-11-04 01:09:47 +000014988 case $host_os in
14989 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14990 *) lt_sed_strip_eq="s,=/,/,g" ;;
14991 esac
14992 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14993 case $lt_search_path_spec in
14994 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014995 # if the path contains ";" then we assume it to be the separator
14996 # otherwise default to the standard path separator (i.e. ":") - it is
14997 # assumed that no part of a normal pathname contains ";" but that should
14998 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000014999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15000 ;;
15001 *)
15002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15003 ;;
15004 esac
cristy73bd4a52010-10-05 11:24:23 +000015005 # Ok, now we have the path, separated by spaces, we can step through it
15006 # and add multilib dir if necessary.
15007 lt_tmp_lt_search_path_spec=
15008 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15009 for lt_sys_path in $lt_search_path_spec; do
15010 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15012 else
15013 test -d "$lt_sys_path" && \
15014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15015 fi
15016 done
cristy0c60a692010-11-04 01:09:47 +000015017 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015018BEGIN {RS=" "; FS="/|\n";} {
15019 lt_foo="";
15020 lt_count=0;
15021 for (lt_i = NF; lt_i > 0; lt_i--) {
15022 if ($lt_i != "" && $lt_i != ".") {
15023 if ($lt_i == "..") {
15024 lt_count++;
15025 } else {
15026 if (lt_count == 0) {
15027 lt_foo="/" $lt_i lt_foo;
15028 } else {
15029 lt_count--;
15030 }
15031 }
15032 }
15033 }
15034 if (lt_foo != "") { lt_freq[lt_foo]++; }
15035 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15036}'`
cristy0c60a692010-11-04 01:09:47 +000015037 # AWK program above erroneously prepends '/' to C:/dos/paths
15038 # for these hosts.
15039 case $host_os in
15040 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15041 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15042 esac
15043 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015044else
15045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15046fi
15047library_names_spec=
15048libname_spec='lib$name'
15049soname_spec=
15050shrext_cmds=".so"
15051postinstall_cmds=
15052postuninstall_cmds=
15053finish_cmds=
15054finish_eval=
15055shlibpath_var=
15056shlibpath_overrides_runpath=unknown
15057version_type=none
15058dynamic_linker="$host_os ld.so"
15059sys_lib_dlsearch_path_spec="/lib /usr/lib"
15060need_lib_prefix=unknown
15061hardcode_into_libs=no
15062
15063# when you set need_version to no, make sure it does not cause -set_version
15064# flags to be left without arguments
15065need_version=unknown
15066
15067case $host_os in
15068aix3*)
15069 version_type=linux
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15071 shlibpath_var=LIBPATH
15072
15073 # AIX 3 has no versioning support, so we append a major version to the name.
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 ;;
15076
15077aix[4-9]*)
15078 version_type=linux
15079 need_lib_prefix=no
15080 need_version=no
15081 hardcode_into_libs=yes
15082 if test "$host_cpu" = ia64; then
15083 # AIX 5 supports IA64
15084 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15085 shlibpath_var=LD_LIBRARY_PATH
15086 else
15087 # With GCC up to 2.95.x, collect2 would create an import file
15088 # for dependence libraries. The import file would start with
15089 # the line `#! .'. This would cause the generated library to
15090 # depend on `.', always an invalid library. This was fixed in
15091 # development snapshots of GCC prior to 3.0.
15092 case $host_os in
15093 aix4 | aix4.[01] | aix4.[01].*)
15094 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15095 echo ' yes '
15096 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15097 :
15098 else
15099 can_build_shared=no
15100 fi
15101 ;;
15102 esac
15103 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15104 # soname into executable. Probably we can add versioning support to
15105 # collect2, so additional links can be useful in future.
15106 if test "$aix_use_runtimelinking" = yes; then
15107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15108 # instead of lib<name>.a to let people know that these are not
15109 # typical AIX shared libraries.
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 else
15112 # We preserve .a as extension for shared libraries through AIX4.2
15113 # and later when we are not doing run time linking.
15114 library_names_spec='${libname}${release}.a $libname.a'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 fi
15117 shlibpath_var=LIBPATH
15118 fi
15119 ;;
15120
15121amigaos*)
15122 case $host_cpu in
15123 powerpc)
15124 # Since July 2007 AmigaOS4 officially supports .so libraries.
15125 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15127 ;;
15128 m68k)
15129 library_names_spec='$libname.ixlibrary $libname.a'
15130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015131 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 +000015132 ;;
15133 esac
15134 ;;
15135
15136beos*)
15137 library_names_spec='${libname}${shared_ext}'
15138 dynamic_linker="$host_os ld.so"
15139 shlibpath_var=LIBRARY_PATH
15140 ;;
15141
15142bsdi[45]*)
15143 version_type=linux
15144 need_version=no
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146 soname_spec='${libname}${release}${shared_ext}$major'
15147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15151 # the default ld.so.conf also contains /usr/contrib/lib and
15152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15153 # libtool to hard-code these into programs
15154 ;;
15155
15156cygwin* | mingw* | pw32* | cegcc*)
15157 version_type=windows
15158 shrext_cmds=".dll"
15159 need_version=no
15160 need_lib_prefix=no
15161
cristyda16f162011-02-19 23:52:17 +000015162 case $GCC,$cc_basename in
15163 yes,*)
15164 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015165 library_names_spec='$libname.dll.a'
15166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15167 postinstall_cmds='base_file=`basename \${file}`~
15168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15169 dldir=$destdir/`dirname \$dlpath`~
15170 test -d \$dldir || mkdir -p \$dldir~
15171 $install_prog $dir/$dlname \$dldir/$dlname~
15172 chmod a+x \$dldir/$dlname~
15173 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15174 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15175 fi'
15176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15177 dlpath=$dir/\$dldll~
15178 $RM \$dlpath'
15179 shlibpath_overrides_runpath=yes
15180
15181 case $host_os in
15182 cygwin*)
15183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015185
15186 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015187 ;;
15188 mingw* | cegcc*)
15189 # MinGW DLLs use traditional 'lib' prefix
15190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015191 ;;
15192 pw32*)
15193 # pw32 DLLs use 'pw' prefix rather than 'lib'
15194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15195 ;;
15196 esac
cristyda16f162011-02-19 23:52:17 +000015197 dynamic_linker='Win32 ld.exe'
15198 ;;
15199
15200 *,cl*)
15201 # Native MSVC
15202 libname_spec='$name'
15203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15204 library_names_spec='${libname}.dll.lib'
15205
15206 case $build_os in
15207 mingw*)
15208 sys_lib_search_path_spec=
15209 lt_save_ifs=$IFS
15210 IFS=';'
15211 for lt_path in $LIB
15212 do
15213 IFS=$lt_save_ifs
15214 # Let DOS variable expansion print the short 8.3 style file name.
15215 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15216 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15217 done
15218 IFS=$lt_save_ifs
15219 # Convert to MSYS style.
15220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15221 ;;
15222 cygwin*)
15223 # Convert to unix form, then to dos form, then back to unix form
15224 # but this time dos style (no spaces!) so that the unix form looks
15225 # like /cygdrive/c/PROGRA~1:/cygdr...
15226 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15227 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15228 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15229 ;;
15230 *)
15231 sys_lib_search_path_spec="$LIB"
15232 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15233 # It is most probably a Windows format PATH.
15234 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15235 else
15236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15237 fi
15238 # FIXME: find the short name or the path components, as spaces are
15239 # common. (e.g. "Program Files" -> "PROGRA~1")
15240 ;;
15241 esac
15242
15243 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15244 postinstall_cmds='base_file=`basename \${file}`~
15245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15246 dldir=$destdir/`dirname \$dlpath`~
15247 test -d \$dldir || mkdir -p \$dldir~
15248 $install_prog $dir/$dlname \$dldir/$dlname'
15249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15250 dlpath=$dir/\$dldll~
15251 $RM \$dlpath'
15252 shlibpath_overrides_runpath=yes
15253 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015254 ;;
15255
15256 *)
cristyda16f162011-02-19 23:52:17 +000015257 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015259 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015260 ;;
15261 esac
cristy73bd4a52010-10-05 11:24:23 +000015262 # FIXME: first we should search . and the directory the executable is in
15263 shlibpath_var=PATH
15264 ;;
15265
15266darwin* | rhapsody*)
15267 dynamic_linker="$host_os dyld"
15268 version_type=darwin
15269 need_lib_prefix=no
15270 need_version=no
15271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15272 soname_spec='${libname}${release}${major}$shared_ext'
15273 shlibpath_overrides_runpath=yes
15274 shlibpath_var=DYLD_LIBRARY_PATH
15275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15276
15277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15279 ;;
15280
15281dgux*)
15282 version_type=linux
15283 need_lib_prefix=no
15284 need_version=no
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15286 soname_spec='${libname}${release}${shared_ext}$major'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 ;;
15289
15290freebsd1*)
15291 dynamic_linker=no
15292 ;;
15293
15294freebsd* | dragonfly*)
15295 # DragonFly does not have aout. When/if they implement a new
15296 # versioning mechanism, adjust this.
15297 if test -x /usr/bin/objformat; then
15298 objformat=`/usr/bin/objformat`
15299 else
15300 case $host_os in
15301 freebsd[123]*) objformat=aout ;;
15302 *) objformat=elf ;;
15303 esac
15304 fi
15305 version_type=freebsd-$objformat
15306 case $version_type in
15307 freebsd-elf*)
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15309 need_version=no
15310 need_lib_prefix=no
15311 ;;
15312 freebsd-*)
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15314 need_version=yes
15315 ;;
15316 esac
15317 shlibpath_var=LD_LIBRARY_PATH
15318 case $host_os in
15319 freebsd2*)
15320 shlibpath_overrides_runpath=yes
15321 ;;
15322 freebsd3.[01]* | freebsdelf3.[01]*)
15323 shlibpath_overrides_runpath=yes
15324 hardcode_into_libs=yes
15325 ;;
15326 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15327 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15328 shlibpath_overrides_runpath=no
15329 hardcode_into_libs=yes
15330 ;;
15331 *) # from 4.6 on, and DragonFly
15332 shlibpath_overrides_runpath=yes
15333 hardcode_into_libs=yes
15334 ;;
15335 esac
15336 ;;
15337
15338gnu*)
15339 version_type=linux
15340 need_lib_prefix=no
15341 need_version=no
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15343 soname_spec='${libname}${release}${shared_ext}$major'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 hardcode_into_libs=yes
15346 ;;
15347
cristy0c60a692010-11-04 01:09:47 +000015348haiku*)
15349 version_type=linux
15350 need_lib_prefix=no
15351 need_version=no
15352 dynamic_linker="$host_os runtime_loader"
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LIBRARY_PATH
15356 shlibpath_overrides_runpath=yes
15357 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15358 hardcode_into_libs=yes
15359 ;;
15360
cristy73bd4a52010-10-05 11:24:23 +000015361hpux9* | hpux10* | hpux11*)
15362 # Give a soname corresponding to the major version so that dld.sl refuses to
15363 # link against other versions.
15364 version_type=sunos
15365 need_lib_prefix=no
15366 need_version=no
15367 case $host_cpu in
15368 ia64*)
15369 shrext_cmds='.so'
15370 hardcode_into_libs=yes
15371 dynamic_linker="$host_os dld.so"
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375 soname_spec='${libname}${release}${shared_ext}$major'
15376 if test "X$HPUX_IA64_MODE" = X32; then
15377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15378 else
15379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15380 fi
15381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15382 ;;
15383 hppa*64*)
15384 shrext_cmds='.sl'
15385 hardcode_into_libs=yes
15386 dynamic_linker="$host_os dld.sl"
15387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15393 ;;
15394 *)
15395 shrext_cmds='.sl'
15396 dynamic_linker="$host_os dld.sl"
15397 shlibpath_var=SHLIB_PATH
15398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 ;;
15402 esac
cristy0c60a692010-11-04 01:09:47 +000015403 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015404 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015405 # or fails outright, so override atomically:
15406 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015407 ;;
15408
15409interix[3-9]*)
15410 version_type=linux
15411 need_lib_prefix=no
15412 need_version=no
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 shlibpath_overrides_runpath=no
15418 hardcode_into_libs=yes
15419 ;;
15420
15421irix5* | irix6* | nonstopux*)
15422 case $host_os in
15423 nonstopux*) version_type=nonstopux ;;
15424 *)
15425 if test "$lt_cv_prog_gnu_ld" = yes; then
15426 version_type=linux
15427 else
15428 version_type=irix
15429 fi ;;
15430 esac
15431 need_lib_prefix=no
15432 need_version=no
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15435 case $host_os in
15436 irix5* | nonstopux*)
15437 libsuff= shlibsuff=
15438 ;;
15439 *)
15440 case $LD in # libtool.m4 will add one of these switches to LD
15441 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15442 libsuff= shlibsuff= libmagic=32-bit;;
15443 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15444 libsuff=32 shlibsuff=N32 libmagic=N32;;
15445 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15446 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15447 *) libsuff= shlibsuff= libmagic=never-match;;
15448 esac
15449 ;;
15450 esac
15451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15452 shlibpath_overrides_runpath=no
15453 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15454 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15455 hardcode_into_libs=yes
15456 ;;
15457
15458# No shared lib support for Linux oldld, aout, or coff.
15459linux*oldld* | linux*aout* | linux*coff*)
15460 dynamic_linker=no
15461 ;;
15462
15463# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015464linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015465 version_type=linux
15466 need_lib_prefix=no
15467 need_version=no
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15471 shlibpath_var=LD_LIBRARY_PATH
15472 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015473
cristy73bd4a52010-10-05 11:24:23 +000015474 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015475 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015476 $as_echo_n "(cached) " >&6
15477else
15478 lt_cv_shlibpath_overrides_runpath=no
15479 save_LDFLAGS=$LDFLAGS
15480 save_libdir=$libdir
15481 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15482 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015484/* end confdefs.h. */
15485
15486int
15487main ()
15488{
15489
15490 ;
15491 return 0;
15492}
15493_ACEOF
15494if ac_fn_c_try_link "$LINENO"; then :
15495 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015496 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015497fi
15498fi
15499rm -f core conftest.err conftest.$ac_objext \
15500 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015501 LDFLAGS=$save_LDFLAGS
15502 libdir=$save_libdir
15503
15504fi
15505
15506 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015507
15508 # This implies no fast_install, which is unacceptable.
15509 # Some rework will be needed to allow for fast_install
15510 # before this can be enabled.
15511 hardcode_into_libs=yes
15512
15513 # Add ABI-specific directories to the system library path.
15514 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15515
15516 # Append ld.so.conf contents to the search path
15517 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015518 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 +000015519 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015520
cristy73bd4a52010-10-05 11:24:23 +000015521 fi
15522
15523 # We used to test for /lib/ld.so.1 and disable shared libraries on
15524 # powerpc, because MkLinux only supported shared libraries with the
15525 # GNU dynamic linker. Since this was broken with cross compilers,
15526 # most powerpc-linux boxes support dynamic linking these days and
15527 # people can always --disable-shared, the test was removed, and we
15528 # assume the GNU/Linux dynamic linker is in use.
15529 dynamic_linker='GNU/Linux ld.so'
15530 ;;
15531
15532netbsd*)
15533 version_type=sunos
15534 need_lib_prefix=no
15535 need_version=no
15536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15539 dynamic_linker='NetBSD (a.out) ld.so'
15540 else
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 dynamic_linker='NetBSD ld.elf_so'
15544 fi
15545 shlibpath_var=LD_LIBRARY_PATH
15546 shlibpath_overrides_runpath=yes
15547 hardcode_into_libs=yes
15548 ;;
15549
15550newsos6)
15551 version_type=linux
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=yes
15555 ;;
15556
15557*nto* | *qnx*)
15558 version_type=qnx
15559 need_lib_prefix=no
15560 need_version=no
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=no
15565 hardcode_into_libs=yes
15566 dynamic_linker='ldqnx.so'
15567 ;;
15568
15569openbsd*)
15570 version_type=sunos
15571 sys_lib_dlsearch_path_spec="/usr/lib"
15572 need_lib_prefix=no
15573 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15574 case $host_os in
15575 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15576 *) need_version=no ;;
15577 esac
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15582 case $host_os in
15583 openbsd2.[89] | openbsd2.[89].*)
15584 shlibpath_overrides_runpath=no
15585 ;;
15586 *)
15587 shlibpath_overrides_runpath=yes
15588 ;;
15589 esac
15590 else
15591 shlibpath_overrides_runpath=yes
15592 fi
15593 ;;
15594
15595os2*)
15596 libname_spec='$name'
15597 shrext_cmds=".dll"
15598 need_lib_prefix=no
15599 library_names_spec='$libname${shared_ext} $libname.a'
15600 dynamic_linker='OS/2 ld.exe'
15601 shlibpath_var=LIBPATH
15602 ;;
15603
15604osf3* | osf4* | osf5*)
15605 version_type=osf
15606 need_lib_prefix=no
15607 need_version=no
15608 soname_spec='${libname}${release}${shared_ext}$major'
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15612 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15613 ;;
15614
15615rdos*)
15616 dynamic_linker=no
15617 ;;
15618
15619solaris*)
15620 version_type=linux
15621 need_lib_prefix=no
15622 need_version=no
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes
15627 hardcode_into_libs=yes
15628 # ldd complains unless libraries are executable
15629 postinstall_cmds='chmod +x $lib'
15630 ;;
15631
15632sunos4*)
15633 version_type=sunos
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 shlibpath_overrides_runpath=yes
15638 if test "$with_gnu_ld" = yes; then
15639 need_lib_prefix=no
15640 fi
15641 need_version=yes
15642 ;;
15643
15644sysv4 | sysv4.3*)
15645 version_type=linux
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 case $host_vendor in
15650 sni)
15651 shlibpath_overrides_runpath=no
15652 need_lib_prefix=no
15653 runpath_var=LD_RUN_PATH
15654 ;;
15655 siemens)
15656 need_lib_prefix=no
15657 ;;
15658 motorola)
15659 need_lib_prefix=no
15660 need_version=no
15661 shlibpath_overrides_runpath=no
15662 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15663 ;;
15664 esac
15665 ;;
15666
15667sysv4*MP*)
15668 if test -d /usr/nec ;then
15669 version_type=linux
15670 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15671 soname_spec='$libname${shared_ext}.$major'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 fi
15674 ;;
15675
15676sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15677 version_type=freebsd-elf
15678 need_lib_prefix=no
15679 need_version=no
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 shlibpath_overrides_runpath=yes
15684 hardcode_into_libs=yes
15685 if test "$with_gnu_ld" = yes; then
15686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15687 else
15688 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15689 case $host_os in
15690 sco3.2v5*)
15691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15692 ;;
15693 esac
15694 fi
15695 sys_lib_dlsearch_path_spec='/usr/lib'
15696 ;;
15697
15698tpf*)
15699 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15700 version_type=linux
15701 need_lib_prefix=no
15702 need_version=no
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=no
15706 hardcode_into_libs=yes
15707 ;;
15708
15709uts4*)
15710 version_type=linux
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 ;;
15715
15716*)
15717 dynamic_linker=no
15718 ;;
15719esac
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15721$as_echo "$dynamic_linker" >&6; }
15722test "$dynamic_linker" = no && can_build_shared=no
15723
15724variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15725if test "$GCC" = yes; then
15726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15727fi
15728
15729if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15730 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15731fi
15732if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15733 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15734fi
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
cristy0c60a692010-11-04 01:09:47 +000015822
15823
15824
15825
15826
cristy73bd4a52010-10-05 11:24:23 +000015827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15828$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15829hardcode_action=
15830if test -n "$hardcode_libdir_flag_spec" ||
15831 test -n "$runpath_var" ||
15832 test "X$hardcode_automatic" = "Xyes" ; then
15833
15834 # We can hardcode non-existent directories.
15835 if test "$hardcode_direct" != no &&
15836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15837 # have to relink, otherwise we might link with an installed library
15838 # when we should be linking with a yet-to-be-installed one
15839 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15840 test "$hardcode_minus_L" != no; then
15841 # Linking always hardcodes the temporary library directory.
15842 hardcode_action=relink
15843 else
15844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15845 hardcode_action=immediate
15846 fi
15847else
15848 # We cannot hardcode anything, or else we can only hardcode existing
15849 # directories.
15850 hardcode_action=unsupported
15851fi
15852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15853$as_echo "$hardcode_action" >&6; }
15854
15855if test "$hardcode_action" = relink ||
15856 test "$inherit_rpath" = yes; then
15857 # Fast installation is not supported
15858 enable_fast_install=no
15859elif test "$shlibpath_overrides_runpath" = yes ||
15860 test "$enable_shared" = no; then
15861 # Fast installation is not necessary
15862 enable_fast_install=needless
15863fi
15864
15865
15866
15867
15868
15869
15870 if test "x$enable_dlopen" != xyes; then
15871 enable_dlopen=unknown
15872 enable_dlopen_self=unknown
15873 enable_dlopen_self_static=unknown
15874else
15875 lt_cv_dlopen=no
15876 lt_cv_dlopen_libs=
15877
15878 case $host_os in
15879 beos*)
15880 lt_cv_dlopen="load_add_on"
15881 lt_cv_dlopen_libs=
15882 lt_cv_dlopen_self=yes
15883 ;;
15884
15885 mingw* | pw32* | cegcc*)
15886 lt_cv_dlopen="LoadLibrary"
15887 lt_cv_dlopen_libs=
15888 ;;
15889
15890 cygwin*)
15891 lt_cv_dlopen="dlopen"
15892 lt_cv_dlopen_libs=
15893 ;;
15894
15895 darwin*)
15896 # if libdl is installed we need to link against it
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15898$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015899if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015900 $as_echo_n "(cached) " >&6
15901else
15902 ac_check_lib_save_LIBS=$LIBS
15903LIBS="-ldl $LIBS"
15904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905/* end confdefs.h. */
15906
15907/* Override any GCC internal prototype to avoid an error.
15908 Use char because int might match the return type of a GCC
15909 builtin and then its argument prototype would still apply. */
15910#ifdef __cplusplus
15911extern "C"
15912#endif
15913char dlopen ();
15914int
15915main ()
15916{
15917return dlopen ();
15918 ;
15919 return 0;
15920}
15921_ACEOF
15922if ac_fn_c_try_link "$LINENO"; then :
15923 ac_cv_lib_dl_dlopen=yes
15924else
15925 ac_cv_lib_dl_dlopen=no
15926fi
15927rm -f core conftest.err conftest.$ac_objext \
15928 conftest$ac_exeext conftest.$ac_ext
15929LIBS=$ac_check_lib_save_LIBS
15930fi
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15932$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015933if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15935else
15936
15937 lt_cv_dlopen="dyld"
15938 lt_cv_dlopen_libs=
15939 lt_cv_dlopen_self=yes
15940
15941fi
15942
15943 ;;
15944
15945 *)
15946 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015947if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015948 lt_cv_dlopen="shl_load"
15949else
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15951$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015952if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015953 $as_echo_n "(cached) " >&6
15954else
15955 ac_check_lib_save_LIBS=$LIBS
15956LIBS="-ldld $LIBS"
15957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958/* end confdefs.h. */
15959
15960/* Override any GCC internal prototype to avoid an error.
15961 Use char because int might match the return type of a GCC
15962 builtin and then its argument prototype would still apply. */
15963#ifdef __cplusplus
15964extern "C"
15965#endif
15966char shl_load ();
15967int
15968main ()
15969{
15970return shl_load ();
15971 ;
15972 return 0;
15973}
15974_ACEOF
15975if ac_fn_c_try_link "$LINENO"; then :
15976 ac_cv_lib_dld_shl_load=yes
15977else
15978 ac_cv_lib_dld_shl_load=no
15979fi
15980rm -f core conftest.err conftest.$ac_objext \
15981 conftest$ac_exeext conftest.$ac_ext
15982LIBS=$ac_check_lib_save_LIBS
15983fi
15984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15985$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015986if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15988else
15989 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015990if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015991 lt_cv_dlopen="dlopen"
15992else
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15994$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015995if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015996 $as_echo_n "(cached) " >&6
15997else
15998 ac_check_lib_save_LIBS=$LIBS
15999LIBS="-ldl $LIBS"
16000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001/* end confdefs.h. */
16002
16003/* Override any GCC internal prototype to avoid an error.
16004 Use char because int might match the return type of a GCC
16005 builtin and then its argument prototype would still apply. */
16006#ifdef __cplusplus
16007extern "C"
16008#endif
16009char dlopen ();
16010int
16011main ()
16012{
16013return dlopen ();
16014 ;
16015 return 0;
16016}
16017_ACEOF
16018if ac_fn_c_try_link "$LINENO"; then :
16019 ac_cv_lib_dl_dlopen=yes
16020else
16021 ac_cv_lib_dl_dlopen=no
16022fi
16023rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025LIBS=$ac_check_lib_save_LIBS
16026fi
16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16028$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016029if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16031else
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16033$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016034if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016035 $as_echo_n "(cached) " >&6
16036else
16037 ac_check_lib_save_LIBS=$LIBS
16038LIBS="-lsvld $LIBS"
16039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h. */
16041
16042/* Override any GCC internal prototype to avoid an error.
16043 Use char because int might match the return type of a GCC
16044 builtin and then its argument prototype would still apply. */
16045#ifdef __cplusplus
16046extern "C"
16047#endif
16048char dlopen ();
16049int
16050main ()
16051{
16052return dlopen ();
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057if ac_fn_c_try_link "$LINENO"; then :
16058 ac_cv_lib_svld_dlopen=yes
16059else
16060 ac_cv_lib_svld_dlopen=no
16061fi
16062rm -f core conftest.err conftest.$ac_objext \
16063 conftest$ac_exeext conftest.$ac_ext
16064LIBS=$ac_check_lib_save_LIBS
16065fi
16066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16067$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016068if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16070else
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16072$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016073if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016074 $as_echo_n "(cached) " >&6
16075else
16076 ac_check_lib_save_LIBS=$LIBS
16077LIBS="-ldld $LIBS"
16078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079/* end confdefs.h. */
16080
16081/* Override any GCC internal prototype to avoid an error.
16082 Use char because int might match the return type of a GCC
16083 builtin and then its argument prototype would still apply. */
16084#ifdef __cplusplus
16085extern "C"
16086#endif
16087char dld_link ();
16088int
16089main ()
16090{
16091return dld_link ();
16092 ;
16093 return 0;
16094}
16095_ACEOF
16096if ac_fn_c_try_link "$LINENO"; then :
16097 ac_cv_lib_dld_dld_link=yes
16098else
16099 ac_cv_lib_dld_dld_link=no
16100fi
16101rm -f core conftest.err conftest.$ac_objext \
16102 conftest$ac_exeext conftest.$ac_ext
16103LIBS=$ac_check_lib_save_LIBS
16104fi
16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16106$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016107if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016108 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16109fi
16110
16111
16112fi
16113
16114
16115fi
16116
16117
16118fi
16119
16120
16121fi
16122
16123
16124fi
16125
16126 ;;
16127 esac
16128
16129 if test "x$lt_cv_dlopen" != xno; then
16130 enable_dlopen=yes
16131 else
16132 enable_dlopen=no
16133 fi
16134
16135 case $lt_cv_dlopen in
16136 dlopen)
16137 save_CPPFLAGS="$CPPFLAGS"
16138 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16139
16140 save_LDFLAGS="$LDFLAGS"
16141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16142
16143 save_LIBS="$LIBS"
16144 LIBS="$lt_cv_dlopen_libs $LIBS"
16145
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16147$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016148if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016149 $as_echo_n "(cached) " >&6
16150else
16151 if test "$cross_compiling" = yes; then :
16152 lt_cv_dlopen_self=cross
16153else
16154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16155 lt_status=$lt_dlunknown
16156 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016157#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016158#include "confdefs.h"
16159
16160#if HAVE_DLFCN_H
16161#include <dlfcn.h>
16162#endif
16163
16164#include <stdio.h>
16165
16166#ifdef RTLD_GLOBAL
16167# define LT_DLGLOBAL RTLD_GLOBAL
16168#else
16169# ifdef DL_GLOBAL
16170# define LT_DLGLOBAL DL_GLOBAL
16171# else
16172# define LT_DLGLOBAL 0
16173# endif
16174#endif
16175
16176/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16177 find out it does not work in some platform. */
16178#ifndef LT_DLLAZY_OR_NOW
16179# ifdef RTLD_LAZY
16180# define LT_DLLAZY_OR_NOW RTLD_LAZY
16181# else
16182# ifdef DL_LAZY
16183# define LT_DLLAZY_OR_NOW DL_LAZY
16184# else
16185# ifdef RTLD_NOW
16186# define LT_DLLAZY_OR_NOW RTLD_NOW
16187# else
16188# ifdef DL_NOW
16189# define LT_DLLAZY_OR_NOW DL_NOW
16190# else
16191# define LT_DLLAZY_OR_NOW 0
16192# endif
16193# endif
16194# endif
16195# endif
16196#endif
16197
cristy0c60a692010-11-04 01:09:47 +000016198/* When -fvisbility=hidden is used, assume the code has been annotated
16199 correspondingly for the symbols needed. */
16200#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016201int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016202#endif
16203
cristyda16f162011-02-19 23:52:17 +000016204int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016205int main ()
16206{
16207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16208 int status = $lt_dlunknown;
16209
16210 if (self)
16211 {
16212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016213 else
16214 {
16215 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16216 else puts (dlerror ());
16217 }
cristy73bd4a52010-10-05 11:24:23 +000016218 /* dlclose (self); */
16219 }
16220 else
16221 puts (dlerror ());
16222
16223 return status;
16224}
16225_LT_EOF
16226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16227 (eval $ac_link) 2>&5
16228 ac_status=$?
16229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16230 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16231 (./conftest; exit; ) >&5 2>/dev/null
16232 lt_status=$?
16233 case x$lt_status in
16234 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16235 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16236 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16237 esac
16238 else :
16239 # compilation failed
16240 lt_cv_dlopen_self=no
16241 fi
16242fi
16243rm -fr conftest*
16244
16245
16246fi
16247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16248$as_echo "$lt_cv_dlopen_self" >&6; }
16249
16250 if test "x$lt_cv_dlopen_self" = xyes; then
16251 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16253$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016254if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016255 $as_echo_n "(cached) " >&6
16256else
16257 if test "$cross_compiling" = yes; then :
16258 lt_cv_dlopen_self_static=cross
16259else
16260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16261 lt_status=$lt_dlunknown
16262 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016263#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016264#include "confdefs.h"
16265
16266#if HAVE_DLFCN_H
16267#include <dlfcn.h>
16268#endif
16269
16270#include <stdio.h>
16271
16272#ifdef RTLD_GLOBAL
16273# define LT_DLGLOBAL RTLD_GLOBAL
16274#else
16275# ifdef DL_GLOBAL
16276# define LT_DLGLOBAL DL_GLOBAL
16277# else
16278# define LT_DLGLOBAL 0
16279# endif
16280#endif
16281
16282/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16283 find out it does not work in some platform. */
16284#ifndef LT_DLLAZY_OR_NOW
16285# ifdef RTLD_LAZY
16286# define LT_DLLAZY_OR_NOW RTLD_LAZY
16287# else
16288# ifdef DL_LAZY
16289# define LT_DLLAZY_OR_NOW DL_LAZY
16290# else
16291# ifdef RTLD_NOW
16292# define LT_DLLAZY_OR_NOW RTLD_NOW
16293# else
16294# ifdef DL_NOW
16295# define LT_DLLAZY_OR_NOW DL_NOW
16296# else
16297# define LT_DLLAZY_OR_NOW 0
16298# endif
16299# endif
16300# endif
16301# endif
16302#endif
16303
cristy0c60a692010-11-04 01:09:47 +000016304/* When -fvisbility=hidden is used, assume the code has been annotated
16305 correspondingly for the symbols needed. */
16306#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016307int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016308#endif
16309
cristyda16f162011-02-19 23:52:17 +000016310int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016311int main ()
16312{
16313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16314 int status = $lt_dlunknown;
16315
16316 if (self)
16317 {
16318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016319 else
16320 {
16321 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16322 else puts (dlerror ());
16323 }
cristy73bd4a52010-10-05 11:24:23 +000016324 /* dlclose (self); */
16325 }
16326 else
16327 puts (dlerror ());
16328
16329 return status;
16330}
16331_LT_EOF
16332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16333 (eval $ac_link) 2>&5
16334 ac_status=$?
16335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16336 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16337 (./conftest; exit; ) >&5 2>/dev/null
16338 lt_status=$?
16339 case x$lt_status in
16340 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16341 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16342 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16343 esac
16344 else :
16345 # compilation failed
16346 lt_cv_dlopen_self_static=no
16347 fi
16348fi
16349rm -fr conftest*
16350
16351
16352fi
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16354$as_echo "$lt_cv_dlopen_self_static" >&6; }
16355 fi
16356
16357 CPPFLAGS="$save_CPPFLAGS"
16358 LDFLAGS="$save_LDFLAGS"
16359 LIBS="$save_LIBS"
16360 ;;
16361 esac
16362
16363 case $lt_cv_dlopen_self in
16364 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16365 *) enable_dlopen_self=unknown ;;
16366 esac
16367
16368 case $lt_cv_dlopen_self_static in
16369 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16370 *) enable_dlopen_self_static=unknown ;;
16371 esac
16372fi
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390striplib=
16391old_striplib=
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16393$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16394if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16395 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16396 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16398$as_echo "yes" >&6; }
16399else
16400# FIXME - insert some real tests, host_os isn't really good enough
16401 case $host_os in
16402 darwin*)
16403 if test -n "$STRIP" ; then
16404 striplib="$STRIP -x"
16405 old_striplib="$STRIP -S"
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16407$as_echo "yes" >&6; }
16408 else
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410$as_echo "no" >&6; }
16411 fi
16412 ;;
16413 *)
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16415$as_echo "no" >&6; }
16416 ;;
16417 esac
16418fi
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431 # Report which library types will actually be built
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16433$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16435$as_echo "$can_build_shared" >&6; }
16436
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16438$as_echo_n "checking whether to build shared libraries... " >&6; }
16439 test "$can_build_shared" = "no" && enable_shared=no
16440
16441 # On AIX, shared libraries and static libraries use the same namespace, and
16442 # are all built from PIC.
16443 case $host_os in
16444 aix3*)
16445 test "$enable_shared" = yes && enable_static=no
16446 if test -n "$RANLIB"; then
16447 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16448 postinstall_cmds='$RANLIB $lib'
16449 fi
16450 ;;
16451
16452 aix[4-9]*)
16453 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16454 test "$enable_shared" = yes && enable_static=no
16455 fi
16456 ;;
16457 esac
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16459$as_echo "$enable_shared" >&6; }
16460
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16462$as_echo_n "checking whether to build static libraries... " >&6; }
16463 # Make sure either enable_shared or enable_static is yes.
16464 test "$enable_shared" = yes || enable_static=yes
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16466$as_echo "$enable_static" >&6; }
16467
16468
16469
16470
16471fi
16472ac_ext=c
16473ac_cpp='$CPP $CPPFLAGS'
16474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16476ac_compiler_gnu=$ac_cv_c_compiler_gnu
16477
16478CC="$lt_save_CC"
16479
cristy0c60a692010-11-04 01:09:47 +000016480 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16481 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16482 (test "X$CXX" != "Xg++"))) ; then
16483 ac_ext=cpp
16484ac_cpp='$CXXCPP $CPPFLAGS'
16485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16489$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16490if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016491 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016492 $as_echo_n "(cached) " >&6
16493else
16494 # Double quotes because CXXCPP needs to be expanded
16495 for CXXCPP in "$CXX -E" "/lib/cpp"
16496 do
16497 ac_preproc_ok=false
16498for ac_cxx_preproc_warn_flag in '' yes
16499do
16500 # Use a header file that comes with gcc, so configuring glibc
16501 # with a fresh cross-compiler works.
16502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16503 # <limits.h> exists even on freestanding compilers.
16504 # On the NeXT, cc -E runs the code through the compiler's parser,
16505 # not just through cpp. "Syntax error" is here to catch this case.
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507/* end confdefs.h. */
16508#ifdef __STDC__
16509# include <limits.h>
16510#else
16511# include <assert.h>
16512#endif
16513 Syntax error
16514_ACEOF
16515if ac_fn_cxx_try_cpp "$LINENO"; then :
16516
16517else
16518 # Broken: fails on valid input.
16519continue
16520fi
cristyda16f162011-02-19 23:52:17 +000016521rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016522
16523 # OK, works on sane cases. Now check whether nonexistent headers
16524 # can be detected and how.
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526/* end confdefs.h. */
16527#include <ac_nonexistent.h>
16528_ACEOF
16529if ac_fn_cxx_try_cpp "$LINENO"; then :
16530 # Broken: success on invalid input.
16531continue
16532else
16533 # Passes both tests.
16534ac_preproc_ok=:
16535break
16536fi
cristyda16f162011-02-19 23:52:17 +000016537rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016538
16539done
16540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016541rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016542if $ac_preproc_ok; then :
16543 break
16544fi
16545
16546 done
16547 ac_cv_prog_CXXCPP=$CXXCPP
16548
16549fi
16550 CXXCPP=$ac_cv_prog_CXXCPP
16551else
16552 ac_cv_prog_CXXCPP=$CXXCPP
16553fi
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16555$as_echo "$CXXCPP" >&6; }
16556ac_preproc_ok=false
16557for ac_cxx_preproc_warn_flag in '' yes
16558do
16559 # Use a header file that comes with gcc, so configuring glibc
16560 # with a fresh cross-compiler works.
16561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16562 # <limits.h> exists even on freestanding compilers.
16563 # On the NeXT, cc -E runs the code through the compiler's parser,
16564 # not just through cpp. "Syntax error" is here to catch this case.
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566/* end confdefs.h. */
16567#ifdef __STDC__
16568# include <limits.h>
16569#else
16570# include <assert.h>
16571#endif
16572 Syntax error
16573_ACEOF
16574if ac_fn_cxx_try_cpp "$LINENO"; then :
16575
16576else
16577 # Broken: fails on valid input.
16578continue
16579fi
cristyda16f162011-02-19 23:52:17 +000016580rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016581
16582 # OK, works on sane cases. Now check whether nonexistent headers
16583 # can be detected and how.
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585/* end confdefs.h. */
16586#include <ac_nonexistent.h>
16587_ACEOF
16588if ac_fn_cxx_try_cpp "$LINENO"; then :
16589 # Broken: success on invalid input.
16590continue
16591else
16592 # Passes both tests.
16593ac_preproc_ok=:
16594break
16595fi
cristyda16f162011-02-19 23:52:17 +000016596rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016597
16598done
16599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016600rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016601if $ac_preproc_ok; then :
16602
16603else
16604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16606as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16607See \`config.log' for more details" "$LINENO" 5; }
16608fi
16609
16610ac_ext=c
16611ac_cpp='$CPP $CPPFLAGS'
16612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16614ac_compiler_gnu=$ac_cv_c_compiler_gnu
16615
16616else
16617 _lt_caught_CXX_error=yes
16618fi
cristy73bd4a52010-10-05 11:24:23 +000016619
16620ac_ext=cpp
16621ac_cpp='$CXXCPP $CPPFLAGS'
16622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16625
16626archive_cmds_need_lc_CXX=no
16627allow_undefined_flag_CXX=
16628always_export_symbols_CXX=no
16629archive_expsym_cmds_CXX=
16630compiler_needs_object_CXX=no
16631export_dynamic_flag_spec_CXX=
16632hardcode_direct_CXX=no
16633hardcode_direct_absolute_CXX=no
16634hardcode_libdir_flag_spec_CXX=
16635hardcode_libdir_flag_spec_ld_CXX=
16636hardcode_libdir_separator_CXX=
16637hardcode_minus_L_CXX=no
16638hardcode_shlibpath_var_CXX=unsupported
16639hardcode_automatic_CXX=no
16640inherit_rpath_CXX=no
16641module_cmds_CXX=
16642module_expsym_cmds_CXX=
16643link_all_deplibs_CXX=unknown
16644old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016645reload_flag_CXX=$reload_flag
16646reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016647no_undefined_flag_CXX=
16648whole_archive_flag_spec_CXX=
16649enable_shared_with_static_runtimes_CXX=no
16650
16651# Source file extension for C++ test sources.
16652ac_ext=cpp
16653
16654# Object file extension for compiled C++ test sources.
16655objext=o
16656objext_CXX=$objext
16657
16658# No sense in running all these tests if we already determined that
16659# the CXX compiler isn't working. Some variables (like enable_shared)
16660# are currently assumed to apply to all compilers on this platform,
16661# and will be corrupted by setting them based on a non-working compiler.
16662if test "$_lt_caught_CXX_error" != yes; then
16663 # Code to be used in simple compile tests
16664 lt_simple_compile_test_code="int some_variable = 0;"
16665
16666 # Code to be used in simple link tests
16667 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16668
16669 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16670
16671
16672
16673
16674
16675
16676# If no C compiler was specified, use CC.
16677LTCC=${LTCC-"$CC"}
16678
16679# If no C compiler flags were specified, use CFLAGS.
16680LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16681
16682# Allow CC to be a program name with arguments.
16683compiler=$CC
16684
16685
16686 # save warnings/boilerplate of simple test code
16687 ac_outfile=conftest.$ac_objext
16688echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16689eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16690_lt_compiler_boilerplate=`cat conftest.err`
16691$RM conftest*
16692
16693 ac_outfile=conftest.$ac_objext
16694echo "$lt_simple_link_test_code" >conftest.$ac_ext
16695eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16696_lt_linker_boilerplate=`cat conftest.err`
16697$RM -r conftest*
16698
16699
16700 # Allow CC to be a program name with arguments.
16701 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016702 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016703 lt_save_LD=$LD
16704 lt_save_GCC=$GCC
16705 GCC=$GXX
16706 lt_save_with_gnu_ld=$with_gnu_ld
16707 lt_save_path_LD=$lt_cv_path_LD
16708 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16709 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16710 else
16711 $as_unset lt_cv_prog_gnu_ld
16712 fi
16713 if test -n "${lt_cv_path_LDCXX+set}"; then
16714 lt_cv_path_LD=$lt_cv_path_LDCXX
16715 else
16716 $as_unset lt_cv_path_LD
16717 fi
16718 test -z "${LDCXX+set}" || LD=$LDCXX
16719 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016720 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016721 compiler=$CC
16722 compiler_CXX=$CC
16723 for cc_temp in $compiler""; do
16724 case $cc_temp in
16725 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16726 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16727 \-*) ;;
16728 *) break;;
16729 esac
16730done
cristy0c60a692010-11-04 01:09:47 +000016731cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016732
16733
16734 if test -n "$compiler"; then
16735 # We don't want -fno-exception when compiling C++ code, so set the
16736 # no_builtin_flag separately
16737 if test "$GXX" = yes; then
16738 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16739 else
16740 lt_prog_compiler_no_builtin_flag_CXX=
16741 fi
16742
16743 if test "$GXX" = yes; then
16744 # Set up default GNU C++ configuration
16745
16746
16747
16748# Check whether --with-gnu-ld was given.
16749if test "${with_gnu_ld+set}" = set; then :
16750 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16751else
16752 with_gnu_ld=no
16753fi
16754
16755ac_prog=ld
16756if test "$GCC" = yes; then
16757 # Check if gcc -print-prog-name=ld gives a path.
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16759$as_echo_n "checking for ld used by $CC... " >&6; }
16760 case $host in
16761 *-*-mingw*)
16762 # gcc leaves a trailing carriage return which upsets mingw
16763 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16764 *)
16765 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16766 esac
16767 case $ac_prog in
16768 # Accept absolute paths.
16769 [\\/]* | ?:[\\/]*)
16770 re_direlt='/[^/][^/]*/\.\./'
16771 # Canonicalize the pathname of ld
16772 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16773 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16774 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16775 done
16776 test -z "$LD" && LD="$ac_prog"
16777 ;;
16778 "")
16779 # If it fails, then pretend we aren't using GCC.
16780 ac_prog=ld
16781 ;;
16782 *)
16783 # If it is relative, then search for the first ld in PATH.
16784 with_gnu_ld=unknown
16785 ;;
16786 esac
16787elif test "$with_gnu_ld" = yes; then
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16789$as_echo_n "checking for GNU ld... " >&6; }
16790else
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16792$as_echo_n "checking for non-GNU ld... " >&6; }
16793fi
cristyda16f162011-02-19 23:52:17 +000016794if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016795 $as_echo_n "(cached) " >&6
16796else
16797 if test -z "$LD"; then
16798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16799 for ac_dir in $PATH; do
16800 IFS="$lt_save_ifs"
16801 test -z "$ac_dir" && ac_dir=.
16802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16803 lt_cv_path_LD="$ac_dir/$ac_prog"
16804 # Check to see if the program is GNU ld. I'd rather use --version,
16805 # but apparently some variants of GNU ld only accept -v.
16806 # Break only if it was the GNU/non-GNU ld that we prefer.
16807 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16808 *GNU* | *'with BFD'*)
16809 test "$with_gnu_ld" != no && break
16810 ;;
16811 *)
16812 test "$with_gnu_ld" != yes && break
16813 ;;
16814 esac
16815 fi
16816 done
16817 IFS="$lt_save_ifs"
16818else
16819 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16820fi
16821fi
16822
16823LD="$lt_cv_path_LD"
16824if test -n "$LD"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16826$as_echo "$LD" >&6; }
16827else
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829$as_echo "no" >&6; }
16830fi
cristy98dddb52010-11-04 00:30:15 +000016831test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16833$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016834if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016835 $as_echo_n "(cached) " >&6
16836else
16837 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16838case `$LD -v 2>&1 </dev/null` in
16839*GNU* | *'with BFD'*)
16840 lt_cv_prog_gnu_ld=yes
16841 ;;
16842*)
16843 lt_cv_prog_gnu_ld=no
16844 ;;
16845esac
16846fi
16847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16848$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16849with_gnu_ld=$lt_cv_prog_gnu_ld
16850
16851
16852
16853
16854
16855
16856
16857 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16858 # archiving commands below assume that GNU ld is being used.
16859 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016860 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16861 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 +000016862
16863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16865
16866 # If archive_cmds runs LD, not CC, wlarc should be empty
16867 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16868 # investigate it a little bit more. (MM)
16869 wlarc='${wl}'
16870
16871 # ancient GNU ld didn't support --whole-archive et. al.
16872 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16873 $GREP 'no-whole-archive' > /dev/null; then
16874 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16875 else
16876 whole_archive_flag_spec_CXX=
16877 fi
16878 else
16879 with_gnu_ld=no
16880 wlarc=
16881
16882 # A generic and very simple default shared library creation
16883 # command for GNU C++ for the case where it uses the native
16884 # linker, instead of GNU ld. If possible, this setting should
16885 # overridden to take advantage of the native linker features on
16886 # the platform it is being used on.
16887 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16888 fi
16889
16890 # Commands to make compiler produce verbose output that lists
16891 # what "hidden" libraries, object files and flags are used when
16892 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016894
16895 else
16896 GXX=no
16897 with_gnu_ld=no
16898 wlarc=
16899 fi
16900
16901 # PORTME: fill in a description of your system's C++ link characteristics
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16903$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16904 ld_shlibs_CXX=yes
16905 case $host_os in
16906 aix3*)
16907 # FIXME: insert proper C++ library support
16908 ld_shlibs_CXX=no
16909 ;;
16910 aix[4-9]*)
16911 if test "$host_cpu" = ia64; then
16912 # On IA64, the linker does run time linking by default, so we don't
16913 # have to do anything special.
16914 aix_use_runtimelinking=no
16915 exp_sym_flag='-Bexport'
16916 no_entry_flag=""
16917 else
16918 aix_use_runtimelinking=no
16919
16920 # Test if we are trying to use run time linking or normal
16921 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16922 # need to do runtime linking.
16923 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16924 for ld_flag in $LDFLAGS; do
16925 case $ld_flag in
16926 *-brtl*)
16927 aix_use_runtimelinking=yes
16928 break
16929 ;;
16930 esac
16931 done
16932 ;;
16933 esac
16934
16935 exp_sym_flag='-bexport'
16936 no_entry_flag='-bnoentry'
16937 fi
16938
16939 # When large executables or shared objects are built, AIX ld can
16940 # have problems creating the table of contents. If linking a library
16941 # or program results in "error TOC overflow" add -mminimal-toc to
16942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16944
16945 archive_cmds_CXX=''
16946 hardcode_direct_CXX=yes
16947 hardcode_direct_absolute_CXX=yes
16948 hardcode_libdir_separator_CXX=':'
16949 link_all_deplibs_CXX=yes
16950 file_list_spec_CXX='${wl}-f,'
16951
16952 if test "$GXX" = yes; then
16953 case $host_os in aix4.[012]|aix4.[012].*)
16954 # We only want to do this on AIX 4.2 and lower, the check
16955 # below for broken collect2 doesn't work under 4.3+
16956 collect2name=`${CC} -print-prog-name=collect2`
16957 if test -f "$collect2name" &&
16958 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16959 then
16960 # We have reworked collect2
16961 :
16962 else
16963 # We have old collect2
16964 hardcode_direct_CXX=unsupported
16965 # It fails to find uninstalled libraries when the uninstalled
16966 # path is not listed in the libpath. Setting hardcode_minus_L
16967 # to unsupported forces relinking
16968 hardcode_minus_L_CXX=yes
16969 hardcode_libdir_flag_spec_CXX='-L$libdir'
16970 hardcode_libdir_separator_CXX=
16971 fi
16972 esac
16973 shared_flag='-shared'
16974 if test "$aix_use_runtimelinking" = yes; then
16975 shared_flag="$shared_flag "'${wl}-G'
16976 fi
16977 else
16978 # not using gcc
16979 if test "$host_cpu" = ia64; then
16980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16981 # chokes on -Wl,-G. The following line is correct:
16982 shared_flag='-G'
16983 else
16984 if test "$aix_use_runtimelinking" = yes; then
16985 shared_flag='${wl}-G'
16986 else
16987 shared_flag='${wl}-bM:SRE'
16988 fi
16989 fi
16990 fi
16991
16992 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16993 # It seems that -bexpall does not export symbols beginning with
16994 # underscore (_), so it is better to generate a list of symbols to
16995 # export.
16996 always_export_symbols_CXX=yes
16997 if test "$aix_use_runtimelinking" = yes; then
16998 # Warning - without using the other runtime loading flags (-brtl),
16999 # -berok will link without error, but may produce a broken library.
17000 allow_undefined_flag_CXX='-berok'
17001 # Determine the default libpath from the value encoded in an empty
17002 # executable.
cristyda16f162011-02-19 23:52:17 +000017003 if test "${lt_cv_aix_libpath+set}" = set; then
17004 aix_libpath=$lt_cv_aix_libpath
17005else
17006 if ${lt_cv_aix_libpath__CXX+:} false; then :
17007 $as_echo_n "(cached) " >&6
17008else
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017010/* end confdefs.h. */
17011
17012int
17013main ()
17014{
17015
17016 ;
17017 return 0;
17018}
17019_ACEOF
17020if ac_fn_cxx_try_link "$LINENO"; then :
17021
cristyda16f162011-02-19 23:52:17 +000017022 lt_aix_libpath_sed='
17023 /Import File Strings/,/^$/ {
17024 /^0/ {
17025 s/^0 *\([^ ]*\) *$/\1/
17026 p
17027 }
17028 }'
17029 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17030 # Check for a 64-bit object if we didn't find anything.
17031 if test -z "$lt_cv_aix_libpath__CXX"; then
17032 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17033 fi
cristy73bd4a52010-10-05 11:24:23 +000017034fi
17035rm -f core conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017037 if test -z "$lt_cv_aix_libpath__CXX"; then
17038 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17039 fi
17040
17041fi
17042
17043 aix_libpath=$lt_cv_aix_libpath__CXX
17044fi
cristy73bd4a52010-10-05 11:24:23 +000017045
17046 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17047
cristy0c60a692010-11-04 01:09:47 +000017048 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 +000017049 else
17050 if test "$host_cpu" = ia64; then
17051 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17052 allow_undefined_flag_CXX="-z nodefs"
17053 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"
17054 else
17055 # Determine the default libpath from the value encoded in an
17056 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017057 if test "${lt_cv_aix_libpath+set}" = set; then
17058 aix_libpath=$lt_cv_aix_libpath
17059else
17060 if ${lt_cv_aix_libpath__CXX+:} false; then :
17061 $as_echo_n "(cached) " >&6
17062else
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017064/* end confdefs.h. */
17065
17066int
17067main ()
17068{
17069
17070 ;
17071 return 0;
17072}
17073_ACEOF
17074if ac_fn_cxx_try_link "$LINENO"; then :
17075
cristyda16f162011-02-19 23:52:17 +000017076 lt_aix_libpath_sed='
17077 /Import File Strings/,/^$/ {
17078 /^0/ {
17079 s/^0 *\([^ ]*\) *$/\1/
17080 p
17081 }
17082 }'
17083 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17084 # Check for a 64-bit object if we didn't find anything.
17085 if test -z "$lt_cv_aix_libpath__CXX"; then
17086 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17087 fi
cristy73bd4a52010-10-05 11:24:23 +000017088fi
17089rm -f core conftest.err conftest.$ac_objext \
17090 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017091 if test -z "$lt_cv_aix_libpath__CXX"; then
17092 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17093 fi
17094
17095fi
17096
17097 aix_libpath=$lt_cv_aix_libpath__CXX
17098fi
cristy73bd4a52010-10-05 11:24:23 +000017099
17100 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17101 # Warning - without using the other run time loading flags,
17102 # -berok will link without error, but may produce a broken library.
17103 no_undefined_flag_CXX=' ${wl}-bernotok'
17104 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017105 if test "$with_gnu_ld" = yes; then
17106 # We only use this code for GNU lds that support --whole-archive.
17107 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17108 else
17109 # Exported symbols can be pulled into shared objects from archives
17110 whole_archive_flag_spec_CXX='$convenience'
17111 fi
cristy73bd4a52010-10-05 11:24:23 +000017112 archive_cmds_need_lc_CXX=yes
17113 # This is similar to how AIX traditionally builds its shared
17114 # libraries.
17115 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'
17116 fi
17117 fi
17118 ;;
17119
17120 beos*)
17121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17122 allow_undefined_flag_CXX=unsupported
17123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17124 # support --undefined. This deserves some investigation. FIXME
17125 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17126 else
17127 ld_shlibs_CXX=no
17128 fi
17129 ;;
17130
17131 chorus*)
17132 case $cc_basename in
17133 *)
17134 # FIXME: insert proper C++ library support
17135 ld_shlibs_CXX=no
17136 ;;
17137 esac
17138 ;;
17139
17140 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017141 case $GXX,$cc_basename in
17142 ,cl* | no,cl*)
17143 # Native MSVC
17144 # hardcode_libdir_flag_spec is actually meaningless, as there is
17145 # no search path for DLLs.
17146 hardcode_libdir_flag_spec_CXX=' '
17147 allow_undefined_flag_CXX=unsupported
17148 always_export_symbols_CXX=yes
17149 file_list_spec_CXX='@'
17150 # Tell ltmain to make .lib files, not .a files.
17151 libext=lib
17152 # Tell ltmain to make .dll files, not .so files.
17153 shrext_cmds=".dll"
17154 # FIXME: Setting linknames here is a bad hack.
17155 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17156 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17157 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17158 else
17159 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17160 fi~
17161 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17162 linknames='
17163 # The linker will not automatically build a static lib if we build a DLL.
17164 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17165 enable_shared_with_static_runtimes_CXX=yes
17166 # Don't use ranlib
17167 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17168 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17169 lt_tool_outputfile="@TOOL_OUTPUT@"~
17170 case $lt_outputfile in
17171 *.exe|*.EXE) ;;
17172 *)
17173 lt_outputfile="$lt_outputfile.exe"
17174 lt_tool_outputfile="$lt_tool_outputfile.exe"
17175 ;;
17176 esac~
17177 func_to_tool_file "$lt_outputfile"~
17178 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17179 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17180 $RM "$lt_outputfile.manifest";
17181 fi'
17182 ;;
17183 *)
17184 # g++
17185 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17186 # as there is no search path for DLLs.
17187 hardcode_libdir_flag_spec_CXX='-L$libdir'
17188 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17189 allow_undefined_flag_CXX=unsupported
17190 always_export_symbols_CXX=no
17191 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017192
cristyda16f162011-02-19 23:52:17 +000017193 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17194 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'
17195 # If the export-symbols file already is a .def file (1st line
17196 # is EXPORTS), use it as is; otherwise, prepend...
17197 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17198 cp $export_symbols $output_objdir/$soname.def;
17199 else
17200 echo EXPORTS > $output_objdir/$soname.def;
17201 cat $export_symbols >> $output_objdir/$soname.def;
17202 fi~
17203 $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'
17204 else
17205 ld_shlibs_CXX=no
17206 fi
17207 ;;
17208 esac
17209 ;;
cristy73bd4a52010-10-05 11:24:23 +000017210 darwin* | rhapsody*)
17211
17212
17213 archive_cmds_need_lc_CXX=no
17214 hardcode_direct_CXX=no
17215 hardcode_automatic_CXX=yes
17216 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017217 if test "$lt_cv_ld_force_load" = "yes"; then
17218 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\"`'
17219 else
17220 whole_archive_flag_spec_CXX=''
17221 fi
cristy73bd4a52010-10-05 11:24:23 +000017222 link_all_deplibs_CXX=yes
17223 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17224 case $cc_basename in
17225 ifort*) _lt_dar_can_shared=yes ;;
17226 *) _lt_dar_can_shared=$GCC ;;
17227 esac
17228 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017229 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017230 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}"
17231 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17232 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}"
17233 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}"
17234 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17235 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}"
17236 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}"
17237 fi
17238
17239 else
17240 ld_shlibs_CXX=no
17241 fi
17242
17243 ;;
17244
17245 dgux*)
17246 case $cc_basename in
17247 ec++*)
17248 # FIXME: insert proper C++ library support
17249 ld_shlibs_CXX=no
17250 ;;
17251 ghcx*)
17252 # Green Hills C++ Compiler
17253 # FIXME: insert proper C++ library support
17254 ld_shlibs_CXX=no
17255 ;;
17256 *)
17257 # FIXME: insert proper C++ library support
17258 ld_shlibs_CXX=no
17259 ;;
17260 esac
17261 ;;
17262
17263 freebsd[12]*)
17264 # C++ shared libraries reported to be fairly broken before
17265 # switch to ELF
17266 ld_shlibs_CXX=no
17267 ;;
17268
17269 freebsd-elf*)
17270 archive_cmds_need_lc_CXX=no
17271 ;;
17272
17273 freebsd* | dragonfly*)
17274 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17275 # conventions
17276 ld_shlibs_CXX=yes
17277 ;;
17278
17279 gnu*)
17280 ;;
17281
cristy0c60a692010-11-04 01:09:47 +000017282 haiku*)
17283 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17284 link_all_deplibs_CXX=yes
17285 ;;
17286
cristy73bd4a52010-10-05 11:24:23 +000017287 hpux9*)
17288 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17289 hardcode_libdir_separator_CXX=:
17290 export_dynamic_flag_spec_CXX='${wl}-E'
17291 hardcode_direct_CXX=yes
17292 hardcode_minus_L_CXX=yes # Not in the search PATH,
17293 # but as the default
17294 # location of the library.
17295
17296 case $cc_basename in
17297 CC*)
17298 # FIXME: insert proper C++ library support
17299 ld_shlibs_CXX=no
17300 ;;
17301 aCC*)
17302 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'
17303 # Commands to make compiler produce verbose output that lists
17304 # what "hidden" libraries, object files and flags are used when
17305 # linking a shared library.
17306 #
17307 # There doesn't appear to be a way to prevent this compiler from
17308 # explicitly linking system object files so we need to strip them
17309 # from the output so that they don't get included in the library
17310 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017311 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 +000017312 ;;
17313 *)
17314 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017315 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 +000017316 else
17317 # FIXME: insert proper C++ library support
17318 ld_shlibs_CXX=no
17319 fi
17320 ;;
17321 esac
17322 ;;
17323
17324 hpux10*|hpux11*)
17325 if test $with_gnu_ld = no; then
17326 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17327 hardcode_libdir_separator_CXX=:
17328
17329 case $host_cpu in
17330 hppa*64*|ia64*)
17331 ;;
17332 *)
17333 export_dynamic_flag_spec_CXX='${wl}-E'
17334 ;;
17335 esac
17336 fi
17337 case $host_cpu in
17338 hppa*64*|ia64*)
17339 hardcode_direct_CXX=no
17340 hardcode_shlibpath_var_CXX=no
17341 ;;
17342 *)
17343 hardcode_direct_CXX=yes
17344 hardcode_direct_absolute_CXX=yes
17345 hardcode_minus_L_CXX=yes # Not in the search PATH,
17346 # but as the default
17347 # location of the library.
17348 ;;
17349 esac
17350
17351 case $cc_basename in
17352 CC*)
17353 # FIXME: insert proper C++ library support
17354 ld_shlibs_CXX=no
17355 ;;
17356 aCC*)
17357 case $host_cpu in
17358 hppa*64*)
17359 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17360 ;;
17361 ia64*)
17362 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17363 ;;
17364 *)
17365 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17366 ;;
17367 esac
17368 # Commands to make compiler produce verbose output that lists
17369 # what "hidden" libraries, object files and flags are used when
17370 # linking a shared library.
17371 #
17372 # There doesn't appear to be a way to prevent this compiler from
17373 # explicitly linking system object files so we need to strip them
17374 # from the output so that they don't get included in the library
17375 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017376 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 +000017377 ;;
17378 *)
17379 if test "$GXX" = yes; then
17380 if test $with_gnu_ld = no; then
17381 case $host_cpu in
17382 hppa*64*)
17383 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17384 ;;
17385 ia64*)
cristyda16f162011-02-19 23:52:17 +000017386 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 +000017387 ;;
17388 *)
cristyda16f162011-02-19 23:52:17 +000017389 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 +000017390 ;;
17391 esac
17392 fi
17393 else
17394 # FIXME: insert proper C++ library support
17395 ld_shlibs_CXX=no
17396 fi
17397 ;;
17398 esac
17399 ;;
17400
17401 interix[3-9]*)
17402 hardcode_direct_CXX=no
17403 hardcode_shlibpath_var_CXX=no
17404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17405 export_dynamic_flag_spec_CXX='${wl}-E'
17406 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17407 # Instead, shared libraries are loaded at an image base (0x10000000 by
17408 # default) and relocated if they conflict, which is a slow very memory
17409 # consuming and fragmenting process. To avoid this, we pick a random,
17410 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17411 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17412 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'
17413 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'
17414 ;;
17415 irix5* | irix6*)
17416 case $cc_basename in
17417 CC*)
17418 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017419 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 +000017420
17421 # Archives containing C++ object files must be created using
17422 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17423 # necessary to make sure instantiated templates are included
17424 # in the archive.
17425 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17426 ;;
17427 *)
17428 if test "$GXX" = yes; then
17429 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017430 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 +000017431 else
cristyda16f162011-02-19 23:52:17 +000017432 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 +000017433 fi
17434 fi
17435 link_all_deplibs_CXX=yes
17436 ;;
17437 esac
17438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17439 hardcode_libdir_separator_CXX=:
17440 inherit_rpath_CXX=yes
17441 ;;
17442
cristy0c60a692010-11-04 01:09:47 +000017443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017444 case $cc_basename in
17445 KCC*)
17446 # Kuck and Associates, Inc. (KAI) C++ Compiler
17447
17448 # KCC will only create a shared library if the output file
17449 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17450 # to its proper name (with version) after linking.
17451 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'
17452 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'
17453 # Commands to make compiler produce verbose output that lists
17454 # what "hidden" libraries, object files and flags are used when
17455 # linking a shared library.
17456 #
17457 # There doesn't appear to be a way to prevent this compiler from
17458 # explicitly linking system object files so we need to strip them
17459 # from the output so that they don't get included in the library
17460 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017461 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 +000017462
17463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17465
17466 # Archives containing C++ object files must be created using
17467 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17468 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17469 ;;
17470 icpc* | ecpc* )
17471 # Intel C++
17472 with_gnu_ld=yes
17473 # version 8.0 and above of icpc choke on multiply defined symbols
17474 # if we add $predep_objects and $postdep_objects, however 7.1 and
17475 # earlier do not add the objects themselves.
17476 case `$CC -V 2>&1` in
17477 *"Version 7."*)
17478 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17479 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'
17480 ;;
17481 *) # Version 8.0 or newer
17482 tmp_idyn=
17483 case $host_cpu in
17484 ia64*) tmp_idyn=' -i_dynamic';;
17485 esac
17486 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17487 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'
17488 ;;
17489 esac
17490 archive_cmds_need_lc_CXX=no
17491 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17492 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17493 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17494 ;;
17495 pgCC* | pgcpp*)
17496 # Portland Group C++ compiler
17497 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017498 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017499 prelink_cmds_CXX='tpldir=Template.dir~
17500 rm -rf $tpldir~
17501 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017502 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017503 old_archive_cmds_CXX='tpldir=Template.dir~
17504 rm -rf $tpldir~
17505 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017506 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017507 $RANLIB $oldlib'
17508 archive_cmds_CXX='tpldir=Template.dir~
17509 rm -rf $tpldir~
17510 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017511 $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 +000017512 archive_expsym_cmds_CXX='tpldir=Template.dir~
17513 rm -rf $tpldir~
17514 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017515 $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 +000017516 ;;
cristy0c60a692010-11-04 01:09:47 +000017517 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017518 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17519 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'
17520 ;;
17521 esac
17522
17523 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17524 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017525 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 +000017526 ;;
17527 cxx*)
17528 # Compaq C++
17529 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17530 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'
17531
17532 runpath_var=LD_RUN_PATH
17533 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17534 hardcode_libdir_separator_CXX=:
17535
17536 # Commands to make compiler produce verbose output that lists
17537 # what "hidden" libraries, object files and flags are used when
17538 # linking a shared library.
17539 #
17540 # There doesn't appear to be a way to prevent this compiler from
17541 # explicitly linking system object files so we need to strip them
17542 # from the output so that they don't get included in the library
17543 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017544 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 +000017545 ;;
cristy0c60a692010-11-04 01:09:47 +000017546 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017547 # IBM XL 8.0 on PPC, with GNU ld
17548 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17549 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17550 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17551 if test "x$supports_anon_versioning" = xyes; then
17552 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17554 echo "local: *; };" >> $output_objdir/$libname.ver~
17555 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17556 fi
17557 ;;
17558 *)
17559 case `$CC -V 2>&1 | sed 5q` in
17560 *Sun\ C*)
17561 # Sun C++ 5.9
17562 no_undefined_flag_CXX=' -zdefs'
17563 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17564 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'
17565 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017566 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 +000017567 compiler_needs_object_CXX=yes
17568
17569 # Not sure whether something based on
17570 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17571 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017572 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017573
17574 # Archives containing C++ object files must be created using
17575 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17576 # necessary to make sure instantiated templates are included
17577 # in the archive.
17578 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17579 ;;
17580 esac
17581 ;;
17582 esac
17583 ;;
17584
17585 lynxos*)
17586 # FIXME: insert proper C++ library support
17587 ld_shlibs_CXX=no
17588 ;;
17589
17590 m88k*)
17591 # FIXME: insert proper C++ library support
17592 ld_shlibs_CXX=no
17593 ;;
17594
17595 mvs*)
17596 case $cc_basename in
17597 cxx*)
17598 # FIXME: insert proper C++ library support
17599 ld_shlibs_CXX=no
17600 ;;
17601 *)
17602 # FIXME: insert proper C++ library support
17603 ld_shlibs_CXX=no
17604 ;;
17605 esac
17606 ;;
17607
17608 netbsd*)
17609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17610 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17611 wlarc=
17612 hardcode_libdir_flag_spec_CXX='-R$libdir'
17613 hardcode_direct_CXX=yes
17614 hardcode_shlibpath_var_CXX=no
17615 fi
17616 # Workaround some broken pre-1.5 toolchains
17617 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17618 ;;
17619
17620 *nto* | *qnx*)
17621 ld_shlibs_CXX=yes
17622 ;;
17623
17624 openbsd2*)
17625 # C++ shared libraries are fairly broken
17626 ld_shlibs_CXX=no
17627 ;;
17628
17629 openbsd*)
17630 if test -f /usr/libexec/ld.so; then
17631 hardcode_direct_CXX=yes
17632 hardcode_shlibpath_var_CXX=no
17633 hardcode_direct_absolute_CXX=yes
17634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17637 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17638 export_dynamic_flag_spec_CXX='${wl}-E'
17639 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17640 fi
cristy0c60a692010-11-04 01:09:47 +000017641 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017642 else
17643 ld_shlibs_CXX=no
17644 fi
17645 ;;
17646
17647 osf3* | osf4* | osf5*)
17648 case $cc_basename in
17649 KCC*)
17650 # Kuck and Associates, Inc. (KAI) C++ Compiler
17651
17652 # KCC will only create a shared library if the output file
17653 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17654 # to its proper name (with version) after linking.
17655 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'
17656
17657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17658 hardcode_libdir_separator_CXX=:
17659
17660 # Archives containing C++ object files must be created using
17661 # the KAI C++ compiler.
17662 case $host in
17663 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17664 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17665 esac
17666 ;;
17667 RCC*)
17668 # Rational C++ 2.4.1
17669 # FIXME: insert proper C++ library support
17670 ld_shlibs_CXX=no
17671 ;;
17672 cxx*)
17673 case $host in
17674 osf3*)
17675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017676 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 +000017677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17678 ;;
17679 *)
17680 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017681 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 +000017682 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17683 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017684 $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 +000017685 $RM $lib.exp'
17686 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17687 ;;
17688 esac
17689
17690 hardcode_libdir_separator_CXX=:
17691
17692 # Commands to make compiler produce verbose output that lists
17693 # what "hidden" libraries, object files and flags are used when
17694 # linking a shared library.
17695 #
17696 # There doesn't appear to be a way to prevent this compiler from
17697 # explicitly linking system object files so we need to strip them
17698 # from the output so that they don't get included in the library
17699 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017700 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 +000017701 ;;
17702 *)
17703 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17704 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17705 case $host in
17706 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017707 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 +000017708 ;;
17709 *)
cristyda16f162011-02-19 23:52:17 +000017710 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 +000017711 ;;
17712 esac
17713
17714 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17715 hardcode_libdir_separator_CXX=:
17716
17717 # Commands to make compiler produce verbose output that lists
17718 # what "hidden" libraries, object files and flags are used when
17719 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017720 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017721
17722 else
17723 # FIXME: insert proper C++ library support
17724 ld_shlibs_CXX=no
17725 fi
17726 ;;
17727 esac
17728 ;;
17729
17730 psos*)
17731 # FIXME: insert proper C++ library support
17732 ld_shlibs_CXX=no
17733 ;;
17734
17735 sunos4*)
17736 case $cc_basename in
17737 CC*)
17738 # Sun C++ 4.x
17739 # FIXME: insert proper C++ library support
17740 ld_shlibs_CXX=no
17741 ;;
17742 lcc*)
17743 # Lucid
17744 # FIXME: insert proper C++ library support
17745 ld_shlibs_CXX=no
17746 ;;
17747 *)
17748 # FIXME: insert proper C++ library support
17749 ld_shlibs_CXX=no
17750 ;;
17751 esac
17752 ;;
17753
17754 solaris*)
17755 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017756 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017757 # Sun C++ 4.2, 5.x and Centerline C++
17758 archive_cmds_need_lc_CXX=yes
17759 no_undefined_flag_CXX=' -zdefs'
17760 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17761 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17762 $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'
17763
17764 hardcode_libdir_flag_spec_CXX='-R$libdir'
17765 hardcode_shlibpath_var_CXX=no
17766 case $host_os in
17767 solaris2.[0-5] | solaris2.[0-5].*) ;;
17768 *)
17769 # The compiler driver will combine and reorder linker options,
17770 # but understands `-z linker_flag'.
17771 # Supported since Solaris 2.6 (maybe 2.5.1?)
17772 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17773 ;;
17774 esac
17775 link_all_deplibs_CXX=yes
17776
cristy0c60a692010-11-04 01:09:47 +000017777 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017778
17779 # Archives containing C++ object files must be created using
17780 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17781 # necessary to make sure instantiated templates are included
17782 # in the archive.
17783 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17784 ;;
17785 gcx*)
17786 # Green Hills C++ Compiler
17787 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17788
17789 # The C++ compiler must be used to create the archive.
17790 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17791 ;;
17792 *)
17793 # GNU C++ compiler with Solaris linker
17794 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17795 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17796 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017797 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 +000017798 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 +000017799 $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 +000017800
17801 # Commands to make compiler produce verbose output that lists
17802 # what "hidden" libraries, object files and flags are used when
17803 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017804 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017805 else
17806 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17807 # platform.
17808 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17809 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17810 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17811
17812 # Commands to make compiler produce verbose output that lists
17813 # what "hidden" libraries, object files and flags are used when
17814 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017815 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017816 fi
17817
17818 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17819 case $host_os in
17820 solaris2.[0-5] | solaris2.[0-5].*) ;;
17821 *)
17822 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17823 ;;
17824 esac
17825 fi
17826 ;;
17827 esac
17828 ;;
17829
17830 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17831 no_undefined_flag_CXX='${wl}-z,text'
17832 archive_cmds_need_lc_CXX=no
17833 hardcode_shlibpath_var_CXX=no
17834 runpath_var='LD_RUN_PATH'
17835
17836 case $cc_basename in
17837 CC*)
17838 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17839 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17840 ;;
17841 *)
17842 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844 ;;
17845 esac
17846 ;;
17847
17848 sysv5* | sco3.2v5* | sco5v6*)
17849 # Note: We can NOT use -z defs as we might desire, because we do not
17850 # link with -lc, and that would cause any symbols used from libc to
17851 # always be unresolved, which means just about no library would
17852 # ever link correctly. If we're not using GNU ld we use -z text
17853 # though, which does catch some bad symbols but isn't as heavy-handed
17854 # as -z defs.
17855 no_undefined_flag_CXX='${wl}-z,text'
17856 allow_undefined_flag_CXX='${wl}-z,nodefs'
17857 archive_cmds_need_lc_CXX=no
17858 hardcode_shlibpath_var_CXX=no
17859 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17860 hardcode_libdir_separator_CXX=':'
17861 link_all_deplibs_CXX=yes
17862 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17863 runpath_var='LD_RUN_PATH'
17864
17865 case $cc_basename in
17866 CC*)
17867 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17868 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 +000017869 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17870 '"$old_archive_cmds_CXX"
17871 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17872 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017873 ;;
17874 *)
17875 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17876 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17877 ;;
17878 esac
17879 ;;
17880
17881 tandem*)
17882 case $cc_basename in
17883 NCC*)
17884 # NonStop-UX NCC 3.20
17885 # FIXME: insert proper C++ library support
17886 ld_shlibs_CXX=no
17887 ;;
17888 *)
17889 # FIXME: insert proper C++ library support
17890 ld_shlibs_CXX=no
17891 ;;
17892 esac
17893 ;;
17894
17895 vxworks*)
17896 # FIXME: insert proper C++ library support
17897 ld_shlibs_CXX=no
17898 ;;
17899
17900 *)
17901 # FIXME: insert proper C++ library support
17902 ld_shlibs_CXX=no
17903 ;;
17904 esac
17905
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17907$as_echo "$ld_shlibs_CXX" >&6; }
17908 test "$ld_shlibs_CXX" = no && can_build_shared=no
17909
17910 GCC_CXX="$GXX"
17911 LD_CXX="$LD"
17912
17913 ## CAVEAT EMPTOR:
17914 ## There is no encapsulation within the following macros, do not change
17915 ## the running order or otherwise move them around unless you know exactly
17916 ## what you are doing...
17917 # Dependencies to place before and after the object being linked:
17918predep_objects_CXX=
17919postdep_objects_CXX=
17920predeps_CXX=
17921postdeps_CXX=
17922compiler_lib_search_path_CXX=
17923
17924cat > conftest.$ac_ext <<_LT_EOF
17925class Foo
17926{
17927public:
17928 Foo (void) { a = 0; }
17929private:
17930 int a;
17931};
17932_LT_EOF
17933
cristyda16f162011-02-19 23:52:17 +000017934
17935_lt_libdeps_save_CFLAGS=$CFLAGS
17936case "$CC $CFLAGS " in #(
17937*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17938*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17939esac
17940
cristy73bd4a52010-10-05 11:24:23 +000017941if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17942 (eval $ac_compile) 2>&5
17943 ac_status=$?
17944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17945 test $ac_status = 0; }; then
17946 # Parse the compiler output and extract the necessary
17947 # objects, libraries and library flags.
17948
17949 # Sentinel used to keep track of whether or not we are before
17950 # the conftest object file.
17951 pre_test_object_deps_done=no
17952
17953 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017954 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017955
17956 -L* | -R* | -l*)
17957 # Some compilers place space between "-{L,R}" and the path.
17958 # Remove the space.
17959 if test $p = "-L" ||
17960 test $p = "-R"; then
17961 prev=$p
17962 continue
cristy73bd4a52010-10-05 11:24:23 +000017963 fi
17964
cristyda16f162011-02-19 23:52:17 +000017965 # Expand the sysroot to ease extracting the directories later.
17966 if test -z "$prev"; then
17967 case $p in
17968 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17969 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17970 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17971 esac
17972 fi
17973 case $p in
17974 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17975 esac
cristy73bd4a52010-10-05 11:24:23 +000017976 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017977 case ${prev} in
17978 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017979 # Internal compiler library paths should come after those
17980 # provided the user. The postdeps already come after the
17981 # user supplied libs so there is no need to process them.
17982 if test -z "$compiler_lib_search_path_CXX"; then
17983 compiler_lib_search_path_CXX="${prev}${p}"
17984 else
17985 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17986 fi
17987 ;;
17988 # The "-l" case would never come before the object being
17989 # linked, so don't bother handling this case.
17990 esac
17991 else
17992 if test -z "$postdeps_CXX"; then
17993 postdeps_CXX="${prev}${p}"
17994 else
17995 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17996 fi
17997 fi
cristyda16f162011-02-19 23:52:17 +000017998 prev=
cristy73bd4a52010-10-05 11:24:23 +000017999 ;;
18000
cristyda16f162011-02-19 23:52:17 +000018001 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018002 *.$objext)
18003 # This assumes that the test object file only shows up
18004 # once in the compiler output.
18005 if test "$p" = "conftest.$objext"; then
18006 pre_test_object_deps_done=yes
18007 continue
18008 fi
18009
18010 if test "$pre_test_object_deps_done" = no; then
18011 if test -z "$predep_objects_CXX"; then
18012 predep_objects_CXX="$p"
18013 else
18014 predep_objects_CXX="$predep_objects_CXX $p"
18015 fi
18016 else
18017 if test -z "$postdep_objects_CXX"; then
18018 postdep_objects_CXX="$p"
18019 else
18020 postdep_objects_CXX="$postdep_objects_CXX $p"
18021 fi
18022 fi
18023 ;;
18024
18025 *) ;; # Ignore the rest.
18026
18027 esac
18028 done
18029
18030 # Clean up.
18031 rm -f a.out a.exe
18032else
18033 echo "libtool.m4: error: problem compiling CXX test program"
18034fi
18035
18036$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018037CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018038
18039# PORTME: override above test on systems where it is broken
18040case $host_os in
18041interix[3-9]*)
18042 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18043 # hack all around it, let's just trust "g++" to DTRT.
18044 predep_objects_CXX=
18045 postdep_objects_CXX=
18046 postdeps_CXX=
18047 ;;
18048
18049linux*)
18050 case `$CC -V 2>&1 | sed 5q` in
18051 *Sun\ C*)
18052 # Sun C++ 5.9
18053
18054 # The more standards-conforming stlport4 library is
18055 # incompatible with the Cstd library. Avoid specifying
18056 # it if it's in CXXFLAGS. Ignore libCrun as
18057 # -library=stlport4 depends on it.
18058 case " $CXX $CXXFLAGS " in
18059 *" -library=stlport4 "*)
18060 solaris_use_stlport4=yes
18061 ;;
18062 esac
18063
18064 if test "$solaris_use_stlport4" != yes; then
18065 postdeps_CXX='-library=Cstd -library=Crun'
18066 fi
18067 ;;
18068 esac
18069 ;;
18070
18071solaris*)
18072 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018073 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018074 # The more standards-conforming stlport4 library is
18075 # incompatible with the Cstd library. Avoid specifying
18076 # it if it's in CXXFLAGS. Ignore libCrun as
18077 # -library=stlport4 depends on it.
18078 case " $CXX $CXXFLAGS " in
18079 *" -library=stlport4 "*)
18080 solaris_use_stlport4=yes
18081 ;;
18082 esac
18083
18084 # Adding this requires a known-good setup of shared libraries for
18085 # Sun compiler versions before 5.6, else PIC objects from an old
18086 # archive will be linked into the output, leading to subtle bugs.
18087 if test "$solaris_use_stlport4" != yes; then
18088 postdeps_CXX='-library=Cstd -library=Crun'
18089 fi
18090 ;;
18091 esac
18092 ;;
18093esac
18094
18095
18096case " $postdeps_CXX " in
18097*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18098esac
18099 compiler_lib_search_dirs_CXX=
18100if test -n "${compiler_lib_search_path_CXX}"; then
18101 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18102fi
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134 lt_prog_compiler_wl_CXX=
18135lt_prog_compiler_pic_CXX=
18136lt_prog_compiler_static_CXX=
18137
cristy73bd4a52010-10-05 11:24:23 +000018138
18139 # C++ specific cases for pic, static, wl, etc.
18140 if test "$GXX" = yes; then
18141 lt_prog_compiler_wl_CXX='-Wl,'
18142 lt_prog_compiler_static_CXX='-static'
18143
18144 case $host_os in
18145 aix*)
18146 # All AIX code is PIC.
18147 if test "$host_cpu" = ia64; then
18148 # AIX 5 now supports IA64 processor
18149 lt_prog_compiler_static_CXX='-Bstatic'
18150 fi
18151 ;;
18152
18153 amigaos*)
18154 case $host_cpu in
18155 powerpc)
18156 # see comment about AmigaOS4 .so support
18157 lt_prog_compiler_pic_CXX='-fPIC'
18158 ;;
18159 m68k)
18160 # FIXME: we need at least 68020 code to build shared libraries, but
18161 # adding the `-m68020' flag to GCC prevents building anything better,
18162 # like `-m68040'.
18163 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18164 ;;
18165 esac
18166 ;;
18167
18168 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18169 # PIC is the default for these OSes.
18170 ;;
18171 mingw* | cygwin* | os2* | pw32* | cegcc*)
18172 # This hack is so that the source file can tell whether it is being
18173 # built for inclusion in a dll (and should export symbols for example).
18174 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18175 # (--disable-auto-import) libraries
18176 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18177 ;;
18178 darwin* | rhapsody*)
18179 # PIC is the default on this platform
18180 # Common symbols not allowed in MH_DYLIB files
18181 lt_prog_compiler_pic_CXX='-fno-common'
18182 ;;
18183 *djgpp*)
18184 # DJGPP does not support shared libraries at all
18185 lt_prog_compiler_pic_CXX=
18186 ;;
cristy0c60a692010-11-04 01:09:47 +000018187 haiku*)
18188 # PIC is the default for Haiku.
18189 # The "-static" flag exists, but is broken.
18190 lt_prog_compiler_static_CXX=
18191 ;;
cristy73bd4a52010-10-05 11:24:23 +000018192 interix[3-9]*)
18193 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18194 # Instead, we relocate shared libraries at runtime.
18195 ;;
18196 sysv4*MP*)
18197 if test -d /usr/nec; then
18198 lt_prog_compiler_pic_CXX=-Kconform_pic
18199 fi
18200 ;;
18201 hpux*)
18202 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18203 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18204 # sets the default TLS model and affects inlining.
18205 case $host_cpu in
18206 hppa*64*)
18207 ;;
18208 *)
18209 lt_prog_compiler_pic_CXX='-fPIC'
18210 ;;
18211 esac
18212 ;;
18213 *qnx* | *nto*)
18214 # QNX uses GNU C++, but need to define -shared option too, otherwise
18215 # it will coredump.
18216 lt_prog_compiler_pic_CXX='-fPIC -shared'
18217 ;;
18218 *)
18219 lt_prog_compiler_pic_CXX='-fPIC'
18220 ;;
18221 esac
18222 else
18223 case $host_os in
18224 aix[4-9]*)
18225 # All AIX code is PIC.
18226 if test "$host_cpu" = ia64; then
18227 # AIX 5 now supports IA64 processor
18228 lt_prog_compiler_static_CXX='-Bstatic'
18229 else
18230 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18231 fi
18232 ;;
18233 chorus*)
18234 case $cc_basename in
18235 cxch68*)
18236 # Green Hills C++ Compiler
18237 # _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"
18238 ;;
18239 esac
18240 ;;
cristyda16f162011-02-19 23:52:17 +000018241 mingw* | cygwin* | os2* | pw32* | cegcc*)
18242 # This hack is so that the source file can tell whether it is being
18243 # built for inclusion in a dll (and should export symbols for example).
18244 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18245 ;;
cristy73bd4a52010-10-05 11:24:23 +000018246 dgux*)
18247 case $cc_basename in
18248 ec++*)
18249 lt_prog_compiler_pic_CXX='-KPIC'
18250 ;;
18251 ghcx*)
18252 # Green Hills C++ Compiler
18253 lt_prog_compiler_pic_CXX='-pic'
18254 ;;
18255 *)
18256 ;;
18257 esac
18258 ;;
18259 freebsd* | dragonfly*)
18260 # FreeBSD uses GNU C++
18261 ;;
18262 hpux9* | hpux10* | hpux11*)
18263 case $cc_basename in
18264 CC*)
18265 lt_prog_compiler_wl_CXX='-Wl,'
18266 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18267 if test "$host_cpu" != ia64; then
18268 lt_prog_compiler_pic_CXX='+Z'
18269 fi
18270 ;;
18271 aCC*)
18272 lt_prog_compiler_wl_CXX='-Wl,'
18273 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18274 case $host_cpu in
18275 hppa*64*|ia64*)
18276 # +Z the default
18277 ;;
18278 *)
18279 lt_prog_compiler_pic_CXX='+Z'
18280 ;;
18281 esac
18282 ;;
18283 *)
18284 ;;
18285 esac
18286 ;;
18287 interix*)
18288 # This is c89, which is MS Visual C++ (no shared libs)
18289 # Anyone wants to do a port?
18290 ;;
18291 irix5* | irix6* | nonstopux*)
18292 case $cc_basename in
18293 CC*)
18294 lt_prog_compiler_wl_CXX='-Wl,'
18295 lt_prog_compiler_static_CXX='-non_shared'
18296 # CC pic flag -KPIC is the default.
18297 ;;
18298 *)
18299 ;;
18300 esac
18301 ;;
cristy0c60a692010-11-04 01:09:47 +000018302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018303 case $cc_basename in
18304 KCC*)
18305 # KAI C++ Compiler
18306 lt_prog_compiler_wl_CXX='--backend -Wl,'
18307 lt_prog_compiler_pic_CXX='-fPIC'
18308 ;;
18309 ecpc* )
18310 # old Intel C++ for x86_64 which still supported -KPIC.
18311 lt_prog_compiler_wl_CXX='-Wl,'
18312 lt_prog_compiler_pic_CXX='-KPIC'
18313 lt_prog_compiler_static_CXX='-static'
18314 ;;
18315 icpc* )
18316 # Intel C++, used to be incompatible with GCC.
18317 # ICC 10 doesn't accept -KPIC any more.
18318 lt_prog_compiler_wl_CXX='-Wl,'
18319 lt_prog_compiler_pic_CXX='-fPIC'
18320 lt_prog_compiler_static_CXX='-static'
18321 ;;
18322 pgCC* | pgcpp*)
18323 # Portland Group C++ compiler
18324 lt_prog_compiler_wl_CXX='-Wl,'
18325 lt_prog_compiler_pic_CXX='-fpic'
18326 lt_prog_compiler_static_CXX='-Bstatic'
18327 ;;
18328 cxx*)
18329 # Compaq C++
18330 # Make sure the PIC flag is empty. It appears that all Alpha
18331 # Linux and Compaq Tru64 Unix objects are PIC.
18332 lt_prog_compiler_pic_CXX=
18333 lt_prog_compiler_static_CXX='-non_shared'
18334 ;;
cristy0c60a692010-11-04 01:09:47 +000018335 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18336 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018337 lt_prog_compiler_wl_CXX='-Wl,'
18338 lt_prog_compiler_pic_CXX='-qpic'
18339 lt_prog_compiler_static_CXX='-qstaticlink'
18340 ;;
18341 *)
18342 case `$CC -V 2>&1 | sed 5q` in
18343 *Sun\ C*)
18344 # Sun C++ 5.9
18345 lt_prog_compiler_pic_CXX='-KPIC'
18346 lt_prog_compiler_static_CXX='-Bstatic'
18347 lt_prog_compiler_wl_CXX='-Qoption ld '
18348 ;;
18349 esac
18350 ;;
18351 esac
18352 ;;
18353 lynxos*)
18354 ;;
18355 m88k*)
18356 ;;
18357 mvs*)
18358 case $cc_basename in
18359 cxx*)
18360 lt_prog_compiler_pic_CXX='-W c,exportall'
18361 ;;
18362 *)
18363 ;;
18364 esac
18365 ;;
18366 netbsd*)
18367 ;;
18368 *qnx* | *nto*)
18369 # QNX uses GNU C++, but need to define -shared option too, otherwise
18370 # it will coredump.
18371 lt_prog_compiler_pic_CXX='-fPIC -shared'
18372 ;;
18373 osf3* | osf4* | osf5*)
18374 case $cc_basename in
18375 KCC*)
18376 lt_prog_compiler_wl_CXX='--backend -Wl,'
18377 ;;
18378 RCC*)
18379 # Rational C++ 2.4.1
18380 lt_prog_compiler_pic_CXX='-pic'
18381 ;;
18382 cxx*)
18383 # Digital/Compaq C++
18384 lt_prog_compiler_wl_CXX='-Wl,'
18385 # Make sure the PIC flag is empty. It appears that all Alpha
18386 # Linux and Compaq Tru64 Unix objects are PIC.
18387 lt_prog_compiler_pic_CXX=
18388 lt_prog_compiler_static_CXX='-non_shared'
18389 ;;
18390 *)
18391 ;;
18392 esac
18393 ;;
18394 psos*)
18395 ;;
18396 solaris*)
18397 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018398 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018399 # Sun C++ 4.2, 5.x and Centerline C++
18400 lt_prog_compiler_pic_CXX='-KPIC'
18401 lt_prog_compiler_static_CXX='-Bstatic'
18402 lt_prog_compiler_wl_CXX='-Qoption ld '
18403 ;;
18404 gcx*)
18405 # Green Hills C++ Compiler
18406 lt_prog_compiler_pic_CXX='-PIC'
18407 ;;
18408 *)
18409 ;;
18410 esac
18411 ;;
18412 sunos4*)
18413 case $cc_basename in
18414 CC*)
18415 # Sun C++ 4.x
18416 lt_prog_compiler_pic_CXX='-pic'
18417 lt_prog_compiler_static_CXX='-Bstatic'
18418 ;;
18419 lcc*)
18420 # Lucid
18421 lt_prog_compiler_pic_CXX='-pic'
18422 ;;
18423 *)
18424 ;;
18425 esac
18426 ;;
18427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18428 case $cc_basename in
18429 CC*)
18430 lt_prog_compiler_wl_CXX='-Wl,'
18431 lt_prog_compiler_pic_CXX='-KPIC'
18432 lt_prog_compiler_static_CXX='-Bstatic'
18433 ;;
18434 esac
18435 ;;
18436 tandem*)
18437 case $cc_basename in
18438 NCC*)
18439 # NonStop-UX NCC 3.20
18440 lt_prog_compiler_pic_CXX='-KPIC'
18441 ;;
18442 *)
18443 ;;
18444 esac
18445 ;;
18446 vxworks*)
18447 ;;
18448 *)
18449 lt_prog_compiler_can_build_shared_CXX=no
18450 ;;
18451 esac
18452 fi
18453
18454case $host_os in
18455 # For platforms which do not support PIC, -DPIC is meaningless:
18456 *djgpp*)
18457 lt_prog_compiler_pic_CXX=
18458 ;;
18459 *)
18460 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18461 ;;
18462esac
cristy73bd4a52010-10-05 11:24:23 +000018463
cristyda16f162011-02-19 23:52:17 +000018464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18465$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18466if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18467 $as_echo_n "(cached) " >&6
18468else
18469 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18470fi
18471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18472$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18473lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018474
18475#
18476# Check to make sure the PIC flag actually works.
18477#
18478if test -n "$lt_prog_compiler_pic_CXX"; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18480$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018481if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018482 $as_echo_n "(cached) " >&6
18483else
18484 lt_cv_prog_compiler_pic_works_CXX=no
18485 ac_outfile=conftest.$ac_objext
18486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18487 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18488 # Insert the option either (1) after the last *FLAGS variable, or
18489 # (2) before a word containing "conftest.", or (3) at the end.
18490 # Note that $ac_compile itself does not contain backslashes and begins
18491 # with a dollar sign (not a hyphen), so the echo should work correctly.
18492 # The option is referenced via a variable to avoid confusing sed.
18493 lt_compile=`echo "$ac_compile" | $SED \
18494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18496 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018498 (eval "$lt_compile" 2>conftest.err)
18499 ac_status=$?
18500 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018502 if (exit $ac_status) && test -s "$ac_outfile"; then
18503 # The compiler can only warn and ignore the option if not recognized
18504 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18508 lt_cv_prog_compiler_pic_works_CXX=yes
18509 fi
18510 fi
18511 $RM conftest*
18512
18513fi
18514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18515$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18516
18517if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18518 case $lt_prog_compiler_pic_CXX in
18519 "" | " "*) ;;
18520 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18521 esac
18522else
18523 lt_prog_compiler_pic_CXX=
18524 lt_prog_compiler_can_build_shared_CXX=no
18525fi
18526
18527fi
18528
18529
18530
cristyda16f162011-02-19 23:52:17 +000018531
18532
cristy73bd4a52010-10-05 11:24:23 +000018533#
18534# Check to make sure the static flag actually works.
18535#
18536wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18538$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018539if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018540 $as_echo_n "(cached) " >&6
18541else
18542 lt_cv_prog_compiler_static_works_CXX=no
18543 save_LDFLAGS="$LDFLAGS"
18544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18547 # The linker can only warn and ignore the option if not recognized
18548 # So say no if there are warnings
18549 if test -s conftest.err; then
18550 # Append any errors to the config.log.
18551 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18554 if diff conftest.exp conftest.er2 >/dev/null; then
18555 lt_cv_prog_compiler_static_works_CXX=yes
18556 fi
18557 else
18558 lt_cv_prog_compiler_static_works_CXX=yes
18559 fi
18560 fi
18561 $RM -r conftest*
18562 LDFLAGS="$save_LDFLAGS"
18563
18564fi
18565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18566$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18567
18568if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18569 :
18570else
18571 lt_prog_compiler_static_CXX=
18572fi
18573
18574
18575
18576
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018579if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018580 $as_echo_n "(cached) " >&6
18581else
18582 lt_cv_prog_compiler_c_o_CXX=no
18583 $RM -r conftest 2>/dev/null
18584 mkdir conftest
18585 cd conftest
18586 mkdir out
18587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18588
18589 lt_compiler_flag="-o out/conftest2.$ac_objext"
18590 # Insert the option either (1) after the last *FLAGS variable, or
18591 # (2) before a word containing "conftest.", or (3) at the end.
18592 # Note that $ac_compile itself does not contain backslashes and begins
18593 # with a dollar sign (not a hyphen), so the echo should work correctly.
18594 lt_compile=`echo "$ac_compile" | $SED \
18595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18597 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018599 (eval "$lt_compile" 2>out/conftest.err)
18600 ac_status=$?
18601 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18604 then
18605 # The compiler can only warn and ignore the option if not recognized
18606 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18610 lt_cv_prog_compiler_c_o_CXX=yes
18611 fi
18612 fi
18613 chmod u+w . 2>&5
18614 $RM conftest*
18615 # SGI C++ compiler will create directory out/ii_files/ for
18616 # template instantiation
18617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18618 $RM out/* && rmdir out
18619 cd ..
18620 $RM -r conftest
18621 $RM conftest*
18622
18623fi
18624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18625$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18626
18627
18628
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18630$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018631if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018632 $as_echo_n "(cached) " >&6
18633else
18634 lt_cv_prog_compiler_c_o_CXX=no
18635 $RM -r conftest 2>/dev/null
18636 mkdir conftest
18637 cd conftest
18638 mkdir out
18639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18640
18641 lt_compiler_flag="-o out/conftest2.$ac_objext"
18642 # Insert the option either (1) after the last *FLAGS variable, or
18643 # (2) before a word containing "conftest.", or (3) at the end.
18644 # Note that $ac_compile itself does not contain backslashes and begins
18645 # with a dollar sign (not a hyphen), so the echo should work correctly.
18646 lt_compile=`echo "$ac_compile" | $SED \
18647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18649 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018651 (eval "$lt_compile" 2>out/conftest.err)
18652 ac_status=$?
18653 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18656 then
18657 # The compiler can only warn and ignore the option if not recognized
18658 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018660 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18661 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18662 lt_cv_prog_compiler_c_o_CXX=yes
18663 fi
18664 fi
18665 chmod u+w . 2>&5
18666 $RM conftest*
18667 # SGI C++ compiler will create directory out/ii_files/ for
18668 # template instantiation
18669 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18670 $RM out/* && rmdir out
18671 cd ..
18672 $RM -r conftest
18673 $RM conftest*
18674
18675fi
18676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18677$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18678
18679
18680
18681
18682hard_links="nottested"
18683if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18684 # do not overwrite the value of need_locks provided by the user
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18686$as_echo_n "checking if we can lock with hard links... " >&6; }
18687 hard_links=yes
18688 $RM conftest*
18689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18690 touch conftest.a
18691 ln conftest.a conftest.b 2>&5 || hard_links=no
18692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18694$as_echo "$hard_links" >&6; }
18695 if test "$hard_links" = no; then
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18697$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18698 need_locks=warn
18699 fi
18700else
18701 need_locks=no
18702fi
18703
18704
18705
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18707$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18708
18709 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018710 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018711 case $host_os in
18712 aix[4-9]*)
18713 # If we're using GNU nm, then we don't want the "-C" option.
18714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018715 # Also, AIX nm treats weak defined symbols like other global defined
18716 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018717 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018718 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 +000018719 else
18720 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'
18721 fi
18722 ;;
18723 pw32*)
18724 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018725 ;;
cristy73bd4a52010-10-05 11:24:23 +000018726 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018727 case $cc_basename in
18728 cl*) ;;
18729 *)
18730 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'
18731 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18732 ;;
18733 esac
18734 ;;
cristy73bd4a52010-10-05 11:24:23 +000018735 *)
18736 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018737 ;;
cristy73bd4a52010-10-05 11:24:23 +000018738 esac
cristy73bd4a52010-10-05 11:24:23 +000018739
18740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18741$as_echo "$ld_shlibs_CXX" >&6; }
18742test "$ld_shlibs_CXX" = no && can_build_shared=no
18743
18744with_gnu_ld_CXX=$with_gnu_ld
18745
18746
18747
18748
18749
18750
18751#
18752# Do we need to explicitly link libc?
18753#
18754case "x$archive_cmds_need_lc_CXX" in
18755x|xyes)
18756 # Assume -lc should be added
18757 archive_cmds_need_lc_CXX=yes
18758
18759 if test "$enable_shared" = yes && test "$GCC" = yes; then
18760 case $archive_cmds_CXX in
18761 *'~'*)
18762 # FIXME: we may have to deal with multi-command sequences.
18763 ;;
18764 '$CC '*)
18765 # Test whether the compiler implicitly links with -lc since on some
18766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18767 # to ld, don't add -lc before -lgcc.
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18769$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018770if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018771 $as_echo_n "(cached) " >&6
18772else
18773 $RM conftest*
18774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018775
cristy0c60a692010-11-04 01:09:47 +000018776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018777 (eval $ac_compile) 2>&5
18778 ac_status=$?
18779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18780 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018781 soname=conftest
18782 lib=conftest
18783 libobjs=conftest.$ac_objext
18784 deplibs=
18785 wl=$lt_prog_compiler_wl_CXX
18786 pic_flag=$lt_prog_compiler_pic_CXX
18787 compiler_flags=-v
18788 linker_flags=-v
18789 verstring=
18790 output_objdir=.
18791 libname=conftest
18792 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18793 allow_undefined_flag_CXX=
18794 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 +000018795 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18796 ac_status=$?
18797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18798 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018799 then
18800 lt_cv_archive_cmds_need_lc_CXX=no
18801 else
18802 lt_cv_archive_cmds_need_lc_CXX=yes
18803 fi
18804 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18805 else
18806 cat conftest.err 1>&5
18807 fi
18808 $RM conftest*
18809
18810fi
18811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18812$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18813 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018814 ;;
18815 esac
18816 fi
18817 ;;
18818esac
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18884$as_echo_n "checking dynamic linker characteristics... " >&6; }
18885
18886library_names_spec=
18887libname_spec='lib$name'
18888soname_spec=
18889shrext_cmds=".so"
18890postinstall_cmds=
18891postuninstall_cmds=
18892finish_cmds=
18893finish_eval=
18894shlibpath_var=
18895shlibpath_overrides_runpath=unknown
18896version_type=none
18897dynamic_linker="$host_os ld.so"
18898sys_lib_dlsearch_path_spec="/lib /usr/lib"
18899need_lib_prefix=unknown
18900hardcode_into_libs=no
18901
18902# when you set need_version to no, make sure it does not cause -set_version
18903# flags to be left without arguments
18904need_version=unknown
18905
18906case $host_os in
18907aix3*)
18908 version_type=linux
18909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18910 shlibpath_var=LIBPATH
18911
18912 # AIX 3 has no versioning support, so we append a major version to the name.
18913 soname_spec='${libname}${release}${shared_ext}$major'
18914 ;;
18915
18916aix[4-9]*)
18917 version_type=linux
18918 need_lib_prefix=no
18919 need_version=no
18920 hardcode_into_libs=yes
18921 if test "$host_cpu" = ia64; then
18922 # AIX 5 supports IA64
18923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18924 shlibpath_var=LD_LIBRARY_PATH
18925 else
18926 # With GCC up to 2.95.x, collect2 would create an import file
18927 # for dependence libraries. The import file would start with
18928 # the line `#! .'. This would cause the generated library to
18929 # depend on `.', always an invalid library. This was fixed in
18930 # development snapshots of GCC prior to 3.0.
18931 case $host_os in
18932 aix4 | aix4.[01] | aix4.[01].*)
18933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18934 echo ' yes '
18935 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18936 :
18937 else
18938 can_build_shared=no
18939 fi
18940 ;;
18941 esac
18942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18943 # soname into executable. Probably we can add versioning support to
18944 # collect2, so additional links can be useful in future.
18945 if test "$aix_use_runtimelinking" = yes; then
18946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18947 # instead of lib<name>.a to let people know that these are not
18948 # typical AIX shared libraries.
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950 else
18951 # We preserve .a as extension for shared libraries through AIX4.2
18952 # and later when we are not doing run time linking.
18953 library_names_spec='${libname}${release}.a $libname.a'
18954 soname_spec='${libname}${release}${shared_ext}$major'
18955 fi
18956 shlibpath_var=LIBPATH
18957 fi
18958 ;;
18959
18960amigaos*)
18961 case $host_cpu in
18962 powerpc)
18963 # Since July 2007 AmigaOS4 officially supports .so libraries.
18964 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18966 ;;
18967 m68k)
18968 library_names_spec='$libname.ixlibrary $libname.a'
18969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018970 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 +000018971 ;;
18972 esac
18973 ;;
18974
18975beos*)
18976 library_names_spec='${libname}${shared_ext}'
18977 dynamic_linker="$host_os ld.so"
18978 shlibpath_var=LIBRARY_PATH
18979 ;;
18980
18981bsdi[45]*)
18982 version_type=linux
18983 need_version=no
18984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18985 soname_spec='${libname}${release}${shared_ext}$major'
18986 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18987 shlibpath_var=LD_LIBRARY_PATH
18988 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18989 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18990 # the default ld.so.conf also contains /usr/contrib/lib and
18991 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18992 # libtool to hard-code these into programs
18993 ;;
18994
18995cygwin* | mingw* | pw32* | cegcc*)
18996 version_type=windows
18997 shrext_cmds=".dll"
18998 need_version=no
18999 need_lib_prefix=no
19000
cristyda16f162011-02-19 23:52:17 +000019001 case $GCC,$cc_basename in
19002 yes,*)
19003 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019004 library_names_spec='$libname.dll.a'
19005 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19006 postinstall_cmds='base_file=`basename \${file}`~
19007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19008 dldir=$destdir/`dirname \$dlpath`~
19009 test -d \$dldir || mkdir -p \$dldir~
19010 $install_prog $dir/$dlname \$dldir/$dlname~
19011 chmod a+x \$dldir/$dlname~
19012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19013 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19014 fi'
19015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19016 dlpath=$dir/\$dldll~
19017 $RM \$dlpath'
19018 shlibpath_overrides_runpath=yes
19019
19020 case $host_os in
19021 cygwin*)
19022 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19023 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019024
cristy73bd4a52010-10-05 11:24:23 +000019025 ;;
19026 mingw* | cegcc*)
19027 # MinGW DLLs use traditional 'lib' prefix
19028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019029 ;;
19030 pw32*)
19031 # pw32 DLLs use 'pw' prefix rather than 'lib'
19032 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19033 ;;
19034 esac
cristyda16f162011-02-19 23:52:17 +000019035 dynamic_linker='Win32 ld.exe'
19036 ;;
19037
19038 *,cl*)
19039 # Native MSVC
19040 libname_spec='$name'
19041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19042 library_names_spec='${libname}.dll.lib'
19043
19044 case $build_os in
19045 mingw*)
19046 sys_lib_search_path_spec=
19047 lt_save_ifs=$IFS
19048 IFS=';'
19049 for lt_path in $LIB
19050 do
19051 IFS=$lt_save_ifs
19052 # Let DOS variable expansion print the short 8.3 style file name.
19053 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19054 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19055 done
19056 IFS=$lt_save_ifs
19057 # Convert to MSYS style.
19058 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19059 ;;
19060 cygwin*)
19061 # Convert to unix form, then to dos form, then back to unix form
19062 # but this time dos style (no spaces!) so that the unix form looks
19063 # like /cygdrive/c/PROGRA~1:/cygdr...
19064 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19065 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19066 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19067 ;;
19068 *)
19069 sys_lib_search_path_spec="$LIB"
19070 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19071 # It is most probably a Windows format PATH.
19072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19073 else
19074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19075 fi
19076 # FIXME: find the short name or the path components, as spaces are
19077 # common. (e.g. "Program Files" -> "PROGRA~1")
19078 ;;
19079 esac
19080
19081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19082 postinstall_cmds='base_file=`basename \${file}`~
19083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19084 dldir=$destdir/`dirname \$dlpath`~
19085 test -d \$dldir || mkdir -p \$dldir~
19086 $install_prog $dir/$dlname \$dldir/$dlname'
19087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19088 dlpath=$dir/\$dldll~
19089 $RM \$dlpath'
19090 shlibpath_overrides_runpath=yes
19091 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019092 ;;
19093
19094 *)
cristyda16f162011-02-19 23:52:17 +000019095 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019097 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019098 ;;
19099 esac
cristy73bd4a52010-10-05 11:24:23 +000019100 # FIXME: first we should search . and the directory the executable is in
19101 shlibpath_var=PATH
19102 ;;
19103
19104darwin* | rhapsody*)
19105 dynamic_linker="$host_os dyld"
19106 version_type=darwin
19107 need_lib_prefix=no
19108 need_version=no
19109 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19110 soname_spec='${libname}${release}${major}$shared_ext'
19111 shlibpath_overrides_runpath=yes
19112 shlibpath_var=DYLD_LIBRARY_PATH
19113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19114
19115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19116 ;;
19117
19118dgux*)
19119 version_type=linux
19120 need_lib_prefix=no
19121 need_version=no
19122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19123 soname_spec='${libname}${release}${shared_ext}$major'
19124 shlibpath_var=LD_LIBRARY_PATH
19125 ;;
19126
19127freebsd1*)
19128 dynamic_linker=no
19129 ;;
19130
19131freebsd* | dragonfly*)
19132 # DragonFly does not have aout. When/if they implement a new
19133 # versioning mechanism, adjust this.
19134 if test -x /usr/bin/objformat; then
19135 objformat=`/usr/bin/objformat`
19136 else
19137 case $host_os in
19138 freebsd[123]*) objformat=aout ;;
19139 *) objformat=elf ;;
19140 esac
19141 fi
19142 version_type=freebsd-$objformat
19143 case $version_type in
19144 freebsd-elf*)
19145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19146 need_version=no
19147 need_lib_prefix=no
19148 ;;
19149 freebsd-*)
19150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19151 need_version=yes
19152 ;;
19153 esac
19154 shlibpath_var=LD_LIBRARY_PATH
19155 case $host_os in
19156 freebsd2*)
19157 shlibpath_overrides_runpath=yes
19158 ;;
19159 freebsd3.[01]* | freebsdelf3.[01]*)
19160 shlibpath_overrides_runpath=yes
19161 hardcode_into_libs=yes
19162 ;;
19163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19165 shlibpath_overrides_runpath=no
19166 hardcode_into_libs=yes
19167 ;;
19168 *) # from 4.6 on, and DragonFly
19169 shlibpath_overrides_runpath=yes
19170 hardcode_into_libs=yes
19171 ;;
19172 esac
19173 ;;
19174
19175gnu*)
19176 version_type=linux
19177 need_lib_prefix=no
19178 need_version=no
19179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19180 soname_spec='${libname}${release}${shared_ext}$major'
19181 shlibpath_var=LD_LIBRARY_PATH
19182 hardcode_into_libs=yes
19183 ;;
19184
cristy0c60a692010-11-04 01:09:47 +000019185haiku*)
19186 version_type=linux
19187 need_lib_prefix=no
19188 need_version=no
19189 dynamic_linker="$host_os runtime_loader"
19190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19191 soname_spec='${libname}${release}${shared_ext}$major'
19192 shlibpath_var=LIBRARY_PATH
19193 shlibpath_overrides_runpath=yes
19194 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19195 hardcode_into_libs=yes
19196 ;;
19197
cristy73bd4a52010-10-05 11:24:23 +000019198hpux9* | hpux10* | hpux11*)
19199 # Give a soname corresponding to the major version so that dld.sl refuses to
19200 # link against other versions.
19201 version_type=sunos
19202 need_lib_prefix=no
19203 need_version=no
19204 case $host_cpu in
19205 ia64*)
19206 shrext_cmds='.so'
19207 hardcode_into_libs=yes
19208 dynamic_linker="$host_os dld.so"
19209 shlibpath_var=LD_LIBRARY_PATH
19210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19212 soname_spec='${libname}${release}${shared_ext}$major'
19213 if test "X$HPUX_IA64_MODE" = X32; then
19214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19215 else
19216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19217 fi
19218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19219 ;;
19220 hppa*64*)
19221 shrext_cmds='.sl'
19222 hardcode_into_libs=yes
19223 dynamic_linker="$host_os dld.sl"
19224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19227 soname_spec='${libname}${release}${shared_ext}$major'
19228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19230 ;;
19231 *)
19232 shrext_cmds='.sl'
19233 dynamic_linker="$host_os dld.sl"
19234 shlibpath_var=SHLIB_PATH
19235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19237 soname_spec='${libname}${release}${shared_ext}$major'
19238 ;;
19239 esac
cristy0c60a692010-11-04 01:09:47 +000019240 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019241 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019242 # or fails outright, so override atomically:
19243 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019244 ;;
19245
19246interix[3-9]*)
19247 version_type=linux
19248 need_lib_prefix=no
19249 need_version=no
19250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19251 soname_spec='${libname}${release}${shared_ext}$major'
19252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19253 shlibpath_var=LD_LIBRARY_PATH
19254 shlibpath_overrides_runpath=no
19255 hardcode_into_libs=yes
19256 ;;
19257
19258irix5* | irix6* | nonstopux*)
19259 case $host_os in
19260 nonstopux*) version_type=nonstopux ;;
19261 *)
19262 if test "$lt_cv_prog_gnu_ld" = yes; then
19263 version_type=linux
19264 else
19265 version_type=irix
19266 fi ;;
19267 esac
19268 need_lib_prefix=no
19269 need_version=no
19270 soname_spec='${libname}${release}${shared_ext}$major'
19271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19272 case $host_os in
19273 irix5* | nonstopux*)
19274 libsuff= shlibsuff=
19275 ;;
19276 *)
19277 case $LD in # libtool.m4 will add one of these switches to LD
19278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19279 libsuff= shlibsuff= libmagic=32-bit;;
19280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19281 libsuff=32 shlibsuff=N32 libmagic=N32;;
19282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19284 *) libsuff= shlibsuff= libmagic=never-match;;
19285 esac
19286 ;;
19287 esac
19288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19289 shlibpath_overrides_runpath=no
19290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19292 hardcode_into_libs=yes
19293 ;;
19294
19295# No shared lib support for Linux oldld, aout, or coff.
19296linux*oldld* | linux*aout* | linux*coff*)
19297 dynamic_linker=no
19298 ;;
19299
19300# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019301linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019302 version_type=linux
19303 need_lib_prefix=no
19304 need_version=no
19305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19306 soname_spec='${libname}${release}${shared_ext}$major'
19307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19308 shlibpath_var=LD_LIBRARY_PATH
19309 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019310
cristy73bd4a52010-10-05 11:24:23 +000019311 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019312 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019313 $as_echo_n "(cached) " >&6
19314else
19315 lt_cv_shlibpath_overrides_runpath=no
19316 save_LDFLAGS=$LDFLAGS
19317 save_libdir=$libdir
19318 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19319 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019321/* end confdefs.h. */
19322
19323int
19324main ()
19325{
19326
19327 ;
19328 return 0;
19329}
19330_ACEOF
19331if ac_fn_cxx_try_link "$LINENO"; then :
19332 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019333 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019334fi
19335fi
19336rm -f core conftest.err conftest.$ac_objext \
19337 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019338 LDFLAGS=$save_LDFLAGS
19339 libdir=$save_libdir
19340
19341fi
19342
19343 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019344
19345 # This implies no fast_install, which is unacceptable.
19346 # Some rework will be needed to allow for fast_install
19347 # before this can be enabled.
19348 hardcode_into_libs=yes
19349
19350 # Add ABI-specific directories to the system library path.
19351 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19352
19353 # Append ld.so.conf contents to the search path
19354 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019355 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 +000019356 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019357
cristy73bd4a52010-10-05 11:24:23 +000019358 fi
19359
19360 # We used to test for /lib/ld.so.1 and disable shared libraries on
19361 # powerpc, because MkLinux only supported shared libraries with the
19362 # GNU dynamic linker. Since this was broken with cross compilers,
19363 # most powerpc-linux boxes support dynamic linking these days and
19364 # people can always --disable-shared, the test was removed, and we
19365 # assume the GNU/Linux dynamic linker is in use.
19366 dynamic_linker='GNU/Linux ld.so'
19367 ;;
19368
19369netbsd*)
19370 version_type=sunos
19371 need_lib_prefix=no
19372 need_version=no
19373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19376 dynamic_linker='NetBSD (a.out) ld.so'
19377 else
19378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19379 soname_spec='${libname}${release}${shared_ext}$major'
19380 dynamic_linker='NetBSD ld.elf_so'
19381 fi
19382 shlibpath_var=LD_LIBRARY_PATH
19383 shlibpath_overrides_runpath=yes
19384 hardcode_into_libs=yes
19385 ;;
19386
19387newsos6)
19388 version_type=linux
19389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19390 shlibpath_var=LD_LIBRARY_PATH
19391 shlibpath_overrides_runpath=yes
19392 ;;
19393
19394*nto* | *qnx*)
19395 version_type=qnx
19396 need_lib_prefix=no
19397 need_version=no
19398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19399 soname_spec='${libname}${release}${shared_ext}$major'
19400 shlibpath_var=LD_LIBRARY_PATH
19401 shlibpath_overrides_runpath=no
19402 hardcode_into_libs=yes
19403 dynamic_linker='ldqnx.so'
19404 ;;
19405
19406openbsd*)
19407 version_type=sunos
19408 sys_lib_dlsearch_path_spec="/usr/lib"
19409 need_lib_prefix=no
19410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19411 case $host_os in
19412 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19413 *) need_version=no ;;
19414 esac
19415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19417 shlibpath_var=LD_LIBRARY_PATH
19418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19419 case $host_os in
19420 openbsd2.[89] | openbsd2.[89].*)
19421 shlibpath_overrides_runpath=no
19422 ;;
19423 *)
19424 shlibpath_overrides_runpath=yes
19425 ;;
19426 esac
19427 else
19428 shlibpath_overrides_runpath=yes
19429 fi
19430 ;;
19431
19432os2*)
19433 libname_spec='$name'
19434 shrext_cmds=".dll"
19435 need_lib_prefix=no
19436 library_names_spec='$libname${shared_ext} $libname.a'
19437 dynamic_linker='OS/2 ld.exe'
19438 shlibpath_var=LIBPATH
19439 ;;
19440
19441osf3* | osf4* | osf5*)
19442 version_type=osf
19443 need_lib_prefix=no
19444 need_version=no
19445 soname_spec='${libname}${release}${shared_ext}$major'
19446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19447 shlibpath_var=LD_LIBRARY_PATH
19448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19450 ;;
19451
19452rdos*)
19453 dynamic_linker=no
19454 ;;
19455
19456solaris*)
19457 version_type=linux
19458 need_lib_prefix=no
19459 need_version=no
19460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19461 soname_spec='${libname}${release}${shared_ext}$major'
19462 shlibpath_var=LD_LIBRARY_PATH
19463 shlibpath_overrides_runpath=yes
19464 hardcode_into_libs=yes
19465 # ldd complains unless libraries are executable
19466 postinstall_cmds='chmod +x $lib'
19467 ;;
19468
19469sunos4*)
19470 version_type=sunos
19471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19473 shlibpath_var=LD_LIBRARY_PATH
19474 shlibpath_overrides_runpath=yes
19475 if test "$with_gnu_ld" = yes; then
19476 need_lib_prefix=no
19477 fi
19478 need_version=yes
19479 ;;
19480
19481sysv4 | sysv4.3*)
19482 version_type=linux
19483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19484 soname_spec='${libname}${release}${shared_ext}$major'
19485 shlibpath_var=LD_LIBRARY_PATH
19486 case $host_vendor in
19487 sni)
19488 shlibpath_overrides_runpath=no
19489 need_lib_prefix=no
19490 runpath_var=LD_RUN_PATH
19491 ;;
19492 siemens)
19493 need_lib_prefix=no
19494 ;;
19495 motorola)
19496 need_lib_prefix=no
19497 need_version=no
19498 shlibpath_overrides_runpath=no
19499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19500 ;;
19501 esac
19502 ;;
19503
19504sysv4*MP*)
19505 if test -d /usr/nec ;then
19506 version_type=linux
19507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19508 soname_spec='$libname${shared_ext}.$major'
19509 shlibpath_var=LD_LIBRARY_PATH
19510 fi
19511 ;;
19512
19513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19514 version_type=freebsd-elf
19515 need_lib_prefix=no
19516 need_version=no
19517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19518 soname_spec='${libname}${release}${shared_ext}$major'
19519 shlibpath_var=LD_LIBRARY_PATH
19520 shlibpath_overrides_runpath=yes
19521 hardcode_into_libs=yes
19522 if test "$with_gnu_ld" = yes; then
19523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19524 else
19525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19526 case $host_os in
19527 sco3.2v5*)
19528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19529 ;;
19530 esac
19531 fi
19532 sys_lib_dlsearch_path_spec='/usr/lib'
19533 ;;
19534
19535tpf*)
19536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19537 version_type=linux
19538 need_lib_prefix=no
19539 need_version=no
19540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19541 shlibpath_var=LD_LIBRARY_PATH
19542 shlibpath_overrides_runpath=no
19543 hardcode_into_libs=yes
19544 ;;
19545
19546uts4*)
19547 version_type=linux
19548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19549 soname_spec='${libname}${release}${shared_ext}$major'
19550 shlibpath_var=LD_LIBRARY_PATH
19551 ;;
19552
19553*)
19554 dynamic_linker=no
19555 ;;
19556esac
19557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19558$as_echo "$dynamic_linker" >&6; }
19559test "$dynamic_linker" = no && can_build_shared=no
19560
19561variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19562if test "$GCC" = yes; then
19563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19564fi
19565
19566if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19567 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19568fi
19569if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19570 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19571fi
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
cristy0c60a692010-11-04 01:09:47 +000019608
19609
cristy73bd4a52010-10-05 11:24:23 +000019610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19611$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19612hardcode_action_CXX=
19613if test -n "$hardcode_libdir_flag_spec_CXX" ||
19614 test -n "$runpath_var_CXX" ||
19615 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19616
19617 # We can hardcode non-existent directories.
19618 if test "$hardcode_direct_CXX" != no &&
19619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19620 # have to relink, otherwise we might link with an installed library
19621 # when we should be linking with a yet-to-be-installed one
19622 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19623 test "$hardcode_minus_L_CXX" != no; then
19624 # Linking always hardcodes the temporary library directory.
19625 hardcode_action_CXX=relink
19626 else
19627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19628 hardcode_action_CXX=immediate
19629 fi
19630else
19631 # We cannot hardcode anything, or else we can only hardcode existing
19632 # directories.
19633 hardcode_action_CXX=unsupported
19634fi
19635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19636$as_echo "$hardcode_action_CXX" >&6; }
19637
19638if test "$hardcode_action_CXX" = relink ||
19639 test "$inherit_rpath_CXX" = yes; then
19640 # Fast installation is not supported
19641 enable_fast_install=no
19642elif test "$shlibpath_overrides_runpath" = yes ||
19643 test "$enable_shared" = no; then
19644 # Fast installation is not necessary
19645 enable_fast_install=needless
19646fi
19647
19648
19649
19650
19651
19652
19653
19654 fi # test -n "$compiler"
19655
19656 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019657 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019658 LDCXX=$LD
19659 LD=$lt_save_LD
19660 GCC=$lt_save_GCC
19661 with_gnu_ld=$lt_save_with_gnu_ld
19662 lt_cv_path_LDCXX=$lt_cv_path_LD
19663 lt_cv_path_LD=$lt_save_path_LD
19664 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19665 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19666fi # test "$_lt_caught_CXX_error" != yes
19667
19668ac_ext=c
19669ac_cpp='$CPP $CPPFLAGS'
19670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672ac_compiler_gnu=$ac_cv_c_compiler_gnu
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686 ac_config_commands="$ac_config_commands libtool"
19687
19688
19689
19690
19691# Only expand once:
19692
19693
19694
cristy3ed852e2009-09-05 21:47:34 +000019695
19696
19697# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019698
19699
19700
19701
19702
19703
19704
cristy73bd4a52010-10-05 11:24:23 +000019705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19706$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019707if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019708 $as_echo_n "(cached) " >&6
19709else
19710
19711module=yes
19712eval libltdl_cv_shlibext=$shrext_cmds
19713
19714fi
19715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19716$as_echo "$libltdl_cv_shlibext" >&6; }
19717if test -n "$libltdl_cv_shlibext"; then
19718
19719cat >>confdefs.h <<_ACEOF
19720#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19721_ACEOF
19722
19723fi
19724
19725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19726$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019727if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019728 $as_echo_n "(cached) " >&6
19729else
19730 lt_cv_module_path_var="$shlibpath_var"
19731fi
19732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19733$as_echo "$lt_cv_module_path_var" >&6; }
19734if test -n "$lt_cv_module_path_var"; then
19735
19736cat >>confdefs.h <<_ACEOF
19737#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19738_ACEOF
19739
19740fi
19741
19742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19743$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019744if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019745 $as_echo_n "(cached) " >&6
19746else
19747 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19748fi
19749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19750$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19751if test -n "$lt_cv_sys_dlsearch_path"; then
19752 sys_dlsearch_path=
19753 for dir in $lt_cv_sys_dlsearch_path; do
19754 if test -z "$sys_dlsearch_path"; then
19755 sys_dlsearch_path="$dir"
19756 else
19757 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19758 fi
19759 done
19760
19761cat >>confdefs.h <<_ACEOF
19762#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19763_ACEOF
19764
19765fi
19766
19767
19768LT_DLLOADERS=
19769
19770
19771ac_ext=c
19772ac_cpp='$CPP $CPPFLAGS'
19773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19775ac_compiler_gnu=$ac_cv_c_compiler_gnu
19776
19777
19778LIBADD_DLOPEN=
19779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19780$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019781if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019782 $as_echo_n "(cached) " >&6
19783else
19784 ac_func_search_save_LIBS=$LIBS
19785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19786/* end confdefs.h. */
19787
19788/* Override any GCC internal prototype to avoid an error.
19789 Use char because int might match the return type of a GCC
19790 builtin and then its argument prototype would still apply. */
19791#ifdef __cplusplus
19792extern "C"
19793#endif
19794char dlopen ();
19795int
19796main ()
19797{
19798return dlopen ();
19799 ;
19800 return 0;
19801}
19802_ACEOF
19803for ac_lib in '' dl; do
19804 if test -z "$ac_lib"; then
19805 ac_res="none required"
19806 else
19807 ac_res=-l$ac_lib
19808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19809 fi
19810 if ac_fn_c_try_link "$LINENO"; then :
19811 ac_cv_search_dlopen=$ac_res
19812fi
19813rm -f core conftest.err conftest.$ac_objext \
19814 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019815 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019816 break
19817fi
19818done
cristyda16f162011-02-19 23:52:17 +000019819if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019820
19821else
19822 ac_cv_search_dlopen=no
19823fi
19824rm conftest.$ac_ext
19825LIBS=$ac_func_search_save_LIBS
19826fi
19827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19828$as_echo "$ac_cv_search_dlopen" >&6; }
19829ac_res=$ac_cv_search_dlopen
19830if test "$ac_res" != no; then :
19831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19832
19833$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19834
19835 if test "$ac_cv_search_dlopen" != "none required" ; then
19836 LIBADD_DLOPEN="-ldl"
19837 fi
19838 libltdl_cv_lib_dl_dlopen="yes"
19839 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19840else
19841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19842/* end confdefs.h. */
19843#if HAVE_DLFCN_H
19844# include <dlfcn.h>
19845#endif
19846
19847int
19848main ()
19849{
19850dlopen(0, 0);
19851 ;
19852 return 0;
19853}
19854_ACEOF
19855if ac_fn_c_try_link "$LINENO"; then :
19856
19857$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19858
19859 libltdl_cv_func_dlopen="yes"
19860 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19861else
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19863$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019864if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019865 $as_echo_n "(cached) " >&6
19866else
19867 ac_check_lib_save_LIBS=$LIBS
19868LIBS="-lsvld $LIBS"
19869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870/* end confdefs.h. */
19871
19872/* Override any GCC internal prototype to avoid an error.
19873 Use char because int might match the return type of a GCC
19874 builtin and then its argument prototype would still apply. */
19875#ifdef __cplusplus
19876extern "C"
19877#endif
19878char dlopen ();
19879int
19880main ()
19881{
19882return dlopen ();
19883 ;
19884 return 0;
19885}
19886_ACEOF
19887if ac_fn_c_try_link "$LINENO"; then :
19888 ac_cv_lib_svld_dlopen=yes
19889else
19890 ac_cv_lib_svld_dlopen=no
19891fi
19892rm -f core conftest.err conftest.$ac_objext \
19893 conftest$ac_exeext conftest.$ac_ext
19894LIBS=$ac_check_lib_save_LIBS
19895fi
19896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19897$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019898if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019899
19900$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19901
19902 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19903 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19904fi
19905
19906fi
19907rm -f core conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
19909fi
19910
19911if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19912then
19913 lt_save_LIBS="$LIBS"
19914 LIBS="$LIBS $LIBADD_DLOPEN"
19915 for ac_func in dlerror
19916do :
19917 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019918if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019919 cat >>confdefs.h <<_ACEOF
19920#define HAVE_DLERROR 1
19921_ACEOF
19922
19923fi
19924done
19925
19926 LIBS="$lt_save_LIBS"
19927fi
19928
19929
19930LIBADD_SHL_LOAD=
19931ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019932if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019933
19934$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19935
19936 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19937else
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19939$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019940if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019941 $as_echo_n "(cached) " >&6
19942else
19943 ac_check_lib_save_LIBS=$LIBS
19944LIBS="-ldld $LIBS"
19945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946/* end confdefs.h. */
19947
19948/* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19951#ifdef __cplusplus
19952extern "C"
19953#endif
19954char shl_load ();
19955int
19956main ()
19957{
19958return shl_load ();
19959 ;
19960 return 0;
19961}
19962_ACEOF
19963if ac_fn_c_try_link "$LINENO"; then :
19964 ac_cv_lib_dld_shl_load=yes
19965else
19966 ac_cv_lib_dld_shl_load=no
19967fi
19968rm -f core conftest.err conftest.$ac_objext \
19969 conftest$ac_exeext conftest.$ac_ext
19970LIBS=$ac_check_lib_save_LIBS
19971fi
19972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19973$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019974if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019975
19976$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19977
19978 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19979 LIBADD_SHL_LOAD="-ldld"
19980fi
19981
19982fi
19983
19984
19985
19986case $host_os in
19987darwin[1567].*)
19988# We only want this for pre-Mac OS X 10.4.
19989 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019990if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019991
19992$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19993
19994 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19995fi
19996
19997 ;;
19998beos*)
19999 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20000 ;;
20001cygwin* | mingw* | os2* | pw32*)
20002 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20003"
cristyda16f162011-02-19 23:52:17 +000020004if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020005 ac_have_decl=1
20006else
20007 ac_have_decl=0
20008fi
20009
20010cat >>confdefs.h <<_ACEOF
20011#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20012_ACEOF
20013
20014 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20015 ;;
20016esac
20017
20018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20019$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020020if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020021 $as_echo_n "(cached) " >&6
20022else
20023 ac_check_lib_save_LIBS=$LIBS
20024LIBS="-ldld $LIBS"
20025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20026/* end confdefs.h. */
20027
20028/* Override any GCC internal prototype to avoid an error.
20029 Use char because int might match the return type of a GCC
20030 builtin and then its argument prototype would still apply. */
20031#ifdef __cplusplus
20032extern "C"
20033#endif
20034char dld_link ();
20035int
20036main ()
20037{
20038return dld_link ();
20039 ;
20040 return 0;
20041}
20042_ACEOF
20043if ac_fn_c_try_link "$LINENO"; then :
20044 ac_cv_lib_dld_dld_link=yes
20045else
20046 ac_cv_lib_dld_dld_link=no
20047fi
20048rm -f core conftest.err conftest.$ac_objext \
20049 conftest$ac_exeext conftest.$ac_ext
20050LIBS=$ac_check_lib_save_LIBS
20051fi
20052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20053$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020054if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020055
20056$as_echo "#define HAVE_DLD 1" >>confdefs.h
20057
20058 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20059fi
20060
20061
20062
20063
20064LT_DLPREOPEN=
20065if test -n "$LT_DLLOADERS"
20066then
20067 for lt_loader in $LT_DLLOADERS; do
20068 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20069 done
20070
20071$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20072
20073fi
20074
20075
20076LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20077
20078
20079ac_ext=c
20080ac_cpp='$CPP $CPPFLAGS'
20081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084
20085
20086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20087$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020088if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020089 $as_echo_n "(cached) " >&6
20090else
20091 lt_cv_sys_symbol_underscore=no
20092 cat > conftest.$ac_ext <<_LT_EOF
20093void nm_test_func(){}
20094int main(){nm_test_func;return 0;}
20095_LT_EOF
20096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20097 (eval $ac_compile) 2>&5
20098 ac_status=$?
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; then
20101 # Now try to grab the symbols.
20102 ac_nlist=conftest.nm
20103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20104 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20105 ac_status=$?
20106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20107 test $ac_status = 0; } && test -s "$ac_nlist"; then
20108 # See whether the symbols have a leading underscore.
20109 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20110 lt_cv_sys_symbol_underscore=yes
20111 else
20112 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20113 :
20114 else
20115 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20116 fi
20117 fi
20118 else
20119 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20120 fi
20121 else
20122 echo "configure: failed program was:" >&5
20123 cat conftest.c >&5
20124 fi
20125 rm -rf conftest*
20126
20127fi
20128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20129$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20130 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20131
20132
20133if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20134 if test x"$libltdl_cv_func_dlopen" = xyes ||
20135 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20137$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020138if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020139 $as_echo_n "(cached) " >&6
20140else
20141 libltdl_cv_need_uscore=unknown
20142 save_LIBS="$LIBS"
20143 LIBS="$LIBS $LIBADD_DLOPEN"
20144 if test "$cross_compiling" = yes; then :
20145 libltdl_cv_need_uscore=cross
20146else
20147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20148 lt_status=$lt_dlunknown
20149 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020150#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020151#include "confdefs.h"
20152
20153#if HAVE_DLFCN_H
20154#include <dlfcn.h>
20155#endif
20156
20157#include <stdio.h>
20158
20159#ifdef RTLD_GLOBAL
20160# define LT_DLGLOBAL RTLD_GLOBAL
20161#else
20162# ifdef DL_GLOBAL
20163# define LT_DLGLOBAL DL_GLOBAL
20164# else
20165# define LT_DLGLOBAL 0
20166# endif
20167#endif
20168
20169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20170 find out it does not work in some platform. */
20171#ifndef LT_DLLAZY_OR_NOW
20172# ifdef RTLD_LAZY
20173# define LT_DLLAZY_OR_NOW RTLD_LAZY
20174# else
20175# ifdef DL_LAZY
20176# define LT_DLLAZY_OR_NOW DL_LAZY
20177# else
20178# ifdef RTLD_NOW
20179# define LT_DLLAZY_OR_NOW RTLD_NOW
20180# else
20181# ifdef DL_NOW
20182# define LT_DLLAZY_OR_NOW DL_NOW
20183# else
20184# define LT_DLLAZY_OR_NOW 0
20185# endif
20186# endif
20187# endif
20188# endif
20189#endif
20190
cristy0c60a692010-11-04 01:09:47 +000020191/* When -fvisbility=hidden is used, assume the code has been annotated
20192 correspondingly for the symbols needed. */
20193#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020194int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020195#endif
20196
cristyda16f162011-02-19 23:52:17 +000020197int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020198int main ()
20199{
20200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20201 int status = $lt_dlunknown;
20202
20203 if (self)
20204 {
20205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020206 else
20207 {
20208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20209 else puts (dlerror ());
20210 }
cristy73bd4a52010-10-05 11:24:23 +000020211 /* dlclose (self); */
20212 }
20213 else
20214 puts (dlerror ());
20215
20216 return status;
20217}
20218_LT_EOF
20219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20220 (eval $ac_link) 2>&5
20221 ac_status=$?
20222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20224 (./conftest; exit; ) >&5 2>/dev/null
20225 lt_status=$?
20226 case x$lt_status in
20227 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20228 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20229 x$lt_dlunknown|x*) ;;
20230 esac
20231 else :
20232 # compilation failed
20233
20234 fi
20235fi
20236rm -fr conftest*
20237
20238 LIBS="$save_LIBS"
20239
20240fi
20241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20242$as_echo "$libltdl_cv_need_uscore" >&6; }
20243 fi
20244fi
20245
20246if test x"$libltdl_cv_need_uscore" = xyes; then
20247
20248$as_echo "#define NEED_USCORE 1" >>confdefs.h
20249
20250fi
20251
20252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20253$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020254if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020255 $as_echo_n "(cached) " >&6
20256else
20257 # PORTME does your system automatically load deplibs for dlopen?
20258 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20259 # For now, we just catch OSes we know something about -- in the
20260 # future, we'll try test this programmatically.
20261 lt_cv_sys_dlopen_deplibs=unknown
20262 case $host_os in
20263 aix3*|aix4.1.*|aix4.2.*)
20264 # Unknown whether this is true for these versions of AIX, but
20265 # we want this `case' here to explicitly catch those versions.
20266 lt_cv_sys_dlopen_deplibs=unknown
20267 ;;
20268 aix[4-9]*)
20269 lt_cv_sys_dlopen_deplibs=yes
20270 ;;
20271 amigaos*)
20272 case $host_cpu in
20273 powerpc)
20274 lt_cv_sys_dlopen_deplibs=no
20275 ;;
20276 esac
20277 ;;
20278 darwin*)
20279 # Assuming the user has installed a libdl from somewhere, this is true
20280 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20281 lt_cv_sys_dlopen_deplibs=yes
20282 ;;
20283 freebsd* | dragonfly*)
20284 lt_cv_sys_dlopen_deplibs=yes
20285 ;;
cristy0c60a692010-11-04 01:09:47 +000020286 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020287 # GNU and its variants, using gnu ld.so (Glibc)
20288 lt_cv_sys_dlopen_deplibs=yes
20289 ;;
20290 hpux10*|hpux11*)
20291 lt_cv_sys_dlopen_deplibs=yes
20292 ;;
20293 interix*)
20294 lt_cv_sys_dlopen_deplibs=yes
20295 ;;
20296 irix[12345]*|irix6.[01]*)
20297 # Catch all versions of IRIX before 6.2, and indicate that we don't
20298 # know how it worked for any of those versions.
20299 lt_cv_sys_dlopen_deplibs=unknown
20300 ;;
20301 irix*)
20302 # The case above catches anything before 6.2, and it's known that
20303 # at 6.2 and later dlopen does load deplibs.
20304 lt_cv_sys_dlopen_deplibs=yes
20305 ;;
20306 netbsd*)
20307 lt_cv_sys_dlopen_deplibs=yes
20308 ;;
20309 openbsd*)
20310 lt_cv_sys_dlopen_deplibs=yes
20311 ;;
20312 osf[1234]*)
20313 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20314 # it did *not* use an RPATH in a shared library to find objects the
20315 # library depends on, so we explicitly say `no'.
20316 lt_cv_sys_dlopen_deplibs=no
20317 ;;
20318 osf5.0|osf5.0a|osf5.1)
20319 # dlopen *does* load deplibs and with the right loader patch applied
20320 # it even uses RPATH in a shared library to search for shared objects
20321 # that the library depends on, but there's no easy way to know if that
20322 # patch is installed. Since this is the case, all we can really
20323 # say is unknown -- it depends on the patch being installed. If
20324 # it is, this changes to `yes'. Without it, it would be `no'.
20325 lt_cv_sys_dlopen_deplibs=unknown
20326 ;;
20327 osf*)
20328 # the two cases above should catch all versions of osf <= 5.1. Read
20329 # the comments above for what we know about them.
20330 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20331 # is used to find them so we can finally say `yes'.
20332 lt_cv_sys_dlopen_deplibs=yes
20333 ;;
20334 qnx*)
20335 lt_cv_sys_dlopen_deplibs=yes
20336 ;;
20337 solaris*)
20338 lt_cv_sys_dlopen_deplibs=yes
20339 ;;
20340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20341 libltdl_cv_sys_dlopen_deplibs=yes
20342 ;;
20343 esac
20344
20345fi
20346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20347$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20348if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20349
20350$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20351
20352fi
20353
20354:
20355
20356for ac_header in argz.h
20357do :
20358 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20359"
cristyda16f162011-02-19 23:52:17 +000020360if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020361 cat >>confdefs.h <<_ACEOF
20362#define HAVE_ARGZ_H 1
20363_ACEOF
20364
20365fi
20366
20367done
20368
20369
20370ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20371# include <argz.h>
20372#endif
20373"
cristyda16f162011-02-19 23:52:17 +000020374if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020375
20376cat >>confdefs.h <<_ACEOF
20377#define HAVE_ERROR_T 1
20378_ACEOF
20379
20380
20381else
20382
20383$as_echo "#define error_t int" >>confdefs.h
20384
20385
20386$as_echo "#define __error_t_defined 1" >>confdefs.h
20387
20388fi
20389
20390
20391ARGZ_H=
20392for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20393 argz_next argz_stringify
20394do :
20395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20396ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020397if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020398 cat >>confdefs.h <<_ACEOF
20399#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20400_ACEOF
20401
20402else
20403 ARGZ_H=argz.h;
20404
20405 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20406
20407fi
20408done
20409
20410
20411if test -z "$ARGZ_H"; then :
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20413$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020414if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020415 $as_echo_n "(cached) " >&6
20416else
20417 case $host_os in #(
20418 *cygwin*)
20419 lt_cv_sys_argz_works=no
20420 if test "$cross_compiling" != no; then
20421 lt_cv_sys_argz_works="guessing no"
20422 else
20423 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20424 save_IFS=$IFS
20425 IFS=-.
20426 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20427 IFS=$save_IFS
20428 lt_os_major=${2-0}
20429 lt_os_minor=${3-0}
20430 lt_os_micro=${4-0}
20431 if test "$lt_os_major" -gt 1 \
20432 || { test "$lt_os_major" -eq 1 \
20433 && { test "$lt_os_minor" -gt 5 \
20434 || { test "$lt_os_minor" -eq 5 \
20435 && test "$lt_os_micro" -gt 24; }; }; }; then
20436 lt_cv_sys_argz_works=yes
20437 fi
20438 fi
20439 ;; #(
20440 *) lt_cv_sys_argz_works=yes ;;
20441 esac
20442fi
20443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20444$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020445 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020446
20447$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20448
20449else
20450 ARGZ_H=argz.h
20451
20452
20453 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20454
20455fi
20456fi
20457
20458
20459
20460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20461$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020462if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020463 $as_echo_n "(cached) " >&6
20464else
20465 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20466 libltdl_cv_preloaded_symbols=yes
20467 else
20468 libltdl_cv_preloaded_symbols=no
20469 fi
20470
20471fi
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20473$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20474if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20475
20476$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20477
20478fi
20479
20480# Set options
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492# Check whether --with-included_ltdl was given.
20493if test "${with_included_ltdl+set}" = set; then :
20494 withval=$with_included_ltdl;
20495fi
20496
20497
20498if test "x$with_included_ltdl" != xyes; then
20499 # We are not being forced to use the included libltdl sources, so
20500 # decide whether there is a useful installed version we can use.
20501 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20502
20503"
cristyda16f162011-02-19 23:52:17 +000020504if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020505 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20506 #include <ltdl.h>
20507"
cristyda16f162011-02-19 23:52:17 +000020508if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20510$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020511if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020512 $as_echo_n "(cached) " >&6
20513else
20514 ac_check_lib_save_LIBS=$LIBS
20515LIBS="-lltdl $LIBS"
20516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20517/* end confdefs.h. */
20518
20519/* Override any GCC internal prototype to avoid an error.
20520 Use char because int might match the return type of a GCC
20521 builtin and then its argument prototype would still apply. */
20522#ifdef __cplusplus
20523extern "C"
20524#endif
20525char lt_dladvise_preload ();
20526int
20527main ()
20528{
20529return lt_dladvise_preload ();
20530 ;
20531 return 0;
20532}
20533_ACEOF
20534if ac_fn_c_try_link "$LINENO"; then :
20535 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20536else
20537 ac_cv_lib_ltdl_lt_dladvise_preload=no
20538fi
20539rm -f core conftest.err conftest.$ac_objext \
20540 conftest$ac_exeext conftest.$ac_ext
20541LIBS=$ac_check_lib_save_LIBS
20542fi
20543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20544$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020545if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020546 with_included_ltdl=no
20547else
20548 with_included_ltdl=yes
20549fi
20550
20551else
20552 with_included_ltdl=yes
20553fi
20554
20555else
20556 with_included_ltdl=yes
20557fi
20558
20559
20560fi
20561
20562
20563
20564
20565# Check whether --with-ltdl_include was given.
20566if test "${with_ltdl_include+set}" = set; then :
20567 withval=$with_ltdl_include;
20568fi
20569
20570
20571if test -n "$with_ltdl_include"; then
20572 if test -f "$with_ltdl_include/ltdl.h"; then :
20573 else
cristy98dddb52010-11-04 00:30:15 +000020574 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020575 fi
20576else
20577 with_ltdl_include=no
20578fi
20579
20580
20581# Check whether --with-ltdl_lib was given.
20582if test "${with_ltdl_lib+set}" = set; then :
20583 withval=$with_ltdl_lib;
20584fi
20585
20586
20587if test -n "$with_ltdl_lib"; then
20588 if test -f "$with_ltdl_lib/libltdl.la"; then :
20589 else
cristy98dddb52010-11-04 00:30:15 +000020590 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020591 fi
20592else
20593 with_ltdl_lib=no
20594fi
20595
20596case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20597 ,yes,no,no,)
20598 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020599 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020600 "") enable_ltdl_convenience=yes
20601 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20602esac
20603LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20604LTDLDEPS=$LIBLTDL
20605LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20606
20607
20608
20609
20610
20611# For backwards non-gettext consistent compatibility...
20612INCLTDL="$LTDLINCL"
20613
20614
20615 ;;
20616 ,no,no,no,)
20617 # If the included ltdl is not to be used, then use the
20618 # preinstalled libltdl we found.
20619
20620$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20621
20622 LIBLTDL=-lltdl
20623 LTDLDEPS=
20624 LTDLINCL=
20625 ;;
20626 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020627 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020628 ;;
20629 *) with_included_ltdl=no
20630 LIBLTDL="-L$with_ltdl_lib -lltdl"
20631 LTDLDEPS=
20632 LTDLINCL="-I$with_ltdl_include"
20633 ;;
20634esac
20635INCLTDL="$LTDLINCL"
20636
20637# Report our decision...
20638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20639$as_echo_n "checking where to find libltdl headers... " >&6; }
20640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20641$as_echo "$LTDLINCL" >&6; }
20642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20643$as_echo_n "checking where to find libltdl library... " >&6; }
20644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20645$as_echo "$LIBLTDL" >&6; }
20646
20647
20648
20649# Check whether --enable-ltdl-install was given.
20650if test "${enable_ltdl_install+set}" = set; then :
20651 enableval=$enable_ltdl_install;
20652fi
20653
20654
20655case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20656 *yes*) ;;
20657 *) enable_ltdl_convenience=yes ;;
20658esac
20659
20660 if test x"${enable_ltdl_install-no}" != xno; then
20661 INSTALL_LTDL_TRUE=
20662 INSTALL_LTDL_FALSE='#'
20663else
20664 INSTALL_LTDL_TRUE='#'
20665 INSTALL_LTDL_FALSE=
20666fi
20667
20668 if test x"${enable_ltdl_convenience-no}" != xno; then
20669 CONVENIENCE_LTDL_TRUE=
20670 CONVENIENCE_LTDL_FALSE='#'
20671else
20672 CONVENIENCE_LTDL_TRUE='#'
20673 CONVENIENCE_LTDL_FALSE=
20674fi
20675
20676
20677
20678
20679
20680
cristy73bd4a52010-10-05 11:24:23 +000020681# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20682# the user used. This is so that ltdl.h can pick up the parent projects
20683# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20684# definitions required by ltdl.c.
20685# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20686
20687
20688
20689for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20690do :
20691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20692ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20693"
cristy98dddb52010-11-04 00:30:15 +000020694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020695 cat >>confdefs.h <<_ACEOF
20696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20697_ACEOF
20698
20699fi
20700
20701done
20702
20703
20704for ac_func in closedir opendir readdir
20705do :
20706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20707ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020708if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020709 cat >>confdefs.h <<_ACEOF
20710#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20711_ACEOF
20712
20713else
20714
20715
20716 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20717
20718fi
20719done
20720
20721for ac_func in strlcat strlcpy
20722do :
20723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20724ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020725if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020726 cat >>confdefs.h <<_ACEOF
20727#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20728_ACEOF
20729
20730else
20731
20732
20733 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20734
20735fi
20736done
20737
20738
20739
20740cat >>confdefs.h <<_ACEOF
20741#define LT_LIBEXT "$libext"
20742_ACEOF
20743
20744
cristyda16f162011-02-19 23:52:17 +000020745name=
20746eval "lt_libprefix=\"$libname_spec\""
20747
20748cat >>confdefs.h <<_ACEOF
20749#define LT_LIBPREFIX "$lt_libprefix"
20750_ACEOF
20751
20752
cristy73bd4a52010-10-05 11:24:23 +000020753name=ltdl
cristyda16f162011-02-19 23:52:17 +000020754eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020755
20756
20757
20758
20759
20760
20761
20762
20763# Only expand once:
20764
20765
cristy3ed852e2009-09-05 21:47:34 +000020766
20767# Check to see if building shared libraries
20768libtool_build_shared_libs='no'
20769if test "$enable_shared" = 'yes'; then
20770 libtool_build_shared_libs='yes'
20771fi
20772
20773# Check to see if building static libraries
20774libtool_build_static_libs='no'
20775if test "$enable_static" = 'yes'; then
20776 libtool_build_static_libs='yes'
20777fi
20778
cristy73bd4a52010-10-05 11:24:23 +000020779 if test "${libtool_build_shared_libs}" = 'yes'; then
20780 WITH_SHARED_LIBS_TRUE=
20781 WITH_SHARED_LIBS_FALSE='#'
20782else
20783 WITH_SHARED_LIBS_TRUE='#'
20784 WITH_SHARED_LIBS_FALSE=
20785fi
20786
cristy3ed852e2009-09-05 21:47:34 +000020787#
20788# Enable support for building loadable modules
20789#
20790
20791# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020792if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020793 withval=$with_modules; with_modules=$withval
20794else
cristy5a1cefd2010-01-06 20:42:35 +000020795 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020796fi
20797
20798
20799# Only allow building loadable modules if we are building shared libraries
20800if test "$with_modules" != 'no' ; then
20801 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020802 { $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 +000020803$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20804 with_modules='no'
20805 fi
20806fi
20807if test "$with_modules" != 'no'; then
20808
cristy8b350f62009-11-15 23:12:43 +000020809$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020810
20811fi
cristy73bd4a52010-10-05 11:24:23 +000020812 if test "$with_modules" != 'no'; then
20813 WITH_MODULES_TRUE=
20814 WITH_MODULES_FALSE='#'
20815else
20816 WITH_MODULES_TRUE='#'
20817 WITH_MODULES_FALSE=
20818fi
20819
cristy3ed852e2009-09-05 21:47:34 +000020820
20821# Enable building/use of libltdl if we are building shared libraries regardless
20822# of whether modules are built or not.
20823with_ltdl='no'
20824if test "$libtool_build_shared_libs" != 'no'; then
20825 with_ltdl='yes'
20826fi
20827
cristy73bd4a52010-10-05 11:24:23 +000020828 if test "$with_ltdl" != 'no'; then
20829 WITH_LTDL_TRUE=
20830 WITH_LTDL_FALSE='#'
20831else
20832 WITH_LTDL_TRUE='#'
20833 WITH_LTDL_FALSE=
20834fi
20835
cristy3ed852e2009-09-05 21:47:34 +000020836if test "$with_ltdl" != 'no'; then
20837
cristy8b350f62009-11-15 23:12:43 +000020838$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020839
20840
20841 # Set DLLDFLAGS
20842 if test X"$enable_shared" = Xyes; then
20843 DLLDFLAGS=-export-dynamic
20844
20845 fi
20846fi
20847
20848# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020849# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020850# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020851if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020852 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20853else
20854 enable_delegate_build='no'
20855fi
20856
20857
20858# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020859if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020860 enableval=$enable_deprecated; enable_deprecated=$enableval
20861else
20862 enable_deprecated='no'
20863fi
20864
20865
20866if test "$enable_deprecated" = 'yes'; then
20867
cristy8b350f62009-11-15 23:12:43 +000020868$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020869
20870else
20871 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20872fi
20873
20874# Build a version of ImageMagick which operates uninstalled.
20875# Used to build distributions located via MAGICK_HOME / executable path
20876# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020877if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020878 enableval=$enable_installed; enable_installed=$enableval
20879else
20880 enable_installed='yes'
20881fi
20882
20883
20884if test "$enable_installed" = 'yes'; then
20885
cristy8b350f62009-11-15 23:12:43 +000020886$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020887
20888else
20889 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20890fi
20891
20892# Permit enciphering and deciphering image pixels.
20893# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020894if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020895 enableval=$enable_cipher; enable_cipher=$enableval
20896else
20897 enable_cipher='yes'
20898fi
20899
20900
20901if test "$enable_cipher" = 'yes'; then
20902
cristy8b350f62009-11-15 23:12:43 +000020903$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020904
20905fi
20906
20907# Build an embeddable version of ImageMagick.
20908# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020909if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020910 enableval=$enable_embeddable; enable_embeddable=$enableval
20911else
20912 enable_embeddable='no'
20913fi
20914
20915
20916if test "$enable_embeddable" = 'yes'; then
20917
cristy8b350f62009-11-15 23:12:43 +000020918$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020919
20920fi
20921
20922# Build a high dynamic range version of ImageMagick.
20923# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020924if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020925 enableval=$enable_hdri; enable_hdri=$enableval
20926else
20927 enable_hdri='no'
20928fi
20929
20930
20931MAGICK_HDRI=""
20932if test "$enable_hdri" = 'yes'; then
20933 MAGICK_HDRI="HDRI"
20934
cristy8b350f62009-11-15 23:12:43 +000020935$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020936
cristyfd9dcd42010-08-08 18:07:02 +000020937 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020938fi
20939
cristy3ed852e2009-09-05 21:47:34 +000020940# Build a version of ImageMagick with assert statements.
20941# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020942if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020943 enableval=$enable_assert; enable_assert=$enableval
20944else
20945 enable_assert='yes'
20946fi
20947
20948
20949if test "$enable_assert" = 'no'; then
20950
cristy8b350f62009-11-15 23:12:43 +000020951$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020952
20953fi
20954
20955# Add configure option --enable-maintainer-mode which enables dependency
20956# checking and generation useful to package maintainers. This is made an
20957# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020958
20959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20960$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20961 # Check whether --enable-maintainer-mode was given.
20962if test "${enable_maintainer_mode+set}" = set; then :
20963 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20964else
20965 USE_MAINTAINER_MODE=no
20966fi
20967
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20969$as_echo "$USE_MAINTAINER_MODE" >&6; }
20970 if test $USE_MAINTAINER_MODE = yes; then
20971 MAINTAINER_MODE_TRUE=
20972 MAINTAINER_MODE_FALSE='#'
20973else
20974 MAINTAINER_MODE_TRUE='#'
20975 MAINTAINER_MODE_FALSE=
20976fi
20977
20978 MAINT=$MAINTAINER_MODE_TRUE
20979
20980
cristy3ed852e2009-09-05 21:47:34 +000020981
20982
20983# Enable ccmalloc memory debugging support
20984# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020985if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020986 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20987else
20988 enable_ccmalloc='no'
20989fi
20990
20991
20992# Enable Electric Fence memory debugging support
20993# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020994if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020995 enableval=$enable_efence; enable_efence=$enableval
20996else
20997 enable_efence='no'
20998fi
20999
21000
21001# Enable prof-based profiling support
21002# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021003if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021004 enableval=$enable_prof; enable_prof=$enableval
21005else
21006 enable_prof='no'
21007fi
21008
21009
21010# Enable gprof-based profiling support
21011# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021012if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021013 enableval=$enable_gprof; enable_gprof=$enableval
21014else
21015 enable_gprof='no'
21016fi
21017
21018
21019# Enable gcov-based profiling support
21020# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021021if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021022 enableval=$enable_gcov; enable_gcov=$enableval
21023else
21024 enable_gcov='no'
21025fi
21026
21027
21028enable_profiling='no'
21029if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21030 enable_profiling='yes'
21031 if test "$libtool_build_shared_libs" = 'yes'; then
21032 echo "Warning: Can not profile code using shared libraries"
21033 fi
21034fi
21035
21036# Magick API method prefix
21037
21038# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021039if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021040 withval=$with_method_prefix; with_method_prefix=$enableval
21041else
21042 with_method_prefix=''
21043fi
21044
21045
21046if test "$with_method_prefix" != ''; then
21047
21048cat >>confdefs.h <<_ACEOF
21049#define NAMESPACE_PREFIX $with_method_prefix
21050_ACEOF
21051
21052fi
21053
21054# Number of bits in a Quantum
21055
21056# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021057if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021058 withval=$with_quantum_depth; with_quantum_depth=$withval
21059else
21060 with_quantum_depth=16
21061fi
21062
21063
21064if test "$with_quantum_depth" != '8'; then
21065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21066fi
21067
21068case "${with_quantum_depth}" in
21069 8 ) ;;
21070 16 ) ;;
21071 32 ) ;;
21072 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021073 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021074esac
cristycdae12a2010-09-19 02:24:31 +000021075if test "$enable_hdri" = 'yes'; then
21076 with_quantum_depth=16
21077fi
cristy3ed852e2009-09-05 21:47:34 +000021078QUANTUM_DEPTH="$with_quantum_depth"
21079
21080cat >>confdefs.h <<_ACEOF
21081#define QUANTUM_DEPTH $QUANTUM_DEPTH
21082_ACEOF
21083
21084
21085# Set pixel cache threshold
21086
21087# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021088if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021089 withval=$with_cache; with_cache=$withval
21090else
21091 with_cache=''
21092fi
21093
21094
21095if test "$with_cache" != ''; then
21096
21097cat >>confdefs.h <<_ACEOF
21098#define PixelCacheThreshold $with_cache
21099_ACEOF
21100
21101 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21102fi
21103
21104# Disable/Enable support for full delegate paths
21105
21106# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021107if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021108 withval=$with_frozenpaths; with_frozenpaths=$withval
21109else
21110 with_frozenpaths='no'
21111fi
21112
21113
21114# Enable build/install of Magick++
21115
21116# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021117if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021118 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21119else
21120 with_magick_plus_plus='yes'
21121fi
21122
21123
21124# Disable build/install of PerlMagick.
21125
21126# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021127if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021128 withval=$with_perl; with_perl=$withval
21129else
cristyb5f4e2f2010-04-25 00:49:11 +000021130 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021131fi
21132
21133
21134# Options to pass when configuring PerlMagick
21135
21136# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021137if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021138 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021139fi
21140
21141
cristy3ed852e2009-09-05 21:47:34 +000021142
21143# Enable umem, object-caching memory allocation library.
21144
21145# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021146if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021147 withval=$with_umem; with_umem=$withval
21148else
21149 with_umem='no'
21150fi
21151
21152if test "$with_umem" != 'yes' ; then
21153 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21154fi
21155
21156#
21157# Specify path to shared libstdc++ if not in normal location
21158#
21159
21160# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021161if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021162 withval=$with_libstdc; with_libstdc=$withval
21163else
21164 with_libstdc=''
21165fi
21166
21167
21168if test "$with_libstdc" != ''; then
21169 if test -d "$with_libstdc"; then
21170 LIBSTDCLDFLAGS="-L$with_libstdc"
21171 fi
21172fi
21173
21174
21175# Does gcc required -traditional?
21176if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021178$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021179if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021180 $as_echo_n "(cached) " >&6
21181else
21182 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021184/* end confdefs.h. */
21185#include <sgtty.h>
21186Autoconf TIOCGETP
21187_ACEOF
21188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021189 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021190 ac_cv_prog_gcc_traditional=yes
21191else
21192 ac_cv_prog_gcc_traditional=no
21193fi
21194rm -f conftest*
21195
21196
21197 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021199/* end confdefs.h. */
21200#include <termio.h>
21201Autoconf TCGETA
21202_ACEOF
21203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021204 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021205 ac_cv_prog_gcc_traditional=yes
21206fi
21207rm -f conftest*
21208
21209 fi
21210fi
cristy8b350f62009-11-15 23:12:43 +000021211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021212$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21213 if test $ac_cv_prog_gcc_traditional = yes; then
21214 CC="$CC -traditional"
21215 fi
21216fi
21217
21218
21219########
21220#
21221# Set defines required to build DLLs and modules using MinGW
21222#
21223########
21224# These options are set for multi-thread DLL module build
21225# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21226# module: _DLL
21227# executable/Magick++: _DLL _MAGICKMOD_
21228MODULE_EXTRA_CPPFLAGS=''
21229LIBRARY_EXTRA_CPPFLAGS=''
21230if test "${native_win32_build}" = 'yes'; then
21231 if test "${libtool_build_shared_libs}" = 'yes'; then
21232 CPPFLAGS="$CPPFLAGS -D_DLL"
21233 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21234 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21235 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21236 if test "$with_modules" = 'yes'; then
21237 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21238 else
21239 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21240 fi
21241 else
21242 CPPFLAGS="$CPPFLAGS -D_LIB"
21243 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21244 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21245 fi
21246 if test "$with_threads" = 'yes'; then
21247 CPPFLAGS="$CPPFLAGS -D_MT"
21248 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21249 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21250 fi
21251fi
21252
21253
21254
21255# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021257$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021258if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021259 $as_echo_n "(cached) " >&6
21260else
cristy8b350f62009-11-15 23:12:43 +000021261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021262/* end confdefs.h. */
21263#include <stdlib.h>
21264#include <stdarg.h>
21265#include <string.h>
21266#include <float.h>
21267
21268int
21269main ()
21270{
21271
21272 ;
21273 return 0;
21274}
21275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021276if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021277 ac_cv_header_stdc=yes
21278else
cristy8b350f62009-11-15 23:12:43 +000021279 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021280fi
cristy3ed852e2009-09-05 21:47:34 +000021281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21282
21283if test $ac_cv_header_stdc = yes; then
21284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021286/* end confdefs.h. */
21287#include <string.h>
21288
21289_ACEOF
21290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021291 $EGREP "memchr" >/dev/null 2>&1; then :
21292
cristy3ed852e2009-09-05 21:47:34 +000021293else
21294 ac_cv_header_stdc=no
21295fi
21296rm -f conftest*
21297
21298fi
21299
21300if test $ac_cv_header_stdc = yes; then
21301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021303/* end confdefs.h. */
21304#include <stdlib.h>
21305
21306_ACEOF
21307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021308 $EGREP "free" >/dev/null 2>&1; then :
21309
cristy3ed852e2009-09-05 21:47:34 +000021310else
21311 ac_cv_header_stdc=no
21312fi
21313rm -f conftest*
21314
21315fi
21316
21317if test $ac_cv_header_stdc = yes; then
21318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021319 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021320 :
21321else
cristy8b350f62009-11-15 23:12:43 +000021322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021323/* end confdefs.h. */
21324#include <ctype.h>
21325#include <stdlib.h>
21326#if ((' ' & 0x0FF) == 0x020)
21327# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21328# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21329#else
21330# define ISLOWER(c) \
21331 (('a' <= (c) && (c) <= 'i') \
21332 || ('j' <= (c) && (c) <= 'r') \
21333 || ('s' <= (c) && (c) <= 'z'))
21334# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21335#endif
21336
21337#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21338int
21339main ()
21340{
21341 int i;
21342 for (i = 0; i < 256; i++)
21343 if (XOR (islower (i), ISLOWER (i))
21344 || toupper (i) != TOUPPER (i))
21345 return 2;
21346 return 0;
21347}
21348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021349if ac_fn_c_try_run "$LINENO"; then :
21350
cristy3ed852e2009-09-05 21:47:34 +000021351else
cristy8b350f62009-11-15 23:12:43 +000021352 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021353fi
cristy8b350f62009-11-15 23:12:43 +000021354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21355 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021356fi
21357
cristy3ed852e2009-09-05 21:47:34 +000021358fi
21359fi
cristy8b350f62009-11-15 23:12:43 +000021360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021361$as_echo "$ac_cv_header_stdc" >&6; }
21362if test $ac_cv_header_stdc = yes; then
21363
cristy8b350f62009-11-15 23:12:43 +000021364$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021365
21366fi
21367
21368if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021369 { $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 +000021370 header files. Compilation cannot proceed. Please install the ANSI C
21371 headers and rerun this script." >&5
21372$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21373 header files. Compilation cannot proceed. Please install the ANSI C
21374 headers and rerun this script." >&2;};
21375fi
cristya0b81c32010-01-22 02:54:33 +000021376
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21378$as_echo_n "checking whether to enable assertions... " >&6; }
21379 # Check whether --enable-assert was given.
21380if test "${enable_assert+set}" = set; then :
21381 enableval=$enable_assert; ac_enable_assert=$enableval
21382 if test "x$enableval" = xno; then :
21383
21384$as_echo "#define NDEBUG 1" >>confdefs.h
21385
21386elif test "x$enableval" != xyes; then :
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21388$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21389 ac_enable_assert=yes
21390fi
21391else
21392 ac_enable_assert=yes
21393fi
21394
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21396$as_echo "$ac_enable_assert" >&6; }
21397
cristy3ed852e2009-09-05 21:47:34 +000021398ac_header_dirent=no
21399for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21400 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021402$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021403if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021404 $as_echo_n "(cached) " >&6
21405else
cristy8b350f62009-11-15 23:12:43 +000021406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021407/* end confdefs.h. */
21408#include <sys/types.h>
21409#include <$ac_hdr>
21410
21411int
21412main ()
21413{
21414if ((DIR *) 0)
21415return 0;
21416 ;
21417 return 0;
21418}
21419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021420if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021421 eval "$as_ac_Header=yes"
21422else
cristy8b350f62009-11-15 23:12:43 +000021423 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021424fi
cristy3ed852e2009-09-05 21:47:34 +000021425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426fi
cristy8b350f62009-11-15 23:12:43 +000021427eval ac_res=\$$as_ac_Header
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021429$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021431 cat >>confdefs.h <<_ACEOF
21432#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21433_ACEOF
21434
21435ac_header_dirent=$ac_hdr; break
21436fi
21437
21438done
21439# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21440if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021442$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021443if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021444 $as_echo_n "(cached) " >&6
21445else
21446 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021448/* end confdefs.h. */
21449
21450/* Override any GCC internal prototype to avoid an error.
21451 Use char because int might match the return type of a GCC
21452 builtin and then its argument prototype would still apply. */
21453#ifdef __cplusplus
21454extern "C"
21455#endif
21456char opendir ();
21457int
21458main ()
21459{
21460return opendir ();
21461 ;
21462 return 0;
21463}
21464_ACEOF
21465for ac_lib in '' dir; do
21466 if test -z "$ac_lib"; then
21467 ac_res="none required"
21468 else
21469 ac_res=-l$ac_lib
21470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21471 fi
cristy8b350f62009-11-15 23:12:43 +000021472 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021473 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021474fi
cristy8b350f62009-11-15 23:12:43 +000021475rm -f core conftest.err conftest.$ac_objext \
21476 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021477 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021478 break
21479fi
21480done
cristyda16f162011-02-19 23:52:17 +000021481if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021482
cristy3ed852e2009-09-05 21:47:34 +000021483else
21484 ac_cv_search_opendir=no
21485fi
21486rm conftest.$ac_ext
21487LIBS=$ac_func_search_save_LIBS
21488fi
cristy8b350f62009-11-15 23:12:43 +000021489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021490$as_echo "$ac_cv_search_opendir" >&6; }
21491ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021492if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21494
21495fi
21496
21497else
cristy8b350f62009-11-15 23:12:43 +000021498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021499$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021500if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021501 $as_echo_n "(cached) " >&6
21502else
21503 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021505/* end confdefs.h. */
21506
21507/* Override any GCC internal prototype to avoid an error.
21508 Use char because int might match the return type of a GCC
21509 builtin and then its argument prototype would still apply. */
21510#ifdef __cplusplus
21511extern "C"
21512#endif
21513char opendir ();
21514int
21515main ()
21516{
21517return opendir ();
21518 ;
21519 return 0;
21520}
21521_ACEOF
21522for ac_lib in '' x; do
21523 if test -z "$ac_lib"; then
21524 ac_res="none required"
21525 else
21526 ac_res=-l$ac_lib
21527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21528 fi
cristy8b350f62009-11-15 23:12:43 +000021529 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021530 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021531fi
cristy8b350f62009-11-15 23:12:43 +000021532rm -f core conftest.err conftest.$ac_objext \
21533 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021534 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021535 break
21536fi
21537done
cristyda16f162011-02-19 23:52:17 +000021538if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021539
cristy3ed852e2009-09-05 21:47:34 +000021540else
21541 ac_cv_search_opendir=no
21542fi
21543rm conftest.$ac_ext
21544LIBS=$ac_func_search_save_LIBS
21545fi
cristy8b350f62009-11-15 23:12:43 +000021546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021547$as_echo "$ac_cv_search_opendir" >&6; }
21548ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021549if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21551
21552fi
21553
21554fi
21555
21556
21557# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021558for 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
cristy8b350f62009-11-15 23:12:43 +000021559do :
21560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21561ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021563 cat >>confdefs.h <<_ACEOF
21564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21565_ACEOF
21566
21567fi
21568
21569done
21570
21571
21572########
21573#
21574# Checks for typedefs, structures, and compiler characteristics.
21575#
21576########
21577
cristy8b350f62009-11-15 23:12:43 +000021578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021579$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021580if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021581 $as_echo_n "(cached) " >&6
21582else
cristy8b350f62009-11-15 23:12:43 +000021583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021584/* end confdefs.h. */
21585
21586#include <stdbool.h>
21587#ifndef bool
21588 "error: bool is not defined"
21589#endif
21590#ifndef false
21591 "error: false is not defined"
21592#endif
21593#if false
21594 "error: false is not 0"
21595#endif
21596#ifndef true
21597 "error: true is not defined"
21598#endif
21599#if true != 1
21600 "error: true is not 1"
21601#endif
21602#ifndef __bool_true_false_are_defined
21603 "error: __bool_true_false_are_defined is not defined"
21604#endif
21605
21606 struct s { _Bool s: 1; _Bool t; } s;
21607
21608 char a[true == 1 ? 1 : -1];
21609 char b[false == 0 ? 1 : -1];
21610 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21611 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021612 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021613 char f[(_Bool) 0.0 == false ? 1 : -1];
21614 char g[true];
21615 char h[sizeof (_Bool)];
21616 char i[sizeof s.t];
21617 enum { j = false, k = true, l = false * true, m = true * 256 };
21618 /* The following fails for
21619 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21620 _Bool n[m];
21621 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21622 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021623 /* Catch a bug in an HP-UX C compiler. See
21624 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21625 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21626 */
21627 _Bool q = true;
21628 _Bool *pq = &q;
21629
21630int
21631main ()
21632{
21633
cristyda16f162011-02-19 23:52:17 +000021634 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021635 *pq |= q;
21636 *pq |= ! q;
21637 /* Refer to every declared value, to avoid compiler optimizations. */
21638 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21639 + !m + !n + !o + !p + !q + !pq);
21640
21641 ;
21642 return 0;
21643}
21644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021645if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021646 ac_cv_header_stdbool_h=yes
21647else
cristy8b350f62009-11-15 23:12:43 +000021648 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021649fi
cristy3ed852e2009-09-05 21:47:34 +000021650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651fi
cristy8b350f62009-11-15 23:12:43 +000021652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021653$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021654ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021655if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021656
21657cat >>confdefs.h <<_ACEOF
21658#define HAVE__BOOL 1
21659_ACEOF
21660
21661
21662fi
21663
21664if test $ac_cv_header_stdbool_h = yes; then
21665
cristy8b350f62009-11-15 23:12:43 +000021666$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021667
21668fi
21669
cristy8b350f62009-11-15 23:12:43 +000021670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021671$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021672if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021673 $as_echo_n "(cached) " >&6
21674else
cristy8b350f62009-11-15 23:12:43 +000021675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021676/* end confdefs.h. */
21677
21678int
21679main ()
21680{
21681
21682volatile int x;
21683int * volatile y = (int *) 0;
21684return !x && !y;
21685 ;
21686 return 0;
21687}
21688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021689if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021690 ac_cv_c_volatile=yes
21691else
cristy8b350f62009-11-15 23:12:43 +000021692 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021693fi
cristy3ed852e2009-09-05 21:47:34 +000021694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21695fi
cristy8b350f62009-11-15 23:12:43 +000021696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021697$as_echo "$ac_cv_c_volatile" >&6; }
21698if test $ac_cv_c_volatile = no; then
21699
cristy8b350f62009-11-15 23:12:43 +000021700$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021701
21702fi
21703
cristy8b350f62009-11-15 23:12:43 +000021704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021705$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021706if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021707 $as_echo_n "(cached) " >&6
21708else
cristy8b350f62009-11-15 23:12:43 +000021709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021710/* end confdefs.h. */
21711#define x(y) #y
21712
21713char *s = x(teststring);
21714_ACEOF
21715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021716 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021717 ac_cv_c_stringize=no
21718else
21719 ac_cv_c_stringize=yes
21720fi
21721rm -f conftest*
21722
21723fi
cristy8b350f62009-11-15 23:12:43 +000021724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021725$as_echo "$ac_cv_c_stringize" >&6; }
21726if test $ac_cv_c_stringize = yes; then
21727
cristy8b350f62009-11-15 23:12:43 +000021728$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021729
21730fi
21731
cristy8b350f62009-11-15 23:12:43 +000021732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021733$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021734if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021735 $as_echo_n "(cached) " >&6
21736else
cristy8b350f62009-11-15 23:12:43 +000021737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021738/* end confdefs.h. */
21739#include <sys/types.h>
21740#include <sys/stat.h>
21741
21742#if defined S_ISBLK && defined S_IFDIR
21743extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21744#endif
21745
21746#if defined S_ISBLK && defined S_IFCHR
21747extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21748#endif
21749
21750#if defined S_ISLNK && defined S_IFREG
21751extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21752#endif
21753
21754#if defined S_ISSOCK && defined S_IFREG
21755extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21756#endif
21757
21758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021759if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021760 ac_cv_header_stat_broken=no
21761else
cristy8b350f62009-11-15 23:12:43 +000021762 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021763fi
cristy3ed852e2009-09-05 21:47:34 +000021764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21765fi
cristy8b350f62009-11-15 23:12:43 +000021766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021767$as_echo "$ac_cv_header_stat_broken" >&6; }
21768if test $ac_cv_header_stat_broken = yes; then
21769
cristy8b350f62009-11-15 23:12:43 +000021770$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021771
21772fi
21773
cristy8b350f62009-11-15 23:12:43 +000021774{ $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 +000021775$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021776if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021777 $as_echo_n "(cached) " >&6
21778else
cristy8b350f62009-11-15 23:12:43 +000021779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021780/* end confdefs.h. */
21781#include <sys/types.h>
21782#include <sys/time.h>
21783#include <time.h>
21784
21785int
21786main ()
21787{
21788if ((struct tm *) 0)
21789return 0;
21790 ;
21791 return 0;
21792}
21793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021794if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021795 ac_cv_header_time=yes
21796else
cristy8b350f62009-11-15 23:12:43 +000021797 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021798fi
cristy3ed852e2009-09-05 21:47:34 +000021799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800fi
cristy8b350f62009-11-15 23:12:43 +000021801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021802$as_echo "$ac_cv_header_time" >&6; }
21803if test $ac_cv_header_time = yes; then
21804
cristy8b350f62009-11-15 23:12:43 +000021805$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021806
21807fi
21808
cristy8b350f62009-11-15 23:12:43 +000021809{ $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 +000021810$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021811if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021812 $as_echo_n "(cached) " >&6
21813else
cristy8b350f62009-11-15 23:12:43 +000021814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021815/* end confdefs.h. */
21816#include <sys/types.h>
21817#include <time.h>
21818
21819int
21820main ()
21821{
21822struct tm tm;
21823 int *p = &tm.tm_sec;
21824 return !p;
21825 ;
21826 return 0;
21827}
21828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021829if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021830 ac_cv_struct_tm=time.h
21831else
cristy8b350f62009-11-15 23:12:43 +000021832 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021833fi
cristy3ed852e2009-09-05 21:47:34 +000021834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21835fi
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo "$ac_cv_struct_tm" >&6; }
21838if test $ac_cv_struct_tm = sys/time.h; then
21839
cristy8b350f62009-11-15 23:12:43 +000021840$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021841
21842fi
21843
cristy92703d82010-04-26 00:18:18 +000021844ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21845#include <$ac_cv_struct_tm>
21846
21847"
cristyda16f162011-02-19 23:52:17 +000021848if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021849
21850cat >>confdefs.h <<_ACEOF
21851#define HAVE_STRUCT_TM_TM_ZONE 1
21852_ACEOF
21853
21854
21855fi
21856
21857if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21858
21859$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21860
21861else
21862 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21863"
cristyda16f162011-02-19 23:52:17 +000021864if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021865 ac_have_decl=1
21866else
21867 ac_have_decl=0
21868fi
21869
21870cat >>confdefs.h <<_ACEOF
21871#define HAVE_DECL_TZNAME $ac_have_decl
21872_ACEOF
21873
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21875$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021876if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021877 $as_echo_n "(cached) " >&6
21878else
21879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21880/* end confdefs.h. */
21881#include <time.h>
21882#if !HAVE_DECL_TZNAME
21883extern char *tzname[];
21884#endif
21885
21886int
21887main ()
21888{
21889return tzname[0][0];
21890 ;
21891 return 0;
21892}
21893_ACEOF
21894if ac_fn_c_try_link "$LINENO"; then :
21895 ac_cv_var_tzname=yes
21896else
21897 ac_cv_var_tzname=no
21898fi
21899rm -f core conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21901fi
21902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21903$as_echo "$ac_cv_var_tzname" >&6; }
21904 if test $ac_cv_var_tzname = yes; then
21905
21906$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21907
21908 fi
21909fi
21910
cristy8b350f62009-11-15 23:12:43 +000021911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021912$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021913if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021914 $as_echo_n "(cached) " >&6
21915else
21916 echo '#! /bin/cat
21917exit 69
21918' >conftest
21919chmod u+x conftest
21920(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21921if test $? -ne 69; then
21922 ac_cv_sys_interpreter=yes
21923else
21924 ac_cv_sys_interpreter=no
21925fi
21926rm -f conftest
21927fi
cristy8b350f62009-11-15 23:12:43 +000021928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021929$as_echo "$ac_cv_sys_interpreter" >&6; }
21930interpval=$ac_cv_sys_interpreter
21931
21932
cristy3ed852e2009-09-05 21:47:34 +000021933# If the C compiler supports the keyword inline, do nothing. Otherwise
21934# define inline to __inline__ or __inline if it accepts one of those,
21935# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021937$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021938if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021939 $as_echo_n "(cached) " >&6
21940else
21941 ac_cv_c_inline=no
21942for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021944/* end confdefs.h. */
21945#ifndef __cplusplus
21946typedef int foo_t;
21947static $ac_kw foo_t static_foo () {return 0; }
21948$ac_kw foo_t foo () {return 0; }
21949#endif
21950
21951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021952if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021953 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021954fi
cristy3ed852e2009-09-05 21:47:34 +000021955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21956 test "$ac_cv_c_inline" != no && break
21957done
21958
21959fi
cristy8b350f62009-11-15 23:12:43 +000021960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021961$as_echo "$ac_cv_c_inline" >&6; }
21962
cristy3ed852e2009-09-05 21:47:34 +000021963case $ac_cv_c_inline in
21964 inline | yes) ;;
21965 *)
21966 case $ac_cv_c_inline in
21967 no) ac_val=;;
21968 *) ac_val=$ac_cv_c_inline;;
21969 esac
21970 cat >>confdefs.h <<_ACEOF
21971#ifndef __cplusplus
21972#define inline $ac_val
21973#endif
21974_ACEOF
21975 ;;
21976esac
21977
21978
21979# If the C compiler supports the keyword restrict, do nothing. Otherwise
21980# define restrict to __restrict__ or __restrict if it accepts one of those,
21981# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021983$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021984if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 $as_echo_n "(cached) " >&6
21986else
21987 ac_cv_c_restrict=no
21988 # The order here caters to the fact that C++ does not require restrict.
21989 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021991/* end confdefs.h. */
21992typedef int * int_ptr;
21993 int foo (int_ptr $ac_kw ip) {
21994 return ip[0];
21995 }
21996int
21997main ()
21998{
21999int s[1];
22000 int * $ac_kw t = s;
22001 t[0] = 0;
22002 return foo(t)
22003 ;
22004 return 0;
22005}
22006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022007if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022008 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022009fi
cristy3ed852e2009-09-05 21:47:34 +000022010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22011 test "$ac_cv_c_restrict" != no && break
22012 done
22013
22014fi
cristy8b350f62009-11-15 23:12:43 +000022015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022016$as_echo "$ac_cv_c_restrict" >&6; }
22017
cristy3ed852e2009-09-05 21:47:34 +000022018 case $ac_cv_c_restrict in
22019 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022020 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022021 ;;
22022 *) cat >>confdefs.h <<_ACEOF
22023#define restrict $ac_cv_c_restrict
22024_ACEOF
22025 ;;
22026 esac
22027
22028
22029# If words are stored with the most significant byte first (like
22030# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022032$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022033if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022034 $as_echo_n "(cached) " >&6
22035else
22036 ac_cv_c_bigendian=unknown
22037 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022039/* end confdefs.h. */
22040#ifndef __APPLE_CC__
22041 not a universal capable compiler
22042 #endif
22043 typedef int dummy;
22044
22045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022046if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022047
22048 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022049 # there are at least two -arch flags with different values.
22050 ac_arch=
22051 ac_prev=
22052 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22053 if test -n "$ac_prev"; then
22054 case $ac_word in
22055 i?86 | x86_64 | ppc | ppc64)
22056 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22057 ac_arch=$ac_word
22058 else
22059 ac_cv_c_bigendian=universal
22060 break
22061 fi
22062 ;;
22063 esac
22064 ac_prev=
22065 elif test "x$ac_word" = "x-arch"; then
22066 ac_prev=arch
22067 fi
22068 done
cristy3ed852e2009-09-05 21:47:34 +000022069fi
cristy3ed852e2009-09-05 21:47:34 +000022070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071 if test $ac_cv_c_bigendian = unknown; then
22072 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022074/* end confdefs.h. */
22075#include <sys/types.h>
22076 #include <sys/param.h>
22077
22078int
22079main ()
22080{
22081#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22082 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22083 && LITTLE_ENDIAN)
22084 bogus endian macros
22085 #endif
22086
22087 ;
22088 return 0;
22089}
22090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022092 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022094/* end confdefs.h. */
22095#include <sys/types.h>
22096 #include <sys/param.h>
22097
22098int
22099main ()
22100{
22101#if BYTE_ORDER != BIG_ENDIAN
22102 not big endian
22103 #endif
22104
22105 ;
22106 return 0;
22107}
22108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022109if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022110 ac_cv_c_bigendian=yes
22111else
cristy8b350f62009-11-15 23:12:43 +000022112 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022113fi
cristy3ed852e2009-09-05 21:47:34 +000022114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022115fi
cristy3ed852e2009-09-05 21:47:34 +000022116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117 fi
22118 if test $ac_cv_c_bigendian = unknown; then
22119 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022121/* end confdefs.h. */
22122#include <limits.h>
22123
22124int
22125main ()
22126{
22127#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22128 bogus endian macros
22129 #endif
22130
22131 ;
22132 return 0;
22133}
22134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022135if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022136 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022138/* end confdefs.h. */
22139#include <limits.h>
22140
22141int
22142main ()
22143{
22144#ifndef _BIG_ENDIAN
22145 not big endian
22146 #endif
22147
22148 ;
22149 return 0;
22150}
22151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022152if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022153 ac_cv_c_bigendian=yes
22154else
cristy8b350f62009-11-15 23:12:43 +000022155 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022156fi
cristy3ed852e2009-09-05 21:47:34 +000022157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158fi
cristy3ed852e2009-09-05 21:47:34 +000022159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22160 fi
22161 if test $ac_cv_c_bigendian = unknown; then
22162 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022163 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022164 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022166/* end confdefs.h. */
22167short int ascii_mm[] =
22168 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22169 short int ascii_ii[] =
22170 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22171 int use_ascii (int i) {
22172 return ascii_mm[i] + ascii_ii[i];
22173 }
22174 short int ebcdic_ii[] =
22175 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22176 short int ebcdic_mm[] =
22177 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22178 int use_ebcdic (int i) {
22179 return ebcdic_mm[i] + ebcdic_ii[i];
22180 }
22181 extern int foo;
22182
22183int
22184main ()
22185{
22186return use_ascii (foo) == use_ebcdic (foo);
22187 ;
22188 return 0;
22189}
22190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022191if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022192 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22193 ac_cv_c_bigendian=yes
22194 fi
22195 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22196 if test "$ac_cv_c_bigendian" = unknown; then
22197 ac_cv_c_bigendian=no
22198 else
22199 # finding both strings is unlikely to happen, but who knows?
22200 ac_cv_c_bigendian=unknown
22201 fi
22202 fi
cristy3ed852e2009-09-05 21:47:34 +000022203fi
cristy3ed852e2009-09-05 21:47:34 +000022204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205else
cristy8b350f62009-11-15 23:12:43 +000022206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022207/* end confdefs.h. */
22208$ac_includes_default
22209int
22210main ()
22211{
22212
22213 /* Are we little or big endian? From Harbison&Steele. */
22214 union
22215 {
22216 long int l;
22217 char c[sizeof (long int)];
22218 } u;
22219 u.l = 1;
22220 return u.c[sizeof (long int) - 1] == 1;
22221
22222 ;
22223 return 0;
22224}
22225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022226if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022227 ac_cv_c_bigendian=no
22228else
cristy8b350f62009-11-15 23:12:43 +000022229 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022230fi
cristy8b350f62009-11-15 23:12:43 +000022231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22232 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022233fi
22234
cristy3ed852e2009-09-05 21:47:34 +000022235 fi
22236fi
cristy8b350f62009-11-15 23:12:43 +000022237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022238$as_echo "$ac_cv_c_bigendian" >&6; }
22239 case $ac_cv_c_bigendian in #(
22240 yes)
cristy8b350f62009-11-15 23:12:43 +000022241 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022242;; #(
22243 no)
22244 ;; #(
22245 universal)
22246
cristy8b350f62009-11-15 23:12:43 +000022247$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022248
22249 ;; #(
22250 *)
cristy98dddb52010-11-04 00:30:15 +000022251 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022252 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022253 esac
22254
22255
22256# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022257ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022258if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022259
cristy3ed852e2009-09-05 21:47:34 +000022260else
22261
22262cat >>confdefs.h <<_ACEOF
22263#define mode_t int
22264_ACEOF
22265
22266fi
22267
22268
22269# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022270ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022271if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022272
cristy3ed852e2009-09-05 21:47:34 +000022273else
22274
22275cat >>confdefs.h <<_ACEOF
22276#define off_t long int
22277_ACEOF
22278
22279fi
22280
22281
22282# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022283ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022284if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022285
cristy3ed852e2009-09-05 21:47:34 +000022286else
22287
22288cat >>confdefs.h <<_ACEOF
22289#define pid_t int
22290_ACEOF
22291
22292fi
22293
22294
22295# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022296ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022297if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022298
cristy3ed852e2009-09-05 21:47:34 +000022299else
22300
22301cat >>confdefs.h <<_ACEOF
22302#define size_t unsigned int
22303_ACEOF
22304
22305fi
22306
22307
22308# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022309ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022310if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022311
cristy3ed852e2009-09-05 21:47:34 +000022312else
22313
22314cat >>confdefs.h <<_ACEOF
22315#define ssize_t int
22316_ACEOF
22317
22318fi
22319
22320
22321# If the C compiler supports a working long double type with more range
22322# or precision than the double type, define HAVE_LONG_DOUBLE.
22323
cristy8b350f62009-11-15 23:12:43 +000022324 { $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 +000022325$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022326if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 $as_echo_n "(cached) " >&6
22328else
cristy8b350f62009-11-15 23:12:43 +000022329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022330/* end confdefs.h. */
22331#include <float.h>
22332 long double const a[] =
22333 {
22334 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22335 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22336 };
22337 long double
22338 f (long double x)
22339 {
22340 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22341 + (x ? f (x) : 'c'));
22342 }
22343
22344int
22345main ()
22346{
22347static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22348 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22349 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22350 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22351 && (int) LDBL_EPSILON == 0
22352 )];
22353test_array [0] = 0
22354
22355 ;
22356 return 0;
22357}
22358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022359if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022360 ac_cv_type_long_double_wider=yes
22361else
cristy8b350f62009-11-15 23:12:43 +000022362 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022363fi
cristy3ed852e2009-09-05 21:47:34 +000022364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22365fi
cristy8b350f62009-11-15 23:12:43 +000022366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022367$as_echo "$ac_cv_type_long_double_wider" >&6; }
22368 if test $ac_cv_type_long_double_wider = yes; then
22369
cristy8b350f62009-11-15 23:12:43 +000022370$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022371
22372 fi
22373
22374
22375# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22376# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022378$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022379if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022380 $as_echo_n "(cached) " >&6
22381else
cristy8b350f62009-11-15 23:12:43 +000022382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022383/* end confdefs.h. */
22384$ac_includes_default
22385int
22386main ()
22387{
22388static int test_array [1 - 2 * !(((char) -1) < 0)];
22389test_array [0] = 0
22390
22391 ;
22392 return 0;
22393}
22394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022395if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022396 ac_cv_c_char_unsigned=no
22397else
cristy8b350f62009-11-15 23:12:43 +000022398 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022399fi
cristy3ed852e2009-09-05 21:47:34 +000022400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22401fi
cristy8b350f62009-11-15 23:12:43 +000022402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022403$as_echo "$ac_cv_c_char_unsigned" >&6; }
22404if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022405 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022406
22407fi
22408
22409
22410# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22411# The cast to long int works around a bug in the HP C Compiler
22412# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22413# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22414# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022416$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022417if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 $as_echo_n "(cached) " >&6
22419else
cristy8b350f62009-11-15 23:12:43 +000022420 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 +000022421
cristy3ed852e2009-09-05 21:47:34 +000022422else
cristy8b350f62009-11-15 23:12:43 +000022423 if test "$ac_cv_type_signed_short" = yes; then
22424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022426as_fn_error 77 "cannot compute sizeof (signed short)
22427See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022428 else
22429 ac_cv_sizeof_signed_short=0
22430 fi
22431fi
cristy8b350f62009-11-15 23:12:43 +000022432
cristy3ed852e2009-09-05 21:47:34 +000022433fi
cristy8b350f62009-11-15 23:12:43 +000022434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022435$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22436
22437
22438
22439cat >>confdefs.h <<_ACEOF
22440#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22441_ACEOF
22442
22443
22444
22445# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22446# The cast to long int works around a bug in the HP C Compiler
22447# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22448# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22449# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022451$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022452if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022453 $as_echo_n "(cached) " >&6
22454else
cristy8b350f62009-11-15 23:12:43 +000022455 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 +000022456
cristy3ed852e2009-09-05 21:47:34 +000022457else
cristy8b350f62009-11-15 23:12:43 +000022458 if test "$ac_cv_type_unsigned_short" = yes; then
22459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022461as_fn_error 77 "cannot compute sizeof (unsigned short)
22462See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022463 else
22464 ac_cv_sizeof_unsigned_short=0
22465 fi
22466fi
cristy8b350f62009-11-15 23:12:43 +000022467
cristy3ed852e2009-09-05 21:47:34 +000022468fi
cristy8b350f62009-11-15 23:12:43 +000022469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022470$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22471
22472
22473
22474cat >>confdefs.h <<_ACEOF
22475#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22476_ACEOF
22477
22478
22479
22480# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22481# The cast to long int works around a bug in the HP C Compiler
22482# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22483# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22484# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022486$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022487if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022488 $as_echo_n "(cached) " >&6
22489else
cristy8b350f62009-11-15 23:12:43 +000022490 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 +000022491
cristy3ed852e2009-09-05 21:47:34 +000022492else
cristy8b350f62009-11-15 23:12:43 +000022493 if test "$ac_cv_type_signed_int" = yes; then
22494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022496as_fn_error 77 "cannot compute sizeof (signed int)
22497See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022498 else
22499 ac_cv_sizeof_signed_int=0
22500 fi
22501fi
cristy8b350f62009-11-15 23:12:43 +000022502
cristy3ed852e2009-09-05 21:47:34 +000022503fi
cristy8b350f62009-11-15 23:12:43 +000022504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022505$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22506
22507
22508
22509cat >>confdefs.h <<_ACEOF
22510#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22511_ACEOF
22512
22513
22514
22515# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22516# The cast to long int works around a bug in the HP C Compiler
22517# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22518# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22519# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022521$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022522if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022523 $as_echo_n "(cached) " >&6
22524else
cristy8b350f62009-11-15 23:12:43 +000022525 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 +000022526
cristy3ed852e2009-09-05 21:47:34 +000022527else
cristy8b350f62009-11-15 23:12:43 +000022528 if test "$ac_cv_type_unsigned_int" = yes; then
22529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022531as_fn_error 77 "cannot compute sizeof (unsigned int)
22532See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022533 else
22534 ac_cv_sizeof_unsigned_int=0
22535 fi
22536fi
cristy8b350f62009-11-15 23:12:43 +000022537
cristy3ed852e2009-09-05 21:47:34 +000022538fi
cristy8b350f62009-11-15 23:12:43 +000022539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022540$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22541
22542
22543
22544cat >>confdefs.h <<_ACEOF
22545#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22546_ACEOF
22547
22548
22549
22550# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22551# The cast to long int works around a bug in the HP C Compiler
22552# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22553# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22554# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022556$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022557if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022558 $as_echo_n "(cached) " >&6
22559else
cristy8b350f62009-11-15 23:12:43 +000022560 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 +000022561
cristy3ed852e2009-09-05 21:47:34 +000022562else
cristy8b350f62009-11-15 23:12:43 +000022563 if test "$ac_cv_type_signed_long" = yes; then
22564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022566as_fn_error 77 "cannot compute sizeof (signed long)
22567See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022568 else
22569 ac_cv_sizeof_signed_long=0
22570 fi
22571fi
cristy8b350f62009-11-15 23:12:43 +000022572
cristy3ed852e2009-09-05 21:47:34 +000022573fi
cristy8b350f62009-11-15 23:12:43 +000022574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022575$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22576
22577
22578
22579cat >>confdefs.h <<_ACEOF
22580#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22581_ACEOF
22582
22583
22584
22585# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22586# The cast to long int works around a bug in the HP C Compiler
22587# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22588# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22589# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022591$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022592if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022593 $as_echo_n "(cached) " >&6
22594else
cristy8b350f62009-11-15 23:12:43 +000022595 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 +000022596
cristy3ed852e2009-09-05 21:47:34 +000022597else
cristy8b350f62009-11-15 23:12:43 +000022598 if test "$ac_cv_type_unsigned_long" = yes; then
22599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022601as_fn_error 77 "cannot compute sizeof (unsigned long)
22602See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022603 else
22604 ac_cv_sizeof_unsigned_long=0
22605 fi
22606fi
cristy8b350f62009-11-15 23:12:43 +000022607
cristy3ed852e2009-09-05 21:47:34 +000022608fi
cristy8b350f62009-11-15 23:12:43 +000022609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022610$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22611
22612
22613
22614cat >>confdefs.h <<_ACEOF
22615#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22616_ACEOF
22617
22618
22619
22620# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22621# 'signed long long' is not supported then the value defined is zero.
22622# The cast to long int works around a bug in the HP C Compiler
22623# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22624# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22625# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022627$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022628if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022629 $as_echo_n "(cached) " >&6
22630else
cristy8b350f62009-11-15 23:12:43 +000022631 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 +000022632
cristy3ed852e2009-09-05 21:47:34 +000022633else
cristy8b350f62009-11-15 23:12:43 +000022634 if test "$ac_cv_type_signed_long_long" = yes; then
22635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022637as_fn_error 77 "cannot compute sizeof (signed long long)
22638See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022639 else
22640 ac_cv_sizeof_signed_long_long=0
22641 fi
22642fi
cristy8b350f62009-11-15 23:12:43 +000022643
cristy3ed852e2009-09-05 21:47:34 +000022644fi
cristy8b350f62009-11-15 23:12:43 +000022645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022646$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22647
22648
22649
22650cat >>confdefs.h <<_ACEOF
22651#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22652_ACEOF
22653
22654
22655
22656# Obtain size of a 'unsigned long long' and define as
22657# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22658# supported then the value defined is zero.
22659# The cast to long int works around a bug in the HP C Compiler
22660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22662# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022664$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022665if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022666 $as_echo_n "(cached) " >&6
22667else
cristy8b350f62009-11-15 23:12:43 +000022668 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 +000022669
cristy3ed852e2009-09-05 21:47:34 +000022670else
cristy8b350f62009-11-15 23:12:43 +000022671 if test "$ac_cv_type_unsigned_long_long" = yes; then
22672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022674as_fn_error 77 "cannot compute sizeof (unsigned long long)
22675See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022676 else
22677 ac_cv_sizeof_unsigned_long_long=0
22678 fi
22679fi
cristy8b350f62009-11-15 23:12:43 +000022680
cristy3ed852e2009-09-05 21:47:34 +000022681fi
cristy8b350f62009-11-15 23:12:43 +000022682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022683$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22684
22685
22686
22687cat >>confdefs.h <<_ACEOF
22688#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22689_ACEOF
22690
22691
22692
22693# Obtain size of off_t and define as SIZEOF_OFF_T
22694# The cast to long int works around a bug in the HP C Compiler
22695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22697# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022699$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022700if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022701 $as_echo_n "(cached) " >&6
22702else
cristy8b350f62009-11-15 23:12:43 +000022703 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 +000022704
cristy3ed852e2009-09-05 21:47:34 +000022705else
cristy8b350f62009-11-15 23:12:43 +000022706 if test "$ac_cv_type_off_t" = yes; then
22707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022709as_fn_error 77 "cannot compute sizeof (off_t)
22710See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022711 else
22712 ac_cv_sizeof_off_t=0
22713 fi
22714fi
cristy8b350f62009-11-15 23:12:43 +000022715
cristy3ed852e2009-09-05 21:47:34 +000022716fi
cristy8b350f62009-11-15 23:12:43 +000022717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022718$as_echo "$ac_cv_sizeof_off_t" >&6; }
22719
22720
22721
22722cat >>confdefs.h <<_ACEOF
22723#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22724_ACEOF
22725
22726
22727
22728# Obtain size of size_t and define as SIZEOF_SIZE_T
22729# The cast to long int works around a bug in the HP C Compiler
22730# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22731# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22732# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022734$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022735if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022736 $as_echo_n "(cached) " >&6
22737else
cristy8b350f62009-11-15 23:12:43 +000022738 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 +000022739
cristy3ed852e2009-09-05 21:47:34 +000022740else
cristy8b350f62009-11-15 23:12:43 +000022741 if test "$ac_cv_type_size_t" = yes; then
22742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022744as_fn_error 77 "cannot compute sizeof (size_t)
22745See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022746 else
22747 ac_cv_sizeof_size_t=0
22748 fi
22749fi
cristy8b350f62009-11-15 23:12:43 +000022750
cristy3ed852e2009-09-05 21:47:34 +000022751fi
cristy8b350f62009-11-15 23:12:43 +000022752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022753$as_echo "$ac_cv_sizeof_size_t" >&6; }
22754
22755
22756
22757cat >>confdefs.h <<_ACEOF
22758#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22759_ACEOF
22760
22761
22762
cristy330e9352010-06-01 18:42:49 +000022763# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22764# The cast to long int works around a bug in the HP C Compiler
22765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22767# This bug is HP SR number 8606223364.
22768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22769$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022770if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022771 $as_echo_n "(cached) " >&6
22772else
22773 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22774
22775else
22776 if test "$ac_cv_type_ssize_t" = yes; then
22777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022779as_fn_error 77 "cannot compute sizeof (ssize_t)
22780See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022781 else
22782 ac_cv_sizeof_ssize_t=0
22783 fi
22784fi
22785
22786fi
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22788$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22789
22790
22791
22792cat >>confdefs.h <<_ACEOF
22793#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22794_ACEOF
22795
22796
22797
cristy3ed852e2009-09-05 21:47:34 +000022798# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22799# The cast to long int works around a bug in the HP C Compiler
22800# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22801# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22802# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022804$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022805if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022806 $as_echo_n "(cached) " >&6
22807else
cristy8b350f62009-11-15 23:12:43 +000022808 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 +000022809
cristy3ed852e2009-09-05 21:47:34 +000022810else
cristy8b350f62009-11-15 23:12:43 +000022811 if test "$ac_cv_type_unsigned_intp" = yes; then
22812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022814as_fn_error 77 "cannot compute sizeof (unsigned int*)
22815See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022816 else
22817 ac_cv_sizeof_unsigned_intp=0
22818 fi
22819fi
cristy8b350f62009-11-15 23:12:43 +000022820
cristy3ed852e2009-09-05 21:47:34 +000022821fi
cristy8b350f62009-11-15 23:12:43 +000022822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022823$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22824
22825
22826
22827cat >>confdefs.h <<_ACEOF
22828#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22829_ACEOF
22830
22831
22832
22833#
22834# Compute sized types for current CPU and compiler options.
22835#
22836
cristy8b350f62009-11-15 23:12:43 +000022837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022838$as_echo_n "checking for signed 8-bit type... " >&6; }
22839INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo "$INT8_T" >&6; }
22842
22843
cristy8b350f62009-11-15 23:12:43 +000022844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022845$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22846UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022848$as_echo "$UINT8_T" >&6; }
22849
22850
cristy8b350f62009-11-15 23:12:43 +000022851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022852$as_echo_n "checking for signed 16-bit type... " >&6; }
22853INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022855$as_echo "$INT16_T" >&6; }
22856
22857
cristy8b350f62009-11-15 23:12:43 +000022858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022859$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22860UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022862$as_echo "$UINT16_T" >&6; }
22863
22864
cristy8b350f62009-11-15 23:12:43 +000022865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022866$as_echo_n "checking for signed 32-bit type... " >&6; }
22867INT32_T='none'
22868if test $ac_cv_sizeof_signed_int -eq 4; then
22869 INT32_T='signed int'
22870elif test $ac_cv_sizeof_signed_long -eq 4; then
22871 INT32_T='signed long'
22872fi
cristy8b350f62009-11-15 23:12:43 +000022873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022874$as_echo "$INT32_T" >&6; }
22875
22876
cristy8b350f62009-11-15 23:12:43 +000022877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022878$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22879UINT32_T='none'
22880if test $ac_cv_sizeof_unsigned_int -eq 4; then
22881 UINT32_T='unsigned int'
22882elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22883 UINT32_T='unsigned long'
22884fi
cristy8b350f62009-11-15 23:12:43 +000022885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022886$as_echo "$UINT32_T" >&6; }
22887
22888
cristy8b350f62009-11-15 23:12:43 +000022889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022890$as_echo_n "checking for signed 64-bit type... " >&6; }
22891INT64_T='none'
22892if test $ac_cv_sizeof_signed_long -eq 8; then
22893 INT64_T='signed long'
22894elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22895 INT64_T='signed long long'
22896fi
cristy8b350f62009-11-15 23:12:43 +000022897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022898$as_echo "$INT64_T" >&6; }
22899
22900
cristy8b350f62009-11-15 23:12:43 +000022901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022902$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22903UINT64_T='none'
22904if test $ac_cv_sizeof_unsigned_long -eq 8; then
22905 UINT64_T='unsigned long'
22906elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22907 UINT64_T='unsigned long long'
22908fi
cristy8b350f62009-11-15 23:12:43 +000022909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022910$as_echo "$UINT64_T" >&6; }
22911
22912
cristy8b350f62009-11-15 23:12:43 +000022913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022914$as_echo_n "checking for unsigned maximum type... " >&6; }
22915UINTMAX_T='none'
22916if test "$UINT64_T" != 'none'; then
22917 UINTMAX_T=$UINT64_T
22918elif test "$UINT32_T" != 'none'; then
22919 UINTMAX_T=$UINT32_T
22920fi
cristy8b350f62009-11-15 23:12:43 +000022921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022922$as_echo "$UINTMAX_T" >&6; }
22923
22924
cristy8b350f62009-11-15 23:12:43 +000022925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022926$as_echo_n "checking for pointer difference type... " >&6; }
22927UINTPTR_T='none'
22928if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22929 UINTPTR_T='unsigned long'
22930elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22931 UINTPTR_T='unsigned long long'
22932fi
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo "$UINTPTR_T" >&6; }
22935
22936
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022940/* end confdefs.h. */
22941
22942int
22943main ()
22944{
22945{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22946 ;
22947 return 0;
22948}
22949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022950if ac_fn_c_try_compile "$LINENO"; then :
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022952$as_echo "yes" >&6; }
22953else
cristy8b350f62009-11-15 23:12:43 +000022954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022955$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022957$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022959/* end confdefs.h. */
22960
22961int
22962main ()
22963{
22964{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22965 ;
22966 return 0;
22967}
22968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022969if ac_fn_c_try_compile "$LINENO"; then :
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022971$as_echo "yes" >&6; }
22972
cristy8b350f62009-11-15 23:12:43 +000022973$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022974
22975else
cristy8b350f62009-11-15 23:12:43 +000022976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022977$as_echo "no" >&6; }
22978
cristy8b350f62009-11-15 23:12:43 +000022979$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022980
22981fi
cristy3ed852e2009-09-05 21:47:34 +000022982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983fi
cristy3ed852e2009-09-05 21:47:34 +000022984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985
22986########
22987#
22988# Check for functions
22989#
22990########
cristy73bd4a52010-10-05 11:24:23 +000022991for ac_header in stdlib.h unistd.h
22992do :
22993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22994ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022995if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022996 cat >>confdefs.h <<_ACEOF
22997#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22998_ACEOF
22999
23000fi
23001
23002done
23003
23004for ac_func in getpagesize
23005do :
23006 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023007if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023008 cat >>confdefs.h <<_ACEOF
23009#define HAVE_GETPAGESIZE 1
23010_ACEOF
23011
23012fi
23013done
23014
23015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23016$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023017if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023018 $as_echo_n "(cached) " >&6
23019else
23020 if test "$cross_compiling" = yes; then :
23021 magick_cv_func_mmap_fileio=no
23022else
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024/* end confdefs.h. */
23025$ac_includes_default
23026/* malloc might have been renamed as rpl_malloc. */
23027#undef malloc
23028
23029/*
23030 This test is derived from GNU Autoconf's similar macro.
23031 The purpose of this test is to verify that files may be memory
23032 mapped, and that memory mapping and file I/O are coherent.
23033
23034 The test creates a test file, memory maps the file, updates
23035 the file using the memory map, and then reads the file using
23036 file I/O to verify that the file contains the updates.
23037*/
23038
23039#include <fcntl.h>
23040#include <sys/mman.h>
23041
23042#if !STDC_HEADERS && !HAVE_STDLIB_H
23043char *malloc ();
23044#endif
23045
23046/* This mess was copied from the GNU getpagesize.h. */
23047#if !HAVE_GETPAGESIZE
23048/* Assume that all systems that can run configure have sys/param.h. */
23049# if !HAVE_SYS_PARAM_H
23050# define HAVE_SYS_PARAM_H 1
23051# endif
23052
23053# ifdef _SC_PAGESIZE
23054# define getpagesize() sysconf(_SC_PAGESIZE)
23055# else /* no _SC_PAGESIZE */
23056# if HAVE_SYS_PARAM_H
23057# include <sys/param.h>
23058# ifdef EXEC_PAGESIZE
23059# define getpagesize() EXEC_PAGESIZE
23060# else /* no EXEC_PAGESIZE */
23061# ifdef NBPG
23062# define getpagesize() NBPG * CLSIZE
23063# ifndef CLSIZE
23064# define CLSIZE 1
23065# endif /* no CLSIZE */
23066# else /* no NBPG */
23067# ifdef NBPC
23068# define getpagesize() NBPC
23069# else /* no NBPC */
23070# ifdef PAGESIZE
23071# define getpagesize() PAGESIZE
23072# endif /* PAGESIZE */
23073# endif /* no NBPC */
23074# endif /* no NBPG */
23075# endif /* no EXEC_PAGESIZE */
23076# else /* no HAVE_SYS_PARAM_H */
23077# define getpagesize() 8192 /* punt totally */
23078# endif /* no HAVE_SYS_PARAM_H */
23079# endif /* no _SC_PAGESIZE */
23080
23081#endif /* no HAVE_GETPAGESIZE */
23082
23083int
23084main ()
23085{
23086 char *data, *data2, *data3;
23087 int i, pagesize;
23088 int fd;
23089
23090 pagesize = getpagesize ();
23091
23092 /* First, make a file with some known garbage in it. */
23093 data = (char *) malloc (pagesize);
23094 if (!data)
23095 exit (1);
23096 for (i = 0; i < pagesize; ++i)
23097 *(data + i) = rand ();
23098 umask (0);
23099 fd = creat ("conftest.mmap", 0600);
23100 if (fd < 0)
23101 exit (1);
23102 if (write (fd, data, pagesize) != pagesize)
23103 exit (1);
23104 close (fd);
23105
23106 /* Mmap the file as read/write/shared and verify that we see the
23107 same garbage. */
23108 fd = open ("conftest.mmap", O_RDWR);
23109 if (fd < 0)
23110 exit (1);
23111 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23112 if (data2 == 0)
23113 exit (1);
23114 for (i = 0; i < pagesize; ++i)
23115 if (*(data + i) != *(data2 + i))
23116 exit (1);
23117
23118 /* Finally, make sure that changes to the mapped area
23119 percolate back to the file as seen by read(). */
23120 for (i = 0; i < pagesize; ++i)
23121 *(data2 + i) = *(data2 + i) + 1;
23122 data3 = (char *) malloc (pagesize);
23123 if (!data3)
23124 exit (1);
23125 if (read (fd, data3, pagesize) != pagesize)
23126 exit (1);
23127 for (i = 0; i < pagesize; ++i)
23128 if (*(data2 + i) != *(data3 + i))
23129 exit (1);
23130 close (fd);
23131 exit (0);
23132}
23133_ACEOF
23134if ac_fn_c_try_run "$LINENO"; then :
23135 magick_cv_func_mmap_fileio=yes
23136else
23137 magick_cv_func_mmap_fileio=no
23138fi
23139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23140 conftest.$ac_objext conftest.beam conftest.$ac_ext
23141fi
23142
23143fi
23144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23145$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23146if test $magick_cv_func_mmap_fileio = yes; then
23147
23148$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23149
23150fi
23151rm -f conftest.mmap
23152
cristy8b350f62009-11-15 23:12:43 +000023153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023154$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023155if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023156 $as_echo_n "(cached) " >&6
23157else
cristy8b350f62009-11-15 23:12:43 +000023158 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023159 ac_cv_func_closedir_void=yes
23160else
cristy8b350f62009-11-15 23:12:43 +000023161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023162/* end confdefs.h. */
23163$ac_includes_default
23164#include <$ac_header_dirent>
23165#ifndef __cplusplus
23166int closedir ();
23167#endif
23168
23169int
23170main ()
23171{
23172return closedir (opendir (".")) != 0;
23173 ;
23174 return 0;
23175}
23176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023177if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023178 ac_cv_func_closedir_void=no
23179else
cristy8b350f62009-11-15 23:12:43 +000023180 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023181fi
cristy8b350f62009-11-15 23:12:43 +000023182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23183 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023184fi
23185
cristy3ed852e2009-09-05 21:47:34 +000023186fi
cristy8b350f62009-11-15 23:12:43 +000023187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023188$as_echo "$ac_cv_func_closedir_void" >&6; }
23189if test $ac_cv_func_closedir_void = yes; then
23190
cristy8b350f62009-11-15 23:12:43 +000023191$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023192
23193fi
23194
cristycd4c5312009-11-22 01:19:08 +000023195
23196
23197
23198 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023199do :
23200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023201ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23202"
cristy98dddb52010-11-04 00:30:15 +000023203if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023204 cat >>confdefs.h <<_ACEOF
23205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23206_ACEOF
23207
23208fi
23209
23210done
23211
cristycd4c5312009-11-22 01:19:08 +000023212
23213
23214
23215
23216
23217
23218
cristy3ed852e2009-09-05 21:47:34 +000023219for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023220do :
23221 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023222if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023223 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023224#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023225_ACEOF
23226
23227fi
23228done
23229
cristy8b350f62009-11-15 23:12:43 +000023230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023231$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023232if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023233 $as_echo_n "(cached) " >&6
23234else
cristy8b350f62009-11-15 23:12:43 +000023235 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023236 ac_cv_func_mmap_fixed_mapped=no
23237else
cristy8b350f62009-11-15 23:12:43 +000023238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023239/* end confdefs.h. */
23240$ac_includes_default
23241/* malloc might have been renamed as rpl_malloc. */
23242#undef malloc
23243
23244/* Thanks to Mike Haertel and Jim Avera for this test.
23245 Here is a matrix of mmap possibilities:
23246 mmap private not fixed
23247 mmap private fixed at somewhere currently unmapped
23248 mmap private fixed at somewhere already mapped
23249 mmap shared not fixed
23250 mmap shared fixed at somewhere currently unmapped
23251 mmap shared fixed at somewhere already mapped
23252 For private mappings, we should verify that changes cannot be read()
23253 back from the file, nor mmap's back from the file at a different
23254 address. (There have been systems where private was not correctly
23255 implemented like the infamous i386 svr4.0, and systems where the
23256 VM page cache was not coherent with the file system buffer cache
23257 like early versions of FreeBSD and possibly contemporary NetBSD.)
23258 For shared mappings, we should conversely verify that changes get
23259 propagated back to all the places they're supposed to be.
23260
23261 Grep wants private fixed already mapped.
23262 The main things grep needs to know about mmap are:
23263 * does it exist and is it safe to write into the mmap'd area
23264 * how to use it (BSD variants) */
23265
23266#include <fcntl.h>
23267#include <sys/mman.h>
23268
23269#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23270char *malloc ();
23271#endif
23272
23273/* This mess was copied from the GNU getpagesize.h. */
23274#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023275# ifdef _SC_PAGESIZE
23276# define getpagesize() sysconf(_SC_PAGESIZE)
23277# else /* no _SC_PAGESIZE */
23278# ifdef HAVE_SYS_PARAM_H
23279# include <sys/param.h>
23280# ifdef EXEC_PAGESIZE
23281# define getpagesize() EXEC_PAGESIZE
23282# else /* no EXEC_PAGESIZE */
23283# ifdef NBPG
23284# define getpagesize() NBPG * CLSIZE
23285# ifndef CLSIZE
23286# define CLSIZE 1
23287# endif /* no CLSIZE */
23288# else /* no NBPG */
23289# ifdef NBPC
23290# define getpagesize() NBPC
23291# else /* no NBPC */
23292# ifdef PAGESIZE
23293# define getpagesize() PAGESIZE
23294# endif /* PAGESIZE */
23295# endif /* no NBPC */
23296# endif /* no NBPG */
23297# endif /* no EXEC_PAGESIZE */
23298# else /* no HAVE_SYS_PARAM_H */
23299# define getpagesize() 8192 /* punt totally */
23300# endif /* no HAVE_SYS_PARAM_H */
23301# endif /* no _SC_PAGESIZE */
23302
23303#endif /* no HAVE_GETPAGESIZE */
23304
23305int
23306main ()
23307{
23308 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023309 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023310 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023311 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023312
23313 pagesize = getpagesize ();
23314
23315 /* First, make a file with some known garbage in it. */
23316 data = (char *) malloc (pagesize);
23317 if (!data)
23318 return 1;
23319 for (i = 0; i < pagesize; ++i)
23320 *(data + i) = rand ();
23321 umask (0);
23322 fd = creat ("conftest.mmap", 0600);
23323 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023324 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023325 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023326 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023327 close (fd);
23328
cristycd4c5312009-11-22 01:19:08 +000023329 /* Next, check that the tail of a page is zero-filled. File must have
23330 non-zero length, otherwise we risk SIGBUS for entire page. */
23331 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23332 if (fd2 < 0)
23333 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023334 cdata2 = "";
23335 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023336 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023337 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023338 if (data2 == MAP_FAILED)
23339 return 6;
23340 for (i = 0; i < pagesize; ++i)
23341 if (*(data2 + i))
23342 return 7;
23343 close (fd2);
23344 if (munmap (data2, pagesize))
23345 return 8;
23346
cristy3ed852e2009-09-05 21:47:34 +000023347 /* Next, try to mmap the file at a fixed address which already has
23348 something else allocated at it. If we can, also make sure that
23349 we see the same garbage. */
23350 fd = open ("conftest.mmap", O_RDWR);
23351 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023352 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023353 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23354 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023355 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023356 for (i = 0; i < pagesize; ++i)
23357 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023358 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023359
23360 /* Finally, make sure that changes to the mapped area do not
23361 percolate back to the file as seen by read(). (This is a bug on
23362 some variants of i386 svr4.0.) */
23363 for (i = 0; i < pagesize; ++i)
23364 *(data2 + i) = *(data2 + i) + 1;
23365 data3 = (char *) malloc (pagesize);
23366 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023367 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023368 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023369 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023370 for (i = 0; i < pagesize; ++i)
23371 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023372 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023373 close (fd);
23374 return 0;
23375}
23376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023377if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023378 ac_cv_func_mmap_fixed_mapped=yes
23379else
cristy8b350f62009-11-15 23:12:43 +000023380 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023381fi
cristy8b350f62009-11-15 23:12:43 +000023382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23383 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023384fi
23385
cristy3ed852e2009-09-05 21:47:34 +000023386fi
cristy8b350f62009-11-15 23:12:43 +000023387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023388$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23389if test $ac_cv_func_mmap_fixed_mapped = yes; then
23390
cristy8b350f62009-11-15 23:12:43 +000023391$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023392
23393fi
cristycd4c5312009-11-22 01:19:08 +000023394rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023395
cristy3ed852e2009-09-05 21:47:34 +000023396for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023397do :
23398 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023399if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023400 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023401#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023402_ACEOF
23403
23404fi
23405
23406done
23407
cristy3ed852e2009-09-05 21:47:34 +000023408for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023409do :
23410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23411ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023412if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023413 cat >>confdefs.h <<_ACEOF
23414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23415_ACEOF
23416
23417fi
23418done
23419
23420if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023422$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023423if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023424 $as_echo_n "(cached) " >&6
23425else
cristy8b350f62009-11-15 23:12:43 +000023426 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023427 ac_cv_func_fork_works=cross
23428else
cristy8b350f62009-11-15 23:12:43 +000023429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023430/* end confdefs.h. */
23431$ac_includes_default
23432int
23433main ()
23434{
23435
23436 /* By Ruediger Kuhlmann. */
23437 return fork () < 0;
23438
23439 ;
23440 return 0;
23441}
23442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023443if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023444 ac_cv_func_fork_works=yes
23445else
cristy8b350f62009-11-15 23:12:43 +000023446 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023447fi
cristy8b350f62009-11-15 23:12:43 +000023448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23449 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023450fi
23451
cristy3ed852e2009-09-05 21:47:34 +000023452fi
cristy8b350f62009-11-15 23:12:43 +000023453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023454$as_echo "$ac_cv_func_fork_works" >&6; }
23455
23456else
23457 ac_cv_func_fork_works=$ac_cv_func_fork
23458fi
23459if test "x$ac_cv_func_fork_works" = xcross; then
23460 case $host in
23461 *-*-amigaos* | *-*-msdosdjgpp*)
23462 # Override, as these systems have only a dummy fork() stub
23463 ac_cv_func_fork_works=no
23464 ;;
23465 *)
23466 ac_cv_func_fork_works=yes
23467 ;;
23468 esac
cristy8b350f62009-11-15 23:12:43 +000023469 { $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 +000023470$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23471fi
23472ac_cv_func_vfork_works=$ac_cv_func_vfork
23473if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023476if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023477 $as_echo_n "(cached) " >&6
23478else
cristy8b350f62009-11-15 23:12:43 +000023479 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023480 ac_cv_func_vfork_works=cross
23481else
cristy8b350f62009-11-15 23:12:43 +000023482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023483/* end confdefs.h. */
23484/* Thanks to Paul Eggert for this test. */
23485$ac_includes_default
23486#include <sys/wait.h>
23487#ifdef HAVE_VFORK_H
23488# include <vfork.h>
23489#endif
23490/* On some sparc systems, changes by the child to local and incoming
23491 argument registers are propagated back to the parent. The compiler
23492 is told about this with #include <vfork.h>, but some compilers
23493 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23494 static variable whose address is put into a register that is
23495 clobbered by the vfork. */
23496static void
23497#ifdef __cplusplus
23498sparc_address_test (int arg)
23499# else
23500sparc_address_test (arg) int arg;
23501#endif
23502{
23503 static pid_t child;
23504 if (!child) {
23505 child = vfork ();
23506 if (child < 0) {
23507 perror ("vfork");
23508 _exit(2);
23509 }
23510 if (!child) {
23511 arg = getpid();
23512 write(-1, "", 0);
23513 _exit (arg);
23514 }
23515 }
23516}
23517
23518int
23519main ()
23520{
23521 pid_t parent = getpid ();
23522 pid_t child;
23523
23524 sparc_address_test (0);
23525
23526 child = vfork ();
23527
23528 if (child == 0) {
23529 /* Here is another test for sparc vfork register problems. This
23530 test uses lots of local variables, at least as many local
23531 variables as main has allocated so far including compiler
23532 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23533 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23534 reuse the register of parent for one of the local variables,
23535 since it will think that parent can't possibly be used any more
23536 in this routine. Assigning to the local variable will thus
23537 munge parent in the parent process. */
23538 pid_t
23539 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23540 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23541 /* Convince the compiler that p..p7 are live; otherwise, it might
23542 use the same hardware register for all 8 local variables. */
23543 if (p != p1 || p != p2 || p != p3 || p != p4
23544 || p != p5 || p != p6 || p != p7)
23545 _exit(1);
23546
23547 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23548 from child file descriptors. If the child closes a descriptor
23549 before it execs or exits, this munges the parent's descriptor
23550 as well. Test for this by closing stdout in the child. */
23551 _exit(close(fileno(stdout)) != 0);
23552 } else {
23553 int status;
23554 struct stat st;
23555
23556 while (wait(&status) != child)
23557 ;
23558 return (
23559 /* Was there some problem with vforking? */
23560 child < 0
23561
23562 /* Did the child fail? (This shouldn't happen.) */
23563 || status
23564
23565 /* Did the vfork/compiler bug occur? */
23566 || parent != getpid()
23567
23568 /* Did the file descriptor bug occur? */
23569 || fstat(fileno(stdout), &st) != 0
23570 );
23571 }
23572}
23573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023574if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023575 ac_cv_func_vfork_works=yes
23576else
cristy8b350f62009-11-15 23:12:43 +000023577 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023578fi
cristy8b350f62009-11-15 23:12:43 +000023579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23580 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023581fi
23582
cristy3ed852e2009-09-05 21:47:34 +000023583fi
cristy8b350f62009-11-15 23:12:43 +000023584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023585$as_echo "$ac_cv_func_vfork_works" >&6; }
23586
23587fi;
23588if test "x$ac_cv_func_fork_works" = xcross; then
23589 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023590 { $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 +000023591$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23592fi
23593
23594if test "x$ac_cv_func_vfork_works" = xyes; then
23595
cristy8b350f62009-11-15 23:12:43 +000023596$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023597
23598else
23599
cristy8b350f62009-11-15 23:12:43 +000023600$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023601
23602fi
23603if test "x$ac_cv_func_fork_works" = xyes; then
23604
cristy8b350f62009-11-15 23:12:43 +000023605$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023606
23607fi
23608
cristy8b350f62009-11-15 23:12:43 +000023609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023610$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023611if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023612 $as_echo_n "(cached) " >&6
23613else
cristy8b350f62009-11-15 23:12:43 +000023614 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023615 ac_cv_func_memcmp_working=no
23616else
cristy8b350f62009-11-15 23:12:43 +000023617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023618/* end confdefs.h. */
23619$ac_includes_default
23620int
23621main ()
23622{
23623
23624 /* Some versions of memcmp are not 8-bit clean. */
23625 char c0 = '\100', c1 = '\200', c2 = '\201';
23626 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23627 return 1;
23628
23629 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23630 or more and with at least one buffer not starting on a 4-byte boundary.
23631 William Lewis provided this test program. */
23632 {
23633 char foo[21];
23634 char bar[21];
23635 int i;
23636 for (i = 0; i < 4; i++)
23637 {
23638 char *a = foo + i;
23639 char *b = bar + i;
23640 strcpy (a, "--------01111111");
23641 strcpy (b, "--------10000000");
23642 if (memcmp (a, b, 16) >= 0)
23643 return 1;
23644 }
23645 return 0;
23646 }
23647
23648 ;
23649 return 0;
23650}
23651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023652if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023653 ac_cv_func_memcmp_working=yes
23654else
cristy8b350f62009-11-15 23:12:43 +000023655 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023656fi
cristy8b350f62009-11-15 23:12:43 +000023657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23658 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023659fi
23660
cristy3ed852e2009-09-05 21:47:34 +000023661fi
cristy8b350f62009-11-15 23:12:43 +000023662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023663$as_echo "$ac_cv_func_memcmp_working" >&6; }
23664test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23665 *" memcmp.$ac_objext "* ) ;;
23666 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23667 ;;
23668esac
23669
23670
cristy3ed852e2009-09-05 21:47:34 +000023671for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023672do :
23673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23674ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023675if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023676 cat >>confdefs.h <<_ACEOF
23677#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23678_ACEOF
23679
23680fi
23681
23682done
23683
cristy8b350f62009-11-15 23:12:43 +000023684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023685$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023686if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023687 $as_echo_n "(cached) " >&6
23688else
23689 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23690 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23691 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023693/* end confdefs.h. */
23694$ac_includes_default
23695#ifdef HAVE_SYS_SELECT_H
23696# include <sys/select.h>
23697#endif
23698#ifdef HAVE_SYS_SOCKET_H
23699# include <sys/socket.h>
23700#endif
23701
23702int
23703main ()
23704{
23705extern int select ($ac_arg1,
23706 $ac_arg234, $ac_arg234, $ac_arg234,
23707 $ac_arg5);
23708 ;
23709 return 0;
23710}
23711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023712if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023713 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023714fi
cristy3ed852e2009-09-05 21:47:34 +000023715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23716 done
23717 done
23718done
23719# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023720: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023721
23722fi
cristy8b350f62009-11-15 23:12:43 +000023723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023724$as_echo "$ac_cv_func_select_args" >&6; }
23725ac_save_IFS=$IFS; IFS=','
23726set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23727IFS=$ac_save_IFS
23728shift
23729
23730cat >>confdefs.h <<_ACEOF
23731#define SELECT_TYPE_ARG1 $1
23732_ACEOF
23733
23734
23735cat >>confdefs.h <<_ACEOF
23736#define SELECT_TYPE_ARG234 ($2)
23737_ACEOF
23738
23739
23740cat >>confdefs.h <<_ACEOF
23741#define SELECT_TYPE_ARG5 ($3)
23742_ACEOF
23743
23744rm -f conftest*
23745
cristyda16f162011-02-19 23:52:17 +000023746if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023747 $as_echo_n "(cached) " >&6
23748else
23749 ac_cv_func_setvbuf_reversed=no
23750fi
23751
23752
cristy8b350f62009-11-15 23:12:43 +000023753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023754$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023755if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023756 $as_echo_n "(cached) " >&6
23757else
cristy8b350f62009-11-15 23:12:43 +000023758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023759/* end confdefs.h. */
23760#include <sys/types.h>
23761#include <signal.h>
23762
23763int
23764main ()
23765{
23766return *(signal (0, 0)) (0) == 1;
23767 ;
23768 return 0;
23769}
23770_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023771if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023772 ac_cv_type_signal=int
23773else
cristy8b350f62009-11-15 23:12:43 +000023774 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023775fi
cristy3ed852e2009-09-05 21:47:34 +000023776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23777fi
cristy8b350f62009-11-15 23:12:43 +000023778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023779$as_echo "$ac_cv_type_signal" >&6; }
23780
23781cat >>confdefs.h <<_ACEOF
23782#define RETSIGTYPE $ac_cv_type_signal
23783_ACEOF
23784
23785
cristy8b350f62009-11-15 23:12:43 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023788if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023789 $as_echo_n "(cached) " >&6
23790else
cristy8b350f62009-11-15 23:12:43 +000023791 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023792 ac_cv_func_strtod=no
23793else
cristy8b350f62009-11-15 23:12:43 +000023794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023795/* end confdefs.h. */
23796
23797$ac_includes_default
23798#ifndef strtod
23799double strtod ();
23800#endif
23801int
23802main()
23803{
23804 {
23805 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23806 char *string = " +69";
23807 char *term;
23808 double value;
23809 value = strtod (string, &term);
23810 if (value != 69 || term != (string + 4))
23811 return 1;
23812 }
23813
23814 {
23815 /* Under Solaris 2.4, strtod returns the wrong value for the
23816 terminating character under some conditions. */
23817 char *string = "NaN";
23818 char *term;
23819 strtod (string, &term);
23820 if (term != string && *(term - 1) == 0)
23821 return 1;
23822 }
23823 return 0;
23824}
23825
23826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023827if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023828 ac_cv_func_strtod=yes
23829else
cristy8b350f62009-11-15 23:12:43 +000023830 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023831fi
cristy8b350f62009-11-15 23:12:43 +000023832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23833 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023834fi
23835
cristy3ed852e2009-09-05 21:47:34 +000023836fi
cristy8b350f62009-11-15 23:12:43 +000023837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023838$as_echo "$ac_cv_func_strtod" >&6; }
23839if test $ac_cv_func_strtod = no; then
23840 case " $LIBOBJS " in
23841 *" strtod.$ac_objext "* ) ;;
23842 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23843 ;;
23844esac
23845
cristy8b350f62009-11-15 23:12:43 +000023846ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023847if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023848
cristy3ed852e2009-09-05 21:47:34 +000023849fi
23850
cristy3ed852e2009-09-05 21:47:34 +000023851if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023853$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023854if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023855 $as_echo_n "(cached) " >&6
23856else
23857 ac_check_lib_save_LIBS=$LIBS
23858LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023860/* end confdefs.h. */
23861
23862/* Override any GCC internal prototype to avoid an error.
23863 Use char because int might match the return type of a GCC
23864 builtin and then its argument prototype would still apply. */
23865#ifdef __cplusplus
23866extern "C"
23867#endif
23868char pow ();
23869int
23870main ()
23871{
23872return pow ();
23873 ;
23874 return 0;
23875}
23876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023878 ac_cv_lib_m_pow=yes
23879else
cristy8b350f62009-11-15 23:12:43 +000023880 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023881fi
cristy8b350f62009-11-15 23:12:43 +000023882rm -f core conftest.err conftest.$ac_objext \
23883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023884LIBS=$ac_check_lib_save_LIBS
23885fi
cristy8b350f62009-11-15 23:12:43 +000023886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023887$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023888if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023889 POW_LIB=-lm
23890else
cristy8b350f62009-11-15 23:12:43 +000023891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023892$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23893fi
23894
23895fi
23896
23897fi
23898
cristy3ed852e2009-09-05 21:47:34 +000023899for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023900do :
23901 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023902if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023903 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023904#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023905_ACEOF
23906
cristy8b350f62009-11-15 23:12:43 +000023907ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023908if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023909
cristy8b350f62009-11-15 23:12:43 +000023910$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023911
23912fi
23913
23914fi
23915done
23916
23917
23918
cristy161b9262010-03-20 19:34:32 +000023919#
23920# Find math library
23921#
23922MATH_LIBS=''
23923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23924$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023925if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023926 $as_echo_n "(cached) " >&6
23927else
23928 ac_check_lib_save_LIBS=$LIBS
23929LIBS="-lm $LIBS"
23930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931/* end confdefs.h. */
23932
23933/* Override any GCC internal prototype to avoid an error.
23934 Use char because int might match the return type of a GCC
23935 builtin and then its argument prototype would still apply. */
23936#ifdef __cplusplus
23937extern "C"
23938#endif
23939char sqrt ();
23940int
23941main ()
23942{
23943return sqrt ();
23944 ;
23945 return 0;
23946}
23947_ACEOF
23948if ac_fn_c_try_link "$LINENO"; then :
23949 ac_cv_lib_m_sqrt=yes
23950else
23951 ac_cv_lib_m_sqrt=no
23952fi
23953rm -f core conftest.err conftest.$ac_objext \
23954 conftest$ac_exeext conftest.$ac_ext
23955LIBS=$ac_check_lib_save_LIBS
23956fi
23957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23958$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000023959if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000023960 MATH_LIBS="-lm"
23961fi
23962
23963LIBS="$MATH_LIBS $LIBS"
23964
23965
cristy47b022b2011-01-18 22:29:21 +000023966for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023967do :
23968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023970if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023971 cat >>confdefs.h <<_ACEOF
23972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23973_ACEOF
23974
23975fi
23976done
23977
23978
cristye43a45e2009-09-28 14:49:00 +000023979#
23980# Check for clock_gettime().
23981#
cristy8b350f62009-11-15 23:12:43 +000023982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023983$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023984if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000023985 $as_echo_n "(cached) " >&6
23986else
23987 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023989/* end confdefs.h. */
23990
23991/* Override any GCC internal prototype to avoid an error.
23992 Use char because int might match the return type of a GCC
23993 builtin and then its argument prototype would still apply. */
23994#ifdef __cplusplus
23995extern "C"
23996#endif
23997char clock_gettime ();
23998int
23999main ()
24000{
24001return clock_gettime ();
24002 ;
24003 return 0;
24004}
24005_ACEOF
24006for ac_lib in '' rt; do
24007 if test -z "$ac_lib"; then
24008 ac_res="none required"
24009 else
24010 ac_res=-l$ac_lib
24011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24012 fi
cristy8b350f62009-11-15 23:12:43 +000024013 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024014 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024015fi
cristy8b350f62009-11-15 23:12:43 +000024016rm -f core conftest.err conftest.$ac_objext \
24017 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024018 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024019 break
24020fi
24021done
cristyda16f162011-02-19 23:52:17 +000024022if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024023
cristye43a45e2009-09-28 14:49:00 +000024024else
24025 ac_cv_search_clock_gettime=no
24026fi
24027rm conftest.$ac_ext
24028LIBS=$ac_func_search_save_LIBS
24029fi
cristy8b350f62009-11-15 23:12:43 +000024030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024031$as_echo "$ac_cv_search_clock_gettime" >&6; }
24032ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024033if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24035
24036
cristy8b350f62009-11-15 23:12:43 +000024037$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024038
cristy8b350f62009-11-15 23:12:43 +000024039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024040$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024042/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024043
24044 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024045int
24046main ()
24047{
24048clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024049 ;
24050 return 0;
24051}
24052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024053if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024054
cristy8b350f62009-11-15 23:12:43 +000024055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024056$as_echo "yes" >&6; }
24057
cristy8b350f62009-11-15 23:12:43 +000024058$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024059
24060
24061else
cristy8b350f62009-11-15 23:12:43 +000024062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024063$as_echo "no" >&6; }
24064
24065fi
cristye43a45e2009-09-28 14:49:00 +000024066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24067
24068else
24069
cristy8b350f62009-11-15 23:12:43 +000024070 for ac_func in gettimeofday ftime
24071do :
24072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024074if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024075 cat >>confdefs.h <<_ACEOF
24076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24077_ACEOF
24078 break
24079fi
24080done
24081
24082
24083
24084fi
24085
24086
cristy3ed852e2009-09-05 21:47:34 +000024087########
24088#
24089# Check for function prototypes
24090#
24091########
24092
cristy8b350f62009-11-15 23:12:43 +000024093ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024094#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024095"
cristyda16f162011-02-19 23:52:17 +000024096if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024097 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024098else
cristy8b350f62009-11-15 23:12:43 +000024099 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024100fi
24101
cristy3ed852e2009-09-05 21:47:34 +000024102cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024103#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024105ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024106#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024107"
cristyda16f162011-02-19 23:52:17 +000024108if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024109 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024110else
cristy8b350f62009-11-15 23:12:43 +000024111 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024112fi
24113
cristy3ed852e2009-09-05 21:47:34 +000024114cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024115#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024116_ACEOF
24117
24118
cristy8b350f62009-11-15 23:12:43 +000024119ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024120#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024121"
cristyda16f162011-02-19 23:52:17 +000024122if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024123 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024124else
cristy8b350f62009-11-15 23:12:43 +000024125 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024126fi
24127
cristy3ed852e2009-09-05 21:47:34 +000024128cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024129#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024130_ACEOF
24131
24132
cristy8b350f62009-11-15 23:12:43 +000024133ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024134#include <stdio.h>
24135#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024136"
cristyda16f162011-02-19 23:52:17 +000024137if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024138 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024139else
cristy8b350f62009-11-15 23:12:43 +000024140 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024141fi
24142
cristy3ed852e2009-09-05 21:47:34 +000024143cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024144#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024145_ACEOF
24146
24147
cristy3ed852e2009-09-05 21:47:34 +000024148########
24149#
24150# C++ Support Tests (For Magick++)
24151#
24152########
24153have_magick_plus_plus='no'
24154if test "$with_magick_plus_plus" = 'yes'; then
24155 OLIBS="$LIBS"
24156 LIBS=''
24157 ac_ext=cpp
24158ac_cpp='$CXXCPP $CPPFLAGS'
24159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24162
24163
24164 # Full set of headers used...
24165 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24166 # functional iomanip iosfwd iostream iterator list string strstream utility
24167 ac_ext=cpp
24168ac_cpp='$CXXCPP $CPPFLAGS'
24169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24172
24173 ac_ext=cpp
24174ac_cpp='$CXXCPP $CPPFLAGS'
24175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24178if test -z "$CXX"; then
24179 if test -n "$CCC"; then
24180 CXX=$CCC
24181 else
24182 if test -n "$ac_tool_prefix"; then
24183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24184 do
24185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024188$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024189if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024190 $as_echo_n "(cached) " >&6
24191else
24192 if test -n "$CXX"; then
24193 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24194else
24195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24196for as_dir in $PATH
24197do
24198 IFS=$as_save_IFS
24199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24202 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024204 break 2
24205 fi
24206done
cristy8b350f62009-11-15 23:12:43 +000024207 done
cristy3ed852e2009-09-05 21:47:34 +000024208IFS=$as_save_IFS
24209
24210fi
24211fi
24212CXX=$ac_cv_prog_CXX
24213if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo "$CXX" >&6; }
24216else
cristy8b350f62009-11-15 23:12:43 +000024217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "no" >&6; }
24219fi
24220
24221
24222 test -n "$CXX" && break
24223 done
24224fi
24225if test -z "$CXX"; then
24226 ac_ct_CXX=$CXX
24227 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24228do
24229 # Extract the first word of "$ac_prog", so it can be a program name with args.
24230set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024232$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024233if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024234 $as_echo_n "(cached) " >&6
24235else
24236 if test -n "$ac_ct_CXX"; then
24237 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24238else
24239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24240for as_dir in $PATH
24241do
24242 IFS=$as_save_IFS
24243 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24246 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024248 break 2
24249 fi
24250done
cristy8b350f62009-11-15 23:12:43 +000024251 done
cristy3ed852e2009-09-05 21:47:34 +000024252IFS=$as_save_IFS
24253
24254fi
24255fi
24256ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24257if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024259$as_echo "$ac_ct_CXX" >&6; }
24260else
cristy8b350f62009-11-15 23:12:43 +000024261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024262$as_echo "no" >&6; }
24263fi
24264
24265
24266 test -n "$ac_ct_CXX" && break
24267done
24268
24269 if test "x$ac_ct_CXX" = x; then
24270 CXX="g++"
24271 else
24272 case $cross_compiling:$ac_tool_warned in
24273yes:)
cristy8b350f62009-11-15 23:12:43 +000024274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24276ac_tool_warned=yes ;;
24277esac
24278 CXX=$ac_ct_CXX
24279 fi
24280fi
24281
24282 fi
24283fi
24284# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024285$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024286set X $ac_compile
24287ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024288for ac_option in --version -v -V -qversion; do
24289 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024290case "(($ac_try" in
24291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292 *) ac_try_echo=$ac_try;;
24293esac
cristy8b350f62009-11-15 23:12:43 +000024294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24295$as_echo "$ac_try_echo"; } >&5
24296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024297 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024298 if test -s conftest.err; then
24299 sed '10a\
24300... rest of stderr output deleted ...
24301 10q' conftest.err >conftest.er1
24302 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024303 fi
cristycd4c5312009-11-22 01:19:08 +000024304 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }
24307done
cristy3ed852e2009-09-05 21:47:34 +000024308
cristy8b350f62009-11-15 23:12:43 +000024309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024310$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024311if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024312 $as_echo_n "(cached) " >&6
24313else
cristy8b350f62009-11-15 23:12:43 +000024314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024315/* end confdefs.h. */
24316
24317int
24318main ()
24319{
24320#ifndef __GNUC__
24321 choke me
24322#endif
24323
24324 ;
24325 return 0;
24326}
24327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024328if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024329 ac_compiler_gnu=yes
24330else
cristy8b350f62009-11-15 23:12:43 +000024331 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024332fi
cristy3ed852e2009-09-05 21:47:34 +000024333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24334ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24335
24336fi
cristy8b350f62009-11-15 23:12:43 +000024337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024338$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24339if test $ac_compiler_gnu = yes; then
24340 GXX=yes
24341else
24342 GXX=
24343fi
24344ac_test_CXXFLAGS=${CXXFLAGS+set}
24345ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024347$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024348if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024349 $as_echo_n "(cached) " >&6
24350else
24351 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24352 ac_cxx_werror_flag=yes
24353 ac_cv_prog_cxx_g=no
24354 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024356/* end confdefs.h. */
24357
24358int
24359main ()
24360{
24361
24362 ;
24363 return 0;
24364}
24365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024366if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024367 ac_cv_prog_cxx_g=yes
24368else
cristy8b350f62009-11-15 23:12:43 +000024369 CXXFLAGS=""
24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024371/* end confdefs.h. */
24372
24373int
24374main ()
24375{
24376
24377 ;
24378 return 0;
24379}
24380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024381if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024382
cristy8b350f62009-11-15 23:12:43 +000024383else
24384 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024385 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024387/* end confdefs.h. */
24388
24389int
24390main ()
24391{
24392
24393 ;
24394 return 0;
24395}
24396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024397if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024398 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024399fi
cristy3ed852e2009-09-05 21:47:34 +000024400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24401fi
cristy3ed852e2009-09-05 21:47:34 +000024402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403fi
cristy3ed852e2009-09-05 21:47:34 +000024404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24406fi
cristy8b350f62009-11-15 23:12:43 +000024407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024408$as_echo "$ac_cv_prog_cxx_g" >&6; }
24409if test "$ac_test_CXXFLAGS" = set; then
24410 CXXFLAGS=$ac_save_CXXFLAGS
24411elif test $ac_cv_prog_cxx_g = yes; then
24412 if test "$GXX" = yes; then
24413 CXXFLAGS="-g -O2"
24414 else
24415 CXXFLAGS="-g"
24416 fi
24417else
24418 if test "$GXX" = yes; then
24419 CXXFLAGS="-O2"
24420 else
24421 CXXFLAGS=
24422 fi
24423fi
24424ac_ext=cpp
24425ac_cpp='$CXXCPP $CPPFLAGS'
24426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24429
cristy73bd4a52010-10-05 11:24:23 +000024430depcc="$CXX" am_compiler_list=
24431
24432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24433$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024434if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024435 $as_echo_n "(cached) " >&6
24436else
24437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24438 # We make a subdir and do the tests there. Otherwise we can end up
24439 # making bogus files that we don't know about and never remove. For
24440 # instance it was reported that on HP-UX the gcc test will end up
24441 # making a dummy file named `D' -- because `-MD' means `put the output
24442 # in D'.
24443 mkdir conftest.dir
24444 # Copy depcomp to subdir because otherwise we won't find it if we're
24445 # using a relative directory.
24446 cp "$am_depcomp" conftest.dir
24447 cd conftest.dir
24448 # We will build objects and dependencies in a subdirectory because
24449 # it helps to detect inapplicable dependency modes. For instance
24450 # both Tru64's cc and ICC support -MD to output dependencies as a
24451 # side effect of compilation, but ICC will put the dependencies in
24452 # the current directory while Tru64 will put them in the object
24453 # directory.
24454 mkdir sub
24455
24456 am_cv_CXX_dependencies_compiler_type=none
24457 if test "$am_compiler_list" = ""; then
24458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24459 fi
24460 am__universal=false
24461 case " $depcc " in #(
24462 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24463 esac
24464
24465 for depmode in $am_compiler_list; do
24466 # Setup a source with many dependencies, because some compilers
24467 # like to wrap large dependency lists on column 80 (with \), and
24468 # we should not choose a depcomp mode which is confused by this.
24469 #
24470 # We need to recreate these files for each test, as the compiler may
24471 # overwrite some of them when testing with obscure command lines.
24472 # This happens at least with the AIX C compiler.
24473 : > sub/conftest.c
24474 for i in 1 2 3 4 5 6; do
24475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24476 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24477 # Solaris 8's {/usr,}/bin/sh.
24478 touch sub/conftst$i.h
24479 done
24480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24481
24482 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24483 # mode. It turns out that the SunPro C++ compiler does not properly
24484 # handle `-M -o', and we need to detect this. Also, some Intel
24485 # versions had trouble with output in subdirs
24486 am__obj=sub/conftest.${OBJEXT-o}
24487 am__minus_obj="-o $am__obj"
24488 case $depmode in
24489 gcc)
24490 # This depmode causes a compiler race in universal mode.
24491 test "$am__universal" = false || continue
24492 ;;
24493 nosideeffect)
24494 # after this tag, mechanisms are not by side-effect, so they'll
24495 # only be used when explicitly requested
24496 if test "x$enable_dependency_tracking" = xyes; then
24497 continue
24498 else
24499 break
24500 fi
24501 ;;
24502 msvisualcpp | msvcmsys)
24503 # This compiler won't grok `-c -o', but also, the minuso test has
24504 # not run yet. These depmodes are late enough in the game, and
24505 # so weak that their functioning should not be impacted.
24506 am__obj=conftest.${OBJEXT-o}
24507 am__minus_obj=
24508 ;;
24509 none) break ;;
24510 esac
24511 if depmode=$depmode \
24512 source=sub/conftest.c object=$am__obj \
24513 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24514 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24515 >/dev/null 2>conftest.err &&
24516 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24517 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24518 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24519 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24520 # icc doesn't choke on unknown options, it will just issue warnings
24521 # or remarks (even with -Werror). So we grep stderr for any message
24522 # that says an option was ignored or not supported.
24523 # When given -MP, icc 7.0 and 7.1 complain thusly:
24524 # icc: Command line warning: ignoring option '-M'; no argument required
24525 # The diagnosis changed in icc 8.0:
24526 # icc: Command line remark: option '-MP' not supported
24527 if (grep 'ignoring option' conftest.err ||
24528 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24529 am_cv_CXX_dependencies_compiler_type=$depmode
24530 break
24531 fi
24532 fi
24533 done
24534
24535 cd ..
24536 rm -rf conftest.dir
24537else
24538 am_cv_CXX_dependencies_compiler_type=none
24539fi
24540
24541fi
24542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24543$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24544CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24545
24546 if
24547 test "x$enable_dependency_tracking" != xno \
24548 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24549 am__fastdepCXX_TRUE=
24550 am__fastdepCXX_FALSE='#'
24551else
24552 am__fastdepCXX_TRUE='#'
24553 am__fastdepCXX_FALSE=
24554fi
24555
24556
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24558$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024559if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024560 $as_echo_n "(cached) " >&6
24561else
24562
24563 ac_ext=cpp
24564ac_cpp='$CXXCPP $CPPFLAGS'
24565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24568
24569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24570/* end confdefs.h. */
24571
24572int f(int x){return 1;}
24573int f(char x){return 1;}
24574int f(bool x){return 1;}
24575
24576int
24577main ()
24578{
24579bool b = true; return f(b);
24580 ;
24581 return 0;
24582}
24583_ACEOF
24584if ac_fn_cxx_try_compile "$LINENO"; then :
24585 ax_cv_cxx_bool=yes
24586else
24587 ax_cv_cxx_bool=no
24588fi
24589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 ac_ext=cpp
24591ac_cpp='$CXXCPP $CPPFLAGS'
24592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24595
24596
24597fi
24598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24599$as_echo "$ax_cv_cxx_bool" >&6; }
24600if test "$ax_cv_cxx_bool" = yes; then
24601
24602$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24603
24604fi
24605
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24607$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024608if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024609 $as_echo_n "(cached) " >&6
24610else
24611
24612 ac_ext=cpp
24613ac_cpp='$CXXCPP $CPPFLAGS'
24614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24617
24618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619/* end confdefs.h. */
24620namespace Outer { namespace Inner { int i = 0; }}
24621int
24622main ()
24623{
24624using namespace Outer::Inner; return i;
24625 ;
24626 return 0;
24627}
24628_ACEOF
24629if ac_fn_cxx_try_compile "$LINENO"; then :
24630 ax_cv_cxx_namespaces=yes
24631else
24632 ax_cv_cxx_namespaces=no
24633fi
24634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 ac_ext=cpp
24636ac_cpp='$CXXCPP $CPPFLAGS'
24637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24640
24641
24642fi
24643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24644$as_echo "$ax_cv_cxx_namespaces" >&6; }
24645if test "$ax_cv_cxx_namespaces" = yes; then
24646
24647$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24648
24649fi
24650
24651
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24653$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024654if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024655 $as_echo_n "(cached) " >&6
24656else
24657
24658 ac_ext=cpp
24659ac_cpp='$CXXCPP $CPPFLAGS'
24660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24663
24664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24665/* end confdefs.h. */
24666#include <iostream>
24667 std::istream& is = std::cin;
24668int
24669main ()
24670{
24671
24672 ;
24673 return 0;
24674}
24675_ACEOF
24676if ac_fn_cxx_try_compile "$LINENO"; then :
24677 ax_cv_cxx_have_std_namespace=yes
24678else
24679 ax_cv_cxx_have_std_namespace=no
24680fi
24681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682 ac_ext=cpp
24683ac_cpp='$CXXCPP $CPPFLAGS'
24684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24687
24688
24689fi
24690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24691$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24692 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24693
24694$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24695
24696 fi
24697
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24699$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024700if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024701 $as_echo_n "(cached) " >&6
24702else
24703
24704
24705 ac_ext=cpp
24706ac_cpp='$CXXCPP $CPPFLAGS'
24707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24710
24711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712/* end confdefs.h. */
24713#include <iostream>
24714#include <map>
24715#include <iomanip>
24716#include <cmath>
24717#ifdef HAVE_NAMESPACES
24718using namespace std;
24719#endif
24720int
24721main ()
24722{
24723return 0;
24724 ;
24725 return 0;
24726}
24727_ACEOF
24728if ac_fn_cxx_try_compile "$LINENO"; then :
24729 ac_cv_cxx_have_std_libs=yes
24730else
24731 ac_cv_cxx_have_std_libs=no
24732fi
24733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24734 ac_ext=cpp
24735ac_cpp='$CXXCPP $CPPFLAGS'
24736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24739
24740
24741fi
24742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24743$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24744if test "$ac_cv_cxx_have_std_libs" = yes; then
24745
24746$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24747
24748fi
24749
cristy3ed852e2009-09-05 21:47:34 +000024750
24751 OPENMP_CXXFLAGS=
24752 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024753if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024754 enableval=$enable_openmp;
24755fi
24756
24757 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24759$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024760if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024761 $as_echo_n "(cached) " >&6
24762else
cristy8b350f62009-11-15 23:12:43 +000024763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24764/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024765
24766#ifndef _OPENMP
24767 choke me
24768#endif
24769#include <omp.h>
24770int main () { return omp_get_num_threads (); }
24771
24772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024773if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024774 ac_cv_prog_cxx_openmp='none needed'
24775else
cristy8b350f62009-11-15 23:12:43 +000024776 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024777 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24778 ac_save_CXXFLAGS=$CXXFLAGS
24779 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24781/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024782
24783#ifndef _OPENMP
24784 choke me
24785#endif
24786#include <omp.h>
24787int main () { return omp_get_num_threads (); }
24788
24789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024790if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024791 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024792fi
cristy8b350f62009-11-15 23:12:43 +000024793rm -f core conftest.err conftest.$ac_objext \
24794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024795 CXXFLAGS=$ac_save_CXXFLAGS
24796 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24797 break
24798 fi
24799 done
24800fi
cristy8b350f62009-11-15 23:12:43 +000024801rm -f core conftest.err conftest.$ac_objext \
24802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024803fi
cristy8b350f62009-11-15 23:12:43 +000024804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024805$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24806 case $ac_cv_prog_cxx_openmp in #(
24807 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024808 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024809 *)
cristy8b350f62009-11-15 23:12:43 +000024810 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024811 esac
24812 fi
24813
24814
24815 ac_ext=c
24816ac_cpp='$CPP $CPPFLAGS'
24817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24819ac_compiler_gnu=$ac_cv_c_compiler_gnu
24820
24821
cristy8b350f62009-11-15 23:12:43 +000024822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024823$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24824 if \
cristy964cb7f2010-04-25 23:18:00 +000024825 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024826 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024827 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024828 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024829 have_magick_plus_plus='yes'
24830 else
24831 have_magick_plus_plus='no (failed tests)'
24832 fi
cristy8b350f62009-11-15 23:12:43 +000024833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024834$as_echo "$have_magick_plus_plus" >&6; }
24835 LIBS="$OLIBS"
24836fi
cristy73bd4a52010-10-05 11:24:23 +000024837 if test "$have_magick_plus_plus" = 'yes'; then
24838 WITH_MAGICK_PLUS_PLUS_TRUE=
24839 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24840else
24841 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24842 WITH_MAGICK_PLUS_PLUS_FALSE=
24843fi
24844
cristy3ed852e2009-09-05 21:47:34 +000024845
24846# Only check for delegate libraries in subdirectories if requested.
24847if test "$enable_delegate_build" != 'no'; then
24848 # Check for delegate sub-directories and add -I & -L options as required.
24849 # This presumes that delegates are installed as detailed in the ImageMagick
24850 # README. If delegates are installed in a standard location where the
24851 # compiler will automatically find them then these options should not be
24852 # required.
24853
24854 #
24855 # Most delegates have includes in the same directory as the library, but not all...
24856 #
24857 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024858 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 +000024859 if test -d "$builddir/$dir"; then
24860 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24861 else
24862 if test -d "$srcdirfull/$dir"; then
24863 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24864 fi
24865 fi
24866 done
24867
24868 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024869 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 +000024870 if test -d "$builddir/$dir/.libs"; then
24871 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24872 else
24873 if test -d "$srcdirfull/$dir/.libs"; then
24874 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24875 fi
24876 fi
24877 if test -d "$builddir/$dir"; then
24878 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24879 else
24880 if test -d "$srcdirfull/$dir"; then
24881 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24882 fi
24883 fi
24884 done
24885fi
24886
24887# Assume that delegate headers reside under same directory as ImageMagick
24888# installation prefix.
24889MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24890
24891#
24892# Find the X11 RGB database
24893#
cristy8b350f62009-11-15 23:12:43 +000024894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024895$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024896if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024897 $as_echo_n "(cached) " >&6
24898else
24899 # Look for the header file in a standard set of common directories.
24900# Check X11 before X11Rn because it is often a symlink to the current release.
24901 for ac_dir in \
24902 /lib/usr/lib/X11 \
24903 /usr/X11/lib \
24904 /usr/X11R4/lib \
24905 /usr/X11R5/lib \
24906 /usr/X11R6/lib \
24907 /usr/X11R7/lib \
24908 /usr/X386/lib \
24909 /usr/XFree86/lib/X11 \
24910 /usr/athena/lib \
24911 /usr/lib \
24912 /usr/lib/X11 \
24913 /usr/lib/X11R4 \
24914 /usr/lib/X11R5 \
24915 /usr/lib/X11R6 \
24916 /usr/lib/X11R7 \
24917 /usr/local/X11/lib \
24918 /usr/local/X11R4/lib \
24919 /usr/local/X11R5/lib \
24920 /usr/local/X11R6/lib \
24921 /usr/local/lib \
24922 /usr/local/lib/X11 \
24923 /usr/local/lib/X11R4 \
24924 /usr/local/lib/X11R5 \
24925 /usr/local/lib/X11R6 \
24926 /usr/local/lib/X11R7 \
24927 /usr/local/x11r5/lib \
24928 /usr/lpp/Xamples/lib \
24929 /usr/openwin/lib \
24930 /usr/openwin/share/lib \
24931 /usr/unsupported/lib \
24932 /usr/x386/lib \
24933 ; do
24934 if test -f "$ac_dir/X11/rgb.txt"; then
24935 im_cv_x_configure="$ac_dir/X11/"
24936 break
24937 elif test -f "$ac_dir/rgb.txt"; then
24938 im_cv_x_configure="$ac_dir/"
24939 break
24940 fi
24941
24942 done
24943fi
cristy8b350f62009-11-15 23:12:43 +000024944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024945$as_echo "$im_cv_x_configure" >&6; }
24946X11_CONFIGURE_PATH="$im_cv_x_configure"
24947case "${build_os}" in
24948 mingw* )
24949 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24950 ;;
24951esac
24952
24953cat >>confdefs.h <<_ACEOF
24954#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24955_ACEOF
24956
24957
24958#
24959# Find OpenMP library
24960#
24961GOMP_LIBS=''
24962if test "$enable_openmp" != 'no'; then
24963 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024965$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024966if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024967 $as_echo_n "(cached) " >&6
24968else
24969 ac_check_lib_save_LIBS=$LIBS
24970LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024972/* end confdefs.h. */
24973
24974/* Override any GCC internal prototype to avoid an error.
24975 Use char because int might match the return type of a GCC
24976 builtin and then its argument prototype would still apply. */
24977#ifdef __cplusplus
24978extern "C"
24979#endif
24980char GOMP_parallel_start ();
24981int
24982main ()
24983{
24984return GOMP_parallel_start ();
24985 ;
24986 return 0;
24987}
24988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024989if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024990 ac_cv_lib_gomp_GOMP_parallel_start=yes
24991else
cristy8b350f62009-11-15 23:12:43 +000024992 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024993fi
cristy8b350f62009-11-15 23:12:43 +000024994rm -f core conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024996LIBS=$ac_check_lib_save_LIBS
24997fi
cristy8b350f62009-11-15 23:12:43 +000024998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024999$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025000if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025001 GOMP_LIBS="-lgomp"
25002fi
25003 # gcc
25004 else
cristy8b350f62009-11-15 23:12:43 +000025005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025006$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025007if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025008 $as_echo_n "(cached) " >&6
25009else
25010 ac_check_lib_save_LIBS=$LIBS
25011LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025013/* end confdefs.h. */
25014
25015/* Override any GCC internal prototype to avoid an error.
25016 Use char because int might match the return type of a GCC
25017 builtin and then its argument prototype would still apply. */
25018#ifdef __cplusplus
25019extern "C"
25020#endif
25021char sunw_mp_register_warn ();
25022int
25023main ()
25024{
25025return sunw_mp_register_warn ();
25026 ;
25027 return 0;
25028}
25029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025030if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025031 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25032else
cristy8b350f62009-11-15 23:12:43 +000025033 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025034fi
cristy8b350f62009-11-15 23:12:43 +000025035rm -f core conftest.err conftest.$ac_objext \
25036 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025037LIBS=$ac_check_lib_save_LIBS
25038fi
cristy8b350f62009-11-15 23:12:43 +000025039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025040$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025041if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025042 GOMP_LIBS="-lmtsk"
25043fi
25044 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025046$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025047if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025048 $as_echo_n "(cached) " >&6
25049else
25050 ac_check_lib_save_LIBS=$LIBS
25051LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025053/* end confdefs.h. */
25054
25055/* Override any GCC internal prototype to avoid an error.
25056 Use char because int might match the return type of a GCC
25057 builtin and then its argument prototype would still apply. */
25058#ifdef __cplusplus
25059extern "C"
25060#endif
25061char _xlsmpFlush ();
25062int
25063main ()
25064{
25065return _xlsmpFlush ();
25066 ;
25067 return 0;
25068}
25069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025070if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025071 ac_cv_lib_xlsmp__xlsmpFlush=yes
25072else
cristy8b350f62009-11-15 23:12:43 +000025073 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025074fi
cristy8b350f62009-11-15 23:12:43 +000025075rm -f core conftest.err conftest.$ac_objext \
25076 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025077LIBS=$ac_check_lib_save_LIBS
25078fi
cristy8b350f62009-11-15 23:12:43 +000025079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025080$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025081if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025082 GOMP_LIBS="-lxlsmp"
25083fi
25084 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025086$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025087if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025088 $as_echo_n "(cached) " >&6
25089else
25090 ac_check_lib_save_LIBS=$LIBS
25091LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025093/* end confdefs.h. */
25094
25095/* Override any GCC internal prototype to avoid an error.
25096 Use char because int might match the return type of a GCC
25097 builtin and then its argument prototype would still apply. */
25098#ifdef __cplusplus
25099extern "C"
25100#endif
25101char mp_destroy ();
25102int
25103main ()
25104{
25105return mp_destroy ();
25106 ;
25107 return 0;
25108}
25109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025110if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025111 ac_cv_lib_mp_mp_destroy=yes
25112else
cristy8b350f62009-11-15 23:12:43 +000025113 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025114fi
cristy8b350f62009-11-15 23:12:43 +000025115rm -f core conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117LIBS=$ac_check_lib_save_LIBS
25118fi
cristy8b350f62009-11-15 23:12:43 +000025119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025121if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025122 GOMP_LIBS="-lmp"
25123fi
25124 # SGI IRIX 6.5 MIPSpro C/C++
25125 fi
25126 LIBS="$GOMP_LIBS $LIBS"
25127fi
25128
25129
25130#
25131# Find Posix threads library
25132#
25133THREAD_LIBS=''
25134if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25135
25136 if test "x$PTHREAD_LIBS" = "x"; then
25137 case "${host_cpu}-${host_os}" in
25138 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025139
25140
25141
25142ac_ext=c
25143ac_cpp='$CPP $CPPFLAGS'
25144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25146ac_compiler_gnu=$ac_cv_c_compiler_gnu
25147
25148magick_pthread_lib_ok=no
25149
25150LIB=-lc_r
25151save_LIBS="$LIBS"
25152LIBS="$LIBS $LIB"
25153
25154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25155$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157/* end confdefs.h. */
25158#include <pthread.h>
25159int
25160main ()
25161{
25162 pthread_t th;
25163 pthread_join(th, 0);
25164 pthread_attr_init(0);
25165 pthread_cleanup_push(0, 0);
25166 pthread_create(0,0,0,0);
25167 pthread_cleanup_pop(0);
25168 ;
25169 return 0;
25170}
25171_ACEOF
25172if ac_fn_c_try_link "$LINENO"; then :
25173 magick_pthread_lib_ok=yes
25174fi
25175rm -f core conftest.err conftest.$ac_objext \
25176 conftest$ac_exeext conftest.$ac_ext
25177
25178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25179$as_echo "${magick_pthread_lib_ok}" >&6; }
25180if test "$magick_pthread_lib_ok" = yes
25181then
25182 PTHREAD_LIBS=-lc_r
25183 :
25184else
25185
25186 :
25187fi
25188
25189LIBS="$save_LIBS"
25190
25191ac_ext=c
25192ac_cpp='$CPP $CPPFLAGS'
25193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25195ac_compiler_gnu=$ac_cv_c_compiler_gnu
25196
25197 ;;
cristy3ed852e2009-09-05 21:47:34 +000025198 esac
25199 fi
25200
25201 for lib in pthread pthreads; do
25202 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025203
25204
25205
25206ac_ext=c
25207ac_cpp='$CPP $CPPFLAGS'
25208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25210ac_compiler_gnu=$ac_cv_c_compiler_gnu
25211
25212magick_pthread_lib_ok=no
25213
25214LIB=-l$lib
25215save_LIBS="$LIBS"
25216LIBS="$LIBS $LIB"
25217
25218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25219$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221/* end confdefs.h. */
25222#include <pthread.h>
25223int
25224main ()
25225{
25226 pthread_t th;
25227 pthread_join(th, 0);
25228 pthread_attr_init(0);
25229 pthread_cleanup_push(0, 0);
25230 pthread_create(0,0,0,0);
25231 pthread_cleanup_pop(0);
25232 ;
25233 return 0;
25234}
25235_ACEOF
25236if ac_fn_c_try_link "$LINENO"; then :
25237 magick_pthread_lib_ok=yes
25238fi
25239rm -f core conftest.err conftest.$ac_objext \
25240 conftest$ac_exeext conftest.$ac_ext
25241
25242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25243$as_echo "${magick_pthread_lib_ok}" >&6; }
25244if test "$magick_pthread_lib_ok" = yes
25245then
25246 PTHREAD_LIBS=-l$lib
25247 :
25248else
25249
25250 :
25251fi
25252
25253LIBS="$save_LIBS"
25254
25255ac_ext=c
25256ac_cpp='$CPP $CPPFLAGS'
25257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25259ac_compiler_gnu=$ac_cv_c_compiler_gnu
25260
25261
cristy3ed852e2009-09-05 21:47:34 +000025262 fi
25263 done
25264
25265 THREAD_LIBS="$PTHREAD_LIBS"
25266 LIBS="$LIBS $THREAD_LIBS"
25267fi
25268
25269
25270#
25271# Check for umem.
25272#
25273have_umem='no'
25274UMEM_LIBS=''
25275if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025277$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025279$as_echo "" >&6; }
25280 failed=0
25281 passed=0
cristy8b350f62009-11-15 23:12:43 +000025282 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025283if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025284 passed=`expr $passed + 1`
25285else
25286 failed=`expr $failed + 1`
25287fi
25288
25289
cristy8b350f62009-11-15 23:12:43 +000025290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025291$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025292if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025293 $as_echo_n "(cached) " >&6
25294else
25295 ac_check_lib_save_LIBS=$LIBS
25296LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025298/* end confdefs.h. */
25299
25300/* Override any GCC internal prototype to avoid an error.
25301 Use char because int might match the return type of a GCC
25302 builtin and then its argument prototype would still apply. */
25303#ifdef __cplusplus
25304extern "C"
25305#endif
25306char umem_alloc ();
25307int
25308main ()
25309{
25310return umem_alloc ();
25311 ;
25312 return 0;
25313}
25314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025315if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025316 ac_cv_lib_umem_umem_alloc=yes
25317else
cristy8b350f62009-11-15 23:12:43 +000025318 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025319fi
cristy8b350f62009-11-15 23:12:43 +000025320rm -f core conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025322LIBS=$ac_check_lib_save_LIBS
25323fi
cristy8b350f62009-11-15 23:12:43 +000025324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025325$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025326if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025327 passed=`expr $passed + 1`
25328else
25329 failed=`expr $failed + 1`
25330fi
25331
cristy8b350f62009-11-15 23:12:43 +000025332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025333$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025334if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025335 $as_echo_n "(cached) " >&6
25336else
25337 ac_check_lib_save_LIBS=$LIBS
25338LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025340/* end confdefs.h. */
25341
25342/* Override any GCC internal prototype to avoid an error.
25343 Use char because int might match the return type of a GCC
25344 builtin and then its argument prototype would still apply. */
25345#ifdef __cplusplus
25346extern "C"
25347#endif
25348char umem_free ();
25349int
25350main ()
25351{
25352return umem_free ();
25353 ;
25354 return 0;
25355}
25356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025358 ac_cv_lib_umem_umem_free=yes
25359else
cristy8b350f62009-11-15 23:12:43 +000025360 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025361fi
cristy8b350f62009-11-15 23:12:43 +000025362rm -f core conftest.err conftest.$ac_objext \
25363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025364LIBS=$ac_check_lib_save_LIBS
25365fi
cristy8b350f62009-11-15 23:12:43 +000025366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025367$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025368if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025369 passed=`expr $passed + 1`
25370else
25371 failed=`expr $failed + 1`
25372fi
25373
cristy8b350f62009-11-15 23:12:43 +000025374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025375$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25376 if test $passed -gt 0; then
25377 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025379$as_echo "no -- some components failed test" >&6; }
25380 have_umem='no (failed tests)'
25381 else
25382 UMEM_LIBS='-lumem'
25383 LIBS="$UMEM_LIBS $LIBS"
25384
cristy8b350f62009-11-15 23:12:43 +000025385$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025386
cristy8b350f62009-11-15 23:12:43 +000025387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025388$as_echo "yes" >&6; }
25389 have_umem='yes'
25390 fi
25391 else
cristy8b350f62009-11-15 23:12:43 +000025392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025393$as_echo "no" >&6; }
25394 fi
25395fi
cristy73bd4a52010-10-05 11:24:23 +000025396 if test "$have_umem" = 'yes'; then
25397 HasUMEM_TRUE=
25398 HasUMEM_FALSE='#'
25399else
25400 HasUMEM_TRUE='#'
25401 HasUMEM_FALSE=
25402fi
25403
cristy3ed852e2009-09-05 21:47:34 +000025404
25405
25406#
25407# Add support for ccmalloc memory debugging library if requested
25408#
25409have_ccmalloc='no'
25410CCMALLOC_LIBS=''
25411if test "$enable_ccmalloc" = 'yes'; then
25412 # Extract the first word of "ccmalloc", so it can be a program name with args.
25413set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025416if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025417 $as_echo_n "(cached) " >&6
25418else
25419 case $CCMALLOCDelegate in
25420 [\\/]* | ?:[\\/]*)
25421 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25422 ;;
25423 *)
25424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25425for as_dir in $PATH
25426do
25427 IFS=$as_save_IFS
25428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25431 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025433 break 2
25434 fi
25435done
cristy8b350f62009-11-15 23:12:43 +000025436 done
cristy3ed852e2009-09-05 21:47:34 +000025437IFS=$as_save_IFS
25438
25439 ;;
25440esac
25441fi
25442CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25443if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025445$as_echo "$CCMALLOCDelegate" >&6; }
25446else
cristy8b350f62009-11-15 23:12:43 +000025447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025448$as_echo "no" >&6; }
25449fi
25450
25451
25452 if test -n "$CCMALLOCDelegate"; then
25453 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25454 OLIBS="$LIBS"
25455 # Assume that gcc is used with ccmalloc.
25456 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025459if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 $as_echo_n "(cached) " >&6
25461else
25462 ac_check_lib_save_LIBS=$LIBS
25463LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025465/* end confdefs.h. */
25466
25467/* Override any GCC internal prototype to avoid an error.
25468 Use char because int might match the return type of a GCC
25469 builtin and then its argument prototype would still apply. */
25470#ifdef __cplusplus
25471extern "C"
25472#endif
25473char ccmalloc_malloc ();
25474int
25475main ()
25476{
25477return ccmalloc_malloc ();
25478 ;
25479 return 0;
25480}
25481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025483 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25484else
cristy8b350f62009-11-15 23:12:43 +000025485 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025486fi
cristy8b350f62009-11-15 23:12:43 +000025487rm -f core conftest.err conftest.$ac_objext \
25488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025489LIBS=$ac_check_lib_save_LIBS
25490fi
cristy8b350f62009-11-15 23:12:43 +000025491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025492$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025493if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025494 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25495fi
25496
25497 if test -n "$CCMALLOC_LIBS"; then
25498 LIBS="$OLIBS"
25499 LIBS="$LIBS $CCMALLOC_LIBS"
25500 have_ccmalloc='yes'
25501 else
25502 LIBS="$OLIBS"
25503 fi
25504 fi
25505fi
25506
25507#
25508# Add support for efence memory debugging library if requested
25509#
25510if test "$enable_efence" = 'yes'; then
25511 EFENCE_LIBS='-lefence'
25512 LIBS="$EFENCE_LIBS $LIBS"
25513fi
25514
cristy3ed852e2009-09-05 21:47:34 +000025515
25516#
25517# Check for BZLIB
25518#
25519
25520
25521# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025522if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025523 withval=$with_bzlib; with_bzlib=$withval
25524else
25525 with_bzlib='yes'
25526fi
25527
25528
25529if test "$with_bzlib" != 'yes'; then
25530 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25531fi
25532
25533have_bzlib='no'
25534if test "$with_bzlib" != 'no'; then
25535 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025537$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025539$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025541$as_echo "" >&6; }
25542 failed=0
25543 passed=0
25544 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025545 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025546if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025547 passed=`expr $passed + 1`
25548else
25549 failed=`expr $failed + 1`
25550fi
25551
25552
cristy8b350f62009-11-15 23:12:43 +000025553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025554$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025555if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025556 $as_echo_n "(cached) " >&6
25557else
25558 ac_check_lib_save_LIBS=$LIBS
25559LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025561/* end confdefs.h. */
25562
25563/* Override any GCC internal prototype to avoid an error.
25564 Use char because int might match the return type of a GCC
25565 builtin and then its argument prototype would still apply. */
25566#ifdef __cplusplus
25567extern "C"
25568#endif
25569char BZ2_bzDecompress ();
25570int
25571main ()
25572{
25573return BZ2_bzDecompress ();
25574 ;
25575 return 0;
25576}
25577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025578if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025579 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25580else
cristy8b350f62009-11-15 23:12:43 +000025581 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025582fi
cristy8b350f62009-11-15 23:12:43 +000025583rm -f core conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025585LIBS=$ac_check_lib_save_LIBS
25586fi
cristy8b350f62009-11-15 23:12:43 +000025587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025588$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025589if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025590 found_libbz=`expr $found_libbz + 1`
25591fi
25592
25593 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025595$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025596if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025597 $as_echo_n "(cached) " >&6
25598else
25599 ac_check_lib_save_LIBS=$LIBS
25600LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025602/* end confdefs.h. */
25603
25604/* Override any GCC internal prototype to avoid an error.
25605 Use char because int might match the return type of a GCC
25606 builtin and then its argument prototype would still apply. */
25607#ifdef __cplusplus
25608extern "C"
25609#endif
25610char _imp__BZ2_decompress ();
25611int
25612main ()
25613{
25614return _imp__BZ2_decompress ();
25615 ;
25616 return 0;
25617}
25618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025620 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25621else
cristy8b350f62009-11-15 23:12:43 +000025622 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025623fi
cristy8b350f62009-11-15 23:12:43 +000025624rm -f core conftest.err conftest.$ac_objext \
25625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025626LIBS=$ac_check_lib_save_LIBS
25627fi
cristy8b350f62009-11-15 23:12:43 +000025628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025629$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025630if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025631 found_libbz=`expr $found_libbz + 1`
25632fi
25633
25634 fi
25635 if test $found_libbz -gt 0; then
25636 passed=`expr $passed + 1`
25637 else
25638 failed=`expr $failed + 1`
25639 fi
cristy8b350f62009-11-15 23:12:43 +000025640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025641$as_echo_n "checking if BZLIB package is complete... " >&6; }
25642 if test $passed -gt 0; then
25643 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025645$as_echo "no -- some components failed test" >&6; }
25646 have_bzlib='no (failed tests)'
25647 else
25648 BZLIB_LIBS='-lbz2'
25649 LIBS="$BZLIB_LIBS $LIBS"
25650
cristy8b350f62009-11-15 23:12:43 +000025651$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025652
cristy8b350f62009-11-15 23:12:43 +000025653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025654$as_echo "yes" >&6; }
25655 have_bzlib='yes'
25656 fi
25657 else
cristy8b350f62009-11-15 23:12:43 +000025658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025659$as_echo "no" >&6; }
25660 fi
25661fi
cristy73bd4a52010-10-05 11:24:23 +000025662 if test "$have_bzlib" = 'yes'; then
25663 BZLIB_DELEGATE_TRUE=
25664 BZLIB_DELEGATE_FALSE='#'
25665else
25666 BZLIB_DELEGATE_TRUE='#'
25667 BZLIB_DELEGATE_FALSE=
25668fi
25669
cristy3ed852e2009-09-05 21:47:34 +000025670
25671
25672#
25673# Find the X11 include and library directories.
25674#
25675IPC_LIBS=''
25676X11_LIBS=''
25677XEXT_LIBS=''
25678XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025680$as_echo_n "checking for X... " >&6; }
25681
25682
25683# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025684if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025685 withval=$with_x;
25686fi
25687
25688# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25689if test "x$with_x" = xno; then
25690 # The user explicitly disabled X.
25691 have_x=disabled
25692else
25693 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025694 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025695 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025696 $as_echo_n "(cached) " >&6
25697else
25698 # One or both of the vars are not set, and there is no cached value.
25699ac_x_includes=no ac_x_libraries=no
25700rm -f -r conftest.dir
25701if mkdir conftest.dir; then
25702 cd conftest.dir
25703 cat >Imakefile <<'_ACEOF'
25704incroot:
25705 @echo incroot='${INCROOT}'
25706usrlibdir:
25707 @echo usrlibdir='${USRLIBDIR}'
25708libdir:
25709 @echo libdir='${LIBDIR}'
25710_ACEOF
25711 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025712 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025713 for ac_var in incroot usrlibdir libdir; do
25714 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25715 done
25716 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25717 for ac_extension in a so sl dylib la dll; do
25718 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25719 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25720 ac_im_usrlibdir=$ac_im_libdir; break
25721 fi
25722 done
25723 # Screen out bogus values from the imake configuration. They are
25724 # bogus both because they are the default anyway, and because
25725 # using them would break gcc on systems where it needs fixed includes.
25726 case $ac_im_incroot in
25727 /usr/include) ac_x_includes= ;;
25728 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25729 esac
25730 case $ac_im_usrlibdir in
25731 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25732 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25733 esac
25734 fi
25735 cd ..
25736 rm -f -r conftest.dir
25737fi
25738
25739# Standard set of common directories for X headers.
25740# Check X11 before X11Rn because it is often a symlink to the current release.
25741ac_x_header_dirs='
25742/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025743/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025744/usr/X11R6/include
25745/usr/X11R5/include
25746/usr/X11R4/include
25747
25748/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025749/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025750/usr/include/X11R6
25751/usr/include/X11R5
25752/usr/include/X11R4
25753
25754/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025755/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025756/usr/local/X11R6/include
25757/usr/local/X11R5/include
25758/usr/local/X11R4/include
25759
25760/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025761/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025762/usr/local/include/X11R6
25763/usr/local/include/X11R5
25764/usr/local/include/X11R4
25765
25766/usr/X386/include
25767/usr/x386/include
25768/usr/XFree86/include/X11
25769
25770/usr/include
25771/usr/local/include
25772/usr/unsupported/include
25773/usr/athena/include
25774/usr/local/x11r5/include
25775/usr/lpp/Xamples/include
25776
25777/usr/openwin/include
25778/usr/openwin/share/include'
25779
25780if test "$ac_x_includes" = no; then
25781 # Guess where to find include files, by looking for Xlib.h.
25782 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025784/* end confdefs.h. */
25785#include <X11/Xlib.h>
25786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025787if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025788 # We can compile using X headers with no special include directory.
25789ac_x_includes=
25790else
cristyc7083c12009-10-14 03:16:55 +000025791 for ac_dir in $ac_x_header_dirs; do
25792 if test -r "$ac_dir/X11/Xlib.h"; then
25793 ac_x_includes=$ac_dir
25794 break
25795 fi
25796done
25797fi
cristyda16f162011-02-19 23:52:17 +000025798rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025799fi # $ac_x_includes = no
25800
25801if test "$ac_x_libraries" = no; then
25802 # Check for the libraries.
25803 # See if we find them without any special options.
25804 # Don't add to $LIBS permanently.
25805 ac_save_LIBS=$LIBS
25806 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025808/* end confdefs.h. */
25809#include <X11/Xlib.h>
25810int
25811main ()
25812{
25813XrmInitialize ()
25814 ;
25815 return 0;
25816}
25817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025818if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025819 LIBS=$ac_save_LIBS
25820# We can link X programs with no special library path.
25821ac_x_libraries=
25822else
cristy8b350f62009-11-15 23:12:43 +000025823 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025824for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25825do
25826 # Don't even attempt the hair of trying to link an X program!
25827 for ac_extension in a so sl dylib la dll; do
25828 if test -r "$ac_dir/libX11.$ac_extension"; then
25829 ac_x_libraries=$ac_dir
25830 break 2
25831 fi
25832 done
25833done
25834fi
cristy8b350f62009-11-15 23:12:43 +000025835rm -f core conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025837fi # $ac_x_libraries = no
25838
25839case $ac_x_includes,$ac_x_libraries in #(
25840 no,* | *,no | *\'*)
25841 # Didn't find X, or a directory has "'" in its name.
25842 ac_cv_have_x="have_x=no";; #(
25843 *)
25844 # Record where we found X for the cache.
25845 ac_cv_have_x="have_x=yes\
25846 ac_x_includes='$ac_x_includes'\
25847 ac_x_libraries='$ac_x_libraries'"
25848esac
25849fi
25850;; #(
25851 *) have_x=yes;;
25852 esac
25853 eval "$ac_cv_have_x"
25854fi # $with_x != no
25855
25856if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025858$as_echo "$have_x" >&6; }
25859 no_x=yes
25860else
25861 # If each of the values was on the command line, it overrides each guess.
25862 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25863 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25864 # Update the cache value to reflect the command line values.
25865 ac_cv_have_x="have_x=yes\
25866 ac_x_includes='$x_includes'\
25867 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025869$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25870fi
25871
cristy3ed852e2009-09-05 21:47:34 +000025872if test "$no_x" = yes; then
25873 # Not all programs may use this symbol, but it does not hurt to define it.
25874
cristy8b350f62009-11-15 23:12:43 +000025875$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025876
25877 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25878else
25879 if test -n "$x_includes"; then
25880 X_CFLAGS="$X_CFLAGS -I$x_includes"
25881 fi
25882
25883 # It would also be nice to do this for all -L options, not just this one.
25884 if test -n "$x_libraries"; then
25885 X_LIBS="$X_LIBS -L$x_libraries"
25886 # For Solaris; some versions of Sun CC require a space after -R and
25887 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25890 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25891 ac_xsave_c_werror_flag=$ac_c_werror_flag
25892 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025894/* end confdefs.h. */
25895
25896int
25897main ()
25898{
25899
25900 ;
25901 return 0;
25902}
25903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025904if ac_fn_c_try_link "$LINENO"; then :
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025906$as_echo "no" >&6; }
25907 X_LIBS="$X_LIBS -R$x_libraries"
25908else
cristy8b350f62009-11-15 23:12:43 +000025909 LIBS="$ac_xsave_LIBS -R $x_libraries"
25910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025911/* end confdefs.h. */
25912
25913int
25914main ()
25915{
25916
25917 ;
25918 return 0;
25919}
25920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025921if ac_fn_c_try_link "$LINENO"; then :
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025923$as_echo "yes" >&6; }
25924 X_LIBS="$X_LIBS -R $x_libraries"
25925else
cristy8b350f62009-11-15 23:12:43 +000025926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo "neither works" >&6; }
25928fi
cristy8b350f62009-11-15 23:12:43 +000025929rm -f core conftest.err conftest.$ac_objext \
25930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025931fi
cristy8b350f62009-11-15 23:12:43 +000025932rm -f core conftest.err conftest.$ac_objext \
25933 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025934 ac_c_werror_flag=$ac_xsave_c_werror_flag
25935 LIBS=$ac_xsave_LIBS
25936 fi
25937
25938 # Check for system-dependent libraries X programs must link with.
25939 # Do this before checking for the system-independent R6 libraries
25940 # (-lICE), since we may need -lsocket or whatever for X linking.
25941
25942 if test "$ISC" = yes; then
25943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25944 else
25945 # Martyn Johnson says this is needed for Ultrix, if the X
25946 # libraries were built with DECnet support. And Karl Berry says
25947 # the Alpha needs dnet_stub (dnet does not exist).
25948 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025950/* end confdefs.h. */
25951
25952/* Override any GCC internal prototype to avoid an error.
25953 Use char because int might match the return type of a GCC
25954 builtin and then its argument prototype would still apply. */
25955#ifdef __cplusplus
25956extern "C"
25957#endif
25958char XOpenDisplay ();
25959int
25960main ()
25961{
25962return XOpenDisplay ();
25963 ;
25964 return 0;
25965}
25966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025967if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025968
cristy8b350f62009-11-15 23:12:43 +000025969else
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025971$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025972if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025973 $as_echo_n "(cached) " >&6
25974else
25975 ac_check_lib_save_LIBS=$LIBS
25976LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025978/* end confdefs.h. */
25979
25980/* Override any GCC internal prototype to avoid an error.
25981 Use char because int might match the return type of a GCC
25982 builtin and then its argument prototype would still apply. */
25983#ifdef __cplusplus
25984extern "C"
25985#endif
25986char dnet_ntoa ();
25987int
25988main ()
25989{
25990return dnet_ntoa ();
25991 ;
25992 return 0;
25993}
25994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025995if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025996 ac_cv_lib_dnet_dnet_ntoa=yes
25997else
cristy8b350f62009-11-15 23:12:43 +000025998 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025999fi
cristy8b350f62009-11-15 23:12:43 +000026000rm -f core conftest.err conftest.$ac_objext \
26001 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026002LIBS=$ac_check_lib_save_LIBS
26003fi
cristy8b350f62009-11-15 23:12:43 +000026004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026006if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026007 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26008fi
26009
26010 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026013if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026014 $as_echo_n "(cached) " >&6
26015else
26016 ac_check_lib_save_LIBS=$LIBS
26017LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026019/* end confdefs.h. */
26020
26021/* Override any GCC internal prototype to avoid an error.
26022 Use char because int might match the return type of a GCC
26023 builtin and then its argument prototype would still apply. */
26024#ifdef __cplusplus
26025extern "C"
26026#endif
26027char dnet_ntoa ();
26028int
26029main ()
26030{
26031return dnet_ntoa ();
26032 ;
26033 return 0;
26034}
26035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026037 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26038else
cristy8b350f62009-11-15 23:12:43 +000026039 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026040fi
cristy8b350f62009-11-15 23:12:43 +000026041rm -f core conftest.err conftest.$ac_objext \
26042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026043LIBS=$ac_check_lib_save_LIBS
26044fi
cristy8b350f62009-11-15 23:12:43 +000026045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026046$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026047if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026048 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26049fi
26050
26051 fi
26052fi
cristy8b350f62009-11-15 23:12:43 +000026053rm -f core conftest.err conftest.$ac_objext \
26054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026055 LIBS="$ac_xsave_LIBS"
26056
26057 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26058 # to get the SysV transport functions.
26059 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26060 # needs -lnsl.
26061 # The nsl library prevents programs from opening the X display
26062 # on Irix 5.2, according to T.E. Dickey.
26063 # The functions gethostbyname, getservbyname, and inet_addr are
26064 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026065 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026066if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026067
cristy3ed852e2009-09-05 21:47:34 +000026068fi
26069
cristy3ed852e2009-09-05 21:47:34 +000026070 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026072$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026073if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026074 $as_echo_n "(cached) " >&6
26075else
26076 ac_check_lib_save_LIBS=$LIBS
26077LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026079/* end confdefs.h. */
26080
26081/* Override any GCC internal prototype to avoid an error.
26082 Use char because int might match the return type of a GCC
26083 builtin and then its argument prototype would still apply. */
26084#ifdef __cplusplus
26085extern "C"
26086#endif
26087char gethostbyname ();
26088int
26089main ()
26090{
26091return gethostbyname ();
26092 ;
26093 return 0;
26094}
26095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026097 ac_cv_lib_nsl_gethostbyname=yes
26098else
cristy8b350f62009-11-15 23:12:43 +000026099 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026100fi
cristy8b350f62009-11-15 23:12:43 +000026101rm -f core conftest.err conftest.$ac_objext \
26102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026103LIBS=$ac_check_lib_save_LIBS
26104fi
cristy8b350f62009-11-15 23:12:43 +000026105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026106$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026107if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26109fi
26110
26111 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026113$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026114if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026115 $as_echo_n "(cached) " >&6
26116else
26117 ac_check_lib_save_LIBS=$LIBS
26118LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026120/* end confdefs.h. */
26121
26122/* Override any GCC internal prototype to avoid an error.
26123 Use char because int might match the return type of a GCC
26124 builtin and then its argument prototype would still apply. */
26125#ifdef __cplusplus
26126extern "C"
26127#endif
26128char gethostbyname ();
26129int
26130main ()
26131{
26132return gethostbyname ();
26133 ;
26134 return 0;
26135}
26136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026138 ac_cv_lib_bsd_gethostbyname=yes
26139else
cristy8b350f62009-11-15 23:12:43 +000026140 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026141fi
cristy8b350f62009-11-15 23:12:43 +000026142rm -f core conftest.err conftest.$ac_objext \
26143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026144LIBS=$ac_check_lib_save_LIBS
26145fi
cristy8b350f62009-11-15 23:12:43 +000026146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026147$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026148if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26150fi
26151
26152 fi
26153 fi
26154
26155 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26156 # socket/setsockopt and other routines are undefined under SCO ODT
26157 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26158 # on later versions), says Simon Leinen: it contains gethostby*
26159 # variants that don't use the name server (or something). -lsocket
26160 # must be given before -lnsl if both are needed. We assume that
26161 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026162 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026163if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026164
cristy3ed852e2009-09-05 21:47:34 +000026165fi
26166
cristy3ed852e2009-09-05 21:47:34 +000026167 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026169$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026170if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026171 $as_echo_n "(cached) " >&6
26172else
26173 ac_check_lib_save_LIBS=$LIBS
26174LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026176/* end confdefs.h. */
26177
26178/* Override any GCC internal prototype to avoid an error.
26179 Use char because int might match the return type of a GCC
26180 builtin and then its argument prototype would still apply. */
26181#ifdef __cplusplus
26182extern "C"
26183#endif
26184char connect ();
26185int
26186main ()
26187{
26188return connect ();
26189 ;
26190 return 0;
26191}
26192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026193if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026194 ac_cv_lib_socket_connect=yes
26195else
cristy8b350f62009-11-15 23:12:43 +000026196 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026197fi
cristy8b350f62009-11-15 23:12:43 +000026198rm -f core conftest.err conftest.$ac_objext \
26199 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026200LIBS=$ac_check_lib_save_LIBS
26201fi
cristy8b350f62009-11-15 23:12:43 +000026202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026204if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026205 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26206fi
26207
26208 fi
26209
26210 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026211 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026212if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026213
cristy3ed852e2009-09-05 21:47:34 +000026214fi
26215
cristy3ed852e2009-09-05 21:47:34 +000026216 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026218$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026219if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026220 $as_echo_n "(cached) " >&6
26221else
26222 ac_check_lib_save_LIBS=$LIBS
26223LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026225/* end confdefs.h. */
26226
26227/* Override any GCC internal prototype to avoid an error.
26228 Use char because int might match the return type of a GCC
26229 builtin and then its argument prototype would still apply. */
26230#ifdef __cplusplus
26231extern "C"
26232#endif
26233char remove ();
26234int
26235main ()
26236{
26237return remove ();
26238 ;
26239 return 0;
26240}
26241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026242if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026243 ac_cv_lib_posix_remove=yes
26244else
cristy8b350f62009-11-15 23:12:43 +000026245 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026246fi
cristy8b350f62009-11-15 23:12:43 +000026247rm -f core conftest.err conftest.$ac_objext \
26248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026249LIBS=$ac_check_lib_save_LIBS
26250fi
cristy8b350f62009-11-15 23:12:43 +000026251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026253if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026254 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26255fi
26256
26257 fi
26258
26259 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026260 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026261if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026262
cristy3ed852e2009-09-05 21:47:34 +000026263fi
26264
cristy3ed852e2009-09-05 21:47:34 +000026265 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026267$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026268if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026269 $as_echo_n "(cached) " >&6
26270else
26271 ac_check_lib_save_LIBS=$LIBS
26272LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026274/* end confdefs.h. */
26275
26276/* Override any GCC internal prototype to avoid an error.
26277 Use char because int might match the return type of a GCC
26278 builtin and then its argument prototype would still apply. */
26279#ifdef __cplusplus
26280extern "C"
26281#endif
26282char shmat ();
26283int
26284main ()
26285{
26286return shmat ();
26287 ;
26288 return 0;
26289}
26290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026291if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026292 ac_cv_lib_ipc_shmat=yes
26293else
cristy8b350f62009-11-15 23:12:43 +000026294 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026295fi
cristy8b350f62009-11-15 23:12:43 +000026296rm -f core conftest.err conftest.$ac_objext \
26297 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026298LIBS=$ac_check_lib_save_LIBS
26299fi
cristy8b350f62009-11-15 23:12:43 +000026300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026301$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026302if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026303 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26304fi
26305
26306 fi
26307 fi
26308
26309 # Check for libraries that X11R6 Xt/Xaw programs need.
26310 ac_save_LDFLAGS=$LDFLAGS
26311 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26312 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26313 # check for ICE first), but we must link in the order -lSM -lICE or
26314 # we get undefined symbols. So assume we have SM if we have ICE.
26315 # These have to be linked with before -lX11, unlike the other
26316 # libraries we check for below, so use a different variable.
26317 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026320if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 $as_echo_n "(cached) " >&6
26322else
26323 ac_check_lib_save_LIBS=$LIBS
26324LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026326/* end confdefs.h. */
26327
26328/* Override any GCC internal prototype to avoid an error.
26329 Use char because int might match the return type of a GCC
26330 builtin and then its argument prototype would still apply. */
26331#ifdef __cplusplus
26332extern "C"
26333#endif
26334char IceConnectionNumber ();
26335int
26336main ()
26337{
26338return IceConnectionNumber ();
26339 ;
26340 return 0;
26341}
26342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026344 ac_cv_lib_ICE_IceConnectionNumber=yes
26345else
cristy8b350f62009-11-15 23:12:43 +000026346 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026347fi
cristy8b350f62009-11-15 23:12:43 +000026348rm -f core conftest.err conftest.$ac_objext \
26349 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026350LIBS=$ac_check_lib_save_LIBS
26351fi
cristy8b350f62009-11-15 23:12:43 +000026352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026354if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026355 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26356fi
26357
26358 LDFLAGS=$ac_save_LDFLAGS
26359
26360fi
26361
26362if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026364$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026366$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026368$as_echo "" >&6; }
26369 LDFLAGS="$LDFLAGS $X_LIBS"
26370 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26371 LIBS="$X11_LIBS $LIBS"
26372 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26373
26374
cristy8b350f62009-11-15 23:12:43 +000026375$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026376
26377 #
26378 # Check for X11 shared memory extension
26379 #
26380 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026381 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026382if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026383 have_shmctl='yes'
26384fi
26385
26386 if test "$have_shmctl" != 'yes'; then
26387 PERSIST_LIBS=$LIBS
26388 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026390/* end confdefs.h. */
26391
26392/* Override any GCC internal prototype to avoid an error.
26393 Use char because int might match the return type of a GCC
26394 builtin and then its argument prototype would still apply. */
26395#ifdef __cplusplus
26396extern "C"
26397#endif
26398char shmctl ();
26399int
26400main ()
26401{
26402return shmctl ();
26403 ;
26404 return 0;
26405}
26406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026407if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026408 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026409fi
cristy8b350f62009-11-15 23:12:43 +000026410rm -f core conftest.err conftest.$ac_objext \
26411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026412 LIBS=$PERSIST_LIBS
26413 fi
26414
26415 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026417$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026418if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026419 $as_echo_n "(cached) " >&6
26420else
26421 ac_check_lib_save_LIBS=$LIBS
26422LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026424/* end confdefs.h. */
26425
26426/* Override any GCC internal prototype to avoid an error.
26427 Use char because int might match the return type of a GCC
26428 builtin and then its argument prototype would still apply. */
26429#ifdef __cplusplus
26430extern "C"
26431#endif
26432char XShmAttach ();
26433int
26434main ()
26435{
26436return XShmAttach ();
26437 ;
26438 return 0;
26439}
26440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026441if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026442 ac_cv_lib_Xext_XShmAttach=yes
26443else
cristy8b350f62009-11-15 23:12:43 +000026444 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026445fi
cristy8b350f62009-11-15 23:12:43 +000026446rm -f core conftest.err conftest.$ac_objext \
26447 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026448LIBS=$ac_check_lib_save_LIBS
26449fi
cristy8b350f62009-11-15 23:12:43 +000026450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026451$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026452if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026453 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026454$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026455
26456fi
26457
26458 fi
26459
26460 #
26461 # Check for X11 shape extension
26462 #
cristy8b350f62009-11-15 23:12:43 +000026463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026464$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026465if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026466 $as_echo_n "(cached) " >&6
26467else
26468 ac_check_lib_save_LIBS=$LIBS
26469LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026471/* end confdefs.h. */
26472
26473/* Override any GCC internal prototype to avoid an error.
26474 Use char because int might match the return type of a GCC
26475 builtin and then its argument prototype would still apply. */
26476#ifdef __cplusplus
26477extern "C"
26478#endif
26479char XShapeCombineMask ();
26480int
26481main ()
26482{
26483return XShapeCombineMask ();
26484 ;
26485 return 0;
26486}
26487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026489 ac_cv_lib_Xext_XShapeCombineMask=yes
26490else
cristy8b350f62009-11-15 23:12:43 +000026491 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000026492fi
cristy8b350f62009-11-15 23:12:43 +000026493rm -f core conftest.err conftest.$ac_objext \
26494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026495LIBS=$ac_check_lib_save_LIBS
26496fi
cristy8b350f62009-11-15 23:12:43 +000026497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026498$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026499if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026500 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026501$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026502
26503fi
26504
cristy8b350f62009-11-15 23:12:43 +000026505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026506$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026507if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026508 $as_echo_n "(cached) " >&6
26509else
26510 ac_check_lib_save_LIBS=$LIBS
26511LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026513/* end confdefs.h. */
26514
26515/* Override any GCC internal prototype to avoid an error.
26516 Use char because int might match the return type of a GCC
26517 builtin and then its argument prototype would still apply. */
26518#ifdef __cplusplus
26519extern "C"
26520#endif
26521char XtSetEventDispatcher ();
26522int
26523main ()
26524{
26525return XtSetEventDispatcher ();
26526 ;
26527 return 0;
26528}
26529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026530if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026531 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26532else
cristy8b350f62009-11-15 23:12:43 +000026533 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026534fi
cristy8b350f62009-11-15 23:12:43 +000026535rm -f core conftest.err conftest.$ac_objext \
26536 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026537LIBS=$ac_check_lib_save_LIBS
26538fi
cristy8b350f62009-11-15 23:12:43 +000026539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026540$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026541if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026542 XT_LIBS='-lXt'
26543fi
26544
26545 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26546fi
26547if test "$no_x" != 'yes'; then
26548 have_x='yes'
26549else
26550 have_x='no'
26551fi
cristy73bd4a52010-10-05 11:24:23 +000026552 if test "$have_x" = 'yes'; then
26553 X11_DELEGATE_TRUE=
26554 X11_DELEGATE_FALSE='#'
26555else
26556 X11_DELEGATE_TRUE='#'
26557 X11_DELEGATE_FALSE=
26558fi
26559
cristy3ed852e2009-09-05 21:47:34 +000026560
26561
26562
26563
26564#
26565# Check for ZLIB
26566#
26567
26568# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026569if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026570 withval=$with_zlib; with_zlib=$withval
26571else
26572 with_zlib='yes'
26573fi
26574
26575
26576if test "$with_zlib" != 'yes'; then
26577 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26578fi
26579
26580have_zlib='no'
26581ZLIB_LIBS=''
26582if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026584$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026588$as_echo "" >&6; }
26589 ZLIB_LIBS=''
26590 failed=0
26591 passed=0
cristy8b350f62009-11-15 23:12:43 +000026592 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026593if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026594 passed=`expr $passed + 1`
26595else
26596 failed=`expr $failed + 1`
26597fi
26598
26599
cristy8b350f62009-11-15 23:12:43 +000026600 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026601if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026602 passed=`expr $passed + 1`
26603else
26604 failed=`expr $failed + 1`
26605fi
26606
26607
cristy8b350f62009-11-15 23:12:43 +000026608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026609$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026610if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026611 $as_echo_n "(cached) " >&6
26612else
26613 ac_check_lib_save_LIBS=$LIBS
26614LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026616/* end confdefs.h. */
26617
26618/* Override any GCC internal prototype to avoid an error.
26619 Use char because int might match the return type of a GCC
26620 builtin and then its argument prototype would still apply. */
26621#ifdef __cplusplus
26622extern "C"
26623#endif
26624char compress ();
26625int
26626main ()
26627{
26628return compress ();
26629 ;
26630 return 0;
26631}
26632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026633if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026634 ac_cv_lib_z_compress=yes
26635else
cristy8b350f62009-11-15 23:12:43 +000026636 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026637fi
cristy8b350f62009-11-15 23:12:43 +000026638rm -f core conftest.err conftest.$ac_objext \
26639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026640LIBS=$ac_check_lib_save_LIBS
26641fi
cristy8b350f62009-11-15 23:12:43 +000026642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026643$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026644if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026645 passed=`expr $passed + 1`
26646else
26647 failed=`expr $failed + 1`
26648fi
26649
cristy8b350f62009-11-15 23:12:43 +000026650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026651$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026652if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026653 $as_echo_n "(cached) " >&6
26654else
26655 ac_check_lib_save_LIBS=$LIBS
26656LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026658/* end confdefs.h. */
26659
26660/* Override any GCC internal prototype to avoid an error.
26661 Use char because int might match the return type of a GCC
26662 builtin and then its argument prototype would still apply. */
26663#ifdef __cplusplus
26664extern "C"
26665#endif
26666char uncompress ();
26667int
26668main ()
26669{
26670return uncompress ();
26671 ;
26672 return 0;
26673}
26674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026676 ac_cv_lib_z_uncompress=yes
26677else
cristy8b350f62009-11-15 23:12:43 +000026678 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026679fi
cristy8b350f62009-11-15 23:12:43 +000026680rm -f core conftest.err conftest.$ac_objext \
26681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026682LIBS=$ac_check_lib_save_LIBS
26683fi
cristy8b350f62009-11-15 23:12:43 +000026684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026686if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026687 passed=`expr $passed + 1`
26688else
26689 failed=`expr $failed + 1`
26690fi
26691
cristy8b350f62009-11-15 23:12:43 +000026692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026693$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026694if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026695 $as_echo_n "(cached) " >&6
26696else
26697 ac_check_lib_save_LIBS=$LIBS
26698LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026700/* end confdefs.h. */
26701
26702/* Override any GCC internal prototype to avoid an error.
26703 Use char because int might match the return type of a GCC
26704 builtin and then its argument prototype would still apply. */
26705#ifdef __cplusplus
26706extern "C"
26707#endif
26708char deflate ();
26709int
26710main ()
26711{
26712return deflate ();
26713 ;
26714 return 0;
26715}
26716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026717if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026718 ac_cv_lib_z_deflate=yes
26719else
cristy8b350f62009-11-15 23:12:43 +000026720 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026721fi
cristy8b350f62009-11-15 23:12:43 +000026722rm -f core conftest.err conftest.$ac_objext \
26723 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026724LIBS=$ac_check_lib_save_LIBS
26725fi
cristy8b350f62009-11-15 23:12:43 +000026726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026727$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026728if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026729 passed=`expr $passed + 1`
26730else
26731 failed=`expr $failed + 1`
26732fi
26733
cristy8b350f62009-11-15 23:12:43 +000026734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026735$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026736if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026737 $as_echo_n "(cached) " >&6
26738else
26739 ac_check_lib_save_LIBS=$LIBS
26740LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026742/* end confdefs.h. */
26743
26744/* Override any GCC internal prototype to avoid an error.
26745 Use char because int might match the return type of a GCC
26746 builtin and then its argument prototype would still apply. */
26747#ifdef __cplusplus
26748extern "C"
26749#endif
26750char inflate ();
26751int
26752main ()
26753{
26754return inflate ();
26755 ;
26756 return 0;
26757}
26758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026759if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026760 ac_cv_lib_z_inflate=yes
26761else
cristy8b350f62009-11-15 23:12:43 +000026762 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026763fi
cristy8b350f62009-11-15 23:12:43 +000026764rm -f core conftest.err conftest.$ac_objext \
26765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026766LIBS=$ac_check_lib_save_LIBS
26767fi
cristy8b350f62009-11-15 23:12:43 +000026768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026770if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026771 passed=`expr $passed + 1`
26772else
26773 failed=`expr $failed + 1`
26774fi
26775
cristy8b350f62009-11-15 23:12:43 +000026776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026778if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026779 $as_echo_n "(cached) " >&6
26780else
26781 ac_check_lib_save_LIBS=$LIBS
26782LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026784/* end confdefs.h. */
26785
26786/* Override any GCC internal prototype to avoid an error.
26787 Use char because int might match the return type of a GCC
26788 builtin and then its argument prototype would still apply. */
26789#ifdef __cplusplus
26790extern "C"
26791#endif
26792char gzseek ();
26793int
26794main ()
26795{
26796return gzseek ();
26797 ;
26798 return 0;
26799}
26800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026802 ac_cv_lib_z_gzseek=yes
26803else
cristy8b350f62009-11-15 23:12:43 +000026804 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026805fi
cristy8b350f62009-11-15 23:12:43 +000026806rm -f core conftest.err conftest.$ac_objext \
26807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026808LIBS=$ac_check_lib_save_LIBS
26809fi
cristy8b350f62009-11-15 23:12:43 +000026810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026812if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026813 passed=`expr $passed + 1`
26814else
26815 failed=`expr $failed + 1`
26816fi
26817
cristy8b350f62009-11-15 23:12:43 +000026818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026819$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026820if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026821 $as_echo_n "(cached) " >&6
26822else
26823 ac_check_lib_save_LIBS=$LIBS
26824LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026826/* end confdefs.h. */
26827
26828/* Override any GCC internal prototype to avoid an error.
26829 Use char because int might match the return type of a GCC
26830 builtin and then its argument prototype would still apply. */
26831#ifdef __cplusplus
26832extern "C"
26833#endif
26834char gztell ();
26835int
26836main ()
26837{
26838return gztell ();
26839 ;
26840 return 0;
26841}
26842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026844 ac_cv_lib_z_gztell=yes
26845else
cristy8b350f62009-11-15 23:12:43 +000026846 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026847fi
cristy8b350f62009-11-15 23:12:43 +000026848rm -f core conftest.err conftest.$ac_objext \
26849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026850LIBS=$ac_check_lib_save_LIBS
26851fi
cristy8b350f62009-11-15 23:12:43 +000026852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026853$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026854if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026855 passed=`expr $passed + 1`
26856else
26857 failed=`expr $failed + 1`
26858fi
26859
cristy8b350f62009-11-15 23:12:43 +000026860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026861$as_echo_n "checking if ZLIB package is complete... " >&6; }
26862 if test $passed -gt 0; then
26863 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026865$as_echo "no -- some components failed test" >&6; }
26866 have_zlib='no (failed tests)'
26867 else
26868 ZLIB_LIBS='-lz'
26869 LIBS="$ZLIB_LIBS $LIBS"
26870
cristy8b350f62009-11-15 23:12:43 +000026871$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026872
cristy8b350f62009-11-15 23:12:43 +000026873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026874$as_echo "yes" >&6; }
26875 have_zlib='yes'
26876 fi
26877 else
cristy8b350f62009-11-15 23:12:43 +000026878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026879$as_echo "no" >&6; }
26880 fi
26881fi
cristy73bd4a52010-10-05 11:24:23 +000026882 if test "$have_zlib" = 'yes'; then
26883 ZLIB_DELEGATE_TRUE=
26884 ZLIB_DELEGATE_FALSE='#'
26885else
26886 ZLIB_DELEGATE_TRUE='#'
26887 ZLIB_DELEGATE_FALSE=
26888fi
26889
cristy3ed852e2009-09-05 21:47:34 +000026890
26891
26892#
26893# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26894#
26895LIB_DL=''
26896if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026898$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026899if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026900 $as_echo_n "(cached) " >&6
26901else
26902 ac_check_lib_save_LIBS=$LIBS
26903LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026905/* end confdefs.h. */
26906
26907/* Override any GCC internal prototype to avoid an error.
26908 Use char because int might match the return type of a GCC
26909 builtin and then its argument prototype would still apply. */
26910#ifdef __cplusplus
26911extern "C"
26912#endif
26913char dlopen ();
26914int
26915main ()
26916{
26917return dlopen ();
26918 ;
26919 return 0;
26920}
26921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026923 ac_cv_lib_dl_dlopen=yes
26924else
cristy8b350f62009-11-15 23:12:43 +000026925 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026926fi
cristy8b350f62009-11-15 23:12:43 +000026927rm -f core conftest.err conftest.$ac_objext \
26928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026929LIBS=$ac_check_lib_save_LIBS
26930fi
cristy8b350f62009-11-15 23:12:43 +000026931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026932$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026933if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026934 LIB_DL='-ldl'
26935fi
26936
26937 LIBS="$LIB_DL $LIBS"
26938fi
26939
26940
26941
26942#
26943# Check for Autotrace delegate library.
26944#
26945
26946# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026947if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026948 withval=$with_autotrace; with_autotrace=$withval
26949else
26950 with_autotrace='no'
26951fi
26952
26953
26954if test "$with_autotrace" != 'yes'; then
26955 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26956fi
26957
26958have_autotrace='no'
26959AUTOTRACE_CFLAGS=""
26960AUTOTRACE_LIBS=""
26961AUTOTRACE_PKG=""
26962if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026964$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026965
26966pkg_failed=no
26967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26968$as_echo_n "checking for AUTOTRACE... " >&6; }
26969
26970if test -n "$AUTOTRACE_CFLAGS"; then
26971 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26972 elif test -n "$PKG_CONFIG"; then
26973 if test -n "$PKG_CONFIG" && \
26974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26975 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26976 ac_status=$?
26977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26978 test $ac_status = 0; }; then
26979 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26980else
26981 pkg_failed=yes
26982fi
26983 else
26984 pkg_failed=untried
26985fi
26986if test -n "$AUTOTRACE_LIBS"; then
26987 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26988 elif test -n "$PKG_CONFIG"; then
26989 if test -n "$PKG_CONFIG" && \
26990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26991 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26992 ac_status=$?
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; then
26995 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26996else
26997 pkg_failed=yes
26998fi
26999 else
27000 pkg_failed=untried
27001fi
27002
27003
27004
27005if test $pkg_failed = yes; then
27006
27007if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27008 _pkg_short_errors_supported=yes
27009else
27010 _pkg_short_errors_supported=no
27011fi
27012 if test $_pkg_short_errors_supported = yes; then
27013 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27014 else
27015 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27016 fi
27017 # Put the nasty error message in config.log where it belongs
27018 echo "$AUTOTRACE_PKG_ERRORS" >&5
27019
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27021$as_echo "no" >&6; }
27022 have_autotrace=no
27023elif test $pkg_failed = untried; then
27024 have_autotrace=no
27025else
27026 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27027 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27029$as_echo "yes" >&6; }
27030 have_autotrace=yes
27031fi
cristy8b350f62009-11-15 23:12:43 +000027032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027033$as_echo "" >&6; }
27034fi
27035
27036if test "$have_autotrace" = 'yes'; then
27037 failed=0
27038
cristy8b350f62009-11-15 23:12:43 +000027039$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027040
27041 if test "$with_modules" = 'no'; then
27042 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27043 fi
27044fi
27045
cristy73bd4a52010-10-05 11:24:23 +000027046 if test "$have_autotrace" = 'yes'; then
27047 AUTOTRACE_DELEGATE_TRUE=
27048 AUTOTRACE_DELEGATE_FALSE='#'
27049else
27050 AUTOTRACE_DELEGATE_TRUE='#'
27051 AUTOTRACE_DELEGATE_FALSE=
27052fi
27053
cristy3ed852e2009-09-05 21:47:34 +000027054
27055
27056
27057
27058#
27059# Check for Display Postscript delegate library.
27060#
27061
27062# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027063if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027064 withval=$with_dps; with_dps=$withval
27065else
27066 with_dps='yes'
27067fi
27068
27069
27070if test "$with_dps" != 'yes'; then
27071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27072fi
27073
27074have_dps='no'
27075DPS_LIBS=''
27076if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027078$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027080$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027082$as_echo "" >&6; }
27083 failed=0
27084 passed=0
27085 PERSIST_CPPFLAGS="$CPPFLAGS"
27086 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027087 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 +000027088if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027089 passed=`expr $passed + 1`
27090else
27091 failed=`expr $failed + 1`
27092fi
27093
27094
27095 # DPS issues:
27096 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27097 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27098 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27099 # ImageMagick itself doesn't use -lXt.
27100 have_libdps='no'
27101 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027103$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027104if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027105 $as_echo_n "(cached) " >&6
27106else
27107 ac_check_lib_save_LIBS=$LIBS
27108LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027110/* end confdefs.h. */
27111
27112/* Override any GCC internal prototype to avoid an error.
27113 Use char because int might match the return type of a GCC
27114 builtin and then its argument prototype would still apply. */
27115#ifdef __cplusplus
27116extern "C"
27117#endif
27118char DPSInitialize ();
27119int
27120main ()
27121{
27122return DPSInitialize ();
27123 ;
27124 return 0;
27125}
27126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027128 ac_cv_lib_dps_DPSInitialize=yes
27129else
cristy8b350f62009-11-15 23:12:43 +000027130 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027131fi
cristy8b350f62009-11-15 23:12:43 +000027132rm -f core conftest.err conftest.$ac_objext \
27133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027134LIBS=$ac_check_lib_save_LIBS
27135fi
cristy8b350f62009-11-15 23:12:43 +000027136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027137$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027138if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027139 have_libdps='yes'
27140else
27141 have_libdps='no'
27142fi
27143
27144 if test "$have_libdps" != 'yes'; then
27145 # Unset cache variable so we can try again.
27146 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027148$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027149if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027150 $as_echo_n "(cached) " >&6
27151else
27152 ac_check_lib_save_LIBS=$LIBS
27153LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027155/* end confdefs.h. */
27156
27157/* Override any GCC internal prototype to avoid an error.
27158 Use char because int might match the return type of a GCC
27159 builtin and then its argument prototype would still apply. */
27160#ifdef __cplusplus
27161extern "C"
27162#endif
27163char DPSInitialize ();
27164int
27165main ()
27166{
27167return DPSInitialize ();
27168 ;
27169 return 0;
27170}
27171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027172if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027173 ac_cv_lib_dps_DPSInitialize=yes
27174else
cristy8b350f62009-11-15 23:12:43 +000027175 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027176fi
cristy8b350f62009-11-15 23:12:43 +000027177rm -f core conftest.err conftest.$ac_objext \
27178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027179LIBS=$ac_check_lib_save_LIBS
27180fi
cristy8b350f62009-11-15 23:12:43 +000027181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027182$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027183if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027184 have_libdps='yes'
27185else
27186 have_libdps='no'
27187fi
27188
27189 if test "$have_libdps" = 'yes'; then
27190 LIBDPS_XT='-lXt'
27191 fi
27192 fi
27193 if test "$have_libdps" = 'yes'; then
27194 passed=`expr $passed + 1`
27195 else
27196 failed=`expr $failed + 1`
27197 fi
cristy8b350f62009-11-15 23:12:43 +000027198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027199$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027200if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027201 $as_echo_n "(cached) " >&6
27202else
27203 ac_check_lib_save_LIBS=$LIBS
27204LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027206/* end confdefs.h. */
27207
27208/* Override any GCC internal prototype to avoid an error.
27209 Use char because int might match the return type of a GCC
27210 builtin and then its argument prototype would still apply. */
27211#ifdef __cplusplus
27212extern "C"
27213#endif
27214char XDPSPixelsPerPoint ();
27215int
27216main ()
27217{
27218return XDPSPixelsPerPoint ();
27219 ;
27220 return 0;
27221}
27222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27225else
cristy8b350f62009-11-15 23:12:43 +000027226 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027227fi
cristy8b350f62009-11-15 23:12:43 +000027228rm -f core conftest.err conftest.$ac_objext \
27229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027230LIBS=$ac_check_lib_save_LIBS
27231fi
cristy8b350f62009-11-15 23:12:43 +000027232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027233$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027234if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027235 passed=`expr $passed + 1`
27236else
27237 failed=`expr $failed + 1`
27238fi
27239
cristy8b350f62009-11-15 23:12:43 +000027240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo_n "checking if DPS package is complete... " >&6; }
27242 if test $passed -gt 0; then
27243 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027245$as_echo "no -- some components failed test" >&6; }
27246 have_dps='no (failed tests)'
27247 CPPFLAGS="$PERSIST_CPPFLAGS"
27248 else
27249 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27250 LIBS="$DPS_LIBS $LIBS"
27251
cristy8b350f62009-11-15 23:12:43 +000027252$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027253
cristy8b350f62009-11-15 23:12:43 +000027254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo "yes" >&6; }
27256 have_dps='yes'
27257 fi
27258 else
cristy8b350f62009-11-15 23:12:43 +000027259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo "no" >&6; }
27261 CPPFLAGS=$PERSIST_CPPFLAGS
27262 fi
27263fi
cristy73bd4a52010-10-05 11:24:23 +000027264 if test "$have_dps" = 'yes'; then
27265 DPS_DELEGATE_TRUE=
27266 DPS_DELEGATE_FALSE='#'
27267else
27268 DPS_DELEGATE_TRUE='#'
27269 DPS_DELEGATE_FALSE=
27270fi
27271
cristy3ed852e2009-09-05 21:47:34 +000027272
27273
27274
27275#
27276# Check for DJVU delegate library.
27277#
27278
27279# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027280if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027281 withval=$with_djvu; with_djvu=$withval
27282else
27283 with_djvu='yes'
27284fi
27285
27286
27287if test "$with_djvu" != 'yes'; then
27288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27289fi
27290
27291have_djvu='no'
27292DJVU_LIBS=''
27293if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027299$as_echo "" >&6; }
27300 failed=0
27301 passed=0
cristy8b350f62009-11-15 23:12:43 +000027302 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 +000027303if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 passed=`expr $passed + 1`
27305else
27306 failed=`expr $failed + 1`
27307fi
27308
27309
cristy8b350f62009-11-15 23:12:43 +000027310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027311$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027312if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027313 $as_echo_n "(cached) " >&6
27314else
27315 ac_check_lib_save_LIBS=$LIBS
27316LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027318/* end confdefs.h. */
27319
27320/* Override any GCC internal prototype to avoid an error.
27321 Use char because int might match the return type of a GCC
27322 builtin and then its argument prototype would still apply. */
27323#ifdef __cplusplus
27324extern "C"
27325#endif
27326char ddjvu_context_create ();
27327int
27328main ()
27329{
27330return ddjvu_context_create ();
27331 ;
27332 return 0;
27333}
27334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027336 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27337else
cristy8b350f62009-11-15 23:12:43 +000027338 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027339fi
cristy8b350f62009-11-15 23:12:43 +000027340rm -f core conftest.err conftest.$ac_objext \
27341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027342LIBS=$ac_check_lib_save_LIBS
27343fi
cristy8b350f62009-11-15 23:12:43 +000027344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027346if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027347 passed=`expr $passed + 1`
27348else
27349 failed=`expr $failed + 1`
27350fi
27351
cristy8b350f62009-11-15 23:12:43 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027353$as_echo_n "checking if DJVU package is complete... " >&6; }
27354 if test $passed -gt 0; then
27355 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo "no -- some components failed test" >&6; }
27358 have_djvu='no (failed tests)'
27359 else
27360 DJVU_LIBS='-ldjvulibre'
27361 LIBS="$DJVU_LIBS $LIBS"
27362
cristy8b350f62009-11-15 23:12:43 +000027363$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027364
cristy8b350f62009-11-15 23:12:43 +000027365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027366$as_echo "yes" >&6; }
27367 have_djvu='yes'
27368 fi
27369 else
cristy8b350f62009-11-15 23:12:43 +000027370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027371$as_echo "no" >&6; }
27372 fi
27373fi
cristy73bd4a52010-10-05 11:24:23 +000027374 if test "$have_djvu" = 'yes'; then
27375 DJVU_DELEGATE_TRUE=
27376 DJVU_DELEGATE_FALSE='#'
27377else
27378 DJVU_DELEGATE_TRUE='#'
27379 DJVU_DELEGATE_FALSE=
27380fi
27381
cristy3ed852e2009-09-05 21:47:34 +000027382
27383
27384
27385#
cristy430a7312010-01-21 20:44:04 +000027386# Set DejaVu font directory.
27387#
27388
27389# Check whether --with-dejavu-font-dir was given.
27390if test "${with_dejavu_font_dir+set}" = set; then :
27391 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27392else
27393 with_dejavu_font_dir='default'
27394fi
27395
27396
27397if test "$with_dejavu_font_dir" != 'default'; then
27398 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27399fi
27400
27401
27402#
cristy3ed852e2009-09-05 21:47:34 +000027403# Check for FFTW delegate library.
27404#
27405
27406# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027407if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027408 withval=$with_fftw; with_fftw=$withval
27409else
27410 with_fftw='yes'
27411fi
27412
27413
27414if test "$with_fftw" != 'yes'; then
27415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27416fi
27417
27418have_fftw='no'
27419FFTW_LIBS=''
27420if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027424$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027426$as_echo "" >&6; }
27427 failed=0
27428 passed=0
cristy8b350f62009-11-15 23:12:43 +000027429 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027430if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027431 passed=`expr $passed + 1`
27432else
27433 failed=`expr $failed + 1`
27434fi
27435
27436
cristy8b350f62009-11-15 23:12:43 +000027437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027438$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027439if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027440 $as_echo_n "(cached) " >&6
27441else
27442 ac_check_lib_save_LIBS=$LIBS
27443LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027445/* end confdefs.h. */
27446
27447/* Override any GCC internal prototype to avoid an error.
27448 Use char because int might match the return type of a GCC
27449 builtin and then its argument prototype would still apply. */
27450#ifdef __cplusplus
27451extern "C"
27452#endif
27453char fftw_execute ();
27454int
27455main ()
27456{
27457return fftw_execute ();
27458 ;
27459 return 0;
27460}
27461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 ac_cv_lib_fftw3_fftw_execute=yes
27464else
cristy8b350f62009-11-15 23:12:43 +000027465 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027466fi
cristy8b350f62009-11-15 23:12:43 +000027467rm -f core conftest.err conftest.$ac_objext \
27468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027469LIBS=$ac_check_lib_save_LIBS
27470fi
cristy8b350f62009-11-15 23:12:43 +000027471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027473if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027474 passed=`expr $passed + 1`
27475else
27476 failed=`expr $failed + 1`
27477fi
27478
cristy8b350f62009-11-15 23:12:43 +000027479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027480$as_echo_n "checking if FFTW package is complete... " >&6; }
27481 if test $passed -gt 0; then
27482 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027484$as_echo "no -- some components failed test" >&6; }
27485 have_fftw='no (failed tests)'
27486 else
27487 FFTW_LIBS='-lfftw3'
27488 LIBS="$FFTW_LIBS $LIBS"
27489
cristy8b350f62009-11-15 23:12:43 +000027490$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027491
cristy8b350f62009-11-15 23:12:43 +000027492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027493$as_echo "yes" >&6; }
27494 have_fftw='yes'
27495 fi
27496 else
cristy8b350f62009-11-15 23:12:43 +000027497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027498$as_echo "no" >&6; }
27499 fi
27500fi
cristy73bd4a52010-10-05 11:24:23 +000027501 if test "$have_fftw" = 'yes'; then
27502 FFTW_DELEGATE_TRUE=
27503 FFTW_DELEGATE_FALSE='#'
27504else
27505 FFTW_DELEGATE_TRUE='#'
27506 FFTW_DELEGATE_FALSE=
27507fi
27508
cristy3ed852e2009-09-05 21:47:34 +000027509
27510
27511
27512#
27513# Check for FlashPIX delegate library.
27514#
27515
27516# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027517if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027518 withval=$with_fpx; with_fpx=$withval
27519else
27520 with_fpx='yes'
27521fi
27522
27523
27524if test "$with_fpx" != 'yes'; then
27525 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27526fi
27527
27528have_fpx='no'
27529FPX_LIBS=''
27530if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo "" >&6; }
27537 failed=0
27538 passed=0
27539 ac_ext=cpp
27540ac_cpp='$CXXCPP $CPPFLAGS'
27541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27544
27545
cristy8b350f62009-11-15 23:12:43 +000027546ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027547if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 passed=`expr $passed + 1`
27549else
27550 failed=`expr $failed + 1`
27551fi
27552
27553
cristy8b350f62009-11-15 23:12:43 +000027554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027555$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027556if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027557 $as_echo_n "(cached) " >&6
27558else
27559 ac_check_lib_save_LIBS=$LIBS
27560LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027562/* end confdefs.h. */
27563
27564/* Override any GCC internal prototype to avoid an error.
27565 Use char because int might match the return type of a GCC
27566 builtin and then its argument prototype would still apply. */
27567#ifdef __cplusplus
27568extern "C"
27569#endif
27570char FPX_OpenImageByFilename ();
27571int
27572main ()
27573{
27574return FPX_OpenImageByFilename ();
27575 ;
27576 return 0;
27577}
27578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027579if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027580 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27581else
cristy8b350f62009-11-15 23:12:43 +000027582 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027583fi
cristy8b350f62009-11-15 23:12:43 +000027584rm -f core conftest.err conftest.$ac_objext \
27585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027586LIBS=$ac_check_lib_save_LIBS
27587fi
cristy8b350f62009-11-15 23:12:43 +000027588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027589$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027590if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027591 passed=`expr $passed + 1`
27592else
27593 failed=`expr $failed + 1`
27594fi
27595
27596 ac_ext=c
27597ac_cpp='$CPP $CPPFLAGS'
27598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27600ac_compiler_gnu=$ac_cv_c_compiler_gnu
27601
cristy8b350f62009-11-15 23:12:43 +000027602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027603$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27604 if test $passed -gt 0; then
27605 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027607$as_echo "no -- some components failed test" >&6; }
27608 have_fpx='no (failed tests)'
27609 else
27610 FPX_LIBS='-lfpx'
27611
cristy8b350f62009-11-15 23:12:43 +000027612$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027613
cristy8b350f62009-11-15 23:12:43 +000027614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027615$as_echo "yes" >&6; }
27616 have_fpx='yes'
27617 PERLMAINCC="$CXX"
27618 fi
27619 else
cristy8b350f62009-11-15 23:12:43 +000027620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027621$as_echo "no" >&6; }
27622 fi
27623fi
cristy73bd4a52010-10-05 11:24:23 +000027624 if test "$have_fpx" = 'yes'; then
27625 FPX_DELEGATE_TRUE=
27626 FPX_DELEGATE_FALSE='#'
27627else
27628 FPX_DELEGATE_TRUE='#'
27629 FPX_DELEGATE_FALSE=
27630fi
27631
cristy3ed852e2009-09-05 21:47:34 +000027632
27633
27634
27635#
27636# Check for fontconfig delegate library.
27637#
27638
27639# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027640if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027641 withval=$with_fontconfig; with_fontconfig=$withval
27642else
27643 with_fontconfig=$have_x
27644fi
27645
27646
27647if test "$with_fontconfig" != 'yes'; then
27648 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27649fi
27650
27651have_fontconfig='no'
27652FONTCONFIG_CFLAGS=""
27653FONTCONFIG_LIBS=""
27654FONTCONFIG_PKG=""
27655if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027657$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027658
27659pkg_failed=no
27660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27661$as_echo_n "checking for FONTCONFIG... " >&6; }
27662
27663if test -n "$FONTCONFIG_CFLAGS"; then
27664 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27665 elif test -n "$PKG_CONFIG"; then
27666 if test -n "$PKG_CONFIG" && \
27667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27668 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27669 ac_status=$?
27670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27671 test $ac_status = 0; }; then
27672 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27673else
27674 pkg_failed=yes
27675fi
27676 else
27677 pkg_failed=untried
27678fi
27679if test -n "$FONTCONFIG_LIBS"; then
27680 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27681 elif test -n "$PKG_CONFIG"; then
27682 if test -n "$PKG_CONFIG" && \
27683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27684 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27685 ac_status=$?
27686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27687 test $ac_status = 0; }; then
27688 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27689else
27690 pkg_failed=yes
27691fi
27692 else
27693 pkg_failed=untried
27694fi
27695
27696
27697
27698if test $pkg_failed = yes; then
27699
27700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27701 _pkg_short_errors_supported=yes
27702else
27703 _pkg_short_errors_supported=no
27704fi
27705 if test $_pkg_short_errors_supported = yes; then
27706 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27707 else
27708 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27709 fi
27710 # Put the nasty error message in config.log where it belongs
27711 echo "$FONTCONFIG_PKG_ERRORS" >&5
27712
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27714$as_echo "no" >&6; }
27715 have_fontconfig=no
27716elif test $pkg_failed = untried; then
27717 have_fontconfig=no
27718else
27719 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27720 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27722$as_echo "yes" >&6; }
27723 have_fontconfig=yes
27724fi
cristy8b350f62009-11-15 23:12:43 +000027725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027726$as_echo "" >&6; }
27727fi
27728
27729if test "$have_fontconfig" = 'yes'; then
27730
cristy8b350f62009-11-15 23:12:43 +000027731$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027732
cristyd09bcf92010-03-25 03:04:45 +000027733 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027734 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027735 fi
cristy3ed852e2009-09-05 21:47:34 +000027736fi
27737
cristy73bd4a52010-10-05 11:24:23 +000027738 if test "$have_fontconfig" = 'yes'; then
27739 FONTCONFIG_DELEGATE_TRUE=
27740 FONTCONFIG_DELEGATE_FALSE='#'
27741else
27742 FONTCONFIG_DELEGATE_TRUE='#'
27743 FONTCONFIG_DELEGATE_FALSE=
27744fi
27745
cristy3ed852e2009-09-05 21:47:34 +000027746
27747
27748
27749
27750#
27751# Check for freetype delegate library.
27752#
27753
27754# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027755if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027756 withval=$with_freetype; with_freetype=$withval
27757else
27758 with_freetype='yes'
27759fi
27760
27761
27762
27763if test "$with_freetype" != 'yes'; then
27764 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27765fi
27766
27767have_freetype='no'
27768FREETYPE_LIBS=''
27769if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027771$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027773$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo "" >&6; }
27776 failed=0
27777 passed=0
cristy66291112009-10-03 22:44:36 +000027778 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027779 PERSIST_CPPFLAGS="$CPPFLAGS"
27780 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27781 :
27782 else
27783 freetype_config=''
27784 for ac_prog in freetype-config
27785do
27786 # Extract the first word of "$ac_prog", so it can be a program name with args.
27787set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027790if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027791 $as_echo_n "(cached) " >&6
27792else
27793 if test -n "$freetype_config"; then
27794 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27795else
27796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27797for as_dir in $PATH
27798do
27799 IFS=$as_save_IFS
27800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27803 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805 break 2
27806 fi
27807done
cristy8b350f62009-11-15 23:12:43 +000027808 done
cristy3ed852e2009-09-05 21:47:34 +000027809IFS=$as_save_IFS
27810
27811fi
27812fi
27813freetype_config=$ac_cv_prog_freetype_config
27814if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo "$freetype_config" >&6; }
27817else
cristy8b350f62009-11-15 23:12:43 +000027818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027819$as_echo "no" >&6; }
27820fi
27821
27822
27823 test -n "$freetype_config" && break
27824done
27825 if test -n "$freetype_config"; then
27826 freetype_cflags=`$freetype_config --cflags`
27827 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027828 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027829 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27830 fi
27831 fi
27832
27833 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027835$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027836if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027837 $as_echo_n "(cached) " >&6
27838else
27839 ac_check_lib_save_LIBS=$LIBS
27840LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027842/* end confdefs.h. */
27843
27844/* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27847#ifdef __cplusplus
27848extern "C"
27849#endif
27850char FT_Init_FreeType ();
27851int
27852main ()
27853{
27854return FT_Init_FreeType ();
27855 ;
27856 return 0;
27857}
27858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027859if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027860 ac_cv_lib_freetype_FT_Init_FreeType=yes
27861else
cristy8b350f62009-11-15 23:12:43 +000027862 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027863fi
cristy8b350f62009-11-15 23:12:43 +000027864rm -f core conftest.err conftest.$ac_objext \
27865 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027866LIBS=$ac_check_lib_save_LIBS
27867fi
cristy8b350f62009-11-15 23:12:43 +000027868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027869$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027870if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027871 FREETYPE_LIBS='-lfreetype'
27872fi
27873
27874 if test "$FREETYPE_LIBS" != ''; then
27875 passed=`expr $passed + 1`
27876 else
27877 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027878 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027879 fi
27880 fi
27881
cristy8b350f62009-11-15 23:12:43 +000027882 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027883if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 FT2BUILD_H='#include <ft2build.h>'
27885else
27886 ft2build=''
27887fi
27888
27889
cristy8b350f62009-11-15 23:12:43 +000027890 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27891"
cristyda16f162011-02-19 23:52:17 +000027892if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027893 have_freetype_h='yes'
27894else
27895 have_freetype_h='no'
27896fi
27897
27898
27899 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27900 passed=`expr $passed + 1`
27901 else
27902 failed=`expr $failed + 1`
27903 CPPFLAGS="$PERSIST_CPPFLAGS"
27904 fi
27905
cristy8b350f62009-11-15 23:12:43 +000027906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027907$as_echo_n "checking if FreeType package is complete... " >&6; }
27908 if test $passed -gt 0; then
27909 if test $failed -gt 0; then
27910 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027912$as_echo "no -- some components failed test" >&6; }
27913 have_freetype='no (failed tests)'
27914 else
27915 LIBS="$FREETYPE_LIBS $LIBS"
27916
cristy8b350f62009-11-15 23:12:43 +000027917$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027918
27919 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27920
cristy8b350f62009-11-15 23:12:43 +000027921$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027922
27923 fi
cristy8b350f62009-11-15 23:12:43 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo "yes" >&6; }
27926 have_freetype='yes'
27927 fi
27928 else
cristy8b350f62009-11-15 23:12:43 +000027929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027930$as_echo "no" >&6; }
27931 fi
27932fi
cristy73bd4a52010-10-05 11:24:23 +000027933 if test "$have_freetype" = 'yes'; then
27934 FREETYPE_DELEGATE_TRUE=
27935 FREETYPE_DELEGATE_FALSE='#'
27936else
27937 FREETYPE_DELEGATE_TRUE='#'
27938 FREETYPE_DELEGATE_FALSE=
27939fi
27940
cristy3ed852e2009-09-05 21:47:34 +000027941
27942
27943
27944
27945#
27946# Check for Ghostscript library or framework.
27947#
27948# Test for iapi.h & test for gsapi_new_instance in -lgs
27949# or -framework Ghostscript
27950
27951
27952# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027953if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027954 withval=$with_gslib; with_gslib=$withval
27955else
27956 with_gslib='no'
27957fi
27958
27959
cristyb7931f12009-09-25 10:22:21 +000027960gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027961if test "$with_gslib" != 'yes'; then
27962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27963fi
27964
27965have_gslib='no'
27966GS_LIBS=''
27967if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027971$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027974 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027975 failed=0
27976 passed=0
cristy8b350f62009-11-15 23:12:43 +000027977 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 +000027978if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027979 passed=`expr $passed + 1`
27980else
27981 failed=`expr $failed + 1`
27982fi
27983
27984
cristy8b350f62009-11-15 23:12:43 +000027985 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 +000027986if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027987 passed=`expr $passed + 1`
27988else
27989 failed=`expr $failed + 1`
27990fi
27991
27992
cristy73bd4a52010-10-05 11:24:23 +000027993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27994$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027995if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027996 $as_echo_n "(cached) " >&6
27997else
27998 ac_check_framework_save_LIBS=$LIBS
27999LIBS="-framework Ghostscript $LIBS"
28000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28001/* end confdefs.h. */
28002
28003/* Override any GCC internal prototype to avoid an error.
28004 Use char because int might match the return type of a GCC
28005 builtin and then its argument prototype would still apply. */
28006#ifdef __cplusplus
28007extern "C"
28008#endif
28009char gsapi_new_instance ();
28010int
28011main ()
28012{
28013return gsapi_new_instance ();
28014 ;
28015 return 0;
28016}
28017_ACEOF
28018if ac_fn_c_try_link "$LINENO"; then :
28019 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28020else
28021 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28022fi
28023rm -f core conftest.err conftest.$ac_objext \
28024 conftest$ac_exeext conftest.$ac_ext
28025LIBS=$ac_check_framework_save_LIBS
28026fi
28027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28028$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28029if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28030 framework=`expr $framework + 1`
28031else
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028033$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028034if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028035 $as_echo_n "(cached) " >&6
28036else
28037 ac_check_lib_save_LIBS=$LIBS
28038LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028040/* end confdefs.h. */
28041
28042/* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
28045#ifdef __cplusplus
28046extern "C"
28047#endif
28048char gsapi_new_instance ();
28049int
28050main ()
28051{
28052return gsapi_new_instance ();
28053 ;
28054 return 0;
28055}
28056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028057if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028058 ac_cv_lib_gs_gsapi_new_instance=yes
28059else
cristy8b350f62009-11-15 23:12:43 +000028060 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028061fi
cristy8b350f62009-11-15 23:12:43 +000028062rm -f core conftest.err conftest.$ac_objext \
28063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028064LIBS=$ac_check_lib_save_LIBS
28065fi
cristy8b350f62009-11-15 23:12:43 +000028066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028067$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028068if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028069 passed=`expr $passed + 1`
28070else
28071 failed=`expr $failed + 1`
28072fi
cristy73bd4a52010-10-05 11:24:23 +000028073
28074fi
cristy8b350f62009-11-15 23:12:43 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28077 if test $passed -gt 0; then
28078 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028080$as_echo "no -- some components failed test" >&6; }
28081 have_gslib='no (failed tests)'
28082 else
28083 if test $framework -gt 0; then
28084 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028085 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo "yes, using framework." >&6; }
28088 else
cristy8b350f62009-11-15 23:12:43 +000028089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028090$as_echo "yes, using library." >&6; }
28091 GS_LIBS='-lgs'
28092 fi
28093 LIBS="$GS_LIBS $LIBS"
28094
cristy8b350f62009-11-15 23:12:43 +000028095$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028096
28097 have_gslib='yes'
28098 fi
28099 else
cristy8b350f62009-11-15 23:12:43 +000028100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028101$as_echo "no" >&6; }
28102 fi
28103fi
cristy73bd4a52010-10-05 11:24:23 +000028104 if test "$have_gslib" = 'yes'; then
28105 GS_DELEGATE_TRUE=
28106 GS_DELEGATE_FALSE='#'
28107else
28108 GS_DELEGATE_TRUE='#'
28109 GS_DELEGATE_FALSE=
28110fi
28111
cristy3ed852e2009-09-05 21:47:34 +000028112
28113
28114# Set default font search path
28115
28116# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028117if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028118 withval=$with_fontpath; with_fontpath=$withval
28119else
28120 with_fontpath=''
28121fi
28122
28123
28124if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28125 with_fontpath=''
28126else
28127
28128cat >>confdefs.h <<_ACEOF
28129#define MAGICK_FONT_PATH "$with_fontpath"
28130_ACEOF
28131
28132fi
28133if test "$with_fontpath=" != ''; then
28134 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28135fi
28136
28137# Set Ghostscript font directory
28138
28139# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028140if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028141 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28142else
28143 with_gs_font_dir='default'
28144fi
28145
28146
28147if test "$with_gs_font_dir" != 'default'; then
28148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28149fi
28150
28151
28152#
28153# Check for GVC delegate library.
28154#
28155
28156# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028157if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028158 withval=$with_gvc; with_gvc=$withval
28159else
28160 with_gvc='yes'
28161fi
28162
28163
28164if test "$with_gvc" != 'yes'; then
28165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28166fi
28167
28168GVC_PKG=""
28169if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028171$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028172
28173pkg_failed=no
28174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28175$as_echo_n "checking for GVC... " >&6; }
28176
28177if test -n "$GVC_CFLAGS"; then
28178 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28179 elif test -n "$PKG_CONFIG"; then
28180 if test -n "$PKG_CONFIG" && \
28181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28182 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28183 ac_status=$?
28184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28185 test $ac_status = 0; }; then
28186 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28187else
28188 pkg_failed=yes
28189fi
28190 else
28191 pkg_failed=untried
28192fi
28193if test -n "$GVC_LIBS"; then
28194 pkg_cv_GVC_LIBS="$GVC_LIBS"
28195 elif test -n "$PKG_CONFIG"; then
28196 if test -n "$PKG_CONFIG" && \
28197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28198 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28199 ac_status=$?
28200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28201 test $ac_status = 0; }; then
28202 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28203else
28204 pkg_failed=yes
28205fi
28206 else
28207 pkg_failed=untried
28208fi
28209
28210
28211
28212if test $pkg_failed = yes; then
28213
28214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28215 _pkg_short_errors_supported=yes
28216else
28217 _pkg_short_errors_supported=no
28218fi
28219 if test $_pkg_short_errors_supported = yes; then
28220 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28221 else
28222 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28223 fi
28224 # Put the nasty error message in config.log where it belongs
28225 echo "$GVC_PKG_ERRORS" >&5
28226
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28228$as_echo "no" >&6; }
28229 have_gvc=no
28230elif test $pkg_failed = untried; then
28231 have_gvc=no
28232else
28233 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28234 GVC_LIBS=$pkg_cv_GVC_LIBS
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28236$as_echo "yes" >&6; }
28237 have_gvc=yes
28238fi
cristy8b350f62009-11-15 23:12:43 +000028239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028240$as_echo "" >&6; }
28241fi
28242
28243if test "$have_gvc" = 'yes'; then
28244
cristy8b350f62009-11-15 23:12:43 +000028245$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028246
28247 if test "$with_modules" = 'no'; then
28248 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28249 fi
28250fi
28251
cristy73bd4a52010-10-05 11:24:23 +000028252 if test "$have_gvc" = 'yes'; then
28253 GVC_DELEGATE_TRUE=
28254 GVC_DELEGATE_FALSE='#'
28255else
28256 GVC_DELEGATE_TRUE='#'
28257 GVC_DELEGATE_FALSE=
28258fi
28259
cristy3ed852e2009-09-05 21:47:34 +000028260
28261
28262
28263
28264#
28265# Check for JBIG delegate library.
28266#
28267
28268
28269# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028270if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028271 withval=$with_jbig; with_jbig=$withval
28272else
28273 with_jbig='yes'
28274fi
28275
28276
28277have_jbig='no'
28278JBIG_LIBS=''
28279if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028281$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028283$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028285$as_echo "" >&6; }
28286 failed=0
28287 passed=0
cristy8b350f62009-11-15 23:12:43 +000028288 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028289if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 passed=`expr $passed + 1`
28291else
28292 failed=`expr $failed + 1`
28293fi
28294
28295
cristy8b350f62009-11-15 23:12:43 +000028296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028298if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028299 $as_echo_n "(cached) " >&6
28300else
28301 ac_check_lib_save_LIBS=$LIBS
28302LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028304/* end confdefs.h. */
28305
28306/* Override any GCC internal prototype to avoid an error.
28307 Use char because int might match the return type of a GCC
28308 builtin and then its argument prototype would still apply. */
28309#ifdef __cplusplus
28310extern "C"
28311#endif
28312char jbg_dec_init ();
28313int
28314main ()
28315{
28316return jbg_dec_init ();
28317 ;
28318 return 0;
28319}
28320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028322 ac_cv_lib_jbig_jbg_dec_init=yes
28323else
cristy8b350f62009-11-15 23:12:43 +000028324 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028325fi
cristy8b350f62009-11-15 23:12:43 +000028326rm -f core conftest.err conftest.$ac_objext \
28327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028328LIBS=$ac_check_lib_save_LIBS
28329fi
cristy8b350f62009-11-15 23:12:43 +000028330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028331$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028332if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 passed=`expr $passed + 1`
28334else
28335 failed=`expr $failed + 1`
28336fi
28337
cristy8b350f62009-11-15 23:12:43 +000028338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028339$as_echo_n "checking if JBIG package is complete... " >&6; }
28340 if test $passed -gt 0; then
28341 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028343$as_echo "no -- some components failed test" >&6; }
28344 have_jbig='no (failed tests)'
28345 else
28346 JBIG_LIBS='-ljbig'
28347 LIBS="$JBIG_LIBS $LIBS"
28348
cristy8b350f62009-11-15 23:12:43 +000028349$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028350
cristy8b350f62009-11-15 23:12:43 +000028351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo "yes" >&6; }
28353 have_jbig='yes'
28354 fi
28355 else
cristy8b350f62009-11-15 23:12:43 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo "no" >&6; }
28358 fi
28359fi
cristy73bd4a52010-10-05 11:24:23 +000028360 if test "$have_jbig" = 'yes'; then
28361 JBIG_DELEGATE_TRUE=
28362 JBIG_DELEGATE_FALSE='#'
28363else
28364 JBIG_DELEGATE_TRUE='#'
28365 JBIG_DELEGATE_FALSE=
28366fi
28367
cristy3ed852e2009-09-05 21:47:34 +000028368
28369
28370
28371#
28372# Check for JPEG delegate library.
28373#
28374
28375# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028376if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028377 withval=$with_jpeg; with_jpeg=$withval
28378else
28379 with_jpeg='yes'
28380fi
28381
28382
28383if test "$with_jpeg" != 'yes'; then
28384 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28385fi
28386
28387have_jpeg='no'
28388JPEG_LIBS=''
28389if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028393$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028395$as_echo "" >&6; }
28396 failed=0
28397 passed=0
cristy8b350f62009-11-15 23:12:43 +000028398 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028399if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 passed=`expr $passed + 1`
28401else
28402 failed=`expr $failed + 1`
28403fi
28404
28405
cristy8b350f62009-11-15 23:12:43 +000028406 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028407if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 passed=`expr $passed + 1`
28409else
28410 failed=`expr $failed + 1`
28411fi
28412
28413
cristy8b350f62009-11-15 23:12:43 +000028414 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028415if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 passed=`expr $passed + 1`
28417else
28418 failed=`expr $failed + 1`
28419fi
28420
28421
cristy8b350f62009-11-15 23:12:43 +000028422 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028423if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028424 passed=`expr $passed + 1`
28425else
28426 failed=`expr $failed + 1`
28427fi
28428
28429
cristy8b350f62009-11-15 23:12:43 +000028430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028431$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028432if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028433 $as_echo_n "(cached) " >&6
28434else
28435 ac_check_lib_save_LIBS=$LIBS
28436LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028438/* end confdefs.h. */
28439
28440/* Override any GCC internal prototype to avoid an error.
28441 Use char because int might match the return type of a GCC
28442 builtin and then its argument prototype would still apply. */
28443#ifdef __cplusplus
28444extern "C"
28445#endif
28446char jpeg_read_header ();
28447int
28448main ()
28449{
28450return jpeg_read_header ();
28451 ;
28452 return 0;
28453}
28454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028455if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028456 ac_cv_lib_jpeg_jpeg_read_header=yes
28457else
cristy8b350f62009-11-15 23:12:43 +000028458 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028459fi
cristy8b350f62009-11-15 23:12:43 +000028460rm -f core conftest.err conftest.$ac_objext \
28461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028462LIBS=$ac_check_lib_save_LIBS
28463fi
cristy8b350f62009-11-15 23:12:43 +000028464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028465$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028466if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028467 passed=`expr $passed + 1`
28468else
28469 failed=`expr $failed + 1`
28470fi
28471
28472
28473# Test for compatible JPEG library
28474if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028477if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028478 $as_echo_n "(cached) " >&6
28479else
cristy8b350f62009-11-15 23:12:43 +000028480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028481/* end confdefs.h. */
28482#include <stdio.h>
28483#include <stdlib.h>
28484#include <jpeglib.h>
28485
28486int
28487main ()
28488{
28489
28490#if JPEG_LIB_VERSION < 62
28491#error IJG JPEG library must be version 6b or newer!
28492#endif
28493return 0;
28494
28495 ;
28496 return 0;
28497}
28498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028499if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28501else
cristy8b350f62009-11-15 23:12:43 +000028502 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028503fi
cristy3ed852e2009-09-05 21:47:34 +000028504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505fi
cristy8b350f62009-11-15 23:12:43 +000028506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028507$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28508fi
cristy8b350f62009-11-15 23:12:43 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028510$as_echo_n "checking if JPEG package is complete... " >&6; }
28511 if test $passed -gt 0; then
28512 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028514$as_echo "no -- some components failed test" >&6; }
28515 have_jpeg='no (failed tests)'
28516 else
28517 JPEG_LIBS='-ljpeg'
28518 LIBS="$JPEG_LIBS $LIBS"
28519
cristy8b350f62009-11-15 23:12:43 +000028520$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028521
cristy8b350f62009-11-15 23:12:43 +000028522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028523$as_echo "yes" >&6; }
28524 have_jpeg='yes'
28525 fi
28526 else
cristy8b350f62009-11-15 23:12:43 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo "no" >&6; }
28529 fi
28530fi
cristy73bd4a52010-10-05 11:24:23 +000028531 if test "$have_jpeg" = 'yes'; then
28532 JPEG_DELEGATE_TRUE=
28533 JPEG_DELEGATE_FALSE='#'
28534else
28535 JPEG_DELEGATE_TRUE='#'
28536 JPEG_DELEGATE_FALSE=
28537fi
28538
cristy3ed852e2009-09-05 21:47:34 +000028539
28540
28541
28542#
28543# Check for JPEG Version 2 delegate library.
28544#
28545
28546# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028547if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028548 withval=$with_jp2; with_jp2=$withval
28549else
28550 with_jp2='yes'
28551fi
28552
28553
28554if test "$with_jp2" != 'yes'; then
28555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28556fi
28557
28558have_jp2='no'
28559JP2_LIBS=''
28560if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028564$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028566$as_echo "" >&6; }
28567 failed=0
28568 passed=0
cristy8b350f62009-11-15 23:12:43 +000028569 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 +000028570if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 passed=`expr $passed + 1`
28572else
28573 failed=`expr $failed + 1`
28574fi
28575
28576
cristy8b350f62009-11-15 23:12:43 +000028577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028578$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028579if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028580 $as_echo_n "(cached) " >&6
28581else
28582 ac_check_lib_save_LIBS=$LIBS
28583LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028585/* end confdefs.h. */
28586
28587/* Override any GCC internal prototype to avoid an error.
28588 Use char because int might match the return type of a GCC
28589 builtin and then its argument prototype would still apply. */
28590#ifdef __cplusplus
28591extern "C"
28592#endif
28593char jas_stream_fopen ();
28594int
28595main ()
28596{
28597return jas_stream_fopen ();
28598 ;
28599 return 0;
28600}
28601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028603 ac_cv_lib_jasper_jas_stream_fopen=yes
28604else
cristy8b350f62009-11-15 23:12:43 +000028605 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028606fi
cristy8b350f62009-11-15 23:12:43 +000028607rm -f core conftest.err conftest.$ac_objext \
28608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028609LIBS=$ac_check_lib_save_LIBS
28610fi
cristy8b350f62009-11-15 23:12:43 +000028611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028612$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028613if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028614 passed=`expr $passed + 1`
28615else
28616 failed=`expr $failed + 1`
28617fi
28618
cristy8b350f62009-11-15 23:12:43 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028620$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28621 if test $passed -gt 0; then
28622 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028624$as_echo "no -- some components failed test" >&6; }
28625 have_jp2='no (failed tests)'
28626 else
28627 JP2_LIBS='-ljasper'
28628 LIBS="$JP2_LIBS $LIBS"
28629
cristy8b350f62009-11-15 23:12:43 +000028630$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028631
cristy8b350f62009-11-15 23:12:43 +000028632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028633$as_echo "yes" >&6; }
28634 have_jp2='yes'
28635 fi
28636 else
cristy8b350f62009-11-15 23:12:43 +000028637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028638$as_echo "no" >&6; }
28639 fi
28640fi
cristy73bd4a52010-10-05 11:24:23 +000028641 if test "$have_jp2" = 'yes'; then
28642 JP2_DELEGATE_TRUE=
28643 JP2_DELEGATE_FALSE='#'
28644else
28645 JP2_DELEGATE_TRUE='#'
28646 JP2_DELEGATE_FALSE=
28647fi
28648
cristy3ed852e2009-09-05 21:47:34 +000028649
28650
28651
28652#
28653# Check for LCMS delegate library.
28654#
cristy71203402010-06-18 13:12:03 +000028655# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028656
28657# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028658if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028659 withval=$with_lcms; with_lcms=$withval
28660else
28661 with_lcms='yes'
28662fi
28663
cristy71203402010-06-18 13:12:03 +000028664if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28666fi
28667
cristy71203402010-06-18 13:12:03 +000028668# Disable LCMS2.
28669
28670# Check whether --with-lcms2 was given.
28671if test "${with_lcms2+set}" = set; then :
28672 withval=$with_lcms2; with_lcms2=$withval
28673else
28674 with_lcms2='yes'
28675fi
28676
28677if test "$with_lcms2" != 'yes' ; then
28678 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28679fi
28680
28681have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028682LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028683if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028685$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28687$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028689$as_echo "" >&6; }
28690 failed=0
28691 passed=0
28692 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028693
28694 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028695 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028696if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028697 have_lcms_header='yes'
28698fi
28699
28700
28701 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028702
28703$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28704
cristy71203402010-06-18 13:12:03 +000028705 passed=`expr $passed + 1`
28706 fi
28707
28708 # Check for <lcms2/lcms2.h)
28709 if test "$have_lcms_header" != 'yes'; then
28710 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 +000028711if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028712 have_lcms_header='yes'
28713fi
28714
28715
cristy71203402010-06-18 13:12:03 +000028716 if test "$have_lcms_header" = 'yes'; then
28717 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028718
cristy71203402010-06-18 13:12:03 +000028719$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028720
cristy71203402010-06-18 13:12:03 +000028721 fi
cristyd09bcf92010-03-25 03:04:45 +000028722 fi
cristy71203402010-06-18 13:12:03 +000028723
28724 # Failed to find lcms header?
28725 if test "$have_lcms_header" != 'yes'; then
28726 failed=`expr $failed + 1`
28727 fi
28728
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28730$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028731if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028732 $as_echo_n "(cached) " >&6
28733else
28734 ac_check_lib_save_LIBS=$LIBS
28735LIBS="-llcms2 $LIBS"
28736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28737/* end confdefs.h. */
28738
28739/* Override any GCC internal prototype to avoid an error.
28740 Use char because int might match the return type of a GCC
28741 builtin and then its argument prototype would still apply. */
28742#ifdef __cplusplus
28743extern "C"
28744#endif
cristy71203402010-06-18 13:12:03 +000028745char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028746int
28747main ()
28748{
cristy71203402010-06-18 13:12:03 +000028749return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028750 ;
28751 return 0;
28752}
28753_ACEOF
28754if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028755 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028756else
cristy71203402010-06-18 13:12:03 +000028757 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028758fi
28759rm -f core conftest.err conftest.$ac_objext \
28760 conftest$ac_exeext conftest.$ac_ext
28761LIBS=$ac_check_lib_save_LIBS
28762fi
cristy71203402010-06-18 13:12:03 +000028763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28764$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028765if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028766 passed=`expr $passed + 1`
28767else
28768 failed=`expr $failed + 1`
28769fi
28770
cristy71203402010-06-18 13:12:03 +000028771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28772$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028773 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028774 if test $failed -gt 0; then
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028776$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028777 have_lcms2='no (failed tests)'
28778 else
28779 LCMS_LIBS='-llcms2'
28780 LIBS="$LCMS_LIBS $LIBS"
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028782$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028783 have_lcms2='yes'
28784 fi
cristyd09bcf92010-03-25 03:04:45 +000028785 else
cristy71203402010-06-18 13:12:03 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028787$as_echo "no" >&6; }
28788 fi
28789fi
28790
cristy71203402010-06-18 13:12:03 +000028791#
28792# Check for LCMS v1 (1.11 or later)
28793#
28794if test $have_lcms2 = 'yes'; then
28795 with_lcms='no'
28796fi
28797
28798have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028799if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28801$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28803$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28805$as_echo "" >&6; }
28806 failed=0
28807 passed=0
28808 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028809
28810 # Check for <lcms.h>
28811 if test "$have_lcms_header" != 'yes'; then
28812 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028813if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028814 have_lcms_header='yes'
28815fi
28816
28817
cristy71203402010-06-18 13:12:03 +000028818 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028819 passed=`expr $passed + 1`
28820
cristy8b350f62009-11-15 23:12:43 +000028821$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028822
cristy71203402010-06-18 13:12:03 +000028823 fi
28824 fi
28825
28826 # Check for <lcms/lcms.h>
28827 if test "$have_lcms_header" != 'yes'; then
28828 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 +000028829if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028830 have_lcms_header='yes'
28831fi
28832
28833
cristy71203402010-06-18 13:12:03 +000028834 if test "$have_lcms_header" = 'yes'; then
28835 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028836
cristy8b350f62009-11-15 23:12:43 +000028837$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028838
cristy71203402010-06-18 13:12:03 +000028839 fi
cristy3ed852e2009-09-05 21:47:34 +000028840 fi
cristy71203402010-06-18 13:12:03 +000028841
28842 # Failed to find lcms header?
28843 if test "$have_lcms_header" != 'yes'; then
28844 failed=`expr $failed + 1`
28845 fi
28846
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28848$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028849if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028850 $as_echo_n "(cached) " >&6
28851else
28852 ac_check_lib_save_LIBS=$LIBS
28853LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028855/* end confdefs.h. */
28856
28857/* Override any GCC internal prototype to avoid an error.
28858 Use char because int might match the return type of a GCC
28859 builtin and then its argument prototype would still apply. */
28860#ifdef __cplusplus
28861extern "C"
28862#endif
cristy71203402010-06-18 13:12:03 +000028863char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028864int
28865main ()
28866{
cristy71203402010-06-18 13:12:03 +000028867return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028868 ;
28869 return 0;
28870}
28871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028872if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028873 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028874else
cristy71203402010-06-18 13:12:03 +000028875 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028876fi
cristy8b350f62009-11-15 23:12:43 +000028877rm -f core conftest.err conftest.$ac_objext \
28878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028879LIBS=$ac_check_lib_save_LIBS
28880fi
cristy71203402010-06-18 13:12:03 +000028881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28882$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028883if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028884 passed=`expr $passed + 1`
28885else
28886 failed=`expr $failed + 1`
28887fi
28888
cristy8b350f62009-11-15 23:12:43 +000028889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028890$as_echo_n "checking if LCMS package is complete... " >&6; }
28891 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028892 if test $failed -gt 0; then
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028894$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028895 have_lcms='no (failed tests)'
28896 else
28897 LCMS_LIBS='-llcms'
28898 LIBS="$LCMS_LIBS $LIBS"
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028900$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028901 have_lcms='yes'
28902 fi
cristy3ed852e2009-09-05 21:47:34 +000028903 else
cristy71203402010-06-18 13:12:03 +000028904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028905$as_echo "no" >&6; }
28906 fi
28907fi
cristy71203402010-06-18 13:12:03 +000028908
cristy73bd4a52010-10-05 11:24:23 +000028909 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28910 LCMS_DELEGATE_TRUE=
28911 LCMS_DELEGATE_FALSE='#'
28912else
28913 LCMS_DELEGATE_TRUE='#'
28914 LCMS_DELEGATE_FALSE=
28915fi
28916
cristy71203402010-06-18 13:12:03 +000028917if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28918
28919$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28920
28921fi
28922
cristy3ed852e2009-09-05 21:47:34 +000028923
28924
28925
28926#
28927# Check for the LQR (Liquid Rescale) delegate library.
28928#
28929
28930# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028931if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028932 withval=$with_lqr; with_lqr=$withval
28933else
28934 with_lqr='yes'
28935fi
28936
28937
28938if test "$with_lqr" != 'yes'; then
28939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28940fi
28941
28942have_lqr='no'
28943LQR_CFLAGS=""
28944LQR_LIBS=""
28945LQR_PKG=""
28946if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028948$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028949
28950pkg_failed=no
28951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28952$as_echo_n "checking for LQR... " >&6; }
28953
28954if test -n "$LQR_CFLAGS"; then
28955 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28956 elif test -n "$PKG_CONFIG"; then
28957 if test -n "$PKG_CONFIG" && \
28958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28959 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28960 ac_status=$?
28961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28962 test $ac_status = 0; }; then
28963 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28964else
28965 pkg_failed=yes
28966fi
28967 else
28968 pkg_failed=untried
28969fi
28970if test -n "$LQR_LIBS"; then
28971 pkg_cv_LQR_LIBS="$LQR_LIBS"
28972 elif test -n "$PKG_CONFIG"; then
28973 if test -n "$PKG_CONFIG" && \
28974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28975 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28976 ac_status=$?
28977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28978 test $ac_status = 0; }; then
28979 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28980else
28981 pkg_failed=yes
28982fi
28983 else
28984 pkg_failed=untried
28985fi
28986
28987
28988
28989if test $pkg_failed = yes; then
28990
28991if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28992 _pkg_short_errors_supported=yes
28993else
28994 _pkg_short_errors_supported=no
28995fi
28996 if test $_pkg_short_errors_supported = yes; then
28997 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28998 else
28999 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29000 fi
29001 # Put the nasty error message in config.log where it belongs
29002 echo "$LQR_PKG_ERRORS" >&5
29003
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29005$as_echo "no" >&6; }
29006 have_lqr=no
29007elif test $pkg_failed = untried; then
29008 have_lqr=no
29009else
29010 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29011 LQR_LIBS=$pkg_cv_LQR_LIBS
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29013$as_echo "yes" >&6; }
29014 have_lqr=yes
29015fi
cristy8b350f62009-11-15 23:12:43 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029017$as_echo "" >&6; }
29018fi
29019
29020if test "$have_lqr" = 'yes'; then
29021
cristy8b350f62009-11-15 23:12:43 +000029022$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029023
29024 CFLAGS="$LQR_CFLAGS $CFLAGS"
29025fi
29026
cristy73bd4a52010-10-05 11:24:23 +000029027 if test "$have_lqr" = 'yes'; then
29028 LQR_DELEGATE_TRUE=
29029 LQR_DELEGATE_FALSE='#'
29030else
29031 LQR_DELEGATE_TRUE='#'
29032 LQR_DELEGATE_FALSE=
29033fi
29034
cristy3ed852e2009-09-05 21:47:34 +000029035
29036
29037
29038
cristyfbb0ef02010-12-19 02:32:11 +000029039# Disable LZMA (lzma library)
29040
29041# Check whether --with-lzma was given.
29042if test "${with_lzma+set}" = set; then :
29043 withval=$with_lzma; with_lzma=$withval
29044else
29045 with_lzma='yes'
29046fi
29047
29048if test "$with_lzma" != 'yes' ; then
29049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29050fi
29051
29052#
29053# Check for LZMA
29054#
29055have_lzma='no'
29056LZMA_LIBS=''
29057if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29059$as_echo "-------------------------------------------------------------" >&6; }
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29061$as_echo_n "checking for LZMA... " >&6; }
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29063$as_echo "" >&6; }
29064 failed=0
29065 passed=0
29066 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029067if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029068 passed=`expr $passed + 1`
29069else
29070 failed=`expr $failed + 1`
29071fi
29072
29073
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29075$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029076if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029077 $as_echo_n "(cached) " >&6
29078else
29079 ac_check_lib_save_LIBS=$LIBS
29080LIBS="-llzma $LIBS"
29081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29082/* end confdefs.h. */
29083
29084/* Override any GCC internal prototype to avoid an error.
29085 Use char because int might match the return type of a GCC
29086 builtin and then its argument prototype would still apply. */
29087#ifdef __cplusplus
29088extern "C"
29089#endif
29090char lzma_code ();
29091int
29092main ()
29093{
29094return lzma_code ();
29095 ;
29096 return 0;
29097}
29098_ACEOF
29099if ac_fn_c_try_link "$LINENO"; then :
29100 ac_cv_lib_lzma_lzma_code=yes
29101else
29102 ac_cv_lib_lzma_lzma_code=no
29103fi
29104rm -f core conftest.err conftest.$ac_objext \
29105 conftest$ac_exeext conftest.$ac_ext
29106LIBS=$ac_check_lib_save_LIBS
29107fi
29108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29109$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029110if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029111 passed=`expr $passed + 1`
29112else
29113 failed=`expr $failed + 1`
29114fi
29115
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29117$as_echo_n "checking if LZMA package is complete... " >&6; }
29118 if test $passed -gt 0; then
29119 if test $failed -gt 0; then
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29121$as_echo "no -- some components failed test" >&6; }
29122 have_lzma='no (failed tests)'
29123 else
29124 LZMA_LIBS='-llzma'
29125 LIBS="$LZMA_LIBS $LIBS"
29126
29127$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29128
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29130$as_echo "yes" >&6; }
29131 have_lzma='yes'
29132 fi
29133 else
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29135$as_echo "no" >&6; }
29136 fi
29137fi
29138 if test "$have_lzma" = 'yes'; then
29139 LZMA_DELEGATE_TRUE=
29140 LZMA_DELEGATE_FALSE='#'
29141else
29142 LZMA_DELEGATE_TRUE='#'
29143 LZMA_DELEGATE_FALSE=
29144fi
29145
29146
29147
29148
cristy3ed852e2009-09-05 21:47:34 +000029149#
29150# Check for the OpenEXR delegate library.
29151#
29152
29153# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029154if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029155 withval=$with_openexr; with_openexr=$withval
29156else
29157 with_openexr='yes'
29158fi
29159
29160
29161if test "$with_openexr" != 'yes'; then
29162 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29163fi
29164
29165have_openexr='no'
29166OPENEXR_CFLAGS=""
29167OPENEXR_LIBS=""
29168OPENEXR_PKG=""
29169if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029171$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029172
29173pkg_failed=no
29174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29175$as_echo_n "checking for OPENEXR... " >&6; }
29176
29177if test -n "$OPENEXR_CFLAGS"; then
29178 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29179 elif test -n "$PKG_CONFIG"; then
29180 if test -n "$PKG_CONFIG" && \
29181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29182 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29183 ac_status=$?
29184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29185 test $ac_status = 0; }; then
29186 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29187else
29188 pkg_failed=yes
29189fi
29190 else
29191 pkg_failed=untried
29192fi
29193if test -n "$OPENEXR_LIBS"; then
29194 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29195 elif test -n "$PKG_CONFIG"; then
29196 if test -n "$PKG_CONFIG" && \
29197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29198 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29199 ac_status=$?
29200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29201 test $ac_status = 0; }; then
29202 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29203else
29204 pkg_failed=yes
29205fi
29206 else
29207 pkg_failed=untried
29208fi
29209
29210
29211
29212if test $pkg_failed = yes; then
29213
29214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29215 _pkg_short_errors_supported=yes
29216else
29217 _pkg_short_errors_supported=no
29218fi
29219 if test $_pkg_short_errors_supported = yes; then
29220 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29221 else
29222 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29223 fi
29224 # Put the nasty error message in config.log where it belongs
29225 echo "$OPENEXR_PKG_ERRORS" >&5
29226
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29228$as_echo "no" >&6; }
29229 have_openexr=no
29230elif test $pkg_failed = untried; then
29231 have_openexr=no
29232else
29233 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29234 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29236$as_echo "yes" >&6; }
29237 have_openexr=yes
29238fi
cristy8b350f62009-11-15 23:12:43 +000029239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029240$as_echo "" >&6; }
29241fi
29242
29243if test "$have_openexr" = 'yes'; then
29244
cristy8b350f62009-11-15 23:12:43 +000029245$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029246
29247 if test "$with_modules" = 'no'; then
29248 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29249 fi
29250fi
29251
cristy73bd4a52010-10-05 11:24:23 +000029252 if test "$have_openexr" = 'yes'; then
29253 OPENEXR_DELEGATE_TRUE=
29254 OPENEXR_DELEGATE_FALSE='#'
29255else
29256 OPENEXR_DELEGATE_TRUE='#'
29257 OPENEXR_DELEGATE_FALSE=
29258fi
29259
cristy3ed852e2009-09-05 21:47:34 +000029260
29261
29262
29263
29264#
29265# Check for PNG delegate library.
29266#
29267
29268# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029269if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029270 withval=$with_png; with_png=$withval
29271else
29272 with_png='yes'
29273fi
29274
29275
29276if test "$with_png" != 'yes'; then
29277 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29278fi
29279
29280have_png='no'
29281PNG_LIBS=''
29282if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029284$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo "" >&6; }
29289 failed=0
29290 passed=0
cristy8b350f62009-11-15 23:12:43 +000029291 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029292if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029293 passed=`expr $passed + 1`
29294else
29295 failed=`expr $failed + 1`
29296fi
29297
29298
cristy8b350f62009-11-15 23:12:43 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029300$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029301if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029302 $as_echo_n "(cached) " >&6
29303else
29304 ac_check_lib_save_LIBS=$LIBS
29305LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029307/* end confdefs.h. */
29308
29309/* Override any GCC internal prototype to avoid an error.
29310 Use char because int might match the return type of a GCC
29311 builtin and then its argument prototype would still apply. */
29312#ifdef __cplusplus
29313extern "C"
29314#endif
29315char png_get_io_ptr ();
29316int
29317main ()
29318{
29319return png_get_io_ptr ();
29320 ;
29321 return 0;
29322}
29323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029324if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029325 ac_cv_lib_png_png_get_io_ptr=yes
29326else
cristy8b350f62009-11-15 23:12:43 +000029327 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029328fi
cristy8b350f62009-11-15 23:12:43 +000029329rm -f core conftest.err conftest.$ac_objext \
29330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029331LIBS=$ac_check_lib_save_LIBS
29332fi
cristy8b350f62009-11-15 23:12:43 +000029333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029334$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029335if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029336 passed=`expr $passed + 1`
29337else
29338 failed=`expr $failed + 1`
29339fi
29340
cristy8b350f62009-11-15 23:12:43 +000029341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029342$as_echo_n "checking if PNG package is complete... " >&6; }
29343 if test $passed -gt 0; then
29344 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029346$as_echo "no -- some components failed test" >&6; }
29347 have_png='no (failed tests)'
29348 else
29349 PNG_LIBS='-lpng'
29350 LIBS="$PNG_LIBS $LIBS"
29351
cristy8b350f62009-11-15 23:12:43 +000029352$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029353
cristy8b350f62009-11-15 23:12:43 +000029354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029355$as_echo "yes" >&6; }
29356 have_png='yes'
29357 fi
29358 else
cristy8b350f62009-11-15 23:12:43 +000029359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029360$as_echo "no" >&6; }
29361 fi
29362fi
cristy73bd4a52010-10-05 11:24:23 +000029363 if test "$have_png" = 'yes'; then
29364 PNG_DELEGATE_TRUE=
29365 PNG_DELEGATE_FALSE='#'
29366else
29367 PNG_DELEGATE_TRUE='#'
29368 PNG_DELEGATE_FALSE=
29369fi
29370
cristy3ed852e2009-09-05 21:47:34 +000029371
29372
29373
29374#
29375# Check for RSVG delegate library.
29376#
29377
29378# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029379if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029380 withval=$with_rsvg; with_rsvg=$withval
29381else
29382 with_rsvg=$have_x
29383fi
29384
29385
29386if test "$with_rsvg" != 'yes'; then
29387 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29388fi
29389
29390have_rsvg='no'
29391have_cairo='no'
29392RSVG_CFLAGS=""
29393RSVG_LIBS=""
29394RSVG_PKG=""
29395if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029397$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029398
29399pkg_failed=no
29400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29401$as_echo_n "checking for RSVG... " >&6; }
29402
29403if test -n "$RSVG_CFLAGS"; then
29404 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29405 elif test -n "$PKG_CONFIG"; then
29406 if test -n "$PKG_CONFIG" && \
29407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29408 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29409 ac_status=$?
29410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29411 test $ac_status = 0; }; then
29412 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29413else
29414 pkg_failed=yes
29415fi
29416 else
29417 pkg_failed=untried
29418fi
29419if test -n "$RSVG_LIBS"; then
29420 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29421 elif test -n "$PKG_CONFIG"; then
29422 if test -n "$PKG_CONFIG" && \
29423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29424 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29425 ac_status=$?
29426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29427 test $ac_status = 0; }; then
29428 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29429else
29430 pkg_failed=yes
29431fi
29432 else
29433 pkg_failed=untried
29434fi
29435
29436
29437
29438if test $pkg_failed = yes; then
29439
29440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29441 _pkg_short_errors_supported=yes
29442else
29443 _pkg_short_errors_supported=no
29444fi
29445 if test $_pkg_short_errors_supported = yes; then
29446 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29447 else
29448 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29449 fi
29450 # Put the nasty error message in config.log where it belongs
29451 echo "$RSVG_PKG_ERRORS" >&5
29452
29453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29454$as_echo "no" >&6; }
29455 have_rsvg=no
29456elif test $pkg_failed = untried; then
29457 have_rsvg=no
29458else
29459 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29460 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29462$as_echo "yes" >&6; }
29463 have_rsvg=yes
29464fi
cristy8b350f62009-11-15 23:12:43 +000029465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029466$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029467
29468pkg_failed=no
29469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29470$as_echo_n "checking for CAIRO_SVG... " >&6; }
29471
29472if test -n "$CAIRO_SVG_CFLAGS"; then
29473 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29474 elif test -n "$PKG_CONFIG"; then
29475 if test -n "$PKG_CONFIG" && \
29476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29477 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29478 ac_status=$?
29479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29480 test $ac_status = 0; }; then
29481 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29482else
29483 pkg_failed=yes
29484fi
29485 else
29486 pkg_failed=untried
29487fi
29488if test -n "$CAIRO_SVG_LIBS"; then
29489 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29490 elif test -n "$PKG_CONFIG"; then
29491 if test -n "$PKG_CONFIG" && \
29492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29493 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29494 ac_status=$?
29495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29496 test $ac_status = 0; }; then
29497 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29498else
29499 pkg_failed=yes
29500fi
29501 else
29502 pkg_failed=untried
29503fi
29504
29505
29506
29507if test $pkg_failed = yes; then
29508
29509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29510 _pkg_short_errors_supported=yes
29511else
29512 _pkg_short_errors_supported=no
29513fi
29514 if test $_pkg_short_errors_supported = yes; then
29515 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29516 else
29517 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29518 fi
29519 # Put the nasty error message in config.log where it belongs
29520 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29521
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29523$as_echo "no" >&6; }
29524 have_cairo=no
29525elif test $pkg_failed = untried; then
29526 have_cairo=no
29527else
29528 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29529 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29531$as_echo "yes" >&6; }
29532 have_cairo=yes
29533fi
cristy8b350f62009-11-15 23:12:43 +000029534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029535$as_echo "" >&6; }
29536fi
29537
29538if test "$have_rsvg" = 'yes'; then
29539
cristy8b350f62009-11-15 23:12:43 +000029540$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029541
29542 if test "$with_modules" = 'no'; then
29543 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29544 fi
29545fi
29546
29547if test "$have_cairo" = 'yes'; then
29548
cristy8b350f62009-11-15 23:12:43 +000029549$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029550
29551 if test "$with_modules" = 'no'; then
29552 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29553 fi
29554fi
29555
cristy73bd4a52010-10-05 11:24:23 +000029556 if test "$have_rsvg" = 'yes'; then
29557 RSVG_DELEGATE_TRUE=
29558 RSVG_DELEGATE_FALSE='#'
29559else
29560 RSVG_DELEGATE_TRUE='#'
29561 RSVG_DELEGATE_FALSE=
29562fi
29563
29564 if test "$have_cairo" = 'yes'; then
29565 CAIRO_DELEGATE_TRUE=
29566 CAIRO_DELEGATE_FALSE='#'
29567else
29568 CAIRO_DELEGATE_TRUE='#'
29569 CAIRO_DELEGATE_FALSE=
29570fi
29571
cristy3ed852e2009-09-05 21:47:34 +000029572
29573
29574
29575
29576#
29577# Check for TIFF delegate library.
29578#
29579
29580# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029581if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 withval=$with_tiff; with_tiff=$withval
29583else
29584 with_tiff='yes'
29585fi
29586
29587
29588if test "$with_tiff" != 'yes'; then
29589 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29590fi
29591
29592have_tiff='no'
29593TIFF_LIBS=''
29594if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029596$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029600$as_echo "" >&6; }
29601 failed=0
29602 passed=0
cristy8b350f62009-11-15 23:12:43 +000029603 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029604if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029605 passed=`expr $passed + 1`
29606else
29607 failed=`expr $failed + 1`
29608fi
29609
29610
cristy8b350f62009-11-15 23:12:43 +000029611 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029612if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029613 passed=`expr $passed + 1`
29614else
29615 failed=`expr $failed + 1`
29616fi
29617
29618
cristy8b350f62009-11-15 23:12:43 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029620$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029621if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029622 $as_echo_n "(cached) " >&6
29623else
29624 ac_check_lib_save_LIBS=$LIBS
29625LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029627/* end confdefs.h. */
29628
29629/* Override any GCC internal prototype to avoid an error.
29630 Use char because int might match the return type of a GCC
29631 builtin and then its argument prototype would still apply. */
29632#ifdef __cplusplus
29633extern "C"
29634#endif
29635char TIFFOpen ();
29636int
29637main ()
29638{
29639return TIFFOpen ();
29640 ;
29641 return 0;
29642}
29643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029645 ac_cv_lib_tiff_TIFFOpen=yes
29646else
cristy8b350f62009-11-15 23:12:43 +000029647 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029648fi
cristy8b350f62009-11-15 23:12:43 +000029649rm -f core conftest.err conftest.$ac_objext \
29650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029651LIBS=$ac_check_lib_save_LIBS
29652fi
cristy8b350f62009-11-15 23:12:43 +000029653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029655if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029656 passed=`expr $passed + 1`
29657else
29658 failed=`expr $failed + 1`
29659fi
29660
cristy8b350f62009-11-15 23:12:43 +000029661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029662$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029663if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029664 $as_echo_n "(cached) " >&6
29665else
29666 ac_check_lib_save_LIBS=$LIBS
29667LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029669/* end confdefs.h. */
29670
29671/* Override any GCC internal prototype to avoid an error.
29672 Use char because int might match the return type of a GCC
29673 builtin and then its argument prototype would still apply. */
29674#ifdef __cplusplus
29675extern "C"
29676#endif
29677char TIFFClientOpen ();
29678int
29679main ()
29680{
29681return TIFFClientOpen ();
29682 ;
29683 return 0;
29684}
29685_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029686if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029687 ac_cv_lib_tiff_TIFFClientOpen=yes
29688else
cristy8b350f62009-11-15 23:12:43 +000029689 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029690fi
cristy8b350f62009-11-15 23:12:43 +000029691rm -f core conftest.err conftest.$ac_objext \
29692 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029693LIBS=$ac_check_lib_save_LIBS
29694fi
cristy8b350f62009-11-15 23:12:43 +000029695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029696$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029697if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029698 passed=`expr $passed + 1`
29699else
29700 failed=`expr $failed + 1`
29701fi
29702
cristyb97f1002010-07-26 14:02:57 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29704$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029705if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029706 $as_echo_n "(cached) " >&6
29707else
29708 ac_check_lib_save_LIBS=$LIBS
29709LIBS="-ltiff $LIBS"
29710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29711/* end confdefs.h. */
29712
29713/* Override any GCC internal prototype to avoid an error.
29714 Use char because int might match the return type of a GCC
29715 builtin and then its argument prototype would still apply. */
29716#ifdef __cplusplus
29717extern "C"
29718#endif
29719char TIFFIsBigEndian ();
29720int
29721main ()
29722{
29723return TIFFIsBigEndian ();
29724 ;
29725 return 0;
29726}
29727_ACEOF
29728if ac_fn_c_try_link "$LINENO"; then :
29729 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29730else
29731 ac_cv_lib_tiff_TIFFIsBigEndian=no
29732fi
29733rm -f core conftest.err conftest.$ac_objext \
29734 conftest$ac_exeext conftest.$ac_ext
29735LIBS=$ac_check_lib_save_LIBS
29736fi
29737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29738$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029739if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000029740 passed=`expr $passed + 1`
29741else
29742 failed=`expr $failed + 1`
29743fi
29744
cristy8b350f62009-11-15 23:12:43 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029747if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029748 $as_echo_n "(cached) " >&6
29749else
29750 ac_check_lib_save_LIBS=$LIBS
29751LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029753/* end confdefs.h. */
29754
29755/* Override any GCC internal prototype to avoid an error.
29756 Use char because int might match the return type of a GCC
29757 builtin and then its argument prototype would still apply. */
29758#ifdef __cplusplus
29759extern "C"
29760#endif
29761char TIFFIsByteSwapped ();
29762int
29763main ()
29764{
29765return TIFFIsByteSwapped ();
29766 ;
29767 return 0;
29768}
29769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029770if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029771 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29772else
cristy8b350f62009-11-15 23:12:43 +000029773 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029774fi
cristy8b350f62009-11-15 23:12:43 +000029775rm -f core conftest.err conftest.$ac_objext \
29776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029777LIBS=$ac_check_lib_save_LIBS
29778fi
cristy8b350f62009-11-15 23:12:43 +000029779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029780$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029781if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029782 passed=`expr $passed + 1`
29783else
29784 failed=`expr $failed + 1`
29785fi
29786
cristy8b350f62009-11-15 23:12:43 +000029787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029788$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029789if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029790 $as_echo_n "(cached) " >&6
29791else
29792 ac_check_lib_save_LIBS=$LIBS
29793LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029795/* end confdefs.h. */
29796
29797/* Override any GCC internal prototype to avoid an error.
29798 Use char because int might match the return type of a GCC
29799 builtin and then its argument prototype would still apply. */
29800#ifdef __cplusplus
29801extern "C"
29802#endif
29803char TIFFReadRGBATile ();
29804int
29805main ()
29806{
29807return TIFFReadRGBATile ();
29808 ;
29809 return 0;
29810}
29811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029813 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29814else
cristy8b350f62009-11-15 23:12:43 +000029815 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029816fi
cristy8b350f62009-11-15 23:12:43 +000029817rm -f core conftest.err conftest.$ac_objext \
29818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029819LIBS=$ac_check_lib_save_LIBS
29820fi
cristy8b350f62009-11-15 23:12:43 +000029821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029823if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029824 passed=`expr $passed + 1`
29825else
29826 failed=`expr $failed + 1`
29827fi
29828
cristy8b350f62009-11-15 23:12:43 +000029829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029830$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029831if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029832 $as_echo_n "(cached) " >&6
29833else
29834 ac_check_lib_save_LIBS=$LIBS
29835LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029837/* end confdefs.h. */
29838
29839/* Override any GCC internal prototype to avoid an error.
29840 Use char because int might match the return type of a GCC
29841 builtin and then its argument prototype would still apply. */
29842#ifdef __cplusplus
29843extern "C"
29844#endif
29845char TIFFReadRGBAStrip ();
29846int
29847main ()
29848{
29849return TIFFReadRGBAStrip ();
29850 ;
29851 return 0;
29852}
29853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029855 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29856else
cristy8b350f62009-11-15 23:12:43 +000029857 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029858fi
cristy8b350f62009-11-15 23:12:43 +000029859rm -f core conftest.err conftest.$ac_objext \
29860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029861LIBS=$ac_check_lib_save_LIBS
29862fi
cristy8b350f62009-11-15 23:12:43 +000029863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029865if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029866 passed=`expr $passed + 1`
29867else
29868 failed=`expr $failed + 1`
29869fi
29870
cristy8b350f62009-11-15 23:12:43 +000029871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029872$as_echo_n "checking if TIFF package is complete... " >&6; }
29873 if test $passed -gt 0; then
29874 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029876$as_echo "no -- some components failed test" >&6; }
29877 have_tiff='no (failed tests)'
29878 else
29879 TIFF_LIBS='-ltiff'
29880 LIBS="$TIFF_LIBS $LIBS"
29881
cristy8b350f62009-11-15 23:12:43 +000029882$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029883
cristy8b350f62009-11-15 23:12:43 +000029884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029885$as_echo "yes" >&6; }
29886 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029887 for ac_header in tiffconf.h
29888do :
29889 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029890if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029891 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029892#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029893_ACEOF
29894
29895fi
29896
29897done
29898
cristy8b350f62009-11-15 23:12:43 +000029899 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029900 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29901 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029902do :
29903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29904ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029905if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029906 cat >>confdefs.h <<_ACEOF
29907#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29908_ACEOF
29909
29910fi
29911done
29912
29913 fi
29914 else
cristy8b350f62009-11-15 23:12:43 +000029915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029916$as_echo "no" >&6; }
29917 fi
29918fi
cristy73bd4a52010-10-05 11:24:23 +000029919 if test "$have_tiff" = 'yes'; then
29920 TIFF_DELEGATE_TRUE=
29921 TIFF_DELEGATE_FALSE='#'
29922else
29923 TIFF_DELEGATE_TRUE='#'
29924 TIFF_DELEGATE_FALSE=
29925fi
29926
cristy3ed852e2009-09-05 21:47:34 +000029927
29928
29929
29930#
cristyb1860752011-03-14 00:27:46 +000029931# Check for WEBP delegate library.
29932#
29933
29934# Check whether --with-webp was given.
29935if test "${with_webp+set}" = set; then :
29936 withval=$with_webp; with_webp=$withval
29937else
29938 with_webp='yes'
29939fi
29940
29941
29942if test "$with_webp" != 'yes'; then
29943 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
29944fi
29945
29946have_webp='no'
29947WEBP_LIBS=''
29948if test "$with_webp" != 'no'; then
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29950$as_echo "-------------------------------------------------------------" >&6; }
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
29952$as_echo_n "checking for WEBP... " >&6; }
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29954$as_echo "" >&6; }
29955 failed=0
29956 passed=0
29957 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
29958if test "x$ac_cv_header_webp_decode_h" = xyes; then :
29959 passed=`expr $passed + 1`
29960else
29961 failed=`expr $failed + 1`
29962fi
29963
29964
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
29966$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
29967if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
29968 $as_echo_n "(cached) " >&6
29969else
29970 ac_check_lib_save_LIBS=$LIBS
29971LIBS="-lwebp $LIBS"
29972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29973/* end confdefs.h. */
29974
29975/* Override any GCC internal prototype to avoid an error.
29976 Use char because int might match the return type of a GCC
29977 builtin and then its argument prototype would still apply. */
29978#ifdef __cplusplus
29979extern "C"
29980#endif
29981char WebPDecodeRGB ();
29982int
29983main ()
29984{
29985return WebPDecodeRGB ();
29986 ;
29987 return 0;
29988}
29989_ACEOF
29990if ac_fn_c_try_link "$LINENO"; then :
29991 ac_cv_lib_webp_WebPDecodeRGB=yes
29992else
29993 ac_cv_lib_webp_WebPDecodeRGB=no
29994fi
29995rm -f core conftest.err conftest.$ac_objext \
29996 conftest$ac_exeext conftest.$ac_ext
29997LIBS=$ac_check_lib_save_LIBS
29998fi
29999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30000$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30001if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30002 passed=`expr $passed + 1`
30003else
30004 failed=`expr $failed + 1`
30005fi
30006
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30008$as_echo_n "checking if WEBP package is complete... " >&6; }
30009 if test $passed -gt 0; then
30010 if test $failed -gt 0; then
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30012$as_echo "no -- some components failed test" >&6; }
30013 have_webp='no (failed tests)'
30014 else
30015 WEBP_LIBS='-lwebp'
30016 LIBS="$WEBP_LIBS $LIBS"
30017
30018$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30019
30020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30021$as_echo "yes" >&6; }
30022 have_webp='yes'
30023 fi
30024 else
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30026$as_echo "no" >&6; }
30027 fi
30028fi
30029 if test "$have_webp" = 'yes'; then
30030 WEBP_DELEGATE_TRUE=
30031 WEBP_DELEGATE_FALSE='#'
30032else
30033 WEBP_DELEGATE_TRUE='#'
30034 WEBP_DELEGATE_FALSE=
30035fi
30036
30037
30038
30039
30040#
cristy3ed852e2009-09-05 21:47:34 +000030041# Set Windows font directory.
30042#
30043
30044# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030045if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030046 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30047else
30048 with_windows_font_dir=''
30049fi
30050
30051if test "$with_windows_font_dir" != '' ; then
30052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30053fi
30054
30055
30056#
30057# Check for WMF delegate library.
30058#
30059
30060# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030061if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030062 withval=$with_wmf; with_wmf=$withval
30063else
cristy8d63d1d2010-01-06 20:38:37 +000030064 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030065fi
30066
30067
30068if test "$with_wmf" != 'yes'; then
30069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30070fi
30071
30072have_wmf='no'
30073WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030074if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030076$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030078$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030080$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000030081 failed=0
30082 passed=0
30083 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030084if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030085 passed=`expr $passed + 1`
30086else
30087 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030088fi
30089
30090
cristy735e8942010-04-02 20:32:57 +000030091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30092$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030093if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030094 $as_echo_n "(cached) " >&6
30095else
30096 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000030097LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030099/* end confdefs.h. */
30100
30101/* Override any GCC internal prototype to avoid an error.
30102 Use char because int might match the return type of a GCC
30103 builtin and then its argument prototype would still apply. */
30104#ifdef __cplusplus
30105extern "C"
30106#endif
cristy735e8942010-04-02 20:32:57 +000030107char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030108int
30109main ()
30110{
cristy735e8942010-04-02 20:32:57 +000030111return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030112 ;
30113 return 0;
30114}
30115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030116if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030117 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030118else
cristy735e8942010-04-02 20:32:57 +000030119 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030120fi
cristy8b350f62009-11-15 23:12:43 +000030121rm -f core conftest.err conftest.$ac_objext \
30122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030123LIBS=$ac_check_lib_save_LIBS
30124fi
cristy735e8942010-04-02 20:32:57 +000030125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30126$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030127if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030128 passed=`expr $passed + 1`
30129else
30130 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030131fi
30132
cristy735e8942010-04-02 20:32:57 +000030133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30134$as_echo_n "checking if WMF package is complete... " >&6; }
30135 if test $passed -gt 0; then
30136 if test $failed -gt 0; then
30137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30138$as_echo "no -- some components failed test" >&6; }
30139 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030140 else
cristy735e8942010-04-02 20:32:57 +000030141 WMF_LIBS='-lwmf -lwmflite'
30142 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030143
cristy8b350f62009-11-15 23:12:43 +000030144$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030145
cristy735e8942010-04-02 20:32:57 +000030146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030147$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030148 have_wmf='yes'
30149 fi
cristy3ed852e2009-09-05 21:47:34 +000030150 else
cristy8b350f62009-11-15 23:12:43 +000030151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030152$as_echo "no" >&6; }
30153 fi
30154fi
cristy73bd4a52010-10-05 11:24:23 +000030155 if test "$have_wmf" = 'yes'; then
30156 WMF_DELEGATE_TRUE=
30157 WMF_DELEGATE_FALSE='#'
30158else
30159 WMF_DELEGATE_TRUE='#'
30160 WMF_DELEGATE_FALSE=
30161fi
30162
cristy3ed852e2009-09-05 21:47:34 +000030163
30164
30165
30166
cristy735e8942010-04-02 20:32:57 +000030167
cristy3ed852e2009-09-05 21:47:34 +000030168#
30169# Check for XML delegate library.
30170#
30171
30172# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030173if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030174 withval=$with_xml; with_xml=$withval
30175else
30176 with_xml=$have_x
30177fi
30178
30179
30180if test "$with_xml" != 'yes' ; then
30181 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30182fi
30183
30184have_xml='no'
30185XML_LIBS=''
30186if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030188$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo "" >&6; }
30193 PERSIST_LDFLAGS=$LDFLAGS
30194 PERSIST_CPPFLAGS=$CPPFLAGS
30195 xml2_config=''
30196 for ac_prog in xml2-config
30197do
30198 # Extract the first word of "$ac_prog", so it can be a program name with args.
30199set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030202if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030203 $as_echo_n "(cached) " >&6
30204else
30205 if test -n "$xml2_config"; then
30206 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30207else
30208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30209for as_dir in $PATH
30210do
30211 IFS=$as_save_IFS
30212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30215 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030217 break 2
30218 fi
30219done
cristy8b350f62009-11-15 23:12:43 +000030220 done
cristy3ed852e2009-09-05 21:47:34 +000030221IFS=$as_save_IFS
30222
30223fi
30224fi
30225xml2_config=$ac_cv_prog_xml2_config
30226if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030228$as_echo "$xml2_config" >&6; }
30229else
cristy8b350f62009-11-15 23:12:43 +000030230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030231$as_echo "no" >&6; }
30232fi
30233
30234
30235 test -n "$xml2_config" && break
30236done
30237 if test -n "$xml2_config"; then
30238 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30239 # the shared library installed under /usr/lib, whereas the package
30240 # installs itself under $prefix/libxml and $prefix/lib.
30241 xml2_prefix=`xml2-config --prefix`
30242 if test -d "${xml2_prefix}/include/libxml2"; then
30243 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30244 fi
30245 if test "${xml2_prefix}" != '/usr'; then
30246 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30247 fi
30248 fi
30249 failed=0
30250 passed=0
cristy8b350f62009-11-15 23:12:43 +000030251 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030252if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030253 passed=`expr $passed + 1`
30254else
30255 failed=`expr $failed + 1`
30256fi
30257
30258
cristy8b350f62009-11-15 23:12:43 +000030259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030261if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030262 $as_echo_n "(cached) " >&6
30263else
30264 ac_check_lib_save_LIBS=$LIBS
30265LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030267/* end confdefs.h. */
30268
30269/* Override any GCC internal prototype to avoid an error.
30270 Use char because int might match the return type of a GCC
30271 builtin and then its argument prototype would still apply. */
30272#ifdef __cplusplus
30273extern "C"
30274#endif
30275char xmlParseExternalEntity ();
30276int
30277main ()
30278{
30279return xmlParseExternalEntity ();
30280 ;
30281 return 0;
30282}
30283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030285 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30286else
cristy8b350f62009-11-15 23:12:43 +000030287 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030288fi
cristy8b350f62009-11-15 23:12:43 +000030289rm -f core conftest.err conftest.$ac_objext \
30290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030291LIBS=$ac_check_lib_save_LIBS
30292fi
cristy8b350f62009-11-15 23:12:43 +000030293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030295if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030296 passed=`expr $passed + 1`
30297else
30298 failed=`expr $failed + 1`
30299fi
30300
cristy8b350f62009-11-15 23:12:43 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030302$as_echo_n "checking if XML package is complete... " >&6; }
30303 if test $passed -gt 0; then
30304 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030306$as_echo "no -- some components failed test" >&6; }
30307 have_xml='no (failed tests)'
30308 LDFLAGS="$PERSIST_LDFLAGS"
30309 CPPFLAGS="$PERSIST_CPPFLAGS"
30310 else
30311 XML_LIBS='-lxml2'
30312 LIBS="$XML_LIBS $LIBS"
30313
cristy8b350f62009-11-15 23:12:43 +000030314$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030315
cristy8b350f62009-11-15 23:12:43 +000030316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030317$as_echo "yes" >&6; }
30318 have_xml='yes'
30319 fi
30320 else
cristy8b350f62009-11-15 23:12:43 +000030321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030322$as_echo "no" >&6; }
30323 fi
30324fi
cristy73bd4a52010-10-05 11:24:23 +000030325 if test "$have_xml" = 'yes'; then
30326 XML_DELEGATE_TRUE=
30327 XML_DELEGATE_FALSE='#'
30328else
30329 XML_DELEGATE_TRUE='#'
30330 XML_DELEGATE_FALSE=
30331fi
30332
cristy3ed852e2009-09-05 21:47:34 +000030333
30334
30335
30336# Substitute compiler name to build/link PerlMagick
30337#
30338
30339
30340#
30341# Configure install Paths
30342#
30343
30344# Subdirectory under lib to place ImageMagick lib files
30345LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30346
30347cat >>confdefs.h <<_ACEOF
30348#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30349_ACEOF
30350
30351
30352# Path to ImageMagick bin directory
30353EXECUTABLE_PATH="${BIN_DIR}"
30354DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30355case "${build_os}" in
30356 mingw* )
30357 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30358 ;;
30359esac
30360
30361cat >>confdefs.h <<_ACEOF
30362#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30363_ACEOF
30364
30365
30366
30367# Path to ImageMagick lib
30368LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30369DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30370case "${build_os}" in
30371 mingw* )
30372 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30373 ;;
30374esac
30375
30376cat >>confdefs.h <<_ACEOF
30377#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30378_ACEOF
30379
30380
30381
cristy3ed852e2009-09-05 21:47:34 +000030382#
30383# Subdirectory under lib to place ImageMagick coder module files
30384CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30385
30386cat >>confdefs.h <<_ACEOF
30387#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30388_ACEOF
30389
30390CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30391DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30392case "${build_os}" in
30393 mingw* )
30394 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30395 ;;
30396esac
30397
30398cat >>confdefs.h <<_ACEOF
30399#define CODER_PATH "$DEFINE_CODER_PATH"
30400_ACEOF
30401
30402
30403
30404#
30405# Subdirectory under lib to place ImageMagick filter module files
30406FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30407
30408cat >>confdefs.h <<_ACEOF
30409#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30410_ACEOF
30411
30412FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30413DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30414case "${build_os}" in
30415 mingw* )
30416 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30417 ;;
30418esac
30419
30420cat >>confdefs.h <<_ACEOF
30421#define FILTER_PATH "$DEFINE_FILTER_PATH"
30422_ACEOF
30423
30424
30425
30426#
30427# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000030428DOCUMENTATION_RELATIVE_PATH=""
30429DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
30430DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030431case "${build_os}" in
30432 mingw* )
30433 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30434 ;;
30435esac
30436
30437cat >>confdefs.h <<_ACEOF
30438#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30439_ACEOF
30440
30441
30442
30443#
30444# Path to ImageMagick share files
30445SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30446SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30447DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
30448case "${build_os}" in
30449 mingw* )
30450 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
30451 ;;
30452esac
30453
30454cat >>confdefs.h <<_ACEOF
30455#define SHARE_PATH "$DEFINE_SHARE_PATH"
30456_ACEOF
30457
30458
30459
cristy3cf8a722011-03-20 23:32:22 +000030460# Subdirectory to place ImageMagick configuration files
cristy45dbd322011-03-27 16:40:38 +000030461CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
30462
30463cat >>confdefs.h <<_ACEOF
30464#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30465_ACEOF
30466
30467CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30468DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30469case "${build_os}" in
30470 mingw* )
30471 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30472 ;;
30473esac
30474
30475cat >>confdefs.h <<_ACEOF
30476#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30477_ACEOF
30478
30479
30480
30481# Subdirectory to place ImageMagick configuration files
cristy3cf8a722011-03-20 23:32:22 +000030482SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000030483
30484cat >>confdefs.h <<_ACEOF
30485#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
30486_ACEOF
30487
cristy45dbd322011-03-27 16:40:38 +000030488SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
30489DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030490case "${build_os}" in
30491 mingw* )
30492 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
30493 ;;
30494esac
30495
30496cat >>confdefs.h <<_ACEOF
30497#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
30498_ACEOF
30499
30500
30501
30502#
30503# program_transform_name is formed for use in a Makefile, so create a
30504# modified version for use in a shell script.
30505configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30506
30507# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030511$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030513$as_echo "" >&6; }
30514AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030515BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030516BZIPDelegateDefault='bzip2'
30517BrowseDelegateDefault='xdg-open'
30518CGMDecodeDelegateDefault='ralcgm'
30519CatDelegateDefault='cat'
30520DNGDecodeDelegateDefault='ufraw-batch'
30521GVCDecodeDelegateDefault='dot'
30522DVIDecodeDelegateDefault='dvips'
30523EchoDelegateDefault='echo'
30524EditorDelegateDefault='xterm'
30525FIGDecodeDelegateDefault='fig2dev'
30526ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30527DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30528MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30529GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000030530HPGLDecodeDelegateDefault='hp2xx'
30531HTMLDecodeDelegateDefault='html2ps'
30532ILBMDecodeDelegateDefault='ilbmtoppm'
30533ILBMEncodeDelegateDefault='ppmtoilbm'
30534LPDelegateDefault='lp'
30535LPRDelegateDefault='lpr'
30536LZWDecodeDelegateDefault='uncompress'
30537LZWEncodeDelegateDefault='compress'
30538LaunchDelegateDefault='gimp'
30539MANDelegateDefault='groff'
30540MPEGDecodeDelegateDefault='ffmpeg'
30541MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030542MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030543MVDelegateDefault='mv'
30544PCLDelegateDefault='pcl6'
30545PGPDecodeDelegateDefault='pgpv'
30546POVDelegateDefault='povray'
30547if test "$native_win32_build" = 'yes'; then
30548 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030549elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030550 PSDelegateDefault='gsc'
30551else
30552 PSDelegateDefault='gs'
30553fi
30554RLEEncodeDelegateDefault='rawtorle'
30555RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030556RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030557SCANDecodeDelegateDefault='scanimage'
30558TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030559UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000030560WMFDecodeDelegateDefault='wmf2eps'
30561WWWDecodeDelegateDefault='curl'
30562XPSDelegateDefault='gxps'
30563ZipDelegateDefault='gzip'
30564
30565# Search for delegates
30566# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30567set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030570if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030571 $as_echo_n "(cached) " >&6
30572else
30573 case $AutotraceDecodeDelegate in
30574 [\\/]* | ?:[\\/]*)
30575 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30576 ;;
30577 *)
30578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30579for as_dir in $PATH
30580do
30581 IFS=$as_save_IFS
30582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30585 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030587 break 2
30588 fi
30589done
cristy8b350f62009-11-15 23:12:43 +000030590 done
cristy3ed852e2009-09-05 21:47:34 +000030591IFS=$as_save_IFS
30592
30593 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30594 ;;
30595esac
30596fi
30597AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30598if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030600$as_echo "$AutotraceDecodeDelegate" >&6; }
30601else
cristy8b350f62009-11-15 23:12:43 +000030602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030603$as_echo "no" >&6; }
30604fi
30605
30606
cristy3ed852e2009-09-05 21:47:34 +000030607# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30608set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030610$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030611if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030612 $as_echo_n "(cached) " >&6
30613else
30614 case $BlenderDecodeDelegate in
30615 [\\/]* | ?:[\\/]*)
30616 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30617 ;;
30618 *)
30619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30620for as_dir in $PATH
30621do
30622 IFS=$as_save_IFS
30623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30626 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030628 break 2
30629 fi
30630done
cristy8b350f62009-11-15 23:12:43 +000030631 done
cristy3ed852e2009-09-05 21:47:34 +000030632IFS=$as_save_IFS
30633
30634 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30635 ;;
30636esac
30637fi
30638BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30639if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030641$as_echo "$BlenderDecodeDelegate" >&6; }
30642else
cristy8b350f62009-11-15 23:12:43 +000030643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030644$as_echo "no" >&6; }
30645fi
30646
30647
30648# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30649set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030651$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030652if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030653 $as_echo_n "(cached) " >&6
30654else
30655 case $BZIPDelegate in
30656 [\\/]* | ?:[\\/]*)
30657 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30658 ;;
30659 *)
30660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30661for as_dir in $PATH
30662do
30663 IFS=$as_save_IFS
30664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30667 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030669 break 2
30670 fi
30671done
cristy8b350f62009-11-15 23:12:43 +000030672 done
cristy3ed852e2009-09-05 21:47:34 +000030673IFS=$as_save_IFS
30674
30675 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30676 ;;
30677esac
30678fi
30679BZIPDelegate=$ac_cv_path_BZIPDelegate
30680if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030682$as_echo "$BZIPDelegate" >&6; }
30683else
cristy8b350f62009-11-15 23:12:43 +000030684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030685$as_echo "no" >&6; }
30686fi
30687
30688
30689# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30690set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030693if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030694 $as_echo_n "(cached) " >&6
30695else
30696 case $BrowseDelegate in
30697 [\\/]* | ?:[\\/]*)
30698 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30699 ;;
30700 *)
30701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30702for as_dir in $PATH
30703do
30704 IFS=$as_save_IFS
30705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30708 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030710 break 2
30711 fi
30712done
cristy8b350f62009-11-15 23:12:43 +000030713 done
cristy3ed852e2009-09-05 21:47:34 +000030714IFS=$as_save_IFS
30715
30716 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30717 ;;
30718esac
30719fi
30720BrowseDelegate=$ac_cv_path_BrowseDelegate
30721if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030723$as_echo "$BrowseDelegate" >&6; }
30724else
cristy8b350f62009-11-15 23:12:43 +000030725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030726$as_echo "no" >&6; }
30727fi
30728
30729
30730# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30731set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030734if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030735 $as_echo_n "(cached) " >&6
30736else
30737 case $CGMDecodeDelegate in
30738 [\\/]* | ?:[\\/]*)
30739 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30740 ;;
30741 *)
30742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30743for as_dir in $PATH
30744do
30745 IFS=$as_save_IFS
30746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30749 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030751 break 2
30752 fi
30753done
cristy8b350f62009-11-15 23:12:43 +000030754 done
cristy3ed852e2009-09-05 21:47:34 +000030755IFS=$as_save_IFS
30756
30757 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30758 ;;
30759esac
30760fi
30761CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30762if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030764$as_echo "$CGMDecodeDelegate" >&6; }
30765else
cristy8b350f62009-11-15 23:12:43 +000030766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030767$as_echo "no" >&6; }
30768fi
30769
30770
30771# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30772set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030775if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030776 $as_echo_n "(cached) " >&6
30777else
30778 case $CatDelegate in
30779 [\\/]* | ?:[\\/]*)
30780 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30781 ;;
30782 *)
30783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30784for as_dir in $PATH
30785do
30786 IFS=$as_save_IFS
30787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30790 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030792 break 2
30793 fi
30794done
cristy8b350f62009-11-15 23:12:43 +000030795 done
cristy3ed852e2009-09-05 21:47:34 +000030796IFS=$as_save_IFS
30797
30798 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30799 ;;
30800esac
30801fi
30802CatDelegate=$ac_cv_path_CatDelegate
30803if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030805$as_echo "$CatDelegate" >&6; }
30806else
cristy8b350f62009-11-15 23:12:43 +000030807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030808$as_echo "no" >&6; }
30809fi
30810
30811
30812# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30813set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030816if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030817 $as_echo_n "(cached) " >&6
30818else
30819 case $DNGDecodeDelegate in
30820 [\\/]* | ?:[\\/]*)
30821 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30822 ;;
30823 *)
30824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30825for as_dir in $PATH
30826do
30827 IFS=$as_save_IFS
30828 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30831 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030833 break 2
30834 fi
30835done
cristy8b350f62009-11-15 23:12:43 +000030836 done
cristy3ed852e2009-09-05 21:47:34 +000030837IFS=$as_save_IFS
30838
30839 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30840 ;;
30841esac
30842fi
30843DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30844if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030846$as_echo "$DNGDecodeDelegate" >&6; }
30847else
cristy8b350f62009-11-15 23:12:43 +000030848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030849$as_echo "no" >&6; }
30850fi
30851
30852
30853# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30854set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030857if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030858 $as_echo_n "(cached) " >&6
30859else
30860 case $GVCDecodeDelegate in
30861 [\\/]* | ?:[\\/]*)
30862 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30863 ;;
30864 *)
30865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30866for as_dir in $PATH
30867do
30868 IFS=$as_save_IFS
30869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30872 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030874 break 2
30875 fi
30876done
cristy8b350f62009-11-15 23:12:43 +000030877 done
cristy3ed852e2009-09-05 21:47:34 +000030878IFS=$as_save_IFS
30879
30880 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30881 ;;
30882esac
30883fi
30884GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30885if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030887$as_echo "$GVCDecodeDelegate" >&6; }
30888else
cristy8b350f62009-11-15 23:12:43 +000030889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030890$as_echo "no" >&6; }
30891fi
30892
30893
30894# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30895set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030897$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030898if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030899 $as_echo_n "(cached) " >&6
30900else
30901 case $DVIDecodeDelegate in
30902 [\\/]* | ?:[\\/]*)
30903 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30904 ;;
30905 *)
30906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30907for as_dir in $PATH
30908do
30909 IFS=$as_save_IFS
30910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30913 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030915 break 2
30916 fi
30917done
cristy8b350f62009-11-15 23:12:43 +000030918 done
cristy3ed852e2009-09-05 21:47:34 +000030919IFS=$as_save_IFS
30920
30921 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30922 ;;
30923esac
30924fi
30925DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30926if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030928$as_echo "$DVIDecodeDelegate" >&6; }
30929else
cristy8b350f62009-11-15 23:12:43 +000030930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030931$as_echo "no" >&6; }
30932fi
30933
30934
30935# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30936set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030939if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030940 $as_echo_n "(cached) " >&6
30941else
30942 case $EchoDelegate in
30943 [\\/]* | ?:[\\/]*)
30944 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30945 ;;
30946 *)
30947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30948for as_dir in $PATH
30949do
30950 IFS=$as_save_IFS
30951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30954 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030956 break 2
30957 fi
30958done
cristy8b350f62009-11-15 23:12:43 +000030959 done
cristy3ed852e2009-09-05 21:47:34 +000030960IFS=$as_save_IFS
30961
30962 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30963 ;;
30964esac
30965fi
30966EchoDelegate=$ac_cv_path_EchoDelegate
30967if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030969$as_echo "$EchoDelegate" >&6; }
30970else
cristy8b350f62009-11-15 23:12:43 +000030971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030972$as_echo "no" >&6; }
30973fi
30974
30975
30976# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30977set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030980if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030981 $as_echo_n "(cached) " >&6
30982else
30983 case $EditorDelegate in
30984 [\\/]* | ?:[\\/]*)
30985 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30986 ;;
30987 *)
30988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30989for as_dir in $PATH
30990do
30991 IFS=$as_save_IFS
30992 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30995 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030997 break 2
30998 fi
30999done
cristy8b350f62009-11-15 23:12:43 +000031000 done
cristy3ed852e2009-09-05 21:47:34 +000031001IFS=$as_save_IFS
31002
31003 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31004 ;;
31005esac
31006fi
31007EditorDelegate=$ac_cv_path_EditorDelegate
31008if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031010$as_echo "$EditorDelegate" >&6; }
31011else
cristy8b350f62009-11-15 23:12:43 +000031012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031013$as_echo "no" >&6; }
31014fi
31015
31016
31017# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31018set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031021if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031022 $as_echo_n "(cached) " >&6
31023else
31024 case $FIGDecodeDelegate in
31025 [\\/]* | ?:[\\/]*)
31026 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31027 ;;
31028 *)
31029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31030for as_dir in $PATH
31031do
31032 IFS=$as_save_IFS
31033 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31036 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031038 break 2
31039 fi
31040done
cristy8b350f62009-11-15 23:12:43 +000031041 done
cristy3ed852e2009-09-05 21:47:34 +000031042IFS=$as_save_IFS
31043
31044 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31045 ;;
31046esac
31047fi
31048FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31049if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031051$as_echo "$FIGDecodeDelegate" >&6; }
31052else
cristy8b350f62009-11-15 23:12:43 +000031053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031054$as_echo "no" >&6; }
31055fi
31056
31057
31058# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31059set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031061$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031062if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031063 $as_echo_n "(cached) " >&6
31064else
31065 case $ConvertDelegate in
31066 [\\/]* | ?:[\\/]*)
31067 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31068 ;;
31069 *)
31070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31071for as_dir in $PATH
31072do
31073 IFS=$as_save_IFS
31074 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031075 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31077 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031079 break 2
31080 fi
31081done
cristy8b350f62009-11-15 23:12:43 +000031082 done
cristy3ed852e2009-09-05 21:47:34 +000031083IFS=$as_save_IFS
31084
31085 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31086 ;;
31087esac
31088fi
31089ConvertDelegate=$ac_cv_path_ConvertDelegate
31090if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031092$as_echo "$ConvertDelegate" >&6; }
31093else
cristy8b350f62009-11-15 23:12:43 +000031094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031095$as_echo "no" >&6; }
31096fi
31097
31098
31099# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31100set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031102$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031103if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031104 $as_echo_n "(cached) " >&6
31105else
31106 case $DisplayDelegate in
31107 [\\/]* | ?:[\\/]*)
31108 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31109 ;;
31110 *)
31111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31112for as_dir in $PATH
31113do
31114 IFS=$as_save_IFS
31115 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031116 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31118 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031120 break 2
31121 fi
31122done
cristy8b350f62009-11-15 23:12:43 +000031123 done
cristy3ed852e2009-09-05 21:47:34 +000031124IFS=$as_save_IFS
31125
31126 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31127 ;;
31128esac
31129fi
31130DisplayDelegate=$ac_cv_path_DisplayDelegate
31131if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031133$as_echo "$DisplayDelegate" >&6; }
31134else
cristy8b350f62009-11-15 23:12:43 +000031135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031136$as_echo "no" >&6; }
31137fi
31138
31139
31140# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31141set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031144if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031145 $as_echo_n "(cached) " >&6
31146else
31147 case $MogrifyDelegate in
31148 [\\/]* | ?:[\\/]*)
31149 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31150 ;;
31151 *)
31152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31153for as_dir in $PATH
31154do
31155 IFS=$as_save_IFS
31156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31159 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031161 break 2
31162 fi
31163done
cristy8b350f62009-11-15 23:12:43 +000031164 done
cristy3ed852e2009-09-05 21:47:34 +000031165IFS=$as_save_IFS
31166
31167 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31168 ;;
31169esac
31170fi
31171MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31172if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031174$as_echo "$MogrifyDelegate" >&6; }
31175else
cristy8b350f62009-11-15 23:12:43 +000031176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031177$as_echo "no" >&6; }
31178fi
31179
31180
31181# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31182set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031185if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031186 $as_echo_n "(cached) " >&6
31187else
31188 case $GnuplotDecodeDelegate in
31189 [\\/]* | ?:[\\/]*)
31190 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31191 ;;
31192 *)
31193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31194for as_dir in $PATH
31195do
31196 IFS=$as_save_IFS
31197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31200 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031202 break 2
31203 fi
31204done
cristy8b350f62009-11-15 23:12:43 +000031205 done
cristy3ed852e2009-09-05 21:47:34 +000031206IFS=$as_save_IFS
31207
31208 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31209 ;;
31210esac
31211fi
31212GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31213if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031215$as_echo "$GnuplotDecodeDelegate" >&6; }
31216else
cristy8b350f62009-11-15 23:12:43 +000031217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031218$as_echo "no" >&6; }
31219fi
31220
31221
cristy3ed852e2009-09-05 21:47:34 +000031222# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31223set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031226if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031227 $as_echo_n "(cached) " >&6
31228else
31229 case $HPGLDecodeDelegate in
31230 [\\/]* | ?:[\\/]*)
31231 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31232 ;;
31233 *)
31234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31235for as_dir in $PATH
31236do
31237 IFS=$as_save_IFS
31238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31241 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031243 break 2
31244 fi
31245done
cristy8b350f62009-11-15 23:12:43 +000031246 done
cristy3ed852e2009-09-05 21:47:34 +000031247IFS=$as_save_IFS
31248
31249 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31250 ;;
31251esac
31252fi
31253HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31254if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031256$as_echo "$HPGLDecodeDelegate" >&6; }
31257else
cristy8b350f62009-11-15 23:12:43 +000031258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031259$as_echo "no" >&6; }
31260fi
31261
31262
31263# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31264set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031267if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031268 $as_echo_n "(cached) " >&6
31269else
31270 case $HTMLDecodeDelegate in
31271 [\\/]* | ?:[\\/]*)
31272 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31273 ;;
31274 *)
31275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31276for as_dir in $PATH
31277do
31278 IFS=$as_save_IFS
31279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031280 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31282 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031284 break 2
31285 fi
31286done
cristy8b350f62009-11-15 23:12:43 +000031287 done
cristy3ed852e2009-09-05 21:47:34 +000031288IFS=$as_save_IFS
31289
31290 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31291 ;;
31292esac
31293fi
31294HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31295if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031297$as_echo "$HTMLDecodeDelegate" >&6; }
31298else
cristy8b350f62009-11-15 23:12:43 +000031299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031300$as_echo "no" >&6; }
31301fi
31302
31303
31304# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31305set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031307$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031308if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031309 $as_echo_n "(cached) " >&6
31310else
31311 case $ILBMDecodeDelegate in
31312 [\\/]* | ?:[\\/]*)
31313 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31314 ;;
31315 *)
31316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31317for as_dir in $PATH
31318do
31319 IFS=$as_save_IFS
31320 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031321 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31323 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031325 break 2
31326 fi
31327done
cristy8b350f62009-11-15 23:12:43 +000031328 done
cristy3ed852e2009-09-05 21:47:34 +000031329IFS=$as_save_IFS
31330
31331 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31332 ;;
31333esac
31334fi
31335ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31336if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031338$as_echo "$ILBMDecodeDelegate" >&6; }
31339else
cristy8b350f62009-11-15 23:12:43 +000031340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031341$as_echo "no" >&6; }
31342fi
31343
31344
31345# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31346set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031348$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031349if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031350 $as_echo_n "(cached) " >&6
31351else
31352 case $ILBMEncodeDelegate in
31353 [\\/]* | ?:[\\/]*)
31354 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31355 ;;
31356 *)
31357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31358for as_dir in $PATH
31359do
31360 IFS=$as_save_IFS
31361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31364 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031366 break 2
31367 fi
31368done
cristy8b350f62009-11-15 23:12:43 +000031369 done
cristy3ed852e2009-09-05 21:47:34 +000031370IFS=$as_save_IFS
31371
31372 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31373 ;;
31374esac
31375fi
31376ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31377if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031379$as_echo "$ILBMEncodeDelegate" >&6; }
31380else
cristy8b350f62009-11-15 23:12:43 +000031381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031382$as_echo "no" >&6; }
31383fi
31384
31385
31386# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31387set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031389$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031390if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031391 $as_echo_n "(cached) " >&6
31392else
31393 case $LPDelegate in
31394 [\\/]* | ?:[\\/]*)
31395 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31396 ;;
31397 *)
31398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31399for as_dir in $PATH
31400do
31401 IFS=$as_save_IFS
31402 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31405 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031407 break 2
31408 fi
31409done
cristy8b350f62009-11-15 23:12:43 +000031410 done
cristy3ed852e2009-09-05 21:47:34 +000031411IFS=$as_save_IFS
31412
31413 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31414 ;;
31415esac
31416fi
31417LPDelegate=$ac_cv_path_LPDelegate
31418if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031420$as_echo "$LPDelegate" >&6; }
31421else
cristy8b350f62009-11-15 23:12:43 +000031422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031423$as_echo "no" >&6; }
31424fi
31425
31426
31427# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31428set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031431if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031432 $as_echo_n "(cached) " >&6
31433else
31434 case $LPRDelegate in
31435 [\\/]* | ?:[\\/]*)
31436 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31437 ;;
31438 *)
31439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31440for as_dir in $PATH
31441do
31442 IFS=$as_save_IFS
31443 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031444 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31446 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031448 break 2
31449 fi
31450done
cristy8b350f62009-11-15 23:12:43 +000031451 done
cristy3ed852e2009-09-05 21:47:34 +000031452IFS=$as_save_IFS
31453
31454 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31455 ;;
31456esac
31457fi
31458LPRDelegate=$ac_cv_path_LPRDelegate
31459if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031461$as_echo "$LPRDelegate" >&6; }
31462else
cristy8b350f62009-11-15 23:12:43 +000031463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031464$as_echo "no" >&6; }
31465fi
31466
31467
31468# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31469set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031472if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031473 $as_echo_n "(cached) " >&6
31474else
31475 case $LZWDecodeDelegate in
31476 [\\/]* | ?:[\\/]*)
31477 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31478 ;;
31479 *)
31480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31481for as_dir in $PATH
31482do
31483 IFS=$as_save_IFS
31484 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31487 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031489 break 2
31490 fi
31491done
cristy8b350f62009-11-15 23:12:43 +000031492 done
cristy3ed852e2009-09-05 21:47:34 +000031493IFS=$as_save_IFS
31494
31495 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31496 ;;
31497esac
31498fi
31499LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31500if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031502$as_echo "$LZWDecodeDelegate" >&6; }
31503else
cristy8b350f62009-11-15 23:12:43 +000031504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031505$as_echo "no" >&6; }
31506fi
31507
31508
31509# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31510set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031513if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031514 $as_echo_n "(cached) " >&6
31515else
31516 case $LZWEncodeDelegate in
31517 [\\/]* | ?:[\\/]*)
31518 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31519 ;;
31520 *)
31521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31522for as_dir in $PATH
31523do
31524 IFS=$as_save_IFS
31525 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031526 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31528 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031530 break 2
31531 fi
31532done
cristy8b350f62009-11-15 23:12:43 +000031533 done
cristy3ed852e2009-09-05 21:47:34 +000031534IFS=$as_save_IFS
31535
31536 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31537 ;;
31538esac
31539fi
31540LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31541if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031543$as_echo "$LZWEncodeDelegate" >&6; }
31544else
cristy8b350f62009-11-15 23:12:43 +000031545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031546$as_echo "no" >&6; }
31547fi
31548
31549
31550# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31551set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031554if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031555 $as_echo_n "(cached) " >&6
31556else
31557 case $LaunchDelegate in
31558 [\\/]* | ?:[\\/]*)
31559 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31560 ;;
31561 *)
31562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31563for as_dir in $PATH
31564do
31565 IFS=$as_save_IFS
31566 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31569 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031571 break 2
31572 fi
31573done
cristy8b350f62009-11-15 23:12:43 +000031574 done
cristy3ed852e2009-09-05 21:47:34 +000031575IFS=$as_save_IFS
31576
31577 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31578 ;;
31579esac
31580fi
31581LaunchDelegate=$ac_cv_path_LaunchDelegate
31582if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031584$as_echo "$LaunchDelegate" >&6; }
31585else
cristy8b350f62009-11-15 23:12:43 +000031586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031587$as_echo "no" >&6; }
31588fi
31589
31590
31591# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31592set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031594$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031595if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031596 $as_echo_n "(cached) " >&6
31597else
31598 case $MANDelegate in
31599 [\\/]* | ?:[\\/]*)
31600 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31601 ;;
31602 *)
31603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31604for as_dir in $PATH
31605do
31606 IFS=$as_save_IFS
31607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31610 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031612 break 2
31613 fi
31614done
cristy8b350f62009-11-15 23:12:43 +000031615 done
cristy3ed852e2009-09-05 21:47:34 +000031616IFS=$as_save_IFS
31617
31618 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31619 ;;
31620esac
31621fi
31622MANDelegate=$ac_cv_path_MANDelegate
31623if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031625$as_echo "$MANDelegate" >&6; }
31626else
cristy8b350f62009-11-15 23:12:43 +000031627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031628$as_echo "no" >&6; }
31629fi
31630
31631
31632# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31633set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031635$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031636if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031637 $as_echo_n "(cached) " >&6
31638else
31639 case $MPEGDecodeDelegate in
31640 [\\/]* | ?:[\\/]*)
31641 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31642 ;;
31643 *)
31644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31645for as_dir in $PATH
31646do
31647 IFS=$as_save_IFS
31648 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031649 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31651 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031653 break 2
31654 fi
31655done
cristy8b350f62009-11-15 23:12:43 +000031656 done
cristy3ed852e2009-09-05 21:47:34 +000031657IFS=$as_save_IFS
31658
31659 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31660 ;;
31661esac
31662fi
31663MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31664if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031666$as_echo "$MPEGDecodeDelegate" >&6; }
31667else
cristy8b350f62009-11-15 23:12:43 +000031668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031669$as_echo "no" >&6; }
31670fi
31671
31672
31673# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31674set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031677if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031678 $as_echo_n "(cached) " >&6
31679else
31680 case $MPEGEncodeDelegate in
31681 [\\/]* | ?:[\\/]*)
31682 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31683 ;;
31684 *)
31685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31686for as_dir in $PATH
31687do
31688 IFS=$as_save_IFS
31689 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31692 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031694 break 2
31695 fi
31696done
cristy8b350f62009-11-15 23:12:43 +000031697 done
cristy3ed852e2009-09-05 21:47:34 +000031698IFS=$as_save_IFS
31699
31700 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31701 ;;
31702esac
31703fi
31704MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31705if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031707$as_echo "$MPEGEncodeDelegate" >&6; }
31708else
cristy8b350f62009-11-15 23:12:43 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031710$as_echo "no" >&6; }
31711fi
31712
31713
cristy935c86e2010-06-05 23:50:07 +000031714# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31715set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031718if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031719 $as_echo_n "(cached) " >&6
31720else
31721 case $MrSIDDecodeDelegate in
31722 [\\/]* | ?:[\\/]*)
31723 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31724 ;;
31725 *)
31726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31727for as_dir in $PATH
31728do
31729 IFS=$as_save_IFS
31730 test -z "$as_dir" && as_dir=.
31731 for ac_exec_ext in '' $ac_executable_extensions; do
31732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31733 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31735 break 2
31736 fi
31737done
31738 done
31739IFS=$as_save_IFS
31740
31741 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31742 ;;
31743esac
31744fi
31745MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31746if test -n "$MrSIDDecodeDelegate"; then
31747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31748$as_echo "$MrSIDDecodeDelegate" >&6; }
31749else
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31751$as_echo "no" >&6; }
31752fi
31753
31754
cristy3ed852e2009-09-05 21:47:34 +000031755# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31756set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031759if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031760 $as_echo_n "(cached) " >&6
31761else
31762 case $MVDelegate in
31763 [\\/]* | ?:[\\/]*)
31764 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31765 ;;
31766 *)
31767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31768for as_dir in $PATH
31769do
31770 IFS=$as_save_IFS
31771 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031772 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31774 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031776 break 2
31777 fi
31778done
cristy8b350f62009-11-15 23:12:43 +000031779 done
cristy3ed852e2009-09-05 21:47:34 +000031780IFS=$as_save_IFS
31781
31782 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31783 ;;
31784esac
31785fi
31786MVDelegate=$ac_cv_path_MVDelegate
31787if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031789$as_echo "$MVDelegate" >&6; }
31790else
cristy8b350f62009-11-15 23:12:43 +000031791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031792$as_echo "no" >&6; }
31793fi
31794
31795
31796# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31797set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031800if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031801 $as_echo_n "(cached) " >&6
31802else
31803 case $PCLDelegate in
31804 [\\/]* | ?:[\\/]*)
31805 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31806 ;;
31807 *)
31808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31809for as_dir in $PATH
31810do
31811 IFS=$as_save_IFS
31812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31815 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031817 break 2
31818 fi
31819done
cristy8b350f62009-11-15 23:12:43 +000031820 done
cristy3ed852e2009-09-05 21:47:34 +000031821IFS=$as_save_IFS
31822
31823 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31824 ;;
31825esac
31826fi
31827PCLDelegate=$ac_cv_path_PCLDelegate
31828if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031830$as_echo "$PCLDelegate" >&6; }
31831else
cristy8b350f62009-11-15 23:12:43 +000031832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031833$as_echo "no" >&6; }
31834fi
31835
31836
31837# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31838set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031841if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031842 $as_echo_n "(cached) " >&6
31843else
31844 case $PGPDecodeDelegate in
31845 [\\/]* | ?:[\\/]*)
31846 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31847 ;;
31848 *)
31849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31850for as_dir in $PATH
31851do
31852 IFS=$as_save_IFS
31853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31856 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031858 break 2
31859 fi
31860done
cristy8b350f62009-11-15 23:12:43 +000031861 done
cristy3ed852e2009-09-05 21:47:34 +000031862IFS=$as_save_IFS
31863
31864 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31865 ;;
31866esac
31867fi
31868PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31869if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031871$as_echo "$PGPDecodeDelegate" >&6; }
31872else
cristy8b350f62009-11-15 23:12:43 +000031873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo "no" >&6; }
31875fi
31876
31877
31878# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31879set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031882if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031883 $as_echo_n "(cached) " >&6
31884else
31885 case $POVDelegate in
31886 [\\/]* | ?:[\\/]*)
31887 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31888 ;;
31889 *)
31890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31891for as_dir in $PATH
31892do
31893 IFS=$as_save_IFS
31894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31897 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031899 break 2
31900 fi
31901done
cristy8b350f62009-11-15 23:12:43 +000031902 done
cristy3ed852e2009-09-05 21:47:34 +000031903IFS=$as_save_IFS
31904
31905 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31906 ;;
31907esac
31908fi
31909POVDelegate=$ac_cv_path_POVDelegate
31910if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912$as_echo "$POVDelegate" >&6; }
31913else
cristy8b350f62009-11-15 23:12:43 +000031914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031915$as_echo "no" >&6; }
31916fi
31917
31918
31919for ac_prog in gsx gsc "$PSDelegateDefault"
31920do
31921 # Extract the first word of "$ac_prog", so it can be a program name with args.
31922set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031925if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031926 $as_echo_n "(cached) " >&6
31927else
31928 case $PSDelegate in
31929 [\\/]* | ?:[\\/]*)
31930 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31931 ;;
31932 *)
31933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31934for as_dir in $PATH
31935do
31936 IFS=$as_save_IFS
31937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31940 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031942 break 2
31943 fi
31944done
cristy8b350f62009-11-15 23:12:43 +000031945 done
cristy3ed852e2009-09-05 21:47:34 +000031946IFS=$as_save_IFS
31947
31948 ;;
31949esac
31950fi
31951PSDelegate=$ac_cv_path_PSDelegate
31952if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo "$PSDelegate" >&6; }
31955else
cristy8b350f62009-11-15 23:12:43 +000031956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031957$as_echo "no" >&6; }
31958fi
31959
31960
31961 test -n "$PSDelegate" && break
31962done
31963test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31964
31965# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31966set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031969if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031970 $as_echo_n "(cached) " >&6
31971else
31972 case $RLEEncodeDelegate in
31973 [\\/]* | ?:[\\/]*)
31974 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31975 ;;
31976 *)
31977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31978for as_dir in $PATH
31979do
31980 IFS=$as_save_IFS
31981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31984 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031986 break 2
31987 fi
31988done
cristy8b350f62009-11-15 23:12:43 +000031989 done
cristy3ed852e2009-09-05 21:47:34 +000031990IFS=$as_save_IFS
31991
31992 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31993 ;;
31994esac
31995fi
31996RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31997if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031999$as_echo "$RLEEncodeDelegate" >&6; }
32000else
cristy8b350f62009-11-15 23:12:43 +000032001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032002$as_echo "no" >&6; }
32003fi
32004
32005
32006# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32007set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032010if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032011 $as_echo_n "(cached) " >&6
32012else
32013 case $RMDelegate in
32014 [\\/]* | ?:[\\/]*)
32015 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32016 ;;
32017 *)
32018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32019for as_dir in $PATH
32020do
32021 IFS=$as_save_IFS
32022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32025 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032027 break 2
32028 fi
32029done
cristy8b350f62009-11-15 23:12:43 +000032030 done
cristy3ed852e2009-09-05 21:47:34 +000032031IFS=$as_save_IFS
32032
32033 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32034 ;;
32035esac
32036fi
32037RMDelegate=$ac_cv_path_RMDelegate
32038if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032040$as_echo "$RMDelegate" >&6; }
32041else
cristy8b350f62009-11-15 23:12:43 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo "no" >&6; }
32044fi
32045
32046
cristy4689cf02010-02-17 21:15:45 +000032047# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32048set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032051if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032052 $as_echo_n "(cached) " >&6
32053else
32054 case $RSVGDecodeDelegate in
32055 [\\/]* | ?:[\\/]*)
32056 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32057 ;;
32058 *)
32059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32060for as_dir in $PATH
32061do
32062 IFS=$as_save_IFS
32063 test -z "$as_dir" && as_dir=.
32064 for ac_exec_ext in '' $ac_executable_extensions; do
32065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32066 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32068 break 2
32069 fi
32070done
32071 done
32072IFS=$as_save_IFS
32073
32074 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32075 ;;
32076esac
32077fi
32078RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32079if test -n "$RSVGDecodeDelegate"; then
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32081$as_echo "$RSVGDecodeDelegate" >&6; }
32082else
32083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32084$as_echo "no" >&6; }
32085fi
32086
32087
cristy3ed852e2009-09-05 21:47:34 +000032088# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32089set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032092if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032093 $as_echo_n "(cached) " >&6
32094else
32095 case $SCANDecodeDelegate in
32096 [\\/]* | ?:[\\/]*)
32097 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32098 ;;
32099 *)
32100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32101for as_dir in $PATH
32102do
32103 IFS=$as_save_IFS
32104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32107 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032109 break 2
32110 fi
32111done
cristy8b350f62009-11-15 23:12:43 +000032112 done
cristy3ed852e2009-09-05 21:47:34 +000032113IFS=$as_save_IFS
32114
32115 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32116 ;;
32117esac
32118fi
32119SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32120if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032122$as_echo "$SCANDecodeDelegate" >&6; }
32123else
cristy8b350f62009-11-15 23:12:43 +000032124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032125$as_echo "no" >&6; }
32126fi
32127
32128
32129# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32130set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032132$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032133if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032134 $as_echo_n "(cached) " >&6
32135else
32136 case $TXTDelegate in
32137 [\\/]* | ?:[\\/]*)
32138 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32139 ;;
32140 *)
32141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32142for as_dir in $PATH
32143do
32144 IFS=$as_save_IFS
32145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32148 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150 break 2
32151 fi
32152done
cristy8b350f62009-11-15 23:12:43 +000032153 done
cristy3ed852e2009-09-05 21:47:34 +000032154IFS=$as_save_IFS
32155
32156 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32157 ;;
32158esac
32159fi
32160TXTDelegate=$ac_cv_path_TXTDelegate
32161if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032163$as_echo "$TXTDelegate" >&6; }
32164else
cristy8b350f62009-11-15 23:12:43 +000032165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032166$as_echo "no" >&6; }
32167fi
32168
32169
cristy5ac9ac82010-07-29 13:24:24 +000032170# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32171set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032174if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032175 $as_echo_n "(cached) " >&6
32176else
32177 case $UniconvertorDelegate in
32178 [\\/]* | ?:[\\/]*)
32179 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32180 ;;
32181 *)
32182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32183for as_dir in $PATH
32184do
32185 IFS=$as_save_IFS
32186 test -z "$as_dir" && as_dir=.
32187 for ac_exec_ext in '' $ac_executable_extensions; do
32188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32189 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32191 break 2
32192 fi
32193done
32194 done
32195IFS=$as_save_IFS
32196
32197 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32198 ;;
32199esac
32200fi
32201UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32202if test -n "$UniconvertorDelegate"; then
32203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32204$as_echo "$UniconvertorDelegate" >&6; }
32205else
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32207$as_echo "no" >&6; }
32208fi
32209
32210
cristy3ed852e2009-09-05 21:47:34 +000032211# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32212set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032215if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032216 $as_echo_n "(cached) " >&6
32217else
32218 case $WMFDecodeDelegate in
32219 [\\/]* | ?:[\\/]*)
32220 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32221 ;;
32222 *)
32223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32224for as_dir in $PATH
32225do
32226 IFS=$as_save_IFS
32227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32230 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032232 break 2
32233 fi
32234done
cristy8b350f62009-11-15 23:12:43 +000032235 done
cristy3ed852e2009-09-05 21:47:34 +000032236IFS=$as_save_IFS
32237
32238 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32239 ;;
32240esac
32241fi
32242WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32243if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032245$as_echo "$WMFDecodeDelegate" >&6; }
32246else
cristy8b350f62009-11-15 23:12:43 +000032247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032248$as_echo "no" >&6; }
32249fi
32250
32251
32252# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32253set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032255$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032256if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032257 $as_echo_n "(cached) " >&6
32258else
32259 case $WWWDecodeDelegate in
32260 [\\/]* | ?:[\\/]*)
32261 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32262 ;;
32263 *)
32264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32265for as_dir in $PATH
32266do
32267 IFS=$as_save_IFS
32268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32271 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032273 break 2
32274 fi
32275done
cristy8b350f62009-11-15 23:12:43 +000032276 done
cristy3ed852e2009-09-05 21:47:34 +000032277IFS=$as_save_IFS
32278
32279 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32280 ;;
32281esac
32282fi
32283WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32284if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032286$as_echo "$WWWDecodeDelegate" >&6; }
32287else
cristy8b350f62009-11-15 23:12:43 +000032288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032289$as_echo "no" >&6; }
32290fi
32291
32292
32293# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32294set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032297if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032298 $as_echo_n "(cached) " >&6
32299else
32300 case $XPSDelegate in
32301 [\\/]* | ?:[\\/]*)
32302 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32303 ;;
32304 *)
32305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32306for as_dir in $PATH
32307do
32308 IFS=$as_save_IFS
32309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32312 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032314 break 2
32315 fi
32316done
cristy8b350f62009-11-15 23:12:43 +000032317 done
cristy3ed852e2009-09-05 21:47:34 +000032318IFS=$as_save_IFS
32319
32320 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32321 ;;
32322esac
32323fi
32324XPSDelegate=$ac_cv_path_XPSDelegate
32325if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032327$as_echo "$XPSDelegate" >&6; }
32328else
cristy8b350f62009-11-15 23:12:43 +000032329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032330$as_echo "no" >&6; }
32331fi
32332
32333
32334# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32335set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032337$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032338if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032339 $as_echo_n "(cached) " >&6
32340else
32341 case $ZipDelegate in
32342 [\\/]* | ?:[\\/]*)
32343 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32344 ;;
32345 *)
32346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32347for as_dir in $PATH
32348do
32349 IFS=$as_save_IFS
32350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32353 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032355 break 2
32356 fi
32357done
cristy8b350f62009-11-15 23:12:43 +000032358 done
cristy3ed852e2009-09-05 21:47:34 +000032359IFS=$as_save_IFS
32360
32361 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32362 ;;
32363esac
32364fi
32365ZipDelegate=$ac_cv_path_ZipDelegate
32366if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032368$as_echo "$ZipDelegate" >&6; }
32369else
cristy8b350f62009-11-15 23:12:43 +000032370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032371$as_echo "no" >&6; }
32372fi
32373
32374
32375
32376# Prefer lpr to lp; lp needs options tacked on.
32377if test "$LPRDelegate" != no; then
32378 PrintDelegate="$LPRDelegate"
32379else
32380 PrintDelegate="$LPDelegate -c -s"
32381fi
32382
32383
32384# Installed ImageMagick utiltity paths
32385ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32386DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32387MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32388
32389# Set delegate booleans
32390have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32391have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32392have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32393have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32394have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032395have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032396have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32397have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032398have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32399have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32400
32401#
32402# Test for font directories
32403#
32404type_include_files=''
32405
cristy430a7312010-01-21 20:44:04 +000032406# Dejavu fonts.
32407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32408$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32409dejavu_font_dir=''
32410if test "${with_dejavu_font_dir}" != 'default'; then
32411 dejavu_font_dir="${with_dejavu_font_dir}/"
32412else
32413 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32414 if test -f "${font_dir}DejaVuSerif.ttf"; then
32415 dejavu_font_dir="${font_dir}"
32416 break 1
32417 fi
32418 done
32419fi
32420if test "${dejavu_font_dir}x" != 'x'; then
32421 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32423$as_echo "$dejavu_font_dir" >&6; }
32424else
32425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32426$as_echo "not found!" >&6; };
32427fi
32428
32429
cristy3ed852e2009-09-05 21:47:34 +000032430# Windows
32431windows_font_dir=''
32432if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32433 windows_font_dir="${with_windows_font_dir}/"
32434fi
cristy430a7312010-01-21 20:44:04 +000032435if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032436 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32437 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32438 fi
32439 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32440 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32441 fi
32442 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32443 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32444 fi
32445fi
cristy430a7312010-01-21 20:44:04 +000032446if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032447 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32448fi
32449
32450
32451# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032453$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32454ghostscript_font_dir=''
32455if test "${with_gs_font_dir}" != 'default'; then
32456 ghostscript_font_dir="${with_gs_font_dir}/"
32457else
32458 if test "${native_win32_build}" = 'yes'; then
32459 # Native Windows Build
32460 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32461 if test -f "${font_dir}a010013l.pfb"; then
32462 ghostscript_font_dir="$font_dir"
32463 break 1
32464 fi
32465 done
32466 if test "${PSDelegate}" != 'gswin32c'; then
32467 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32468 fi
32469 else
32470 # Linux / Mac OS X / Unix Build
32471 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
32472 if test -f "${font_dir}a010013l.pfb"; then
32473 ghostscript_font_dir="${font_dir}"
32474 break 1
32475 fi
32476 done
32477 if test "${ghostscript_font_dir}x" = 'x'; then
32478 if test "$PSDelegate" != 'gs'; then
32479 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32480 fi
32481 fi
32482 fi
32483fi
32484if test "${ghostscript_font_dir}x" != 'x'; then
32485 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032487$as_echo "$ghostscript_font_dir" >&6; }
32488else
cristy8b350f62009-11-15 23:12:43 +000032489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032490$as_echo "not found!" >&6; };
32491fi
32492
32493case "${build_os}" in
32494 mingw* )
32495 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32496 ;;
32497esac
32498
32499
32500
32501#
32502# Handle case where user doesn't want frozen paths
32503#
32504if test "$with_frozenpaths" != 'yes'; then
32505 # Re-set delegate definitions to default (no paths)
32506 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032507 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32508 BZIPDelegate="$BZIPDelegateDefault"
32509 BrowseDelegate="$BrowseDelegateDefault"
32510 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32511 CatDelegate="$CatDelegateDefault"
32512 ConvertDelegate="$ConvertDelegateDefault"
32513 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32514 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32515 EchoDelegate="$EchoDelegateDefault"
32516 EditorDelegate="$EditorDelegateDefault"
32517 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32518 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32519 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32520 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32521 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32522 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32523 LPDelegate="$LPDelegateDefault"
32524 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32525 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32526 LaunchDelegate="$LaunchDelegateDefault"
32527 MANDelegate="$MANDelegateDefault"
32528 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32529 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032530 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032531 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32532 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032533 PCLDelegate="$PCLDelegateDefault"
32534 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32535 POVDelegate="$POVDelegateDefault"
32536 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032537 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32538 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032539 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032540 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32541 ShowImageDelegate="$ShowImageDelegateDefault"
32542 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032543 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032544 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32545 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32546 XPSDelegate="$XPSDelegateDefault"
32547 ZipDelegate="$ZipDelegateDefault"
32548fi
32549
32550# Delegate substitutions
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593#
32594# RPM support.
32595#
32596RPM=''
32597for ac_prog in gnutar gtar tar
32598do
32599 # Extract the first word of "$ac_prog", so it can be a program name with args.
32600set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032603if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032604 $as_echo_n "(cached) " >&6
32605else
32606 if test -n "$TAR"; then
32607 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32608else
32609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32610for as_dir in $PATH
32611do
32612 IFS=$as_save_IFS
32613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32616 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032618 break 2
32619 fi
32620done
cristy8b350f62009-11-15 23:12:43 +000032621 done
cristy3ed852e2009-09-05 21:47:34 +000032622IFS=$as_save_IFS
32623
32624fi
32625fi
32626TAR=$ac_cv_prog_TAR
32627if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032629$as_echo "$TAR" >&6; }
32630else
cristy8b350f62009-11-15 23:12:43 +000032631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032632$as_echo "no" >&6; }
32633fi
32634
32635
32636 test -n "$TAR" && break
32637done
32638
32639for ac_prog in perl
32640do
32641 # Extract the first word of "$ac_prog", so it can be a program name with args.
32642set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032644$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032645if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032646 $as_echo_n "(cached) " >&6
32647else
32648 if test -n "$PERL"; then
32649 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32650else
32651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32652for as_dir in $PATH
32653do
32654 IFS=$as_save_IFS
32655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32658 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032660 break 2
32661 fi
32662done
cristy8b350f62009-11-15 23:12:43 +000032663 done
cristy3ed852e2009-09-05 21:47:34 +000032664IFS=$as_save_IFS
32665
32666fi
32667fi
32668PERL=$ac_cv_prog_PERL
32669if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo "$PERL" >&6; }
32672else
cristy8b350f62009-11-15 23:12:43 +000032673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032674$as_echo "no" >&6; }
32675fi
32676
32677
32678 test -n "$PERL" && break
32679done
32680
32681for ac_prog in rpmbuild rpm
32682do
32683 # Extract the first word of "$ac_prog", so it can be a program name with args.
32684set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032686$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032687if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032688 $as_echo_n "(cached) " >&6
32689else
32690 if test -n "$RPM"; then
32691 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32692else
32693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32694for as_dir in $PATH
32695do
32696 IFS=$as_save_IFS
32697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32700 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702 break 2
32703 fi
32704done
cristy8b350f62009-11-15 23:12:43 +000032705 done
cristy3ed852e2009-09-05 21:47:34 +000032706IFS=$as_save_IFS
32707
32708fi
32709fi
32710RPM=$ac_cv_prog_RPM
32711if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032713$as_echo "$RPM" >&6; }
32714else
cristy8b350f62009-11-15 23:12:43 +000032715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032716$as_echo "no" >&6; }
32717fi
32718
32719
32720 test -n "$RPM" && break
32721done
32722
32723
cristy73bd4a52010-10-05 11:24:23 +000032724ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32725
32726
32727AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32728
32729
32730AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32731
32732
32733AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32734
32735
32736 if test "x$RPM" != "x" ; then
32737 RPM_DELEGATE_TRUE=
32738 RPM_DELEGATE_FALSE='#'
32739else
32740 RPM_DELEGATE_TRUE='#'
32741 RPM_DELEGATE_FALSE=
32742fi
32743
cristy3ed852e2009-09-05 21:47:34 +000032744
32745#
32746# 7ZIP support (http://p7zip.sourceforge.net/)
32747#
32748P7ZIP=''
32749for ac_prog in 7za
32750do
32751 # Extract the first word of "$ac_prog", so it can be a program name with args.
32752set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032754$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032755if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032756 $as_echo_n "(cached) " >&6
32757else
32758 if test -n "$P7ZIP"; then
32759 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32760else
32761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32762for as_dir in $PATH
32763do
32764 IFS=$as_save_IFS
32765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32768 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032770 break 2
32771 fi
32772done
cristy8b350f62009-11-15 23:12:43 +000032773 done
cristy3ed852e2009-09-05 21:47:34 +000032774IFS=$as_save_IFS
32775
32776fi
32777fi
32778P7ZIP=$ac_cv_prog_P7ZIP
32779if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781$as_echo "$P7ZIP" >&6; }
32782else
cristy8b350f62009-11-15 23:12:43 +000032783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo "no" >&6; }
32785fi
32786
32787
32788 test -n "$P7ZIP" && break
32789done
32790
32791
cristy73bd4a52010-10-05 11:24:23 +000032792 if test "x$P7ZIP" != "x" ; then
32793 P7ZIP_DELEGATE_TRUE=
32794 P7ZIP_DELEGATE_FALSE='#'
32795else
32796 P7ZIP_DELEGATE_TRUE='#'
32797 P7ZIP_DELEGATE_FALSE=
32798fi
32799
cristy3ed852e2009-09-05 21:47:34 +000032800
32801#
32802# ZIP support (http://www.info-zip.org/Zip.html)
32803#
32804ZIP=''
32805for ac_prog in zip
32806do
32807 # Extract the first word of "$ac_prog", so it can be a program name with args.
32808set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032811if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032812 $as_echo_n "(cached) " >&6
32813else
32814 if test -n "$ZIP"; then
32815 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32816else
32817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32818for as_dir in $PATH
32819do
32820 IFS=$as_save_IFS
32821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32824 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826 break 2
32827 fi
32828done
cristy8b350f62009-11-15 23:12:43 +000032829 done
cristy3ed852e2009-09-05 21:47:34 +000032830IFS=$as_save_IFS
32831
32832fi
32833fi
32834ZIP=$ac_cv_prog_ZIP
32835if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032837$as_echo "$ZIP" >&6; }
32838else
cristy8b350f62009-11-15 23:12:43 +000032839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032840$as_echo "no" >&6; }
32841fi
32842
32843
32844 test -n "$ZIP" && break
32845done
32846
32847
cristy73bd4a52010-10-05 11:24:23 +000032848 if test "x$ZIP" != "x" ; then
32849 ZIP_DELEGATE_TRUE=
32850 ZIP_DELEGATE_FALSE='#'
32851else
32852 ZIP_DELEGATE_TRUE='#'
32853 ZIP_DELEGATE_FALSE=
32854fi
32855
cristy3ed852e2009-09-05 21:47:34 +000032856
32857#
32858# GhostPCL related configuration.
32859#
32860PCLColorDevice=ppmraw
32861PCLCMYKDevice=bmpsep8
32862PCLMonoDevice=pbmraw
32863if test -z "$PCLVersion"; then
32864 PCLVersion='unknown'
32865fi
32866if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032868$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032872$as_echo "" >&6; }
32873 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032875$as_echo_n "checking for pcl color device... " >&6; }
32876 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32877 :
32878 else
32879 PCLColorDevice=ppmraw
32880 fi
cristy8b350f62009-11-15 23:12:43 +000032881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo "$PCLColorDevice" >&6; }
32883
32884 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886$as_echo_n "checking for pcl CMYK device... " >&6; }
32887 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32888 :
32889 else
32890 PCLCMYKDevice=$PCLColorDevice
32891 fi
cristy8b350f62009-11-15 23:12:43 +000032892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032893$as_echo "$PCLCMYKDevice" >&6; }
32894
32895 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo_n "checking for pcl mono device... " >&6; }
32898 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32899 :
32900 else
32901 PCLMonoDevice=$PCLColorDevice
32902 fi
cristy8b350f62009-11-15 23:12:43 +000032903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032904$as_echo "$PCLMonoDevice" >&6; }
32905fi
32906
32907
32908
32909
32910
32911
32912#
32913# GhostXPS related configuration.
32914#
32915XPSColorDevice=ppmraw
32916XPSCMYKDevice=bmpsep8
32917XPSMonoDevice=pbmraw
32918if test -z "$XPSVersion"; then
32919 XPSVersion='unknown'
32920fi
32921if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo "" >&6; }
32928 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930$as_echo_n "checking for xps color device... " >&6; }
32931 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32932 :
32933 else
32934 XPSColorDevice=ppmraw
32935 fi
cristy8b350f62009-11-15 23:12:43 +000032936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032937$as_echo "$XPSColorDevice" >&6; }
32938
32939 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo_n "checking for xps CMYK device... " >&6; }
32942 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32943 :
32944 else
32945 XPSCMYKDevice=$XPSColorDevice
32946 fi
cristy8b350f62009-11-15 23:12:43 +000032947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo "$XPSCMYKDevice" >&6; }
32949
32950 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo_n "checking for xps mono device... " >&6; }
32953 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32954 :
32955 else
32956 XPSMonoDevice=$XPSColorDevice
32957 fi
cristy8b350f62009-11-15 23:12:43 +000032958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959$as_echo "$XPSMonoDevice" >&6; }
32960fi
32961
32962
32963
32964
32965
32966
32967#
32968# Ghostscript related configuration.
32969#
cristya97426c2011-02-04 01:41:27 +000032970GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032971GSColorDevice=pnmraw
32972GSCMYKDevice=pam
32973GSMonoDevice=pbmraw
32974GSPDFDevice=pdfwrite
32975GSPSDevice=pswrite
32976GSEPSDevice=epswrite
32977GSVersion='unknown'
32978if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032984$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986$as_echo_n "checking for Ghostscript version... " >&6; }
32987 if GSVersion=`$PSDelegate --version`; then
32988 :
32989 else
32990 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32991 fi
cristy8b350f62009-11-15 23:12:43 +000032992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo "$GSVersion" >&6; }
32994
32995 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032997$as_echo_n "checking for gs alpha device... " >&6; }
32998 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32999 :
33000 else
33001 GSAlphaDevice=pnmraw
33002 fi
cristy8b350f62009-11-15 23:12:43 +000033003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033004$as_echo "$GSAlphaDevice" >&6; }
33005
33006 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo_n "checking for gs color device... " >&6; }
33009 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33010 :
33011 else
33012 GSColorDevice=pnmraw
33013 fi
cristy8b350f62009-11-15 23:12:43 +000033014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo "$GSColorDevice" >&6; }
33016
33017 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033019$as_echo_n "checking for gs CMYK device... " >&6; }
33020 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33021 :
33022 else
33023 GSCMYKDevice=bmpsep8
33024 fi
cristy8b350f62009-11-15 23:12:43 +000033025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026$as_echo "$GSCMYKDevice" >&6; }
33027
33028 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo_n "checking for gs mono device... " >&6; }
33031 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33032 :
33033 else
33034 GSMonoDevice=$GSColorDevice
33035 fi
cristy8b350f62009-11-15 23:12:43 +000033036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo "$GSMonoDevice" >&6; }
33038
33039 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041$as_echo_n "checking for gs PDF writing device... " >&6; }
33042 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33043 :
33044 else
33045 GSPDFDevice=nodevice
33046 fi
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo "$GSPDFDevice" >&6; }
33049
33050 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo_n "checking for gs PS writing device... " >&6; }
33053 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33054 :
33055 else
33056 GSPSDevice=nodevice
33057 fi
cristy8b350f62009-11-15 23:12:43 +000033058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059$as_echo "$GSPSDevice" >&6; }
33060
33061 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033063$as_echo_n "checking for gs EPS writing device... " >&6; }
33064 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33065 :
33066 else
33067 GSEPSDevice=nodevice
33068 fi
cristy8b350f62009-11-15 23:12:43 +000033069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033070$as_echo "$GSEPSDevice" >&6; }
33071fi
33072
33073
33074
33075
33076
33077
33078
33079
33080
33081
33082#
33083# PerlMagick-related configuration
33084#
33085
33086# Look for PERL if PerlMagick requested
33087# If name/path of desired PERL interpreter is specified, look for that one first
33088have_perl='no'
33089if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033091$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo "" >&6; }
33096 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033099if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033100 $as_echo_n "(cached) " >&6
33101else
33102 ac_cv_path_PERL="$with_perl"
33103fi
cristy8b350f62009-11-15 23:12:43 +000033104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105$as_echo "$ac_cv_path_PERL" >&6; };
33106 PERL=$ac_cv_path_PERL
33107 have_perl="$ac_cv_path_PERL"
33108 else
33109 for ac_prog in perl perl5
33110do
33111 # Extract the first word of "$ac_prog", so it can be a program name with args.
33112set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033115if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033116 $as_echo_n "(cached) " >&6
33117else
33118 case $PERL in
33119 [\\/]* | ?:[\\/]*)
33120 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33121 ;;
33122 *)
33123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33124for as_dir in $PATH
33125do
33126 IFS=$as_save_IFS
33127 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33130 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132 break 2
33133 fi
33134done
cristy8b350f62009-11-15 23:12:43 +000033135 done
cristy3ed852e2009-09-05 21:47:34 +000033136IFS=$as_save_IFS
33137
33138 ;;
33139esac
33140fi
33141PERL=$ac_cv_path_PERL
33142if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo "$PERL" >&6; }
33145else
cristy8b350f62009-11-15 23:12:43 +000033146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033147$as_echo "no" >&6; }
33148fi
33149
33150
33151 test -n "$PERL" && break
33152done
33153 if test "$ac_cv_path_PERL"; then
33154 have_perl="$ac_cv_path_PERL"
33155 fi
33156 fi
33157fi
33158
cristy949301e2010-01-06 01:38:40 +000033159if test "$with_perl" != 'yes' ; then
33160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33161fi
33162
33163PERL_SUPPORTS_DESTDIR='no'
33164
cristy3ed852e2009-09-05 21:47:34 +000033165with_perl_static='no'
33166with_perl_dynamic='no'
33167if test "$have_perl" != 'no'; then
33168 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33169 with_perl_static='yes'
33170 fi
33171 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33172 with_perl_dynamic='yes'
33173 fi
33174 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033175
33176
33177
33178
33179 if test -n "$PERL"; then :
33180
33181 ax_perl_version="5.8.1"
33182
33183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33184$as_echo_n "checking for perl version... " >&6; }
33185
33186 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33187
33188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33189$as_echo "$perl_version" >&6; }
33190
33191 PERL_VERSION=$perl_version
33192
33193
33194
33195
33196
33197 # Used to indicate true or false condition
33198 ax_compare_version=false
33199
33200 # Convert the two version strings to be compared into a format that
33201 # allows a simple string comparison. The end result is that a version
33202 # string of the form 1.12.5-r617 will be converted to the form
33203 # 0001001200050617. In other words, each number is zero padded to four
33204 # digits, and non digits are removed.
33205
33206 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33207 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33208 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33209 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33210 -e 's/[^0-9]//g'`
33211
33212
33213 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33214 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33215 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33216 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33217 -e 's/[^0-9]//g'`
33218
33219
33220 ax_compare_version=`echo "x$ax_compare_version_A
33221x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33222
33223
33224
33225 if test "$ax_compare_version" = "true" ; then
33226
33227 :
33228 PERL_SUPPORTS_DESTDIR='yes'
33229
33230 else
33231 :
33232 PERL_SUPPORTS_DESTDIR='no'
33233
33234 fi
33235
33236
33237else
33238
33239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33240$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33241 PERL_SUPPORTS_DESTDIR='no'
33242
cristy3ed852e2009-09-05 21:47:34 +000033243fi
cristy73bd4a52010-10-05 11:24:23 +000033244
33245fi
33246 if test "$have_perl" != 'no'; then
33247 WITH_PERL_TRUE=
33248 WITH_PERL_FALSE='#'
33249else
33250 WITH_PERL_TRUE='#'
33251 WITH_PERL_FALSE=
33252fi
33253
33254 if test $with_perl_static = 'yes'; then
33255 WITH_PERL_STATIC_TRUE=
33256 WITH_PERL_STATIC_FALSE='#'
33257else
33258 WITH_PERL_STATIC_TRUE='#'
33259 WITH_PERL_STATIC_FALSE=
33260fi
33261
33262 if test $with_perl_dynamic = 'yes'; then
33263 WITH_PERL_DYNAMIC_TRUE=
33264 WITH_PERL_DYNAMIC_FALSE='#'
33265else
33266 WITH_PERL_DYNAMIC_TRUE='#'
33267 WITH_PERL_DYNAMIC_FALSE=
33268fi
33269
cristy3ed852e2009-09-05 21:47:34 +000033270
33271
33272# Determine path to pick up MagickCore library from for use with building PerlMagick
33273MAGICKCORE_PATH="${LIB_DIR}"
33274if test $with_perl_static = 'yes'; then
33275 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33276 libtool_objdir=$objdir
33277
33278 # Linker search path to library, followed by -lMagickCore
33279 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33280fi
33281
33282
33283# Create a simple string containing format names for all delegate libraries
33284DELEGATES=''
33285if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33286if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33287if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33288if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33289if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33290if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33291if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33292if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33293if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33294if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33295if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33296if test "$have_jpeg" = 'yes'; then
33297 DELEGATES="$DELEGATES jpeg";
33298 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33299fi
33300if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033301if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033302if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33303if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033304if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033305if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33306if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33307if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33308if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33309if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33310if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33311if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33312if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33313if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33314
33315
33316
33317#
33318# Handle special compiler flags
33319#
33320
33321# Add '-p' if prof source profiling support enabled
33322if test "$enable_prof" = 'yes'; then
33323 CFLAGS="-p $CFLAGS"
33324 CXXFLAGS="-p $CXXFLAGS"
33325 LDFLAGS="-p $LDFLAGS"
33326fi
33327
33328# Add '-pg' if gprof source profiling support enabled
33329if test "$enable_gprof" = 'yes'; then
33330 CFLAGS="-pg $CFLAGS"
33331 CXXFLAGS="-pg $CXXFLAGS"
33332 LDFLAGS="-pg $LDFLAGS"
33333fi
33334
33335# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33336# This is a gcc-specific feature
33337if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033340if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033341 $as_echo_n "(cached) " >&6
33342else
33343 ac_check_lib_save_LIBS=$LIBS
33344LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033346/* end confdefs.h. */
33347
33348/* Override any GCC internal prototype to avoid an error.
33349 Use char because int might match the return type of a GCC
33350 builtin and then its argument prototype would still apply. */
33351#ifdef __cplusplus
33352extern "C"
33353#endif
33354char _gcov_init ();
33355int
33356main ()
33357{
33358return _gcov_init ();
33359 ;
33360 return 0;
33361}
33362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033364 ac_cv_lib_gcov__gcov_init=yes
33365else
cristy8b350f62009-11-15 23:12:43 +000033366 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033367fi
cristy8b350f62009-11-15 23:12:43 +000033368rm -f core conftest.err conftest.$ac_objext \
33369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033370LIBS=$ac_check_lib_save_LIBS
33371fi
cristy8b350f62009-11-15 23:12:43 +000033372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033373$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033374if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033375 cat >>confdefs.h <<_ACEOF
33376#define HAVE_LIBGCOV 1
33377_ACEOF
33378
33379 LIBS="-lgcov $LIBS"
33380
33381fi
33382
cristy8b350f62009-11-15 23:12:43 +000033383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033384$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033385if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033386 $as_echo_n "(cached) " >&6
33387else
33388 ac_check_lib_save_LIBS=$LIBS
33389LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033391/* end confdefs.h. */
33392
33393/* Override any GCC internal prototype to avoid an error.
33394 Use char because int might match the return type of a GCC
33395 builtin and then its argument prototype would still apply. */
33396#ifdef __cplusplus
33397extern "C"
33398#endif
33399char __gcov_init ();
33400int
33401main ()
33402{
33403return __gcov_init ();
33404 ;
33405 return 0;
33406}
33407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033409 ac_cv_lib_gcov___gcov_init=yes
33410else
cristy8b350f62009-11-15 23:12:43 +000033411 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033412fi
cristy8b350f62009-11-15 23:12:43 +000033413rm -f core conftest.err conftest.$ac_objext \
33414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033415LIBS=$ac_check_lib_save_LIBS
33416fi
cristy8b350f62009-11-15 23:12:43 +000033417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033419if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033420 cat >>confdefs.h <<_ACEOF
33421#define HAVE_LIBGCOV 1
33422_ACEOF
33423
33424 LIBS="-lgcov $LIBS"
33425
33426fi
33427
33428 case "$target_os" in
33429 darwin*)
33430 OSX_GCOV_LDFLAG="-Wl,-single_module"
33431 ;;
33432 *)
33433 OSX_GCOV_LDFLAG=""
33434 ;;
33435 esac
33436
33437 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33438 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33439 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33440fi
33441
33442#
33443# Build library dependency list for libMagickCore
33444#
33445
33446MAGICK_LIBLTDL='' # Libltdl for build
33447MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33448MAGICK_LTDLDEPS='' # extra libltdl dependencies
33449if test "$with_ltdl" != 'no'
33450then
33451 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33452 MAGICK_API_LIBLTDL='-lltdl'
33453 fi
33454 MAGICK_LIBLTDL=${LIBLTDL}
33455 MAGICK_LTDLDEPS=${LTDLDEPS}
33456fi
33457
33458
33459
33460if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033461 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 +000033462else
cristyb1860752011-03-14 00:27:46 +000033463 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000033464fi
33465
33466
33467#
33468# Remove extraneous spaces from output variables (asthetic)
33469#
33470X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33471X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33472X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33473X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33474
33475CC=`echo $CC | sed -e 's/ */ /g'`
33476CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33477CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33478CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33479DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33480DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33481LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33482TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33483MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33484#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33485
33486# Pass only user-provided LIBS as "global" libraries
33487LIBS=$USER_LIBS
33488
33489#AC_SUBST(CPPFLAGS)
33490
33491#AC_SUBST(LDFLAGS)
33492#AC_SUBST(X_PRE_LIBS)
33493#AC_SUBST(X_LIBS)
33494#AC_SUBST(X_EXTRA_LIBS)
33495
33496MAGICK_CFLAGS=$CFLAGS
33497MAGICK_CXXFLAGS="$CXXFLAGS"
33498MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33499MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33500MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33501MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33502
33503
33504
33505
33506
33507
33508
33509
cristyfd9dcd42010-08-08 18:07:02 +000033510
cristy3ed852e2009-09-05 21:47:34 +000033511# Set configured scripts to executable.
33512ac_config_commands="$ac_config_commands default"
33513
33514ac_config_commands="$ac_config_commands MagickCore-config.in"
33515
33516ac_config_commands="$ac_config_commands Magick-config.in"
33517
33518ac_config_commands="$ac_config_commands MagickWand-config.in"
33519
33520ac_config_commands="$ac_config_commands Wand-config.in"
33521
33522ac_config_commands="$ac_config_commands Magick++-config.in"
33523
33524ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33525
33526
cristy8b350f62009-11-15 23:12:43 +000033527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033530$as_echo "Update ImageMagick configuration" >&6; }
33531cat >confcache <<\_ACEOF
33532# This file is a shell script that caches the results of configure
33533# tests run on this system so they can be shared between configure
33534# scripts and configure runs, see configure's option --config-cache.
33535# It is not useful on other systems. If it contains results you don't
33536# want to keep, you may remove or edit it.
33537#
33538# config.status only pays attention to the cache file if you give it
33539# the --recheck option to rerun configure.
33540#
33541# `ac_cv_env_foo' variables (set or unset) will be overridden when
33542# loading this file, other *unset* `ac_cv_foo' will be assigned the
33543# following values.
33544
33545_ACEOF
33546
33547# The following way of writing the cache mishandles newlines in values,
33548# but we know of no workaround that is simple, portable, and efficient.
33549# So, we kill variables containing newlines.
33550# Ultrix sh set writes to stderr and can't be redirected directly,
33551# and sets the high bit in the cache file unless we assign to the vars.
33552(
33553 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33554 eval ac_val=\$$ac_var
33555 case $ac_val in #(
33556 *${as_nl}*)
33557 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033558 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033559$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33560 esac
33561 case $ac_var in #(
33562 _ | IFS | as_nl) ;; #(
33563 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033564 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033565 esac ;;
33566 esac
33567 done
33568
33569 (set) 2>&1 |
33570 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33571 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033572 # `set' does not quote correctly, so add quotes: double-quote
33573 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033574 sed -n \
33575 "s/'/'\\\\''/g;
33576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33577 ;; #(
33578 *)
33579 # `set' quotes correctly as required by POSIX, so do not add quotes.
33580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33581 ;;
33582 esac |
33583 sort
33584) |
33585 sed '
33586 /^ac_cv_env_/b end
33587 t clear
33588 :clear
33589 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33590 t end
33591 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33592 :end' >>confcache
33593if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33594 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033595 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033598 if test ! -f "$cache_file" || test -h "$cache_file"; then
33599 cat confcache >"$cache_file"
33600 else
33601 case $cache_file in #(
33602 */* | ?:*)
33603 mv -f confcache "$cache_file"$$ &&
33604 mv -f "$cache_file"$$ "$cache_file" ;; #(
33605 *)
33606 mv -f confcache "$cache_file" ;;
33607 esac
33608 fi
33609 fi
cristy3ed852e2009-09-05 21:47:34 +000033610 else
cristy8b350f62009-11-15 23:12:43 +000033611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033612$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33613 fi
33614fi
33615rm -f confcache
33616
33617test "x$prefix" = xNONE && prefix=$ac_default_prefix
33618# Let make expand exec_prefix.
33619test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33620
33621DEFS=-DHAVE_CONFIG_H
33622
33623ac_libobjs=
33624ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033625U=
cristy3ed852e2009-09-05 21:47:34 +000033626for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33627 # 1. Remove the extension, and $U if already installed.
33628 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33629 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33630 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33631 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033632 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33633 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033634done
33635LIBOBJS=$ac_libobjs
33636
33637LTLIBOBJS=$ac_ltlibobjs
33638
33639
cristy73bd4a52010-10-05 11:24:23 +000033640 if test -n "$EXEEXT"; then
33641 am__EXEEXT_TRUE=
33642 am__EXEEXT_FALSE='#'
33643else
33644 am__EXEEXT_TRUE='#'
33645 am__EXEEXT_FALSE=
33646fi
cristy3ed852e2009-09-05 21:47:34 +000033647
cristy73bd4a52010-10-05 11:24:23 +000033648if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033649 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033650Usually this means the macro was only invoked conditionally." "$LINENO" 5
33651fi
33652if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033653 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033654Usually this means the macro was only invoked conditionally." "$LINENO" 5
33655fi
33656if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033657 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033658Usually this means the macro was only invoked conditionally." "$LINENO" 5
33659fi
33660if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033661 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033662Usually this means the macro was only invoked conditionally." "$LINENO" 5
33663fi
33664if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033665 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033666Usually this means the macro was only invoked conditionally." "$LINENO" 5
33667fi
33668if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033669 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033670Usually this means the macro was only invoked conditionally." "$LINENO" 5
33671fi
33672if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033673 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033674Usually this means the macro was only invoked conditionally." "$LINENO" 5
33675fi
33676if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033677 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033678Usually this means the macro was only invoked conditionally." "$LINENO" 5
33679fi
cristy73bd4a52010-10-05 11:24:23 +000033680if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033681 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033682Usually this means the macro was only invoked conditionally." "$LINENO" 5
33683fi
33684if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033685 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033686Usually this means the macro was only invoked conditionally." "$LINENO" 5
33687fi
33688LT_CONFIG_H=config/config.h
33689
33690 _ltdl_libobjs=
33691 _ltdl_ltlibobjs=
33692 if test -n "$_LT_LIBOBJS"; then
33693 # Remove the extension.
33694 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33695 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33696 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33697 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33698 done
33699 fi
33700 ltdl_LIBOBJS=$_ltdl_libobjs
33701
33702 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33703
33704
33705if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033706 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033707Usually this means the macro was only invoked conditionally." "$LINENO" 5
33708fi
33709if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033710 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033711Usually this means the macro was only invoked conditionally." "$LINENO" 5
33712fi
33713if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033714 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033715Usually this means the macro was only invoked conditionally." "$LINENO" 5
33716fi
33717if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033718 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033719Usually this means the macro was only invoked conditionally." "$LINENO" 5
33720fi
33721
33722if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033723 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033724Usually this means the macro was only invoked conditionally." "$LINENO" 5
33725fi
33726if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033727 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033728Usually this means the macro was only invoked conditionally." "$LINENO" 5
33729fi
33730if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033731 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033732Usually this means the macro was only invoked conditionally." "$LINENO" 5
33733fi
33734if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033735 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033736Usually this means the macro was only invoked conditionally." "$LINENO" 5
33737fi
33738if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033739 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033740Usually this means the macro was only invoked conditionally." "$LINENO" 5
33741fi
33742if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033743 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033744Usually this means the macro was only invoked conditionally." "$LINENO" 5
33745fi
33746if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033747 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033748Usually this means the macro was only invoked conditionally." "$LINENO" 5
33749fi
33750if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033751 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033752Usually this means the macro was only invoked conditionally." "$LINENO" 5
33753fi
33754if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033755 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033756Usually this means the macro was only invoked conditionally." "$LINENO" 5
33757fi
33758if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033759 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033760Usually this means the macro was only invoked conditionally." "$LINENO" 5
33761fi
33762if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033763 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033764Usually this means the macro was only invoked conditionally." "$LINENO" 5
33765fi
33766if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033767 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033768Usually this means the macro was only invoked conditionally." "$LINENO" 5
33769fi
33770if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033771 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033772Usually this means the macro was only invoked conditionally." "$LINENO" 5
33773fi
33774if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033775 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033776Usually this means the macro was only invoked conditionally." "$LINENO" 5
33777fi
33778if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033779 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033780Usually this means the macro was only invoked conditionally." "$LINENO" 5
33781fi
33782if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033783 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033784Usually this means the macro was only invoked conditionally." "$LINENO" 5
33785fi
33786if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033787 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033788Usually this means the macro was only invoked conditionally." "$LINENO" 5
33789fi
33790if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033791 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033792Usually this means the macro was only invoked conditionally." "$LINENO" 5
33793fi
33794if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033795 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033796Usually this means the macro was only invoked conditionally." "$LINENO" 5
33797fi
33798if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033799 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033800Usually this means the macro was only invoked conditionally." "$LINENO" 5
33801fi
cristyfbb0ef02010-12-19 02:32:11 +000033802if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33803 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33804Usually this means the macro was only invoked conditionally." "$LINENO" 5
33805fi
cristy73bd4a52010-10-05 11:24:23 +000033806if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033807 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033808Usually this means the macro was only invoked conditionally." "$LINENO" 5
33809fi
33810if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033811 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033812Usually this means the macro was only invoked conditionally." "$LINENO" 5
33813fi
33814if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033815 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033816Usually this means the macro was only invoked conditionally." "$LINENO" 5
33817fi
33818if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033819 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033820Usually this means the macro was only invoked conditionally." "$LINENO" 5
33821fi
33822if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033823 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033824Usually this means the macro was only invoked conditionally." "$LINENO" 5
33825fi
cristyb1860752011-03-14 00:27:46 +000033826if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
33827 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
33828Usually this means the macro was only invoked conditionally." "$LINENO" 5
33829fi
cristy73bd4a52010-10-05 11:24:23 +000033830if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033831 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033832Usually this means the macro was only invoked conditionally." "$LINENO" 5
33833fi
33834if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033835 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033836Usually this means the macro was only invoked conditionally." "$LINENO" 5
33837fi
33838if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033839 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033840Usually this means the macro was only invoked conditionally." "$LINENO" 5
33841fi
33842if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033843 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033844Usually this means the macro was only invoked conditionally." "$LINENO" 5
33845fi
33846if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033847 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033848Usually this means the macro was only invoked conditionally." "$LINENO" 5
33849fi
33850if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033851 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033852Usually this means the macro was only invoked conditionally." "$LINENO" 5
33853fi
33854if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033855 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033856Usually this means the macro was only invoked conditionally." "$LINENO" 5
33857fi
33858if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033859 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033860Usually this means the macro was only invoked conditionally." "$LINENO" 5
33861fi
cristy3ed852e2009-09-05 21:47:34 +000033862
cristyda16f162011-02-19 23:52:17 +000033863: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033864ac_write_fail=0
33865ac_clean_files_save=$ac_clean_files
33866ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033867{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033868$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033869as_write_fail=0
33870cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033871#! $SHELL
33872# Generated by $as_me.
33873# Run this file to recreate the current configuration.
33874# Compiler output produced by configure, useful for debugging
33875# configure, is in config.log if it exists.
33876
33877debug=false
33878ac_cs_recheck=false
33879ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033880
cristy8b350f62009-11-15 23:12:43 +000033881SHELL=\${CONFIG_SHELL-$SHELL}
33882export SHELL
33883_ASEOF
33884cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33885## -------------------- ##
33886## M4sh Initialization. ##
33887## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033888
33889# Be more Bourne compatible
33890DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033891if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033892 emulate sh
33893 NULLCMD=:
33894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33895 # is contrary to our usage. Disable this feature.
33896 alias -g '${1+"$@"}'='"$@"'
33897 setopt NO_GLOB_SUBST
33898else
cristy8b350f62009-11-15 23:12:43 +000033899 case `(set -o) 2>/dev/null` in #(
33900 *posix*) :
33901 set -o posix ;; #(
33902 *) :
33903 ;;
cristy3ed852e2009-09-05 21:47:34 +000033904esac
cristy3ed852e2009-09-05 21:47:34 +000033905fi
33906
33907
cristy3ed852e2009-09-05 21:47:34 +000033908as_nl='
33909'
33910export as_nl
33911# Printing a long string crashes Solaris 7 /usr/bin/printf.
33912as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33913as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33914as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033915# Prefer a ksh shell builtin over an external printf program on Solaris,
33916# but without wasting forks for bash or zsh.
33917if test -z "$BASH_VERSION$ZSH_VERSION" \
33918 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33919 as_echo='print -r --'
33920 as_echo_n='print -rn --'
33921elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033922 as_echo='printf %s\n'
33923 as_echo_n='printf %s'
33924else
33925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33927 as_echo_n='/usr/ucb/echo -n'
33928 else
33929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33930 as_echo_n_body='eval
33931 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033932 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033933 *"$as_nl"*)
33934 expr "X$arg" : "X\\(.*\\)$as_nl";
33935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33936 esac;
33937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33938 '
33939 export as_echo_n_body
33940 as_echo_n='sh -c $as_echo_n_body as_echo'
33941 fi
33942 export as_echo_body
33943 as_echo='sh -c $as_echo_body as_echo'
33944fi
33945
33946# The user is always right.
33947if test "${PATH_SEPARATOR+set}" != set; then
33948 PATH_SEPARATOR=:
33949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33951 PATH_SEPARATOR=';'
33952 }
33953fi
33954
cristy3ed852e2009-09-05 21:47:34 +000033955
33956# IFS
33957# We need space, tab and new line, in precisely that order. Quoting is
33958# there to prevent editors from complaining about space-tab.
33959# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33960# splitting by setting IFS to empty value.)
33961IFS=" "" $as_nl"
33962
33963# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033964as_myself=
cristy8b350f62009-11-15 23:12:43 +000033965case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033966 *[\\/]* ) as_myself=$0 ;;
33967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33968for as_dir in $PATH
33969do
33970 IFS=$as_save_IFS
33971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33973 done
cristy3ed852e2009-09-05 21:47:34 +000033974IFS=$as_save_IFS
33975
33976 ;;
33977esac
33978# We did not find ourselves, most probably we were run as `sh COMMAND'
33979# in which case we are not to be found in the path.
33980if test "x$as_myself" = x; then
33981 as_myself=$0
33982fi
33983if test ! -f "$as_myself"; then
33984 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033985 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033986fi
33987
cristy8b350f62009-11-15 23:12:43 +000033988# Unset variables that we do not need and which cause bugs (e.g. in
33989# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33990# suppresses any "Segmentation fault" message there. '((' could
33991# trigger a bug in pdksh 5.2.14.
33992for as_var in BASH_ENV ENV MAIL MAILPATH
33993do eval test x\${$as_var+set} = xset \
33994 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033995done
33996PS1='$ '
33997PS2='> '
33998PS4='+ '
33999
34000# NLS nuisances.
34001LC_ALL=C
34002export LC_ALL
34003LANGUAGE=C
34004export LANGUAGE
34005
cristy8b350f62009-11-15 23:12:43 +000034006# CDPATH.
34007(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34008
34009
cristy98dddb52010-11-04 00:30:15 +000034010# as_fn_error STATUS ERROR [LINENO LOG_FD]
34011# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000034012# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34013# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000034014# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034015as_fn_error ()
34016{
cristy98dddb52010-11-04 00:30:15 +000034017 as_status=$1; test $as_status -eq 0 && as_status=1
34018 if test "$4"; then
34019 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34020 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034021 fi
cristy98dddb52010-11-04 00:30:15 +000034022 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034023 as_fn_exit $as_status
34024} # as_fn_error
34025
34026
34027# as_fn_set_status STATUS
34028# -----------------------
34029# Set $? to STATUS, without forking.
34030as_fn_set_status ()
34031{
34032 return $1
34033} # as_fn_set_status
34034
34035# as_fn_exit STATUS
34036# -----------------
34037# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34038as_fn_exit ()
34039{
34040 set +e
34041 as_fn_set_status $1
34042 exit $1
34043} # as_fn_exit
34044
34045# as_fn_unset VAR
34046# ---------------
34047# Portably unset VAR.
34048as_fn_unset ()
34049{
34050 { eval $1=; unset $1;}
34051}
34052as_unset=as_fn_unset
34053# as_fn_append VAR VALUE
34054# ----------------------
34055# Append the text in VALUE to the end of the definition contained in VAR. Take
34056# advantage of any shell optimizations that allow amortized linear growth over
34057# repeated appends, instead of the typical quadratic growth present in naive
34058# implementations.
34059if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34060 eval 'as_fn_append ()
34061 {
34062 eval $1+=\$2
34063 }'
34064else
34065 as_fn_append ()
34066 {
34067 eval $1=\$$1\$2
34068 }
34069fi # as_fn_append
34070
34071# as_fn_arith ARG...
34072# ------------------
34073# Perform arithmetic evaluation on the ARGs, and store the result in the
34074# global $as_val. Take advantage of shells that can avoid forks. The arguments
34075# must be portable across $(()) and expr.
34076if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34077 eval 'as_fn_arith ()
34078 {
34079 as_val=$(( $* ))
34080 }'
34081else
34082 as_fn_arith ()
34083 {
34084 as_val=`expr "$@" || test $? -eq 1`
34085 }
34086fi # as_fn_arith
34087
34088
cristy3ed852e2009-09-05 21:47:34 +000034089if expr a : '\(a\)' >/dev/null 2>&1 &&
34090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34091 as_expr=expr
34092else
34093 as_expr=false
34094fi
34095
34096if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34097 as_basename=basename
34098else
34099 as_basename=false
34100fi
34101
cristy8b350f62009-11-15 23:12:43 +000034102if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34103 as_dirname=dirname
34104else
34105 as_dirname=false
34106fi
cristy3ed852e2009-09-05 21:47:34 +000034107
cristy3ed852e2009-09-05 21:47:34 +000034108as_me=`$as_basename -- "$0" ||
34109$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34110 X"$0" : 'X\(//\)$' \| \
34111 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34112$as_echo X/"$0" |
34113 sed '/^.*\/\([^/][^/]*\)\/*$/{
34114 s//\1/
34115 q
34116 }
34117 /^X\/\(\/\/\)$/{
34118 s//\1/
34119 q
34120 }
34121 /^X\/\(\/\).*/{
34122 s//\1/
34123 q
34124 }
34125 s/.*/./; q'`
34126
cristy8b350f62009-11-15 23:12:43 +000034127# Avoid depending upon Character Ranges.
34128as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34129as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34130as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34131as_cr_digits='0123456789'
34132as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034133
34134ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034135case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034136-n*)
cristy8b350f62009-11-15 23:12:43 +000034137 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034138 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034139 xy) ECHO_C='\c';;
34140 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34141 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034142 esac;;
34143*)
34144 ECHO_N='-n';;
34145esac
cristy3ed852e2009-09-05 21:47:34 +000034146
34147rm -f conf$$ conf$$.exe conf$$.file
34148if test -d conf$$.dir; then
34149 rm -f conf$$.dir/conf$$.file
34150else
34151 rm -f conf$$.dir
34152 mkdir conf$$.dir 2>/dev/null
34153fi
34154if (echo >conf$$.file) 2>/dev/null; then
34155 if ln -s conf$$.file conf$$ 2>/dev/null; then
34156 as_ln_s='ln -s'
34157 # ... but there are two gotchas:
34158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34160 # In both cases, we have to default to `cp -p'.
34161 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34162 as_ln_s='cp -p'
34163 elif ln conf$$.file conf$$ 2>/dev/null; then
34164 as_ln_s=ln
34165 else
34166 as_ln_s='cp -p'
34167 fi
34168else
34169 as_ln_s='cp -p'
34170fi
34171rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34172rmdir conf$$.dir 2>/dev/null
34173
cristy8b350f62009-11-15 23:12:43 +000034174
34175# as_fn_mkdir_p
34176# -------------
34177# Create "$as_dir" as a directory, including parents if necessary.
34178as_fn_mkdir_p ()
34179{
34180
34181 case $as_dir in #(
34182 -*) as_dir=./$as_dir;;
34183 esac
34184 test -d "$as_dir" || eval $as_mkdir_p || {
34185 as_dirs=
34186 while :; do
34187 case $as_dir in #(
34188 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34189 *) as_qdir=$as_dir;;
34190 esac
34191 as_dirs="'$as_qdir' $as_dirs"
34192 as_dir=`$as_dirname -- "$as_dir" ||
34193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34194 X"$as_dir" : 'X\(//\)[^/]' \| \
34195 X"$as_dir" : 'X\(//\)$' \| \
34196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34197$as_echo X"$as_dir" |
34198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34199 s//\1/
34200 q
34201 }
34202 /^X\(\/\/\)[^/].*/{
34203 s//\1/
34204 q
34205 }
34206 /^X\(\/\/\)$/{
34207 s//\1/
34208 q
34209 }
34210 /^X\(\/\).*/{
34211 s//\1/
34212 q
34213 }
34214 s/.*/./; q'`
34215 test -d "$as_dir" && break
34216 done
34217 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034218 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034219
34220
34221} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034222if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034223 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034224else
34225 test -d ./-p && rmdir ./-p
34226 as_mkdir_p=false
34227fi
34228
34229if test -x / >/dev/null 2>&1; then
34230 as_test_x='test -x'
34231else
34232 if ls -dL / >/dev/null 2>&1; then
34233 as_ls_L_option=L
34234 else
34235 as_ls_L_option=
34236 fi
34237 as_test_x='
34238 eval sh -c '\''
34239 if test -d "$1"; then
34240 test -d "$1/.";
34241 else
cristy8b350f62009-11-15 23:12:43 +000034242 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034243 -*)set "./$1";;
34244 esac;
cristy8b350f62009-11-15 23:12:43 +000034245 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034246 ???[sx]*):;;*)false;;esac;fi
34247 '\'' sh
34248 '
34249fi
34250as_executable_p=$as_test_x
34251
34252# Sed expression to map a string onto a valid CPP name.
34253as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34254
34255# Sed expression to map a string onto a valid variable name.
34256as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34257
34258
34259exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034260## ----------------------------------- ##
34261## Main body of $CONFIG_STATUS script. ##
34262## ----------------------------------- ##
34263_ASEOF
34264test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034265
cristy8b350f62009-11-15 23:12:43 +000034266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34267# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034268# report actual input values of CONFIG_FILES etc. instead of their
34269# values after options handling.
34270ac_log="
cristy45dbd322011-03-27 16:40:38 +000034271This file was extended by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +000034272generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034273
34274 CONFIG_FILES = $CONFIG_FILES
34275 CONFIG_HEADERS = $CONFIG_HEADERS
34276 CONFIG_LINKS = $CONFIG_LINKS
34277 CONFIG_COMMANDS = $CONFIG_COMMANDS
34278 $ $0 $@
34279
34280on `(hostname || uname -n) 2>/dev/null | sed 1q`
34281"
34282
34283_ACEOF
34284
34285case $ac_config_files in *"
34286"*) set x $ac_config_files; shift; ac_config_files=$*;;
34287esac
34288
34289case $ac_config_headers in *"
34290"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34291esac
34292
34293
34294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34295# Files that config.status was made for.
34296config_files="$ac_config_files"
34297config_headers="$ac_config_headers"
34298config_commands="$ac_config_commands"
34299
34300_ACEOF
34301
34302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34303ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034304\`$as_me' instantiates files and other configuration actions
34305from templates according to the current configuration. Unless the files
34306and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034307
cristy8b350f62009-11-15 23:12:43 +000034308Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034309
34310 -h, --help print this help, then exit
34311 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034312 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034313 -q, --quiet, --silent
34314 do not print progress messages
34315 -d, --debug don't remove temporary files
34316 --recheck update $as_me by reconfiguring in the same conditions
34317 --file=FILE[:TEMPLATE]
34318 instantiate the configuration file FILE
34319 --header=FILE[:TEMPLATE]
34320 instantiate the configuration header FILE
34321
34322Configuration files:
34323$config_files
34324
34325Configuration headers:
34326$config_headers
34327
34328Configuration commands:
34329$config_commands
34330
cristy8b350f62009-11-15 23:12:43 +000034331Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034332
34333_ACEOF
34334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034335ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034336ac_cs_version="\\
cristy45dbd322011-03-27 16:40:38 +000034337ImageMagick config.status 6.6.9
cristyda16f162011-02-19 23:52:17 +000034338configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034339 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034340
cristy98dddb52010-11-04 00:30:15 +000034341Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034342This config.status script is free software; the Free Software Foundation
34343gives unlimited permission to copy, distribute and modify it."
34344
34345ac_pwd='$ac_pwd'
34346srcdir='$srcdir'
34347INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034348MKDIR_P='$MKDIR_P'
34349AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034350test -n "\$AWK" || AWK=awk
34351_ACEOF
34352
34353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34354# The default lists apply if the user does not specify any file.
34355ac_need_defaults=:
34356while test $# != 0
34357do
34358 case $1 in
cristyda16f162011-02-19 23:52:17 +000034359 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034360 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34361 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34362 ac_shift=:
34363 ;;
cristyda16f162011-02-19 23:52:17 +000034364 --*=)
34365 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34366 ac_optarg=
34367 ac_shift=:
34368 ;;
cristy3ed852e2009-09-05 21:47:34 +000034369 *)
34370 ac_option=$1
34371 ac_optarg=$2
34372 ac_shift=shift
34373 ;;
34374 esac
34375
34376 case $ac_option in
34377 # Handling of the options.
34378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34379 ac_cs_recheck=: ;;
34380 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34381 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034382 --config | --confi | --conf | --con | --co | --c )
34383 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034384 --debug | --debu | --deb | --de | --d | -d )
34385 debug=: ;;
34386 --file | --fil | --fi | --f )
34387 $ac_shift
34388 case $ac_optarg in
34389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034390 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034391 esac
cristy8b350f62009-11-15 23:12:43 +000034392 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034393 ac_need_defaults=false;;
34394 --header | --heade | --head | --hea )
34395 $ac_shift
34396 case $ac_optarg in
34397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34398 esac
cristy8b350f62009-11-15 23:12:43 +000034399 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034400 ac_need_defaults=false;;
34401 --he | --h)
34402 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034403 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034404Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034405 --help | --hel | -h )
34406 $as_echo "$ac_cs_usage"; exit ;;
34407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34409 ac_cs_silent=: ;;
34410
34411 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034412 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034413Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034414
cristy8b350f62009-11-15 23:12:43 +000034415 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034416 ac_need_defaults=false ;;
34417
34418 esac
34419 shift
34420done
34421
34422ac_configure_extra_args=
34423
34424if $ac_cs_silent; then
34425 exec 6>/dev/null
34426 ac_configure_extra_args="$ac_configure_extra_args --silent"
34427fi
34428
34429_ACEOF
34430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34431if \$ac_cs_recheck; then
34432 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34433 shift
34434 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34435 CONFIG_SHELL='$SHELL'
34436 export CONFIG_SHELL
34437 exec "\$@"
34438fi
34439
34440_ACEOF
34441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34442exec 5>>config.log
34443{
34444 echo
34445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34446## Running $as_me. ##
34447_ASBOX
34448 $as_echo "$ac_log"
34449} >&5
34450
34451_ACEOF
34452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034453#
34454# INIT-COMMANDS
34455#
34456PACKAGE="$PACKAGE"
34457AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34458
34459
34460# The HP-UX ksh and POSIX shell print the target directory to stdout
34461# if CDPATH is set.
34462(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34463
34464sed_quote_subst='$sed_quote_subst'
34465double_quote_subst='$double_quote_subst'
34466delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034467SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34468Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34469GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34470EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34471FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34472SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34473ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34474LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34475macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34476macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34477AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34478DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34479OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34480enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34481enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34482pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34483enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34484host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34485host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34486host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34487build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34488build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34489build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34490NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34491LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34492max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34493ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34494exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34495lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34496lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34497lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034498lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34499lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034500reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34501reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34502deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34503file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034504file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34505want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34506sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034507AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34508AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034509archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034510STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34511RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34512old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34513old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34514old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34515lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34516CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34517CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34518compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34519GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34520lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34521lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34522lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34523lt_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 +000034524nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34525lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034526objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34527MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34528lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034529lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034530lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034531lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34532lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34533need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034534MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034535DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34536NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34537LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34538OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34539OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34540libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34541shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34542extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34543archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34544enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34545export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34546whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34547compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34548old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34549old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34550archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34551archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34552module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34553module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34554with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34555allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34556no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34557hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34558hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34559hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34560hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34561hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34562hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34563hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34564hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34565inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34566link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034567always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34568export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34569exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34570include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34571prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034572postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034573file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34574variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34575need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34576need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34577version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34578runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34579shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34580shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34581libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34582library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34583soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34584install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34585postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34586postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34587finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34588finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34589hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34590sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34591sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34592hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34593enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34594enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34595enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34596old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34597striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34598compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34599predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34600postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34601predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34602postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34603compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34604LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34605reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34606reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34607old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34608compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34609GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34610lt_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 +000034611lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034612lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034613lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34614lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34615archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34616enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34617export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34618whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34619compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34620old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34621old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34622archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34623archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34624module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34625module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34626with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34627allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34628no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34629hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34630hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34631hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34632hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34633hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34634hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34635hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34636hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34637inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34638link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034639always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34640export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34641exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34642include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34643prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034644postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034645file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34646hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34647compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34648predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34649postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34650predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34651postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34652compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034653
34654LTCC='$LTCC'
34655LTCFLAGS='$LTCFLAGS'
34656compiler='$compiler_DEFAULT'
34657
cristy0c60a692010-11-04 01:09:47 +000034658# A function that is used when there is no print builtin or printf.
34659func_fallback_echo ()
34660{
34661 eval 'cat <<_LTECHO_EOF
34662\$1
34663_LTECHO_EOF'
34664}
34665
cristy73bd4a52010-10-05 11:24:23 +000034666# Quote evaled strings.
34667for var in SED \
34668GREP \
34669EGREP \
34670FGREP \
cristy0c60a692010-11-04 01:09:47 +000034671SHELL \
34672ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034673LD \
cristy0c60a692010-11-04 01:09:47 +000034674AS \
34675DLLTOOL \
34676OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034677NM \
34678LN_S \
34679lt_SP2NL \
34680lt_NL2SP \
34681reload_flag \
34682deplibs_check_method \
34683file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034684file_magic_glob \
34685want_nocaseglob \
34686sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034687AR \
34688AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034689archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034690STRIP \
34691RANLIB \
34692CC \
34693CFLAGS \
34694compiler \
34695lt_cv_sys_global_symbol_pipe \
34696lt_cv_sys_global_symbol_to_cdecl \
34697lt_cv_sys_global_symbol_to_c_name_address \
34698lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034699nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034700lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034701lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034702lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034703lt_prog_compiler_static \
34704lt_cv_prog_compiler_c_o \
34705need_locks \
cristyda16f162011-02-19 23:52:17 +000034706MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034707DSYMUTIL \
34708NMEDIT \
34709LIPO \
34710OTOOL \
34711OTOOL64 \
34712shrext_cmds \
34713export_dynamic_flag_spec \
34714whole_archive_flag_spec \
34715compiler_needs_object \
34716with_gnu_ld \
34717allow_undefined_flag \
34718no_undefined_flag \
34719hardcode_libdir_flag_spec \
34720hardcode_libdir_flag_spec_ld \
34721hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034722exclude_expsyms \
34723include_expsyms \
34724file_list_spec \
34725variables_saved_for_relink \
34726libname_spec \
34727library_names_spec \
34728soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034729install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034730finish_eval \
34731old_striplib \
34732striplib \
34733compiler_lib_search_dirs \
34734predep_objects \
34735postdep_objects \
34736predeps \
34737postdeps \
34738compiler_lib_search_path \
34739LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034740reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034741compiler_CXX \
34742lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034743lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034744lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034745lt_prog_compiler_static_CXX \
34746lt_cv_prog_compiler_c_o_CXX \
34747export_dynamic_flag_spec_CXX \
34748whole_archive_flag_spec_CXX \
34749compiler_needs_object_CXX \
34750with_gnu_ld_CXX \
34751allow_undefined_flag_CXX \
34752no_undefined_flag_CXX \
34753hardcode_libdir_flag_spec_CXX \
34754hardcode_libdir_flag_spec_ld_CXX \
34755hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034756exclude_expsyms_CXX \
34757include_expsyms_CXX \
34758file_list_spec_CXX \
34759compiler_lib_search_dirs_CXX \
34760predep_objects_CXX \
34761postdep_objects_CXX \
34762predeps_CXX \
34763postdeps_CXX \
34764compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034765 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034766 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034767 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034768 ;;
34769 *)
34770 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34771 ;;
34772 esac
34773done
34774
34775# Double-quote double-evaled strings.
34776for var in reload_cmds \
34777old_postinstall_cmds \
34778old_postuninstall_cmds \
34779old_archive_cmds \
34780extract_expsyms_cmds \
34781old_archive_from_new_cmds \
34782old_archive_from_expsyms_cmds \
34783archive_cmds \
34784archive_expsym_cmds \
34785module_cmds \
34786module_expsym_cmds \
34787export_symbols_cmds \
34788prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034789postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034790postinstall_cmds \
34791postuninstall_cmds \
34792finish_cmds \
34793sys_lib_search_path_spec \
34794sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034795reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034796old_archive_cmds_CXX \
34797old_archive_from_new_cmds_CXX \
34798old_archive_from_expsyms_cmds_CXX \
34799archive_cmds_CXX \
34800archive_expsym_cmds_CXX \
34801module_cmds_CXX \
34802module_expsym_cmds_CXX \
34803export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034804prelink_cmds_CXX \
34805postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034806 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034807 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034808 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034809 ;;
34810 *)
34811 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34812 ;;
34813 esac
34814done
34815
cristy73bd4a52010-10-05 11:24:23 +000034816ac_aux_dir='$ac_aux_dir'
34817xsi_shell='$xsi_shell'
34818lt_shell_append='$lt_shell_append'
34819
34820# See if we are running on zsh, and set the options which allow our
34821# commands through without removal of \ escapes INIT.
34822if test -n "\${ZSH_VERSION+set}" ; then
34823 setopt NO_GLOB_SUBST
34824fi
34825
34826
34827 PACKAGE='$PACKAGE'
34828 VERSION='$VERSION'
34829 TIMESTAMP='$TIMESTAMP'
34830 RM='$RM'
34831 ofile='$ofile'
34832
34833
34834
34835
34836
34837
cristy3ed852e2009-09-05 21:47:34 +000034838_ACEOF
34839
34840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34841
34842# Handling of arguments.
34843for ac_config_target in $ac_config_targets
34844do
34845 case $ac_config_target in
34846 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034847 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034848 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34849 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34850 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34851 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34852 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034853 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034854 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34855 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34856 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34857 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34858 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34859 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34860 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34861 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34862 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34863 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34864 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34865 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34867 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34868 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34869 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34870 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34871 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34872 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34873 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34874 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34875 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34876 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34877 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34878 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34879 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34880 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34881 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34882 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34883 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34884 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34885 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34886 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034887 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34888 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034889 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34890 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34891 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34892 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34893 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34894 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34895 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34896
cristy98dddb52010-11-04 00:30:15 +000034897 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034898 esac
34899done
34900
34901
34902# If the user did not use the arguments to specify the items to instantiate,
34903# then the envvar interface is used. Set only those that are not.
34904# We use the long form for the default assignment because of an extremely
34905# bizarre bug on SunOS 4.1.3.
34906if $ac_need_defaults; then
34907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34910fi
34911
34912# Have a temporary directory for convenience. Make it in the build tree
34913# simply because there is no reason against having it here, and in addition,
34914# creating and moving files from /tmp can sometimes cause problems.
34915# Hook for its removal unless debugging.
34916# Note that there is a small window in which the directory will not be cleaned:
34917# after its creation but before its name has been assigned to `$tmp'.
34918$debug ||
34919{
cristyda16f162011-02-19 23:52:17 +000034920 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034921 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034922 : "${ac_tmp:=$tmp}"
34923 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034924' 0
cristy8b350f62009-11-15 23:12:43 +000034925 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034926}
34927# Create a (secure) tmp directory for tmp files.
34928
34929{
34930 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034931 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034932} ||
34933{
34934 tmp=./conf$$-$RANDOM
34935 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034936} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034937ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034938
34939# Set up the scripts for CONFIG_FILES section.
34940# No need to generate them if there are no CONFIG_FILES.
34941# This happens for instance with `./config.status config.h'.
34942if test -n "$CONFIG_FILES"; then
34943
34944
cristy8b350f62009-11-15 23:12:43 +000034945ac_cr=`echo X | tr X '\015'`
34946# On cygwin, bash can eat \r inside `` if the user requested igncr.
34947# But we know of no other shell where ac_cr would be empty at this
34948# point, so we can use a bashism as a fallback.
34949if test "x$ac_cr" = x; then
34950 eval ac_cr=\$\'\\r\'
34951fi
cristy3ed852e2009-09-05 21:47:34 +000034952ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34953if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034954 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034955else
34956 ac_cs_awk_cr=$ac_cr
34957fi
34958
cristyda16f162011-02-19 23:52:17 +000034959echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034960_ACEOF
34961
34962
34963{
34964 echo "cat >conf$$subs.awk <<_ACEOF" &&
34965 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34966 echo "_ACEOF"
34967} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34969ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034970ac_delim='%!_!# '
34971for ac_last_try in false false false false false :; do
34972 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034974
34975 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34976 if test $ac_delim_n = $ac_delim_num; then
34977 break
34978 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034980 else
34981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34982 fi
34983done
34984rm -f conf$$subs.sh
34985
34986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000034987cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034988_ACEOF
34989sed -n '
34990h
34991s/^/S["/; s/!.*/"]=/
34992p
34993g
34994s/^[^!]*!//
34995:repl
34996t repl
34997s/'"$ac_delim"'$//
34998t delim
34999:nl
35000h
cristycd4c5312009-11-22 01:19:08 +000035001s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035002t more1
35003s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35004p
35005n
35006b repl
35007:more1
35008s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35009p
35010g
35011s/.\{148\}//
35012t nl
35013:delim
35014h
cristycd4c5312009-11-22 01:19:08 +000035015s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035016t more2
35017s/["\\]/\\&/g; s/^/"/; s/$/"/
35018p
35019b
35020:more2
35021s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35022p
35023g
35024s/.\{148\}//
35025t delim
35026' <conf$$subs.awk | sed '
35027/^[^""]/{
35028 N
35029 s/\n//
35030}
35031' >>$CONFIG_STATUS || ac_write_fail=1
35032rm -f conf$$subs.awk
35033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35034_ACAWK
cristyda16f162011-02-19 23:52:17 +000035035cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035036 for (key in S) S_is_set[key] = 1
35037 FS = ""
35038
35039}
35040{
35041 line = $ 0
35042 nfields = split(line, field, "@")
35043 substed = 0
35044 len = length(field[1])
35045 for (i = 2; i < nfields; i++) {
35046 key = field[i]
35047 keylen = length(key)
35048 if (S_is_set[key]) {
35049 value = S[key]
35050 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35051 len += length(value) + length(field[++i])
35052 substed = 1
35053 } else
35054 len += 1 + keylen
35055 }
35056
35057 print line
35058}
35059
35060_ACAWK
35061_ACEOF
35062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35063if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35065else
35066 cat
cristyda16f162011-02-19 23:52:17 +000035067fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035068 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035069_ACEOF
35070
cristy98dddb52010-11-04 00:30:15 +000035071# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35072# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035073# trailing colons and then remove the whole line if VPATH becomes empty
35074# (actually we leave an empty line to preserve line numbers).
35075if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035076 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35077h
35078s///
35079s/^/:/
35080s/[ ]*$/:/
35081s/:\$(srcdir):/:/g
35082s/:\${srcdir}:/:/g
35083s/:@srcdir@:/:/g
35084s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035085s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035086x
35087s/\(=[ ]*\).*/\1/
35088G
35089s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035090s/^[^=]*=[ ]*$//
35091}'
35092fi
35093
35094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35095fi # test -n "$CONFIG_FILES"
35096
35097# Set up the scripts for CONFIG_HEADERS section.
35098# No need to generate them if there are no CONFIG_HEADERS.
35099# This happens for instance with `./config.status Makefile'.
35100if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035101cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035102BEGIN {
35103_ACEOF
35104
35105# Transform confdefs.h into an awk script `defines.awk', embedded as
35106# here-document in config.status, that substitutes the proper values into
35107# config.h.in to produce config.h.
35108
35109# Create a delimiter string that does not exist in confdefs.h, to ease
35110# handling of long lines.
35111ac_delim='%!_!# '
35112for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035113 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35114 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035115 break
35116 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035117 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035118 else
35119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35120 fi
35121done
35122
35123# For the awk script, D is an array of macro values keyed by name,
35124# likewise P contains macro parameters if any. Preserve backslash
35125# newline sequences.
35126
35127ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35128sed -n '
35129s/.\{148\}/&'"$ac_delim"'/g
35130t rset
35131:rset
35132s/^[ ]*#[ ]*define[ ][ ]*/ /
35133t def
35134d
35135:def
35136s/\\$//
35137t bsnl
35138s/["\\]/\\&/g
35139s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35140D["\1"]=" \3"/p
35141s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35142d
35143:bsnl
35144s/["\\]/\\&/g
35145s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35146D["\1"]=" \3\\\\\\n"\\/p
35147t cont
35148s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35149t cont
35150d
35151:cont
35152n
35153s/.\{148\}/&'"$ac_delim"'/g
35154t clear
35155:clear
35156s/\\$//
35157t bsnlc
35158s/["\\]/\\&/g; s/^/"/; s/$/"/p
35159d
35160:bsnlc
35161s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35162b cont
35163' <confdefs.h | sed '
35164s/'"$ac_delim"'/"\\\
35165"/g' >>$CONFIG_STATUS || ac_write_fail=1
35166
35167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35168 for (key in D) D_is_set[key] = 1
35169 FS = ""
35170}
35171/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35172 line = \$ 0
35173 split(line, arg, " ")
35174 if (arg[1] == "#") {
35175 defundef = arg[2]
35176 mac1 = arg[3]
35177 } else {
35178 defundef = substr(arg[1], 2)
35179 mac1 = arg[2]
35180 }
35181 split(mac1, mac2, "(") #)
35182 macro = mac2[1]
35183 prefix = substr(line, 1, index(line, defundef) - 1)
35184 if (D_is_set[macro]) {
35185 # Preserve the white space surrounding the "#".
35186 print prefix "define", macro P[macro] D[macro]
35187 next
35188 } else {
35189 # Replace #undef with comments. This is necessary, for example,
35190 # in the case of _POSIX_SOURCE, which is predefined and required
35191 # on some systems where configure will not decide to define it.
35192 if (defundef == "undef") {
35193 print "/*", prefix defundef, macro, "*/"
35194 next
35195 }
35196 }
35197}
35198{ print }
35199_ACAWK
35200_ACEOF
35201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035202 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035203fi # test -n "$CONFIG_HEADERS"
35204
35205
35206eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35207shift
35208for ac_tag
35209do
35210 case $ac_tag in
35211 :[FHLC]) ac_mode=$ac_tag; continue;;
35212 esac
35213 case $ac_mode$ac_tag in
35214 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035215 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035216 :[FH]-) ac_tag=-:-;;
35217 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35218 esac
35219 ac_save_IFS=$IFS
35220 IFS=:
35221 set x $ac_tag
35222 IFS=$ac_save_IFS
35223 shift
35224 ac_file=$1
35225 shift
35226
35227 case $ac_mode in
35228 :L) ac_source=$1;;
35229 :[FH])
35230 ac_file_inputs=
35231 for ac_f
35232 do
35233 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035234 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035235 *) # Look for the file first in the build tree, then in the source tree
35236 # (if the path is not absolute). The absolute path cannot be DOS-style,
35237 # because $ac_f cannot contain `:'.
35238 test -f "$ac_f" ||
35239 case $ac_f in
35240 [\\/$]*) false;;
35241 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35242 esac ||
cristy98dddb52010-11-04 00:30:15 +000035243 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035244 esac
35245 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035246 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035247 done
35248
35249 # Let's still pretend it is `configure' which instantiates (i.e., don't
35250 # use $as_me), people would be surprised to read:
35251 # /* config.h. Generated by config.status. */
35252 configure_input='Generated from '`
35253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35254 `' by configure.'
35255 if test x"$ac_file" != x-; then
35256 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035258$as_echo "$as_me: creating $ac_file" >&6;}
35259 fi
35260 # Neutralize special characters interpreted by sed in replacement strings.
35261 case $configure_input in #(
35262 *\&* | *\|* | *\\* )
35263 ac_sed_conf_input=`$as_echo "$configure_input" |
35264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35265 *) ac_sed_conf_input=$configure_input;;
35266 esac
35267
35268 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035269 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035271 esac
35272 ;;
35273 esac
35274
35275 ac_dir=`$as_dirname -- "$ac_file" ||
35276$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35277 X"$ac_file" : 'X\(//\)[^/]' \| \
35278 X"$ac_file" : 'X\(//\)$' \| \
35279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35280$as_echo X"$ac_file" |
35281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35282 s//\1/
35283 q
35284 }
35285 /^X\(\/\/\)[^/].*/{
35286 s//\1/
35287 q
35288 }
35289 /^X\(\/\/\)$/{
35290 s//\1/
35291 q
35292 }
35293 /^X\(\/\).*/{
35294 s//\1/
35295 q
35296 }
35297 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035298 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035299 ac_builddir=.
35300
35301case "$ac_dir" in
35302.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35303*)
35304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35305 # A ".." for each directory in $ac_dir_suffix.
35306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35307 case $ac_top_builddir_sub in
35308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35310 esac ;;
35311esac
35312ac_abs_top_builddir=$ac_pwd
35313ac_abs_builddir=$ac_pwd$ac_dir_suffix
35314# for backward compatibility:
35315ac_top_builddir=$ac_top_build_prefix
35316
35317case $srcdir in
35318 .) # We are building in place.
35319 ac_srcdir=.
35320 ac_top_srcdir=$ac_top_builddir_sub
35321 ac_abs_top_srcdir=$ac_pwd ;;
35322 [\\/]* | ?:[\\/]* ) # Absolute name.
35323 ac_srcdir=$srcdir$ac_dir_suffix;
35324 ac_top_srcdir=$srcdir
35325 ac_abs_top_srcdir=$srcdir ;;
35326 *) # Relative name.
35327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35328 ac_top_srcdir=$ac_top_build_prefix$srcdir
35329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35330esac
35331ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35332
35333
35334 case $ac_mode in
35335 :F)
35336 #
35337 # CONFIG_FILE
35338 #
35339
35340 case $INSTALL in
35341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35343 esac
cristy73bd4a52010-10-05 11:24:23 +000035344 ac_MKDIR_P=$MKDIR_P
35345 case $MKDIR_P in
35346 [\\/$]* | ?:[\\/]* ) ;;
35347 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35348 esac
cristy3ed852e2009-09-05 21:47:34 +000035349_ACEOF
35350
35351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35352# If the template does not know about datarootdir, expand it.
35353# FIXME: This hack should be removed a few years after 2.60.
35354ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035355ac_sed_dataroot='
35356/datarootdir/ {
35357 p
35358 q
35359}
35360/@datadir@/p
35361/@docdir@/p
35362/@infodir@/p
35363/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035364/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035365case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35366*datarootdir*) ac_datarootdir_seen=yes;;
35367*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035369$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35370_ACEOF
35371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35372 ac_datarootdir_hack='
35373 s&@datadir@&$datadir&g
35374 s&@docdir@&$docdir&g
35375 s&@infodir@&$infodir&g
35376 s&@localedir@&$localedir&g
35377 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035378 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035379esac
35380_ACEOF
35381
35382# Neutralize VPATH when `$srcdir' = `.'.
35383# Shell code in configure.ac might set extrasub.
35384# FIXME: do we really want to maintain this feature?
35385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35386ac_sed_extra="$ac_vpsub
35387$extrasub
35388_ACEOF
35389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35390:t
35391/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35392s|@configure_input@|$ac_sed_conf_input|;t t
35393s&@top_builddir@&$ac_top_builddir_sub&;t t
35394s&@top_build_prefix@&$ac_top_build_prefix&;t t
35395s&@srcdir@&$ac_srcdir&;t t
35396s&@abs_srcdir@&$ac_abs_srcdir&;t t
35397s&@top_srcdir@&$ac_top_srcdir&;t t
35398s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35399s&@builddir@&$ac_builddir&;t t
35400s&@abs_builddir@&$ac_abs_builddir&;t t
35401s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35402s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035403s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035404$ac_datarootdir_hack
35405"
cristyda16f162011-02-19 23:52:17 +000035406eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35407 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035408
35409test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035410 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35411 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35412 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035414which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035415$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035416which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035417
cristyda16f162011-02-19 23:52:17 +000035418 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035419 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035420 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35421 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035422 esac \
cristy98dddb52010-11-04 00:30:15 +000035423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035424 ;;
35425 :H)
35426 #
35427 # CONFIG_HEADER
35428 #
35429 if test x"$ac_file" != x-; then
35430 {
35431 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035432 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35433 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035435 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035436 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035437$as_echo "$as_me: $ac_file is unchanged" >&6;}
35438 else
35439 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035440 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035442 fi
35443 else
35444 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035445 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035446 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035447 fi
cristy73bd4a52010-10-05 11:24:23 +000035448# Compute "$ac_file"'s index in $config_headers.
35449_am_arg="$ac_file"
35450_am_stamp_count=1
35451for _am_header in $config_headers :; do
35452 case $_am_header in
35453 $_am_arg | $_am_arg:* )
35454 break ;;
35455 * )
35456 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35457 esac
35458done
35459echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35460$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35461 X"$_am_arg" : 'X\(//\)[^/]' \| \
35462 X"$_am_arg" : 'X\(//\)$' \| \
35463 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35464$as_echo X"$_am_arg" |
35465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35466 s//\1/
35467 q
35468 }
35469 /^X\(\/\/\)[^/].*/{
35470 s//\1/
35471 q
35472 }
35473 /^X\(\/\/\)$/{
35474 s//\1/
35475 q
35476 }
35477 /^X\(\/\).*/{
35478 s//\1/
35479 q
35480 }
35481 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035482 ;;
35483
cristy8b350f62009-11-15 23:12:43 +000035484 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035485$as_echo "$as_me: executing $ac_file commands" >&6;}
35486 ;;
35487 esac
35488
35489
35490 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035491 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35492ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35493ac_prefix_conf_PKG=`echo MagickCore`
35494ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35495ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35496ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35497if test ".$ac_prefix_conf_INP" = "."; then
35498 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35499 case "$ac_file" in
35500 *.h) ac_prefix_conf_INP=$ac_file ;;
35501 *)
35502 esac
35503 test ".$ac_prefix_conf_INP" != "." && break
35504 done
35505fi
35506if test ".$ac_prefix_conf_INP" = "."; then
35507 case "$ac_prefix_conf_OUT" in
35508 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35509 ;;
35510 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35511 ;;
35512 *) ac_prefix_conf_INP=config.h
35513 ;;
35514 esac
35515fi
35516if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035517 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035518else
35519 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35520 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35521 fi fi
35522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35523$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35524 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035525 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35526 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35527 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35528 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35529 $as_echo "#endif/" >> conftest.prefix
35530 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35531 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35532 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035533 # now executing _script on _DEF input to create _OUT output file
35534 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35535 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35536 echo ' ' >>$tmp/pconfig.h
35537 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35538
35539 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35540 echo ' ' >>$tmp/pconfig.h
35541 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35542 echo "#endif" >>$tmp/pconfig.h
35543 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35544 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35545$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35546 else
35547 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35548$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35549 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35550 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35551 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35552$as_echo X"$ac_prefix_conf_OUT" |
35553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35554 s//\1/
35555 q
35556 }
35557 /^X\(\/\/\)[^/].*/{
35558 s//\1/
35559 q
35560 }
35561 /^X\(\/\/\)$/{
35562 s//\1/
35563 q
35564 }
35565 /^X\(\/\).*/{
35566 s//\1/
35567 q
35568 }
35569 s/.*/./; q'`
35570 as_dir="$ac_dir"; as_fn_mkdir_p
35571 rm -f "$ac_prefix_conf_OUT"
35572 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35573 fi
35574 cp conftest.prefix _configs.sed
35575 else
cristy98dddb52010-11-04 00:30:15 +000035576 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 +000035577 fi
35578 rm -f conftest.*
35579fi
35580 ;;
35581 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35582 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35583 # are listed without --file. Let's play safe and only enable the eval
35584 # if we detect the quoting.
35585 case $CONFIG_FILES in
35586 *\'*) eval set x "$CONFIG_FILES" ;;
35587 *) set x $CONFIG_FILES ;;
35588 esac
35589 shift
35590 for mf
35591 do
35592 # Strip MF so we end up with the name of the file.
35593 mf=`echo "$mf" | sed -e 's/:.*$//'`
35594 # Check whether this is an Automake generated Makefile or not.
35595 # We used to match only the files named `Makefile.in', but
35596 # some people rename them; so instead we look at the file content.
35597 # Grep'ing the first line is not enough: some people post-process
35598 # each Makefile.in and add a new line on top of each file to say so.
35599 # Grep'ing the whole file is not good either: AIX grep has a line
35600 # limit of 2048, but all sed's we know have understand at least 4000.
35601 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35602 dirpart=`$as_dirname -- "$mf" ||
35603$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35604 X"$mf" : 'X\(//\)[^/]' \| \
35605 X"$mf" : 'X\(//\)$' \| \
35606 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35607$as_echo X"$mf" |
35608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35609 s//\1/
35610 q
35611 }
35612 /^X\(\/\/\)[^/].*/{
35613 s//\1/
35614 q
35615 }
35616 /^X\(\/\/\)$/{
35617 s//\1/
35618 q
35619 }
35620 /^X\(\/\).*/{
35621 s//\1/
35622 q
35623 }
35624 s/.*/./; q'`
35625 else
35626 continue
35627 fi
35628 # Extract the definition of DEPDIR, am__include, and am__quote
35629 # from the Makefile without running `make'.
35630 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35631 test -z "$DEPDIR" && continue
35632 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35633 test -z "am__include" && continue
35634 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35635 # When using ansi2knr, U may be empty or an underscore; expand it
35636 U=`sed -n 's/^U = //p' < "$mf"`
35637 # Find all dependency output files, they are included files with
35638 # $(DEPDIR) in their names. We invoke sed twice because it is the
35639 # simplest approach to changing $(DEPDIR) to its actual value in the
35640 # expansion.
35641 for file in `sed -n "
35642 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35643 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35644 # Make sure the directory exists.
35645 test -f "$dirpart/$file" && continue
35646 fdir=`$as_dirname -- "$file" ||
35647$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35648 X"$file" : 'X\(//\)[^/]' \| \
35649 X"$file" : 'X\(//\)$' \| \
35650 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35651$as_echo X"$file" |
35652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35653 s//\1/
35654 q
35655 }
35656 /^X\(\/\/\)[^/].*/{
35657 s//\1/
35658 q
35659 }
35660 /^X\(\/\/\)$/{
35661 s//\1/
35662 q
35663 }
35664 /^X\(\/\).*/{
35665 s//\1/
35666 q
35667 }
35668 s/.*/./; q'`
35669 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35670 # echo "creating $dirpart/$file"
35671 echo '# dummy' > "$dirpart/$file"
35672 done
35673 done
35674}
35675 ;;
35676 "libtool":C)
35677
35678 # See if we are running on zsh, and set the options which allow our
35679 # commands through without removal of \ escapes.
35680 if test -n "${ZSH_VERSION+set}" ; then
35681 setopt NO_GLOB_SUBST
35682 fi
35683
35684 cfgfile="${ofile}T"
35685 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35686 $RM "$cfgfile"
35687
35688 cat <<_LT_EOF >> "$cfgfile"
35689#! $SHELL
35690
35691# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35692# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35693# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35694# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35695#
35696# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035697# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35698# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035699# Written by Gordon Matzigkeit, 1996
35700#
35701# This file is part of GNU Libtool.
35702#
35703# GNU Libtool is free software; you can redistribute it and/or
35704# modify it under the terms of the GNU General Public License as
35705# published by the Free Software Foundation; either version 2 of
35706# the License, or (at your option) any later version.
35707#
35708# As a special exception to the GNU General Public License,
35709# if you distribute this file as part of a program or library that
35710# is built using GNU Libtool, you may include this file under the
35711# same distribution terms that you use for the rest of that program.
35712#
35713# GNU Libtool is distributed in the hope that it will be useful,
35714# but WITHOUT ANY WARRANTY; without even the implied warranty of
35715# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35716# GNU General Public License for more details.
35717#
35718# You should have received a copy of the GNU General Public License
35719# along with GNU Libtool; see the file COPYING. If not, a copy
35720# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35721# obtained by writing to the Free Software Foundation, Inc.,
35722# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35723
35724
35725# The names of the tagged configurations supported by this script.
35726available_tags="CXX "
35727
35728# ### BEGIN LIBTOOL CONFIG
35729
35730# A sed program that does not truncate output.
35731SED=$lt_SED
35732
35733# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35734Xsed="\$SED -e 1s/^X//"
35735
35736# A grep program that handles long lines.
35737GREP=$lt_GREP
35738
35739# An ERE matcher.
35740EGREP=$lt_EGREP
35741
35742# A literal string matcher.
35743FGREP=$lt_FGREP
35744
cristy0c60a692010-11-04 01:09:47 +000035745# Shell to use when invoking shell scripts.
35746SHELL=$lt_SHELL
35747
35748# An echo program that protects backslashes.
35749ECHO=$lt_ECHO
35750
cristy73bd4a52010-10-05 11:24:23 +000035751# Which release of libtool.m4 was used?
35752macro_version=$macro_version
35753macro_revision=$macro_revision
35754
35755# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035756AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035757
35758# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035759DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035760
35761# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035762OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035763
35764# Whether or not to build shared libraries.
35765build_libtool_libs=$enable_shared
35766
35767# Whether or not to build static libraries.
35768build_old_libs=$enable_static
35769
35770# What type of objects to build.
35771pic_mode=$pic_mode
35772
35773# Whether or not to optimize for fast installation.
35774fast_install=$enable_fast_install
35775
35776# The host system.
35777host_alias=$host_alias
35778host=$host
35779host_os=$host_os
35780
35781# The build system.
35782build_alias=$build_alias
35783build=$build
35784build_os=$build_os
35785
35786# A BSD- or MS-compatible name lister.
35787NM=$lt_NM
35788
35789# Whether we need soft or hard links.
35790LN_S=$lt_LN_S
35791
35792# What is the maximum length of a command?
35793max_cmd_len=$max_cmd_len
35794
35795# Object file suffix (normally "o").
35796objext=$ac_objext
35797
35798# Executable file suffix (normally "").
35799exeext=$exeext
35800
35801# whether the shell understands "unset".
35802lt_unset=$lt_unset
35803
35804# turn spaces into newlines.
35805SP2NL=$lt_lt_SP2NL
35806
35807# turn newlines into spaces.
35808NL2SP=$lt_lt_NL2SP
35809
cristyda16f162011-02-19 23:52:17 +000035810# convert \$build file names to \$host format.
35811to_host_file_cmd=$lt_cv_to_host_file_cmd
35812
35813# convert \$build files to toolchain format.
35814to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35815
cristy73bd4a52010-10-05 11:24:23 +000035816# Method to check whether dependent libraries are shared objects.
35817deplibs_check_method=$lt_deplibs_check_method
35818
cristyda16f162011-02-19 23:52:17 +000035819# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035820file_magic_cmd=$lt_file_magic_cmd
35821
cristyda16f162011-02-19 23:52:17 +000035822# How to find potential files when deplibs_check_method = "file_magic".
35823file_magic_glob=$lt_file_magic_glob
35824
35825# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35826want_nocaseglob=$lt_want_nocaseglob
35827
35828# Command to associate shared and link libraries.
35829sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35830
cristy73bd4a52010-10-05 11:24:23 +000035831# The archiver.
35832AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035833
35834# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035835AR_FLAGS=$lt_AR_FLAGS
35836
cristyda16f162011-02-19 23:52:17 +000035837# How to feed a file listing to the archiver.
35838archiver_list_spec=$lt_archiver_list_spec
35839
cristy73bd4a52010-10-05 11:24:23 +000035840# A symbol stripping program.
35841STRIP=$lt_STRIP
35842
35843# Commands used to install an old-style archive.
35844RANLIB=$lt_RANLIB
35845old_postinstall_cmds=$lt_old_postinstall_cmds
35846old_postuninstall_cmds=$lt_old_postuninstall_cmds
35847
cristy0c60a692010-11-04 01:09:47 +000035848# Whether to use a lock for old archive extraction.
35849lock_old_archive_extraction=$lock_old_archive_extraction
35850
cristy73bd4a52010-10-05 11:24:23 +000035851# A C compiler.
35852LTCC=$lt_CC
35853
35854# LTCC compiler flags.
35855LTCFLAGS=$lt_CFLAGS
35856
35857# Take the output of nm and produce a listing of raw symbols and C names.
35858global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35859
35860# Transform the output of nm in a proper C declaration.
35861global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35862
35863# Transform the output of nm in a C name address pair.
35864global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35865
35866# Transform the output of nm in a C name address pair when lib prefix is needed.
35867global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35868
cristyda16f162011-02-19 23:52:17 +000035869# Specify filename containing input files for \$NM.
35870nm_file_list_spec=$lt_nm_file_list_spec
35871
35872# The root where to search for dependent libraries,and in which our libraries should be installed.
35873lt_sysroot=$lt_sysroot
35874
cristy73bd4a52010-10-05 11:24:23 +000035875# The name of the directory that contains temporary libtool files.
35876objdir=$objdir
35877
cristy73bd4a52010-10-05 11:24:23 +000035878# Used to examine libraries when file_magic_cmd begins with "file".
35879MAGIC_CMD=$MAGIC_CMD
35880
35881# Must we lock files when doing compilation?
35882need_locks=$lt_need_locks
35883
cristyda16f162011-02-19 23:52:17 +000035884# Manifest tool.
35885MANIFEST_TOOL=$lt_MANIFEST_TOOL
35886
cristy73bd4a52010-10-05 11:24:23 +000035887# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35888DSYMUTIL=$lt_DSYMUTIL
35889
35890# Tool to change global to local symbols on Mac OS X.
35891NMEDIT=$lt_NMEDIT
35892
35893# Tool to manipulate fat objects and archives on Mac OS X.
35894LIPO=$lt_LIPO
35895
35896# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35897OTOOL=$lt_OTOOL
35898
35899# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35900OTOOL64=$lt_OTOOL64
35901
35902# Old archive suffix (normally "a").
35903libext=$libext
35904
35905# Shared library suffix (normally ".so").
35906shrext_cmds=$lt_shrext_cmds
35907
35908# The commands to extract the exported symbol list from a shared archive.
35909extract_expsyms_cmds=$lt_extract_expsyms_cmds
35910
35911# Variables whose values should be saved in libtool wrapper scripts and
35912# restored at link time.
35913variables_saved_for_relink=$lt_variables_saved_for_relink
35914
35915# Do we need the "lib" prefix for modules?
35916need_lib_prefix=$need_lib_prefix
35917
35918# Do we need a version for libraries?
35919need_version=$need_version
35920
35921# Library versioning type.
35922version_type=$version_type
35923
35924# Shared library runtime path variable.
35925runpath_var=$runpath_var
35926
35927# Shared library path variable.
35928shlibpath_var=$shlibpath_var
35929
35930# Is shlibpath searched before the hard-coded library search path?
35931shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35932
35933# Format of library name prefix.
35934libname_spec=$lt_libname_spec
35935
35936# List of archive names. First name is the real one, the rest are links.
35937# The last name is the one that the linker finds with -lNAME
35938library_names_spec=$lt_library_names_spec
35939
35940# The coded name of the library, if different from the real name.
35941soname_spec=$lt_soname_spec
35942
cristy0c60a692010-11-04 01:09:47 +000035943# Permission mode override for installation of shared libraries.
35944install_override_mode=$lt_install_override_mode
35945
cristy73bd4a52010-10-05 11:24:23 +000035946# Command to use after installation of a shared archive.
35947postinstall_cmds=$lt_postinstall_cmds
35948
35949# Command to use after uninstallation of a shared archive.
35950postuninstall_cmds=$lt_postuninstall_cmds
35951
35952# Commands used to finish a libtool library installation in a directory.
35953finish_cmds=$lt_finish_cmds
35954
35955# As "finish_cmds", except a single script fragment to be evaled but
35956# not shown.
35957finish_eval=$lt_finish_eval
35958
35959# Whether we should hardcode library paths into libraries.
35960hardcode_into_libs=$hardcode_into_libs
35961
35962# Compile-time system search path for libraries.
35963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35964
35965# Run-time system search path for libraries.
35966sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35967
35968# Whether dlopen is supported.
35969dlopen_support=$enable_dlopen
35970
35971# Whether dlopen of programs is supported.
35972dlopen_self=$enable_dlopen_self
35973
35974# Whether dlopen of statically linked programs is supported.
35975dlopen_self_static=$enable_dlopen_self_static
35976
35977# Commands to strip libraries.
35978old_striplib=$lt_old_striplib
35979striplib=$lt_striplib
35980
35981
35982# The linker used to build libraries.
35983LD=$lt_LD
35984
cristy0c60a692010-11-04 01:09:47 +000035985# How to create reloadable object files.
35986reload_flag=$lt_reload_flag
35987reload_cmds=$lt_reload_cmds
35988
cristy73bd4a52010-10-05 11:24:23 +000035989# Commands used to build an old-style archive.
35990old_archive_cmds=$lt_old_archive_cmds
35991
35992# A language specific compiler.
35993CC=$lt_compiler
35994
35995# Is the compiler the GNU compiler?
35996with_gcc=$GCC
35997
35998# Compiler flag to turn off builtin functions.
35999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36000
cristy73bd4a52010-10-05 11:24:23 +000036001# Additional compiler flags for building library objects.
36002pic_flag=$lt_lt_prog_compiler_pic
36003
cristyda16f162011-02-19 23:52:17 +000036004# How to pass a linker flag through the compiler.
36005wl=$lt_lt_prog_compiler_wl
36006
cristy73bd4a52010-10-05 11:24:23 +000036007# Compiler flag to prevent dynamic linking.
36008link_static_flag=$lt_lt_prog_compiler_static
36009
36010# Does compiler simultaneously support -c and -o options?
36011compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36012
36013# Whether or not to add -lc for building shared libraries.
36014build_libtool_need_lc=$archive_cmds_need_lc
36015
36016# Whether or not to disallow shared libs when runtime libs are static.
36017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36018
36019# Compiler flag to allow reflexive dlopens.
36020export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36021
36022# Compiler flag to generate shared objects directly from archives.
36023whole_archive_flag_spec=$lt_whole_archive_flag_spec
36024
36025# Whether the compiler copes with passing no objects directly.
36026compiler_needs_object=$lt_compiler_needs_object
36027
36028# Create an old-style archive from a shared archive.
36029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36030
36031# Create a temporary old-style archive to link instead of a shared archive.
36032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36033
36034# Commands used to build a shared archive.
36035archive_cmds=$lt_archive_cmds
36036archive_expsym_cmds=$lt_archive_expsym_cmds
36037
36038# Commands used to build a loadable module if different from building
36039# a shared archive.
36040module_cmds=$lt_module_cmds
36041module_expsym_cmds=$lt_module_expsym_cmds
36042
36043# Whether we are building with GNU ld or not.
36044with_gnu_ld=$lt_with_gnu_ld
36045
36046# Flag that allows shared libraries with undefined symbols to be built.
36047allow_undefined_flag=$lt_allow_undefined_flag
36048
36049# Flag that enforces no undefined symbols.
36050no_undefined_flag=$lt_no_undefined_flag
36051
36052# Flag to hardcode \$libdir into a binary during linking.
36053# This must work even if \$libdir does not exist
36054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36055
36056# If ld is used when linking, flag to hardcode \$libdir into a binary
36057# during linking. This must work even if \$libdir does not exist.
36058hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36059
36060# Whether we need a single "-rpath" flag with a separated argument.
36061hardcode_libdir_separator=$lt_hardcode_libdir_separator
36062
36063# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36064# DIR into the resulting binary.
36065hardcode_direct=$hardcode_direct
36066
36067# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36068# DIR into the resulting binary and the resulting library dependency is
36069# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36070# library is relocated.
36071hardcode_direct_absolute=$hardcode_direct_absolute
36072
36073# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36074# into the resulting binary.
36075hardcode_minus_L=$hardcode_minus_L
36076
36077# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36078# into the resulting binary.
36079hardcode_shlibpath_var=$hardcode_shlibpath_var
36080
36081# Set to "yes" if building a shared library automatically hardcodes DIR
36082# into the library and all subsequent libraries and executables linked
36083# against it.
36084hardcode_automatic=$hardcode_automatic
36085
36086# Set to yes if linker adds runtime paths of dependent libraries
36087# to runtime path list.
36088inherit_rpath=$inherit_rpath
36089
36090# Whether libtool must link a program against all its dependency libraries.
36091link_all_deplibs=$link_all_deplibs
36092
cristy73bd4a52010-10-05 11:24:23 +000036093# Set to "yes" if exported symbols are required.
36094always_export_symbols=$always_export_symbols
36095
36096# The commands to list exported symbols.
36097export_symbols_cmds=$lt_export_symbols_cmds
36098
36099# Symbols that should not be listed in the preloaded symbols.
36100exclude_expsyms=$lt_exclude_expsyms
36101
36102# Symbols that must always be exported.
36103include_expsyms=$lt_include_expsyms
36104
36105# Commands necessary for linking programs (against libraries) with templates.
36106prelink_cmds=$lt_prelink_cmds
36107
cristyda16f162011-02-19 23:52:17 +000036108# Commands necessary for finishing linking programs.
36109postlink_cmds=$lt_postlink_cmds
36110
cristy73bd4a52010-10-05 11:24:23 +000036111# Specify filename containing input files.
36112file_list_spec=$lt_file_list_spec
36113
36114# How to hardcode a shared library path into an executable.
36115hardcode_action=$hardcode_action
36116
36117# The directories searched by this compiler when creating a shared library.
36118compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36119
36120# Dependencies to place before and after the objects being linked to
36121# create a shared library.
36122predep_objects=$lt_predep_objects
36123postdep_objects=$lt_postdep_objects
36124predeps=$lt_predeps
36125postdeps=$lt_postdeps
36126
36127# The library search path used internally by the compiler when linking
36128# a shared library.
36129compiler_lib_search_path=$lt_compiler_lib_search_path
36130
36131# ### END LIBTOOL CONFIG
36132
36133_LT_EOF
36134
36135 case $host_os in
36136 aix3*)
36137 cat <<\_LT_EOF >> "$cfgfile"
36138# AIX sometimes has problems with the GCC collect2 program. For some
36139# reason, if we set the COLLECT_NAMES environment variable, the problems
36140# vanish in a puff of smoke.
36141if test "X${COLLECT_NAMES+set}" != Xset; then
36142 COLLECT_NAMES=
36143 export COLLECT_NAMES
36144fi
36145_LT_EOF
36146 ;;
36147 esac
36148
36149
36150ltmain="$ac_aux_dir/ltmain.sh"
36151
36152
36153 # We use sed instead of cat because bash on DJGPP gets confused if
36154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36155 # text mode, it properly converts lines to CR/LF. This bash problem
36156 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036157 sed '$q' "$ltmain" >> "$cfgfile" \
36158 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036159
cristyda16f162011-02-19 23:52:17 +000036160 if test x"$xsi_shell" = xyes; then
36161 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36162func_dirname ()\
36163{\
36164\ case ${1} in\
36165\ */*) func_dirname_result="${1%/*}${2}" ;;\
36166\ * ) func_dirname_result="${3}" ;;\
36167\ esac\
36168} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36169 && mv -f "$cfgfile.tmp" "$cfgfile" \
36170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36171test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036172
36173
cristyda16f162011-02-19 23:52:17 +000036174 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36175func_basename ()\
36176{\
36177\ func_basename_result="${1##*/}"\
36178} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36179 && mv -f "$cfgfile.tmp" "$cfgfile" \
36180 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36181test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036182
36183
cristyda16f162011-02-19 23:52:17 +000036184 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36185func_dirname_and_basename ()\
36186{\
36187\ case ${1} in\
36188\ */*) func_dirname_result="${1%/*}${2}" ;;\
36189\ * ) func_dirname_result="${3}" ;;\
36190\ esac\
36191\ func_basename_result="${1##*/}"\
36192} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36193 && mv -f "$cfgfile.tmp" "$cfgfile" \
36194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36195test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036196
cristyda16f162011-02-19 23:52:17 +000036197
36198 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36199func_stripname ()\
36200{\
36201\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36202\ # positional parameters, so assign one to ordinary parameter first.\
36203\ func_stripname_result=${3}\
36204\ func_stripname_result=${func_stripname_result#"${1}"}\
36205\ func_stripname_result=${func_stripname_result%"${2}"}\
36206} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36207 && mv -f "$cfgfile.tmp" "$cfgfile" \
36208 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36209test 0 -eq $? || _lt_function_replace_fail=:
36210
36211
36212 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36213func_split_long_opt ()\
36214{\
36215\ func_split_long_opt_name=${1%%=*}\
36216\ func_split_long_opt_arg=${1#*=}\
36217} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36218 && mv -f "$cfgfile.tmp" "$cfgfile" \
36219 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36220test 0 -eq $? || _lt_function_replace_fail=:
36221
36222
36223 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36224func_split_short_opt ()\
36225{\
36226\ func_split_short_opt_arg=${1#??}\
36227\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36228} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36229 && mv -f "$cfgfile.tmp" "$cfgfile" \
36230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36231test 0 -eq $? || _lt_function_replace_fail=:
36232
36233
36234 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36235func_lo2o ()\
36236{\
36237\ case ${1} in\
36238\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36239\ *) func_lo2o_result=${1} ;;\
36240\ esac\
36241} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36242 && mv -f "$cfgfile.tmp" "$cfgfile" \
36243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36244test 0 -eq $? || _lt_function_replace_fail=:
36245
36246
36247 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36248func_xform ()\
36249{\
36250 func_xform_result=${1%.*}.lo\
36251} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36252 && mv -f "$cfgfile.tmp" "$cfgfile" \
36253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36254test 0 -eq $? || _lt_function_replace_fail=:
36255
36256
36257 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36258func_arith ()\
36259{\
36260 func_arith_result=$(( $* ))\
36261} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36262 && mv -f "$cfgfile.tmp" "$cfgfile" \
36263 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36264test 0 -eq $? || _lt_function_replace_fail=:
36265
36266
36267 sed -e '/^func_len ()$/,/^} # func_len /c\
36268func_len ()\
36269{\
36270 func_len_result=${#1}\
36271} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36272 && mv -f "$cfgfile.tmp" "$cfgfile" \
36273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36274test 0 -eq $? || _lt_function_replace_fail=:
36275
36276fi
36277
36278if test x"$lt_shell_append" = xyes; then
36279 sed -e '/^func_append ()$/,/^} # func_append /c\
36280func_append ()\
36281{\
36282 eval "${1}+=\\${2}"\
36283} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36284 && mv -f "$cfgfile.tmp" "$cfgfile" \
36285 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36286test 0 -eq $? || _lt_function_replace_fail=:
36287
36288
36289 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36290func_append_quoted ()\
36291{\
36292\ func_quote_for_eval "${2}"\
36293\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36294} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36295 && mv -f "$cfgfile.tmp" "$cfgfile" \
36296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36297test 0 -eq $? || _lt_function_replace_fail=:
36298
36299
36300 # Save a `func_append' function call where possible by direct use of '+='
36301 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36302 && mv -f "$cfgfile.tmp" "$cfgfile" \
36303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36304 test 0 -eq $? || _lt_function_replace_fail=:
36305else
36306 # Save a `func_append' function call even when '+=' is not available
36307 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36308 && mv -f "$cfgfile.tmp" "$cfgfile" \
36309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36310 test 0 -eq $? || _lt_function_replace_fail=:
36311fi
36312
36313if test x"$_lt_function_replace_fail" = x":"; then
36314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36315$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36316fi
36317
36318
36319 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036320 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36321 chmod +x "$ofile"
36322
36323
36324 cat <<_LT_EOF >> "$ofile"
36325
36326# ### BEGIN LIBTOOL TAG CONFIG: CXX
36327
36328# The linker used to build libraries.
36329LD=$lt_LD_CXX
36330
cristy0c60a692010-11-04 01:09:47 +000036331# How to create reloadable object files.
36332reload_flag=$lt_reload_flag_CXX
36333reload_cmds=$lt_reload_cmds_CXX
36334
cristy73bd4a52010-10-05 11:24:23 +000036335# Commands used to build an old-style archive.
36336old_archive_cmds=$lt_old_archive_cmds_CXX
36337
36338# A language specific compiler.
36339CC=$lt_compiler_CXX
36340
36341# Is the compiler the GNU compiler?
36342with_gcc=$GCC_CXX
36343
36344# Compiler flag to turn off builtin functions.
36345no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36346
cristy73bd4a52010-10-05 11:24:23 +000036347# Additional compiler flags for building library objects.
36348pic_flag=$lt_lt_prog_compiler_pic_CXX
36349
cristyda16f162011-02-19 23:52:17 +000036350# How to pass a linker flag through the compiler.
36351wl=$lt_lt_prog_compiler_wl_CXX
36352
cristy73bd4a52010-10-05 11:24:23 +000036353# Compiler flag to prevent dynamic linking.
36354link_static_flag=$lt_lt_prog_compiler_static_CXX
36355
36356# Does compiler simultaneously support -c and -o options?
36357compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36358
36359# Whether or not to add -lc for building shared libraries.
36360build_libtool_need_lc=$archive_cmds_need_lc_CXX
36361
36362# Whether or not to disallow shared libs when runtime libs are static.
36363allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36364
36365# Compiler flag to allow reflexive dlopens.
36366export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36367
36368# Compiler flag to generate shared objects directly from archives.
36369whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36370
36371# Whether the compiler copes with passing no objects directly.
36372compiler_needs_object=$lt_compiler_needs_object_CXX
36373
36374# Create an old-style archive from a shared archive.
36375old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36376
36377# Create a temporary old-style archive to link instead of a shared archive.
36378old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36379
36380# Commands used to build a shared archive.
36381archive_cmds=$lt_archive_cmds_CXX
36382archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36383
36384# Commands used to build a loadable module if different from building
36385# a shared archive.
36386module_cmds=$lt_module_cmds_CXX
36387module_expsym_cmds=$lt_module_expsym_cmds_CXX
36388
36389# Whether we are building with GNU ld or not.
36390with_gnu_ld=$lt_with_gnu_ld_CXX
36391
36392# Flag that allows shared libraries with undefined symbols to be built.
36393allow_undefined_flag=$lt_allow_undefined_flag_CXX
36394
36395# Flag that enforces no undefined symbols.
36396no_undefined_flag=$lt_no_undefined_flag_CXX
36397
36398# Flag to hardcode \$libdir into a binary during linking.
36399# This must work even if \$libdir does not exist
36400hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36401
36402# If ld is used when linking, flag to hardcode \$libdir into a binary
36403# during linking. This must work even if \$libdir does not exist.
36404hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36405
36406# Whether we need a single "-rpath" flag with a separated argument.
36407hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36408
36409# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36410# DIR into the resulting binary.
36411hardcode_direct=$hardcode_direct_CXX
36412
36413# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36414# DIR into the resulting binary and the resulting library dependency is
36415# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36416# library is relocated.
36417hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36418
36419# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36420# into the resulting binary.
36421hardcode_minus_L=$hardcode_minus_L_CXX
36422
36423# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36424# into the resulting binary.
36425hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36426
36427# Set to "yes" if building a shared library automatically hardcodes DIR
36428# into the library and all subsequent libraries and executables linked
36429# against it.
36430hardcode_automatic=$hardcode_automatic_CXX
36431
36432# Set to yes if linker adds runtime paths of dependent libraries
36433# to runtime path list.
36434inherit_rpath=$inherit_rpath_CXX
36435
36436# Whether libtool must link a program against all its dependency libraries.
36437link_all_deplibs=$link_all_deplibs_CXX
36438
cristy73bd4a52010-10-05 11:24:23 +000036439# Set to "yes" if exported symbols are required.
36440always_export_symbols=$always_export_symbols_CXX
36441
36442# The commands to list exported symbols.
36443export_symbols_cmds=$lt_export_symbols_cmds_CXX
36444
36445# Symbols that should not be listed in the preloaded symbols.
36446exclude_expsyms=$lt_exclude_expsyms_CXX
36447
36448# Symbols that must always be exported.
36449include_expsyms=$lt_include_expsyms_CXX
36450
36451# Commands necessary for linking programs (against libraries) with templates.
36452prelink_cmds=$lt_prelink_cmds_CXX
36453
cristyda16f162011-02-19 23:52:17 +000036454# Commands necessary for finishing linking programs.
36455postlink_cmds=$lt_postlink_cmds_CXX
36456
cristy73bd4a52010-10-05 11:24:23 +000036457# Specify filename containing input files.
36458file_list_spec=$lt_file_list_spec_CXX
36459
36460# How to hardcode a shared library path into an executable.
36461hardcode_action=$hardcode_action_CXX
36462
36463# The directories searched by this compiler when creating a shared library.
36464compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36465
36466# Dependencies to place before and after the objects being linked to
36467# create a shared library.
36468predep_objects=$lt_predep_objects_CXX
36469postdep_objects=$lt_postdep_objects_CXX
36470predeps=$lt_predeps_CXX
36471postdeps=$lt_postdeps_CXX
36472
36473# The library search path used internally by the compiler when linking
36474# a shared library.
36475compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36476
36477# ### END LIBTOOL TAG CONFIG: CXX
36478_LT_EOF
36479
36480 ;;
cristy3ed852e2009-09-05 21:47:34 +000036481 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36482 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36483 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36484 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36485 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36486 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36487
36488 esac
36489done # for ac_tag
36490
36491
cristy8b350f62009-11-15 23:12:43 +000036492as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036493_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036494ac_clean_files=$ac_clean_files_save
36495
36496test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036497 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036498
36499
36500# configure is writing to config.log, and then calls config.status.
36501# config.status does its own redirection, appending to config.log.
36502# Unfortunately, on DOS this fails, as config.log is still kept open
36503# by configure, so config.status won't be able to write to it; its
36504# output is simply discarded. So we exec the FD to /dev/null,
36505# effectively closing config.log, so it can be properly (re)opened and
36506# appended to by config.status. When coming back to configure, we
36507# need to make the FD available again.
36508if test "$no_create" != yes; then
36509 ac_cs_success=:
36510 ac_config_status_args=
36511 test "$silent" = yes &&
36512 ac_config_status_args="$ac_config_status_args --quiet"
36513 exec 5>/dev/null
36514 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36515 exec 5>>config.log
36516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36517 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036518 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036519fi
36520if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036522$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36523fi
36524
36525
36526rm -f magick-version
36527
cristy430a7312010-01-21 20:44:04 +000036528result_dejavu_font_dir='none'
36529if test "${dejavu_font_dir}x" != 'x'; then
36530 result_dejavu_font_dir=$dejavu_font_dir
36531fi
36532
cristy3ed852e2009-09-05 21:47:34 +000036533result_ghostscript_font_dir='none'
36534if test "${ghostscript_font_dir}x" != 'x'; then
36535 result_ghostscript_font_dir=$ghostscript_font_dir
36536fi
36537
36538result_windows_font_dir='none'
36539if test "${windows_font_dir}x" != 'x'; then
36540 result_windows_font_dir=${windows_font_dir}
36541fi
36542
cristy8b350f62009-11-15 23:12:43 +000036543{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036544ImageMagick is configured as follows. Please verify that this configuration
36545matches your expectations.
36546
36547Host system type: $host
36548Build system type: $build
36549
36550 Option Value
36551-------------------------------------------------------------------------------
36552Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36553Static libraries --enable-static=$enable_static $libtool_build_static_libs
36554Module support --with-modules=$with_modules $with_modules
36555GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36556Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36557High Dynamic Range Imagery
36558 --enable-hdri=$enable_hdri $enable_hdri
36559
36560Delegate Configuration:
36561BZLIB --with-bzlib=$with_bzlib $have_bzlib
36562Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036563Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036564DJVU --with-djvu=$with_djvu $have_djvu
36565DPS --with-dps=$with_dps $have_dps
36566FFTW --with-fftw=$with_fftw $have_fftw
36567FlashPIX --with-fpx=$with_fpx $have_fpx
36568FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36569FreeType --with-freetype=$with_freetype $have_freetype
36570GhostPCL None $PCLDelegate ($PCLVersion)
36571GhostXPS None $XPSDelegate ($XPSVersion)
36572Ghostscript None $PSDelegate ($GSVersion)
36573Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36574Ghostscript lib --with-gslib=$with_gslib $have_gslib
36575Graphviz --with-gvc=$with_gvc $have_gvc
36576JBIG --with-jbig=$with_jbig $have_jbig
36577JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36578JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036579LCMS v1 --with-lcms=$with_lcms $have_lcms
36580LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036581LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036582LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036583Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36584OpenEXR --with-openexr=$with_openexr $have_openexr
36585PERL --with-perl=$with_perl $have_perl
36586PNG --with-png=$with_png $have_png
36587RSVG --with-rsvg=$with_rsvg $have_rsvg
36588TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036589WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036590Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36591WMF --with-wmf=$with_wmf $have_wmf
36592X11 --with-x=$with_x $have_x
36593XML --with-xml=$with_xml $have_xml
36594ZLIB --with-zlib=$with_zlib $have_zlib
36595
36596X11 Configuration:
36597 X_CFLAGS = $X_CFLAGS
36598 X_PRE_LIBS = $X_PRE_LIBS
36599 X_LIBS = $X_LIBS
36600 X_EXTRA_LIBS = $X_EXTRA_LIBS
36601
36602Options used to compile and link:
36603 PREFIX = $PREFIX_DIR
36604 EXEC-PREFIX = $EXEC_PREFIX_DIR
36605 VERSION = $PACKAGE_VERSION
36606 CC = $CC
36607 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036608 CPPFLAGS = $MAGICK_CPPFLAGS
36609 PCFLAGS = $MAGICK_PCFLAGS
36610 DEFS = $DEFS
36611 LDFLAGS = $LDFLAGS
36612 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36613 LIBS = $MAGICK_LIBS
36614 CXX = $CXX
36615 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036616 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036617" >&5
36618$as_echo "
36619ImageMagick is configured as follows. Please verify that this configuration
36620matches your expectations.
36621
36622Host system type: $host
36623Build system type: $build
36624
36625 Option Value
36626-------------------------------------------------------------------------------
36627Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36628Static libraries --enable-static=$enable_static $libtool_build_static_libs
36629Module support --with-modules=$with_modules $with_modules
36630GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36631Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36632High Dynamic Range Imagery
36633 --enable-hdri=$enable_hdri $enable_hdri
36634
36635Delegate Configuration:
36636BZLIB --with-bzlib=$with_bzlib $have_bzlib
36637Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036638Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036639DJVU --with-djvu=$with_djvu $have_djvu
36640DPS --with-dps=$with_dps $have_dps
36641FFTW --with-fftw=$with_fftw $have_fftw
36642FlashPIX --with-fpx=$with_fpx $have_fpx
36643FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36644FreeType --with-freetype=$with_freetype $have_freetype
36645GhostPCL None $PCLDelegate ($PCLVersion)
36646GhostXPS None $XPSDelegate ($XPSVersion)
36647Ghostscript None $PSDelegate ($GSVersion)
36648Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36649Ghostscript lib --with-gslib=$with_gslib $have_gslib
36650Graphviz --with-gvc=$with_gvc $have_gvc
36651JBIG --with-jbig=$with_jbig $have_jbig
36652JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36653JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036654LCMS v1 --with-lcms=$with_lcms $have_lcms
36655LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036656LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036657LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036658Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36659OpenEXR --with-openexr=$with_openexr $have_openexr
36660PERL --with-perl=$with_perl $have_perl
36661PNG --with-png=$with_png $have_png
36662RSVG --with-rsvg=$with_rsvg $have_rsvg
36663TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036664WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036665Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36666WMF --with-wmf=$with_wmf $have_wmf
36667X11 --with-x=$with_x $have_x
36668XML --with-xml=$with_xml $have_xml
36669ZLIB --with-zlib=$with_zlib $have_zlib
36670
36671X11 Configuration:
36672 X_CFLAGS = $X_CFLAGS
36673 X_PRE_LIBS = $X_PRE_LIBS
36674 X_LIBS = $X_LIBS
36675 X_EXTRA_LIBS = $X_EXTRA_LIBS
36676
36677Options used to compile and link:
36678 PREFIX = $PREFIX_DIR
36679 EXEC-PREFIX = $EXEC_PREFIX_DIR
36680 VERSION = $PACKAGE_VERSION
36681 CC = $CC
36682 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036683 CPPFLAGS = $MAGICK_CPPFLAGS
36684 PCFLAGS = $MAGICK_PCFLAGS
36685 DEFS = $DEFS
36686 LDFLAGS = $LDFLAGS
36687 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36688 LIBS = $MAGICK_LIBS
36689 CXX = $CXX
36690 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036691 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036692" >&6; }