blob: b0d39ef193bbe7dfc05043d83f33a64dd1be5e10 [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
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000838UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000839UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000840UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000841UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000842UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000843UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000844INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000845INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000848INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000849INT32_T
850UINT16_T
851INT16_T
852UINT8_T
853INT8_T
854LIBRARY_EXTRA_CPPFLAGS
855MODULE_EXTRA_CPPFLAGS
856LIBSTDCLDFLAGS
857PERL_MAKE_OPTIONS
858QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000859MAINT
860MAINTAINER_MODE_FALSE
861MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862MAGICK_HDRI
863DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
866WITH_MODULES_FALSE
867WITH_MODULES_TRUE
868WITH_SHARED_LIBS_FALSE
869WITH_SHARED_LIBS_TRUE
870LTDLOPEN
871LT_CONFIG_H
872CONVENIENCE_LTDL_FALSE
873CONVENIENCE_LTDL_TRUE
874INSTALL_LTDL_FALSE
875INSTALL_LTDL_TRUE
876ARGZ_H
877sys_symbol_underscore
878LIBADD_DL
879LT_DLPREOPEN
880LIBADD_DLD_LINK
881LIBADD_SHL_LOAD
882LIBADD_DLOPEN
883LT_DLLOADERS
884INCLTDL
885LTDLINCL
886LTDLDEPS
887LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000888LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000889CXXCPP
890OTOOL64
891OTOOL
892LIPO
893NMEDIT
894DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000895MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000896RANLIB
cristyda16f162011-02-19 23:52:17 +0000897ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000898AR
899NM
900ac_ct_DUMPBIN
901DUMPBIN
902LIBTOOL
903OBJDUMP
904DLLTOOL
905AS
cristy3ed852e2009-09-05 21:47:34 +0000906LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000907CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000908CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000909OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000910PTHREAD_CFLAGS
911PTHREAD_LIBS
912PTHREAD_CC
913ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000914WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000915USING_CL_FALSE
916USING_CL_TRUE
917CYGWIN_BUILD_FALSE
918CYGWIN_BUILD_TRUE
919WIN32_NATIVE_BUILD_FALSE
920WIN32_NATIVE_BUILD_TRUE
921WINGDI32_DELEGATE_FALSE
922WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000923GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000924PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000925LN_S
cristy3ed852e2009-09-05 21:47:34 +0000926LD
cristy73bd4a52010-10-05 11:24:23 +0000927FGREP
928SED
929am__fastdepCXX_FALSE
930am__fastdepCXX_TRUE
931CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000932ac_ct_CXX
933CXXFLAGS
934CXX
cristya0b81c32010-01-22 02:54:33 +0000935EGREP
936GREP
937CPP
cristy73bd4a52010-10-05 11:24:23 +0000938am__fastdepCC_FALSE
939am__fastdepCC_TRUE
940CCDEPMODE
941AMDEPBACKSLASH
942AMDEP_FALSE
943AMDEP_TRUE
944am__quote
945am__include
946DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000947OBJEXT
948EXEEXT
949ac_ct_CC
950CPPFLAGS
951LDFLAGS
952CFLAGS
953CC
954DIRSEP
955MAGICK_FILTER_MODULE_PATH
956MAGICK_CONFIGURE_BUILD_PATH
957MAGICK_CONFIGURE_SRC_PATH
958MAGICK_CODER_MODULE_PATH
959MAN_DIR
960INFO_DIR
961PERSISTINCLUDE_DIR
962INCLUDE_DIR
963LIB_DIR
964LOCALSTATE_DIR
965SHAREDSTATE_DIR
966SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000967DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000968DATA_DIR
969LIBEXEC_DIR
970SBIN_DIR
971BIN_DIR
972EXEC_PREFIX_DIR
973PREFIX_DIR
974CONFIG_STATUS_DEPENDENCIES
975MAGICK_LIB_VERSION_NUMBER
976MAGICK_LIB_VERSION_TEXT
977MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000978AM_BACKSLASH
979AM_DEFAULT_VERBOSITY
980am__untar
981am__tar
982AMTAR
983am__leading_dot
984SET_MAKE
985AWK
986mkdir_p
987MKDIR_P
988INSTALL_STRIP_PROGRAM
989STRIP
990install_sh
991MAKEINFO
992AUTOHEADER
993AUTOMAKE
994AUTOCONF
995ACLOCAL
996VERSION
997PACKAGE
998CYGPATH_W
999am__isrc
1000INSTALL_DATA
1001INSTALL_SCRIPT
1002INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001003PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001004PACKAGE_RELEASE_DATE
1005PACKAGE_LIB_VERSION_NUMBER
1006PACKAGE_LIB_VERSION
1007PACKAGE_CHANGE_DATE
1008PACKAGE_RELEASE
cristyd694ca32011-03-27 21:42:54 +00001009MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001010MAGICK_LIBRARY_VERSION_INFO
1011MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001012MAGICK_LIBRARY_AGE
1013MAGICK_LIBRARY_REVISION
1014MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001015MAGICK_TARGET_OS
1016MAGICK_TARGET_VENDOR
1017MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001018target_os
1019target_vendor
1020target_cpu
1021target
1022host_os
1023host_vendor
1024host_cpu
1025host
1026build_os
1027build_vendor
1028build_cpu
1029build
1030CONFIGURE_ARGS
1031DISTCHECK_CONFIG_FLAGS
1032target_alias
1033host_alias
1034build_alias
1035LIBS
1036ECHO_T
1037ECHO_N
1038ECHO_C
1039DEFS
1040mandir
1041localedir
1042libdir
1043psdir
1044pdfdir
1045dvidir
1046htmldir
1047infodir
1048docdir
1049oldincludedir
1050includedir
1051localstatedir
1052sharedstatedir
1053sysconfdir
1054datadir
1055datarootdir
1056libexecdir
1057sbindir
1058bindir
1059program_transform_name
1060prefix
1061exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001062PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001063PACKAGE_BUGREPORT
1064PACKAGE_STRING
1065PACKAGE_VERSION
1066PACKAGE_TARNAME
1067PACKAGE_NAME
1068PATH_SEPARATOR
1069SHELL'
1070ac_subst_files=''
1071ac_user_opts='
1072enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001073enable_silent_rules
1074enable_dependency_tracking
1075with_gnu_ld
1076with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001077enable_bounds_checking
1078enable_osx_universal_binary
1079with_threads
1080enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001081enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001082enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001083enable_shared
1084enable_static
1085with_pic
1086enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001087with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001088enable_libtool_lock
1089with_included_ltdl
1090with_ltdl_include
1091with_ltdl_lib
1092enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001093with_modules
1094enable_delegate_build
1095enable_deprecated
1096enable_installed
1097enable_cipher
1098enable_embeddable
1099enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001100enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001101enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001102enable_ccmalloc
1103enable_efence
1104enable_prof
1105enable_gprof
1106enable_gcov
1107with_method_prefix
1108with_quantum_depth
1109with_cache
1110with_frozenpaths
1111with_magick_plus_plus
1112with_perl
1113with_perl_options
1114with_umem
1115with_libstdc
1116with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001117with_x
cristy3ed852e2009-09-05 21:47:34 +00001118with_zlib
1119with_autotrace
1120with_dps
1121with_djvu
cristy430a7312010-01-21 20:44:04 +00001122with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001123with_fftw
1124with_fpx
1125with_fontconfig
1126with_freetype
1127with_gslib
1128with_fontpath
1129with_gs_font_dir
1130with_gvc
1131with_jbig
1132with_jpeg
1133with_jp2
1134with_lcms
cristy71203402010-06-18 13:12:03 +00001135with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001136with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001137with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001138with_openexr
1139with_png
1140with_rsvg
1141with_tiff
cristyb1860752011-03-14 00:27:46 +00001142with_webp
cristy3ed852e2009-09-05 21:47:34 +00001143with_windows_font_dir
1144with_wmf
1145with_xml
1146'
1147 ac_precious_vars='build_alias
1148host_alias
1149target_alias
1150CC
1151CFLAGS
1152LDFLAGS
1153LIBS
1154CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001155CPP
cristy3ed852e2009-09-05 21:47:34 +00001156CXX
1157CXXFLAGS
1158CCC
cristy73bd4a52010-10-05 11:24:23 +00001159PKG_CONFIG
1160CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001161XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001162AUTOTRACE_CFLAGS
1163AUTOTRACE_LIBS
1164FONTCONFIG_CFLAGS
1165FONTCONFIG_LIBS
1166GVC_CFLAGS
1167GVC_LIBS
1168LQR_CFLAGS
1169LQR_LIBS
1170OPENEXR_CFLAGS
1171OPENEXR_LIBS
1172RSVG_CFLAGS
1173RSVG_LIBS
1174CAIRO_SVG_CFLAGS
1175CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001176
1177
1178# Initialize some variables set by options.
1179ac_init_help=
1180ac_init_version=false
1181ac_unrecognized_opts=
1182ac_unrecognized_sep=
1183# The variables have the same names as the options, with
1184# dashes changed to underlines.
1185cache_file=/dev/null
1186exec_prefix=NONE
1187no_create=
1188no_recursion=
1189prefix=NONE
1190program_prefix=NONE
1191program_suffix=NONE
1192program_transform_name=s,x,x,
1193silent=
1194site=
1195srcdir=
1196verbose=
1197x_includes=NONE
1198x_libraries=NONE
1199
1200# Installation directory options.
1201# These are left unexpanded so users can "make install exec_prefix=/foo"
1202# and all the variables that are supposed to be based on exec_prefix
1203# by default will actually change.
1204# Use braces instead of parens because sh, perl, etc. also accept them.
1205# (The list follows the same order as the GNU Coding Standards.)
1206bindir='${exec_prefix}/bin'
1207sbindir='${exec_prefix}/sbin'
1208libexecdir='${exec_prefix}/libexec'
1209datarootdir='${prefix}/share'
1210datadir='${datarootdir}'
1211sysconfdir='${prefix}/etc'
1212sharedstatedir='${prefix}/com'
1213localstatedir='${prefix}/var'
1214includedir='${prefix}/include'
1215oldincludedir='/usr/include'
1216docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1217infodir='${datarootdir}/info'
1218htmldir='${docdir}'
1219dvidir='${docdir}'
1220pdfdir='${docdir}'
1221psdir='${docdir}'
1222libdir='${exec_prefix}/lib'
1223localedir='${datarootdir}/locale'
1224mandir='${datarootdir}/man'
1225
1226ac_prev=
1227ac_dashdash=
1228for ac_option
1229do
1230 # If the previous option needs an argument, assign it.
1231 if test -n "$ac_prev"; then
1232 eval $ac_prev=\$ac_option
1233 ac_prev=
1234 continue
1235 fi
1236
1237 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001238 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1239 *=) ac_optarg= ;;
1240 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001241 esac
1242
1243 # Accept the important Cygnus configure options, so we can diagnose typos.
1244
1245 case $ac_dashdash$ac_option in
1246 --)
1247 ac_dashdash=yes ;;
1248
1249 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1250 ac_prev=bindir ;;
1251 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1252 bindir=$ac_optarg ;;
1253
1254 -build | --build | --buil | --bui | --bu)
1255 ac_prev=build_alias ;;
1256 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1257 build_alias=$ac_optarg ;;
1258
1259 -cache-file | --cache-file | --cache-fil | --cache-fi \
1260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1261 ac_prev=cache_file ;;
1262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1264 cache_file=$ac_optarg ;;
1265
1266 --config-cache | -C)
1267 cache_file=config.cache ;;
1268
1269 -datadir | --datadir | --datadi | --datad)
1270 ac_prev=datadir ;;
1271 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1272 datadir=$ac_optarg ;;
1273
1274 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1275 | --dataroo | --dataro | --datar)
1276 ac_prev=datarootdir ;;
1277 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1278 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1279 datarootdir=$ac_optarg ;;
1280
1281 -disable-* | --disable-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001285 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"enable_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval enable_$ac_useropt=no ;;
1296
1297 -docdir | --docdir | --docdi | --doc | --do)
1298 ac_prev=docdir ;;
1299 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1300 docdir=$ac_optarg ;;
1301
1302 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1303 ac_prev=dvidir ;;
1304 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1305 dvidir=$ac_optarg ;;
1306
1307 -enable-* | --enable-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001311 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316"enable_$ac_useropt"
1317"*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval enable_$ac_useropt=\$ac_optarg ;;
1322
1323 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1324 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1325 | --exec | --exe | --ex)
1326 ac_prev=exec_prefix ;;
1327 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1328 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1329 | --exec=* | --exe=* | --ex=*)
1330 exec_prefix=$ac_optarg ;;
1331
1332 -gas | --gas | --ga | --g)
1333 # Obsolete; use --with-gas.
1334 with_gas=yes ;;
1335
1336 -help | --help | --hel | --he | -h)
1337 ac_init_help=long ;;
1338 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1339 ac_init_help=recursive ;;
1340 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1341 ac_init_help=short ;;
1342
1343 -host | --host | --hos | --ho)
1344 ac_prev=host_alias ;;
1345 -host=* | --host=* | --hos=* | --ho=*)
1346 host_alias=$ac_optarg ;;
1347
1348 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1349 ac_prev=htmldir ;;
1350 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1351 | --ht=*)
1352 htmldir=$ac_optarg ;;
1353
1354 -includedir | --includedir | --includedi | --included | --include \
1355 | --includ | --inclu | --incl | --inc)
1356 ac_prev=includedir ;;
1357 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1358 | --includ=* | --inclu=* | --incl=* | --inc=*)
1359 includedir=$ac_optarg ;;
1360
1361 -infodir | --infodir | --infodi | --infod | --info | --inf)
1362 ac_prev=infodir ;;
1363 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1364 infodir=$ac_optarg ;;
1365
1366 -libdir | --libdir | --libdi | --libd)
1367 ac_prev=libdir ;;
1368 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1369 libdir=$ac_optarg ;;
1370
1371 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1372 | --libexe | --libex | --libe)
1373 ac_prev=libexecdir ;;
1374 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1375 | --libexe=* | --libex=* | --libe=*)
1376 libexecdir=$ac_optarg ;;
1377
1378 -localedir | --localedir | --localedi | --localed | --locale)
1379 ac_prev=localedir ;;
1380 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1381 localedir=$ac_optarg ;;
1382
1383 -localstatedir | --localstatedir | --localstatedi | --localstated \
1384 | --localstate | --localstat | --localsta | --localst | --locals)
1385 ac_prev=localstatedir ;;
1386 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1387 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1388 localstatedir=$ac_optarg ;;
1389
1390 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1391 ac_prev=mandir ;;
1392 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1393 mandir=$ac_optarg ;;
1394
1395 -nfp | --nfp | --nf)
1396 # Obsolete; use --without-fp.
1397 with_fp=no ;;
1398
1399 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1400 | --no-cr | --no-c | -n)
1401 no_create=yes ;;
1402
1403 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1404 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1405 no_recursion=yes ;;
1406
1407 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1408 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1409 | --oldin | --oldi | --old | --ol | --o)
1410 ac_prev=oldincludedir ;;
1411 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1412 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1413 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1414 oldincludedir=$ac_optarg ;;
1415
1416 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1417 ac_prev=prefix ;;
1418 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1419 prefix=$ac_optarg ;;
1420
1421 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1422 | --program-pre | --program-pr | --program-p)
1423 ac_prev=program_prefix ;;
1424 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1425 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1426 program_prefix=$ac_optarg ;;
1427
1428 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1429 | --program-suf | --program-su | --program-s)
1430 ac_prev=program_suffix ;;
1431 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1432 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1433 program_suffix=$ac_optarg ;;
1434
1435 -program-transform-name | --program-transform-name \
1436 | --program-transform-nam | --program-transform-na \
1437 | --program-transform-n | --program-transform- \
1438 | --program-transform | --program-transfor \
1439 | --program-transfo | --program-transf \
1440 | --program-trans | --program-tran \
1441 | --progr-tra | --program-tr | --program-t)
1442 ac_prev=program_transform_name ;;
1443 -program-transform-name=* | --program-transform-name=* \
1444 | --program-transform-nam=* | --program-transform-na=* \
1445 | --program-transform-n=* | --program-transform-=* \
1446 | --program-transform=* | --program-transfor=* \
1447 | --program-transfo=* | --program-transf=* \
1448 | --program-trans=* | --program-tran=* \
1449 | --progr-tra=* | --program-tr=* | --program-t=*)
1450 program_transform_name=$ac_optarg ;;
1451
1452 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1453 ac_prev=pdfdir ;;
1454 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1455 pdfdir=$ac_optarg ;;
1456
1457 -psdir | --psdir | --psdi | --psd | --ps)
1458 ac_prev=psdir ;;
1459 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1460 psdir=$ac_optarg ;;
1461
1462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463 | -silent | --silent | --silen | --sile | --sil)
1464 silent=yes ;;
1465
1466 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1467 ac_prev=sbindir ;;
1468 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1469 | --sbi=* | --sb=*)
1470 sbindir=$ac_optarg ;;
1471
1472 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1473 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1474 | --sharedst | --shareds | --shared | --share | --shar \
1475 | --sha | --sh)
1476 ac_prev=sharedstatedir ;;
1477 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1478 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1479 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1480 | --sha=* | --sh=*)
1481 sharedstatedir=$ac_optarg ;;
1482
1483 -site | --site | --sit)
1484 ac_prev=site ;;
1485 -site=* | --site=* | --sit=*)
1486 site=$ac_optarg ;;
1487
1488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1489 ac_prev=srcdir ;;
1490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1491 srcdir=$ac_optarg ;;
1492
1493 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1494 | --syscon | --sysco | --sysc | --sys | --sy)
1495 ac_prev=sysconfdir ;;
1496 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1497 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1498 sysconfdir=$ac_optarg ;;
1499
1500 -target | --target | --targe | --targ | --tar | --ta | --t)
1501 ac_prev=target_alias ;;
1502 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1503 target_alias=$ac_optarg ;;
1504
1505 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1506 verbose=yes ;;
1507
1508 -version | --version | --versio | --versi | --vers | -V)
1509 ac_init_version=: ;;
1510
1511 -with-* | --with-*)
1512 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1513 # Reject names that are not valid shell variable names.
1514 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001515 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001516 ac_useropt_orig=$ac_useropt
1517 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518 case $ac_user_opts in
1519 *"
1520"with_$ac_useropt"
1521"*) ;;
1522 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523 ac_unrecognized_sep=', ';;
1524 esac
1525 eval with_$ac_useropt=\$ac_optarg ;;
1526
1527 -without-* | --without-*)
1528 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001531 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001532 ac_useropt_orig=$ac_useropt
1533 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534 case $ac_user_opts in
1535 *"
1536"with_$ac_useropt"
1537"*) ;;
1538 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1539 ac_unrecognized_sep=', ';;
1540 esac
1541 eval with_$ac_useropt=no ;;
1542
1543 --x)
1544 # Obsolete; use --with-x.
1545 with_x=yes ;;
1546
1547 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1548 | --x-incl | --x-inc | --x-in | --x-i)
1549 ac_prev=x_includes ;;
1550 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1551 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1552 x_includes=$ac_optarg ;;
1553
1554 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1555 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1556 ac_prev=x_libraries ;;
1557 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1558 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1559 x_libraries=$ac_optarg ;;
1560
cristy98dddb52010-11-04 00:30:15 +00001561 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1562Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001563 ;;
1564
1565 *=*)
1566 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1567 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001568 case $ac_envvar in #(
1569 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001570 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001571 esac
cristy3ed852e2009-09-05 21:47:34 +00001572 eval $ac_envvar=\$ac_optarg
1573 export $ac_envvar ;;
1574
1575 *)
1576 # FIXME: should be removed in autoconf 3.0.
1577 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1578 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1579 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001580 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001581 ;;
1582
1583 esac
1584done
1585
1586if test -n "$ac_prev"; then
1587 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001588 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001589fi
1590
1591if test -n "$ac_unrecognized_opts"; then
1592 case $enable_option_checking in
1593 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001594 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001595 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1596 esac
1597fi
1598
1599# Check all directory arguments for consistency.
1600for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1601 datadir sysconfdir sharedstatedir localstatedir includedir \
1602 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1603 libdir localedir mandir
1604do
1605 eval ac_val=\$$ac_var
1606 # Remove trailing slashes.
1607 case $ac_val in
1608 */ )
1609 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1610 eval $ac_var=\$ac_val;;
1611 esac
1612 # Be sure to have absolute directory names.
1613 case $ac_val in
1614 [\\/$]* | ?:[\\/]* ) continue;;
1615 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1616 esac
cristy98dddb52010-11-04 00:30:15 +00001617 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001618done
1619
1620# There might be people who depend on the old broken behavior: `$host'
1621# used to hold the argument of --host etc.
1622# FIXME: To remove some day.
1623build=$build_alias
1624host=$host_alias
1625target=$target_alias
1626
1627# FIXME: To remove some day.
1628if test "x$host_alias" != x; then
1629 if test "x$build_alias" = x; then
1630 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001631 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1632 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001633 elif test "x$build_alias" != "x$host_alias"; then
1634 cross_compiling=yes
1635 fi
1636fi
1637
1638ac_tool_prefix=
1639test -n "$host_alias" && ac_tool_prefix=$host_alias-
1640
1641test "$silent" = yes && exec 6>/dev/null
1642
1643
1644ac_pwd=`pwd` && test -n "$ac_pwd" &&
1645ac_ls_di=`ls -di .` &&
1646ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001647 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001648test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001649 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001650
1651
1652# Find the source files, if location was not specified.
1653if test -z "$srcdir"; then
1654 ac_srcdir_defaulted=yes
1655 # Try the directory containing this script, then the parent directory.
1656 ac_confdir=`$as_dirname -- "$as_myself" ||
1657$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1658 X"$as_myself" : 'X\(//\)[^/]' \| \
1659 X"$as_myself" : 'X\(//\)$' \| \
1660 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1661$as_echo X"$as_myself" |
1662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1663 s//\1/
1664 q
1665 }
1666 /^X\(\/\/\)[^/].*/{
1667 s//\1/
1668 q
1669 }
1670 /^X\(\/\/\)$/{
1671 s//\1/
1672 q
1673 }
1674 /^X\(\/\).*/{
1675 s//\1/
1676 q
1677 }
1678 s/.*/./; q'`
1679 srcdir=$ac_confdir
1680 if test ! -r "$srcdir/$ac_unique_file"; then
1681 srcdir=..
1682 fi
1683else
1684 ac_srcdir_defaulted=no
1685fi
1686if test ! -r "$srcdir/$ac_unique_file"; then
1687 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001688 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001689fi
1690ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1691ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001692 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001693 pwd)`
1694# When building in place, set srcdir=.
1695if test "$ac_abs_confdir" = "$ac_pwd"; then
1696 srcdir=.
1697fi
1698# Remove unnecessary trailing slashes from srcdir.
1699# Double slashes in file names in object file debugging info
1700# mess up M-x gdb in Emacs.
1701case $srcdir in
1702*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1703esac
1704for ac_var in $ac_precious_vars; do
1705 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1706 eval ac_env_${ac_var}_value=\$${ac_var}
1707 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1708 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1709done
1710
1711#
1712# Report the --help message.
1713#
1714if test "$ac_init_help" = "long"; then
1715 # Omit some internal or obsolete options to make the list less imposing.
1716 # This message is too long to be a string in the A/UX 3.1 sh.
1717 cat <<_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001718\`configure' configures ImageMagick 6.6.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001719
1720Usage: $0 [OPTION]... [VAR=VALUE]...
1721
1722To assign environment variables (e.g., CC, CFLAGS...), specify them as
1723VAR=VALUE. See below for descriptions of some of the useful variables.
1724
1725Defaults for the options are specified in brackets.
1726
1727Configuration:
1728 -h, --help display this help and exit
1729 --help=short display options specific to this package
1730 --help=recursive display the short help of all the included packages
1731 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001732 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001733 --cache-file=FILE cache test results in FILE [disabled]
1734 -C, --config-cache alias for \`--cache-file=config.cache'
1735 -n, --no-create do not create output files
1736 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1737
1738Installation directories:
1739 --prefix=PREFIX install architecture-independent files in PREFIX
1740 [$ac_default_prefix]
1741 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1742 [PREFIX]
1743
1744By default, \`make install' will install all the files in
1745\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1746an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1747for instance \`--prefix=\$HOME'.
1748
1749For better control, use the options below.
1750
1751Fine tuning of the installation directories:
1752 --bindir=DIR user executables [EPREFIX/bin]
1753 --sbindir=DIR system admin executables [EPREFIX/sbin]
1754 --libexecdir=DIR program executables [EPREFIX/libexec]
1755 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1756 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1757 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1758 --libdir=DIR object code libraries [EPREFIX/lib]
1759 --includedir=DIR C header files [PREFIX/include]
1760 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1761 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1762 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1763 --infodir=DIR info documentation [DATAROOTDIR/info]
1764 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1765 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001766 --docdir=DIR documentation root
cristy45dbd322011-03-27 16:40:38 +00001767 [DATAROOTDIR/doc/ImageMagick-6.6.9]
cristy3ed852e2009-09-05 21:47:34 +00001768 --htmldir=DIR html documentation [DOCDIR]
1769 --dvidir=DIR dvi documentation [DOCDIR]
1770 --pdfdir=DIR pdf documentation [DOCDIR]
1771 --psdir=DIR ps documentation [DOCDIR]
1772_ACEOF
1773
1774 cat <<\_ACEOF
1775
cristy73bd4a52010-10-05 11:24:23 +00001776Program names:
1777 --program-prefix=PREFIX prepend PREFIX to installed program names
1778 --program-suffix=SUFFIX append SUFFIX to installed program names
1779 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1780
cristy3ed852e2009-09-05 21:47:34 +00001781X features:
1782 --x-includes=DIR X include files are in DIR
1783 --x-libraries=DIR X library files are in DIR
1784
1785System types:
1786 --build=BUILD configure for building on BUILD [guessed]
1787 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1788 --target=TARGET configure for building compilers for TARGET [HOST]
1789_ACEOF
1790fi
1791
1792if test -n "$ac_init_help"; then
1793 case $ac_init_help in
cristy45dbd322011-03-27 16:40:38 +00001794 short | recursive ) echo "Configuration of ImageMagick 6.6.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001795 esac
1796 cat <<\_ACEOF
1797
1798Optional Features:
1799 --disable-option-checking ignore unrecognized --enable/--with options
1800 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1801 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001802 --enable-silent-rules less verbose build output (undo: `make V=1')
1803 --disable-silent-rules verbose build output (undo: `make V=0')
1804 --disable-dependency-tracking speeds up one-time build
1805 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001806 --bounds-checking enable run-time bounds-checking
1807 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001808 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001809 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001810 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001811 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001812 --enable-shared[=PKGS] build shared libraries [default=yes]
1813 --enable-static[=PKGS] build static libraries [default=yes]
1814 --enable-fast-install[=PKGS]
1815 optimize for fast installation [default=yes]
1816 --disable-libtool-lock avoid locking (might break parallel builds)
1817 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001818 --enable-delegate-build look for delegate libraries in build directory
1819 --disable-deprecated exclude deprecated methods in MagickCore and
1820 MagickWand API's
1821 --disable-installed Formally install ImageMagick under PREFIX
1822 --disable-cipher disable enciphering and deciphering image pixels
1823 --enable-embeddable enable self-contained, embeddable,
1824 zero-configuration ImageMagick
1825 --enable-hdri accurately represent the wide range of intensity
1826 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001827 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001828 --enable-maintainer-mode enable make rules and dependencies not useful
1829 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001830 --enable-ccmalloc enable 'ccmalloc' memory debug support
1831 --enable-efence enable 'efence' memory debug support
1832 --enable-prof enable 'prof' profiling support
1833 --enable-gprof enable 'gprof' profiling support
1834 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001835 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001836
1837Optional Packages:
1838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001840 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1841 --with-dmalloc use dmalloc, as in
1842 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001843 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001844 --with-pic try to use only PIC/non-PIC objects [default=use
1845 both]
cristyda16f162011-02-19 23:52:17 +00001846 --with-sysroot=DIR Search for dependent libraries within DIR
1847 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001848 --with-included-ltdl use the GNU ltdl sources included here
1849 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1850 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001851 --with-modules enable building dynamically loadable modules
1852 --with-method-prefix=PREFIX
1853 prefix MagickCore API methods
1854 --with-quantum-depth=DEPTH
1855 number of bits in a pixel quantum (default 16)
1856 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1857 memory)
1858 --with-frozenpaths freeze delegate paths
1859 --without-magick-plus-plus
1860 disable build/install of Magick++
1861 --with-perl enable build/install of PerlMagick
1862 --with-perl-options=OPTIONS
1863 options to pass on command-line when generating
1864 PerlMagick's build file
1865 --with-umem enable umem memory allocation library support
1866 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1867 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001868 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001869 --without-zlib disable ZLIB support
1870 --with-autotrace enable autotrace support
1871 --without-dps disable Display Postscript support
1872 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001873 --with-dejavu-font-dir=DIR
1874 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001875 --without-fftw disable FFTW support
1876 --without-fpx disable FlashPIX support
1877 --without-fontconfig disable fontconfig support
1878 --without-freetype disable Freetype support
1879 --without-gslib enable Ghostscript library support
1880 --with-fontpath=DIR prepend to default font search path
1881 --with-gs-font-dir=DIR Ghostscript font directory
1882 --without-gvc disable GVC support
1883 --without-jbig disable JBIG support
1884 --without-jpeg disable JPEG support
1885 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001886 --without-lcms disable lcms (v1.1X) support
1887 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001888 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001889 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001890 --without-openexr disable OpenEXR support
1891 --without-png disable PNG support
1892 --without-rsvg disable RSVG support
1893 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001894 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001895 --with-windows-font-dir=DIR
1896 directory containing MS-Windows fonts
1897 --without-wmf disable WMF support
1898 --without-xml disable XML support
1899
1900Some influential environment variables:
1901 CC C compiler command
1902 CFLAGS C compiler flags
1903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1904 nonstandard directory <lib dir>
1905 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001906 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001907 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001908 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001909 CXX C++ compiler command
1910 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001911 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001912 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001913 XMKMF Path to xmkmf, Makefile generator for X Window System
1914 AUTOTRACE_CFLAGS
1915 C compiler flags for AUTOTRACE, overriding pkg-config
1916 AUTOTRACE_LIBS
1917 linker flags for AUTOTRACE, overriding pkg-config
1918 FONTCONFIG_CFLAGS
1919 C compiler flags for FONTCONFIG, overriding pkg-config
1920 FONTCONFIG_LIBS
1921 linker flags for FONTCONFIG, overriding pkg-config
1922 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1923 GVC_LIBS linker flags for GVC, overriding pkg-config
1924 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1925 LQR_LIBS linker flags for LQR, overriding pkg-config
1926 OPENEXR_CFLAGS
1927 C compiler flags for OPENEXR, overriding pkg-config
1928 OPENEXR_LIBS
1929 linker flags for OPENEXR, overriding pkg-config
1930 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1931 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1932 CAIRO_SVG_CFLAGS
1933 C compiler flags for CAIRO_SVG, overriding pkg-config
1934 CAIRO_SVG_LIBS
1935 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001936
1937Use these variables to override the choices made by `configure' or to help
1938it to find libraries and programs with nonstandard names/locations.
1939
1940Report bugs to <http://www.imagemagick.org>.
1941_ACEOF
1942ac_status=$?
1943fi
1944
1945if test "$ac_init_help" = "recursive"; then
1946 # If there are subdirs, report their specific --help.
1947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1948 test -d "$ac_dir" ||
1949 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1950 continue
1951 ac_builddir=.
1952
1953case "$ac_dir" in
1954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955*)
1956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1957 # A ".." for each directory in $ac_dir_suffix.
1958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1959 case $ac_top_builddir_sub in
1960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1962 esac ;;
1963esac
1964ac_abs_top_builddir=$ac_pwd
1965ac_abs_builddir=$ac_pwd$ac_dir_suffix
1966# for backward compatibility:
1967ac_top_builddir=$ac_top_build_prefix
1968
1969case $srcdir in
1970 .) # We are building in place.
1971 ac_srcdir=.
1972 ac_top_srcdir=$ac_top_builddir_sub
1973 ac_abs_top_srcdir=$ac_pwd ;;
1974 [\\/]* | ?:[\\/]* ) # Absolute name.
1975 ac_srcdir=$srcdir$ac_dir_suffix;
1976 ac_top_srcdir=$srcdir
1977 ac_abs_top_srcdir=$srcdir ;;
1978 *) # Relative name.
1979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1980 ac_top_srcdir=$ac_top_build_prefix$srcdir
1981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1982esac
1983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1984
1985 cd "$ac_dir" || { ac_status=$?; continue; }
1986 # Check for guested configure.
1987 if test -f "$ac_srcdir/configure.gnu"; then
1988 echo &&
1989 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1990 elif test -f "$ac_srcdir/configure"; then
1991 echo &&
1992 $SHELL "$ac_srcdir/configure" --help=recursive
1993 else
1994 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1995 fi || ac_status=$?
1996 cd "$ac_pwd" || { ac_status=$?; break; }
1997 done
1998fi
1999
2000test -n "$ac_init_help" && exit $ac_status
2001if $ac_init_version; then
2002 cat <<\_ACEOF
cristy45dbd322011-03-27 16:40:38 +00002003ImageMagick configure 6.6.9
cristyda16f162011-02-19 23:52:17 +00002004generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002005
cristy98dddb52010-11-04 00:30:15 +00002006Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002007This configure script is free software; the Free Software Foundation
2008gives unlimited permission to copy, distribute and modify it.
2009_ACEOF
2010 exit
2011fi
cristy8b350f62009-11-15 23:12:43 +00002012
2013## ------------------------ ##
2014## Autoconf initialization. ##
2015## ------------------------ ##
2016
2017# ac_fn_c_try_compile LINENO
2018# --------------------------
2019# Try to compile conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_c_try_compile ()
2021{
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext
2024 if { { ac_try="$ac_compile"
2025case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_compile") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2037 fi
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_c_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest.$ac_objext; then :
2043 ac_retval=0
2044else
2045 $as_echo "$as_me: failed program was:" >&5
2046sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 ac_retval=1
2049fi
cristyda16f162011-02-19 23:52:17 +00002050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002051 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002052
2053} # ac_fn_c_try_compile
2054
cristy95646052009-11-28 23:05:30 +00002055# ac_fn_c_try_cpp LINENO
2056# ----------------------
2057# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058ac_fn_c_try_cpp ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_cpp conftest.$ac_ext"
2062case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069 ac_status=$?
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2074 fi
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002076 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078 test ! -s conftest.err
2079 }; then :
2080 ac_retval=0
2081else
2082 $as_echo "$as_me: failed program was:" >&5
2083sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 ac_retval=1
2086fi
cristyda16f162011-02-19 23:52:17 +00002087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002088 as_fn_set_status $ac_retval
2089
2090} # ac_fn_c_try_cpp
2091
cristy8b350f62009-11-15 23:12:43 +00002092# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093# -------------------------------------------------------
2094# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095# the include files in INCLUDES and setting the cache variable VAR
2096# accordingly.
2097ac_fn_c_check_header_mongrel ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002100 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002103if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002104 $as_echo_n "(cached) " >&6
2105fi
2106eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109else
2110 # Is the header compilable?
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112$as_echo_n "checking $2 usability... " >&6; }
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */
2115$4
2116#include <$2>
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_header_compiler=yes
2120else
2121 ac_header_compiler=no
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125$as_echo "$ac_header_compiler" >&6; }
2126
2127# Is the header present?
2128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129$as_echo_n "checking $2 presence... " >&6; }
2130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h. */
2132#include <$2>
2133_ACEOF
2134if ac_fn_c_try_cpp "$LINENO"; then :
2135 ac_header_preproc=yes
2136else
2137 ac_header_preproc=no
2138fi
cristyda16f162011-02-19 23:52:17 +00002139rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141$as_echo "$ac_header_preproc" >&6; }
2142
2143# So? What about this header?
2144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2145 yes:no: )
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 ;;
2151 no:yes:* )
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2155$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2159$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002162( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002163## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002164## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002165 ) | sed "s/^/$as_me: WARNING: /" >&2
2166 ;;
2167esac
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002170if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002171 $as_echo_n "(cached) " >&6
2172else
2173 eval "$3=\$ac_header_compiler"
2174fi
2175eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177$as_echo "$ac_res" >&6; }
2178fi
cristyda16f162011-02-19 23:52:17 +00002179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002180
2181} # ac_fn_c_check_header_mongrel
2182
2183# ac_fn_c_try_run LINENO
2184# ----------------------
2185# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2186# that executables *can* be run.
2187ac_fn_c_try_run ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_link"
2191case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>&5
2198 ac_status=$?
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2201 { { case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204esac
2205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206$as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_try") 2>&5
2208 ac_status=$?
2209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210 test $ac_status = 0; }; }; then :
2211 ac_retval=0
2212else
2213 $as_echo "$as_me: program exited with status $ac_status" >&5
2214 $as_echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 ac_retval=$ac_status
2218fi
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002221 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002222
2223} # ac_fn_c_try_run
2224
2225# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2226# -------------------------------------------------------
2227# Tests whether HEADER exists and can be compiled using the include files in
2228# INCLUDES, setting the cache variable VAR accordingly.
2229ac_fn_c_check_header_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002234if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002235 $as_echo_n "(cached) " >&6
2236else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239$4
2240#include <$2>
2241_ACEOF
2242if ac_fn_c_try_compile "$LINENO"; then :
2243 eval "$3=yes"
2244else
2245 eval "$3=no"
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248fi
2249eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002253
2254} # ac_fn_c_check_header_compile
2255
cristya0b81c32010-01-22 02:54:33 +00002256# ac_fn_cxx_try_compile LINENO
2257# ----------------------------
2258# Try to compile conftest.$ac_ext, and return whether this succeeded.
2259ac_fn_cxx_try_compile ()
2260{
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 rm -f conftest.$ac_objext
2263 if { { ac_try="$ac_compile"
2264case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_compile") 2>conftest.err
2271 ac_status=$?
2272 if test -s conftest.err; then
2273 grep -v '^ *+' conftest.err >conftest.er1
2274 cat conftest.er1 >&5
2275 mv -f conftest.er1 conftest.err
2276 fi
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && {
2279 test -z "$ac_cxx_werror_flag" ||
2280 test ! -s conftest.err
2281 } && test -s conftest.$ac_objext; then :
2282 ac_retval=0
2283else
2284 $as_echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 ac_retval=1
2288fi
cristyda16f162011-02-19 23:52:17 +00002289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002290 as_fn_set_status $ac_retval
2291
2292} # ac_fn_cxx_try_compile
2293
cristy8b350f62009-11-15 23:12:43 +00002294# ac_fn_c_try_link LINENO
2295# -----------------------
2296# Try to link conftest.$ac_ext, and return whether this succeeded.
2297ac_fn_c_try_link ()
2298{
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 rm -f conftest.$ac_objext conftest$ac_exeext
2301 if { { ac_try="$ac_link"
2302case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305esac
2306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307$as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_link") 2>conftest.err
2309 ac_status=$?
2310 if test -s conftest.err; then
2311 grep -v '^ *+' conftest.err >conftest.er1
2312 cat conftest.er1 >&5
2313 mv -f conftest.er1 conftest.err
2314 fi
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316 test $ac_status = 0; } && {
2317 test -z "$ac_c_werror_flag" ||
2318 test ! -s conftest.err
2319 } && test -s conftest$ac_exeext && {
2320 test "$cross_compiling" = yes ||
2321 $as_test_x conftest$ac_exeext
2322 }; then :
2323 ac_retval=0
2324else
2325 $as_echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_retval=1
2329fi
2330 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2331 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2332 # interfere with the next link command; also delete a directory that is
2333 # left behind by Apple's compiler. We do this before executing the actions.
2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002336 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002337
2338} # ac_fn_c_try_link
2339
cristy73bd4a52010-10-05 11:24:23 +00002340# ac_fn_c_check_func LINENO FUNC VAR
2341# ----------------------------------
2342# Tests whether FUNC exists, setting the cache variable VAR accordingly
2343ac_fn_c_check_func ()
2344{
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002348if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002349 $as_echo_n "(cached) " >&6
2350else
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352/* end confdefs.h. */
2353/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2355#define $2 innocuous_$2
2356
2357/* System header to define __stub macros and hopefully few prototypes,
2358 which can conflict with char $2 (); below.
2359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2360 <limits.h> exists even on freestanding compilers. */
2361
2362#ifdef __STDC__
2363# include <limits.h>
2364#else
2365# include <assert.h>
2366#endif
2367
2368#undef $2
2369
2370/* Override any GCC internal prototype to avoid an error.
2371 Use char because int might match the return type of a GCC
2372 builtin and then its argument prototype would still apply. */
2373#ifdef __cplusplus
2374extern "C"
2375#endif
2376char $2 ();
2377/* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380#if defined __stub_$2 || defined __stub___$2
2381choke me
2382#endif
2383
2384int
2385main ()
2386{
2387return $2 ();
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392if ac_fn_c_try_link "$LINENO"; then :
2393 eval "$3=yes"
2394else
2395 eval "$3=no"
2396fi
2397rm -f core conftest.err conftest.$ac_objext \
2398 conftest$ac_exeext conftest.$ac_ext
2399fi
2400eval ac_res=\$$3
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002404
2405} # ac_fn_c_check_func
2406
2407# ac_fn_cxx_try_cpp LINENO
2408# ------------------------
2409# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2410ac_fn_cxx_try_cpp ()
2411{
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 if { { ac_try="$ac_cpp conftest.$ac_ext"
2414case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417esac
2418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419$as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2421 ac_status=$?
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2426 fi
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002428 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2430 test ! -s conftest.err
2431 }; then :
2432 ac_retval=0
2433else
2434 $as_echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 ac_retval=1
2438fi
cristyda16f162011-02-19 23:52:17 +00002439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002440 as_fn_set_status $ac_retval
2441
2442} # ac_fn_cxx_try_cpp
2443
2444# ac_fn_cxx_try_link LINENO
2445# -------------------------
2446# Try to link conftest.$ac_ext, and return whether this succeeded.
2447ac_fn_cxx_try_link ()
2448{
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { { ac_try="$ac_link"
2452case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455esac
2456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457$as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_link") 2>conftest.err
2459 ac_status=$?
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2464 fi
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_cxx_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest$ac_exeext && {
2470 test "$cross_compiling" = yes ||
2471 $as_test_x conftest$ac_exeext
2472 }; then :
2473 ac_retval=0
2474else
2475 $as_echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478 ac_retval=1
2479fi
2480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2482 # interfere with the next link command; also delete a directory that is
2483 # left behind by Apple's compiler. We do this before executing the actions.
2484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002486 as_fn_set_status $ac_retval
2487
2488} # ac_fn_cxx_try_link
2489
cristy98dddb52010-11-04 00:30:15 +00002490# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2491# ---------------------------------------------
2492# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2493# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002494ac_fn_c_check_decl ()
2495{
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002497 as_decl_name=`echo $2|sed 's/ *(.*//'`
2498 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2500$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002501if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002502 $as_echo_n "(cached) " >&6
2503else
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505/* end confdefs.h. */
2506$4
2507int
2508main ()
2509{
cristy98dddb52010-11-04 00:30:15 +00002510#ifndef $as_decl_name
2511#ifdef __cplusplus
2512 (void) $as_decl_use;
2513#else
2514 (void) $as_decl_name;
2515#endif
cristy73bd4a52010-10-05 11:24:23 +00002516#endif
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522if ac_fn_c_try_compile "$LINENO"; then :
2523 eval "$3=yes"
2524else
2525 eval "$3=no"
2526fi
2527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528fi
2529eval ac_res=\$$3
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002533
2534} # ac_fn_c_check_decl
2535
cristy8b350f62009-11-15 23:12:43 +00002536# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2537# -------------------------------------------
2538# Tests whether TYPE exists after having included INCLUDES, setting cache
2539# variable VAR accordingly.
2540ac_fn_c_check_type ()
2541{
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002545if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002546 $as_echo_n "(cached) " >&6
2547else
2548 eval "$3=no"
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int
2553main ()
2554{
2555if (sizeof ($2))
2556 return 0;
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_compile "$LINENO"; then :
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563/* end confdefs.h. */
2564$4
2565int
2566main ()
2567{
2568if (sizeof (($2)))
2569 return 0;
2570 ;
2571 return 0;
2572}
2573_ACEOF
2574if ac_fn_c_try_compile "$LINENO"; then :
2575
2576else
2577 eval "$3=yes"
2578fi
2579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580fi
2581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582fi
2583eval ac_res=\$$3
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002587
2588} # ac_fn_c_check_type
2589
cristy92703d82010-04-26 00:18:18 +00002590# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2591# ----------------------------------------------------
2592# Tries to find if the field MEMBER exists in type AGGR, after including
2593# INCLUDES, setting cache variable VAR accordingly.
2594ac_fn_c_check_member ()
2595{
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2598$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002599if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002600 $as_echo_n "(cached) " >&6
2601else
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603/* end confdefs.h. */
2604$5
2605int
2606main ()
2607{
2608static $2 ac_aggr;
2609if (ac_aggr.$3)
2610return 0;
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615if ac_fn_c_try_compile "$LINENO"; then :
2616 eval "$4=yes"
2617else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h. */
2620$5
2621int
2622main ()
2623{
2624static $2 ac_aggr;
2625if (sizeof ac_aggr.$3)
2626return 0;
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_compile "$LINENO"; then :
2632 eval "$4=yes"
2633else
2634 eval "$4=no"
2635fi
2636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640eval ac_res=\$$4
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002644
2645} # ac_fn_c_check_member
2646
cristy8b350f62009-11-15 23:12:43 +00002647# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2648# --------------------------------------------
2649# Tries to find the compile-time value of EXPR in a program that includes
2650# INCLUDES, setting VAR accordingly. Returns whether the value could be
2651# computed
2652ac_fn_c_compute_int ()
2653{
2654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655 if test "$cross_compiling" = yes; then
2656 # Depending upon the size, compute the lo and hi bounds.
2657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658/* end confdefs.h. */
2659$4
2660int
2661main ()
2662{
2663static int test_array [1 - 2 * !(($2) >= 0)];
2664test_array [0] = 0
2665
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670if ac_fn_c_try_compile "$LINENO"; then :
2671 ac_lo=0 ac_mid=0
2672 while :; do
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674/* end confdefs.h. */
2675$4
2676int
2677main ()
2678{
2679static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2680test_array [0] = 0
2681
2682 ;
2683 return 0;
2684}
2685_ACEOF
2686if ac_fn_c_try_compile "$LINENO"; then :
2687 ac_hi=$ac_mid; break
2688else
2689 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2690 if test $ac_lo -le $ac_mid; then
2691 ac_lo= ac_hi=
2692 break
2693 fi
2694 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2695fi
2696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 done
2698else
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700/* end confdefs.h. */
2701$4
2702int
2703main ()
2704{
2705static int test_array [1 - 2 * !(($2) < 0)];
2706test_array [0] = 0
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713 ac_hi=-1 ac_mid=-1
2714 while :; do
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716/* end confdefs.h. */
2717$4
2718int
2719main ()
2720{
2721static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2722test_array [0] = 0
2723
2724 ;
2725 return 0;
2726}
2727_ACEOF
2728if ac_fn_c_try_compile "$LINENO"; then :
2729 ac_lo=$ac_mid; break
2730else
2731 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2732 if test $ac_mid -le $ac_hi; then
2733 ac_lo= ac_hi=
2734 break
2735 fi
2736 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 done
2740else
2741 ac_lo= ac_hi=
2742fi
2743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744fi
2745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746# Binary search between lo and hi bounds.
2747while test "x$ac_lo" != "x$ac_hi"; do
2748 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750/* end confdefs.h. */
2751$4
2752int
2753main ()
2754{
2755static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2756test_array [0] = 0
2757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762if ac_fn_c_try_compile "$LINENO"; then :
2763 ac_hi=$ac_mid
2764else
2765 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2766fi
2767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768done
2769case $ac_lo in #((
2770?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2771'') ac_retval=1 ;;
2772esac
2773 else
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775/* end confdefs.h. */
2776$4
2777static long int longval () { return $2; }
2778static unsigned long int ulongval () { return $2; }
2779#include <stdio.h>
2780#include <stdlib.h>
2781int
2782main ()
2783{
2784
2785 FILE *f = fopen ("conftest.val", "w");
2786 if (! f)
2787 return 1;
2788 if (($2) < 0)
2789 {
2790 long int i = longval ();
2791 if (i != ($2))
2792 return 1;
2793 fprintf (f, "%ld", i);
2794 }
2795 else
2796 {
2797 unsigned long int i = ulongval ();
2798 if (i != ($2))
2799 return 1;
2800 fprintf (f, "%lu", i);
2801 }
2802 /* Do not output a trailing newline, as this causes \r\n confusion
2803 on some platforms. */
2804 return ferror (f) || fclose (f) != 0;
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810if ac_fn_c_try_run "$LINENO"; then :
2811 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2812else
2813 ac_retval=1
2814fi
2815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2816 conftest.$ac_objext conftest.beam conftest.$ac_ext
2817rm -f conftest.val
2818
2819 fi
cristyda16f162011-02-19 23:52:17 +00002820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002821 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002822
2823} # ac_fn_c_compute_int
2824
2825# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2826# ---------------------------------------------------------
2827# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2828# the include files in INCLUDES and setting the cache variable VAR
2829# accordingly.
2830ac_fn_cxx_check_header_mongrel ()
2831{
2832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002833 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2835$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002836if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002837 $as_echo_n "(cached) " >&6
2838fi
2839eval ac_res=\$$3
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2841$as_echo "$ac_res" >&6; }
2842else
2843 # Is the header compilable?
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2845$as_echo_n "checking $2 usability... " >&6; }
2846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848$4
2849#include <$2>
2850_ACEOF
2851if ac_fn_cxx_try_compile "$LINENO"; then :
2852 ac_header_compiler=yes
2853else
2854 ac_header_compiler=no
2855fi
2856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2858$as_echo "$ac_header_compiler" >&6; }
2859
2860# Is the header present?
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2862$as_echo_n "checking $2 presence... " >&6; }
2863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h. */
2865#include <$2>
2866_ACEOF
2867if ac_fn_cxx_try_cpp "$LINENO"; then :
2868 ac_header_preproc=yes
2869else
2870 ac_header_preproc=no
2871fi
cristyda16f162011-02-19 23:52:17 +00002872rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2874$as_echo "$ac_header_preproc" >&6; }
2875
2876# So? What about this header?
2877case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2878 yes:no: )
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2880$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2882$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2883 ;;
2884 no:yes:* )
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2886$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2888$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2890$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2892$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2894$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002895( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002896## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002897## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002898 ) | sed "s/^/$as_me: WARNING: /" >&2
2899 ;;
2900esac
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2902$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002903if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002904 $as_echo_n "(cached) " >&6
2905else
2906 eval "$3=\$ac_header_compiler"
2907fi
2908eval ac_res=\$$3
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910$as_echo "$ac_res" >&6; }
2911fi
cristyda16f162011-02-19 23:52:17 +00002912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002913
2914} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002915cat >config.log <<_ACEOF
2916This file contains any messages produced by compilers while
2917running configure, to aid debugging if configure makes a mistake.
2918
cristy45dbd322011-03-27 16:40:38 +00002919It was created by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +00002920generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002921
2922 $ $0 $@
2923
2924_ACEOF
2925exec 5>>config.log
2926{
2927cat <<_ASUNAME
2928## --------- ##
2929## Platform. ##
2930## --------- ##
2931
2932hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2933uname -m = `(uname -m) 2>/dev/null || echo unknown`
2934uname -r = `(uname -r) 2>/dev/null || echo unknown`
2935uname -s = `(uname -s) 2>/dev/null || echo unknown`
2936uname -v = `(uname -v) 2>/dev/null || echo unknown`
2937
2938/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2939/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2940
2941/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2942/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2943/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2944/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2945/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2946/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2947/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2948
2949_ASUNAME
2950
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002956 $as_echo "PATH: $as_dir"
2957 done
cristy3ed852e2009-09-05 21:47:34 +00002958IFS=$as_save_IFS
2959
2960} >&5
2961
2962cat >&5 <<_ACEOF
2963
2964
2965## ----------- ##
2966## Core tests. ##
2967## ----------- ##
2968
2969_ACEOF
2970
2971
2972# Keep a trace of the command line.
2973# Strip out --no-create and --no-recursion so they do not pile up.
2974# Strip out --silent because we don't want to record it for future runs.
2975# Also quote any args containing shell meta-characters.
2976# Make two passes to allow for proper duplicate-argument suppression.
2977ac_configure_args=
2978ac_configure_args0=
2979ac_configure_args1=
2980ac_must_keep_next=false
2981for ac_pass in 1 2
2982do
2983 for ac_arg
2984 do
2985 case $ac_arg in
2986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2988 | -silent | --silent | --silen | --sile | --sil)
2989 continue ;;
2990 *\'*)
2991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2992 esac
2993 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002995 2)
cristy8b350f62009-11-15 23:12:43 +00002996 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002997 if test $ac_must_keep_next = true; then
2998 ac_must_keep_next=false # Got value, back to normal.
2999 else
3000 case $ac_arg in
3001 *=* | --config-cache | -C | -disable-* | --disable-* \
3002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3004 | -with-* | --with-* | -without-* | --without-* | --x)
3005 case "$ac_configure_args0 " in
3006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3007 esac
3008 ;;
3009 -* ) ac_must_keep_next=true ;;
3010 esac
3011 fi
cristy8b350f62009-11-15 23:12:43 +00003012 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003013 ;;
3014 esac
3015 done
3016done
cristy8b350f62009-11-15 23:12:43 +00003017{ ac_configure_args0=; unset ac_configure_args0;}
3018{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003019
3020# When interrupted or exit'd, cleanup temporary files, and complete
3021# config.log. We remove comments because anyway the quotes in there
3022# would cause problems or look ugly.
3023# WARNING: Use '\'' to represent an apostrophe within the trap.
3024# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3025trap 'exit_status=$?
3026 # Save into config.log some information that might help in debugging.
3027 {
3028 echo
3029
cristy98dddb52010-11-04 00:30:15 +00003030 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003031## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003032## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003033 echo
3034 # The following way of writing the cache mishandles newlines in values,
3035(
3036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3037 eval ac_val=\$$ac_var
3038 case $ac_val in #(
3039 *${as_nl}*)
3040 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3043 esac
3044 case $ac_var in #(
3045 _ | IFS | as_nl) ;; #(
3046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003047 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003048 esac ;;
3049 esac
3050 done
3051 (set) 2>&1 |
3052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3053 *${as_nl}ac_space=\ *)
3054 sed -n \
3055 "s/'\''/'\''\\\\'\'''\''/g;
3056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3057 ;; #(
3058 *)
3059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3060 ;;
3061 esac |
3062 sort
3063)
3064 echo
3065
cristy98dddb52010-11-04 00:30:15 +00003066 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003067## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003068## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003069 echo
3070 for ac_var in $ac_subst_vars
3071 do
3072 eval ac_val=\$$ac_var
3073 case $ac_val in
3074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3075 esac
3076 $as_echo "$ac_var='\''$ac_val'\''"
3077 done | sort
3078 echo
3079
3080 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003081 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003082## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003083## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003084 echo
3085 for ac_var in $ac_subst_files
3086 do
3087 eval ac_val=\$$ac_var
3088 case $ac_val in
3089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3090 esac
3091 $as_echo "$ac_var='\''$ac_val'\''"
3092 done | sort
3093 echo
3094 fi
3095
3096 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003097 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003098## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003099## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003100 echo
3101 cat confdefs.h
3102 echo
3103 fi
3104 test "$ac_signal" != 0 &&
3105 $as_echo "$as_me: caught signal $ac_signal"
3106 $as_echo "$as_me: exit $exit_status"
3107 } >&5
3108 rm -f core *.core core.conftest.* &&
3109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3110 exit $exit_status
3111' 0
3112for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003114done
3115ac_signal=0
3116
3117# confdefs.h avoids OS command line length limits that DEFS can exceed.
3118rm -f -r conftest* confdefs.h
3119
cristy8b350f62009-11-15 23:12:43 +00003120$as_echo "/* confdefs.h */" > confdefs.h
3121
cristy3ed852e2009-09-05 21:47:34 +00003122# Predefined preprocessor variables.
3123
3124cat >>confdefs.h <<_ACEOF
3125#define PACKAGE_NAME "$PACKAGE_NAME"
3126_ACEOF
3127
cristy3ed852e2009-09-05 21:47:34 +00003128cat >>confdefs.h <<_ACEOF
3129#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3130_ACEOF
3131
cristy3ed852e2009-09-05 21:47:34 +00003132cat >>confdefs.h <<_ACEOF
3133#define PACKAGE_VERSION "$PACKAGE_VERSION"
3134_ACEOF
3135
cristy3ed852e2009-09-05 21:47:34 +00003136cat >>confdefs.h <<_ACEOF
3137#define PACKAGE_STRING "$PACKAGE_STRING"
3138_ACEOF
3139
cristy3ed852e2009-09-05 21:47:34 +00003140cat >>confdefs.h <<_ACEOF
3141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3142_ACEOF
3143
cristy8b350f62009-11-15 23:12:43 +00003144cat >>confdefs.h <<_ACEOF
3145#define PACKAGE_URL "$PACKAGE_URL"
3146_ACEOF
3147
cristy3ed852e2009-09-05 21:47:34 +00003148
3149# Let the site file select an alternate cache file if it wants to.
3150# Prefer an explicitly selected file to automatically selected ones.
3151ac_site_file1=NONE
3152ac_site_file2=NONE
3153if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003154 # We do not want a PATH search for config.site.
3155 case $CONFIG_SITE in #((
3156 -*) ac_site_file1=./$CONFIG_SITE;;
3157 */*) ac_site_file1=$CONFIG_SITE;;
3158 *) ac_site_file1=./$CONFIG_SITE;;
3159 esac
cristy3ed852e2009-09-05 21:47:34 +00003160elif test "x$prefix" != xNONE; then
3161 ac_site_file1=$prefix/share/config.site
3162 ac_site_file2=$prefix/etc/config.site
3163else
3164 ac_site_file1=$ac_default_prefix/share/config.site
3165 ac_site_file2=$ac_default_prefix/etc/config.site
3166fi
3167for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3168do
3169 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003172$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3173 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003174 . "$ac_site_file" \
3175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177as_fn_error $? "failed to load site script $ac_site_file
3178See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003179 fi
3180done
3181
3182if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003183 # Some versions of bash will fail to source /dev/null (special files
3184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: loading cache $cache_file" >&6;}
3188 case $cache_file in
3189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3190 *) . "./$cache_file";;
3191 esac
3192 fi
3193else
cristy8b350f62009-11-15 23:12:43 +00003194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003195$as_echo "$as_me: creating cache $cache_file" >&6;}
3196 >$cache_file
3197fi
3198
cristycd4c5312009-11-22 01:19:08 +00003199as_fn_append ac_header_list " stdlib.h"
3200as_fn_append ac_header_list " unistd.h"
3201as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003202# Check that the precious variables saved in the cache have kept the same
3203# value.
3204ac_cache_corrupted=false
3205for ac_var in $ac_precious_vars; do
3206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3207 eval ac_new_set=\$ac_env_${ac_var}_set
3208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3209 eval ac_new_val=\$ac_env_${ac_var}_value
3210 case $ac_old_set,$ac_new_set in
3211 set,)
cristy8b350f62009-11-15 23:12:43 +00003212 { $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 +00003213$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3214 ac_cache_corrupted=: ;;
3215 ,set)
cristy8b350f62009-11-15 23:12:43 +00003216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003217$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3218 ac_cache_corrupted=: ;;
3219 ,);;
3220 *)
3221 if test "x$ac_old_val" != "x$ac_new_val"; then
3222 # differences in whitespace do not lead to failure.
3223 ac_old_val_w=`echo x $ac_old_val`
3224 ac_new_val_w=`echo x $ac_new_val`
3225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003227$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3228 ac_cache_corrupted=:
3229 else
cristy8b350f62009-11-15 23:12:43 +00003230 { $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 +00003231$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3232 eval $ac_var=\$ac_old_val
3233 fi
cristy8b350f62009-11-15 23:12:43 +00003234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003235$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003237$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3238 fi;;
3239 esac
3240 # Pass precious variables to config.status.
3241 if test "$ac_new_set" = set; then
3242 case $ac_new_val in
3243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3244 *) ac_arg=$ac_var=$ac_new_val ;;
3245 esac
3246 case " $ac_configure_args " in
3247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003249 esac
3250 fi
3251done
3252if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003256$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003257 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003258fi
cristy8b350f62009-11-15 23:12:43 +00003259## -------------------- ##
3260## Main body of script. ##
3261## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003262
3263ac_ext=c
3264ac_cpp='$CPP $CPPFLAGS'
3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270
3271ac_aux_dir=
3272for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003273 if test -f "$ac_dir/install-sh"; then
3274 ac_aux_dir=$ac_dir
3275 ac_install_sh="$ac_aux_dir/install-sh -c"
3276 break
3277 elif test -f "$ac_dir/install.sh"; then
3278 ac_aux_dir=$ac_dir
3279 ac_install_sh="$ac_aux_dir/install.sh -c"
3280 break
3281 elif test -f "$ac_dir/shtool"; then
3282 ac_aux_dir=$ac_dir
3283 ac_install_sh="$ac_aux_dir/shtool install -c"
3284 break
3285 fi
cristy3ed852e2009-09-05 21:47:34 +00003286done
3287if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003288 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003289fi
3290
3291# These three variables are undocumented and unsupported,
3292# and are intended to be withdrawn in a future Autoconf release.
3293# They can cause serious problems if a builder's source tree is in a directory
3294# whose full name contains unusual characters.
3295ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3296ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3297ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3298
3299
3300
3301
3302ac_config_headers="$ac_config_headers config/config.h"
3303
cristy24fc1fe2010-10-23 21:13:01 +00003304
cristy73bd4a52010-10-05 11:24:23 +00003305ac_config_commands="$ac_config_commands magick/magick-config.h"
3306
cristy430a7312010-01-21 20:44:04 +00003307ac_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 +00003308
3309
3310#
3311# Save initial user-tunable values
3312#
3313USER_LIBS=$LIBS
3314for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3315 eval isset=\${$var+set}
3316 if test "$isset" = 'set'; then
3317 eval val=$`echo $var`
3318 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3319 fi
3320done
3321
3322
3323CONFIGURE_ARGS="$0 ${ac_configure_args}"
3324
3325
3326# Source file containing package/library versioning information.
3327. ${srcdir}/version.sh
3328
cristy15a88782010-01-31 23:24:49 +00003329echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003330# Make sure we can run config.sub.
3331$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003332 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003333
cristy8b350f62009-11-15 23:12:43 +00003334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003335$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003336if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003337 $as_echo_n "(cached) " >&6
3338else
3339 ac_build_alias=$build_alias
3340test "x$ac_build_alias" = x &&
3341 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3342test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003343 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003344ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003346
3347fi
cristy8b350f62009-11-15 23:12:43 +00003348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003349$as_echo "$ac_cv_build" >&6; }
3350case $ac_cv_build in
3351*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003352*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003353esac
3354build=$ac_cv_build
3355ac_save_IFS=$IFS; IFS='-'
3356set x $ac_cv_build
3357shift
3358build_cpu=$1
3359build_vendor=$2
3360shift; shift
3361# Remember, the first character of IFS is used to create $*,
3362# except with old shells:
3363build_os=$*
3364IFS=$ac_save_IFS
3365case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3366
3367
cristy8b350f62009-11-15 23:12:43 +00003368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003369$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003370if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003371 $as_echo_n "(cached) " >&6
3372else
3373 if test "x$host_alias" = x; then
3374 ac_cv_host=$ac_cv_build
3375else
3376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003378fi
3379
3380fi
cristy8b350f62009-11-15 23:12:43 +00003381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$ac_cv_host" >&6; }
3383case $ac_cv_host in
3384*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003385*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003386esac
3387host=$ac_cv_host
3388ac_save_IFS=$IFS; IFS='-'
3389set x $ac_cv_host
3390shift
3391host_cpu=$1
3392host_vendor=$2
3393shift; shift
3394# Remember, the first character of IFS is used to create $*,
3395# except with old shells:
3396host_os=$*
3397IFS=$ac_save_IFS
3398case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3399
3400
cristy8b350f62009-11-15 23:12:43 +00003401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003402$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003403if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003404 $as_echo_n "(cached) " >&6
3405else
3406 if test "x$target_alias" = x; then
3407 ac_cv_target=$ac_cv_host
3408else
3409 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003411fi
3412
3413fi
cristy8b350f62009-11-15 23:12:43 +00003414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$ac_cv_target" >&6; }
3416case $ac_cv_target in
3417*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003418*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003419esac
3420target=$ac_cv_target
3421ac_save_IFS=$IFS; IFS='-'
3422set x $ac_cv_target
3423shift
3424target_cpu=$1
3425target_vendor=$2
3426shift; shift
3427# Remember, the first character of IFS is used to create $*,
3428# except with old shells:
3429target_os=$*
3430IFS=$ac_save_IFS
3431case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3432
3433
3434# The aliases save the names the user supplied, while $host etc.
3435# will get canonicalized.
3436test -n "$target_alias" &&
3437 test "$program_prefix$program_suffix$program_transform_name" = \
3438 NONENONEs,x,x, &&
3439 program_prefix=${target_alias}-
3440
cristy837d6dc2010-02-27 01:16:57 +00003441
3442
3443
cristy19615b82011-04-13 20:02:01 +00003444MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003445
3446
cristy19615b82011-04-13 20:02:01 +00003447MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003448
3449
cristy19615b82011-04-13 20:02:01 +00003450MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003451
3452
cristy3ed852e2009-09-05 21:47:34 +00003453# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003454MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3455
3456MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3457
cristy4e185ee2011-04-25 12:05:10 +00003458MAGICK_SVN_REVISION=4318
cristyd694ca32011-03-27 21:42:54 +00003459
3460
cristy3ed852e2009-09-05 21:47:34 +00003461
3462
3463# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3465$as_echo_n "checking whether build environment is sane... " >&6; }
3466# Just in case
3467sleep 1
3468echo timestamp > conftest.file
3469# Reject unsafe characters in $srcdir or the absolute working directory
3470# name. Accept space and tab only in the latter.
3471am_lf='
3472'
3473case `pwd` in
3474 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003475 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003476esac
3477case $srcdir in
3478 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003479 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003480esac
cristy3ed852e2009-09-05 21:47:34 +00003481
cristy73bd4a52010-10-05 11:24:23 +00003482# Do `set' in a subshell so we don't clobber the current shell's
3483# arguments. Must try -L first in case configure is actually a
3484# symlink; some systems play weird games with the mod time of symlinks
3485# (eg FreeBSD returns the mod time of the symlink's containing
3486# directory).
3487if (
3488 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3489 if test "$*" = "X"; then
3490 # -L didn't work.
3491 set X `ls -t "$srcdir/configure" conftest.file`
3492 fi
3493 rm -f conftest.file
3494 if test "$*" != "X $srcdir/configure conftest.file" \
3495 && test "$*" != "X conftest.file $srcdir/configure"; then
3496
3497 # If neither matched, then we have a broken ls. This can happen
3498 # if, for instance, CONFIG_SHELL is bash and it inherits a
3499 # broken ls alias from the environment. This has actually
3500 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003501 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003502alias in your environment" "$LINENO" 5
3503 fi
3504
3505 test "$2" = conftest.file
3506 )
3507then
3508 # Ok.
3509 :
3510else
cristy98dddb52010-11-04 00:30:15 +00003511 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003512Check your system clock" "$LINENO" 5
3513fi
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3515$as_echo "yes" >&6; }
3516
3517am__api_version='1.11'
3518
3519# Find a good install program. We prefer a C program (faster),
3520# so one script is as good as another. But avoid the broken or
3521# incompatible versions:
3522# SysV /etc/install, /usr/sbin/install
3523# SunOS /usr/etc/install
3524# IRIX /sbin/install
3525# AIX /bin/install
3526# AmigaOS /C/install, which installs bootblocks on floppy discs
3527# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3528# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3529# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3530# OS/2's system install, which has a completely different semantic
3531# ./install, which can be erroneously created by make from ./install.sh.
3532# Reject install programs that cannot install multiple files.
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3534$as_echo_n "checking for a BSD-compatible install... " >&6; }
3535if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003536if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003537 $as_echo_n "(cached) " >&6
3538else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 # Account for people who put trailing slashes in PATH elements.
3545case $as_dir/ in #((
3546 ./ | .// | /[cC]/* | \
3547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3549 /usr/ucb/* ) ;;
3550 *)
3551 # OSF1 and SCO ODT 3.0 have their own names for install.
3552 # Don't use installbsd from OSF since it installs stuff as root
3553 # by default.
3554 for ac_prog in ginstall scoinst install; do
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3557 if test $ac_prog = install &&
3558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559 # AIX install. It has an incompatible calling convention.
3560 :
3561 elif test $ac_prog = install &&
3562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3563 # program-specific install script used by HP pwplus--don't use.
3564 :
3565 else
3566 rm -rf conftest.one conftest.two conftest.dir
3567 echo one > conftest.one
3568 echo two > conftest.two
3569 mkdir conftest.dir
3570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3571 test -s conftest.one && test -s conftest.two &&
3572 test -s conftest.dir/conftest.one &&
3573 test -s conftest.dir/conftest.two
3574 then
3575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3576 break 3
3577 fi
3578 fi
3579 fi
3580 done
3581 done
3582 ;;
3583esac
3584
3585 done
3586IFS=$as_save_IFS
3587
3588rm -rf conftest.one conftest.two conftest.dir
3589
3590fi
3591 if test "${ac_cv_path_install+set}" = set; then
3592 INSTALL=$ac_cv_path_install
3593 else
3594 # As a last resort, use the slow shell script. Don't cache a
3595 # value for INSTALL within a source directory, because that will
3596 # break other packages using the cache if that directory is
3597 # removed, or if the value is a relative name.
3598 INSTALL=$ac_install_sh
3599 fi
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3602$as_echo "$INSTALL" >&6; }
3603
3604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3605# It thinks the first close brace ends the variable substitution.
3606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3607
3608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3609
3610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3611
3612test "$program_prefix" != NONE &&
3613 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3614# Use a double $ so make ignores it.
3615test "$program_suffix" != NONE &&
3616 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3617# Double any \ or $.
3618# By default was `s,x,x', remove it if useless.
3619ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3620program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3621
3622# expand $ac_aux_dir to an absolute path
3623am_aux_dir=`cd $ac_aux_dir && pwd`
3624
3625if test x"${MISSING+set}" != xset; then
3626 case $am_aux_dir in
3627 *\ * | *\ *)
3628 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3629 *)
3630 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3631 esac
3632fi
3633# Use eval to expand $SHELL
3634if eval "$MISSING --run true"; then
3635 am_missing_run="$MISSING --run "
3636else
3637 am_missing_run=
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3639$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3640fi
3641
3642if test x"${install_sh}" != xset; then
3643 case $am_aux_dir in
3644 *\ * | *\ *)
3645 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3646 *)
3647 install_sh="\${SHELL} $am_aux_dir/install-sh"
3648 esac
3649fi
3650
3651# Installed binaries are usually stripped using `strip' when the user
3652# run `make install-strip'. However `strip' might not be the right
3653# tool to use in cross-compilation environments, therefore Automake
3654# will honor the `STRIP' environment variable to overrule this program.
3655if test "$cross_compiling" != no; then
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3658set dummy ${ac_tool_prefix}strip; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003661if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003662 $as_echo_n "(cached) " >&6
3663else
3664 if test -n "$STRIP"; then
3665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678done
3679 done
3680IFS=$as_save_IFS
3681
3682fi
3683fi
3684STRIP=$ac_cv_prog_STRIP
3685if test -n "$STRIP"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3687$as_echo "$STRIP" >&6; }
3688else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691fi
3692
3693
3694fi
3695if test -z "$ac_cv_prog_STRIP"; then
3696 ac_ct_STRIP=$STRIP
3697 # Extract the first word of "strip", so it can be a program name with args.
3698set dummy strip; ac_word=$2
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003701if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003702 $as_echo_n "(cached) " >&6
3703else
3704 if test -n "$ac_ct_STRIP"; then
3705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3706else
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_ac_ct_STRIP="strip"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718done
3719 done
3720IFS=$as_save_IFS
3721
3722fi
3723fi
3724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3725if test -n "$ac_ct_STRIP"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3727$as_echo "$ac_ct_STRIP" >&6; }
3728else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730$as_echo "no" >&6; }
3731fi
3732
3733 if test "x$ac_ct_STRIP" = x; then
3734 STRIP=":"
3735 else
3736 case $cross_compiling:$ac_tool_warned in
3737yes:)
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3740ac_tool_warned=yes ;;
3741esac
3742 STRIP=$ac_ct_STRIP
3743 fi
3744else
3745 STRIP="$ac_cv_prog_STRIP"
3746fi
3747
3748fi
3749INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3750
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3752$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3753if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003754 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003755 $as_echo_n "(cached) " >&6
3756else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3759do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_prog in mkdir gmkdir; do
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3765 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3766 'mkdir (GNU coreutils) '* | \
3767 'mkdir (coreutils) '* | \
3768 'mkdir (fileutils) '4.1*)
3769 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3770 break 3;;
3771 esac
3772 done
3773 done
3774 done
3775IFS=$as_save_IFS
3776
3777fi
3778
3779 test -d ./--version && rmdir ./--version
3780 if test "${ac_cv_path_mkdir+set}" = set; then
3781 MKDIR_P="$ac_cv_path_mkdir -p"
3782 else
3783 # As a last resort, use the slow shell script. Don't cache a
3784 # value for MKDIR_P within a source directory, because that will
3785 # break other packages using the cache if that directory is
3786 # removed, or if the value is a relative name.
3787 MKDIR_P="$ac_install_sh -d"
3788 fi
3789fi
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3791$as_echo "$MKDIR_P" >&6; }
3792
3793mkdir_p="$MKDIR_P"
3794case $mkdir_p in
3795 [\\/$]* | ?:[\\/]*) ;;
3796 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3797esac
3798
3799for ac_prog in gawk mawk nawk awk
3800do
3801 # Extract the first word of "$ac_prog", so it can be a program name with args.
3802set dummy $ac_prog; ac_word=$2
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003805if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003806 $as_echo_n "(cached) " >&6
3807else
3808 if test -n "$AWK"; then
3809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3810else
3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3818 ac_cv_prog_AWK="$ac_prog"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3821 fi
3822done
3823 done
3824IFS=$as_save_IFS
3825
3826fi
3827fi
3828AWK=$ac_cv_prog_AWK
3829if test -n "$AWK"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3831$as_echo "$AWK" >&6; }
3832else
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834$as_echo "no" >&6; }
3835fi
3836
3837
3838 test -n "$AWK" && break
3839done
3840
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3842$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3843set x ${MAKE-make}
3844ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003845if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003846 $as_echo_n "(cached) " >&6
3847else
3848 cat >conftest.make <<\_ACEOF
3849SHELL = /bin/sh
3850all:
3851 @echo '@@@%%%=$(MAKE)=@@@%%%'
3852_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003853# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003854case `${MAKE-make} -f conftest.make 2>/dev/null` in
3855 *@@@%%%=?*=@@@%%%*)
3856 eval ac_cv_prog_make_${ac_make}_set=yes;;
3857 *)
3858 eval ac_cv_prog_make_${ac_make}_set=no;;
3859esac
3860rm -f conftest.make
3861fi
3862if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3864$as_echo "yes" >&6; }
3865 SET_MAKE=
3866else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
3869 SET_MAKE="MAKE=${MAKE-make}"
3870fi
3871
3872rm -rf .tst 2>/dev/null
3873mkdir .tst 2>/dev/null
3874if test -d .tst; then
3875 am__leading_dot=.
3876else
3877 am__leading_dot=_
3878fi
3879rmdir .tst 2>/dev/null
3880
3881if test "`cd $srcdir && pwd`" != "`pwd`"; then
3882 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3883 # is not polluted with repeated "-I."
3884 am__isrc=' -I$(srcdir)'
3885 # test to see if srcdir already configured
3886 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003887 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003888 fi
3889fi
3890
3891# test whether we have cygpath
3892if test -z "$CYGPATH_W"; then
3893 if (cygpath --version) >/dev/null 2>/dev/null; then
3894 CYGPATH_W='cygpath -w'
3895 else
3896 CYGPATH_W=echo
3897 fi
3898fi
3899
3900
3901# Define the identity of the package.
3902 PACKAGE=$PACKAGE_NAME
3903 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3904
3905
3906# Some tools Automake needs.
3907
3908ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3909
3910
3911AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3912
3913
3914AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3915
3916
3917AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3918
3919
3920MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3921
3922# We need awk for the "check" target. The system "awk" is bad on
3923# some platforms.
3924# Always define AMTAR for backward compatibility.
3925
3926AMTAR=${AMTAR-"${am_missing_run}tar"}
3927
3928am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3929
3930
3931
3932
3933
cristy3ed852e2009-09-05 21:47:34 +00003934
3935# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003936# Check whether --enable-silent-rules was given.
3937if test "${enable_silent_rules+set}" = set; then :
3938 enableval=$enable_silent_rules;
3939fi
3940
3941case $enable_silent_rules in
3942yes) AM_DEFAULT_VERBOSITY=0;;
3943no) AM_DEFAULT_VERBOSITY=1;;
3944*) AM_DEFAULT_VERBOSITY=0;;
3945esac
3946AM_BACKSLASH='\'
3947
cristy3ed852e2009-09-05 21:47:34 +00003948
3949MAGICK_LIB_VERSION="0x"
3950if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3951 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3952fi
3953MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3954if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3955 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3956fi
3957MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3958if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3959 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3960fi
3961MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3962
3963
3964# Definition used to define MagickLibVersionText in version.h
3965MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3966
3967
3968# Definition used to define MagickLibVersionNumber in version.h
3969MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3970
3971
3972# Regenerate config.status if ChangeLog or version.sh is updated.
3973CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3974
3975
3976PERLMAINCC=$CC
3977
3978MAGICK_CFLAGS=''
3979MAGICK_CPPFLAGS=$CPPFLAGS_USER
3980MAGICK_PCFLAGS=$CPPFLAGS_USER
3981MAGICK_LDFLAGS=''
3982MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003983MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003984
3985#
3986# Evaluate shell variable equivalents to Makefile directory variables
3987#
3988if test "x$prefix" = xNONE; then
3989 prefix=$ac_default_prefix
3990fi
3991# Let make expand exec_prefix.
3992if test "x$exec_prefix" = xNONE; then
3993 exec_prefix='${prefix}'
3994fi
3995
3996#
3997eval "eval PREFIX_DIR=${prefix}"
3998
3999eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4000
4001eval "eval BIN_DIR=$bindir"
4002
4003eval "eval SBIN_DIR=$sbindir"
4004
4005eval "eval LIBEXEC_DIR=$libexecdir"
4006
4007eval "eval DATA_DIR=$datadir"
4008
cristyd55889c2011-03-27 00:50:24 +00004009eval "eval DOC_DIR=$docdir"
4010
cristy3ed852e2009-09-05 21:47:34 +00004011eval "eval SYSCONF_DIR=$sysconfdir"
4012
4013eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4014
4015eval "eval LOCALSTATE_DIR=$localstatedir"
4016
4017eval "eval LIB_DIR=$libdir"
4018
4019eval "eval INCLUDE_DIR=$includedir"
4020
4021eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4022
4023eval "eval INFO_DIR=$infodir"
4024
4025eval "eval MAN_DIR=$mandir"
4026
4027
4028# Get full paths to source and build directories
4029srcdirfull="`cd $srcdir && pwd`"
4030builddir="`pwd`"
4031
4032#
4033# Compute variables useful for running uninstalled software.
4034#
4035MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4036MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4037MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4038MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4039DIRSEP=':'
4040case "${build_os}" in
4041 mingw* )
4042 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4043 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4044 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4045 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4046 DIRSEP=';'
4047 ;;
4048esac
4049case "${host_os}" in
4050 mingw* )
4051 DIRSEP=';'
4052 ;;
4053esac
4054
4055
4056
4057
4058
4059
cristya0b81c32010-01-22 02:54:33 +00004060
4061#
4062# Enable OS features.
4063#
cristy73bd4a52010-10-05 11:24:23 +00004064DEPDIR="${am__leading_dot}deps"
4065
4066ac_config_commands="$ac_config_commands depfiles"
4067
4068
4069am_make=${MAKE-make}
4070cat > confinc << 'END'
4071am__doit:
4072 @echo this is the am__doit target
4073.PHONY: am__doit
4074END
4075# If we don't find an include directive, just comment out the code.
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4077$as_echo_n "checking for style of include used by $am_make... " >&6; }
4078am__include="#"
4079am__quote=
4080_am_result=none
4081# First try GNU make style include.
4082echo "include confinc" > confmf
4083# Ignore all kinds of additional output from `make'.
4084case `$am_make -s -f confmf 2> /dev/null` in #(
4085*the\ am__doit\ target*)
4086 am__include=include
4087 am__quote=
4088 _am_result=GNU
4089 ;;
4090esac
4091# Now try BSD make style include.
4092if test "$am__include" = "#"; then
4093 echo '.include "confinc"' > confmf
4094 case `$am_make -s -f confmf 2> /dev/null` in #(
4095 *the\ am__doit\ target*)
4096 am__include=.include
4097 am__quote="\""
4098 _am_result=BSD
4099 ;;
4100 esac
4101fi
4102
4103
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4105$as_echo "$_am_result" >&6; }
4106rm -f confinc confmf
4107
4108# Check whether --enable-dependency-tracking was given.
4109if test "${enable_dependency_tracking+set}" = set; then :
4110 enableval=$enable_dependency_tracking;
4111fi
4112
4113if test "x$enable_dependency_tracking" != xno; then
4114 am_depcomp="$ac_aux_dir/depcomp"
4115 AMDEPBACKSLASH='\'
4116fi
4117 if test "x$enable_dependency_tracking" != xno; then
4118 AMDEP_TRUE=
4119 AMDEP_FALSE='#'
4120else
4121 AMDEP_TRUE='#'
4122 AMDEP_FALSE=
4123fi
4124
4125
cristy3ed852e2009-09-05 21:47:34 +00004126ac_ext=c
4127ac_cpp='$CPP $CPPFLAGS'
4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4133set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004135$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004136if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004137 $as_echo_n "(cached) " >&6
4138else
4139 if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141else
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004151 break 2
4152 fi
4153done
cristy8b350f62009-11-15 23:12:43 +00004154 done
cristy3ed852e2009-09-05 21:47:34 +00004155IFS=$as_save_IFS
4156
4157fi
4158fi
4159CC=$ac_cv_prog_CC
4160if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004162$as_echo "$CC" >&6; }
4163else
cristy8b350f62009-11-15 23:12:43 +00004164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004165$as_echo "no" >&6; }
4166fi
4167
4168
4169fi
4170if test -z "$ac_cv_prog_CC"; then
4171 ac_ct_CC=$CC
4172 # Extract the first word of "gcc", so it can be a program name with args.
4173set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004175$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004176if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004177 $as_echo_n "(cached) " >&6
4178else
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004191 break 2
4192 fi
4193done
cristy8b350f62009-11-15 23:12:43 +00004194 done
cristy3ed852e2009-09-05 21:47:34 +00004195IFS=$as_save_IFS
4196
4197fi
4198fi
4199ac_ct_CC=$ac_cv_prog_ac_ct_CC
4200if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004202$as_echo "$ac_ct_CC" >&6; }
4203else
cristy8b350f62009-11-15 23:12:43 +00004204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004205$as_echo "no" >&6; }
4206fi
4207
4208 if test "x$ac_ct_CC" = x; then
4209 CC=""
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212yes:)
cristy8b350f62009-11-15 23:12:43 +00004213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215ac_tool_warned=yes ;;
4216esac
4217 CC=$ac_ct_CC
4218 fi
4219else
4220 CC="$ac_cv_prog_CC"
4221fi
4222
4223if test -z "$CC"; then
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4226set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004228$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004229if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004230 $as_echo_n "(cached) " >&6
4231else
4232 if test -n "$CC"; then
4233 ac_cv_prog_CC="$CC" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004244 break 2
4245 fi
4246done
cristy8b350f62009-11-15 23:12:43 +00004247 done
cristy3ed852e2009-09-05 21:47:34 +00004248IFS=$as_save_IFS
4249
4250fi
4251fi
4252CC=$ac_cv_prog_CC
4253if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004255$as_echo "$CC" >&6; }
4256else
cristy8b350f62009-11-15 23:12:43 +00004257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004258$as_echo "no" >&6; }
4259fi
4260
4261
4262 fi
4263fi
4264if test -z "$CC"; then
4265 # Extract the first word of "cc", so it can be a program name with args.
4266set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004268$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004269if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004270 $as_echo_n "(cached) " >&6
4271else
4272 if test -n "$CC"; then
4273 ac_cv_prog_CC="$CC" # Let the user override the test.
4274else
4275 ac_prog_rejected=no
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4284 ac_prog_rejected=yes
4285 continue
4286 fi
4287 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004289 break 2
4290 fi
4291done
cristy8b350f62009-11-15 23:12:43 +00004292 done
cristy3ed852e2009-09-05 21:47:34 +00004293IFS=$as_save_IFS
4294
4295if test $ac_prog_rejected = yes; then
4296 # We found a bogon in the path, so make sure we never use it.
4297 set dummy $ac_cv_prog_CC
4298 shift
4299 if test $# != 0; then
4300 # We chose a different compiler from the bogus one.
4301 # However, it has the same basename, so the bogon will be chosen
4302 # first if we set CC to just the basename; use the full file name.
4303 shift
4304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4305 fi
4306fi
4307fi
4308fi
4309CC=$ac_cv_prog_CC
4310if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312$as_echo "$CC" >&6; }
4313else
cristy8b350f62009-11-15 23:12:43 +00004314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004315$as_echo "no" >&6; }
4316fi
4317
4318
4319fi
4320if test -z "$CC"; then
4321 if test -n "$ac_tool_prefix"; then
4322 for ac_prog in cl.exe
4323 do
4324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004327$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004328if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004329 $as_echo_n "(cached) " >&6
4330else
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
4333else
4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004339 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004343 break 2
4344 fi
4345done
cristy8b350f62009-11-15 23:12:43 +00004346 done
cristy3ed852e2009-09-05 21:47:34 +00004347IFS=$as_save_IFS
4348
4349fi
4350fi
4351CC=$ac_cv_prog_CC
4352if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004354$as_echo "$CC" >&6; }
4355else
cristy8b350f62009-11-15 23:12:43 +00004356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004357$as_echo "no" >&6; }
4358fi
4359
4360
4361 test -n "$CC" && break
4362 done
4363fi
4364if test -z "$CC"; then
4365 ac_ct_CC=$CC
4366 for ac_prog in cl.exe
4367do
4368 # Extract the first word of "$ac_prog", so it can be a program name with args.
4369set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004371$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004372if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004373 $as_echo_n "(cached) " >&6
4374else
4375 if test -n "$ac_ct_CC"; then
4376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4377else
4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004383 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004387 break 2
4388 fi
4389done
cristy8b350f62009-11-15 23:12:43 +00004390 done
cristy3ed852e2009-09-05 21:47:34 +00004391IFS=$as_save_IFS
4392
4393fi
4394fi
4395ac_ct_CC=$ac_cv_prog_ac_ct_CC
4396if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004398$as_echo "$ac_ct_CC" >&6; }
4399else
cristy8b350f62009-11-15 23:12:43 +00004400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004401$as_echo "no" >&6; }
4402fi
4403
4404
4405 test -n "$ac_ct_CC" && break
4406done
4407
4408 if test "x$ac_ct_CC" = x; then
4409 CC=""
4410 else
4411 case $cross_compiling:$ac_tool_warned in
4412yes:)
cristy8b350f62009-11-15 23:12:43 +00004413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4415ac_tool_warned=yes ;;
4416esac
4417 CC=$ac_ct_CC
4418 fi
4419fi
4420
4421fi
4422
4423
cristy8b350f62009-11-15 23:12:43 +00004424test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004426as_fn_error $? "no acceptable C compiler found in \$PATH
4427See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004428
4429# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004430$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004431set X $ac_compile
4432ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004433for ac_option in --version -v -V -qversion; do
4434 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004435case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438esac
cristy8b350f62009-11-15 23:12:43 +00004439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440$as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004442 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004443 if test -s conftest.err; then
4444 sed '10a\
4445... rest of stderr output deleted ...
4446 10q' conftest.err >conftest.er1
4447 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004448 fi
cristycd4c5312009-11-22 01:19:08 +00004449 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }
4452done
cristy3ed852e2009-09-05 21:47:34 +00004453
cristy8b350f62009-11-15 23:12:43 +00004454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004455/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004456
cristy3ed852e2009-09-05 21:47:34 +00004457int
4458main ()
4459{
4460
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004466ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004467# Try to create an executable without -o first, disregard a.out.
4468# It will help us diagnose broken compilers, and finding out an intuition
4469# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4471$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004472ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4473
4474# The possible output files:
4475ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4476
4477ac_rmfiles=
4478for ac_file in $ac_files
4479do
4480 case $ac_file in
4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4483 esac
4484done
4485rm -f $ac_rmfiles
4486
cristy8b350f62009-11-15 23:12:43 +00004487if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004488case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
cristy8b350f62009-11-15 23:12:43 +00004492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004494 (eval "$ac_link_default") 2>&5
4495 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004498 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4499# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4500# in a Makefile. We should not override ac_cv_exeext if it was cached,
4501# so that the user can short-circuit this test for compilers unknown to
4502# Autoconf.
4503for ac_file in $ac_files ''
4504do
4505 test -f "$ac_file" || continue
4506 case $ac_file in
4507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4508 ;;
4509 [ab].out )
4510 # We found the default executable, but exeext='' is most
4511 # certainly right.
4512 break;;
4513 *.* )
cristy8b350f62009-11-15 23:12:43 +00004514 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004515 then :; else
4516 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517 fi
4518 # We set ac_cv_exeext here because the later test for it is not
4519 # safe: cross compilers may not add the suffix if given an `-o'
4520 # argument, so we may need to know it at that point already.
4521 # Even if this section looks crufty: it has the advantage of
4522 # actually working.
4523 break;;
4524 * )
4525 break;;
4526 esac
4527done
4528test "$ac_cv_exeext" = no && ac_cv_exeext=
4529
4530else
4531 ac_file=''
4532fi
cristy8b350f62009-11-15 23:12:43 +00004533if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
4536$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004537sed 's/^/| /' conftest.$ac_ext >&5
4538
cristy8b350f62009-11-15 23:12:43 +00004539{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004541as_fn_error 77 "C compiler cannot create executables
4542See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004543else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004546fi
cristycd4c5312009-11-22 01:19:08 +00004547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4548$as_echo_n "checking for C compiler default output file name... " >&6; }
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4550$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004551ac_exeext=$ac_cv_exeext
4552
cristycd4c5312009-11-22 01:19:08 +00004553rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004554ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004557if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004558case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
cristy8b350f62009-11-15 23:12:43 +00004562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004564 (eval "$ac_link") 2>&5
4565 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4569# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4570# work properly (i.e., refer to `conftest.exe'), while it won't with
4571# `rm'.
4572for ac_file in conftest.exe conftest conftest.*; do
4573 test -f "$ac_file" || continue
4574 case $ac_file in
4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4577 break;;
4578 * ) break;;
4579 esac
4580done
4581else
cristy8b350f62009-11-15 23:12:43 +00004582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004584as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4585See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004586fi
cristycd4c5312009-11-22 01:19:08 +00004587rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004589$as_echo "$ac_cv_exeext" >&6; }
4590
4591rm -f conftest.$ac_ext
4592EXEEXT=$ac_cv_exeext
4593ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h. */
4596#include <stdio.h>
4597int
4598main ()
4599{
4600FILE *f = fopen ("conftest.out", "w");
4601 return ferror (f) || fclose (f) != 0;
4602
4603 ;
4604 return 0;
4605}
4606_ACEOF
4607ac_clean_files="$ac_clean_files conftest.out"
4608# Check that the compiler produces executables we can run. If not, either
4609# the compiler is broken, or we cross compile.
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4611$as_echo_n "checking whether we are cross compiling... " >&6; }
4612if test "$cross_compiling" != yes; then
4613 { { ac_try="$ac_link"
4614case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617esac
4618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619$as_echo "$ac_try_echo"; } >&5
4620 (eval "$ac_link") 2>&5
4621 ac_status=$?
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }
4624 if { ac_try='./conftest$ac_cv_exeext'
4625 { { case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628esac
4629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4630$as_echo "$ac_try_echo"; } >&5
4631 (eval "$ac_try") 2>&5
4632 ac_status=$?
4633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }; }; then
4635 cross_compiling=no
4636 else
4637 if test "$cross_compiling" = maybe; then
4638 cross_compiling=yes
4639 else
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004642as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004643If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004644See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004645 fi
4646 fi
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4649$as_echo "$cross_compiling" >&6; }
4650
4651rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4652ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004654$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004655if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004656 $as_echo_n "(cached) " >&6
4657else
cristy8b350f62009-11-15 23:12:43 +00004658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004659/* end confdefs.h. */
4660
4661int
4662main ()
4663{
4664
4665 ;
4666 return 0;
4667}
4668_ACEOF
4669rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004670if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004671case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674esac
cristy8b350f62009-11-15 23:12:43 +00004675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004677 (eval "$ac_compile") 2>&5
4678 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004681 for ac_file in conftest.o conftest.obj conftest.*; do
4682 test -f "$ac_file" || continue;
4683 case $ac_file in
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686 break;;
4687 esac
4688done
4689else
4690 $as_echo "$as_me: failed program was:" >&5
4691sed 's/^/| /' conftest.$ac_ext >&5
4692
cristy8b350f62009-11-15 23:12:43 +00004693{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004695as_fn_error $? "cannot compute suffix of object files: cannot compile
4696See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004697fi
cristy3ed852e2009-09-05 21:47:34 +00004698rm -f conftest.$ac_cv_objext conftest.$ac_ext
4699fi
cristy8b350f62009-11-15 23:12:43 +00004700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701$as_echo "$ac_cv_objext" >&6; }
4702OBJEXT=$ac_cv_objext
4703ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004706if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004707 $as_echo_n "(cached) " >&6
4708else
cristy8b350f62009-11-15 23:12:43 +00004709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004710/* end confdefs.h. */
4711
4712int
4713main ()
4714{
4715#ifndef __GNUC__
4716 choke me
4717#endif
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004723if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004724 ac_compiler_gnu=yes
4725else
cristy8b350f62009-11-15 23:12:43 +00004726 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004727fi
cristy3ed852e2009-09-05 21:47:34 +00004728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729ac_cv_c_compiler_gnu=$ac_compiler_gnu
4730
4731fi
cristy8b350f62009-11-15 23:12:43 +00004732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4734if test $ac_compiler_gnu = yes; then
4735 GCC=yes
4736else
4737 GCC=
4738fi
4739ac_test_CFLAGS=${CFLAGS+set}
4740ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004742$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004743if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004744 $as_echo_n "(cached) " >&6
4745else
4746 ac_save_c_werror_flag=$ac_c_werror_flag
4747 ac_c_werror_flag=yes
4748 ac_cv_prog_cc_g=no
4749 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004751/* end confdefs.h. */
4752
4753int
4754main ()
4755{
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004761if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004762 ac_cv_prog_cc_g=yes
4763else
cristy8b350f62009-11-15 23:12:43 +00004764 CFLAGS=""
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004776if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004777
cristy8b350f62009-11-15 23:12:43 +00004778else
4779 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004780 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004782/* end confdefs.h. */
4783
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004792if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004793 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004794fi
cristy3ed852e2009-09-05 21:47:34 +00004795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796fi
cristy3ed852e2009-09-05 21:47:34 +00004797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798fi
cristy3ed852e2009-09-05 21:47:34 +00004799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4801fi
cristy8b350f62009-11-15 23:12:43 +00004802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004803$as_echo "$ac_cv_prog_cc_g" >&6; }
4804if test "$ac_test_CFLAGS" = set; then
4805 CFLAGS=$ac_save_CFLAGS
4806elif test $ac_cv_prog_cc_g = yes; then
4807 if test "$GCC" = yes; then
4808 CFLAGS="-g -O2"
4809 else
4810 CFLAGS="-g"
4811 fi
4812else
4813 if test "$GCC" = yes; then
4814 CFLAGS="-O2"
4815 else
4816 CFLAGS=
4817 fi
4818fi
cristy8b350f62009-11-15 23:12:43 +00004819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004820$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004821if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004822 $as_echo_n "(cached) " >&6
4823else
4824 ac_cv_prog_cc_c89=no
4825ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004827/* end confdefs.h. */
4828#include <stdarg.h>
4829#include <stdio.h>
4830#include <sys/types.h>
4831#include <sys/stat.h>
4832/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4833struct buf { int x; };
4834FILE * (*rcsopen) (struct buf *, struct stat *, int);
4835static char *e (p, i)
4836 char **p;
4837 int i;
4838{
4839 return p[i];
4840}
4841static char *f (char * (*g) (char **, int), char **p, ...)
4842{
4843 char *s;
4844 va_list v;
4845 va_start (v,p);
4846 s = g (p, va_arg (v,int));
4847 va_end (v);
4848 return s;
4849}
4850
4851/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4852 function prototypes and stuff, but not '\xHH' hex character constants.
4853 These don't provoke an error unfortunately, instead are silently treated
4854 as 'x'. The following induces an error, until -std is added to get
4855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4856 array size at least. It's necessary to write '\x00'==0 to get something
4857 that's true only with -std. */
4858int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4859
4860/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4861 inside strings and character constants. */
4862#define FOO(x) 'x'
4863int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4864
4865int test (int i, double x);
4866struct s1 {int (*f) (int a);};
4867struct s2 {int (*f) (double a);};
4868int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4869int argc;
4870char **argv;
4871int
4872main ()
4873{
4874return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4881do
4882 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004883 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004884 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004885fi
cristy3ed852e2009-09-05 21:47:34 +00004886rm -f core conftest.err conftest.$ac_objext
4887 test "x$ac_cv_prog_cc_c89" != "xno" && break
4888done
4889rm -f conftest.$ac_ext
4890CC=$ac_save_CC
4891
4892fi
4893# AC_CACHE_VAL
4894case "x$ac_cv_prog_cc_c89" in
4895 x)
cristy8b350f62009-11-15 23:12:43 +00004896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004897$as_echo "none needed" >&6; } ;;
4898 xno)
cristy8b350f62009-11-15 23:12:43 +00004899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900$as_echo "unsupported" >&6; } ;;
4901 *)
4902 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004904$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4905esac
cristy8b350f62009-11-15 23:12:43 +00004906if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004907
cristy8b350f62009-11-15 23:12:43 +00004908fi
cristy3ed852e2009-09-05 21:47:34 +00004909
4910ac_ext=c
4911ac_cpp='$CPP $CPPFLAGS'
4912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004915
cristy73bd4a52010-10-05 11:24:23 +00004916depcc="$CC" am_compiler_list=
4917
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4919$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004920if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004921 $as_echo_n "(cached) " >&6
4922else
4923 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4924 # We make a subdir and do the tests there. Otherwise we can end up
4925 # making bogus files that we don't know about and never remove. For
4926 # instance it was reported that on HP-UX the gcc test will end up
4927 # making a dummy file named `D' -- because `-MD' means `put the output
4928 # in D'.
4929 mkdir conftest.dir
4930 # Copy depcomp to subdir because otherwise we won't find it if we're
4931 # using a relative directory.
4932 cp "$am_depcomp" conftest.dir
4933 cd conftest.dir
4934 # We will build objects and dependencies in a subdirectory because
4935 # it helps to detect inapplicable dependency modes. For instance
4936 # both Tru64's cc and ICC support -MD to output dependencies as a
4937 # side effect of compilation, but ICC will put the dependencies in
4938 # the current directory while Tru64 will put them in the object
4939 # directory.
4940 mkdir sub
4941
4942 am_cv_CC_dependencies_compiler_type=none
4943 if test "$am_compiler_list" = ""; then
4944 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4945 fi
4946 am__universal=false
4947 case " $depcc " in #(
4948 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4949 esac
4950
4951 for depmode in $am_compiler_list; do
4952 # Setup a source with many dependencies, because some compilers
4953 # like to wrap large dependency lists on column 80 (with \), and
4954 # we should not choose a depcomp mode which is confused by this.
4955 #
4956 # We need to recreate these files for each test, as the compiler may
4957 # overwrite some of them when testing with obscure command lines.
4958 # This happens at least with the AIX C compiler.
4959 : > sub/conftest.c
4960 for i in 1 2 3 4 5 6; do
4961 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4962 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4963 # Solaris 8's {/usr,}/bin/sh.
4964 touch sub/conftst$i.h
4965 done
4966 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4967
4968 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4969 # mode. It turns out that the SunPro C++ compiler does not properly
4970 # handle `-M -o', and we need to detect this. Also, some Intel
4971 # versions had trouble with output in subdirs
4972 am__obj=sub/conftest.${OBJEXT-o}
4973 am__minus_obj="-o $am__obj"
4974 case $depmode in
4975 gcc)
4976 # This depmode causes a compiler race in universal mode.
4977 test "$am__universal" = false || continue
4978 ;;
4979 nosideeffect)
4980 # after this tag, mechanisms are not by side-effect, so they'll
4981 # only be used when explicitly requested
4982 if test "x$enable_dependency_tracking" = xyes; then
4983 continue
4984 else
4985 break
4986 fi
4987 ;;
4988 msvisualcpp | msvcmsys)
4989 # This compiler won't grok `-c -o', but also, the minuso test has
4990 # not run yet. These depmodes are late enough in the game, and
4991 # so weak that their functioning should not be impacted.
4992 am__obj=conftest.${OBJEXT-o}
4993 am__minus_obj=
4994 ;;
4995 none) break ;;
4996 esac
4997 if depmode=$depmode \
4998 source=sub/conftest.c object=$am__obj \
4999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5000 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5001 >/dev/null 2>conftest.err &&
5002 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5003 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5004 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5005 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5006 # icc doesn't choke on unknown options, it will just issue warnings
5007 # or remarks (even with -Werror). So we grep stderr for any message
5008 # that says an option was ignored or not supported.
5009 # When given -MP, icc 7.0 and 7.1 complain thusly:
5010 # icc: Command line warning: ignoring option '-M'; no argument required
5011 # The diagnosis changed in icc 8.0:
5012 # icc: Command line remark: option '-MP' not supported
5013 if (grep 'ignoring option' conftest.err ||
5014 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5015 am_cv_CC_dependencies_compiler_type=$depmode
5016 break
5017 fi
5018 fi
5019 done
5020
5021 cd ..
5022 rm -rf conftest.dir
5023else
5024 am_cv_CC_dependencies_compiler_type=none
5025fi
5026
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5029$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5030CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5031
5032 if
5033 test "x$enable_dependency_tracking" != xno \
5034 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5035 am__fastdepCC_TRUE=
5036 am__fastdepCC_FALSE='#'
5037else
5038 am__fastdepCC_TRUE='#'
5039 am__fastdepCC_FALSE=
5040fi
5041
5042
cristy3ed852e2009-09-05 21:47:34 +00005043
cristya0b81c32010-01-22 02:54:33 +00005044ac_ext=c
5045ac_cpp='$CPP $CPPFLAGS'
5046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5050$as_echo_n "checking how to run the C preprocessor... " >&6; }
5051# On Suns, sometimes $CPP names a directory.
5052if test -n "$CPP" && test -d "$CPP"; then
5053 CPP=
5054fi
5055if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005056 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005057 $as_echo_n "(cached) " >&6
5058else
5059 # Double quotes because CPP needs to be expanded
5060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5061 do
5062 ac_preproc_ok=false
5063for ac_c_preproc_warn_flag in '' yes
5064do
5065 # Use a header file that comes with gcc, so configuring glibc
5066 # with a fresh cross-compiler works.
5067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068 # <limits.h> exists even on freestanding compilers.
5069 # On the NeXT, cc -E runs the code through the compiler's parser,
5070 # not just through cpp. "Syntax error" is here to catch this case.
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h. */
5073#ifdef __STDC__
5074# include <limits.h>
5075#else
5076# include <assert.h>
5077#endif
5078 Syntax error
5079_ACEOF
5080if ac_fn_c_try_cpp "$LINENO"; then :
5081
5082else
5083 # Broken: fails on valid input.
5084continue
5085fi
cristyda16f162011-02-19 23:52:17 +00005086rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005087
5088 # OK, works on sane cases. Now check whether nonexistent headers
5089 # can be detected and how.
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h. */
5092#include <ac_nonexistent.h>
5093_ACEOF
5094if ac_fn_c_try_cpp "$LINENO"; then :
5095 # Broken: success on invalid input.
5096continue
5097else
5098 # Passes both tests.
5099ac_preproc_ok=:
5100break
5101fi
cristyda16f162011-02-19 23:52:17 +00005102rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005103
5104done
5105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005106rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005107if $ac_preproc_ok; then :
5108 break
5109fi
5110
5111 done
5112 ac_cv_prog_CPP=$CPP
5113
5114fi
5115 CPP=$ac_cv_prog_CPP
5116else
5117 ac_cv_prog_CPP=$CPP
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5120$as_echo "$CPP" >&6; }
5121ac_preproc_ok=false
5122for ac_c_preproc_warn_flag in '' yes
5123do
5124 # Use a header file that comes with gcc, so configuring glibc
5125 # with a fresh cross-compiler works.
5126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5127 # <limits.h> exists even on freestanding compilers.
5128 # On the NeXT, cc -E runs the code through the compiler's parser,
5129 # not just through cpp. "Syntax error" is here to catch this case.
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131/* end confdefs.h. */
5132#ifdef __STDC__
5133# include <limits.h>
5134#else
5135# include <assert.h>
5136#endif
5137 Syntax error
5138_ACEOF
5139if ac_fn_c_try_cpp "$LINENO"; then :
5140
5141else
5142 # Broken: fails on valid input.
5143continue
5144fi
cristyda16f162011-02-19 23:52:17 +00005145rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005146
5147 # OK, works on sane cases. Now check whether nonexistent headers
5148 # can be detected and how.
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h. */
5151#include <ac_nonexistent.h>
5152_ACEOF
5153if ac_fn_c_try_cpp "$LINENO"; then :
5154 # Broken: success on invalid input.
5155continue
5156else
5157 # Passes both tests.
5158ac_preproc_ok=:
5159break
5160fi
cristyda16f162011-02-19 23:52:17 +00005161rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005162
5163done
5164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005165rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005166if $ac_preproc_ok; then :
5167
5168else
5169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005171as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5172See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005173fi
5174
5175ac_ext=c
5176ac_cpp='$CPP $CPPFLAGS'
5177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5183$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005184if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005185 $as_echo_n "(cached) " >&6
5186else
5187 if test -z "$GREP"; then
5188 ac_path_GREP_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in grep ggrep; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5199# Check for GNU ac_path_GREP and select it if it is found.
5200 # Check for GNU $ac_path_GREP
5201case `"$ac_path_GREP" --version 2>&1` in
5202*GNU*)
5203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5204*)
5205 ac_count=0
5206 $as_echo_n 0123456789 >"conftest.in"
5207 while :
5208 do
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 $as_echo 'GREP' >> "conftest.nl"
5213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 as_fn_arith $ac_count + 1 && ac_count=$as_val
5216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_GREP="$ac_path_GREP"
5219 ac_path_GREP_max=$ac_count
5220 fi
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5223 done
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225esac
5226
5227 $ac_path_GREP_found && break 3
5228 done
5229 done
5230 done
5231IFS=$as_save_IFS
5232 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005233 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005234 fi
5235else
5236 ac_cv_path_GREP=$GREP
5237fi
5238
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5241$as_echo "$ac_cv_path_GREP" >&6; }
5242 GREP="$ac_cv_path_GREP"
5243
5244
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5246$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005247if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005248 $as_echo_n "(cached) " >&6
5249else
5250 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5251 then ac_cv_path_EGREP="$GREP -E"
5252 else
5253 if test -z "$EGREP"; then
5254 ac_path_EGREP_found=false
5255 # Loop through the user's path and test for each of PROGNAME-LIST
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_prog in egrep; do
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5265# Check for GNU ac_path_EGREP and select it if it is found.
5266 # Check for GNU $ac_path_EGREP
5267case `"$ac_path_EGREP" --version 2>&1` in
5268*GNU*)
5269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5270*)
5271 ac_count=0
5272 $as_echo_n 0123456789 >"conftest.in"
5273 while :
5274 do
5275 cat "conftest.in" "conftest.in" >"conftest.tmp"
5276 mv "conftest.tmp" "conftest.in"
5277 cp "conftest.in" "conftest.nl"
5278 $as_echo 'EGREP' >> "conftest.nl"
5279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5281 as_fn_arith $ac_count + 1 && ac_count=$as_val
5282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5283 # Best one so far, save it but keep looking for a better one
5284 ac_cv_path_EGREP="$ac_path_EGREP"
5285 ac_path_EGREP_max=$ac_count
5286 fi
5287 # 10*(2^10) chars as input seems more than enough
5288 test $ac_count -gt 10 && break
5289 done
5290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5291esac
5292
5293 $ac_path_EGREP_found && break 3
5294 done
5295 done
5296 done
5297IFS=$as_save_IFS
5298 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005299 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005300 fi
5301else
5302 ac_cv_path_EGREP=$EGREP
5303fi
5304
5305 fi
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5308$as_echo "$ac_cv_path_EGREP" >&6; }
5309 EGREP="$ac_cv_path_EGREP"
5310
5311
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5313$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005314if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005315 $as_echo_n "(cached) " >&6
5316else
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h. */
5319#include <stdlib.h>
5320#include <stdarg.h>
5321#include <string.h>
5322#include <float.h>
5323
5324int
5325main ()
5326{
5327
5328 ;
5329 return 0;
5330}
5331_ACEOF
5332if ac_fn_c_try_compile "$LINENO"; then :
5333 ac_cv_header_stdc=yes
5334else
5335 ac_cv_header_stdc=no
5336fi
5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338
5339if test $ac_cv_header_stdc = yes; then
5340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
5343#include <string.h>
5344
5345_ACEOF
5346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5347 $EGREP "memchr" >/dev/null 2>&1; then :
5348
5349else
5350 ac_cv_header_stdc=no
5351fi
5352rm -f conftest*
5353
5354fi
5355
5356if test $ac_cv_header_stdc = yes; then
5357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h. */
5360#include <stdlib.h>
5361
5362_ACEOF
5363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5364 $EGREP "free" >/dev/null 2>&1; then :
5365
5366else
5367 ac_cv_header_stdc=no
5368fi
5369rm -f conftest*
5370
5371fi
5372
5373if test $ac_cv_header_stdc = yes; then
5374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5375 if test "$cross_compiling" = yes; then :
5376 :
5377else
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h. */
5380#include <ctype.h>
5381#include <stdlib.h>
5382#if ((' ' & 0x0FF) == 0x020)
5383# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5384# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5385#else
5386# define ISLOWER(c) \
5387 (('a' <= (c) && (c) <= 'i') \
5388 || ('j' <= (c) && (c) <= 'r') \
5389 || ('s' <= (c) && (c) <= 'z'))
5390# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5391#endif
5392
5393#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5394int
5395main ()
5396{
5397 int i;
5398 for (i = 0; i < 256; i++)
5399 if (XOR (islower (i), ISLOWER (i))
5400 || toupper (i) != TOUPPER (i))
5401 return 2;
5402 return 0;
5403}
5404_ACEOF
5405if ac_fn_c_try_run "$LINENO"; then :
5406
5407else
5408 ac_cv_header_stdc=no
5409fi
5410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5411 conftest.$ac_objext conftest.beam conftest.$ac_ext
5412fi
5413
5414fi
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5417$as_echo "$ac_cv_header_stdc" >&6; }
5418if test $ac_cv_header_stdc = yes; then
5419
5420$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5421
5422fi
5423
5424# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5425for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5426 inttypes.h stdint.h unistd.h
5427do :
5428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5429ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5430"
cristy98dddb52010-11-04 00:30:15 +00005431if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005432 cat >>confdefs.h <<_ACEOF
5433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5434_ACEOF
5435
5436fi
5437
5438done
5439
5440
5441
5442 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 +00005443if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005444 MINIX=yes
5445else
5446 MINIX=
5447fi
5448
5449
5450 if test "$MINIX" = yes; then
5451
5452$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5453
5454
5455$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5456
5457
5458$as_echo "#define _MINIX 1" >>confdefs.h
5459
5460 fi
5461
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5464$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005465if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005466 $as_echo_n "(cached) " >&6
5467else
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h. */
5470
5471# define __EXTENSIONS__ 1
5472 $ac_includes_default
5473int
5474main ()
5475{
5476
5477 ;
5478 return 0;
5479}
5480_ACEOF
5481if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_safe_to_define___extensions__=yes
5483else
5484 ac_cv_safe_to_define___extensions__=no
5485fi
5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487fi
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5489$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5490 test $ac_cv_safe_to_define___extensions__ = yes &&
5491 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5492
5493 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5494
5495 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5496
5497 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5498
5499 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5500
5501
5502
5503# Check for programs
5504ac_ext=c
5505ac_cpp='$CPP $CPPFLAGS'
5506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509if test -n "$ac_tool_prefix"; then
5510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5511set dummy ${ac_tool_prefix}gcc; ac_word=$2
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005514if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005515 $as_echo_n "(cached) " >&6
5516else
5517 if test -n "$CC"; then
5518 ac_cv_prog_CC="$CC" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531done
5532 done
5533IFS=$as_save_IFS
5534
5535fi
5536fi
5537CC=$ac_cv_prog_CC
5538if test -n "$CC"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5540$as_echo "$CC" >&6; }
5541else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544fi
5545
5546
5547fi
5548if test -z "$ac_cv_prog_CC"; then
5549 ac_ct_CC=$CC
5550 # Extract the first word of "gcc", so it can be a program name with args.
5551set dummy gcc; ac_word=$2
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005554if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005555 $as_echo_n "(cached) " >&6
5556else
5557 if test -n "$ac_ct_CC"; then
5558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5559else
5560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_prog_ac_ct_CC="gcc"
5568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571done
5572 done
5573IFS=$as_save_IFS
5574
5575fi
5576fi
5577ac_ct_CC=$ac_cv_prog_ac_ct_CC
5578if test -n "$ac_ct_CC"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5580$as_echo "$ac_ct_CC" >&6; }
5581else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583$as_echo "no" >&6; }
5584fi
5585
5586 if test "x$ac_ct_CC" = x; then
5587 CC=""
5588 else
5589 case $cross_compiling:$ac_tool_warned in
5590yes:)
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593ac_tool_warned=yes ;;
5594esac
5595 CC=$ac_ct_CC
5596 fi
5597else
5598 CC="$ac_cv_prog_CC"
5599fi
5600
5601if test -z "$CC"; then
5602 if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5604set dummy ${ac_tool_prefix}cc; ac_word=$2
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005607if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005608 $as_echo_n "(cached) " >&6
5609else
5610 if test -n "$CC"; then
5611 ac_cv_prog_CC="$CC" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_CC="${ac_tool_prefix}cc"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624done
5625 done
5626IFS=$as_save_IFS
5627
5628fi
5629fi
5630CC=$ac_cv_prog_CC
5631if test -n "$CC"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5633$as_echo "$CC" >&6; }
5634else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636$as_echo "no" >&6; }
5637fi
5638
5639
5640 fi
5641fi
5642if test -z "$CC"; then
5643 # Extract the first word of "cc", so it can be a program name with args.
5644set dummy cc; ac_word=$2
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005647if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005648 $as_echo_n "(cached) " >&6
5649else
5650 if test -n "$CC"; then
5651 ac_cv_prog_CC="$CC" # Let the user override the test.
5652else
5653 ac_prog_rejected=no
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5662 ac_prog_rejected=yes
5663 continue
5664 fi
5665 ac_cv_prog_CC="cc"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669done
5670 done
5671IFS=$as_save_IFS
5672
5673if test $ac_prog_rejected = yes; then
5674 # We found a bogon in the path, so make sure we never use it.
5675 set dummy $ac_cv_prog_CC
5676 shift
5677 if test $# != 0; then
5678 # We chose a different compiler from the bogus one.
5679 # However, it has the same basename, so the bogon will be chosen
5680 # first if we set CC to just the basename; use the full file name.
5681 shift
5682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5683 fi
5684fi
5685fi
5686fi
5687CC=$ac_cv_prog_CC
5688if test -n "$CC"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5690$as_echo "$CC" >&6; }
5691else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694fi
5695
5696
5697fi
5698if test -z "$CC"; then
5699 if test -n "$ac_tool_prefix"; then
5700 for ac_prog in cl.exe
5701 do
5702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005706if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005707 $as_echo_n "(cached) " >&6
5708else
5709 if test -n "$CC"; then
5710 ac_cv_prog_CC="$CC" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723done
5724 done
5725IFS=$as_save_IFS
5726
5727fi
5728fi
5729CC=$ac_cv_prog_CC
5730if test -n "$CC"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5732$as_echo "$CC" >&6; }
5733else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735$as_echo "no" >&6; }
5736fi
5737
5738
5739 test -n "$CC" && break
5740 done
5741fi
5742if test -z "$CC"; then
5743 ac_ct_CC=$CC
5744 for ac_prog in cl.exe
5745do
5746 # Extract the first word of "$ac_prog", so it can be a program name with args.
5747set dummy $ac_prog; ac_word=$2
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005750if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005751 $as_echo_n "(cached) " >&6
5752else
5753 if test -n "$ac_ct_CC"; then
5754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_ac_ct_CC="$ac_prog"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767done
5768 done
5769IFS=$as_save_IFS
5770
5771fi
5772fi
5773ac_ct_CC=$ac_cv_prog_ac_ct_CC
5774if test -n "$ac_ct_CC"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5776$as_echo "$ac_ct_CC" >&6; }
5777else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
5780fi
5781
5782
5783 test -n "$ac_ct_CC" && break
5784done
5785
5786 if test "x$ac_ct_CC" = x; then
5787 CC=""
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790yes:)
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793ac_tool_warned=yes ;;
5794esac
5795 CC=$ac_ct_CC
5796 fi
5797fi
5798
5799fi
5800
5801
5802test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005804as_fn_error $? "no acceptable C compiler found in \$PATH
5805See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005806
5807# Provide some information about the compiler.
5808$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5809set X $ac_compile
5810ac_compiler=$2
5811for ac_option in --version -v -V -qversion; do
5812 { { ac_try="$ac_compiler $ac_option >&5"
5813case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816esac
5817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5818$as_echo "$ac_try_echo"; } >&5
5819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5820 ac_status=$?
5821 if test -s conftest.err; then
5822 sed '10a\
5823... rest of stderr output deleted ...
5824 10q' conftest.err >conftest.er1
5825 cat conftest.er1 >&5
5826 fi
5827 rm -f conftest.er1 conftest.err
5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }
5830done
5831
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5833$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005834if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005835 $as_echo_n "(cached) " >&6
5836else
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839
5840int
5841main ()
5842{
5843#ifndef __GNUC__
5844 choke me
5845#endif
5846
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_compile "$LINENO"; then :
5852 ac_compiler_gnu=yes
5853else
5854 ac_compiler_gnu=no
5855fi
5856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857ac_cv_c_compiler_gnu=$ac_compiler_gnu
5858
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5861$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5862if test $ac_compiler_gnu = yes; then
5863 GCC=yes
5864else
5865 GCC=
5866fi
5867ac_test_CFLAGS=${CFLAGS+set}
5868ac_save_CFLAGS=$CFLAGS
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5870$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005871if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005872 $as_echo_n "(cached) " >&6
5873else
5874 ac_save_c_werror_flag=$ac_c_werror_flag
5875 ac_c_werror_flag=yes
5876 ac_cv_prog_cc_g=no
5877 CFLAGS="-g"
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h. */
5880
5881int
5882main ()
5883{
5884
5885 ;
5886 return 0;
5887}
5888_ACEOF
5889if ac_fn_c_try_compile "$LINENO"; then :
5890 ac_cv_prog_cc_g=yes
5891else
5892 CFLAGS=""
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h. */
5895
5896int
5897main ()
5898{
5899
5900 ;
5901 return 0;
5902}
5903_ACEOF
5904if ac_fn_c_try_compile "$LINENO"; then :
5905
5906else
5907 ac_c_werror_flag=$ac_save_c_werror_flag
5908 CFLAGS="-g"
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h. */
5911
5912int
5913main ()
5914{
5915
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921 ac_cv_prog_cc_g=yes
5922fi
5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 ac_c_werror_flag=$ac_save_c_werror_flag
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5931$as_echo "$ac_cv_prog_cc_g" >&6; }
5932if test "$ac_test_CFLAGS" = set; then
5933 CFLAGS=$ac_save_CFLAGS
5934elif test $ac_cv_prog_cc_g = yes; then
5935 if test "$GCC" = yes; then
5936 CFLAGS="-g -O2"
5937 else
5938 CFLAGS="-g"
5939 fi
5940else
5941 if test "$GCC" = yes; then
5942 CFLAGS="-O2"
5943 else
5944 CFLAGS=
5945 fi
5946fi
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5948$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005949if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005950 $as_echo_n "(cached) " >&6
5951else
5952 ac_cv_prog_cc_c89=no
5953ac_save_CC=$CC
5954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h. */
5956#include <stdarg.h>
5957#include <stdio.h>
5958#include <sys/types.h>
5959#include <sys/stat.h>
5960/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5961struct buf { int x; };
5962FILE * (*rcsopen) (struct buf *, struct stat *, int);
5963static char *e (p, i)
5964 char **p;
5965 int i;
5966{
5967 return p[i];
5968}
5969static char *f (char * (*g) (char **, int), char **p, ...)
5970{
5971 char *s;
5972 va_list v;
5973 va_start (v,p);
5974 s = g (p, va_arg (v,int));
5975 va_end (v);
5976 return s;
5977}
5978
5979/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5980 function prototypes and stuff, but not '\xHH' hex character constants.
5981 These don't provoke an error unfortunately, instead are silently treated
5982 as 'x'. The following induces an error, until -std is added to get
5983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5984 array size at least. It's necessary to write '\x00'==0 to get something
5985 that's true only with -std. */
5986int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5987
5988/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5989 inside strings and character constants. */
5990#define FOO(x) 'x'
5991int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5992
5993int test (int i, double x);
5994struct s1 {int (*f) (int a);};
5995struct s2 {int (*f) (double a);};
5996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5997int argc;
5998char **argv;
5999int
6000main ()
6001{
6002return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6003 ;
6004 return 0;
6005}
6006_ACEOF
6007for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6008 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6009do
6010 CC="$ac_save_CC $ac_arg"
6011 if ac_fn_c_try_compile "$LINENO"; then :
6012 ac_cv_prog_cc_c89=$ac_arg
6013fi
6014rm -f core conftest.err conftest.$ac_objext
6015 test "x$ac_cv_prog_cc_c89" != "xno" && break
6016done
6017rm -f conftest.$ac_ext
6018CC=$ac_save_CC
6019
6020fi
6021# AC_CACHE_VAL
6022case "x$ac_cv_prog_cc_c89" in
6023 x)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6025$as_echo "none needed" >&6; } ;;
6026 xno)
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6028$as_echo "unsupported" >&6; } ;;
6029 *)
6030 CC="$CC $ac_cv_prog_cc_c89"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6032$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6033esac
6034if test "x$ac_cv_prog_cc_c89" != xno; then :
6035
6036fi
6037
6038ac_ext=c
6039ac_cpp='$CPP $CPPFLAGS'
6040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043
cristy73bd4a52010-10-05 11:24:23 +00006044depcc="$CC" am_compiler_list=
6045
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6047$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006048if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006049 $as_echo_n "(cached) " >&6
6050else
6051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6052 # We make a subdir and do the tests there. Otherwise we can end up
6053 # making bogus files that we don't know about and never remove. For
6054 # instance it was reported that on HP-UX the gcc test will end up
6055 # making a dummy file named `D' -- because `-MD' means `put the output
6056 # in D'.
6057 mkdir conftest.dir
6058 # Copy depcomp to subdir because otherwise we won't find it if we're
6059 # using a relative directory.
6060 cp "$am_depcomp" conftest.dir
6061 cd conftest.dir
6062 # We will build objects and dependencies in a subdirectory because
6063 # it helps to detect inapplicable dependency modes. For instance
6064 # both Tru64's cc and ICC support -MD to output dependencies as a
6065 # side effect of compilation, but ICC will put the dependencies in
6066 # the current directory while Tru64 will put them in the object
6067 # directory.
6068 mkdir sub
6069
6070 am_cv_CC_dependencies_compiler_type=none
6071 if test "$am_compiler_list" = ""; then
6072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6073 fi
6074 am__universal=false
6075 case " $depcc " in #(
6076 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6077 esac
6078
6079 for depmode in $am_compiler_list; do
6080 # Setup a source with many dependencies, because some compilers
6081 # like to wrap large dependency lists on column 80 (with \), and
6082 # we should not choose a depcomp mode which is confused by this.
6083 #
6084 # We need to recreate these files for each test, as the compiler may
6085 # overwrite some of them when testing with obscure command lines.
6086 # This happens at least with the AIX C compiler.
6087 : > sub/conftest.c
6088 for i in 1 2 3 4 5 6; do
6089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6090 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6091 # Solaris 8's {/usr,}/bin/sh.
6092 touch sub/conftst$i.h
6093 done
6094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6095
6096 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6097 # mode. It turns out that the SunPro C++ compiler does not properly
6098 # handle `-M -o', and we need to detect this. Also, some Intel
6099 # versions had trouble with output in subdirs
6100 am__obj=sub/conftest.${OBJEXT-o}
6101 am__minus_obj="-o $am__obj"
6102 case $depmode in
6103 gcc)
6104 # This depmode causes a compiler race in universal mode.
6105 test "$am__universal" = false || continue
6106 ;;
6107 nosideeffect)
6108 # after this tag, mechanisms are not by side-effect, so they'll
6109 # only be used when explicitly requested
6110 if test "x$enable_dependency_tracking" = xyes; then
6111 continue
6112 else
6113 break
6114 fi
6115 ;;
6116 msvisualcpp | msvcmsys)
6117 # This compiler won't grok `-c -o', but also, the minuso test has
6118 # not run yet. These depmodes are late enough in the game, and
6119 # so weak that their functioning should not be impacted.
6120 am__obj=conftest.${OBJEXT-o}
6121 am__minus_obj=
6122 ;;
6123 none) break ;;
6124 esac
6125 if depmode=$depmode \
6126 source=sub/conftest.c object=$am__obj \
6127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6128 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6129 >/dev/null 2>conftest.err &&
6130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6132 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6134 # icc doesn't choke on unknown options, it will just issue warnings
6135 # or remarks (even with -Werror). So we grep stderr for any message
6136 # that says an option was ignored or not supported.
6137 # When given -MP, icc 7.0 and 7.1 complain thusly:
6138 # icc: Command line warning: ignoring option '-M'; no argument required
6139 # The diagnosis changed in icc 8.0:
6140 # icc: Command line remark: option '-MP' not supported
6141 if (grep 'ignoring option' conftest.err ||
6142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6143 am_cv_CC_dependencies_compiler_type=$depmode
6144 break
6145 fi
6146 fi
6147 done
6148
6149 cd ..
6150 rm -rf conftest.dir
6151else
6152 am_cv_CC_dependencies_compiler_type=none
6153fi
6154
6155fi
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6157$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6158CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6159
6160 if
6161 test "x$enable_dependency_tracking" != xno \
6162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6163 am__fastdepCC_TRUE=
6164 am__fastdepCC_FALSE='#'
6165else
6166 am__fastdepCC_TRUE='#'
6167 am__fastdepCC_FALSE=
6168fi
6169
6170
cristy95646052009-11-28 23:05:30 +00006171ac_ext=cpp
6172ac_cpp='$CXXCPP $CPPFLAGS'
6173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6176if test -z "$CXX"; then
6177 if test -n "$CCC"; then
6178 CXX=$CCC
6179 else
6180 if test -n "$ac_tool_prefix"; then
6181 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6182 do
6183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006187if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006188 $as_echo_n "(cached) " >&6
6189else
6190 if test -n "$CXX"; then
6191 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205 done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210CXX=$ac_cv_prog_CXX
6211if test -n "$CXX"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6213$as_echo "$CXX" >&6; }
6214else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219
6220 test -n "$CXX" && break
6221 done
6222fi
6223if test -z "$CXX"; then
6224 ac_ct_CXX=$CXX
6225 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6226do
6227 # Extract the first word of "$ac_prog", so it can be a program name with args.
6228set dummy $ac_prog; ac_word=$2
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006231if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006232 $as_echo_n "(cached) " >&6
6233else
6234 if test -n "$ac_ct_CXX"; then
6235 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_ac_ct_CXX="$ac_prog"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248done
6249 done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6255if test -n "$ac_ct_CXX"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6257$as_echo "$ac_ct_CXX" >&6; }
6258else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261fi
6262
6263
6264 test -n "$ac_ct_CXX" && break
6265done
6266
6267 if test "x$ac_ct_CXX" = x; then
6268 CXX="g++"
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271yes:)
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274ac_tool_warned=yes ;;
6275esac
6276 CXX=$ac_ct_CXX
6277 fi
6278fi
6279
6280 fi
6281fi
6282# Provide some information about the compiler.
6283$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6284set X $ac_compile
6285ac_compiler=$2
6286for ac_option in --version -v -V -qversion; do
6287 { { ac_try="$ac_compiler $ac_option >&5"
6288case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291esac
6292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6293$as_echo "$ac_try_echo"; } >&5
6294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6295 ac_status=$?
6296 if test -s conftest.err; then
6297 sed '10a\
6298... rest of stderr output deleted ...
6299 10q' conftest.err >conftest.er1
6300 cat conftest.er1 >&5
6301 fi
6302 rm -f conftest.er1 conftest.err
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; }
6305done
6306
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6308$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006309if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006310 $as_echo_n "(cached) " >&6
6311else
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h. */
6314
6315int
6316main ()
6317{
6318#ifndef __GNUC__
6319 choke me
6320#endif
6321
6322 ;
6323 return 0;
6324}
6325_ACEOF
6326if ac_fn_cxx_try_compile "$LINENO"; then :
6327 ac_compiler_gnu=yes
6328else
6329 ac_compiler_gnu=no
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6333
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6336$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6337if test $ac_compiler_gnu = yes; then
6338 GXX=yes
6339else
6340 GXX=
6341fi
6342ac_test_CXXFLAGS=${CXXFLAGS+set}
6343ac_save_CXXFLAGS=$CXXFLAGS
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6345$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006346if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006347 $as_echo_n "(cached) " >&6
6348else
6349 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6350 ac_cxx_werror_flag=yes
6351 ac_cv_prog_cxx_g=no
6352 CXXFLAGS="-g"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h. */
6355
6356int
6357main ()
6358{
6359
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364if ac_fn_cxx_try_compile "$LINENO"; then :
6365 ac_cv_prog_cxx_g=yes
6366else
6367 CXXFLAGS=""
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h. */
6370
6371int
6372main ()
6373{
6374
6375 ;
6376 return 0;
6377}
6378_ACEOF
6379if ac_fn_cxx_try_compile "$LINENO"; then :
6380
6381else
6382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6383 CXXFLAGS="-g"
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h. */
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395if ac_fn_cxx_try_compile "$LINENO"; then :
6396 ac_cv_prog_cxx_g=yes
6397fi
6398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6404fi
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6406$as_echo "$ac_cv_prog_cxx_g" >&6; }
6407if test "$ac_test_CXXFLAGS" = set; then
6408 CXXFLAGS=$ac_save_CXXFLAGS
6409elif test $ac_cv_prog_cxx_g = yes; then
6410 if test "$GXX" = yes; then
6411 CXXFLAGS="-g -O2"
6412 else
6413 CXXFLAGS="-g"
6414 fi
6415else
6416 if test "$GXX" = yes; then
6417 CXXFLAGS="-O2"
6418 else
6419 CXXFLAGS=
6420 fi
6421fi
6422ac_ext=c
6423ac_cpp='$CPP $CPPFLAGS'
6424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427
cristy73bd4a52010-10-05 11:24:23 +00006428depcc="$CXX" am_compiler_list=
6429
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6431$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006432if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006433 $as_echo_n "(cached) " >&6
6434else
6435 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6436 # We make a subdir and do the tests there. Otherwise we can end up
6437 # making bogus files that we don't know about and never remove. For
6438 # instance it was reported that on HP-UX the gcc test will end up
6439 # making a dummy file named `D' -- because `-MD' means `put the output
6440 # in D'.
6441 mkdir conftest.dir
6442 # Copy depcomp to subdir because otherwise we won't find it if we're
6443 # using a relative directory.
6444 cp "$am_depcomp" conftest.dir
6445 cd conftest.dir
6446 # We will build objects and dependencies in a subdirectory because
6447 # it helps to detect inapplicable dependency modes. For instance
6448 # both Tru64's cc and ICC support -MD to output dependencies as a
6449 # side effect of compilation, but ICC will put the dependencies in
6450 # the current directory while Tru64 will put them in the object
6451 # directory.
6452 mkdir sub
6453
6454 am_cv_CXX_dependencies_compiler_type=none
6455 if test "$am_compiler_list" = ""; then
6456 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6457 fi
6458 am__universal=false
6459 case " $depcc " in #(
6460 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6461 esac
6462
6463 for depmode in $am_compiler_list; do
6464 # Setup a source with many dependencies, because some compilers
6465 # like to wrap large dependency lists on column 80 (with \), and
6466 # we should not choose a depcomp mode which is confused by this.
6467 #
6468 # We need to recreate these files for each test, as the compiler may
6469 # overwrite some of them when testing with obscure command lines.
6470 # This happens at least with the AIX C compiler.
6471 : > sub/conftest.c
6472 for i in 1 2 3 4 5 6; do
6473 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6474 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6475 # Solaris 8's {/usr,}/bin/sh.
6476 touch sub/conftst$i.h
6477 done
6478 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6479
6480 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6481 # mode. It turns out that the SunPro C++ compiler does not properly
6482 # handle `-M -o', and we need to detect this. Also, some Intel
6483 # versions had trouble with output in subdirs
6484 am__obj=sub/conftest.${OBJEXT-o}
6485 am__minus_obj="-o $am__obj"
6486 case $depmode in
6487 gcc)
6488 # This depmode causes a compiler race in universal mode.
6489 test "$am__universal" = false || continue
6490 ;;
6491 nosideeffect)
6492 # after this tag, mechanisms are not by side-effect, so they'll
6493 # only be used when explicitly requested
6494 if test "x$enable_dependency_tracking" = xyes; then
6495 continue
6496 else
6497 break
6498 fi
6499 ;;
6500 msvisualcpp | msvcmsys)
6501 # This compiler won't grok `-c -o', but also, the minuso test has
6502 # not run yet. These depmodes are late enough in the game, and
6503 # so weak that their functioning should not be impacted.
6504 am__obj=conftest.${OBJEXT-o}
6505 am__minus_obj=
6506 ;;
6507 none) break ;;
6508 esac
6509 if depmode=$depmode \
6510 source=sub/conftest.c object=$am__obj \
6511 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6512 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6513 >/dev/null 2>conftest.err &&
6514 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6515 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6516 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6517 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6518 # icc doesn't choke on unknown options, it will just issue warnings
6519 # or remarks (even with -Werror). So we grep stderr for any message
6520 # that says an option was ignored or not supported.
6521 # When given -MP, icc 7.0 and 7.1 complain thusly:
6522 # icc: Command line warning: ignoring option '-M'; no argument required
6523 # The diagnosis changed in icc 8.0:
6524 # icc: Command line remark: option '-MP' not supported
6525 if (grep 'ignoring option' conftest.err ||
6526 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6527 am_cv_CXX_dependencies_compiler_type=$depmode
6528 break
6529 fi
6530 fi
6531 done
6532
6533 cd ..
6534 rm -rf conftest.dir
6535else
6536 am_cv_CXX_dependencies_compiler_type=none
6537fi
6538
6539fi
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6541$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6542CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6543
6544 if
6545 test "x$enable_dependency_tracking" != xno \
6546 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6547 am__fastdepCXX_TRUE=
6548 am__fastdepCXX_FALSE='#'
6549else
6550 am__fastdepCXX_TRUE='#'
6551 am__fastdepCXX_FALSE=
6552fi
6553
6554
cristy8b350f62009-11-15 23:12:43 +00006555 case $ac_cv_prog_cc_stdc in #(
6556 no) :
6557 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6558 *) :
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006560$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006561if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006562 $as_echo_n "(cached) " >&6
6563else
6564 ac_cv_prog_cc_c99=no
6565ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006567/* end confdefs.h. */
6568#include <stdarg.h>
6569#include <stdbool.h>
6570#include <stdlib.h>
6571#include <wchar.h>
6572#include <stdio.h>
6573
6574// Check varargs macros. These examples are taken from C99 6.10.3.5.
6575#define debug(...) fprintf (stderr, __VA_ARGS__)
6576#define showlist(...) puts (#__VA_ARGS__)
6577#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6578static void
6579test_varargs_macros (void)
6580{
6581 int x = 1234;
6582 int y = 5678;
6583 debug ("Flag");
6584 debug ("X = %d\n", x);
6585 showlist (The first, second, and third items.);
6586 report (x>y, "x is %d but y is %d", x, y);
6587}
6588
6589// Check long long types.
6590#define BIG64 18446744073709551615ull
6591#define BIG32 4294967295ul
6592#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6593#if !BIG_OK
6594 your preprocessor is broken;
6595#endif
6596#if BIG_OK
6597#else
6598 your preprocessor is broken;
6599#endif
6600static long long int bignum = -9223372036854775807LL;
6601static unsigned long long int ubignum = BIG64;
6602
6603struct incomplete_array
6604{
6605 int datasize;
6606 double data[];
6607};
6608
6609struct named_init {
6610 int number;
6611 const wchar_t *name;
6612 double average;
6613};
6614
6615typedef const char *ccp;
6616
6617static inline int
6618test_restrict (ccp restrict text)
6619{
6620 // See if C++-style comments work.
6621 // Iterate through items via the restricted pointer.
6622 // Also check for declarations in for loops.
6623 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6624 continue;
6625 return 0;
6626}
6627
6628// Check varargs and va_copy.
6629static void
6630test_varargs (const char *format, ...)
6631{
6632 va_list args;
6633 va_start (args, format);
6634 va_list args_copy;
6635 va_copy (args_copy, args);
6636
6637 const char *str;
6638 int number;
6639 float fnumber;
6640
6641 while (*format)
6642 {
6643 switch (*format++)
6644 {
6645 case 's': // string
6646 str = va_arg (args_copy, const char *);
6647 break;
6648 case 'd': // int
6649 number = va_arg (args_copy, int);
6650 break;
6651 case 'f': // float
6652 fnumber = va_arg (args_copy, double);
6653 break;
6654 default:
6655 break;
6656 }
6657 }
6658 va_end (args_copy);
6659 va_end (args);
6660}
6661
6662int
6663main ()
6664{
6665
6666 // Check bool.
6667 _Bool success = false;
6668
6669 // Check restrict.
6670 if (test_restrict ("String literal") == 0)
6671 success = true;
6672 char *restrict newvar = "Another string";
6673
6674 // Check varargs.
6675 test_varargs ("s, d' f .", "string", 65, 34.234);
6676 test_varargs_macros ();
6677
6678 // Check flexible array members.
6679 struct incomplete_array *ia =
6680 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6681 ia->datasize = 10;
6682 for (int i = 0; i < ia->datasize; ++i)
6683 ia->data[i] = i * 1.234;
6684
6685 // Check named initializers.
6686 struct named_init ni = {
6687 .number = 34,
6688 .name = L"Test wide string",
6689 .average = 543.34343,
6690 };
6691
6692 ni.number = 58;
6693
6694 int dynamic_array[ni.number];
6695 dynamic_array[ni.number - 1] = 543;
6696
6697 // work around unused variable warnings
6698 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6699 || dynamic_array[ni.number - 1] != 543);
6700
6701 ;
6702 return 0;
6703}
6704_ACEOF
6705for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6706do
6707 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006708 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006709 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006710fi
cristy3ed852e2009-09-05 21:47:34 +00006711rm -f core conftest.err conftest.$ac_objext
6712 test "x$ac_cv_prog_cc_c99" != "xno" && break
6713done
6714rm -f conftest.$ac_ext
6715CC=$ac_save_CC
6716
6717fi
6718# AC_CACHE_VAL
6719case "x$ac_cv_prog_cc_c99" in
6720 x)
cristy8b350f62009-11-15 23:12:43 +00006721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006722$as_echo "none needed" >&6; } ;;
6723 xno)
cristy8b350f62009-11-15 23:12:43 +00006724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006725$as_echo "unsupported" >&6; } ;;
6726 *)
6727 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006729$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6730esac
cristy8b350f62009-11-15 23:12:43 +00006731if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006732 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6733else
cristy8b350f62009-11-15 23:12:43 +00006734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006735$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006736if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006737 $as_echo_n "(cached) " >&6
6738else
6739 ac_cv_prog_cc_c89=no
6740ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006742/* end confdefs.h. */
6743#include <stdarg.h>
6744#include <stdio.h>
6745#include <sys/types.h>
6746#include <sys/stat.h>
6747/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6748struct buf { int x; };
6749FILE * (*rcsopen) (struct buf *, struct stat *, int);
6750static char *e (p, i)
6751 char **p;
6752 int i;
6753{
6754 return p[i];
6755}
6756static char *f (char * (*g) (char **, int), char **p, ...)
6757{
6758 char *s;
6759 va_list v;
6760 va_start (v,p);
6761 s = g (p, va_arg (v,int));
6762 va_end (v);
6763 return s;
6764}
6765
6766/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6767 function prototypes and stuff, but not '\xHH' hex character constants.
6768 These don't provoke an error unfortunately, instead are silently treated
6769 as 'x'. The following induces an error, until -std is added to get
6770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6771 array size at least. It's necessary to write '\x00'==0 to get something
6772 that's true only with -std. */
6773int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6774
6775/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6776 inside strings and character constants. */
6777#define FOO(x) 'x'
6778int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6779
6780int test (int i, double x);
6781struct s1 {int (*f) (int a);};
6782struct s2 {int (*f) (double a);};
6783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6784int argc;
6785char **argv;
6786int
6787main ()
6788{
6789return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6790 ;
6791 return 0;
6792}
6793_ACEOF
6794for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6796do
6797 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006798 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006799 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006800fi
cristy3ed852e2009-09-05 21:47:34 +00006801rm -f core conftest.err conftest.$ac_objext
6802 test "x$ac_cv_prog_cc_c89" != "xno" && break
6803done
6804rm -f conftest.$ac_ext
6805CC=$ac_save_CC
6806
6807fi
6808# AC_CACHE_VAL
6809case "x$ac_cv_prog_cc_c89" in
6810 x)
cristy8b350f62009-11-15 23:12:43 +00006811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006812$as_echo "none needed" >&6; } ;;
6813 xno)
cristy8b350f62009-11-15 23:12:43 +00006814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006815$as_echo "unsupported" >&6; } ;;
6816 *)
6817 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006819$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6820esac
cristy8b350f62009-11-15 23:12:43 +00006821if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006822 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6823else
6824 ac_cv_prog_cc_stdc=no
6825fi
6826
cristy3ed852e2009-09-05 21:47:34 +00006827fi
cristy3ed852e2009-09-05 21:47:34 +00006828 ;;
6829esac
cristy8b350f62009-11-15 23:12:43 +00006830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006831$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006832 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006833 $as_echo_n "(cached) " >&6
6834fi
6835
cristy8b350f62009-11-15 23:12:43 +00006836 case $ac_cv_prog_cc_stdc in #(
6837 no) :
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6839$as_echo "unsupported" >&6; } ;; #(
6840 '') :
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6842$as_echo "none needed" >&6; } ;; #(
6843 *) :
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006845$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6846esac
6847
cristy3ed852e2009-09-05 21:47:34 +00006848ac_ext=c
6849ac_cpp='$CPP $CPPFLAGS'
6850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006854$as_echo_n "checking how to run the C preprocessor... " >&6; }
6855# On Suns, sometimes $CPP names a directory.
6856if test -n "$CPP" && test -d "$CPP"; then
6857 CPP=
6858fi
6859if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006860 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006861 $as_echo_n "(cached) " >&6
6862else
6863 # Double quotes because CPP needs to be expanded
6864 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6865 do
6866 ac_preproc_ok=false
6867for ac_c_preproc_warn_flag in '' yes
6868do
6869 # Use a header file that comes with gcc, so configuring glibc
6870 # with a fresh cross-compiler works.
6871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6872 # <limits.h> exists even on freestanding compilers.
6873 # On the NeXT, cc -E runs the code through the compiler's parser,
6874 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006876/* end confdefs.h. */
6877#ifdef __STDC__
6878# include <limits.h>
6879#else
6880# include <assert.h>
6881#endif
6882 Syntax error
6883_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006884if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006885
cristy8b350f62009-11-15 23:12:43 +00006886else
cristy3ed852e2009-09-05 21:47:34 +00006887 # Broken: fails on valid input.
6888continue
6889fi
cristyda16f162011-02-19 23:52:17 +00006890rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006891
6892 # OK, works on sane cases. Now check whether nonexistent headers
6893 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006895/* end confdefs.h. */
6896#include <ac_nonexistent.h>
6897_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006898if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006899 # Broken: success on invalid input.
6900continue
6901else
cristy3ed852e2009-09-05 21:47:34 +00006902 # Passes both tests.
6903ac_preproc_ok=:
6904break
6905fi
cristyda16f162011-02-19 23:52:17 +00006906rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006907
6908done
6909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006910rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006911if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006912 break
6913fi
6914
6915 done
6916 ac_cv_prog_CPP=$CPP
6917
6918fi
6919 CPP=$ac_cv_prog_CPP
6920else
6921 ac_cv_prog_CPP=$CPP
6922fi
cristy8b350f62009-11-15 23:12:43 +00006923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006924$as_echo "$CPP" >&6; }
6925ac_preproc_ok=false
6926for ac_c_preproc_warn_flag in '' yes
6927do
6928 # Use a header file that comes with gcc, so configuring glibc
6929 # with a fresh cross-compiler works.
6930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6931 # <limits.h> exists even on freestanding compilers.
6932 # On the NeXT, cc -E runs the code through the compiler's parser,
6933 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006935/* end confdefs.h. */
6936#ifdef __STDC__
6937# include <limits.h>
6938#else
6939# include <assert.h>
6940#endif
6941 Syntax error
6942_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006943if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006944
cristy8b350f62009-11-15 23:12:43 +00006945else
cristy3ed852e2009-09-05 21:47:34 +00006946 # Broken: fails on valid input.
6947continue
6948fi
cristyda16f162011-02-19 23:52:17 +00006949rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006950
6951 # OK, works on sane cases. Now check whether nonexistent headers
6952 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006954/* end confdefs.h. */
6955#include <ac_nonexistent.h>
6956_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006957if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006958 # Broken: success on invalid input.
6959continue
6960else
cristy3ed852e2009-09-05 21:47:34 +00006961 # Passes both tests.
6962ac_preproc_ok=:
6963break
6964fi
cristyda16f162011-02-19 23:52:17 +00006965rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006966
6967done
6968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006969rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006970if $ac_preproc_ok; then :
6971
cristy3ed852e2009-09-05 21:47:34 +00006972else
cristy8b350f62009-11-15 23:12:43 +00006973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006975as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6976See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006977fi
6978
6979ac_ext=c
6980ac_cpp='$CPP $CPPFLAGS'
6981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984
cristy73bd4a52010-10-05 11:24:23 +00006985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6986$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006987if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006988 $as_echo_n "(cached) " >&6
6989else
6990 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6991 for ac_i in 1 2 3 4 5 6 7; do
6992 ac_script="$ac_script$as_nl$ac_script"
6993 done
6994 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6995 { ac_script=; unset ac_script;}
6996 if test -z "$SED"; then
6997 ac_path_SED_found=false
6998 # Loop through the user's path and test for each of PROGNAME-LIST
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_prog in sed gsed; do
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7007 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7008# Check for GNU ac_path_SED and select it if it is found.
7009 # Check for GNU $ac_path_SED
7010case `"$ac_path_SED" --version 2>&1` in
7011*GNU*)
7012 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7013*)
7014 ac_count=0
7015 $as_echo_n 0123456789 >"conftest.in"
7016 while :
7017 do
7018 cat "conftest.in" "conftest.in" >"conftest.tmp"
7019 mv "conftest.tmp" "conftest.in"
7020 cp "conftest.in" "conftest.nl"
7021 $as_echo '' >> "conftest.nl"
7022 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7024 as_fn_arith $ac_count + 1 && ac_count=$as_val
7025 if test $ac_count -gt ${ac_path_SED_max-0}; then
7026 # Best one so far, save it but keep looking for a better one
7027 ac_cv_path_SED="$ac_path_SED"
7028 ac_path_SED_max=$ac_count
7029 fi
7030 # 10*(2^10) chars as input seems more than enough
7031 test $ac_count -gt 10 && break
7032 done
7033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7034esac
7035
7036 $ac_path_SED_found && break 3
7037 done
7038 done
7039 done
7040IFS=$as_save_IFS
7041 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007042 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007043 fi
7044else
7045 ac_cv_path_SED=$SED
7046fi
7047
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7050$as_echo "$ac_cv_path_SED" >&6; }
7051 SED="$ac_cv_path_SED"
7052 rm -f conftest.sed
7053
7054test -z "$SED" && SED=sed
7055Xsed="$SED -e 1s/^X//"
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7068$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007069if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007070 $as_echo_n "(cached) " >&6
7071else
7072 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7073 then ac_cv_path_FGREP="$GREP -F"
7074 else
7075 if test -z "$FGREP"; then
7076 ac_path_FGREP_found=false
7077 # Loop through the user's path and test for each of PROGNAME-LIST
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_prog in fgrep; do
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7086 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7087# Check for GNU ac_path_FGREP and select it if it is found.
7088 # Check for GNU $ac_path_FGREP
7089case `"$ac_path_FGREP" --version 2>&1` in
7090*GNU*)
7091 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7092*)
7093 ac_count=0
7094 $as_echo_n 0123456789 >"conftest.in"
7095 while :
7096 do
7097 cat "conftest.in" "conftest.in" >"conftest.tmp"
7098 mv "conftest.tmp" "conftest.in"
7099 cp "conftest.in" "conftest.nl"
7100 $as_echo 'FGREP' >> "conftest.nl"
7101 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7103 as_fn_arith $ac_count + 1 && ac_count=$as_val
7104 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7105 # Best one so far, save it but keep looking for a better one
7106 ac_cv_path_FGREP="$ac_path_FGREP"
7107 ac_path_FGREP_max=$ac_count
7108 fi
7109 # 10*(2^10) chars as input seems more than enough
7110 test $ac_count -gt 10 && break
7111 done
7112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7113esac
7114
7115 $ac_path_FGREP_found && break 3
7116 done
7117 done
7118 done
7119IFS=$as_save_IFS
7120 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007121 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007122 fi
7123else
7124 ac_cv_path_FGREP=$FGREP
7125fi
7126
7127 fi
7128fi
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7130$as_echo "$ac_cv_path_FGREP" >&6; }
7131 FGREP="$ac_cv_path_FGREP"
7132
7133
7134test -z "$GREP" && GREP=grep
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
cristy0c60a692010-11-04 01:09:47 +00007152ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7153ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7154ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7155
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7157$as_echo_n "checking how to print strings... " >&6; }
7158# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007159if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007160 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7161 ECHO='print -r --'
7162elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7163 ECHO='printf %s\n'
7164else
7165 # Use this function as a fallback that always works.
7166 func_fallback_echo ()
7167 {
7168 eval 'cat <<_LTECHO_EOF
7169$1
7170_LTECHO_EOF'
7171 }
7172 ECHO='func_fallback_echo'
7173fi
7174
7175# func_echo_all arg...
7176# Invoke $ECHO with all args, space-separated.
7177func_echo_all ()
7178{
7179 $ECHO ""
7180}
7181
7182case "$ECHO" in
7183 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7184$as_echo "printf" >&6; } ;;
7185 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7186$as_echo "print -r" >&6; } ;;
7187 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7188$as_echo "cat" >&6; } ;;
7189esac
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
cristy73bd4a52010-10-05 11:24:23 +00007204
7205
7206# Check whether --with-gnu-ld was given.
7207if test "${with_gnu_ld+set}" = set; then :
7208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7209else
7210 with_gnu_ld=no
7211fi
7212
7213ac_prog=ld
7214if test "$GCC" = yes; then
7215 # Check if gcc -print-prog-name=ld gives a path.
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7217$as_echo_n "checking for ld used by $CC... " >&6; }
7218 case $host in
7219 *-*-mingw*)
7220 # gcc leaves a trailing carriage return which upsets mingw
7221 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7222 *)
7223 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7224 esac
7225 case $ac_prog in
7226 # Accept absolute paths.
7227 [\\/]* | ?:[\\/]*)
7228 re_direlt='/[^/][^/]*/\.\./'
7229 # Canonicalize the pathname of ld
7230 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7231 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7232 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7233 done
7234 test -z "$LD" && LD="$ac_prog"
7235 ;;
7236 "")
7237 # If it fails, then pretend we aren't using GCC.
7238 ac_prog=ld
7239 ;;
7240 *)
7241 # If it is relative, then search for the first ld in PATH.
7242 with_gnu_ld=unknown
7243 ;;
7244 esac
7245elif test "$with_gnu_ld" = yes; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7247$as_echo_n "checking for GNU ld... " >&6; }
7248else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7250$as_echo_n "checking for non-GNU ld... " >&6; }
7251fi
cristyda16f162011-02-19 23:52:17 +00007252if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007253 $as_echo_n "(cached) " >&6
7254else
7255 if test -z "$LD"; then
7256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7257 for ac_dir in $PATH; do
7258 IFS="$lt_save_ifs"
7259 test -z "$ac_dir" && ac_dir=.
7260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7261 lt_cv_path_LD="$ac_dir/$ac_prog"
7262 # Check to see if the program is GNU ld. I'd rather use --version,
7263 # but apparently some variants of GNU ld only accept -v.
7264 # Break only if it was the GNU/non-GNU ld that we prefer.
7265 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7266 *GNU* | *'with BFD'*)
7267 test "$with_gnu_ld" != no && break
7268 ;;
7269 *)
7270 test "$with_gnu_ld" != yes && break
7271 ;;
7272 esac
7273 fi
7274 done
7275 IFS="$lt_save_ifs"
7276else
7277 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7278fi
7279fi
7280
7281LD="$lt_cv_path_LD"
7282if test -n "$LD"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7284$as_echo "$LD" >&6; }
7285else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
cristy98dddb52010-11-04 00:30:15 +00007289test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7291$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007292if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007293 $as_echo_n "(cached) " >&6
7294else
7295 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7296case `$LD -v 2>&1 </dev/null` in
7297*GNU* | *'with BFD'*)
7298 lt_cv_prog_gnu_ld=yes
7299 ;;
7300*)
7301 lt_cv_prog_gnu_ld=no
7302 ;;
7303esac
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7306$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7307with_gnu_ld=$lt_cv_prog_gnu_ld
7308
7309
7310
7311
7312
7313
7314
7315
7316
cristy3ed852e2009-09-05 21:47:34 +00007317
cristy837d6dc2010-02-27 01:16:57 +00007318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7319$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007320if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007321 $as_echo_n "(cached) " >&6
7322else
7323 ac_cv_prog_cc_c99=no
7324ac_save_CC=$CC
7325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h. */
7327#include <stdarg.h>
7328#include <stdbool.h>
7329#include <stdlib.h>
7330#include <wchar.h>
7331#include <stdio.h>
7332
7333// Check varargs macros. These examples are taken from C99 6.10.3.5.
7334#define debug(...) fprintf (stderr, __VA_ARGS__)
7335#define showlist(...) puts (#__VA_ARGS__)
7336#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7337static void
7338test_varargs_macros (void)
7339{
7340 int x = 1234;
7341 int y = 5678;
7342 debug ("Flag");
7343 debug ("X = %d\n", x);
7344 showlist (The first, second, and third items.);
7345 report (x>y, "x is %d but y is %d", x, y);
7346}
7347
7348// Check long long types.
7349#define BIG64 18446744073709551615ull
7350#define BIG32 4294967295ul
7351#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7352#if !BIG_OK
7353 your preprocessor is broken;
7354#endif
7355#if BIG_OK
7356#else
7357 your preprocessor is broken;
7358#endif
7359static long long int bignum = -9223372036854775807LL;
7360static unsigned long long int ubignum = BIG64;
7361
7362struct incomplete_array
7363{
7364 int datasize;
7365 double data[];
7366};
7367
7368struct named_init {
7369 int number;
7370 const wchar_t *name;
7371 double average;
7372};
7373
7374typedef const char *ccp;
7375
7376static inline int
7377test_restrict (ccp restrict text)
7378{
7379 // See if C++-style comments work.
7380 // Iterate through items via the restricted pointer.
7381 // Also check for declarations in for loops.
7382 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7383 continue;
7384 return 0;
7385}
7386
7387// Check varargs and va_copy.
7388static void
7389test_varargs (const char *format, ...)
7390{
7391 va_list args;
7392 va_start (args, format);
7393 va_list args_copy;
7394 va_copy (args_copy, args);
7395
7396 const char *str;
7397 int number;
7398 float fnumber;
7399
7400 while (*format)
7401 {
7402 switch (*format++)
7403 {
7404 case 's': // string
7405 str = va_arg (args_copy, const char *);
7406 break;
7407 case 'd': // int
7408 number = va_arg (args_copy, int);
7409 break;
7410 case 'f': // float
7411 fnumber = va_arg (args_copy, double);
7412 break;
7413 default:
7414 break;
7415 }
7416 }
7417 va_end (args_copy);
7418 va_end (args);
7419}
7420
7421int
7422main ()
7423{
7424
7425 // Check bool.
7426 _Bool success = false;
7427
7428 // Check restrict.
7429 if (test_restrict ("String literal") == 0)
7430 success = true;
7431 char *restrict newvar = "Another string";
7432
7433 // Check varargs.
7434 test_varargs ("s, d' f .", "string", 65, 34.234);
7435 test_varargs_macros ();
7436
7437 // Check flexible array members.
7438 struct incomplete_array *ia =
7439 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7440 ia->datasize = 10;
7441 for (int i = 0; i < ia->datasize; ++i)
7442 ia->data[i] = i * 1.234;
7443
7444 // Check named initializers.
7445 struct named_init ni = {
7446 .number = 34,
7447 .name = L"Test wide string",
7448 .average = 543.34343,
7449 };
7450
7451 ni.number = 58;
7452
7453 int dynamic_array[ni.number];
7454 dynamic_array[ni.number - 1] = 543;
7455
7456 // work around unused variable warnings
7457 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7458 || dynamic_array[ni.number - 1] != 543);
7459
7460 ;
7461 return 0;
7462}
7463_ACEOF
7464for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7465do
7466 CC="$ac_save_CC $ac_arg"
7467 if ac_fn_c_try_compile "$LINENO"; then :
7468 ac_cv_prog_cc_c99=$ac_arg
7469fi
7470rm -f core conftest.err conftest.$ac_objext
7471 test "x$ac_cv_prog_cc_c99" != "xno" && break
7472done
7473rm -f conftest.$ac_ext
7474CC=$ac_save_CC
7475
7476fi
7477# AC_CACHE_VAL
7478case "x$ac_cv_prog_cc_c99" in
7479 x)
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7481$as_echo "none needed" >&6; } ;;
7482 xno)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7484$as_echo "unsupported" >&6; } ;;
7485 *)
7486 CC="$CC $ac_cv_prog_cc_c99"
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7488$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7489esac
7490if test "x$ac_cv_prog_cc_c99" != xno; then :
7491
7492fi
7493
7494
cristy73bd4a52010-10-05 11:24:23 +00007495if test "x$CC" != xcc; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7497$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7498else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7500$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7501fi
7502set dummy $CC; ac_cc=`$as_echo "$2" |
7503 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007504if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007505 $as_echo_n "(cached) " >&6
7506else
cristy73bd4a52010-10-05 11:24:23 +00007507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h. */
7509
7510int
7511main ()
7512{
7513
7514 ;
7515 return 0;
7516}
7517_ACEOF
7518# Make sure it works both with $CC and with simple cc.
7519# We do the test twice because some compilers refuse to overwrite an
7520# existing .o file with -o, though they will create one.
7521ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7522rm -f conftest2.*
7523if { { case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526esac
7527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7528$as_echo "$ac_try_echo"; } >&5
7529 (eval "$ac_try") 2>&5
7530 ac_status=$?
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; } &&
7533 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
7537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7538$as_echo "$ac_try_echo"; } >&5
7539 (eval "$ac_try") 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; };
7543then
7544 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7545 if test "x$CC" != xcc; then
7546 # Test first that cc exists at all.
7547 if { ac_try='cc -c conftest.$ac_ext >&5'
7548 { { case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551esac
7552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7553$as_echo "$ac_try_echo"; } >&5
7554 (eval "$ac_try") 2>&5
7555 ac_status=$?
7556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; }; }; then
7558 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7559 rm -f conftest2.*
7560 if { { case "(($ac_try" in
7561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7563esac
7564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7565$as_echo "$ac_try_echo"; } >&5
7566 (eval "$ac_try") 2>&5
7567 ac_status=$?
7568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7569 test $ac_status = 0; } &&
7570 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573esac
7574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7575$as_echo "$ac_try_echo"; } >&5
7576 (eval "$ac_try") 2>&5
7577 ac_status=$?
7578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579 test $ac_status = 0; };
7580 then
7581 # cc works too.
7582 :
7583 else
7584 # cc exists but doesn't like -o.
7585 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7586 fi
7587 fi
7588 fi
7589else
7590 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7591fi
7592rm -f core conftest*
7593
7594fi
7595if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7597$as_echo "yes" >&6; }
7598else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
7601
7602$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7603
7604fi
7605
7606# FIXME: we rely on the cache variable name because
7607# there is no other way.
7608set dummy $CC
7609am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7610eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7611if test "$am_t" != yes; then
7612 # Losing compiler, so override with the script.
7613 # FIXME: It is wrong to rewrite CC.
7614 # But if we don't then we get into trouble of one sort or another.
7615 # A longer-term fix would be to have automake use am__CC in this case,
7616 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7617 CC="$am_aux_dir/compile $CC"
7618fi
7619
7620
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7622$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007623if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007624 $as_echo_n "(cached) " >&6
7625else
7626 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007627 ac_ext=c
7628ac_cpp='$CPP $CPPFLAGS'
7629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632
7633 ac_save_CFLAGS="$CFLAGS"
7634for 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" #
7635do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h. */
7638
7639int
7640main ()
7641{
cristy24fc1fe2010-10-23 21:13:01 +00007642
cristy73bd4a52010-10-05 11:24:23 +00007643 ;
7644 return 0;
7645}
7646_ACEOF
7647if ac_fn_c_try_compile "$LINENO"; then :
7648 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7649fi
7650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651done
7652 CFLAGS="$ac_save_CFLAGS"
7653 ac_ext=c
7654ac_cpp='$CPP $CPPFLAGS'
7655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
7659
7660fi
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7662$as_echo "$ac_cv_cflags_warn_all" >&6; }
7663case ".$ac_cv_cflags_warn_all" in
7664 .ok|.ok,*) ;;
7665 .|.no|.no,*)
7666 ;;
7667 *)
7668 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7669 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7670 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7671 ac_status=$?
7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7673 test $ac_status = 0; }
7674 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7675 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7676 ac_status=$?
7677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7678 test $ac_status = 0; }
7679 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7680 fi
7681 ;;
nicolas6237c462010-10-05 06:11:49 +00007682esac
cristy3ed852e2009-09-05 21:47:34 +00007683
cristya0b81c32010-01-22 02:54:33 +00007684
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7686$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7687set x ${MAKE-make}
7688ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007689if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007690 $as_echo_n "(cached) " >&6
7691else
7692 cat >conftest.make <<\_ACEOF
7693SHELL = /bin/sh
7694all:
7695 @echo '@@@%%%=$(MAKE)=@@@%%%'
7696_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007697# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007698case `${MAKE-make} -f conftest.make 2>/dev/null` in
7699 *@@@%%%=?*=@@@%%%*)
7700 eval ac_cv_prog_make_${ac_make}_set=yes;;
7701 *)
7702 eval ac_cv_prog_make_${ac_make}_set=no;;
7703esac
7704rm -f conftest.make
7705fi
7706if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7708$as_echo "yes" >&6; }
7709 SET_MAKE=
7710else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713 SET_MAKE="MAKE=${MAKE-make}"
7714fi
7715
cristy8b350f62009-11-15 23:12:43 +00007716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007717$as_echo_n "checking whether ln -s works... " >&6; }
7718LN_S=$as_ln_s
7719if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007721$as_echo "yes" >&6; }
7722else
cristy8b350f62009-11-15 23:12:43 +00007723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007724$as_echo "no, using $LN_S" >&6; }
7725fi
7726
cristy73bd4a52010-10-05 11:24:23 +00007727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7728$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7729
7730# Check whether --with-dmalloc was given.
7731if test "${with_dmalloc+set}" = set; then :
7732 withval=$with_dmalloc; if test "$withval" = yes; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7734$as_echo "yes" >&6; }
7735
7736$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7737
7738 LIBS="$LIBS -ldmalloc"
7739 LDFLAGS="$LDFLAGS -g"
7740else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
7743fi
7744else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746$as_echo "no" >&6; }
7747fi
7748
7749
7750
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7752$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007753if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007754 $as_echo_n "(cached) " >&6
7755else
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h. */
7758#include <stdlib.h>
7759 static void foo(void) __attribute__ ((unused));
7760 static void
7761 foo(void) {
7762 exit(1);
7763 }
7764
7765int
7766main ()
7767{
7768
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773if ac_fn_c_try_compile "$LINENO"; then :
7774 ax_cv___attribute__=yes
7775else
7776 ax_cv___attribute__=no
7777
7778fi
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780
7781fi
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7783$as_echo "$ax_cv___attribute__" >&6; }
7784 if test "$ax_cv___attribute__" = "yes"; then
7785
7786$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7787
7788 fi
7789
7790
7791
7792if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7793 if test -n "$ac_tool_prefix"; then
7794 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7795set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007798if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007799 $as_echo_n "(cached) " >&6
7800else
7801 case $PKG_CONFIG in
7802 [\\/]* | ?:[\\/]*)
7803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7804 ;;
7805 *)
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817done
7818 done
7819IFS=$as_save_IFS
7820
7821 ;;
7822esac
7823fi
7824PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7825if test -n "$PKG_CONFIG"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7827$as_echo "$PKG_CONFIG" >&6; }
7828else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
7833
7834fi
7835if test -z "$ac_cv_path_PKG_CONFIG"; then
7836 ac_pt_PKG_CONFIG=$PKG_CONFIG
7837 # Extract the first word of "pkg-config", so it can be a program name with args.
7838set dummy pkg-config; ac_word=$2
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007841if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007842 $as_echo_n "(cached) " >&6
7843else
7844 case $ac_pt_PKG_CONFIG in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7847 ;;
7848 *)
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860done
7861 done
7862IFS=$as_save_IFS
7863
7864 ;;
7865esac
7866fi
7867ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7868if test -n "$ac_pt_PKG_CONFIG"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7870$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7871else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874fi
7875
7876 if test "x$ac_pt_PKG_CONFIG" = x; then
7877 PKG_CONFIG=""
7878 else
7879 case $cross_compiling:$ac_tool_warned in
7880yes:)
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7883ac_tool_warned=yes ;;
7884esac
7885 PKG_CONFIG=$ac_pt_PKG_CONFIG
7886 fi
7887else
7888 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7889fi
7890
7891fi
7892if test -n "$PKG_CONFIG"; then
7893 _pkg_min_version=0.9.0
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7895$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7896 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898$as_echo "yes" >&6; }
7899 else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901$as_echo "no" >&6; }
7902 PKG_CONFIG=""
7903 fi
7904
7905fi
cristy3ed852e2009-09-05 21:47:34 +00007906
7907#
cristy3ed852e2009-09-05 21:47:34 +00007908# Enable run-time checking.
7909#
7910# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007911if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007912 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7913else
7914 enable_bounds_checking='no'
7915fi
7916
7917
7918if test "$enable_bounds_checking" = yes; then
7919
cristy8b350f62009-11-15 23:12:43 +00007920$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007921
7922fi
7923
7924#
7925# Tests for Windows
7926#
7927
7928
cristy73bd4a52010-10-05 11:24:23 +00007929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7930$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007931if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007932 $as_echo_n "(cached) " >&6
7933else
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h. */
7936
7937int
7938main ()
7939{
7940#ifndef _MSC_VER
7941 choke me
7942#endif
7943
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949 ax_compiler_ms=yes
7950else
7951 ax_compiler_ms=no
7952fi
7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954ax_cv_c_compiler_ms=$ax_compiler_ms
7955
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7958$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007959
7960GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007961native_win32_build='no'
7962cygwin_build='no'
7963case "${host_os}" in
7964 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007965 cygwin_build='yes'
7966 GDI32_LIBS='-lgdi32'
7967 ;;
7968 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007969 native_win32_build='yes'
7970 GDI32_LIBS='-lgdi32'
7971 ;;
7972esac
7973if test "${GDI32_LIBS}x" != 'x'; then
7974
cristy8b350f62009-11-15 23:12:43 +00007975$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007976
7977fi
7978
cristy73bd4a52010-10-05 11:24:23 +00007979 if test "${GDI32_LIBS}x" != 'x' ; then
7980 WINGDI32_DELEGATE_TRUE=
7981 WINGDI32_DELEGATE_FALSE='#'
7982else
7983 WINGDI32_DELEGATE_TRUE='#'
7984 WINGDI32_DELEGATE_FALSE=
7985fi
7986
7987 if test "${native_win32_build}" = 'yes' ; then
7988 WIN32_NATIVE_BUILD_TRUE=
7989 WIN32_NATIVE_BUILD_FALSE='#'
7990else
7991 WIN32_NATIVE_BUILD_TRUE='#'
7992 WIN32_NATIVE_BUILD_FALSE=
7993fi
7994
7995 if test "${cygwin_build}" = 'yes' ; then
7996 CYGWIN_BUILD_TRUE=
7997 CYGWIN_BUILD_FALSE='#'
7998else
7999 CYGWIN_BUILD_TRUE='#'
8000 CYGWIN_BUILD_FALSE=
8001fi
8002
8003 if test "x${CC}" = 'xcl.exe' ; then
8004 USING_CL_TRUE=
8005 USING_CL_FALSE='#'
8006else
8007 USING_CL_TRUE='#'
8008 USING_CL_FALSE=
8009fi
8010
cristy3ed852e2009-09-05 21:47:34 +00008011
8012WinPathScript="${srcdirfull}/winpath.sh"
8013
8014
8015#
8016# Compiler flags tweaks
8017#
8018if test "${GCC}" != "yes"; then
8019 case "${host}" in
8020 *-*-hpux* )
8021 # aCC: HP ANSI C++ B3910B A.03.34
8022 CFLAGS="${CFLAGS} -Wp,-H30000"
8023 if test -n "${CXXFLAGS}"; then
8024 CXXFLAGS='-AA'
8025 else
8026 CXXFLAGS="${CXXFLAGS} -AA"
8027 fi
8028 ;;
8029 *-dec-osf5.* )
8030 # Compaq alphaev68-dec-osf5.1 compiler
8031 if test -n "${CXXFLAGS}"; then
8032 CXXFLAGS='-std strict_ansi -noimplicit_include'
8033 else
8034 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8035 fi
8036 esac
8037fi
8038
8039# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008041$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008042if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008043 $as_echo_n "(cached) " >&6
8044else
8045
8046im_cv_ld_lazyload='none'
8047case "${host}" in
8048 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8049 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8050 im_cv_ld_lazyload='-Wl,-zlazyload'
8051 fi
8052 ;;
8053esac
8054
8055fi
cristy8b350f62009-11-15 23:12:43 +00008056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008057$as_echo "$im_cv_ld_lazyload" >&6; }
8058if test "${im_cv_ld_lazyload}" != 'none' ; then
8059 if test -z "${LDFLAGS}" ; then
8060 LDFLAGS="${im_cv_ld_lazyload}"
8061 else
8062 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8063 fi
8064fi
8065
8066case "$host" in
8067*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008068 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008069if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008070 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8071else
8072 build_osxuniversal=no
8073fi
8074
8075
8076 if test "${build_osxuniversal}" != no ; then
8077 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008078 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008079Please re-run configure with these options:
8080 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008081 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008082 fi
8083 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8084 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8085 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8086 fi
8087 ;;
8088esac
8089
8090# Enable support for threads
8091
8092# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008093if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008094 withval=$with_threads; with_threads=$withval
8095else
8096 with_threads='yes'
8097fi
8098
8099
8100have_threads=no
8101if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008102
8103
8104
8105ac_ext=c
8106ac_cpp='$CPP $CPPFLAGS'
8107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110
8111ax_pthread_ok=no
8112
8113# We used to check for pthread.h first, but this fails if pthread.h
8114# requires special compiler flags (e.g. on True64 or Sequent).
8115# It gets checked for in the link test anyway.
8116
8117# First of all, check if the user has set any of the PTHREAD_LIBS,
8118# etcetera environment variables, and if threads linking works using
8119# them:
8120if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8121 save_CFLAGS="$CFLAGS"
8122 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8123 save_LIBS="$LIBS"
8124 LIBS="$PTHREAD_LIBS $LIBS"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8126$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h. */
8129
8130/* Override any GCC internal prototype to avoid an error.
8131 Use char because int might match the return type of a GCC
8132 builtin and then its argument prototype would still apply. */
8133#ifdef __cplusplus
8134extern "C"
8135#endif
8136char pthread_join ();
8137int
8138main ()
8139{
8140return pthread_join ();
8141 ;
8142 return 0;
8143}
8144_ACEOF
8145if ac_fn_c_try_link "$LINENO"; then :
8146 ax_pthread_ok=yes
8147fi
8148rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8151$as_echo "$ax_pthread_ok" >&6; }
8152 if test x"$ax_pthread_ok" = xno; then
8153 PTHREAD_LIBS=""
8154 PTHREAD_CFLAGS=""
8155 fi
8156 LIBS="$save_LIBS"
8157 CFLAGS="$save_CFLAGS"
8158fi
8159
8160# We must check for the threads library under a number of different
8161# names; the ordering is very important because some systems
8162# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8163# libraries is broken (non-POSIX).
8164
8165# Create a list of thread flags to try. Items starting with a "-" are
8166# C compiler flags, and other items are library names, except for "none"
8167# which indicates that we try without any flags at all, and "pthread-config"
8168# which is a program returning the flags for the Pth emulation library.
8169
8170ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8171
8172# The ordering *is* (sometimes) important. Some notes on the
8173# individual items follow:
8174
8175# pthreads: AIX (must check this before -lpthread)
8176# none: in case threads are in libc; should be tried before -Kthread and
8177# other compiler flags to prevent continual compiler warnings
8178# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8179# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8180# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8181# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8182# -pthreads: Solaris/gcc
8183# -mthreads: Mingw32/gcc, Lynx/gcc
8184# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8185# doesn't hurt to check since this sometimes defines pthreads too;
8186# also defines -D_REENTRANT)
8187# ... -mt is also the pthreads flag for HP/aCC
8188# pthread: Linux, etcetera
8189# --thread-safe: KAI C++
8190# pthread-config: use pthread-config program (for GNU Pth library)
8191
8192case "${host_cpu}-${host_os}" in
8193 *solaris*)
8194
8195 # On Solaris (at least, for some versions), libc contains stubbed
8196 # (non-functional) versions of the pthreads routines, so link-based
8197 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8198 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8199 # a function called by this macro, so we could check for that, but
8200 # who knows whether they'll stub that too in a future libc.) So,
8201 # we'll just look for -pthreads and -lpthread first:
8202
8203 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8204 ;;
8205
8206 *-darwin*)
8207 ax_pthread_flags="-pthread $ax_pthread_flags"
8208 ;;
8209esac
8210
8211if test x"$ax_pthread_ok" = xno; then
8212for flag in $ax_pthread_flags; do
8213
8214 case $flag in
8215 none)
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8217$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8218 ;;
8219
8220 -*)
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8222$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8223 PTHREAD_CFLAGS="$flag"
8224 ;;
8225
8226 pthread-config)
8227 # Extract the first word of "pthread-config", so it can be a program name with args.
8228set dummy pthread-config; ac_word=$2
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008231if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008232 $as_echo_n "(cached) " >&6
8233else
8234 if test -n "$ax_pthread_config"; then
8235 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8236else
8237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_prog_ax_pthread_config="yes"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248done
8249 done
8250IFS=$as_save_IFS
8251
8252 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8253fi
8254fi
8255ax_pthread_config=$ac_cv_prog_ax_pthread_config
8256if test -n "$ax_pthread_config"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8258$as_echo "$ax_pthread_config" >&6; }
8259else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
8262fi
8263
8264
8265 if test x"$ax_pthread_config" = xno; then continue; fi
8266 PTHREAD_CFLAGS="`pthread-config --cflags`"
8267 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8268 ;;
8269
8270 *)
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8272$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8273 PTHREAD_LIBS="-l$flag"
8274 ;;
8275 esac
8276
8277 save_LIBS="$LIBS"
8278 save_CFLAGS="$CFLAGS"
8279 LIBS="$PTHREAD_LIBS $LIBS"
8280 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8281
8282 # Check for various functions. We must include pthread.h,
8283 # since some functions may be macros. (On the Sequent, we
8284 # need a special flag -Kthread to make this header compile.)
8285 # We check for pthread_join because it is in -lpthread on IRIX
8286 # while pthread_create is in libc. We check for pthread_attr_init
8287 # due to DEC craziness with -lpthreads. We check for
8288 # pthread_cleanup_push because it is one of the few pthread
8289 # functions on Solaris that doesn't have a non-functional libc stub.
8290 # We try pthread_create on general principles.
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h. */
8293#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008294 static void routine(void* a) {a=0;}
8295 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008296int
8297main ()
8298{
8299pthread_t th; pthread_attr_t attr;
8300 pthread_create(&th,0,start_routine,0);
8301 pthread_join(th, 0);
8302 pthread_attr_init(&attr);
8303 pthread_cleanup_push(routine, 0);
8304 pthread_cleanup_pop(0);
8305 ;
8306 return 0;
8307}
8308_ACEOF
8309if ac_fn_c_try_link "$LINENO"; then :
8310 ax_pthread_ok=yes
8311fi
8312rm -f core conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314
8315 LIBS="$save_LIBS"
8316 CFLAGS="$save_CFLAGS"
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8319$as_echo "$ax_pthread_ok" >&6; }
8320 if test "x$ax_pthread_ok" = xyes; then
8321 break;
8322 fi
8323
8324 PTHREAD_LIBS=""
8325 PTHREAD_CFLAGS=""
8326done
8327fi
8328
8329# Various other checks:
8330if test "x$ax_pthread_ok" = xyes; then
8331 save_LIBS="$LIBS"
8332 LIBS="$PTHREAD_LIBS $LIBS"
8333 save_CFLAGS="$CFLAGS"
8334 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8335
8336 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8338$as_echo_n "checking for joinable pthread attribute... " >&6; }
8339 attr_name=unknown
8340 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h. */
8343#include <pthread.h>
8344int
8345main ()
8346{
8347int attr=$attr; return attr;
8348 ;
8349 return 0;
8350}
8351_ACEOF
8352if ac_fn_c_try_link "$LINENO"; then :
8353 attr_name=$attr; break
8354fi
8355rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 done
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8359$as_echo "$attr_name" >&6; }
8360 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8361
8362cat >>confdefs.h <<_ACEOF
8363#define PTHREAD_CREATE_JOINABLE $attr_name
8364_ACEOF
8365
8366 fi
8367
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8369$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8370 flag=no
8371 case "${host_cpu}-${host_os}" in
8372 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8373 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8374 esac
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8376$as_echo "${flag}" >&6; }
8377 if test "x$flag" != xno; then
8378 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8379 fi
8380
8381 LIBS="$save_LIBS"
8382 CFLAGS="$save_CFLAGS"
8383
8384 # More AIX lossage: must compile with xlc_r or cc_r
8385 if test x"$GCC" != xyes; then
8386 for ac_prog in xlc_r cc_r
8387do
8388 # Extract the first word of "$ac_prog", so it can be a program name with args.
8389set dummy $ac_prog; ac_word=$2
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008392if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008393 $as_echo_n "(cached) " >&6
8394else
8395 if test -n "$PTHREAD_CC"; then
8396 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8397else
8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399for as_dir in $PATH
8400do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_PTHREAD_CC="$ac_prog"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8408 fi
8409done
8410 done
8411IFS=$as_save_IFS
8412
8413fi
8414fi
8415PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8416if test -n "$PTHREAD_CC"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8418$as_echo "$PTHREAD_CC" >&6; }
8419else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421$as_echo "no" >&6; }
8422fi
8423
8424
8425 test -n "$PTHREAD_CC" && break
8426done
8427test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8428
8429 else
8430 PTHREAD_CC=$CC
8431 fi
8432else
8433 PTHREAD_CC="$CC"
8434fi
8435
8436
8437
8438
8439
8440# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8441if test x"$ax_pthread_ok" = xyes; then
8442
8443$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8444
8445 :
8446else
8447 ax_pthread_ok=no
8448
8449fi
8450ac_ext=c
8451ac_cpp='$CPP $CPPFLAGS'
8452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8454ac_compiler_gnu=$ac_cv_c_compiler_gnu
8455
8456
cristy7acf8fb2010-09-23 19:58:53 +00008457 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008458 have_threads=yes
8459 DEF_THREAD="$PTHREAD_CFLAGS"
8460 CFLAGS="$CFLAGS $DEF_THREAD"
8461 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8462 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008463 { $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 +00008464$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8465 CC="$PTHREAD_CC"
8466 fi
cristy55bf91c2010-09-24 00:29:41 +00008467
8468$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8469
cristy3ed852e2009-09-05 21:47:34 +00008470 fi
8471fi
8472
8473# Enable support for OpenMP
8474if test "$have_threads" != 'yes'; then
8475 ac_cv_prog_c_openmp=unsupported
8476fi
8477
8478 OPENMP_CFLAGS=
8479 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008480if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008481 enableval=$enable_openmp;
8482fi
8483
8484 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008486$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008487if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008488 $as_echo_n "(cached) " >&6
8489else
cristy8b350f62009-11-15 23:12:43 +00008490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008492
8493#ifndef _OPENMP
8494 choke me
8495#endif
8496#include <omp.h>
8497int main () { return omp_get_num_threads (); }
8498
8499_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008500if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008501 ac_cv_prog_c_openmp='none needed'
8502else
cristy8b350f62009-11-15 23:12:43 +00008503 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008504 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8505 ac_save_CFLAGS=$CFLAGS
8506 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008509
8510#ifndef _OPENMP
8511 choke me
8512#endif
8513#include <omp.h>
8514int main () { return omp_get_num_threads (); }
8515
8516_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008517if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008518 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008519fi
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 +00008522 CFLAGS=$ac_save_CFLAGS
8523 if test "$ac_cv_prog_c_openmp" != unsupported; then
8524 break
8525 fi
8526 done
8527fi
cristy8b350f62009-11-15 23:12:43 +00008528rm -f core conftest.err conftest.$ac_objext \
8529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008530fi
cristy8b350f62009-11-15 23:12:43 +00008531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008532$as_echo "$ac_cv_prog_c_openmp" >&6; }
8533 case $ac_cv_prog_c_openmp in #(
8534 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008535 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008536 *)
cristy8b350f62009-11-15 23:12:43 +00008537 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008538 esac
8539 fi
8540
8541
8542CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8543MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8544
cristy391f1ce2010-09-09 17:23:28 +00008545if test "$enable_openmp" != no; then
8546 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8547 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8548 fi
8549fi
cristy3ed852e2009-09-05 21:47:34 +00008550
cristy736173a2009-09-20 21:18:22 +00008551# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008552
8553
8554
8555ac_ext=c
8556ac_cpp='$CPP $CPPFLAGS'
8557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559ac_compiler_gnu=$ac_cv_c_compiler_gnu
8560
8561ax_pthread_ok=no
8562
8563# We used to check for pthread.h first, but this fails if pthread.h
8564# requires special compiler flags (e.g. on True64 or Sequent).
8565# It gets checked for in the link test anyway.
8566
8567# First of all, check if the user has set any of the PTHREAD_LIBS,
8568# etcetera environment variables, and if threads linking works using
8569# them:
8570if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8571 save_CFLAGS="$CFLAGS"
8572 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8573 save_LIBS="$LIBS"
8574 LIBS="$PTHREAD_LIBS $LIBS"
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8576$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h. */
8579
8580/* Override any GCC internal prototype to avoid an error.
8581 Use char because int might match the return type of a GCC
8582 builtin and then its argument prototype would still apply. */
8583#ifdef __cplusplus
8584extern "C"
8585#endif
8586char pthread_join ();
8587int
8588main ()
8589{
8590return pthread_join ();
8591 ;
8592 return 0;
8593}
8594_ACEOF
8595if ac_fn_c_try_link "$LINENO"; then :
8596 ax_pthread_ok=yes
8597fi
8598rm -f core conftest.err conftest.$ac_objext \
8599 conftest$ac_exeext conftest.$ac_ext
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8601$as_echo "$ax_pthread_ok" >&6; }
8602 if test x"$ax_pthread_ok" = xno; then
8603 PTHREAD_LIBS=""
8604 PTHREAD_CFLAGS=""
8605 fi
8606 LIBS="$save_LIBS"
8607 CFLAGS="$save_CFLAGS"
8608fi
8609
8610# We must check for the threads library under a number of different
8611# names; the ordering is very important because some systems
8612# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8613# libraries is broken (non-POSIX).
8614
8615# Create a list of thread flags to try. Items starting with a "-" are
8616# C compiler flags, and other items are library names, except for "none"
8617# which indicates that we try without any flags at all, and "pthread-config"
8618# which is a program returning the flags for the Pth emulation library.
8619
8620ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8621
8622# The ordering *is* (sometimes) important. Some notes on the
8623# individual items follow:
8624
8625# pthreads: AIX (must check this before -lpthread)
8626# none: in case threads are in libc; should be tried before -Kthread and
8627# other compiler flags to prevent continual compiler warnings
8628# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8629# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8630# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8631# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8632# -pthreads: Solaris/gcc
8633# -mthreads: Mingw32/gcc, Lynx/gcc
8634# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8635# doesn't hurt to check since this sometimes defines pthreads too;
8636# also defines -D_REENTRANT)
8637# ... -mt is also the pthreads flag for HP/aCC
8638# pthread: Linux, etcetera
8639# --thread-safe: KAI C++
8640# pthread-config: use pthread-config program (for GNU Pth library)
8641
8642case "${host_cpu}-${host_os}" in
8643 *solaris*)
8644
8645 # On Solaris (at least, for some versions), libc contains stubbed
8646 # (non-functional) versions of the pthreads routines, so link-based
8647 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8648 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8649 # a function called by this macro, so we could check for that, but
8650 # who knows whether they'll stub that too in a future libc.) So,
8651 # we'll just look for -pthreads and -lpthread first:
8652
8653 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8654 ;;
8655
8656 *-darwin*)
8657 ax_pthread_flags="-pthread $ax_pthread_flags"
8658 ;;
8659esac
8660
8661if test x"$ax_pthread_ok" = xno; then
8662for flag in $ax_pthread_flags; do
8663
8664 case $flag in
8665 none)
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8667$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8668 ;;
8669
8670 -*)
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8672$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8673 PTHREAD_CFLAGS="$flag"
8674 ;;
8675
8676 pthread-config)
8677 # Extract the first word of "pthread-config", so it can be a program name with args.
8678set dummy pthread-config; ac_word=$2
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008681if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008682 $as_echo_n "(cached) " >&6
8683else
8684 if test -n "$ax_pthread_config"; then
8685 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8686else
8687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688for as_dir in $PATH
8689do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_ax_pthread_config="yes"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8697 fi
8698done
8699 done
8700IFS=$as_save_IFS
8701
8702 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8703fi
8704fi
8705ax_pthread_config=$ac_cv_prog_ax_pthread_config
8706if test -n "$ax_pthread_config"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8708$as_echo "$ax_pthread_config" >&6; }
8709else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711$as_echo "no" >&6; }
8712fi
8713
8714
8715 if test x"$ax_pthread_config" = xno; then continue; fi
8716 PTHREAD_CFLAGS="`pthread-config --cflags`"
8717 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8718 ;;
8719
8720 *)
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8722$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8723 PTHREAD_LIBS="-l$flag"
8724 ;;
8725 esac
8726
8727 save_LIBS="$LIBS"
8728 save_CFLAGS="$CFLAGS"
8729 LIBS="$PTHREAD_LIBS $LIBS"
8730 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8731
8732 # Check for various functions. We must include pthread.h,
8733 # since some functions may be macros. (On the Sequent, we
8734 # need a special flag -Kthread to make this header compile.)
8735 # We check for pthread_join because it is in -lpthread on IRIX
8736 # while pthread_create is in libc. We check for pthread_attr_init
8737 # due to DEC craziness with -lpthreads. We check for
8738 # pthread_cleanup_push because it is one of the few pthread
8739 # functions on Solaris that doesn't have a non-functional libc stub.
8740 # We try pthread_create on general principles.
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h. */
8743#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008744 static void routine(void* a) {a=0;}
8745 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008746int
8747main ()
8748{
8749pthread_t th; pthread_attr_t attr;
8750 pthread_create(&th,0,start_routine,0);
8751 pthread_join(th, 0);
8752 pthread_attr_init(&attr);
8753 pthread_cleanup_push(routine, 0);
8754 pthread_cleanup_pop(0);
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_link "$LINENO"; then :
8760 ax_pthread_ok=yes
8761fi
8762rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764
8765 LIBS="$save_LIBS"
8766 CFLAGS="$save_CFLAGS"
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8769$as_echo "$ax_pthread_ok" >&6; }
8770 if test "x$ax_pthread_ok" = xyes; then
8771 break;
8772 fi
8773
8774 PTHREAD_LIBS=""
8775 PTHREAD_CFLAGS=""
8776done
8777fi
8778
8779# Various other checks:
8780if test "x$ax_pthread_ok" = xyes; then
8781 save_LIBS="$LIBS"
8782 LIBS="$PTHREAD_LIBS $LIBS"
8783 save_CFLAGS="$CFLAGS"
8784 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8785
8786 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8788$as_echo_n "checking for joinable pthread attribute... " >&6; }
8789 attr_name=unknown
8790 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792/* end confdefs.h. */
8793#include <pthread.h>
8794int
8795main ()
8796{
8797int attr=$attr; return attr;
8798 ;
8799 return 0;
8800}
8801_ACEOF
8802if ac_fn_c_try_link "$LINENO"; then :
8803 attr_name=$attr; break
8804fi
8805rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 done
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8809$as_echo "$attr_name" >&6; }
8810 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8811
8812cat >>confdefs.h <<_ACEOF
8813#define PTHREAD_CREATE_JOINABLE $attr_name
8814_ACEOF
8815
8816 fi
8817
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8819$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8820 flag=no
8821 case "${host_cpu}-${host_os}" in
8822 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8823 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8824 esac
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8826$as_echo "${flag}" >&6; }
8827 if test "x$flag" != xno; then
8828 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8829 fi
8830
8831 LIBS="$save_LIBS"
8832 CFLAGS="$save_CFLAGS"
8833
8834 # More AIX lossage: must compile with xlc_r or cc_r
8835 if test x"$GCC" != xyes; then
8836 for ac_prog in xlc_r cc_r
8837do
8838 # Extract the first word of "$ac_prog", so it can be a program name with args.
8839set dummy $ac_prog; ac_word=$2
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008842if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008843 $as_echo_n "(cached) " >&6
8844else
8845 if test -n "$PTHREAD_CC"; then
8846 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8847else
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8855 ac_cv_prog_PTHREAD_CC="$ac_prog"
8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857 break 2
8858 fi
8859done
8860 done
8861IFS=$as_save_IFS
8862
8863fi
8864fi
8865PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8866if test -n "$PTHREAD_CC"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8868$as_echo "$PTHREAD_CC" >&6; }
8869else
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871$as_echo "no" >&6; }
8872fi
8873
8874
8875 test -n "$PTHREAD_CC" && break
8876done
8877test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8878
8879 else
8880 PTHREAD_CC=$CC
8881 fi
8882else
8883 PTHREAD_CC="$CC"
8884fi
8885
8886
8887
8888
8889
8890# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8891if test x"$ax_pthread_ok" = xyes; then
8892
8893$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8894
8895 :
8896else
8897 ax_pthread_ok=no
8898
8899fi
8900ac_ext=c
8901ac_cpp='$CPP $CPPFLAGS'
8902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8904ac_compiler_gnu=$ac_cv_c_compiler_gnu
8905
8906
8907
8908# Check whether --enable-opencl was given.
8909if test "${enable_opencl+set}" = set; then :
8910 enableval=$enable_opencl; disable_opencl=$enableval
8911else
8912 disable_opencl='yes'
8913fi
8914
8915
8916if test "$disable_opencl" = 'yes'; then
8917 ac_ext=c
8918ac_cpp='$CPP $CPPFLAGS'
8919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8921ac_compiler_gnu=$ac_cv_c_compiler_gnu
8922
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8924$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008925if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008926 $as_echo_n "(cached) " >&6
8927else
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h. */
8930
8931int
8932main ()
8933{
8934#ifndef _MSC_VER
8935 choke me
8936#endif
8937
8938 ;
8939 return 0;
8940}
8941_ACEOF
8942if ac_fn_c_try_compile "$LINENO"; then :
8943 ax_compiler_ms=yes
8944else
8945 ax_compiler_ms=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948ax_cv_c_compiler_ms=$ax_compiler_ms
8949
8950fi
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8952$as_echo "$ax_cv_c_compiler_ms" >&6; }
8953 if test X$ax_compiler_ms = Xno; then :
8954 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8955fi
8956
8957 ax_save_CPPFLAGS=$CPPFLAGS
8958 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8959 for ac_header in CL/cl.h OpenCL/cl.h
8960do :
8961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008963if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008964 cat >>confdefs.h <<_ACEOF
8965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8966_ACEOF
8967
8968fi
8969
8970done
8971
8972 CPPFLAGS=$ax_save_CPPFLAGS
8973
8974 for ac_header in windows.h
8975do :
8976 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008977if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008978 cat >>confdefs.h <<_ACEOF
8979#define HAVE_WINDOWS_H 1
8980_ACEOF
8981
8982fi
8983
8984done
8985
8986
8987
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8990$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008991if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008992 $as_echo_n "(cached) " >&6
8993else
8994 ax_cv_check_cl_libcl=no
8995 case $host_cpu in
8996 x86_64) ax_check_cl_libdir=lib64 ;;
8997 *) ax_check_cl_libdir=lib ;;
8998 esac
8999 ax_save_CPPFLAGS=$CPPFLAGS
9000 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9001 ax_save_LIBS=$LIBS
9002 LIBS=""
9003 ax_check_libs="-lOpenCL -lCL -lclparser"
9004 for ax_lib in $ax_check_libs; do
9005 if test X$ax_compiler_ms = Xyes; then :
9006 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9007else
9008 ax_try_lib=$ax_lib
9009fi
9010 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012/* end confdefs.h. */
9013
9014 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9015 # include <windows.h>
9016 # endif
9017 # ifdef HAVE_CL_CL_H
9018 # include <CL/cl.h>
9019 # elif defined(HAVE_OPENCL_CL_H)
9020 # include <OpenCL/cl.h>
9021 # else
9022 # error no CL.h
9023 # endif
9024int
9025main ()
9026{
9027clCreateContextFromType(0,0,0,0,0)
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032if ac_fn_c_try_link "$LINENO"; then :
9033 ax_cv_check_cl_libcl=$ax_try_lib; break
9034else
9035 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"
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h. */
9038
9039 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9040 # include <windows.h>
9041 # endif
9042 # ifdef HAVE_CL_CL_H
9043 # include <CL/cl.h>
9044 # elif defined(HAVE_OPENCL_CL_H)
9045 # include <OpenCL/cl.h>
9046 # else
9047 # error no CL.h
9048 # endif
9049int
9050main ()
9051{
9052clCreateContextFromType(0,0,0,0,0)
9053 ;
9054 return 0;
9055}
9056_ACEOF
9057if ac_fn_c_try_link "$LINENO"; then :
9058 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9059else
cristy78c5a0c2010-12-04 20:00:59 +00009060 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 +00009061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h. */
9063
9064 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9065 # include <windows.h>
9066 # endif
9067 # ifdef HAVE_CL_CL_H
9068 # include <CL/cl.h>
9069 # elif defined(HAVE_OPENCL_CL_H)
9070 # include <OpenCL/cl.h>
9071 # else
9072 # error no CL.h
9073 # endif
9074int
9075main ()
9076{
9077clCreateContextFromType(0,0,0,0,0)
9078 ;
9079 return 0;
9080}
9081_ACEOF
9082if ac_fn_c_try_link "$LINENO"; then :
9083 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9084fi
9085rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090fi
9091rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093 done
9094
9095 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009096 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h. */
9099
9100 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9101 # include <windows.h>
9102 # endif
9103 # ifdef HAVE_CL_CL_H
9104 # include <CL/cl.h>
9105 # elif defined(HAVE_OPENCL_CL_H)
9106 # include <OpenCL/cl.h>
9107 # else
9108 # error no CL.h
9109 # endif
9110int
9111main ()
9112{
9113clCreateContextFromType(0,0,0,0,0)
9114 ;
9115 return 0;
9116}
9117_ACEOF
9118if ac_fn_c_try_link "$LINENO"; then :
9119 ax_cv_check_cl_libcl=$LIBS
9120fi
9121rm -f core conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9123fi
9124
9125 LIBS=$ax_save_LIBS
9126 CPPFLAGS=$ax_save_CPPFLAGS
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9129$as_echo "$ax_cv_check_cl_libcl" >&6; }
9130
9131 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9132 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9133else
9134 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9135$as_echo "#define _OPENCL 1" >>confdefs.h
9136
9137fi
9138 ac_ext=c
9139ac_cpp='$CPP $CPPFLAGS'
9140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142ac_compiler_gnu=$ac_cv_c_compiler_gnu
9143
9144fi
9145
9146
9147
9148
cristyc7083c12009-10-14 03:16:55 +00009149CFLAGS="$CL_CFLAGS $CFLAGS"
9150LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009151
cristy391f1ce2010-09-09 17:23:28 +00009152if test "$enable_opencl" != no; then
9153 if test "_OPENCL" = '1'; then
9154 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9155 fi
cristyfd9dcd42010-08-08 18:07:02 +00009156fi
cristy2e8b51d2009-10-17 18:26:15 +00009157
cristy3ed852e2009-09-05 21:47:34 +00009158########
9159#
9160# Check for large file support
9161#
9162########
9163# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009164if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009165 enableval=$enable_largefile;
9166fi
9167
9168if test "$enable_largefile" != no; then
9169
cristy8b350f62009-11-15 23:12:43 +00009170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009171$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009172if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009173 $as_echo_n "(cached) " >&6
9174else
9175 ac_cv_sys_largefile_CC=no
9176 if test "$GCC" != yes; then
9177 ac_save_CC=$CC
9178 while :; do
9179 # IRIX 6.2 and later do not support large files by default,
9180 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009182/* end confdefs.h. */
9183#include <sys/types.h>
9184 /* Check that off_t can represent 2**63 - 1 correctly.
9185 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9186 since some C++ compilers masquerading as C compilers
9187 incorrectly reject 9223372036854775807. */
9188#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9189 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9190 && LARGE_OFF_T % 2147483647 == 1)
9191 ? 1 : -1];
9192int
9193main ()
9194{
9195
9196 ;
9197 return 0;
9198}
9199_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009200 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009201 break
cristy3ed852e2009-09-05 21:47:34 +00009202fi
cristy3ed852e2009-09-05 21:47:34 +00009203rm -f core conftest.err conftest.$ac_objext
9204 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009205 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009206 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009207fi
cristy3ed852e2009-09-05 21:47:34 +00009208rm -f core conftest.err conftest.$ac_objext
9209 break
9210 done
9211 CC=$ac_save_CC
9212 rm -f conftest.$ac_ext
9213 fi
9214fi
cristy8b350f62009-11-15 23:12:43 +00009215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009216$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9217 if test "$ac_cv_sys_largefile_CC" != no; then
9218 CC=$CC$ac_cv_sys_largefile_CC
9219 fi
9220
cristy8b350f62009-11-15 23:12:43 +00009221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009222$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009223if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009224 $as_echo_n "(cached) " >&6
9225else
9226 while :; do
cristy8b350f62009-11-15 23:12:43 +00009227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009228/* end confdefs.h. */
9229#include <sys/types.h>
9230 /* Check that off_t can represent 2**63 - 1 correctly.
9231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9232 since some C++ compilers masquerading as C compilers
9233 incorrectly reject 9223372036854775807. */
9234#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9236 && LARGE_OFF_T % 2147483647 == 1)
9237 ? 1 : -1];
9238int
9239main ()
9240{
9241
9242 ;
9243 return 0;
9244}
9245_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009246if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009247 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009248fi
cristy3ed852e2009-09-05 21:47:34 +00009249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009251/* end confdefs.h. */
9252#define _FILE_OFFSET_BITS 64
9253#include <sys/types.h>
9254 /* Check that off_t can represent 2**63 - 1 correctly.
9255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9256 since some C++ compilers masquerading as C compilers
9257 incorrectly reject 9223372036854775807. */
9258#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9260 && LARGE_OFF_T % 2147483647 == 1)
9261 ? 1 : -1];
9262int
9263main ()
9264{
9265
9266 ;
9267 return 0;
9268}
9269_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009271 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009272fi
cristy3ed852e2009-09-05 21:47:34 +00009273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 ac_cv_sys_file_offset_bits=unknown
9275 break
9276done
9277fi
cristy8b350f62009-11-15 23:12:43 +00009278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009279$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9280case $ac_cv_sys_file_offset_bits in #(
9281 no | unknown) ;;
9282 *)
9283cat >>confdefs.h <<_ACEOF
9284#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9285_ACEOF
9286;;
9287esac
9288rm -rf conftest*
9289 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009291$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009292if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009293 $as_echo_n "(cached) " >&6
9294else
9295 while :; do
cristy8b350f62009-11-15 23:12:43 +00009296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009297/* end confdefs.h. */
9298#include <sys/types.h>
9299 /* Check that off_t can represent 2**63 - 1 correctly.
9300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9301 since some C++ compilers masquerading as C compilers
9302 incorrectly reject 9223372036854775807. */
9303#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9305 && LARGE_OFF_T % 2147483647 == 1)
9306 ? 1 : -1];
9307int
9308main ()
9309{
9310
9311 ;
9312 return 0;
9313}
9314_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009315if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009316 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009317fi
cristy3ed852e2009-09-05 21:47:34 +00009318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009320/* end confdefs.h. */
9321#define _LARGE_FILES 1
9322#include <sys/types.h>
9323 /* Check that off_t can represent 2**63 - 1 correctly.
9324 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9325 since some C++ compilers masquerading as C compilers
9326 incorrectly reject 9223372036854775807. */
9327#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9328 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9329 && LARGE_OFF_T % 2147483647 == 1)
9330 ? 1 : -1];
9331int
9332main ()
9333{
9334
9335 ;
9336 return 0;
9337}
9338_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009339if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009340 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009341fi
cristy3ed852e2009-09-05 21:47:34 +00009342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 ac_cv_sys_large_files=unknown
9344 break
9345done
9346fi
cristy8b350f62009-11-15 23:12:43 +00009347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009348$as_echo "$ac_cv_sys_large_files" >&6; }
9349case $ac_cv_sys_large_files in #(
9350 no | unknown) ;;
9351 *)
9352cat >>confdefs.h <<_ACEOF
9353#define _LARGE_FILES $ac_cv_sys_large_files
9354_ACEOF
9355;;
9356esac
9357rm -rf conftest*
9358 fi
9359fi
9360
cristy8b350f62009-11-15 23:12:43 +00009361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009362$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009363if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009364 $as_echo_n "(cached) " >&6
9365else
9366 while :; do
cristy8b350f62009-11-15 23:12:43 +00009367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009368/* end confdefs.h. */
9369#include <sys/types.h> /* for off_t */
9370 #include <stdio.h>
9371int
9372main ()
9373{
9374int (*fp) (FILE *, off_t, int) = fseeko;
9375 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9376 ;
9377 return 0;
9378}
9379_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009381 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009382fi
cristy8b350f62009-11-15 23:12:43 +00009383rm -f core conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009386/* end confdefs.h. */
9387#define _LARGEFILE_SOURCE 1
9388#include <sys/types.h> /* for off_t */
9389 #include <stdio.h>
9390int
9391main ()
9392{
9393int (*fp) (FILE *, off_t, int) = fseeko;
9394 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9395 ;
9396 return 0;
9397}
9398_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009399if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009400 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009401fi
cristy8b350f62009-11-15 23:12:43 +00009402rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009404 ac_cv_sys_largefile_source=unknown
9405 break
9406done
9407fi
cristy8b350f62009-11-15 23:12:43 +00009408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009409$as_echo "$ac_cv_sys_largefile_source" >&6; }
9410case $ac_cv_sys_largefile_source in #(
9411 no | unknown) ;;
9412 *)
9413cat >>confdefs.h <<_ACEOF
9414#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9415_ACEOF
9416;;
9417esac
9418rm -rf conftest*
9419
9420# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9421# in glibc 2.1.3, but that breaks too many other things.
9422# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9423if test $ac_cv_sys_largefile_source != unknown; then
9424
cristy8b350f62009-11-15 23:12:43 +00009425$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009426
9427fi
9428
9429LFS_CPPFLAGS=''
9430if test "$enable_largefile" != no; then
9431 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9432 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9433 else
cristy8b350f62009-11-15 23:12:43 +00009434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009435$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009436 if test "$cross_compiling" = yes; then :
9437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009439as_fn_error $? "cannot run test program while cross compiling
9440See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009441else
cristy8b350f62009-11-15 23:12:43 +00009442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009444#include <unistd.h>
9445 main () {
9446 exit(!(sizeof(off_t) == 8));
9447 }
cristyda16f162011-02-19 23:52:17 +00009448int
9449main ()
9450{
9451
9452 ;
9453 return 0;
9454}
cristy3ed852e2009-09-05 21:47:34 +00009455_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009456if ac_fn_c_try_run "$LINENO"; then :
9457 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009458
cristy8b350f62009-11-15 23:12:43 +00009459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009460$as_echo "yes" >&6; }
9461else
cristy8b350f62009-11-15 23:12:43 +00009462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009463$as_echo "no" >&6; }
9464fi
cristy8b350f62009-11-15 23:12:43 +00009465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9466 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009467fi
9468
cristy3ed852e2009-09-05 21:47:34 +00009469 fi
9470 if test "$ac_cv_sys_large_files" != 'no'; then
9471 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9472 fi
9473 if test "$ac_cv_sys_largefile_source" != 'no'; then
9474 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9475 fi
9476fi
9477
9478
9479#
9480# Configure libtool & libltdl
9481#
9482# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009483enable_dlopen=yes
9484
9485
9486
9487case `pwd` in
9488 *\ * | *\ *)
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9490$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9491esac
9492
9493
9494
cristyda16f162011-02-19 23:52:17 +00009495macro_version='2.4'
9496macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510ltmain="$ac_aux_dir/ltmain.sh"
9511
cristy0c60a692010-11-04 01:09:47 +00009512# Backslashify metacharacters that are still active within
9513# double-quoted strings.
9514sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9515
9516# Same as above, but do not quote variable references.
9517double_quote_subst='s/\(["`\\]\)/\\\1/g'
9518
9519# Sed substitution to delay expansion of an escaped shell variable in a
9520# double_quote_subst'ed string.
9521delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9522
9523# Sed substitution to delay expansion of an escaped single quote.
9524delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9525
9526# Sed substitution to avoid accidental globbing in evaled expressions
9527no_glob_subst='s/\*/\\\*/g'
9528
cristy73bd4a52010-10-05 11:24:23 +00009529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9530$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009531if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009532 $as_echo_n "(cached) " >&6
9533else
9534 if test -n "$NM"; then
9535 # Let the user override the test.
9536 lt_cv_path_NM="$NM"
9537else
9538 lt_nm_to_check="${ac_tool_prefix}nm"
9539 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9540 lt_nm_to_check="$lt_nm_to_check nm"
9541 fi
9542 for lt_tmp_nm in $lt_nm_to_check; do
9543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9544 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9545 IFS="$lt_save_ifs"
9546 test -z "$ac_dir" && ac_dir=.
9547 tmp_nm="$ac_dir/$lt_tmp_nm"
9548 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9549 # Check to see if the nm accepts a BSD-compat flag.
9550 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9551 # nm: unknown option "B" ignored
9552 # Tru64's nm complains that /dev/null is an invalid object file
9553 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9554 */dev/null* | *'Invalid file or object type'*)
9555 lt_cv_path_NM="$tmp_nm -B"
9556 break
9557 ;;
9558 *)
9559 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9560 */dev/null*)
9561 lt_cv_path_NM="$tmp_nm -p"
9562 break
9563 ;;
9564 *)
9565 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9566 continue # so that we can try to find one that supports BSD flags
9567 ;;
9568 esac
9569 ;;
9570 esac
9571 fi
9572 done
9573 IFS="$lt_save_ifs"
9574 done
9575 : ${lt_cv_path_NM=no}
9576fi
9577fi
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9579$as_echo "$lt_cv_path_NM" >&6; }
9580if test "$lt_cv_path_NM" != "no"; then
9581 NM="$lt_cv_path_NM"
9582else
9583 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009584 if test -n "$DUMPBIN"; then :
9585 # Let the user override the test.
9586 else
9587 if test -n "$ac_tool_prefix"; then
9588 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009589 do
9590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009594if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009595 $as_echo_n "(cached) " >&6
9596else
9597 if test -n "$DUMPBIN"; then
9598 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9599else
9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $PATH
9602do
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 break 2
9610 fi
9611done
9612 done
9613IFS=$as_save_IFS
9614
9615fi
9616fi
9617DUMPBIN=$ac_cv_prog_DUMPBIN
9618if test -n "$DUMPBIN"; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9620$as_echo "$DUMPBIN" >&6; }
9621else
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623$as_echo "no" >&6; }
9624fi
9625
9626
9627 test -n "$DUMPBIN" && break
9628 done
9629fi
9630if test -z "$DUMPBIN"; then
9631 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009632 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009633do
9634 # Extract the first word of "$ac_prog", so it can be a program name with args.
9635set dummy $ac_prog; ac_word=$2
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009638if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009639 $as_echo_n "(cached) " >&6
9640else
9641 if test -n "$ac_ct_DUMPBIN"; then
9642 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9643else
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9651 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656 done
9657IFS=$as_save_IFS
9658
9659fi
9660fi
9661ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9662if test -n "$ac_ct_DUMPBIN"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9664$as_echo "$ac_ct_DUMPBIN" >&6; }
9665else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
9668fi
9669
9670
9671 test -n "$ac_ct_DUMPBIN" && break
9672done
9673
9674 if test "x$ac_ct_DUMPBIN" = x; then
9675 DUMPBIN=":"
9676 else
9677 case $cross_compiling:$ac_tool_warned in
9678yes:)
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9681ac_tool_warned=yes ;;
9682esac
9683 DUMPBIN=$ac_ct_DUMPBIN
9684 fi
9685fi
9686
cristy0c60a692010-11-04 01:09:47 +00009687 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9688 *COFF*)
9689 DUMPBIN="$DUMPBIN -symbols"
9690 ;;
9691 *)
9692 DUMPBIN=:
9693 ;;
9694 esac
9695 fi
cristy73bd4a52010-10-05 11:24:23 +00009696
9697 if test "$DUMPBIN" != ":"; then
9698 NM="$DUMPBIN"
9699 fi
9700fi
9701test -z "$NM" && NM=nm
9702
9703
9704
9705
9706
9707
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9709$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009710if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009711 $as_echo_n "(cached) " >&6
9712else
9713 lt_cv_nm_interface="BSD nm"
9714 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009715 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009716 (eval "$ac_compile" 2>conftest.err)
9717 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009718 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009719 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9720 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009721 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009722 cat conftest.out >&5
9723 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9724 lt_cv_nm_interface="MS dumpbin"
9725 fi
9726 rm -f conftest*
9727fi
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9729$as_echo "$lt_cv_nm_interface" >&6; }
9730
9731# find the maximum length of command line arguments
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9733$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009734if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009735 $as_echo_n "(cached) " >&6
9736else
9737 i=0
9738 teststring="ABCD"
9739
9740 case $build_os in
9741 msdosdjgpp*)
9742 # On DJGPP, this test can blow up pretty badly due to problems in libc
9743 # (any single argument exceeding 2000 bytes causes a buffer overrun
9744 # during glob expansion). Even if it were fixed, the result of this
9745 # check would be larger than it should be.
9746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9747 ;;
9748
9749 gnu*)
9750 # Under GNU Hurd, this test is not required because there is
9751 # no limit to the length of command line arguments.
9752 # Libtool will interpret -1 as no limit whatsoever
9753 lt_cv_sys_max_cmd_len=-1;
9754 ;;
9755
9756 cygwin* | mingw* | cegcc*)
9757 # On Win9x/ME, this test blows up -- it succeeds, but takes
9758 # about 5 minutes as the teststring grows exponentially.
9759 # Worse, since 9x/ME are not pre-emptively multitasking,
9760 # you end up with a "frozen" computer, even though with patience
9761 # the test eventually succeeds (with a max line length of 256k).
9762 # Instead, let's just punt: use the minimum linelength reported by
9763 # all of the supported platforms: 8192 (on NT/2K/XP).
9764 lt_cv_sys_max_cmd_len=8192;
9765 ;;
9766
cristy0c60a692010-11-04 01:09:47 +00009767 mint*)
9768 # On MiNT this can take a long time and run out of memory.
9769 lt_cv_sys_max_cmd_len=8192;
9770 ;;
9771
cristy73bd4a52010-10-05 11:24:23 +00009772 amigaos*)
9773 # On AmigaOS with pdksh, this test takes hours, literally.
9774 # So we just punt and use a minimum line length of 8192.
9775 lt_cv_sys_max_cmd_len=8192;
9776 ;;
9777
9778 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9779 # This has been around since 386BSD, at least. Likely further.
9780 if test -x /sbin/sysctl; then
9781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9782 elif test -x /usr/sbin/sysctl; then
9783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9784 else
9785 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9786 fi
9787 # And add a safety zone
9788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9790 ;;
9791
9792 interix*)
9793 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9794 lt_cv_sys_max_cmd_len=196608
9795 ;;
9796
9797 osf*)
9798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9800 # nice to cause kernel panics so lets avoid the loop below.
9801 # First set a reasonable default.
9802 lt_cv_sys_max_cmd_len=16384
9803 #
9804 if test -x /sbin/sysconfig; then
9805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9806 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9807 esac
9808 fi
9809 ;;
9810 sco3.2v5*)
9811 lt_cv_sys_max_cmd_len=102400
9812 ;;
9813 sysv5* | sco5v6* | sysv4.2uw2*)
9814 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9815 if test -n "$kargmax"; then
9816 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9817 else
9818 lt_cv_sys_max_cmd_len=32768
9819 fi
9820 ;;
9821 *)
9822 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9823 if test -n "$lt_cv_sys_max_cmd_len"; then
9824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9826 else
9827 # Make teststring a little bigger before we do anything with it.
9828 # a 1K string should be a reasonable start.
9829 for i in 1 2 3 4 5 6 7 8 ; do
9830 teststring=$teststring$teststring
9831 done
9832 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9833 # If test is not a shell built-in, we'll probably end up computing a
9834 # maximum length that is only half of the actual maximum length, but
9835 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009836 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9837 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009838 test $i != 17 # 1/2 MB should be enough
9839 do
9840 i=`expr $i + 1`
9841 teststring=$teststring$teststring
9842 done
9843 # Only check the string length outside the loop.
9844 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9845 teststring=
9846 # Add a significant safety factor because C++ compilers can tack on
9847 # massive amounts of additional arguments before passing them to the
9848 # linker. It appears as though 1/2 is a usable value.
9849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9850 fi
9851 ;;
9852 esac
9853
9854fi
9855
9856if test -n $lt_cv_sys_max_cmd_len ; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9858$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9859else
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9861$as_echo "none" >&6; }
9862fi
9863max_cmd_len=$lt_cv_sys_max_cmd_len
9864
9865
9866
9867
9868
9869
9870: ${CP="cp -f"}
9871: ${MV="mv -f"}
9872: ${RM="rm -f"}
9873
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9875$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9876# Try some XSI features
9877xsi_shell=no
9878( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009879 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9880 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009881 && eval 'test $(( 1 + 1 )) -eq 2 \
9882 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9883 && xsi_shell=yes
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9885$as_echo "$xsi_shell" >&6; }
9886
9887
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9889$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9890lt_shell_append=no
9891( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9892 >/dev/null 2>&1 \
9893 && lt_shell_append=yes
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9895$as_echo "$lt_shell_append" >&6; }
9896
9897
9898if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9899 lt_unset=unset
9900else
9901 lt_unset=false
9902fi
9903
9904
9905
9906
9907
9908# test EBCDIC or ASCII
9909case `echo X|tr X '\101'` in
9910 A) # ASCII based system
9911 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9912 lt_SP2NL='tr \040 \012'
9913 lt_NL2SP='tr \015\012 \040\040'
9914 ;;
9915 *) # EBCDIC based system
9916 lt_SP2NL='tr \100 \n'
9917 lt_NL2SP='tr \r\n \100\100'
9918 ;;
9919esac
9920
9921
9922
9923
9924
9925
9926
9927
9928
cristyda16f162011-02-19 23:52:17 +00009929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9930$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9931if ${lt_cv_to_host_file_cmd+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933else
9934 case $host in
9935 *-*-mingw* )
9936 case $build in
9937 *-*-mingw* ) # actually msys
9938 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9939 ;;
9940 *-*-cygwin* )
9941 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9942 ;;
9943 * ) # otherwise, assume *nix
9944 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9945 ;;
9946 esac
9947 ;;
9948 *-*-cygwin* )
9949 case $build in
9950 *-*-mingw* ) # actually msys
9951 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9952 ;;
9953 *-*-cygwin* )
9954 lt_cv_to_host_file_cmd=func_convert_file_noop
9955 ;;
9956 * ) # otherwise, assume *nix
9957 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9958 ;;
9959 esac
9960 ;;
9961 * ) # unhandled hosts (and "normal" native builds)
9962 lt_cv_to_host_file_cmd=func_convert_file_noop
9963 ;;
9964esac
9965
9966fi
9967
9968to_host_file_cmd=$lt_cv_to_host_file_cmd
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9970$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9971
9972
9973
9974
9975
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9977$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9978if ${lt_cv_to_tool_file_cmd+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980else
9981 #assume ordinary cross tools, or native build.
9982lt_cv_to_tool_file_cmd=func_convert_file_noop
9983case $host in
9984 *-*-mingw* )
9985 case $build in
9986 *-*-mingw* ) # actually msys
9987 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9988 ;;
9989 esac
9990 ;;
9991esac
9992
9993fi
9994
9995to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9997$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9998
9999
10000
10001
10002
cristy73bd4a52010-10-05 11:24:23 +000010003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10004$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010005if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010006 $as_echo_n "(cached) " >&6
10007else
10008 lt_cv_ld_reload_flag='-r'
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10011$as_echo "$lt_cv_ld_reload_flag" >&6; }
10012reload_flag=$lt_cv_ld_reload_flag
10013case $reload_flag in
10014"" | " "*) ;;
10015*) reload_flag=" $reload_flag" ;;
10016esac
10017reload_cmds='$LD$reload_flag -o $output$reload_objs'
10018case $host_os in
cristyda16f162011-02-19 23:52:17 +000010019 cygwin* | mingw* | pw32* | cegcc*)
10020 if test "$GCC" != yes; then
10021 reload_cmds=false
10022 fi
10023 ;;
cristy73bd4a52010-10-05 11:24:23 +000010024 darwin*)
10025 if test "$GCC" = yes; then
10026 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10027 else
10028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10029 fi
10030 ;;
10031esac
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041if test -n "$ac_tool_prefix"; then
10042 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10043set dummy ${ac_tool_prefix}objdump; ac_word=$2
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010046if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010047 $as_echo_n "(cached) " >&6
10048else
10049 if test -n "$OBJDUMP"; then
10050 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10051else
10052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053for as_dir in $PATH
10054do
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10062 fi
10063done
10064 done
10065IFS=$as_save_IFS
10066
10067fi
10068fi
10069OBJDUMP=$ac_cv_prog_OBJDUMP
10070if test -n "$OBJDUMP"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10072$as_echo "$OBJDUMP" >&6; }
10073else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075$as_echo "no" >&6; }
10076fi
10077
10078
10079fi
10080if test -z "$ac_cv_prog_OBJDUMP"; then
10081 ac_ct_OBJDUMP=$OBJDUMP
10082 # Extract the first word of "objdump", so it can be a program name with args.
10083set dummy objdump; ac_word=$2
10084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010086if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010087 $as_echo_n "(cached) " >&6
10088else
10089 if test -n "$ac_ct_OBJDUMP"; then
10090 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10091else
10092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093for as_dir in $PATH
10094do
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10099 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 break 2
10102 fi
10103done
10104 done
10105IFS=$as_save_IFS
10106
10107fi
10108fi
10109ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10110if test -n "$ac_ct_OBJDUMP"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10112$as_echo "$ac_ct_OBJDUMP" >&6; }
10113else
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115$as_echo "no" >&6; }
10116fi
10117
10118 if test "x$ac_ct_OBJDUMP" = x; then
10119 OBJDUMP="false"
10120 else
10121 case $cross_compiling:$ac_tool_warned in
10122yes:)
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10125ac_tool_warned=yes ;;
10126esac
10127 OBJDUMP=$ac_ct_OBJDUMP
10128 fi
10129else
10130 OBJDUMP="$ac_cv_prog_OBJDUMP"
10131fi
10132
10133test -z "$OBJDUMP" && OBJDUMP=objdump
10134
10135
10136
10137
10138
10139
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10141$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010142if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010143 $as_echo_n "(cached) " >&6
10144else
10145 lt_cv_file_magic_cmd='$MAGIC_CMD'
10146lt_cv_file_magic_test_file=
10147lt_cv_deplibs_check_method='unknown'
10148# Need to set the preceding variable on all platforms that support
10149# interlibrary dependencies.
10150# 'none' -- dependencies not supported.
10151# `unknown' -- same as none, but documents that we really don't know.
10152# 'pass_all' -- all dependencies passed with no checks.
10153# 'test_compile' -- check by making test program.
10154# 'file_magic [[regex]]' -- check by looking for files in library path
10155# which responds to the $file_magic_cmd with a given extended regex.
10156# If you have `file' or equivalent on your system and you're not sure
10157# whether `pass_all' will *always* work, you probably want this one.
10158
10159case $host_os in
10160aix[4-9]*)
10161 lt_cv_deplibs_check_method=pass_all
10162 ;;
10163
10164beos*)
10165 lt_cv_deplibs_check_method=pass_all
10166 ;;
10167
10168bsdi[45]*)
10169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10170 lt_cv_file_magic_cmd='/usr/bin/file -L'
10171 lt_cv_file_magic_test_file=/shlib/libc.so
10172 ;;
10173
10174cygwin*)
10175 # func_win32_libid is a shell function defined in ltmain.sh
10176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10177 lt_cv_file_magic_cmd='func_win32_libid'
10178 ;;
10179
10180mingw* | pw32*)
10181 # Base MSYS/MinGW do not provide the 'file' command needed by
10182 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10183 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010184 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10185 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10187 lt_cv_file_magic_cmd='func_win32_libid'
10188 else
cristy0c60a692010-11-04 01:09:47 +000010189 # Keep this pattern in sync with the one in func_win32_libid.
10190 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 +000010191 lt_cv_file_magic_cmd='$OBJDUMP -f'
10192 fi
10193 ;;
10194
cristy0c60a692010-11-04 01:09:47 +000010195cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010196 # use the weaker test based on 'objdump'. See mingw*.
10197 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10198 lt_cv_file_magic_cmd='$OBJDUMP -f'
10199 ;;
10200
10201darwin* | rhapsody*)
10202 lt_cv_deplibs_check_method=pass_all
10203 ;;
10204
10205freebsd* | dragonfly*)
10206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10207 case $host_cpu in
10208 i*86 )
10209 # Not sure whether the presence of OpenBSD here was a mistake.
10210 # Let's accept both of them until this is cleared up.
10211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10212 lt_cv_file_magic_cmd=/usr/bin/file
10213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10214 ;;
10215 esac
10216 else
10217 lt_cv_deplibs_check_method=pass_all
10218 fi
10219 ;;
10220
10221gnu*)
10222 lt_cv_deplibs_check_method=pass_all
10223 ;;
10224
cristy0c60a692010-11-04 01:09:47 +000010225haiku*)
10226 lt_cv_deplibs_check_method=pass_all
10227 ;;
10228
cristy73bd4a52010-10-05 11:24:23 +000010229hpux10.20* | hpux11*)
10230 lt_cv_file_magic_cmd=/usr/bin/file
10231 case $host_cpu in
10232 ia64*)
10233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10235 ;;
10236 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010237 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 +000010238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10239 ;;
10240 *)
cristy0c60a692010-11-04 01:09:47 +000010241 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 +000010242 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10243 ;;
10244 esac
10245 ;;
10246
10247interix[3-9]*)
10248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10250 ;;
10251
10252irix5* | irix6* | nonstopux*)
10253 case $LD in
10254 *-32|*"-32 ") libmagic=32-bit;;
10255 *-n32|*"-n32 ") libmagic=N32;;
10256 *-64|*"-64 ") libmagic=64-bit;;
10257 *) libmagic=never-match;;
10258 esac
10259 lt_cv_deplibs_check_method=pass_all
10260 ;;
10261
10262# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010263linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010264 lt_cv_deplibs_check_method=pass_all
10265 ;;
10266
10267netbsd*)
10268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10270 else
10271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10272 fi
10273 ;;
10274
10275newos6*)
10276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10277 lt_cv_file_magic_cmd=/usr/bin/file
10278 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10279 ;;
10280
10281*nto* | *qnx*)
10282 lt_cv_deplibs_check_method=pass_all
10283 ;;
10284
10285openbsd*)
10286 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10288 else
10289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10290 fi
10291 ;;
10292
10293osf3* | osf4* | osf5*)
10294 lt_cv_deplibs_check_method=pass_all
10295 ;;
10296
10297rdos*)
10298 lt_cv_deplibs_check_method=pass_all
10299 ;;
10300
10301solaris*)
10302 lt_cv_deplibs_check_method=pass_all
10303 ;;
10304
10305sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10306 lt_cv_deplibs_check_method=pass_all
10307 ;;
10308
10309sysv4 | sysv4.3*)
10310 case $host_vendor in
10311 motorola)
10312 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]'
10313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10314 ;;
10315 ncr)
10316 lt_cv_deplibs_check_method=pass_all
10317 ;;
10318 sequent)
10319 lt_cv_file_magic_cmd='/bin/file'
10320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10321 ;;
10322 sni)
10323 lt_cv_file_magic_cmd='/bin/file'
10324 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10325 lt_cv_file_magic_test_file=/lib/libc.so
10326 ;;
10327 siemens)
10328 lt_cv_deplibs_check_method=pass_all
10329 ;;
10330 pc)
10331 lt_cv_deplibs_check_method=pass_all
10332 ;;
10333 esac
10334 ;;
10335
10336tpf*)
10337 lt_cv_deplibs_check_method=pass_all
10338 ;;
10339esac
10340
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10343$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010344
10345file_magic_glob=
10346want_nocaseglob=no
10347if test "$build" = "$host"; then
10348 case $host_os in
10349 mingw* | pw32*)
10350 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10351 want_nocaseglob=yes
10352 else
10353 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10354 fi
10355 ;;
10356 esac
10357fi
10358
cristy73bd4a52010-10-05 11:24:23 +000010359file_magic_cmd=$lt_cv_file_magic_cmd
10360deplibs_check_method=$lt_cv_deplibs_check_method
10361test -z "$deplibs_check_method" && deplibs_check_method=unknown
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
cristyda16f162011-02-19 23:52:17 +000010374
10375
10376
10377
10378
10379
10380
10381
10382
10383
cristy73bd4a52010-10-05 11:24:23 +000010384if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010385 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10386set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010389if ${ac_cv_prog_DLLTOOL+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391else
10392 if test -n "$DLLTOOL"; then
10393 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10394else
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406done
10407 done
10408IFS=$as_save_IFS
10409
10410fi
10411fi
10412DLLTOOL=$ac_cv_prog_DLLTOOL
10413if test -n "$DLLTOOL"; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10415$as_echo "$DLLTOOL" >&6; }
10416else
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418$as_echo "no" >&6; }
10419fi
10420
10421
10422fi
10423if test -z "$ac_cv_prog_DLLTOOL"; then
10424 ac_ct_DLLTOOL=$DLLTOOL
10425 # Extract the first word of "dlltool", so it can be a program name with args.
10426set dummy dlltool; ac_word=$2
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428$as_echo_n "checking for $ac_word... " >&6; }
10429if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431else
10432 if test -n "$ac_ct_DLLTOOL"; then
10433 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10434else
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10445 fi
10446done
10447 done
10448IFS=$as_save_IFS
10449
10450fi
10451fi
10452ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10453if test -n "$ac_ct_DLLTOOL"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10455$as_echo "$ac_ct_DLLTOOL" >&6; }
10456else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458$as_echo "no" >&6; }
10459fi
10460
10461 if test "x$ac_ct_DLLTOOL" = x; then
10462 DLLTOOL="false"
10463 else
10464 case $cross_compiling:$ac_tool_warned in
10465yes:)
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10468ac_tool_warned=yes ;;
10469esac
10470 DLLTOOL=$ac_ct_DLLTOOL
10471 fi
10472else
10473 DLLTOOL="$ac_cv_prog_DLLTOOL"
10474fi
10475
10476test -z "$DLLTOOL" && DLLTOOL=dlltool
10477
10478
10479
10480
10481
10482
10483
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10485$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10486if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10487 $as_echo_n "(cached) " >&6
10488else
10489 lt_cv_sharedlib_from_linklib_cmd='unknown'
10490
10491case $host_os in
10492cygwin* | mingw* | pw32* | cegcc*)
10493 # two different shell functions defined in ltmain.sh
10494 # decide which to use based on capabilities of $DLLTOOL
10495 case `$DLLTOOL --help 2>&1` in
10496 *--identify-strict*)
10497 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10498 ;;
10499 *)
10500 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10501 ;;
10502 esac
10503 ;;
10504*)
10505 # fallback: assume linklib IS sharedlib
10506 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10507 ;;
10508esac
10509
10510fi
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10512$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10513sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10514test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10515
10516
10517
10518
10519
10520
10521
10522if test -n "$ac_tool_prefix"; then
10523 for ac_prog in ar
10524 do
10525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10526set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528$as_echo_n "checking for $ac_word... " >&6; }
10529if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010530 $as_echo_n "(cached) " >&6
10531else
10532 if test -n "$AR"; then
10533 ac_cv_prog_AR="$AR" # Let the user override the test.
10534else
10535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536for as_dir in $PATH
10537do
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 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 +000010542 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10545 fi
10546done
10547 done
10548IFS=$as_save_IFS
10549
10550fi
10551fi
10552AR=$ac_cv_prog_AR
10553if test -n "$AR"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10555$as_echo "$AR" >&6; }
10556else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558$as_echo "no" >&6; }
10559fi
10560
10561
cristyda16f162011-02-19 23:52:17 +000010562 test -n "$AR" && break
10563 done
cristy73bd4a52010-10-05 11:24:23 +000010564fi
cristyda16f162011-02-19 23:52:17 +000010565if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010566 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010567 for ac_prog in ar
10568do
10569 # Extract the first word of "$ac_prog", so it can be a program name with args.
10570set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010573if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010574 $as_echo_n "(cached) " >&6
10575else
10576 if test -n "$ac_ct_AR"; then
10577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10578else
10579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580for as_dir in $PATH
10581do
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 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 +000010586 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 break 2
10589 fi
10590done
10591 done
10592IFS=$as_save_IFS
10593
10594fi
10595fi
10596ac_ct_AR=$ac_cv_prog_ac_ct_AR
10597if test -n "$ac_ct_AR"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10599$as_echo "$ac_ct_AR" >&6; }
10600else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602$as_echo "no" >&6; }
10603fi
10604
cristyda16f162011-02-19 23:52:17 +000010605
10606 test -n "$ac_ct_AR" && break
10607done
10608
cristy73bd4a52010-10-05 11:24:23 +000010609 if test "x$ac_ct_AR" = x; then
10610 AR="false"
10611 else
10612 case $cross_compiling:$ac_tool_warned in
10613yes:)
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10616ac_tool_warned=yes ;;
10617esac
10618 AR=$ac_ct_AR
10619 fi
cristy73bd4a52010-10-05 11:24:23 +000010620fi
10621
cristyda16f162011-02-19 23:52:17 +000010622: ${AR=ar}
10623: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
cristyda16f162011-02-19 23:52:17 +000010635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10636$as_echo_n "checking for archiver @FILE support... " >&6; }
10637if ${lt_cv_ar_at_file+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639else
10640 lt_cv_ar_at_file=no
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642/* end confdefs.h. */
10643
10644int
10645main ()
10646{
10647
10648 ;
10649 return 0;
10650}
10651_ACEOF
10652if ac_fn_c_try_compile "$LINENO"; then :
10653 echo conftest.$ac_objext > conftest.lst
10654 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
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" -eq 0; then
10661 # Ensure the archiver fails upon bogus file names.
10662 rm -f conftest.$ac_objext libconftest.a
10663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10664 (eval $lt_ar_try) 2>&5
10665 ac_status=$?
10666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10667 test $ac_status = 0; }
10668 if test "$ac_status" -ne 0; then
10669 lt_cv_ar_at_file=@
10670 fi
10671 fi
10672 rm -f conftest.* libconftest.a
10673
10674fi
10675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676
10677fi
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10679$as_echo "$lt_cv_ar_at_file" >&6; }
10680
10681if test "x$lt_cv_ar_at_file" = xno; then
10682 archiver_list_spec=
10683else
10684 archiver_list_spec=$lt_cv_ar_at_file
10685fi
10686
10687
10688
10689
10690
10691
10692
cristy73bd4a52010-10-05 11:24:23 +000010693if test -n "$ac_tool_prefix"; then
10694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10695set dummy ${ac_tool_prefix}strip; ac_word=$2
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010698if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010699 $as_echo_n "(cached) " >&6
10700else
10701 if test -n "$STRIP"; then
10702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10703else
10704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705for as_dir in $PATH
10706do
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10714 fi
10715done
10716 done
10717IFS=$as_save_IFS
10718
10719fi
10720fi
10721STRIP=$ac_cv_prog_STRIP
10722if test -n "$STRIP"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10724$as_echo "$STRIP" >&6; }
10725else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727$as_echo "no" >&6; }
10728fi
10729
10730
10731fi
10732if test -z "$ac_cv_prog_STRIP"; then
10733 ac_ct_STRIP=$STRIP
10734 # Extract the first word of "strip", so it can be a program name with args.
10735set dummy strip; ac_word=$2
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010738if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010739 $as_echo_n "(cached) " >&6
10740else
10741 if test -n "$ac_ct_STRIP"; then
10742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10743else
10744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $PATH
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10751 ac_cv_prog_ac_ct_STRIP="strip"
10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 break 2
10754 fi
10755done
10756 done
10757IFS=$as_save_IFS
10758
10759fi
10760fi
10761ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10762if test -n "$ac_ct_STRIP"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10764$as_echo "$ac_ct_STRIP" >&6; }
10765else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; }
10768fi
10769
10770 if test "x$ac_ct_STRIP" = x; then
10771 STRIP=":"
10772 else
10773 case $cross_compiling:$ac_tool_warned in
10774yes:)
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10777ac_tool_warned=yes ;;
10778esac
10779 STRIP=$ac_ct_STRIP
10780 fi
10781else
10782 STRIP="$ac_cv_prog_STRIP"
10783fi
10784
10785test -z "$STRIP" && STRIP=:
10786
10787
10788
10789
10790
10791
10792if test -n "$ac_tool_prefix"; then
10793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10794set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010797if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010798 $as_echo_n "(cached) " >&6
10799else
10800 if test -n "$RANLIB"; then
10801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10802else
10803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804for as_dir in $PATH
10805do
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 break 2
10813 fi
10814done
10815 done
10816IFS=$as_save_IFS
10817
10818fi
10819fi
10820RANLIB=$ac_cv_prog_RANLIB
10821if test -n "$RANLIB"; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10823$as_echo "$RANLIB" >&6; }
10824else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826$as_echo "no" >&6; }
10827fi
10828
10829
10830fi
10831if test -z "$ac_cv_prog_RANLIB"; then
10832 ac_ct_RANLIB=$RANLIB
10833 # Extract the first word of "ranlib", so it can be a program name with args.
10834set dummy ranlib; ac_word=$2
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010837if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010838 $as_echo_n "(cached) " >&6
10839else
10840 if test -n "$ac_ct_RANLIB"; then
10841 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10842else
10843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844for as_dir in $PATH
10845do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850 ac_cv_prog_ac_ct_RANLIB="ranlib"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10853 fi
10854done
10855 done
10856IFS=$as_save_IFS
10857
10858fi
10859fi
10860ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10861if test -n "$ac_ct_RANLIB"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10863$as_echo "$ac_ct_RANLIB" >&6; }
10864else
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866$as_echo "no" >&6; }
10867fi
10868
10869 if test "x$ac_ct_RANLIB" = x; then
10870 RANLIB=":"
10871 else
10872 case $cross_compiling:$ac_tool_warned in
10873yes:)
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10876ac_tool_warned=yes ;;
10877esac
10878 RANLIB=$ac_ct_RANLIB
10879 fi
10880else
10881 RANLIB="$ac_cv_prog_RANLIB"
10882fi
10883
10884test -z "$RANLIB" && RANLIB=:
10885
10886
10887
10888
10889
10890
10891# Determine commands to create old-style static archives.
10892old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10893old_postinstall_cmds='chmod 644 $oldlib'
10894old_postuninstall_cmds=
10895
10896if test -n "$RANLIB"; then
10897 case $host_os in
10898 openbsd*)
10899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10900 ;;
10901 *)
10902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10903 ;;
10904 esac
10905 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10906fi
10907
cristy0c60a692010-11-04 01:09:47 +000010908case $host_os in
10909 darwin*)
10910 lock_old_archive_extraction=yes ;;
10911 *)
10912 lock_old_archive_extraction=no ;;
10913esac
10914
10915
10916
10917
10918
10919
cristy73bd4a52010-10-05 11:24:23 +000010920
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
10946
10947
10948
10949
10950
10951
10952
10953# If no C compiler was specified, use CC.
10954LTCC=${LTCC-"$CC"}
10955
10956# If no C compiler flags were specified, use CFLAGS.
10957LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10958
10959# Allow CC to be a program name with arguments.
10960compiler=$CC
10961
10962
10963# Check for command to grab the raw symbol name followed by C symbol from nm.
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10965$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010966if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010967 $as_echo_n "(cached) " >&6
10968else
10969
10970# These are sane defaults that work on at least a few old systems.
10971# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10972
10973# Character class describing NM global symbol codes.
10974symcode='[BCDEGRST]'
10975
10976# Regexp to match symbols that can be accessed directly from C.
10977sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10978
10979# Define system-specific variables.
10980case $host_os in
10981aix*)
10982 symcode='[BCDT]'
10983 ;;
10984cygwin* | mingw* | pw32* | cegcc*)
10985 symcode='[ABCDGISTW]'
10986 ;;
10987hpux*)
10988 if test "$host_cpu" = ia64; then
10989 symcode='[ABCDEGRST]'
10990 fi
10991 ;;
10992irix* | nonstopux*)
10993 symcode='[BCDEGRST]'
10994 ;;
10995osf*)
10996 symcode='[BCDEGQRST]'
10997 ;;
10998solaris*)
10999 symcode='[BDRT]'
11000 ;;
11001sco3.2v5*)
11002 symcode='[DT]'
11003 ;;
11004sysv4.2uw2*)
11005 symcode='[DT]'
11006 ;;
11007sysv5* | sco5v6* | unixware* | OpenUNIX*)
11008 symcode='[ABDT]'
11009 ;;
11010sysv4)
11011 symcode='[DFNSTU]'
11012 ;;
11013esac
11014
11015# If we're using GNU nm, then use its standard symbol codes.
11016case `$NM -V 2>&1` in
11017*GNU* | *'with BFD'*)
11018 symcode='[ABCDGIRSTW]' ;;
11019esac
11020
11021# Transform an extracted symbol line into a proper C declaration.
11022# Some systems (esp. on ia64) link data and code symbols differently,
11023# so use this general approach.
11024lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11025
11026# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011027lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11028lt_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 +000011029
11030# Handle CRLF in mingw tool chain
11031opt_cr=
11032case $build_os in
11033mingw*)
11034 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11035 ;;
11036esac
11037
11038# Try without a prefix underscore, then with it.
11039for ac_symprfx in "" "_"; do
11040
11041 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11042 symxfrm="\\1 $ac_symprfx\\2 \\2"
11043
11044 # Write the raw and C identifiers.
11045 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11046 # Fake it for dumpbin and say T for any non-static function
11047 # and D for any global variable.
11048 # Also find C++ and __fastcall symbols from MSVC++,
11049 # which start with @ or ?.
11050 lt_cv_sys_global_symbol_pipe="$AWK '"\
11051" {last_section=section; section=\$ 3};"\
11052" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11053" \$ 0!~/External *\|/{next};"\
11054" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11055" {if(hide[section]) next};"\
11056" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11057" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11058" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11059" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11060" ' prfx=^$ac_symprfx"
11061 else
11062 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11063 fi
cristyda16f162011-02-19 23:52:17 +000011064 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011065
11066 # Check to see that the pipe works correctly.
11067 pipe_works=no
11068
11069 rm -f conftest*
11070 cat > conftest.$ac_ext <<_LT_EOF
11071#ifdef __cplusplus
11072extern "C" {
11073#endif
11074char nm_test_var;
11075void nm_test_func(void);
11076void nm_test_func(void){}
11077#ifdef __cplusplus
11078}
11079#endif
11080int main(){nm_test_var='a';nm_test_func();return(0);}
11081_LT_EOF
11082
11083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11084 (eval $ac_compile) 2>&5
11085 ac_status=$?
11086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11087 test $ac_status = 0; }; then
11088 # Now try to grab the symbols.
11089 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11091 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011092 ac_status=$?
11093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11094 test $ac_status = 0; } && test -s "$nlist"; then
11095 # Try sorting and uniquifying the output.
11096 if sort "$nlist" | uniq > "$nlist"T; then
11097 mv -f "$nlist"T "$nlist"
11098 else
11099 rm -f "$nlist"T
11100 fi
11101
11102 # Make sure that we snagged all the symbols we need.
11103 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11104 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11105 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011106/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11107#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11108/* DATA imports from DLLs on WIN32 con't be const, because runtime
11109 relocations are performed -- see ld's documentation on pseudo-relocs. */
11110# define LT_DLSYM_CONST
11111#elif defined(__osf__)
11112/* This system does not cope well with relocations in const data. */
11113# define LT_DLSYM_CONST
11114#else
11115# define LT_DLSYM_CONST const
11116#endif
11117
cristy73bd4a52010-10-05 11:24:23 +000011118#ifdef __cplusplus
11119extern "C" {
11120#endif
11121
11122_LT_EOF
11123 # Now generate the symbol file.
11124 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11125
11126 cat <<_LT_EOF >> conftest.$ac_ext
11127
11128/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011129LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011130 const char *name;
11131 void *address;
11132}
11133lt__PROGRAM__LTX_preloaded_symbols[] =
11134{
11135 { "@PROGRAM@", (void *) 0 },
11136_LT_EOF
11137 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11138 cat <<\_LT_EOF >> conftest.$ac_ext
11139 {0, (void *) 0}
11140};
11141
11142/* This works around a problem in FreeBSD linker */
11143#ifdef FREEBSD_WORKAROUND
11144static const void *lt_preloaded_setup() {
11145 return lt__PROGRAM__LTX_preloaded_symbols;
11146}
11147#endif
11148
11149#ifdef __cplusplus
11150}
11151#endif
11152_LT_EOF
11153 # Now try linking the two files.
11154 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011155 lt_globsym_save_LIBS=$LIBS
11156 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011157 LIBS="conftstm.$ac_objext"
11158 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11160 (eval $ac_link) 2>&5
11161 ac_status=$?
11162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11163 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11164 pipe_works=yes
11165 fi
cristyda16f162011-02-19 23:52:17 +000011166 LIBS=$lt_globsym_save_LIBS
11167 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011168 else
11169 echo "cannot find nm_test_func in $nlist" >&5
11170 fi
11171 else
11172 echo "cannot find nm_test_var in $nlist" >&5
11173 fi
11174 else
11175 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11176 fi
11177 else
11178 echo "$progname: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11180 fi
11181 rm -rf conftest* conftst*
11182
11183 # Do not use the global_symbol_pipe unless it works.
11184 if test "$pipe_works" = yes; then
11185 break
11186 else
11187 lt_cv_sys_global_symbol_pipe=
11188 fi
11189done
11190
11191fi
11192
11193if test -z "$lt_cv_sys_global_symbol_pipe"; then
11194 lt_cv_sys_global_symbol_to_cdecl=
11195fi
11196if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11198$as_echo "failed" >&6; }
11199else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11201$as_echo "ok" >&6; }
11202fi
11203
cristyda16f162011-02-19 23:52:17 +000011204# Response file support.
11205if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11206 nm_file_list_spec='@'
11207elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11208 nm_file_list_spec='@'
11209fi
cristy73bd4a52010-10-05 11:24:23 +000011210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
cristyda16f162011-02-19 23:52:17 +000011231
11232
11233
11234
11235
11236
11237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11238$as_echo_n "checking for sysroot... " >&6; }
11239
11240# Check whether --with-sysroot was given.
11241if test "${with_sysroot+set}" = set; then :
11242 withval=$with_sysroot;
11243else
11244 with_sysroot=no
11245fi
11246
11247
11248lt_sysroot=
11249case ${with_sysroot} in #(
11250 yes)
11251 if test "$GCC" = yes; then
11252 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11253 fi
11254 ;; #(
11255 /*)
11256 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11257 ;; #(
11258 no|'')
11259 ;; #(
11260 *)
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11262$as_echo "${with_sysroot}" >&6; }
11263 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11264 ;;
11265esac
11266
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11268$as_echo "${lt_sysroot:-no}" >&6; }
11269
11270
11271
11272
11273
cristy73bd4a52010-10-05 11:24:23 +000011274# Check whether --enable-libtool-lock was given.
11275if test "${enable_libtool_lock+set}" = set; then :
11276 enableval=$enable_libtool_lock;
11277fi
11278
11279test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11280
11281# Some flags need to be propagated to the compiler or linker for good
11282# libtool support.
11283case $host in
11284ia64-*-hpux*)
11285 # Find out which ABI we are using.
11286 echo 'int i;' > conftest.$ac_ext
11287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11288 (eval $ac_compile) 2>&5
11289 ac_status=$?
11290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291 test $ac_status = 0; }; then
11292 case `/usr/bin/file conftest.$ac_objext` in
11293 *ELF-32*)
11294 HPUX_IA64_MODE="32"
11295 ;;
11296 *ELF-64*)
11297 HPUX_IA64_MODE="64"
11298 ;;
11299 esac
11300 fi
11301 rm -rf conftest*
11302 ;;
11303*-*-irix6*)
11304 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011305 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11307 (eval $ac_compile) 2>&5
11308 ac_status=$?
11309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11310 test $ac_status = 0; }; then
11311 if test "$lt_cv_prog_gnu_ld" = yes; then
11312 case `/usr/bin/file conftest.$ac_objext` in
11313 *32-bit*)
11314 LD="${LD-ld} -melf32bsmip"
11315 ;;
11316 *N32*)
11317 LD="${LD-ld} -melf32bmipn32"
11318 ;;
11319 *64-bit*)
11320 LD="${LD-ld} -melf64bmip"
11321 ;;
11322 esac
11323 else
11324 case `/usr/bin/file conftest.$ac_objext` in
11325 *32-bit*)
11326 LD="${LD-ld} -32"
11327 ;;
11328 *N32*)
11329 LD="${LD-ld} -n32"
11330 ;;
11331 *64-bit*)
11332 LD="${LD-ld} -64"
11333 ;;
11334 esac
11335 fi
11336 fi
11337 rm -rf conftest*
11338 ;;
11339
11340x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11341s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11342 # Find out which ABI we are using.
11343 echo 'int i;' > conftest.$ac_ext
11344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11345 (eval $ac_compile) 2>&5
11346 ac_status=$?
11347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11348 test $ac_status = 0; }; then
11349 case `/usr/bin/file conftest.o` in
11350 *32-bit*)
11351 case $host in
11352 x86_64-*kfreebsd*-gnu)
11353 LD="${LD-ld} -m elf_i386_fbsd"
11354 ;;
11355 x86_64-*linux*)
11356 LD="${LD-ld} -m elf_i386"
11357 ;;
11358 ppc64-*linux*|powerpc64-*linux*)
11359 LD="${LD-ld} -m elf32ppclinux"
11360 ;;
11361 s390x-*linux*)
11362 LD="${LD-ld} -m elf_s390"
11363 ;;
11364 sparc64-*linux*)
11365 LD="${LD-ld} -m elf32_sparc"
11366 ;;
11367 esac
11368 ;;
11369 *64-bit*)
11370 case $host in
11371 x86_64-*kfreebsd*-gnu)
11372 LD="${LD-ld} -m elf_x86_64_fbsd"
11373 ;;
11374 x86_64-*linux*)
11375 LD="${LD-ld} -m elf_x86_64"
11376 ;;
11377 ppc*-*linux*|powerpc*-*linux*)
11378 LD="${LD-ld} -m elf64ppc"
11379 ;;
11380 s390*-*linux*|s390*-*tpf*)
11381 LD="${LD-ld} -m elf64_s390"
11382 ;;
11383 sparc*-*linux*)
11384 LD="${LD-ld} -m elf64_sparc"
11385 ;;
11386 esac
11387 ;;
11388 esac
11389 fi
11390 rm -rf conftest*
11391 ;;
11392
11393*-*-sco3.2v5*)
11394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11395 SAVE_CFLAGS="$CFLAGS"
11396 CFLAGS="$CFLAGS -belf"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11398$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011399if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011400 $as_echo_n "(cached) " >&6
11401else
11402 ac_ext=c
11403ac_cpp='$CPP $CPPFLAGS'
11404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11406ac_compiler_gnu=$ac_cv_c_compiler_gnu
11407
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h. */
11410
11411int
11412main ()
11413{
11414
11415 ;
11416 return 0;
11417}
11418_ACEOF
11419if ac_fn_c_try_link "$LINENO"; then :
11420 lt_cv_cc_needs_belf=yes
11421else
11422 lt_cv_cc_needs_belf=no
11423fi
11424rm -f core conftest.err conftest.$ac_objext \
11425 conftest$ac_exeext conftest.$ac_ext
11426 ac_ext=c
11427ac_cpp='$CPP $CPPFLAGS'
11428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430ac_compiler_gnu=$ac_cv_c_compiler_gnu
11431
11432fi
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11434$as_echo "$lt_cv_cc_needs_belf" >&6; }
11435 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11436 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11437 CFLAGS="$SAVE_CFLAGS"
11438 fi
11439 ;;
11440sparc*-*solaris*)
11441 # Find out which ABI we are using.
11442 echo 'int i;' > conftest.$ac_ext
11443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11444 (eval $ac_compile) 2>&5
11445 ac_status=$?
11446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447 test $ac_status = 0; }; then
11448 case `/usr/bin/file conftest.o` in
11449 *64-bit*)
11450 case $lt_cv_prog_gnu_ld in
11451 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11452 *)
11453 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11454 LD="${LD-ld} -64"
11455 fi
11456 ;;
11457 esac
11458 ;;
11459 esac
11460 fi
11461 rm -rf conftest*
11462 ;;
11463esac
11464
11465need_locks="$enable_libtool_lock"
11466
cristyda16f162011-02-19 23:52:17 +000011467if test -n "$ac_tool_prefix"; then
11468 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11469set dummy ${ac_tool_prefix}mt; ac_word=$2
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
11472if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474else
11475 if test -n "$MANIFEST_TOOL"; then
11476 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11477else
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11488 fi
11489done
11490 done
11491IFS=$as_save_IFS
11492
11493fi
11494fi
11495MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11496if test -n "$MANIFEST_TOOL"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11498$as_echo "$MANIFEST_TOOL" >&6; }
11499else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
11502fi
11503
11504
11505fi
11506if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11507 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11508 # Extract the first word of "mt", so it can be a program name with args.
11509set dummy mt; ac_word=$2
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511$as_echo_n "checking for $ac_word... " >&6; }
11512if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514else
11515 if test -n "$ac_ct_MANIFEST_TOOL"; then
11516 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11517else
11518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519for as_dir in $PATH
11520do
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11525 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11528 fi
11529done
11530 done
11531IFS=$as_save_IFS
11532
11533fi
11534fi
11535ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11536if test -n "$ac_ct_MANIFEST_TOOL"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11538$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11539else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541$as_echo "no" >&6; }
11542fi
11543
11544 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11545 MANIFEST_TOOL=":"
11546 else
11547 case $cross_compiling:$ac_tool_warned in
11548yes:)
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11551ac_tool_warned=yes ;;
11552esac
11553 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11554 fi
11555else
11556 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11557fi
11558
11559test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11561$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11562if ${lt_cv_path_mainfest_tool+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564else
11565 lt_cv_path_mainfest_tool=no
11566 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11567 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11568 cat conftest.err >&5
11569 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11570 lt_cv_path_mainfest_tool=yes
11571 fi
11572 rm -f conftest*
11573fi
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11575$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11576if test "x$lt_cv_path_mainfest_tool" != xyes; then
11577 MANIFEST_TOOL=:
11578fi
11579
11580
11581
11582
11583
cristy73bd4a52010-10-05 11:24:23 +000011584
11585 case $host_os in
11586 rhapsody* | darwin*)
11587 if test -n "$ac_tool_prefix"; then
11588 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11589set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011592if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011593 $as_echo_n "(cached) " >&6
11594else
11595 if test -n "$DSYMUTIL"; then
11596 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11597else
11598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599for as_dir in $PATH
11600do
11601 IFS=$as_save_IFS
11602 test -z "$as_dir" && as_dir=.
11603 for ac_exec_ext in '' $ac_executable_extensions; do
11604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11605 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11607 break 2
11608 fi
11609done
11610 done
11611IFS=$as_save_IFS
11612
11613fi
11614fi
11615DSYMUTIL=$ac_cv_prog_DSYMUTIL
11616if test -n "$DSYMUTIL"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11618$as_echo "$DSYMUTIL" >&6; }
11619else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
11622fi
11623
11624
11625fi
11626if test -z "$ac_cv_prog_DSYMUTIL"; then
11627 ac_ct_DSYMUTIL=$DSYMUTIL
11628 # Extract the first word of "dsymutil", so it can be a program name with args.
11629set dummy dsymutil; ac_word=$2
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011632if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011633 $as_echo_n "(cached) " >&6
11634else
11635 if test -n "$ac_ct_DSYMUTIL"; then
11636 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11637else
11638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639for as_dir in $PATH
11640do
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11648 fi
11649done
11650 done
11651IFS=$as_save_IFS
11652
11653fi
11654fi
11655ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11656if test -n "$ac_ct_DSYMUTIL"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11658$as_echo "$ac_ct_DSYMUTIL" >&6; }
11659else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
11662fi
11663
11664 if test "x$ac_ct_DSYMUTIL" = x; then
11665 DSYMUTIL=":"
11666 else
11667 case $cross_compiling:$ac_tool_warned in
11668yes:)
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11671ac_tool_warned=yes ;;
11672esac
11673 DSYMUTIL=$ac_ct_DSYMUTIL
11674 fi
11675else
11676 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11677fi
11678
11679 if test -n "$ac_tool_prefix"; then
11680 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11681set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011684if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011685 $as_echo_n "(cached) " >&6
11686else
11687 if test -n "$NMEDIT"; then
11688 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11689else
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
11692do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11697 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11700 fi
11701done
11702 done
11703IFS=$as_save_IFS
11704
11705fi
11706fi
11707NMEDIT=$ac_cv_prog_NMEDIT
11708if test -n "$NMEDIT"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11710$as_echo "$NMEDIT" >&6; }
11711else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
11714fi
11715
11716
11717fi
11718if test -z "$ac_cv_prog_NMEDIT"; then
11719 ac_ct_NMEDIT=$NMEDIT
11720 # Extract the first word of "nmedit", so it can be a program name with args.
11721set dummy nmedit; ac_word=$2
11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011724if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011725 $as_echo_n "(cached) " >&6
11726else
11727 if test -n "$ac_ct_NMEDIT"; then
11728 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11729else
11730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731for as_dir in $PATH
11732do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11737 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11740 fi
11741done
11742 done
11743IFS=$as_save_IFS
11744
11745fi
11746fi
11747ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11748if test -n "$ac_ct_NMEDIT"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11750$as_echo "$ac_ct_NMEDIT" >&6; }
11751else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
11754fi
11755
11756 if test "x$ac_ct_NMEDIT" = x; then
11757 NMEDIT=":"
11758 else
11759 case $cross_compiling:$ac_tool_warned in
11760yes:)
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11763ac_tool_warned=yes ;;
11764esac
11765 NMEDIT=$ac_ct_NMEDIT
11766 fi
11767else
11768 NMEDIT="$ac_cv_prog_NMEDIT"
11769fi
11770
11771 if test -n "$ac_tool_prefix"; then
11772 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11773set dummy ${ac_tool_prefix}lipo; ac_word=$2
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011776if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011777 $as_echo_n "(cached) " >&6
11778else
11779 if test -n "$LIPO"; then
11780 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11781else
11782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783for as_dir in $PATH
11784do
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11789 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11792 fi
11793done
11794 done
11795IFS=$as_save_IFS
11796
11797fi
11798fi
11799LIPO=$ac_cv_prog_LIPO
11800if test -n "$LIPO"; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11802$as_echo "$LIPO" >&6; }
11803else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805$as_echo "no" >&6; }
11806fi
11807
11808
11809fi
11810if test -z "$ac_cv_prog_LIPO"; then
11811 ac_ct_LIPO=$LIPO
11812 # Extract the first word of "lipo", so it can be a program name with args.
11813set dummy lipo; ac_word=$2
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011816if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011817 $as_echo_n "(cached) " >&6
11818else
11819 if test -n "$ac_ct_LIPO"; then
11820 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11821else
11822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823for as_dir in $PATH
11824do
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11829 ac_cv_prog_ac_ct_LIPO="lipo"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11832 fi
11833done
11834 done
11835IFS=$as_save_IFS
11836
11837fi
11838fi
11839ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11840if test -n "$ac_ct_LIPO"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11842$as_echo "$ac_ct_LIPO" >&6; }
11843else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
11846fi
11847
11848 if test "x$ac_ct_LIPO" = x; then
11849 LIPO=":"
11850 else
11851 case $cross_compiling:$ac_tool_warned in
11852yes:)
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11855ac_tool_warned=yes ;;
11856esac
11857 LIPO=$ac_ct_LIPO
11858 fi
11859else
11860 LIPO="$ac_cv_prog_LIPO"
11861fi
11862
11863 if test -n "$ac_tool_prefix"; then
11864 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11865set dummy ${ac_tool_prefix}otool; ac_word=$2
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011868if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011869 $as_echo_n "(cached) " >&6
11870else
11871 if test -n "$OTOOL"; then
11872 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11873else
11874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875for as_dir in $PATH
11876do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11884 fi
11885done
11886 done
11887IFS=$as_save_IFS
11888
11889fi
11890fi
11891OTOOL=$ac_cv_prog_OTOOL
11892if test -n "$OTOOL"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11894$as_echo "$OTOOL" >&6; }
11895else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898fi
11899
11900
11901fi
11902if test -z "$ac_cv_prog_OTOOL"; then
11903 ac_ct_OTOOL=$OTOOL
11904 # Extract the first word of "otool", so it can be a program name with args.
11905set dummy otool; ac_word=$2
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011908if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011909 $as_echo_n "(cached) " >&6
11910else
11911 if test -n "$ac_ct_OTOOL"; then
11912 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11913else
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11921 ac_cv_prog_ac_ct_OTOOL="otool"
11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11924 fi
11925done
11926 done
11927IFS=$as_save_IFS
11928
11929fi
11930fi
11931ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11932if test -n "$ac_ct_OTOOL"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11934$as_echo "$ac_ct_OTOOL" >&6; }
11935else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
11938fi
11939
11940 if test "x$ac_ct_OTOOL" = x; then
11941 OTOOL=":"
11942 else
11943 case $cross_compiling:$ac_tool_warned in
11944yes:)
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11947ac_tool_warned=yes ;;
11948esac
11949 OTOOL=$ac_ct_OTOOL
11950 fi
11951else
11952 OTOOL="$ac_cv_prog_OTOOL"
11953fi
11954
11955 if test -n "$ac_tool_prefix"; then
11956 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11957set dummy ${ac_tool_prefix}otool64; ac_word=$2
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011960if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011961 $as_echo_n "(cached) " >&6
11962else
11963 if test -n "$OTOOL64"; then
11964 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11965else
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977done
11978 done
11979IFS=$as_save_IFS
11980
11981fi
11982fi
11983OTOOL64=$ac_cv_prog_OTOOL64
11984if test -n "$OTOOL64"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11986$as_echo "$OTOOL64" >&6; }
11987else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989$as_echo "no" >&6; }
11990fi
11991
11992
11993fi
11994if test -z "$ac_cv_prog_OTOOL64"; then
11995 ac_ct_OTOOL64=$OTOOL64
11996 # Extract the first word of "otool64", so it can be a program name with args.
11997set dummy otool64; ac_word=$2
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012000if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012001 $as_echo_n "(cached) " >&6
12002else
12003 if test -n "$ac_ct_OTOOL64"; then
12004 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12005else
12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013 ac_cv_prog_ac_ct_OTOOL64="otool64"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12016 fi
12017done
12018 done
12019IFS=$as_save_IFS
12020
12021fi
12022fi
12023ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12024if test -n "$ac_ct_OTOOL64"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12026$as_echo "$ac_ct_OTOOL64" >&6; }
12027else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
12030fi
12031
12032 if test "x$ac_ct_OTOOL64" = x; then
12033 OTOOL64=":"
12034 else
12035 case $cross_compiling:$ac_tool_warned in
12036yes:)
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12039ac_tool_warned=yes ;;
12040esac
12041 OTOOL64=$ac_ct_OTOOL64
12042 fi
12043else
12044 OTOOL64="$ac_cv_prog_OTOOL64"
12045fi
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12074$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012075if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012076 $as_echo_n "(cached) " >&6
12077else
12078 lt_cv_apple_cc_single_mod=no
12079 if test -z "${LT_MULTI_MODULE}"; then
12080 # By default we will add the -single_module flag. You can override
12081 # by either setting the environment variable LT_MULTI_MODULE
12082 # non-empty at configure time, or by adding -multi_module to the
12083 # link flags.
12084 rm -rf libconftest.dylib*
12085 echo "int foo(void){return 1;}" > conftest.c
12086 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12087-dynamiclib -Wl,-single_module conftest.c" >&5
12088 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12089 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12090 _lt_result=$?
12091 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12092 lt_cv_apple_cc_single_mod=yes
12093 else
12094 cat conftest.err >&5
12095 fi
12096 rm -rf libconftest.dylib*
12097 rm -f conftest.*
12098 fi
12099fi
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12101$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12103$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012104if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012105 $as_echo_n "(cached) " >&6
12106else
12107 lt_cv_ld_exported_symbols_list=no
12108 save_LDFLAGS=$LDFLAGS
12109 echo "_main" > conftest.sym
12110 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h. */
12113
12114int
12115main ()
12116{
12117
12118 ;
12119 return 0;
12120}
12121_ACEOF
12122if ac_fn_c_try_link "$LINENO"; then :
12123 lt_cv_ld_exported_symbols_list=yes
12124else
12125 lt_cv_ld_exported_symbols_list=no
12126fi
12127rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 LDFLAGS="$save_LDFLAGS"
12130
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12133$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12135$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012136if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012137 $as_echo_n "(cached) " >&6
12138else
12139 lt_cv_ld_force_load=no
12140 cat > conftest.c << _LT_EOF
12141int forced_loaded() { return 2;}
12142_LT_EOF
12143 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12144 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12145 echo "$AR cru libconftest.a conftest.o" >&5
12146 $AR cru libconftest.a conftest.o 2>&5
12147 echo "$RANLIB libconftest.a" >&5
12148 $RANLIB libconftest.a 2>&5
12149 cat > conftest.c << _LT_EOF
12150int main() { return 0;}
12151_LT_EOF
12152 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12153 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12154 _lt_result=$?
12155 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12156 lt_cv_ld_force_load=yes
12157 else
12158 cat conftest.err >&5
12159 fi
12160 rm -f conftest.err libconftest.a conftest conftest.c
12161 rm -rf conftest.dSYM
12162
12163fi
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12165$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012166 case $host_os in
12167 rhapsody* | darwin1.[012])
12168 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12169 darwin1.*)
12170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12171 darwin*) # darwin 5.x on
12172 # if running on 10.5 or later, the deployment target defaults
12173 # to the OS version, if on x86, and 10.4, the deployment
12174 # target defaults to 10.4. Don't you love it?
12175 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12176 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12178 10.[012]*)
12179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12180 10.*)
12181 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12182 esac
12183 ;;
12184 esac
12185 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12186 _lt_dar_single_mod='$single_module'
12187 fi
12188 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12189 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12190 else
12191 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12192 fi
cristy0c60a692010-11-04 01:09:47 +000012193 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012194 _lt_dsymutil='~$DSYMUTIL $lib || :'
12195 else
12196 _lt_dsymutil=
12197 fi
12198 ;;
12199 esac
12200
12201for ac_header in dlfcn.h
12202do :
12203 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12204"
cristyda16f162011-02-19 23:52:17 +000012205if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012206 cat >>confdefs.h <<_ACEOF
12207#define HAVE_DLFCN_H 1
12208_ACEOF
12209
12210fi
12211
12212done
12213
12214
12215
cristy73bd4a52010-10-05 11:24:23 +000012216
cristyda16f162011-02-19 23:52:17 +000012217func_stripname_cnf ()
12218{
12219 case ${2} in
12220 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12221 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12222 esac
12223} # func_stripname_cnf
12224
12225
12226
cristy73bd4a52010-10-05 11:24:23 +000012227
12228
12229# Set options
12230enable_win32_dll=yes
12231
12232case $host in
cristy0c60a692010-11-04 01:09:47 +000012233*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012234 if test -n "$ac_tool_prefix"; then
12235 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12236set dummy ${ac_tool_prefix}as; ac_word=$2
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012239if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012240 $as_echo_n "(cached) " >&6
12241else
12242 if test -n "$AS"; then
12243 ac_cv_prog_AS="$AS" # Let the user override the test.
12244else
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_AS="${ac_tool_prefix}as"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12255 fi
12256done
12257 done
12258IFS=$as_save_IFS
12259
12260fi
12261fi
12262AS=$ac_cv_prog_AS
12263if test -n "$AS"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12265$as_echo "$AS" >&6; }
12266else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
12269fi
12270
12271
12272fi
12273if test -z "$ac_cv_prog_AS"; then
12274 ac_ct_AS=$AS
12275 # Extract the first word of "as", so it can be a program name with args.
12276set dummy as; ac_word=$2
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012279if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012280 $as_echo_n "(cached) " >&6
12281else
12282 if test -n "$ac_ct_AS"; then
12283 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12284else
12285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286for as_dir in $PATH
12287do
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12292 ac_cv_prog_ac_ct_AS="as"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12295 fi
12296done
12297 done
12298IFS=$as_save_IFS
12299
12300fi
12301fi
12302ac_ct_AS=$ac_cv_prog_ac_ct_AS
12303if test -n "$ac_ct_AS"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12305$as_echo "$ac_ct_AS" >&6; }
12306else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308$as_echo "no" >&6; }
12309fi
12310
12311 if test "x$ac_ct_AS" = x; then
12312 AS="false"
12313 else
12314 case $cross_compiling:$ac_tool_warned in
12315yes:)
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12318ac_tool_warned=yes ;;
12319esac
12320 AS=$ac_ct_AS
12321 fi
12322else
12323 AS="$ac_cv_prog_AS"
12324fi
12325
12326 if test -n "$ac_tool_prefix"; then
12327 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12328set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012331if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012332 $as_echo_n "(cached) " >&6
12333else
12334 if test -n "$DLLTOOL"; then
12335 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12336else
12337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338for as_dir in $PATH
12339do
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12344 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346 break 2
12347 fi
12348done
12349 done
12350IFS=$as_save_IFS
12351
12352fi
12353fi
12354DLLTOOL=$ac_cv_prog_DLLTOOL
12355if test -n "$DLLTOOL"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12357$as_echo "$DLLTOOL" >&6; }
12358else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360$as_echo "no" >&6; }
12361fi
12362
12363
12364fi
12365if test -z "$ac_cv_prog_DLLTOOL"; then
12366 ac_ct_DLLTOOL=$DLLTOOL
12367 # Extract the first word of "dlltool", so it can be a program name with args.
12368set dummy dlltool; ac_word=$2
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012371if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012372 $as_echo_n "(cached) " >&6
12373else
12374 if test -n "$ac_ct_DLLTOOL"; then
12375 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12376else
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12387 fi
12388done
12389 done
12390IFS=$as_save_IFS
12391
12392fi
12393fi
12394ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12395if test -n "$ac_ct_DLLTOOL"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12397$as_echo "$ac_ct_DLLTOOL" >&6; }
12398else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
12401fi
12402
12403 if test "x$ac_ct_DLLTOOL" = x; then
12404 DLLTOOL="false"
12405 else
12406 case $cross_compiling:$ac_tool_warned in
12407yes:)
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12410ac_tool_warned=yes ;;
12411esac
12412 DLLTOOL=$ac_ct_DLLTOOL
12413 fi
12414else
12415 DLLTOOL="$ac_cv_prog_DLLTOOL"
12416fi
12417
12418 if test -n "$ac_tool_prefix"; then
12419 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12420set dummy ${ac_tool_prefix}objdump; ac_word=$2
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012423if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012424 $as_echo_n "(cached) " >&6
12425else
12426 if test -n "$OBJDUMP"; then
12427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12428else
12429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430for as_dir in $PATH
12431do
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12436 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 break 2
12439 fi
12440done
12441 done
12442IFS=$as_save_IFS
12443
12444fi
12445fi
12446OBJDUMP=$ac_cv_prog_OBJDUMP
12447if test -n "$OBJDUMP"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12449$as_echo "$OBJDUMP" >&6; }
12450else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452$as_echo "no" >&6; }
12453fi
12454
12455
12456fi
12457if test -z "$ac_cv_prog_OBJDUMP"; then
12458 ac_ct_OBJDUMP=$OBJDUMP
12459 # Extract the first word of "objdump", so it can be a program name with args.
12460set dummy objdump; ac_word=$2
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12462$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012463if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012464 $as_echo_n "(cached) " >&6
12465else
12466 if test -n "$ac_ct_OBJDUMP"; then
12467 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12468else
12469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470for as_dir in $PATH
12471do
12472 IFS=$as_save_IFS
12473 test -z "$as_dir" && as_dir=.
12474 for ac_exec_ext in '' $ac_executable_extensions; do
12475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12476 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12478 break 2
12479 fi
12480done
12481 done
12482IFS=$as_save_IFS
12483
12484fi
12485fi
12486ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12487if test -n "$ac_ct_OBJDUMP"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12489$as_echo "$ac_ct_OBJDUMP" >&6; }
12490else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
12493fi
12494
12495 if test "x$ac_ct_OBJDUMP" = x; then
12496 OBJDUMP="false"
12497 else
12498 case $cross_compiling:$ac_tool_warned in
12499yes:)
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12502ac_tool_warned=yes ;;
12503esac
12504 OBJDUMP=$ac_ct_OBJDUMP
12505 fi
12506else
12507 OBJDUMP="$ac_cv_prog_OBJDUMP"
12508fi
12509
12510 ;;
12511esac
12512
12513test -z "$AS" && AS=as
12514
12515
12516
12517
12518
12519test -z "$DLLTOOL" && DLLTOOL=dlltool
12520
12521
12522
12523
12524
12525test -z "$OBJDUMP" && OBJDUMP=objdump
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535 # Check whether --enable-shared was given.
12536if test "${enable_shared+set}" = set; then :
12537 enableval=$enable_shared; p=${PACKAGE-default}
12538 case $enableval in
12539 yes) enable_shared=yes ;;
12540 no) enable_shared=no ;;
12541 *)
12542 enable_shared=no
12543 # Look at the argument we got. We use all the common list separators.
12544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12545 for pkg in $enableval; do
12546 IFS="$lt_save_ifs"
12547 if test "X$pkg" = "X$p"; then
12548 enable_shared=yes
12549 fi
12550 done
12551 IFS="$lt_save_ifs"
12552 ;;
12553 esac
12554else
12555 enable_shared=yes
12556fi
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 # Check whether --enable-static was given.
12567if test "${enable_static+set}" = set; then :
12568 enableval=$enable_static; p=${PACKAGE-default}
12569 case $enableval in
12570 yes) enable_static=yes ;;
12571 no) enable_static=no ;;
12572 *)
12573 enable_static=no
12574 # Look at the argument we got. We use all the common list separators.
12575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12576 for pkg in $enableval; do
12577 IFS="$lt_save_ifs"
12578 if test "X$pkg" = "X$p"; then
12579 enable_static=yes
12580 fi
12581 done
12582 IFS="$lt_save_ifs"
12583 ;;
12584 esac
12585else
12586 enable_static=yes
12587fi
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598# Check whether --with-pic was given.
12599if test "${with_pic+set}" = set; then :
12600 withval=$with_pic; pic_mode="$withval"
12601else
12602 pic_mode=default
12603fi
12604
12605
12606test -z "$pic_mode" && pic_mode=default
12607
12608
12609
12610
12611
12612
12613
12614 # Check whether --enable-fast-install was given.
12615if test "${enable_fast_install+set}" = set; then :
12616 enableval=$enable_fast_install; p=${PACKAGE-default}
12617 case $enableval in
12618 yes) enable_fast_install=yes ;;
12619 no) enable_fast_install=no ;;
12620 *)
12621 enable_fast_install=no
12622 # Look at the argument we got. We use all the common list separators.
12623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12624 for pkg in $enableval; do
12625 IFS="$lt_save_ifs"
12626 if test "X$pkg" = "X$p"; then
12627 enable_fast_install=yes
12628 fi
12629 done
12630 IFS="$lt_save_ifs"
12631 ;;
12632 esac
12633else
12634 enable_fast_install=yes
12635fi
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647# This can be used to rebuild libtool when needed
12648LIBTOOL_DEPS="$ltmain"
12649
12650# Always use our own libtool.
12651LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
cristy0c60a692010-11-04 01:09:47 +000012677
cristy73bd4a52010-10-05 11:24:23 +000012678test -z "$LN_S" && LN_S="ln -s"
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693if test -n "${ZSH_VERSION+set}" ; then
12694 setopt NO_GLOB_SUBST
12695fi
12696
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12698$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012699if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012700 $as_echo_n "(cached) " >&6
12701else
12702 rm -f .libs 2>/dev/null
12703mkdir .libs 2>/dev/null
12704if test -d .libs; then
12705 lt_cv_objdir=.libs
12706else
12707 # MS-DOS does not allow filenames that begin with a dot.
12708 lt_cv_objdir=_libs
12709fi
12710rmdir .libs 2>/dev/null
12711fi
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12713$as_echo "$lt_cv_objdir" >&6; }
12714objdir=$lt_cv_objdir
12715
12716
12717
12718
12719
12720cat >>confdefs.h <<_ACEOF
12721#define LT_OBJDIR "$lt_cv_objdir/"
12722_ACEOF
12723
12724
12725
12726
cristy73bd4a52010-10-05 11:24:23 +000012727case $host_os in
12728aix3*)
12729 # AIX sometimes has problems with the GCC collect2 program. For some
12730 # reason, if we set the COLLECT_NAMES environment variable, the problems
12731 # vanish in a puff of smoke.
12732 if test "X${COLLECT_NAMES+set}" != Xset; then
12733 COLLECT_NAMES=
12734 export COLLECT_NAMES
12735 fi
12736 ;;
12737esac
12738
cristy73bd4a52010-10-05 11:24:23 +000012739# Global variables:
12740ofile=libtool
12741can_build_shared=yes
12742
12743# All known linkers require a `.a' archive for static linking (except MSVC,
12744# which needs '.lib').
12745libext=a
12746
12747with_gnu_ld="$lt_cv_prog_gnu_ld"
12748
12749old_CC="$CC"
12750old_CFLAGS="$CFLAGS"
12751
12752# Set sane defaults for various variables
12753test -z "$CC" && CC=cc
12754test -z "$LTCC" && LTCC=$CC
12755test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12756test -z "$LD" && LD=ld
12757test -z "$ac_objext" && ac_objext=o
12758
12759for cc_temp in $compiler""; do
12760 case $cc_temp in
12761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12763 \-*) ;;
12764 *) break;;
12765 esac
12766done
cristy0c60a692010-11-04 01:09:47 +000012767cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012768
12769
12770# Only perform the check for file, if the check method requires it
12771test -z "$MAGIC_CMD" && MAGIC_CMD=file
12772case $deplibs_check_method in
12773file_magic*)
12774 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12776$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012777if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012778 $as_echo_n "(cached) " >&6
12779else
12780 case $MAGIC_CMD in
12781[\\/*] | ?:[\\/]*)
12782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12783 ;;
12784*)
12785 lt_save_MAGIC_CMD="$MAGIC_CMD"
12786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12787 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12788 for ac_dir in $ac_dummy; do
12789 IFS="$lt_save_ifs"
12790 test -z "$ac_dir" && ac_dir=.
12791 if test -f $ac_dir/${ac_tool_prefix}file; then
12792 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12793 if test -n "$file_magic_test_file"; then
12794 case $deplibs_check_method in
12795 "file_magic "*)
12796 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12798 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12799 $EGREP "$file_magic_regex" > /dev/null; then
12800 :
12801 else
12802 cat <<_LT_EOF 1>&2
12803
12804*** Warning: the command libtool uses to detect shared libraries,
12805*** $file_magic_cmd, produces output that libtool cannot recognize.
12806*** The result is that libtool may fail to recognize shared libraries
12807*** as such. This will affect the creation of libtool libraries that
12808*** depend on shared libraries, but programs linked with such libtool
12809*** libraries will work regardless of this problem. Nevertheless, you
12810*** may want to report the problem to your system manager and/or to
12811*** bug-libtool@gnu.org
12812
12813_LT_EOF
12814 fi ;;
12815 esac
12816 fi
12817 break
12818 fi
12819 done
12820 IFS="$lt_save_ifs"
12821 MAGIC_CMD="$lt_save_MAGIC_CMD"
12822 ;;
12823esac
12824fi
12825
12826MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12827if test -n "$MAGIC_CMD"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12829$as_echo "$MAGIC_CMD" >&6; }
12830else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
12833fi
12834
12835
12836
12837
12838
12839if test -z "$lt_cv_path_MAGIC_CMD"; then
12840 if test -n "$ac_tool_prefix"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12842$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012843if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012844 $as_echo_n "(cached) " >&6
12845else
12846 case $MAGIC_CMD in
12847[\\/*] | ?:[\\/]*)
12848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12849 ;;
12850*)
12851 lt_save_MAGIC_CMD="$MAGIC_CMD"
12852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12854 for ac_dir in $ac_dummy; do
12855 IFS="$lt_save_ifs"
12856 test -z "$ac_dir" && ac_dir=.
12857 if test -f $ac_dir/file; then
12858 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12859 if test -n "$file_magic_test_file"; then
12860 case $deplibs_check_method in
12861 "file_magic "*)
12862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12865 $EGREP "$file_magic_regex" > /dev/null; then
12866 :
12867 else
12868 cat <<_LT_EOF 1>&2
12869
12870*** Warning: the command libtool uses to detect shared libraries,
12871*** $file_magic_cmd, produces output that libtool cannot recognize.
12872*** The result is that libtool may fail to recognize shared libraries
12873*** as such. This will affect the creation of libtool libraries that
12874*** depend on shared libraries, but programs linked with such libtool
12875*** libraries will work regardless of this problem. Nevertheless, you
12876*** may want to report the problem to your system manager and/or to
12877*** bug-libtool@gnu.org
12878
12879_LT_EOF
12880 fi ;;
12881 esac
12882 fi
12883 break
12884 fi
12885 done
12886 IFS="$lt_save_ifs"
12887 MAGIC_CMD="$lt_save_MAGIC_CMD"
12888 ;;
12889esac
12890fi
12891
12892MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12893if test -n "$MAGIC_CMD"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12895$as_echo "$MAGIC_CMD" >&6; }
12896else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898$as_echo "no" >&6; }
12899fi
12900
12901
12902 else
12903 MAGIC_CMD=:
12904 fi
12905fi
12906
12907 fi
12908 ;;
12909esac
12910
12911# Use C for the default configuration in the libtool script
12912
12913lt_save_CC="$CC"
12914ac_ext=c
12915ac_cpp='$CPP $CPPFLAGS'
12916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918ac_compiler_gnu=$ac_cv_c_compiler_gnu
12919
12920
12921# Source file extension for C test sources.
12922ac_ext=c
12923
12924# Object file extension for compiled C test sources.
12925objext=o
12926objext=$objext
12927
12928# Code to be used in simple compile tests
12929lt_simple_compile_test_code="int some_variable = 0;"
12930
12931# Code to be used in simple link tests
12932lt_simple_link_test_code='int main(){return(0);}'
12933
12934
12935
12936
12937
12938
12939
12940# If no C compiler was specified, use CC.
12941LTCC=${LTCC-"$CC"}
12942
12943# If no C compiler flags were specified, use CFLAGS.
12944LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12945
12946# Allow CC to be a program name with arguments.
12947compiler=$CC
12948
12949# Save the default compiler, since it gets overwritten when the other
12950# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12951compiler_DEFAULT=$CC
12952
12953# save warnings/boilerplate of simple test code
12954ac_outfile=conftest.$ac_objext
12955echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12957_lt_compiler_boilerplate=`cat conftest.err`
12958$RM conftest*
12959
12960ac_outfile=conftest.$ac_objext
12961echo "$lt_simple_link_test_code" >conftest.$ac_ext
12962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12963_lt_linker_boilerplate=`cat conftest.err`
12964$RM -r conftest*
12965
12966
12967## CAVEAT EMPTOR:
12968## There is no encapsulation within the following macros, do not change
12969## the running order or otherwise move them around unless you know exactly
12970## what you are doing...
12971if test -n "$compiler"; then
12972
12973lt_prog_compiler_no_builtin_flag=
12974
12975if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012976 case $cc_basename in
12977 nvcc*)
12978 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12979 *)
12980 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12981 esac
cristy73bd4a52010-10-05 11:24:23 +000012982
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12984$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012985if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012986 $as_echo_n "(cached) " >&6
12987else
12988 lt_cv_prog_compiler_rtti_exceptions=no
12989 ac_outfile=conftest.$ac_objext
12990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12991 lt_compiler_flag="-fno-rtti -fno-exceptions"
12992 # Insert the option either (1) after the last *FLAGS variable, or
12993 # (2) before a word containing "conftest.", or (3) at the end.
12994 # Note that $ac_compile itself does not contain backslashes and begins
12995 # with a dollar sign (not a hyphen), so the echo should work correctly.
12996 # The option is referenced via a variable to avoid confusing sed.
12997 lt_compile=`echo "$ac_compile" | $SED \
12998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13000 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013002 (eval "$lt_compile" 2>conftest.err)
13003 ac_status=$?
13004 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013006 if (exit $ac_status) && test -s "$ac_outfile"; then
13007 # The compiler can only warn and ignore the option if not recognized
13008 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13012 lt_cv_prog_compiler_rtti_exceptions=yes
13013 fi
13014 fi
13015 $RM conftest*
13016
13017fi
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13019$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13020
13021if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13022 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13023else
13024 :
13025fi
13026
13027fi
13028
13029
13030
13031
13032
13033
13034 lt_prog_compiler_wl=
13035lt_prog_compiler_pic=
13036lt_prog_compiler_static=
13037
cristy73bd4a52010-10-05 11:24:23 +000013038
13039 if test "$GCC" = yes; then
13040 lt_prog_compiler_wl='-Wl,'
13041 lt_prog_compiler_static='-static'
13042
13043 case $host_os in
13044 aix*)
13045 # All AIX code is PIC.
13046 if test "$host_cpu" = ia64; then
13047 # AIX 5 now supports IA64 processor
13048 lt_prog_compiler_static='-Bstatic'
13049 fi
13050 ;;
13051
13052 amigaos*)
13053 case $host_cpu in
13054 powerpc)
13055 # see comment about AmigaOS4 .so support
13056 lt_prog_compiler_pic='-fPIC'
13057 ;;
13058 m68k)
13059 # FIXME: we need at least 68020 code to build shared libraries, but
13060 # adding the `-m68020' flag to GCC prevents building anything better,
13061 # like `-m68040'.
13062 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13063 ;;
13064 esac
13065 ;;
13066
13067 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13068 # PIC is the default for these OSes.
13069 ;;
13070
13071 mingw* | cygwin* | pw32* | os2* | cegcc*)
13072 # This hack is so that the source file can tell whether it is being
13073 # built for inclusion in a dll (and should export symbols for example).
13074 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13075 # (--disable-auto-import) libraries
13076 lt_prog_compiler_pic='-DDLL_EXPORT'
13077 ;;
13078
13079 darwin* | rhapsody*)
13080 # PIC is the default on this platform
13081 # Common symbols not allowed in MH_DYLIB files
13082 lt_prog_compiler_pic='-fno-common'
13083 ;;
13084
cristy0c60a692010-11-04 01:09:47 +000013085 haiku*)
13086 # PIC is the default for Haiku.
13087 # The "-static" flag exists, but is broken.
13088 lt_prog_compiler_static=
13089 ;;
13090
cristy73bd4a52010-10-05 11:24:23 +000013091 hpux*)
13092 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13093 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13094 # sets the default TLS model and affects inlining.
13095 case $host_cpu in
13096 hppa*64*)
13097 # +Z the default
13098 ;;
13099 *)
13100 lt_prog_compiler_pic='-fPIC'
13101 ;;
13102 esac
13103 ;;
13104
13105 interix[3-9]*)
13106 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13107 # Instead, we relocate shared libraries at runtime.
13108 ;;
13109
13110 msdosdjgpp*)
13111 # Just because we use GCC doesn't mean we suddenly get shared libraries
13112 # on systems that don't support them.
13113 lt_prog_compiler_can_build_shared=no
13114 enable_shared=no
13115 ;;
13116
13117 *nto* | *qnx*)
13118 # QNX uses GNU C++, but need to define -shared option too, otherwise
13119 # it will coredump.
13120 lt_prog_compiler_pic='-fPIC -shared'
13121 ;;
13122
13123 sysv4*MP*)
13124 if test -d /usr/nec; then
13125 lt_prog_compiler_pic=-Kconform_pic
13126 fi
13127 ;;
13128
13129 *)
13130 lt_prog_compiler_pic='-fPIC'
13131 ;;
13132 esac
cristy0c60a692010-11-04 01:09:47 +000013133
13134 case $cc_basename in
13135 nvcc*) # Cuda Compiler Driver 2.2
13136 lt_prog_compiler_wl='-Xlinker '
13137 lt_prog_compiler_pic='-Xcompiler -fPIC'
13138 ;;
13139 esac
cristy73bd4a52010-10-05 11:24:23 +000013140 else
13141 # PORTME Check for flag to pass linker flags through the system compiler.
13142 case $host_os in
13143 aix*)
13144 lt_prog_compiler_wl='-Wl,'
13145 if test "$host_cpu" = ia64; then
13146 # AIX 5 now supports IA64 processor
13147 lt_prog_compiler_static='-Bstatic'
13148 else
13149 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13150 fi
13151 ;;
13152
13153 mingw* | cygwin* | pw32* | os2* | cegcc*)
13154 # This hack is so that the source file can tell whether it is being
13155 # built for inclusion in a dll (and should export symbols for example).
13156 lt_prog_compiler_pic='-DDLL_EXPORT'
13157 ;;
13158
13159 hpux9* | hpux10* | hpux11*)
13160 lt_prog_compiler_wl='-Wl,'
13161 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13162 # not for PA HP-UX.
13163 case $host_cpu in
13164 hppa*64*|ia64*)
13165 # +Z the default
13166 ;;
13167 *)
13168 lt_prog_compiler_pic='+Z'
13169 ;;
13170 esac
13171 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13172 lt_prog_compiler_static='${wl}-a ${wl}archive'
13173 ;;
13174
13175 irix5* | irix6* | nonstopux*)
13176 lt_prog_compiler_wl='-Wl,'
13177 # PIC (with -KPIC) is the default.
13178 lt_prog_compiler_static='-non_shared'
13179 ;;
13180
cristy0c60a692010-11-04 01:09:47 +000013181 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013182 case $cc_basename in
13183 # old Intel for x86_64 which still supported -KPIC.
13184 ecc*)
13185 lt_prog_compiler_wl='-Wl,'
13186 lt_prog_compiler_pic='-KPIC'
13187 lt_prog_compiler_static='-static'
13188 ;;
13189 # icc used to be incompatible with GCC.
13190 # ICC 10 doesn't accept -KPIC any more.
13191 icc* | ifort*)
13192 lt_prog_compiler_wl='-Wl,'
13193 lt_prog_compiler_pic='-fPIC'
13194 lt_prog_compiler_static='-static'
13195 ;;
13196 # Lahey Fortran 8.1.
13197 lf95*)
13198 lt_prog_compiler_wl='-Wl,'
13199 lt_prog_compiler_pic='--shared'
13200 lt_prog_compiler_static='--static'
13201 ;;
cristyda16f162011-02-19 23:52:17 +000013202 nagfor*)
13203 # NAG Fortran compiler
13204 lt_prog_compiler_wl='-Wl,-Wl,,'
13205 lt_prog_compiler_pic='-PIC'
13206 lt_prog_compiler_static='-Bstatic'
13207 ;;
cristy0c60a692010-11-04 01:09:47 +000013208 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013209 # Portland Group compilers (*not* the Pentium gcc compiler,
13210 # which looks to be a dead project)
13211 lt_prog_compiler_wl='-Wl,'
13212 lt_prog_compiler_pic='-fpic'
13213 lt_prog_compiler_static='-Bstatic'
13214 ;;
13215 ccc*)
13216 lt_prog_compiler_wl='-Wl,'
13217 # All Alpha code is PIC.
13218 lt_prog_compiler_static='-non_shared'
13219 ;;
cristy0c60a692010-11-04 01:09:47 +000013220 xl* | bgxl* | bgf* | mpixl*)
13221 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013222 lt_prog_compiler_wl='-Wl,'
13223 lt_prog_compiler_pic='-qpic'
13224 lt_prog_compiler_static='-qstaticlink'
13225 ;;
13226 *)
13227 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013228 *Sun\ F* | *Sun*Fortran*)
13229 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13230 lt_prog_compiler_pic='-KPIC'
13231 lt_prog_compiler_static='-Bstatic'
13232 lt_prog_compiler_wl=''
13233 ;;
cristy73bd4a52010-10-05 11:24:23 +000013234 *Sun\ C*)
13235 # Sun C 5.9
13236 lt_prog_compiler_pic='-KPIC'
13237 lt_prog_compiler_static='-Bstatic'
13238 lt_prog_compiler_wl='-Wl,'
13239 ;;
cristy73bd4a52010-10-05 11:24:23 +000013240 esac
13241 ;;
13242 esac
13243 ;;
13244
13245 newsos6)
13246 lt_prog_compiler_pic='-KPIC'
13247 lt_prog_compiler_static='-Bstatic'
13248 ;;
13249
13250 *nto* | *qnx*)
13251 # QNX uses GNU C++, but need to define -shared option too, otherwise
13252 # it will coredump.
13253 lt_prog_compiler_pic='-fPIC -shared'
13254 ;;
13255
13256 osf3* | osf4* | osf5*)
13257 lt_prog_compiler_wl='-Wl,'
13258 # All OSF/1 code is PIC.
13259 lt_prog_compiler_static='-non_shared'
13260 ;;
13261
13262 rdos*)
13263 lt_prog_compiler_static='-non_shared'
13264 ;;
13265
13266 solaris*)
13267 lt_prog_compiler_pic='-KPIC'
13268 lt_prog_compiler_static='-Bstatic'
13269 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013270 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013271 lt_prog_compiler_wl='-Qoption ld ';;
13272 *)
13273 lt_prog_compiler_wl='-Wl,';;
13274 esac
13275 ;;
13276
13277 sunos4*)
13278 lt_prog_compiler_wl='-Qoption ld '
13279 lt_prog_compiler_pic='-PIC'
13280 lt_prog_compiler_static='-Bstatic'
13281 ;;
13282
13283 sysv4 | sysv4.2uw2* | sysv4.3*)
13284 lt_prog_compiler_wl='-Wl,'
13285 lt_prog_compiler_pic='-KPIC'
13286 lt_prog_compiler_static='-Bstatic'
13287 ;;
13288
13289 sysv4*MP*)
13290 if test -d /usr/nec ;then
13291 lt_prog_compiler_pic='-Kconform_pic'
13292 lt_prog_compiler_static='-Bstatic'
13293 fi
13294 ;;
13295
13296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13297 lt_prog_compiler_wl='-Wl,'
13298 lt_prog_compiler_pic='-KPIC'
13299 lt_prog_compiler_static='-Bstatic'
13300 ;;
13301
13302 unicos*)
13303 lt_prog_compiler_wl='-Wl,'
13304 lt_prog_compiler_can_build_shared=no
13305 ;;
13306
13307 uts4*)
13308 lt_prog_compiler_pic='-pic'
13309 lt_prog_compiler_static='-Bstatic'
13310 ;;
13311
13312 *)
13313 lt_prog_compiler_can_build_shared=no
13314 ;;
13315 esac
13316 fi
13317
13318case $host_os in
13319 # For platforms which do not support PIC, -DPIC is meaningless:
13320 *djgpp*)
13321 lt_prog_compiler_pic=
13322 ;;
13323 *)
13324 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13325 ;;
13326esac
cristy73bd4a52010-10-05 11:24:23 +000013327
cristyda16f162011-02-19 23:52:17 +000013328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13329$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13330if ${lt_cv_prog_compiler_pic+:} false; then :
13331 $as_echo_n "(cached) " >&6
13332else
13333 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13334fi
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13336$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13337lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013338
13339#
13340# Check to make sure the PIC flag actually works.
13341#
13342if test -n "$lt_prog_compiler_pic"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13344$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013345if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013346 $as_echo_n "(cached) " >&6
13347else
13348 lt_cv_prog_compiler_pic_works=no
13349 ac_outfile=conftest.$ac_objext
13350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13351 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13352 # Insert the option either (1) after the last *FLAGS variable, or
13353 # (2) before a word containing "conftest.", or (3) at the end.
13354 # Note that $ac_compile itself does not contain backslashes and begins
13355 # with a dollar sign (not a hyphen), so the echo should work correctly.
13356 # The option is referenced via a variable to avoid confusing sed.
13357 lt_compile=`echo "$ac_compile" | $SED \
13358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13360 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013362 (eval "$lt_compile" 2>conftest.err)
13363 ac_status=$?
13364 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013366 if (exit $ac_status) && test -s "$ac_outfile"; then
13367 # The compiler can only warn and ignore the option if not recognized
13368 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13372 lt_cv_prog_compiler_pic_works=yes
13373 fi
13374 fi
13375 $RM conftest*
13376
13377fi
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13379$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13380
13381if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13382 case $lt_prog_compiler_pic in
13383 "" | " "*) ;;
13384 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13385 esac
13386else
13387 lt_prog_compiler_pic=
13388 lt_prog_compiler_can_build_shared=no
13389fi
13390
13391fi
13392
13393
13394
13395
13396
13397
cristyda16f162011-02-19 23:52:17 +000013398
13399
13400
13401
13402
cristy73bd4a52010-10-05 11:24:23 +000013403#
13404# Check to make sure the static flag actually works.
13405#
13406wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13408$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013409if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013410 $as_echo_n "(cached) " >&6
13411else
13412 lt_cv_prog_compiler_static_works=no
13413 save_LDFLAGS="$LDFLAGS"
13414 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13415 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13417 # The linker can only warn and ignore the option if not recognized
13418 # So say no if there are warnings
13419 if test -s conftest.err; then
13420 # Append any errors to the config.log.
13421 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013422 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13424 if diff conftest.exp conftest.er2 >/dev/null; then
13425 lt_cv_prog_compiler_static_works=yes
13426 fi
13427 else
13428 lt_cv_prog_compiler_static_works=yes
13429 fi
13430 fi
13431 $RM -r conftest*
13432 LDFLAGS="$save_LDFLAGS"
13433
13434fi
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13436$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13437
13438if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13439 :
13440else
13441 lt_prog_compiler_static=
13442fi
13443
13444
13445
13446
13447
13448
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13451$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013452if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013453 $as_echo_n "(cached) " >&6
13454else
13455 lt_cv_prog_compiler_c_o=no
13456 $RM -r conftest 2>/dev/null
13457 mkdir conftest
13458 cd conftest
13459 mkdir out
13460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13461
13462 lt_compiler_flag="-o out/conftest2.$ac_objext"
13463 # Insert the option either (1) after the last *FLAGS variable, or
13464 # (2) before a word containing "conftest.", or (3) at the end.
13465 # Note that $ac_compile itself does not contain backslashes and begins
13466 # with a dollar sign (not a hyphen), so the echo should work correctly.
13467 lt_compile=`echo "$ac_compile" | $SED \
13468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13470 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013472 (eval "$lt_compile" 2>out/conftest.err)
13473 ac_status=$?
13474 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13477 then
13478 # The compiler can only warn and ignore the option if not recognized
13479 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13483 lt_cv_prog_compiler_c_o=yes
13484 fi
13485 fi
13486 chmod u+w . 2>&5
13487 $RM conftest*
13488 # SGI C++ compiler will create directory out/ii_files/ for
13489 # template instantiation
13490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13491 $RM out/* && rmdir out
13492 cd ..
13493 $RM -r conftest
13494 $RM conftest*
13495
13496fi
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13498$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13499
13500
13501
13502
13503
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13506$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013507if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013508 $as_echo_n "(cached) " >&6
13509else
13510 lt_cv_prog_compiler_c_o=no
13511 $RM -r conftest 2>/dev/null
13512 mkdir conftest
13513 cd conftest
13514 mkdir out
13515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13516
13517 lt_compiler_flag="-o out/conftest2.$ac_objext"
13518 # Insert the option either (1) after the last *FLAGS variable, or
13519 # (2) before a word containing "conftest.", or (3) at the end.
13520 # Note that $ac_compile itself does not contain backslashes and begins
13521 # with a dollar sign (not a hyphen), so the echo should work correctly.
13522 lt_compile=`echo "$ac_compile" | $SED \
13523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13525 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013527 (eval "$lt_compile" 2>out/conftest.err)
13528 ac_status=$?
13529 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13532 then
13533 # The compiler can only warn and ignore the option if not recognized
13534 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13538 lt_cv_prog_compiler_c_o=yes
13539 fi
13540 fi
13541 chmod u+w . 2>&5
13542 $RM conftest*
13543 # SGI C++ compiler will create directory out/ii_files/ for
13544 # template instantiation
13545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13546 $RM out/* && rmdir out
13547 cd ..
13548 $RM -r conftest
13549 $RM conftest*
13550
13551fi
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13553$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13554
13555
13556
13557
13558hard_links="nottested"
13559if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13560 # do not overwrite the value of need_locks provided by the user
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13562$as_echo_n "checking if we can lock with hard links... " >&6; }
13563 hard_links=yes
13564 $RM conftest*
13565 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13566 touch conftest.a
13567 ln conftest.a conftest.b 2>&5 || hard_links=no
13568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13570$as_echo "$hard_links" >&6; }
13571 if test "$hard_links" = no; then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13573$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13574 need_locks=warn
13575 fi
13576else
13577 need_locks=no
13578fi
13579
13580
13581
13582
13583
13584
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13586$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13587
13588 runpath_var=
13589 allow_undefined_flag=
13590 always_export_symbols=no
13591 archive_cmds=
13592 archive_expsym_cmds=
13593 compiler_needs_object=no
13594 enable_shared_with_static_runtimes=no
13595 export_dynamic_flag_spec=
13596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13597 hardcode_automatic=no
13598 hardcode_direct=no
13599 hardcode_direct_absolute=no
13600 hardcode_libdir_flag_spec=
13601 hardcode_libdir_flag_spec_ld=
13602 hardcode_libdir_separator=
13603 hardcode_minus_L=no
13604 hardcode_shlibpath_var=unsupported
13605 inherit_rpath=no
13606 link_all_deplibs=unknown
13607 module_cmds=
13608 module_expsym_cmds=
13609 old_archive_from_new_cmds=
13610 old_archive_from_expsyms_cmds=
13611 thread_safe_flag_spec=
13612 whole_archive_flag_spec=
13613 # include_expsyms should be a list of space-separated symbols to be *always*
13614 # included in the symbol list
13615 include_expsyms=
13616 # exclude_expsyms can be an extended regexp of symbols to exclude
13617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13619 # as well as any symbol that contains `d'.
13620 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13622 # platforms (ab)use it in PIC code, but their linkers get confused if
13623 # the symbol is explicitly referenced. Since portable code cannot
13624 # rely on this symbol name, it's probably fine to never include it in
13625 # preloaded symbol tables.
13626 # Exclude shared library initialization/finalization symbols.
13627 extract_expsyms_cmds=
13628
13629 case $host_os in
13630 cygwin* | mingw* | pw32* | cegcc*)
13631 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13632 # When not using gcc, we currently assume that we are using
13633 # Microsoft Visual C++.
13634 if test "$GCC" != yes; then
13635 with_gnu_ld=no
13636 fi
13637 ;;
13638 interix*)
13639 # we just hope/assume this is gcc and not c89 (= MSVC++)
13640 with_gnu_ld=yes
13641 ;;
13642 openbsd*)
13643 with_gnu_ld=no
13644 ;;
13645 esac
13646
13647 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013648
13649 # On some targets, GNU ld is compatible enough with the native linker
13650 # that we're better off using the native interface for both.
13651 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013652 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013653 case $host_os in
13654 aix*)
13655 # The AIX port of GNU ld has always aspired to compatibility
13656 # with the native linker. However, as the warning in the GNU ld
13657 # block says, versions before 2.19.5* couldn't really create working
13658 # shared libraries, regardless of the interface used.
13659 case `$LD -v 2>&1` in
13660 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13661 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13662 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13663 *)
13664 lt_use_gnu_ld_interface=yes
13665 ;;
13666 esac
13667 ;;
13668 *)
13669 lt_use_gnu_ld_interface=yes
13670 ;;
13671 esac
13672 fi
13673
13674 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013675 # If archive_cmds runs LD, not CC, wlarc should be empty
13676 wlarc='${wl}'
13677
13678 # Set some defaults for GNU ld with shared library support. These
13679 # are reset later if shared libraries are not supported. Putting them
13680 # here allows them to be overridden if necessary.
13681 runpath_var=LD_RUN_PATH
13682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13683 export_dynamic_flag_spec='${wl}--export-dynamic'
13684 # ancient GNU ld didn't support --whole-archive et. al.
13685 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13686 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13687 else
13688 whole_archive_flag_spec=
13689 fi
13690 supports_anon_versioning=no
13691 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013692 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013693 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13696 *\ 2.11.*) ;; # other 2.11 versions
13697 *) supports_anon_versioning=yes ;;
13698 esac
13699
13700 # See if GNU ld supports shared libraries.
13701 case $host_os in
13702 aix[3-9]*)
13703 # On AIX/PPC, the GNU linker is very broken
13704 if test "$host_cpu" != ia64; then
13705 ld_shlibs=no
13706 cat <<_LT_EOF 1>&2
13707
cristy0c60a692010-11-04 01:09:47 +000013708*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013709*** to be unable to reliably create shared libraries on AIX.
13710*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013711*** really care for shared libraries, you may want to install binutils
13712*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13713*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013714
13715_LT_EOF
13716 fi
13717 ;;
13718
13719 amigaos*)
13720 case $host_cpu in
13721 powerpc)
13722 # see comment about AmigaOS4 .so support
13723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13724 archive_expsym_cmds=''
13725 ;;
13726 m68k)
13727 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)'
13728 hardcode_libdir_flag_spec='-L$libdir'
13729 hardcode_minus_L=yes
13730 ;;
13731 esac
13732 ;;
13733
13734 beos*)
13735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13736 allow_undefined_flag=unsupported
13737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13738 # support --undefined. This deserves some investigation. FIXME
13739 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13740 else
13741 ld_shlibs=no
13742 fi
13743 ;;
13744
13745 cygwin* | mingw* | pw32* | cegcc*)
13746 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13747 # as there is no search path for DLLs.
13748 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013749 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013750 allow_undefined_flag=unsupported
13751 always_export_symbols=no
13752 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013753 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'
13754 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 +000013755
13756 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13758 # If the export-symbols file already is a .def file (1st line
13759 # is EXPORTS), use it as is; otherwise, prepend...
13760 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13761 cp $export_symbols $output_objdir/$soname.def;
13762 else
13763 echo EXPORTS > $output_objdir/$soname.def;
13764 cat $export_symbols >> $output_objdir/$soname.def;
13765 fi~
13766 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13767 else
13768 ld_shlibs=no
13769 fi
13770 ;;
13771
cristy0c60a692010-11-04 01:09:47 +000013772 haiku*)
13773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13774 link_all_deplibs=yes
13775 ;;
13776
cristy73bd4a52010-10-05 11:24:23 +000013777 interix[3-9]*)
13778 hardcode_direct=no
13779 hardcode_shlibpath_var=no
13780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13781 export_dynamic_flag_spec='${wl}-E'
13782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13783 # Instead, shared libraries are loaded at an image base (0x10000000 by
13784 # default) and relocated if they conflict, which is a slow very memory
13785 # consuming and fragmenting process. To avoid this, we pick a random,
13786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13789 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'
13790 ;;
13791
cristy0c60a692010-11-04 01:09:47 +000013792 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013793 tmp_diet=no
13794 if test "$host_os" = linux-dietlibc; then
13795 case $cc_basename in
13796 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13797 esac
13798 fi
13799 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13800 && test "$tmp_diet" = no
13801 then
cristyda16f162011-02-19 23:52:17 +000013802 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013803 tmp_sharedflag='-shared'
13804 case $cc_basename,$host_cpu in
13805 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013806 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 +000013807 tmp_addflag=' $pic_flag'
13808 ;;
cristy0c60a692010-11-04 01:09:47 +000013809 pgf77* | pgf90* | pgf95* | pgfortran*)
13810 # Portland Group f77 and f90 compilers
13811 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 +000013812 tmp_addflag=' $pic_flag -Mnomain' ;;
13813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13814 tmp_addflag=' -i_dynamic' ;;
13815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13816 tmp_addflag=' -i_dynamic -nofor_main' ;;
13817 ifc* | ifort*) # Intel Fortran compiler
13818 tmp_addflag=' -nofor_main' ;;
13819 lf95*) # Lahey Fortran 8.1
13820 whole_archive_flag_spec=
13821 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013822 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013823 tmp_sharedflag='-qmkshrobj'
13824 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013825 nvcc*) # Cuda Compiler Driver 2.2
13826 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'
13827 compiler_needs_object=yes
13828 ;;
cristy73bd4a52010-10-05 11:24:23 +000013829 esac
13830 case `$CC -V 2>&1 | sed 5q` in
13831 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013832 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 +000013833 compiler_needs_object=yes
13834 tmp_sharedflag='-G' ;;
13835 *Sun\ F*) # Sun Fortran 8.3
13836 tmp_sharedflag='-G' ;;
13837 esac
13838 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13839
13840 if test "x$supports_anon_versioning" = xyes; then
13841 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13843 echo "local: *; };" >> $output_objdir/$libname.ver~
13844 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13845 fi
13846
13847 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013848 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013849 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13850 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13851 hardcode_libdir_flag_spec=
13852 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013853 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013854 if test "x$supports_anon_versioning" = xyes; then
13855 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13857 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013858 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013859 fi
13860 ;;
13861 esac
13862 else
13863 ld_shlibs=no
13864 fi
13865 ;;
13866
13867 netbsd*)
13868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13869 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13870 wlarc=
13871 else
cristyda16f162011-02-19 23:52:17 +000013872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13873 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 +000013874 fi
13875 ;;
13876
13877 solaris*)
13878 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13879 ld_shlibs=no
13880 cat <<_LT_EOF 1>&2
13881
13882*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13883*** create shared libraries on Solaris systems. Therefore, libtool
13884*** is disabling shared libraries support. We urge you to upgrade GNU
13885*** binutils to release 2.9.1 or newer. Another option is to modify
13886*** your PATH or compiler configuration so that the native linker is
13887*** used, and then restart.
13888
13889_LT_EOF
13890 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892 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 +000013893 else
13894 ld_shlibs=no
13895 fi
13896 ;;
13897
13898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13899 case `$LD -v 2>&1` in
13900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13901 ld_shlibs=no
13902 cat <<_LT_EOF 1>&2
13903
13904*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13905*** reliably create shared libraries on SCO systems. Therefore, libtool
13906*** is disabling shared libraries support. We urge you to upgrade GNU
13907*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13908*** your PATH or compiler configuration so that the native linker is
13909*** used, and then restart.
13910
13911_LT_EOF
13912 ;;
13913 *)
13914 # For security reasons, it is highly recommended that you always
13915 # use absolute paths for naming shared libraries, and exclude the
13916 # DT_RUNPATH tag from executables and libraries. But doing so
13917 # requires that you compile everything twice, which is a pain.
13918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13922 else
13923 ld_shlibs=no
13924 fi
13925 ;;
13926 esac
13927 ;;
13928
13929 sunos4*)
13930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13931 wlarc=
13932 hardcode_direct=yes
13933 hardcode_shlibpath_var=no
13934 ;;
13935
13936 *)
13937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13939 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 +000013940 else
13941 ld_shlibs=no
13942 fi
13943 ;;
13944 esac
13945
13946 if test "$ld_shlibs" = no; then
13947 runpath_var=
13948 hardcode_libdir_flag_spec=
13949 export_dynamic_flag_spec=
13950 whole_archive_flag_spec=
13951 fi
13952 else
13953 # PORTME fill in a description of your system's linker (not GNU ld)
13954 case $host_os in
13955 aix3*)
13956 allow_undefined_flag=unsupported
13957 always_export_symbols=yes
13958 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'
13959 # Note: this linker hardcodes the directories in LIBPATH if there
13960 # are no directories specified by -L.
13961 hardcode_minus_L=yes
13962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13963 # Neither direct hardcoding nor static linking is supported with a
13964 # broken collect2.
13965 hardcode_direct=unsupported
13966 fi
13967 ;;
13968
13969 aix[4-9]*)
13970 if test "$host_cpu" = ia64; then
13971 # On IA64, the linker does run time linking by default, so we don't
13972 # have to do anything special.
13973 aix_use_runtimelinking=no
13974 exp_sym_flag='-Bexport'
13975 no_entry_flag=""
13976 else
13977 # If we're using GNU nm, then we don't want the "-C" option.
13978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013979 # Also, AIX nm treats weak defined symbols like other global
13980 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013981 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013982 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 +000013983 else
13984 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'
13985 fi
13986 aix_use_runtimelinking=no
13987
13988 # Test if we are trying to use run time linking or normal
13989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13990 # need to do runtime linking.
13991 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13992 for ld_flag in $LDFLAGS; do
13993 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13994 aix_use_runtimelinking=yes
13995 break
13996 fi
13997 done
13998 ;;
13999 esac
14000
14001 exp_sym_flag='-bexport'
14002 no_entry_flag='-bnoentry'
14003 fi
14004
14005 # When large executables or shared objects are built, AIX ld can
14006 # have problems creating the table of contents. If linking a library
14007 # or program results in "error TOC overflow" add -mminimal-toc to
14008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14010
14011 archive_cmds=''
14012 hardcode_direct=yes
14013 hardcode_direct_absolute=yes
14014 hardcode_libdir_separator=':'
14015 link_all_deplibs=yes
14016 file_list_spec='${wl}-f,'
14017
14018 if test "$GCC" = yes; then
14019 case $host_os in aix4.[012]|aix4.[012].*)
14020 # We only want to do this on AIX 4.2 and lower, the check
14021 # below for broken collect2 doesn't work under 4.3+
14022 collect2name=`${CC} -print-prog-name=collect2`
14023 if test -f "$collect2name" &&
14024 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14025 then
14026 # We have reworked collect2
14027 :
14028 else
14029 # We have old collect2
14030 hardcode_direct=unsupported
14031 # It fails to find uninstalled libraries when the uninstalled
14032 # path is not listed in the libpath. Setting hardcode_minus_L
14033 # to unsupported forces relinking
14034 hardcode_minus_L=yes
14035 hardcode_libdir_flag_spec='-L$libdir'
14036 hardcode_libdir_separator=
14037 fi
14038 ;;
14039 esac
14040 shared_flag='-shared'
14041 if test "$aix_use_runtimelinking" = yes; then
14042 shared_flag="$shared_flag "'${wl}-G'
14043 fi
14044 else
14045 # not using gcc
14046 if test "$host_cpu" = ia64; then
14047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14048 # chokes on -Wl,-G. The following line is correct:
14049 shared_flag='-G'
14050 else
14051 if test "$aix_use_runtimelinking" = yes; then
14052 shared_flag='${wl}-G'
14053 else
14054 shared_flag='${wl}-bM:SRE'
14055 fi
14056 fi
14057 fi
14058
14059 export_dynamic_flag_spec='${wl}-bexpall'
14060 # It seems that -bexpall does not export symbols beginning with
14061 # underscore (_), so it is better to generate a list of symbols to export.
14062 always_export_symbols=yes
14063 if test "$aix_use_runtimelinking" = yes; then
14064 # Warning - without using the other runtime loading flags (-brtl),
14065 # -berok will link without error, but may produce a broken library.
14066 allow_undefined_flag='-berok'
14067 # Determine the default libpath from the value encoded in an
14068 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014069 if test "${lt_cv_aix_libpath+set}" = set; then
14070 aix_libpath=$lt_cv_aix_libpath
14071else
14072 if ${lt_cv_aix_libpath_+:} false; then :
14073 $as_echo_n "(cached) " >&6
14074else
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014076/* end confdefs.h. */
14077
14078int
14079main ()
14080{
14081
14082 ;
14083 return 0;
14084}
14085_ACEOF
14086if ac_fn_c_try_link "$LINENO"; then :
14087
cristyda16f162011-02-19 23:52:17 +000014088 lt_aix_libpath_sed='
14089 /Import File Strings/,/^$/ {
14090 /^0/ {
14091 s/^0 *\([^ ]*\) *$/\1/
14092 p
14093 }
14094 }'
14095 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14096 # Check for a 64-bit object if we didn't find anything.
14097 if test -z "$lt_cv_aix_libpath_"; then
14098 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14099 fi
cristy73bd4a52010-10-05 11:24:23 +000014100fi
14101rm -f core conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014103 if test -z "$lt_cv_aix_libpath_"; then
14104 lt_cv_aix_libpath_="/usr/lib:/lib"
14105 fi
14106
14107fi
14108
14109 aix_libpath=$lt_cv_aix_libpath_
14110fi
cristy73bd4a52010-10-05 11:24:23 +000014111
14112 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014113 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 +000014114 else
14115 if test "$host_cpu" = ia64; then
14116 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14117 allow_undefined_flag="-z nodefs"
14118 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"
14119 else
14120 # Determine the default libpath from the value encoded in an
14121 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014122 if test "${lt_cv_aix_libpath+set}" = set; then
14123 aix_libpath=$lt_cv_aix_libpath
14124else
14125 if ${lt_cv_aix_libpath_+:} false; then :
14126 $as_echo_n "(cached) " >&6
14127else
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014129/* end confdefs.h. */
14130
14131int
14132main ()
14133{
14134
14135 ;
14136 return 0;
14137}
14138_ACEOF
14139if ac_fn_c_try_link "$LINENO"; then :
14140
cristyda16f162011-02-19 23:52:17 +000014141 lt_aix_libpath_sed='
14142 /Import File Strings/,/^$/ {
14143 /^0/ {
14144 s/^0 *\([^ ]*\) *$/\1/
14145 p
14146 }
14147 }'
14148 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14149 # Check for a 64-bit object if we didn't find anything.
14150 if test -z "$lt_cv_aix_libpath_"; then
14151 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14152 fi
cristy73bd4a52010-10-05 11:24:23 +000014153fi
14154rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014156 if test -z "$lt_cv_aix_libpath_"; then
14157 lt_cv_aix_libpath_="/usr/lib:/lib"
14158 fi
14159
14160fi
14161
14162 aix_libpath=$lt_cv_aix_libpath_
14163fi
cristy73bd4a52010-10-05 11:24:23 +000014164
14165 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14166 # Warning - without using the other run time loading flags,
14167 # -berok will link without error, but may produce a broken library.
14168 no_undefined_flag=' ${wl}-bernotok'
14169 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014170 if test "$with_gnu_ld" = yes; then
14171 # We only use this code for GNU lds that support --whole-archive.
14172 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14173 else
14174 # Exported symbols can be pulled into shared objects from archives
14175 whole_archive_flag_spec='$convenience'
14176 fi
cristy73bd4a52010-10-05 11:24:23 +000014177 archive_cmds_need_lc=yes
14178 # This is similar to how AIX traditionally builds its shared libraries.
14179 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'
14180 fi
14181 fi
14182 ;;
14183
14184 amigaos*)
14185 case $host_cpu in
14186 powerpc)
14187 # see comment about AmigaOS4 .so support
14188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14189 archive_expsym_cmds=''
14190 ;;
14191 m68k)
14192 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)'
14193 hardcode_libdir_flag_spec='-L$libdir'
14194 hardcode_minus_L=yes
14195 ;;
14196 esac
14197 ;;
14198
14199 bsdi[45]*)
14200 export_dynamic_flag_spec=-rdynamic
14201 ;;
14202
14203 cygwin* | mingw* | pw32* | cegcc*)
14204 # When not using gcc, we currently assume that we are using
14205 # Microsoft Visual C++.
14206 # hardcode_libdir_flag_spec is actually meaningless, as there is
14207 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014208 case $cc_basename in
14209 cl*)
14210 # Native MSVC
14211 hardcode_libdir_flag_spec=' '
14212 allow_undefined_flag=unsupported
14213 always_export_symbols=yes
14214 file_list_spec='@'
14215 # Tell ltmain to make .lib files, not .a files.
14216 libext=lib
14217 # Tell ltmain to make .dll files, not .so files.
14218 shrext_cmds=".dll"
14219 # FIXME: Setting linknames here is a bad hack.
14220 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14221 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14222 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14223 else
14224 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14225 fi~
14226 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14227 linknames='
14228 # The linker will not automatically build a static lib if we build a DLL.
14229 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14230 enable_shared_with_static_runtimes=yes
14231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14232 # Don't use ranlib
14233 old_postinstall_cmds='chmod 644 $oldlib'
14234 postlink_cmds='lt_outputfile="@OUTPUT@"~
14235 lt_tool_outputfile="@TOOL_OUTPUT@"~
14236 case $lt_outputfile in
14237 *.exe|*.EXE) ;;
14238 *)
14239 lt_outputfile="$lt_outputfile.exe"
14240 lt_tool_outputfile="$lt_tool_outputfile.exe"
14241 ;;
14242 esac~
14243 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14244 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14245 $RM "$lt_outputfile.manifest";
14246 fi'
14247 ;;
14248 *)
14249 # Assume MSVC wrapper
14250 hardcode_libdir_flag_spec=' '
14251 allow_undefined_flag=unsupported
14252 # Tell ltmain to make .lib files, not .a files.
14253 libext=lib
14254 # Tell ltmain to make .dll files, not .so files.
14255 shrext_cmds=".dll"
14256 # FIXME: Setting linknames here is a bad hack.
14257 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14258 # The linker will automatically build a .lib file if we build a DLL.
14259 old_archive_from_new_cmds='true'
14260 # FIXME: Should let the user specify the lib program.
14261 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14262 enable_shared_with_static_runtimes=yes
14263 ;;
14264 esac
cristy73bd4a52010-10-05 11:24:23 +000014265 ;;
14266
14267 darwin* | rhapsody*)
14268
14269
14270 archive_cmds_need_lc=no
14271 hardcode_direct=no
14272 hardcode_automatic=yes
14273 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014274 if test "$lt_cv_ld_force_load" = "yes"; then
14275 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\"`'
14276 else
14277 whole_archive_flag_spec=''
14278 fi
cristy73bd4a52010-10-05 11:24:23 +000014279 link_all_deplibs=yes
14280 allow_undefined_flag="$_lt_dar_allow_undefined"
14281 case $cc_basename in
14282 ifort*) _lt_dar_can_shared=yes ;;
14283 *) _lt_dar_can_shared=$GCC ;;
14284 esac
14285 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014286 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014287 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14288 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14289 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}"
14290 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}"
14291
14292 else
14293 ld_shlibs=no
14294 fi
14295
14296 ;;
14297
14298 dgux*)
14299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14300 hardcode_libdir_flag_spec='-L$libdir'
14301 hardcode_shlibpath_var=no
14302 ;;
14303
14304 freebsd1*)
14305 ld_shlibs=no
14306 ;;
14307
14308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14309 # support. Future versions do this automatically, but an explicit c++rt0.o
14310 # does not break anything, and helps significantly (at the cost of a little
14311 # extra space).
14312 freebsd2.2*)
14313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14314 hardcode_libdir_flag_spec='-R$libdir'
14315 hardcode_direct=yes
14316 hardcode_shlibpath_var=no
14317 ;;
14318
14319 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14320 freebsd2*)
14321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14322 hardcode_direct=yes
14323 hardcode_minus_L=yes
14324 hardcode_shlibpath_var=no
14325 ;;
14326
14327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14328 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014330 hardcode_libdir_flag_spec='-R$libdir'
14331 hardcode_direct=yes
14332 hardcode_shlibpath_var=no
14333 ;;
14334
14335 hpux9*)
14336 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014337 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 +000014338 else
14339 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'
14340 fi
14341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14342 hardcode_libdir_separator=:
14343 hardcode_direct=yes
14344
14345 # hardcode_minus_L: Not really in the search PATH,
14346 # but as the default location of the library.
14347 hardcode_minus_L=yes
14348 export_dynamic_flag_spec='${wl}-E'
14349 ;;
14350
14351 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014352 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014353 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 +000014354 else
14355 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14356 fi
14357 if test "$with_gnu_ld" = no; then
14358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14359 hardcode_libdir_flag_spec_ld='+b $libdir'
14360 hardcode_libdir_separator=:
14361 hardcode_direct=yes
14362 hardcode_direct_absolute=yes
14363 export_dynamic_flag_spec='${wl}-E'
14364 # hardcode_minus_L: Not really in the search PATH,
14365 # but as the default location of the library.
14366 hardcode_minus_L=yes
14367 fi
14368 ;;
14369
14370 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014371 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014372 case $host_cpu in
14373 hppa*64*)
14374 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14375 ;;
14376 ia64*)
cristyda16f162011-02-19 23:52:17 +000014377 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014378 ;;
14379 *)
cristyda16f162011-02-19 23:52:17 +000014380 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 +000014381 ;;
14382 esac
14383 else
14384 case $host_cpu in
14385 hppa*64*)
14386 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14387 ;;
14388 ia64*)
14389 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14390 ;;
14391 *)
cristy0c60a692010-11-04 01:09:47 +000014392
14393 # Older versions of the 11.00 compiler do not understand -b yet
14394 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14396$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014397if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014398 $as_echo_n "(cached) " >&6
14399else
14400 lt_cv_prog_compiler__b=no
14401 save_LDFLAGS="$LDFLAGS"
14402 LDFLAGS="$LDFLAGS -b"
14403 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14404 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14405 # The linker can only warn and ignore the option if not recognized
14406 # So say no if there are warnings
14407 if test -s conftest.err; then
14408 # Append any errors to the config.log.
14409 cat conftest.err 1>&5
14410 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14412 if diff conftest.exp conftest.er2 >/dev/null; then
14413 lt_cv_prog_compiler__b=yes
14414 fi
14415 else
14416 lt_cv_prog_compiler__b=yes
14417 fi
14418 fi
14419 $RM -r conftest*
14420 LDFLAGS="$save_LDFLAGS"
14421
14422fi
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14424$as_echo "$lt_cv_prog_compiler__b" >&6; }
14425
14426if test x"$lt_cv_prog_compiler__b" = xyes; then
14427 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14428else
14429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14430fi
14431
cristy73bd4a52010-10-05 11:24:23 +000014432 ;;
14433 esac
14434 fi
14435 if test "$with_gnu_ld" = no; then
14436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14437 hardcode_libdir_separator=:
14438
14439 case $host_cpu in
14440 hppa*64*|ia64*)
14441 hardcode_direct=no
14442 hardcode_shlibpath_var=no
14443 ;;
14444 *)
14445 hardcode_direct=yes
14446 hardcode_direct_absolute=yes
14447 export_dynamic_flag_spec='${wl}-E'
14448
14449 # hardcode_minus_L: Not really in the search PATH,
14450 # but as the default location of the library.
14451 hardcode_minus_L=yes
14452 ;;
14453 esac
14454 fi
14455 ;;
14456
14457 irix5* | irix6* | nonstopux*)
14458 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014459 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 +000014460 # Try to use the -exported_symbol ld option, if it does not
14461 # work, assume that -exports_file does not work either and
14462 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014463 # This should be the same for all languages, so no per-tag cache variable.
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14465$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14466if ${lt_cv_irix_exported_symbol+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468else
14469 save_LDFLAGS="$LDFLAGS"
14470 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014472/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014473int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014474_ACEOF
14475if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014476 lt_cv_irix_exported_symbol=yes
14477else
14478 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014479fi
14480rm -f core conftest.err conftest.$ac_objext \
14481 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014482 LDFLAGS="$save_LDFLAGS"
14483fi
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14485$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14486 if test "$lt_cv_irix_exported_symbol" = yes; then
14487 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'
14488 fi
cristy73bd4a52010-10-05 11:24:23 +000014489 else
cristy0c60a692010-11-04 01:09:47 +000014490 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'
14491 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 +000014492 fi
14493 archive_cmds_need_lc='no'
14494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14495 hardcode_libdir_separator=:
14496 inherit_rpath=yes
14497 link_all_deplibs=yes
14498 ;;
14499
14500 netbsd*)
14501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14503 else
14504 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14505 fi
14506 hardcode_libdir_flag_spec='-R$libdir'
14507 hardcode_direct=yes
14508 hardcode_shlibpath_var=no
14509 ;;
14510
14511 newsos6)
14512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14513 hardcode_direct=yes
14514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14515 hardcode_libdir_separator=:
14516 hardcode_shlibpath_var=no
14517 ;;
14518
14519 *nto* | *qnx*)
14520 ;;
14521
14522 openbsd*)
14523 if test -f /usr/libexec/ld.so; then
14524 hardcode_direct=yes
14525 hardcode_shlibpath_var=no
14526 hardcode_direct_absolute=yes
14527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14529 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14531 export_dynamic_flag_spec='${wl}-E'
14532 else
14533 case $host_os in
14534 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14536 hardcode_libdir_flag_spec='-R$libdir'
14537 ;;
14538 *)
14539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14541 ;;
14542 esac
14543 fi
14544 else
14545 ld_shlibs=no
14546 fi
14547 ;;
14548
14549 os2*)
14550 hardcode_libdir_flag_spec='-L$libdir'
14551 hardcode_minus_L=yes
14552 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014553 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 +000014554 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14555 ;;
14556
14557 osf3*)
14558 if test "$GCC" = yes; then
14559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014560 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 +000014561 else
14562 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014563 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 +000014564 fi
14565 archive_cmds_need_lc='no'
14566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14567 hardcode_libdir_separator=:
14568 ;;
14569
14570 osf4* | osf5*) # as osf3* with the addition of -msym flag
14571 if test "$GCC" = yes; then
14572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014573 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 +000014574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14575 else
14576 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014577 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 +000014578 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 +000014579 $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 +000014580
14581 # Both c and cxx compiler support -rpath directly
14582 hardcode_libdir_flag_spec='-rpath $libdir'
14583 fi
14584 archive_cmds_need_lc='no'
14585 hardcode_libdir_separator=:
14586 ;;
14587
14588 solaris*)
14589 no_undefined_flag=' -z defs'
14590 if test "$GCC" = yes; then
14591 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014592 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 +000014593 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 +000014594 $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 +000014595 else
14596 case `$CC -V 2>&1` in
14597 *"Compilers 5.0"*)
14598 wlarc=''
14599 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14601 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14602 ;;
14603 *)
14604 wlarc='${wl}'
14605 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14607 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14608 ;;
14609 esac
14610 fi
14611 hardcode_libdir_flag_spec='-R$libdir'
14612 hardcode_shlibpath_var=no
14613 case $host_os in
14614 solaris2.[0-5] | solaris2.[0-5].*) ;;
14615 *)
14616 # The compiler driver will combine and reorder linker options,
14617 # but understands `-z linker_flag'. GCC discards it without `$wl',
14618 # but is careful enough not to reorder.
14619 # Supported since Solaris 2.6 (maybe 2.5.1?)
14620 if test "$GCC" = yes; then
14621 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14622 else
14623 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14624 fi
14625 ;;
14626 esac
14627 link_all_deplibs=yes
14628 ;;
14629
14630 sunos4*)
14631 if test "x$host_vendor" = xsequent; then
14632 # Use $CC to link under sequent, because it throws in some extra .o
14633 # files that make .init and .fini sections work.
14634 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14635 else
14636 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14637 fi
14638 hardcode_libdir_flag_spec='-L$libdir'
14639 hardcode_direct=yes
14640 hardcode_minus_L=yes
14641 hardcode_shlibpath_var=no
14642 ;;
14643
14644 sysv4)
14645 case $host_vendor in
14646 sni)
14647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648 hardcode_direct=yes # is this really true???
14649 ;;
14650 siemens)
14651 ## LD is ld it makes a PLAMLIB
14652 ## CC just makes a GrossModule.
14653 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14654 reload_cmds='$CC -r -o $output$reload_objs'
14655 hardcode_direct=no
14656 ;;
14657 motorola)
14658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14660 ;;
14661 esac
14662 runpath_var='LD_RUN_PATH'
14663 hardcode_shlibpath_var=no
14664 ;;
14665
14666 sysv4.3*)
14667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14668 hardcode_shlibpath_var=no
14669 export_dynamic_flag_spec='-Bexport'
14670 ;;
14671
14672 sysv4*MP*)
14673 if test -d /usr/nec; then
14674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14675 hardcode_shlibpath_var=no
14676 runpath_var=LD_RUN_PATH
14677 hardcode_runpath_var=yes
14678 ld_shlibs=yes
14679 fi
14680 ;;
14681
14682 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14683 no_undefined_flag='${wl}-z,text'
14684 archive_cmds_need_lc=no
14685 hardcode_shlibpath_var=no
14686 runpath_var='LD_RUN_PATH'
14687
14688 if test "$GCC" = yes; then
14689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14691 else
14692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14694 fi
14695 ;;
14696
14697 sysv5* | sco3.2v5* | sco5v6*)
14698 # Note: We can NOT use -z defs as we might desire, because we do not
14699 # link with -lc, and that would cause any symbols used from libc to
14700 # always be unresolved, which means just about no library would
14701 # ever link correctly. If we're not using GNU ld we use -z text
14702 # though, which does catch some bad symbols but isn't as heavy-handed
14703 # as -z defs.
14704 no_undefined_flag='${wl}-z,text'
14705 allow_undefined_flag='${wl}-z,nodefs'
14706 archive_cmds_need_lc=no
14707 hardcode_shlibpath_var=no
14708 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14709 hardcode_libdir_separator=':'
14710 link_all_deplibs=yes
14711 export_dynamic_flag_spec='${wl}-Bexport'
14712 runpath_var='LD_RUN_PATH'
14713
14714 if test "$GCC" = yes; then
14715 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14716 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14717 else
14718 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14719 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 fi
14721 ;;
14722
14723 uts4*)
14724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14725 hardcode_libdir_flag_spec='-L$libdir'
14726 hardcode_shlibpath_var=no
14727 ;;
14728
14729 *)
14730 ld_shlibs=no
14731 ;;
14732 esac
14733
14734 if test x$host_vendor = xsni; then
14735 case $host in
14736 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14737 export_dynamic_flag_spec='${wl}-Blargedynsym'
14738 ;;
14739 esac
14740 fi
14741 fi
14742
14743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14744$as_echo "$ld_shlibs" >&6; }
14745test "$ld_shlibs" = no && can_build_shared=no
14746
14747with_gnu_ld=$with_gnu_ld
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763#
14764# Do we need to explicitly link libc?
14765#
14766case "x$archive_cmds_need_lc" in
14767x|xyes)
14768 # Assume -lc should be added
14769 archive_cmds_need_lc=yes
14770
14771 if test "$enable_shared" = yes && test "$GCC" = yes; then
14772 case $archive_cmds in
14773 *'~'*)
14774 # FIXME: we may have to deal with multi-command sequences.
14775 ;;
14776 '$CC '*)
14777 # Test whether the compiler implicitly links with -lc since on some
14778 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14779 # to ld, don't add -lc before -lgcc.
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14781$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014782if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014783 $as_echo_n "(cached) " >&6
14784else
14785 $RM conftest*
14786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014787
cristy0c60a692010-11-04 01:09:47 +000014788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014789 (eval $ac_compile) 2>&5
14790 ac_status=$?
14791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14792 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014793 soname=conftest
14794 lib=conftest
14795 libobjs=conftest.$ac_objext
14796 deplibs=
14797 wl=$lt_prog_compiler_wl
14798 pic_flag=$lt_prog_compiler_pic
14799 compiler_flags=-v
14800 linker_flags=-v
14801 verstring=
14802 output_objdir=.
14803 libname=conftest
14804 lt_save_allow_undefined_flag=$allow_undefined_flag
14805 allow_undefined_flag=
14806 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 +000014807 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14808 ac_status=$?
14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14810 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014811 then
14812 lt_cv_archive_cmds_need_lc=no
14813 else
14814 lt_cv_archive_cmds_need_lc=yes
14815 fi
14816 allow_undefined_flag=$lt_save_allow_undefined_flag
14817 else
14818 cat conftest.err 1>&5
14819 fi
14820 $RM conftest*
14821
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14824$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14825 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014826 ;;
14827 esac
14828 fi
14829 ;;
14830esac
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
14981
14982
14983
14984
14985
14986
14987
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14989$as_echo_n "checking dynamic linker characteristics... " >&6; }
14990
14991if test "$GCC" = yes; then
14992 case $host_os in
14993 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14994 *) lt_awk_arg="/^libraries:/" ;;
14995 esac
cristy0c60a692010-11-04 01:09:47 +000014996 case $host_os in
14997 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14998 *) lt_sed_strip_eq="s,=/,/,g" ;;
14999 esac
15000 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15001 case $lt_search_path_spec in
15002 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015003 # if the path contains ";" then we assume it to be the separator
15004 # otherwise default to the standard path separator (i.e. ":") - it is
15005 # assumed that no part of a normal pathname contains ";" but that should
15006 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015007 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15008 ;;
15009 *)
15010 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15011 ;;
15012 esac
cristy73bd4a52010-10-05 11:24:23 +000015013 # Ok, now we have the path, separated by spaces, we can step through it
15014 # and add multilib dir if necessary.
15015 lt_tmp_lt_search_path_spec=
15016 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15017 for lt_sys_path in $lt_search_path_spec; do
15018 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15019 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15020 else
15021 test -d "$lt_sys_path" && \
15022 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15023 fi
15024 done
cristy0c60a692010-11-04 01:09:47 +000015025 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015026BEGIN {RS=" "; FS="/|\n";} {
15027 lt_foo="";
15028 lt_count=0;
15029 for (lt_i = NF; lt_i > 0; lt_i--) {
15030 if ($lt_i != "" && $lt_i != ".") {
15031 if ($lt_i == "..") {
15032 lt_count++;
15033 } else {
15034 if (lt_count == 0) {
15035 lt_foo="/" $lt_i lt_foo;
15036 } else {
15037 lt_count--;
15038 }
15039 }
15040 }
15041 }
15042 if (lt_foo != "") { lt_freq[lt_foo]++; }
15043 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15044}'`
cristy0c60a692010-11-04 01:09:47 +000015045 # AWK program above erroneously prepends '/' to C:/dos/paths
15046 # for these hosts.
15047 case $host_os in
15048 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15049 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15050 esac
15051 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015052else
15053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15054fi
15055library_names_spec=
15056libname_spec='lib$name'
15057soname_spec=
15058shrext_cmds=".so"
15059postinstall_cmds=
15060postuninstall_cmds=
15061finish_cmds=
15062finish_eval=
15063shlibpath_var=
15064shlibpath_overrides_runpath=unknown
15065version_type=none
15066dynamic_linker="$host_os ld.so"
15067sys_lib_dlsearch_path_spec="/lib /usr/lib"
15068need_lib_prefix=unknown
15069hardcode_into_libs=no
15070
15071# when you set need_version to no, make sure it does not cause -set_version
15072# flags to be left without arguments
15073need_version=unknown
15074
15075case $host_os in
15076aix3*)
15077 version_type=linux
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15079 shlibpath_var=LIBPATH
15080
15081 # AIX 3 has no versioning support, so we append a major version to the name.
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 ;;
15084
15085aix[4-9]*)
15086 version_type=linux
15087 need_lib_prefix=no
15088 need_version=no
15089 hardcode_into_libs=yes
15090 if test "$host_cpu" = ia64; then
15091 # AIX 5 supports IA64
15092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15093 shlibpath_var=LD_LIBRARY_PATH
15094 else
15095 # With GCC up to 2.95.x, collect2 would create an import file
15096 # for dependence libraries. The import file would start with
15097 # the line `#! .'. This would cause the generated library to
15098 # depend on `.', always an invalid library. This was fixed in
15099 # development snapshots of GCC prior to 3.0.
15100 case $host_os in
15101 aix4 | aix4.[01] | aix4.[01].*)
15102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15103 echo ' yes '
15104 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15105 :
15106 else
15107 can_build_shared=no
15108 fi
15109 ;;
15110 esac
15111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15112 # soname into executable. Probably we can add versioning support to
15113 # collect2, so additional links can be useful in future.
15114 if test "$aix_use_runtimelinking" = yes; then
15115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15116 # instead of lib<name>.a to let people know that these are not
15117 # typical AIX shared libraries.
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119 else
15120 # We preserve .a as extension for shared libraries through AIX4.2
15121 # and later when we are not doing run time linking.
15122 library_names_spec='${libname}${release}.a $libname.a'
15123 soname_spec='${libname}${release}${shared_ext}$major'
15124 fi
15125 shlibpath_var=LIBPATH
15126 fi
15127 ;;
15128
15129amigaos*)
15130 case $host_cpu in
15131 powerpc)
15132 # Since July 2007 AmigaOS4 officially supports .so libraries.
15133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 ;;
15136 m68k)
15137 library_names_spec='$libname.ixlibrary $libname.a'
15138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015139 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 +000015140 ;;
15141 esac
15142 ;;
15143
15144beos*)
15145 library_names_spec='${libname}${shared_ext}'
15146 dynamic_linker="$host_os ld.so"
15147 shlibpath_var=LIBRARY_PATH
15148 ;;
15149
15150bsdi[45]*)
15151 version_type=linux
15152 need_version=no
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15159 # the default ld.so.conf also contains /usr/contrib/lib and
15160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15161 # libtool to hard-code these into programs
15162 ;;
15163
15164cygwin* | mingw* | pw32* | cegcc*)
15165 version_type=windows
15166 shrext_cmds=".dll"
15167 need_version=no
15168 need_lib_prefix=no
15169
cristyda16f162011-02-19 23:52:17 +000015170 case $GCC,$cc_basename in
15171 yes,*)
15172 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015173 library_names_spec='$libname.dll.a'
15174 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15175 postinstall_cmds='base_file=`basename \${file}`~
15176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15177 dldir=$destdir/`dirname \$dlpath`~
15178 test -d \$dldir || mkdir -p \$dldir~
15179 $install_prog $dir/$dlname \$dldir/$dlname~
15180 chmod a+x \$dldir/$dlname~
15181 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15182 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15183 fi'
15184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15185 dlpath=$dir/\$dldll~
15186 $RM \$dlpath'
15187 shlibpath_overrides_runpath=yes
15188
15189 case $host_os in
15190 cygwin*)
15191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015193
15194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015195 ;;
15196 mingw* | cegcc*)
15197 # MinGW DLLs use traditional 'lib' prefix
15198 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015199 ;;
15200 pw32*)
15201 # pw32 DLLs use 'pw' prefix rather than 'lib'
15202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15203 ;;
15204 esac
cristyda16f162011-02-19 23:52:17 +000015205 dynamic_linker='Win32 ld.exe'
15206 ;;
15207
15208 *,cl*)
15209 # Native MSVC
15210 libname_spec='$name'
15211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15212 library_names_spec='${libname}.dll.lib'
15213
15214 case $build_os in
15215 mingw*)
15216 sys_lib_search_path_spec=
15217 lt_save_ifs=$IFS
15218 IFS=';'
15219 for lt_path in $LIB
15220 do
15221 IFS=$lt_save_ifs
15222 # Let DOS variable expansion print the short 8.3 style file name.
15223 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15224 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15225 done
15226 IFS=$lt_save_ifs
15227 # Convert to MSYS style.
15228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15229 ;;
15230 cygwin*)
15231 # Convert to unix form, then to dos form, then back to unix form
15232 # but this time dos style (no spaces!) so that the unix form looks
15233 # like /cygdrive/c/PROGRA~1:/cygdr...
15234 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15235 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15236 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15237 ;;
15238 *)
15239 sys_lib_search_path_spec="$LIB"
15240 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15241 # It is most probably a Windows format PATH.
15242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15243 else
15244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15245 fi
15246 # FIXME: find the short name or the path components, as spaces are
15247 # common. (e.g. "Program Files" -> "PROGRA~1")
15248 ;;
15249 esac
15250
15251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15252 postinstall_cmds='base_file=`basename \${file}`~
15253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15254 dldir=$destdir/`dirname \$dlpath`~
15255 test -d \$dldir || mkdir -p \$dldir~
15256 $install_prog $dir/$dlname \$dldir/$dlname'
15257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15258 dlpath=$dir/\$dldll~
15259 $RM \$dlpath'
15260 shlibpath_overrides_runpath=yes
15261 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015262 ;;
15263
15264 *)
cristyda16f162011-02-19 23:52:17 +000015265 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015267 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015268 ;;
15269 esac
cristy73bd4a52010-10-05 11:24:23 +000015270 # FIXME: first we should search . and the directory the executable is in
15271 shlibpath_var=PATH
15272 ;;
15273
15274darwin* | rhapsody*)
15275 dynamic_linker="$host_os dyld"
15276 version_type=darwin
15277 need_lib_prefix=no
15278 need_version=no
15279 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15280 soname_spec='${libname}${release}${major}$shared_ext'
15281 shlibpath_overrides_runpath=yes
15282 shlibpath_var=DYLD_LIBRARY_PATH
15283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15284
15285 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15287 ;;
15288
15289dgux*)
15290 version_type=linux
15291 need_lib_prefix=no
15292 need_version=no
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 ;;
15297
15298freebsd1*)
15299 dynamic_linker=no
15300 ;;
15301
15302freebsd* | dragonfly*)
15303 # DragonFly does not have aout. When/if they implement a new
15304 # versioning mechanism, adjust this.
15305 if test -x /usr/bin/objformat; then
15306 objformat=`/usr/bin/objformat`
15307 else
15308 case $host_os in
15309 freebsd[123]*) objformat=aout ;;
15310 *) objformat=elf ;;
15311 esac
15312 fi
15313 version_type=freebsd-$objformat
15314 case $version_type in
15315 freebsd-elf*)
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15317 need_version=no
15318 need_lib_prefix=no
15319 ;;
15320 freebsd-*)
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15322 need_version=yes
15323 ;;
15324 esac
15325 shlibpath_var=LD_LIBRARY_PATH
15326 case $host_os in
15327 freebsd2*)
15328 shlibpath_overrides_runpath=yes
15329 ;;
15330 freebsd3.[01]* | freebsdelf3.[01]*)
15331 shlibpath_overrides_runpath=yes
15332 hardcode_into_libs=yes
15333 ;;
15334 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15335 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15336 shlibpath_overrides_runpath=no
15337 hardcode_into_libs=yes
15338 ;;
15339 *) # from 4.6 on, and DragonFly
15340 shlibpath_overrides_runpath=yes
15341 hardcode_into_libs=yes
15342 ;;
15343 esac
15344 ;;
15345
15346gnu*)
15347 version_type=linux
15348 need_lib_prefix=no
15349 need_version=no
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 shlibpath_var=LD_LIBRARY_PATH
15353 hardcode_into_libs=yes
15354 ;;
15355
cristy0c60a692010-11-04 01:09:47 +000015356haiku*)
15357 version_type=linux
15358 need_lib_prefix=no
15359 need_version=no
15360 dynamic_linker="$host_os runtime_loader"
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LIBRARY_PATH
15364 shlibpath_overrides_runpath=yes
15365 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15366 hardcode_into_libs=yes
15367 ;;
15368
cristy73bd4a52010-10-05 11:24:23 +000015369hpux9* | hpux10* | hpux11*)
15370 # Give a soname corresponding to the major version so that dld.sl refuses to
15371 # link against other versions.
15372 version_type=sunos
15373 need_lib_prefix=no
15374 need_version=no
15375 case $host_cpu in
15376 ia64*)
15377 shrext_cmds='.so'
15378 hardcode_into_libs=yes
15379 dynamic_linker="$host_os dld.so"
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 if test "X$HPUX_IA64_MODE" = X32; then
15385 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15386 else
15387 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15388 fi
15389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15390 ;;
15391 hppa*64*)
15392 shrext_cmds='.sl'
15393 hardcode_into_libs=yes
15394 dynamic_linker="$host_os dld.sl"
15395 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 soname_spec='${libname}${release}${shared_ext}$major'
15399 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15401 ;;
15402 *)
15403 shrext_cmds='.sl'
15404 dynamic_linker="$host_os dld.sl"
15405 shlibpath_var=SHLIB_PATH
15406 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 ;;
15410 esac
cristy0c60a692010-11-04 01:09:47 +000015411 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015412 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015413 # or fails outright, so override atomically:
15414 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015415 ;;
15416
15417interix[3-9]*)
15418 version_type=linux
15419 need_lib_prefix=no
15420 need_version=no
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=no
15426 hardcode_into_libs=yes
15427 ;;
15428
15429irix5* | irix6* | nonstopux*)
15430 case $host_os in
15431 nonstopux*) version_type=nonstopux ;;
15432 *)
15433 if test "$lt_cv_prog_gnu_ld" = yes; then
15434 version_type=linux
15435 else
15436 version_type=irix
15437 fi ;;
15438 esac
15439 need_lib_prefix=no
15440 need_version=no
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15443 case $host_os in
15444 irix5* | nonstopux*)
15445 libsuff= shlibsuff=
15446 ;;
15447 *)
15448 case $LD in # libtool.m4 will add one of these switches to LD
15449 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15450 libsuff= shlibsuff= libmagic=32-bit;;
15451 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15452 libsuff=32 shlibsuff=N32 libmagic=N32;;
15453 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15454 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15455 *) libsuff= shlibsuff= libmagic=never-match;;
15456 esac
15457 ;;
15458 esac
15459 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15460 shlibpath_overrides_runpath=no
15461 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15462 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15463 hardcode_into_libs=yes
15464 ;;
15465
15466# No shared lib support for Linux oldld, aout, or coff.
15467linux*oldld* | linux*aout* | linux*coff*)
15468 dynamic_linker=no
15469 ;;
15470
15471# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015472linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015473 version_type=linux
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015481
cristy73bd4a52010-10-05 11:24:23 +000015482 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015483 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015484 $as_echo_n "(cached) " >&6
15485else
15486 lt_cv_shlibpath_overrides_runpath=no
15487 save_LDFLAGS=$LDFLAGS
15488 save_libdir=$libdir
15489 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15490 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015492/* end confdefs.h. */
15493
15494int
15495main ()
15496{
15497
15498 ;
15499 return 0;
15500}
15501_ACEOF
15502if ac_fn_c_try_link "$LINENO"; then :
15503 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015504 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015505fi
15506fi
15507rm -f core conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015509 LDFLAGS=$save_LDFLAGS
15510 libdir=$save_libdir
15511
15512fi
15513
15514 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015515
15516 # This implies no fast_install, which is unacceptable.
15517 # Some rework will be needed to allow for fast_install
15518 # before this can be enabled.
15519 hardcode_into_libs=yes
15520
15521 # Add ABI-specific directories to the system library path.
15522 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15523
15524 # Append ld.so.conf contents to the search path
15525 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015526 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 +000015527 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015528
cristy73bd4a52010-10-05 11:24:23 +000015529 fi
15530
15531 # We used to test for /lib/ld.so.1 and disable shared libraries on
15532 # powerpc, because MkLinux only supported shared libraries with the
15533 # GNU dynamic linker. Since this was broken with cross compilers,
15534 # most powerpc-linux boxes support dynamic linking these days and
15535 # people can always --disable-shared, the test was removed, and we
15536 # assume the GNU/Linux dynamic linker is in use.
15537 dynamic_linker='GNU/Linux ld.so'
15538 ;;
15539
15540netbsd*)
15541 version_type=sunos
15542 need_lib_prefix=no
15543 need_version=no
15544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15547 dynamic_linker='NetBSD (a.out) ld.so'
15548 else
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 dynamic_linker='NetBSD ld.elf_so'
15552 fi
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=yes
15555 hardcode_into_libs=yes
15556 ;;
15557
15558newsos6)
15559 version_type=linux
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes
15563 ;;
15564
15565*nto* | *qnx*)
15566 version_type=qnx
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=no
15573 hardcode_into_libs=yes
15574 dynamic_linker='ldqnx.so'
15575 ;;
15576
15577openbsd*)
15578 version_type=sunos
15579 sys_lib_dlsearch_path_spec="/usr/lib"
15580 need_lib_prefix=no
15581 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15582 case $host_os in
15583 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15584 *) need_version=no ;;
15585 esac
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15590 case $host_os in
15591 openbsd2.[89] | openbsd2.[89].*)
15592 shlibpath_overrides_runpath=no
15593 ;;
15594 *)
15595 shlibpath_overrides_runpath=yes
15596 ;;
15597 esac
15598 else
15599 shlibpath_overrides_runpath=yes
15600 fi
15601 ;;
15602
15603os2*)
15604 libname_spec='$name'
15605 shrext_cmds=".dll"
15606 need_lib_prefix=no
15607 library_names_spec='$libname${shared_ext} $libname.a'
15608 dynamic_linker='OS/2 ld.exe'
15609 shlibpath_var=LIBPATH
15610 ;;
15611
15612osf3* | osf4* | osf5*)
15613 version_type=osf
15614 need_lib_prefix=no
15615 need_version=no
15616 soname_spec='${libname}${release}${shared_ext}$major'
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15621 ;;
15622
15623rdos*)
15624 dynamic_linker=no
15625 ;;
15626
15627solaris*)
15628 version_type=linux
15629 need_lib_prefix=no
15630 need_version=no
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 shlibpath_overrides_runpath=yes
15635 hardcode_into_libs=yes
15636 # ldd complains unless libraries are executable
15637 postinstall_cmds='chmod +x $lib'
15638 ;;
15639
15640sunos4*)
15641 version_type=sunos
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15644 shlibpath_var=LD_LIBRARY_PATH
15645 shlibpath_overrides_runpath=yes
15646 if test "$with_gnu_ld" = yes; then
15647 need_lib_prefix=no
15648 fi
15649 need_version=yes
15650 ;;
15651
15652sysv4 | sysv4.3*)
15653 version_type=linux
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655 soname_spec='${libname}${release}${shared_ext}$major'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 case $host_vendor in
15658 sni)
15659 shlibpath_overrides_runpath=no
15660 need_lib_prefix=no
15661 runpath_var=LD_RUN_PATH
15662 ;;
15663 siemens)
15664 need_lib_prefix=no
15665 ;;
15666 motorola)
15667 need_lib_prefix=no
15668 need_version=no
15669 shlibpath_overrides_runpath=no
15670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15671 ;;
15672 esac
15673 ;;
15674
15675sysv4*MP*)
15676 if test -d /usr/nec ;then
15677 version_type=linux
15678 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15679 soname_spec='$libname${shared_ext}.$major'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 fi
15682 ;;
15683
15684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15685 version_type=freebsd-elf
15686 need_lib_prefix=no
15687 need_version=no
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15689 soname_spec='${libname}${release}${shared_ext}$major'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 shlibpath_overrides_runpath=yes
15692 hardcode_into_libs=yes
15693 if test "$with_gnu_ld" = yes; then
15694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15695 else
15696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15697 case $host_os in
15698 sco3.2v5*)
15699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15700 ;;
15701 esac
15702 fi
15703 sys_lib_dlsearch_path_spec='/usr/lib'
15704 ;;
15705
15706tpf*)
15707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15708 version_type=linux
15709 need_lib_prefix=no
15710 need_version=no
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=no
15714 hardcode_into_libs=yes
15715 ;;
15716
15717uts4*)
15718 version_type=linux
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 ;;
15723
15724*)
15725 dynamic_linker=no
15726 ;;
15727esac
15728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15729$as_echo "$dynamic_linker" >&6; }
15730test "$dynamic_linker" = no && can_build_shared=no
15731
15732variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15733if test "$GCC" = yes; then
15734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15735fi
15736
15737if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15738 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15739fi
15740if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15741 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15742fi
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
15822
15823
15824
15825
15826
15827
15828
15829
cristy0c60a692010-11-04 01:09:47 +000015830
15831
15832
15833
15834
cristy73bd4a52010-10-05 11:24:23 +000015835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15836$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15837hardcode_action=
15838if test -n "$hardcode_libdir_flag_spec" ||
15839 test -n "$runpath_var" ||
15840 test "X$hardcode_automatic" = "Xyes" ; then
15841
15842 # We can hardcode non-existent directories.
15843 if test "$hardcode_direct" != no &&
15844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15845 # have to relink, otherwise we might link with an installed library
15846 # when we should be linking with a yet-to-be-installed one
15847 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15848 test "$hardcode_minus_L" != no; then
15849 # Linking always hardcodes the temporary library directory.
15850 hardcode_action=relink
15851 else
15852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15853 hardcode_action=immediate
15854 fi
15855else
15856 # We cannot hardcode anything, or else we can only hardcode existing
15857 # directories.
15858 hardcode_action=unsupported
15859fi
15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15861$as_echo "$hardcode_action" >&6; }
15862
15863if test "$hardcode_action" = relink ||
15864 test "$inherit_rpath" = yes; then
15865 # Fast installation is not supported
15866 enable_fast_install=no
15867elif test "$shlibpath_overrides_runpath" = yes ||
15868 test "$enable_shared" = no; then
15869 # Fast installation is not necessary
15870 enable_fast_install=needless
15871fi
15872
15873
15874
15875
15876
15877
15878 if test "x$enable_dlopen" != xyes; then
15879 enable_dlopen=unknown
15880 enable_dlopen_self=unknown
15881 enable_dlopen_self_static=unknown
15882else
15883 lt_cv_dlopen=no
15884 lt_cv_dlopen_libs=
15885
15886 case $host_os in
15887 beos*)
15888 lt_cv_dlopen="load_add_on"
15889 lt_cv_dlopen_libs=
15890 lt_cv_dlopen_self=yes
15891 ;;
15892
15893 mingw* | pw32* | cegcc*)
15894 lt_cv_dlopen="LoadLibrary"
15895 lt_cv_dlopen_libs=
15896 ;;
15897
15898 cygwin*)
15899 lt_cv_dlopen="dlopen"
15900 lt_cv_dlopen_libs=
15901 ;;
15902
15903 darwin*)
15904 # if libdl is installed we need to link against it
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15906$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015907if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015908 $as_echo_n "(cached) " >&6
15909else
15910 ac_check_lib_save_LIBS=$LIBS
15911LIBS="-ldl $LIBS"
15912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913/* end confdefs.h. */
15914
15915/* Override any GCC internal prototype to avoid an error.
15916 Use char because int might match the return type of a GCC
15917 builtin and then its argument prototype would still apply. */
15918#ifdef __cplusplus
15919extern "C"
15920#endif
15921char dlopen ();
15922int
15923main ()
15924{
15925return dlopen ();
15926 ;
15927 return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_link "$LINENO"; then :
15931 ac_cv_lib_dl_dlopen=yes
15932else
15933 ac_cv_lib_dl_dlopen=no
15934fi
15935rm -f core conftest.err conftest.$ac_objext \
15936 conftest$ac_exeext conftest.$ac_ext
15937LIBS=$ac_check_lib_save_LIBS
15938fi
15939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15940$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015941if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15943else
15944
15945 lt_cv_dlopen="dyld"
15946 lt_cv_dlopen_libs=
15947 lt_cv_dlopen_self=yes
15948
15949fi
15950
15951 ;;
15952
15953 *)
15954 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015955if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015956 lt_cv_dlopen="shl_load"
15957else
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15959$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015960if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015961 $as_echo_n "(cached) " >&6
15962else
15963 ac_check_lib_save_LIBS=$LIBS
15964LIBS="-ldld $LIBS"
15965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966/* end confdefs.h. */
15967
15968/* Override any GCC internal prototype to avoid an error.
15969 Use char because int might match the return type of a GCC
15970 builtin and then its argument prototype would still apply. */
15971#ifdef __cplusplus
15972extern "C"
15973#endif
15974char shl_load ();
15975int
15976main ()
15977{
15978return shl_load ();
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983if ac_fn_c_try_link "$LINENO"; then :
15984 ac_cv_lib_dld_shl_load=yes
15985else
15986 ac_cv_lib_dld_shl_load=no
15987fi
15988rm -f core conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15990LIBS=$ac_check_lib_save_LIBS
15991fi
15992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15993$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015994if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015995 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15996else
15997 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015998if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015999 lt_cv_dlopen="dlopen"
16000else
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16002$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016003if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016004 $as_echo_n "(cached) " >&6
16005else
16006 ac_check_lib_save_LIBS=$LIBS
16007LIBS="-ldl $LIBS"
16008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009/* end confdefs.h. */
16010
16011/* Override any GCC internal prototype to avoid an error.
16012 Use char because int might match the return type of a GCC
16013 builtin and then its argument prototype would still apply. */
16014#ifdef __cplusplus
16015extern "C"
16016#endif
16017char dlopen ();
16018int
16019main ()
16020{
16021return dlopen ();
16022 ;
16023 return 0;
16024}
16025_ACEOF
16026if ac_fn_c_try_link "$LINENO"; then :
16027 ac_cv_lib_dl_dlopen=yes
16028else
16029 ac_cv_lib_dl_dlopen=no
16030fi
16031rm -f core conftest.err conftest.$ac_objext \
16032 conftest$ac_exeext conftest.$ac_ext
16033LIBS=$ac_check_lib_save_LIBS
16034fi
16035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16036$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016037if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16039else
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16041$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016042if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016043 $as_echo_n "(cached) " >&6
16044else
16045 ac_check_lib_save_LIBS=$LIBS
16046LIBS="-lsvld $LIBS"
16047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048/* end confdefs.h. */
16049
16050/* Override any GCC internal prototype to avoid an error.
16051 Use char because int might match the return type of a GCC
16052 builtin and then its argument prototype would still apply. */
16053#ifdef __cplusplus
16054extern "C"
16055#endif
16056char dlopen ();
16057int
16058main ()
16059{
16060return dlopen ();
16061 ;
16062 return 0;
16063}
16064_ACEOF
16065if ac_fn_c_try_link "$LINENO"; then :
16066 ac_cv_lib_svld_dlopen=yes
16067else
16068 ac_cv_lib_svld_dlopen=no
16069fi
16070rm -f core conftest.err conftest.$ac_objext \
16071 conftest$ac_exeext conftest.$ac_ext
16072LIBS=$ac_check_lib_save_LIBS
16073fi
16074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16075$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016076if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16078else
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16080$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016081if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016082 $as_echo_n "(cached) " >&6
16083else
16084 ac_check_lib_save_LIBS=$LIBS
16085LIBS="-ldld $LIBS"
16086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087/* end confdefs.h. */
16088
16089/* Override any GCC internal prototype to avoid an error.
16090 Use char because int might match the return type of a GCC
16091 builtin and then its argument prototype would still apply. */
16092#ifdef __cplusplus
16093extern "C"
16094#endif
16095char dld_link ();
16096int
16097main ()
16098{
16099return dld_link ();
16100 ;
16101 return 0;
16102}
16103_ACEOF
16104if ac_fn_c_try_link "$LINENO"; then :
16105 ac_cv_lib_dld_dld_link=yes
16106else
16107 ac_cv_lib_dld_dld_link=no
16108fi
16109rm -f core conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16111LIBS=$ac_check_lib_save_LIBS
16112fi
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16114$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016115if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016116 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16117fi
16118
16119
16120fi
16121
16122
16123fi
16124
16125
16126fi
16127
16128
16129fi
16130
16131
16132fi
16133
16134 ;;
16135 esac
16136
16137 if test "x$lt_cv_dlopen" != xno; then
16138 enable_dlopen=yes
16139 else
16140 enable_dlopen=no
16141 fi
16142
16143 case $lt_cv_dlopen in
16144 dlopen)
16145 save_CPPFLAGS="$CPPFLAGS"
16146 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16147
16148 save_LDFLAGS="$LDFLAGS"
16149 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16150
16151 save_LIBS="$LIBS"
16152 LIBS="$lt_cv_dlopen_libs $LIBS"
16153
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16155$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016156if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016157 $as_echo_n "(cached) " >&6
16158else
16159 if test "$cross_compiling" = yes; then :
16160 lt_cv_dlopen_self=cross
16161else
16162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16163 lt_status=$lt_dlunknown
16164 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016165#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016166#include "confdefs.h"
16167
16168#if HAVE_DLFCN_H
16169#include <dlfcn.h>
16170#endif
16171
16172#include <stdio.h>
16173
16174#ifdef RTLD_GLOBAL
16175# define LT_DLGLOBAL RTLD_GLOBAL
16176#else
16177# ifdef DL_GLOBAL
16178# define LT_DLGLOBAL DL_GLOBAL
16179# else
16180# define LT_DLGLOBAL 0
16181# endif
16182#endif
16183
16184/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16185 find out it does not work in some platform. */
16186#ifndef LT_DLLAZY_OR_NOW
16187# ifdef RTLD_LAZY
16188# define LT_DLLAZY_OR_NOW RTLD_LAZY
16189# else
16190# ifdef DL_LAZY
16191# define LT_DLLAZY_OR_NOW DL_LAZY
16192# else
16193# ifdef RTLD_NOW
16194# define LT_DLLAZY_OR_NOW RTLD_NOW
16195# else
16196# ifdef DL_NOW
16197# define LT_DLLAZY_OR_NOW DL_NOW
16198# else
16199# define LT_DLLAZY_OR_NOW 0
16200# endif
16201# endif
16202# endif
16203# endif
16204#endif
16205
cristy0c60a692010-11-04 01:09:47 +000016206/* When -fvisbility=hidden is used, assume the code has been annotated
16207 correspondingly for the symbols needed. */
16208#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016209int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016210#endif
16211
cristyda16f162011-02-19 23:52:17 +000016212int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016213int main ()
16214{
16215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16216 int status = $lt_dlunknown;
16217
16218 if (self)
16219 {
16220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016221 else
16222 {
16223 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16224 else puts (dlerror ());
16225 }
cristy73bd4a52010-10-05 11:24:23 +000016226 /* dlclose (self); */
16227 }
16228 else
16229 puts (dlerror ());
16230
16231 return status;
16232}
16233_LT_EOF
16234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16235 (eval $ac_link) 2>&5
16236 ac_status=$?
16237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16238 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16239 (./conftest; exit; ) >&5 2>/dev/null
16240 lt_status=$?
16241 case x$lt_status in
16242 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16243 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16244 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16245 esac
16246 else :
16247 # compilation failed
16248 lt_cv_dlopen_self=no
16249 fi
16250fi
16251rm -fr conftest*
16252
16253
16254fi
16255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16256$as_echo "$lt_cv_dlopen_self" >&6; }
16257
16258 if test "x$lt_cv_dlopen_self" = xyes; then
16259 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16261$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016262if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016263 $as_echo_n "(cached) " >&6
16264else
16265 if test "$cross_compiling" = yes; then :
16266 lt_cv_dlopen_self_static=cross
16267else
16268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16269 lt_status=$lt_dlunknown
16270 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016271#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016272#include "confdefs.h"
16273
16274#if HAVE_DLFCN_H
16275#include <dlfcn.h>
16276#endif
16277
16278#include <stdio.h>
16279
16280#ifdef RTLD_GLOBAL
16281# define LT_DLGLOBAL RTLD_GLOBAL
16282#else
16283# ifdef DL_GLOBAL
16284# define LT_DLGLOBAL DL_GLOBAL
16285# else
16286# define LT_DLGLOBAL 0
16287# endif
16288#endif
16289
16290/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16291 find out it does not work in some platform. */
16292#ifndef LT_DLLAZY_OR_NOW
16293# ifdef RTLD_LAZY
16294# define LT_DLLAZY_OR_NOW RTLD_LAZY
16295# else
16296# ifdef DL_LAZY
16297# define LT_DLLAZY_OR_NOW DL_LAZY
16298# else
16299# ifdef RTLD_NOW
16300# define LT_DLLAZY_OR_NOW RTLD_NOW
16301# else
16302# ifdef DL_NOW
16303# define LT_DLLAZY_OR_NOW DL_NOW
16304# else
16305# define LT_DLLAZY_OR_NOW 0
16306# endif
16307# endif
16308# endif
16309# endif
16310#endif
16311
cristy0c60a692010-11-04 01:09:47 +000016312/* When -fvisbility=hidden is used, assume the code has been annotated
16313 correspondingly for the symbols needed. */
16314#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016315int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016316#endif
16317
cristyda16f162011-02-19 23:52:17 +000016318int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016319int main ()
16320{
16321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16322 int status = $lt_dlunknown;
16323
16324 if (self)
16325 {
16326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016327 else
16328 {
16329 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16330 else puts (dlerror ());
16331 }
cristy73bd4a52010-10-05 11:24:23 +000016332 /* dlclose (self); */
16333 }
16334 else
16335 puts (dlerror ());
16336
16337 return status;
16338}
16339_LT_EOF
16340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16341 (eval $ac_link) 2>&5
16342 ac_status=$?
16343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16344 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16345 (./conftest; exit; ) >&5 2>/dev/null
16346 lt_status=$?
16347 case x$lt_status in
16348 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16349 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16350 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16351 esac
16352 else :
16353 # compilation failed
16354 lt_cv_dlopen_self_static=no
16355 fi
16356fi
16357rm -fr conftest*
16358
16359
16360fi
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16362$as_echo "$lt_cv_dlopen_self_static" >&6; }
16363 fi
16364
16365 CPPFLAGS="$save_CPPFLAGS"
16366 LDFLAGS="$save_LDFLAGS"
16367 LIBS="$save_LIBS"
16368 ;;
16369 esac
16370
16371 case $lt_cv_dlopen_self in
16372 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16373 *) enable_dlopen_self=unknown ;;
16374 esac
16375
16376 case $lt_cv_dlopen_self_static in
16377 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16378 *) enable_dlopen_self_static=unknown ;;
16379 esac
16380fi
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398striplib=
16399old_striplib=
16400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16401$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16402if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16403 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16404 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16406$as_echo "yes" >&6; }
16407else
16408# FIXME - insert some real tests, host_os isn't really good enough
16409 case $host_os in
16410 darwin*)
16411 if test -n "$STRIP" ; then
16412 striplib="$STRIP -x"
16413 old_striplib="$STRIP -S"
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16415$as_echo "yes" >&6; }
16416 else
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16418$as_echo "no" >&6; }
16419 fi
16420 ;;
16421 *)
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16423$as_echo "no" >&6; }
16424 ;;
16425 esac
16426fi
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439 # Report which library types will actually be built
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16441$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16443$as_echo "$can_build_shared" >&6; }
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16446$as_echo_n "checking whether to build shared libraries... " >&6; }
16447 test "$can_build_shared" = "no" && enable_shared=no
16448
16449 # On AIX, shared libraries and static libraries use the same namespace, and
16450 # are all built from PIC.
16451 case $host_os in
16452 aix3*)
16453 test "$enable_shared" = yes && enable_static=no
16454 if test -n "$RANLIB"; then
16455 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16456 postinstall_cmds='$RANLIB $lib'
16457 fi
16458 ;;
16459
16460 aix[4-9]*)
16461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16462 test "$enable_shared" = yes && enable_static=no
16463 fi
16464 ;;
16465 esac
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16467$as_echo "$enable_shared" >&6; }
16468
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16470$as_echo_n "checking whether to build static libraries... " >&6; }
16471 # Make sure either enable_shared or enable_static is yes.
16472 test "$enable_shared" = yes || enable_static=yes
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16474$as_echo "$enable_static" >&6; }
16475
16476
16477
16478
16479fi
16480ac_ext=c
16481ac_cpp='$CPP $CPPFLAGS'
16482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16484ac_compiler_gnu=$ac_cv_c_compiler_gnu
16485
16486CC="$lt_save_CC"
16487
cristy0c60a692010-11-04 01:09:47 +000016488 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16489 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16490 (test "X$CXX" != "Xg++"))) ; then
16491 ac_ext=cpp
16492ac_cpp='$CXXCPP $CPPFLAGS'
16493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16497$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16498if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016499 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016500 $as_echo_n "(cached) " >&6
16501else
16502 # Double quotes because CXXCPP needs to be expanded
16503 for CXXCPP in "$CXX -E" "/lib/cpp"
16504 do
16505 ac_preproc_ok=false
16506for ac_cxx_preproc_warn_flag in '' yes
16507do
16508 # Use a header file that comes with gcc, so configuring glibc
16509 # with a fresh cross-compiler works.
16510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16511 # <limits.h> exists even on freestanding compilers.
16512 # On the NeXT, cc -E runs the code through the compiler's parser,
16513 # not just through cpp. "Syntax error" is here to catch this case.
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515/* end confdefs.h. */
16516#ifdef __STDC__
16517# include <limits.h>
16518#else
16519# include <assert.h>
16520#endif
16521 Syntax error
16522_ACEOF
16523if ac_fn_cxx_try_cpp "$LINENO"; then :
16524
16525else
16526 # Broken: fails on valid input.
16527continue
16528fi
cristyda16f162011-02-19 23:52:17 +000016529rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016530
16531 # OK, works on sane cases. Now check whether nonexistent headers
16532 # can be detected and how.
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534/* end confdefs.h. */
16535#include <ac_nonexistent.h>
16536_ACEOF
16537if ac_fn_cxx_try_cpp "$LINENO"; then :
16538 # Broken: success on invalid input.
16539continue
16540else
16541 # Passes both tests.
16542ac_preproc_ok=:
16543break
16544fi
cristyda16f162011-02-19 23:52:17 +000016545rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016546
16547done
16548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016549rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016550if $ac_preproc_ok; then :
16551 break
16552fi
16553
16554 done
16555 ac_cv_prog_CXXCPP=$CXXCPP
16556
16557fi
16558 CXXCPP=$ac_cv_prog_CXXCPP
16559else
16560 ac_cv_prog_CXXCPP=$CXXCPP
16561fi
16562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16563$as_echo "$CXXCPP" >&6; }
16564ac_preproc_ok=false
16565for ac_cxx_preproc_warn_flag in '' yes
16566do
16567 # Use a header file that comes with gcc, so configuring glibc
16568 # with a fresh cross-compiler works.
16569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16570 # <limits.h> exists even on freestanding compilers.
16571 # On the NeXT, cc -E runs the code through the compiler's parser,
16572 # not just through cpp. "Syntax error" is here to catch this case.
16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574/* end confdefs.h. */
16575#ifdef __STDC__
16576# include <limits.h>
16577#else
16578# include <assert.h>
16579#endif
16580 Syntax error
16581_ACEOF
16582if ac_fn_cxx_try_cpp "$LINENO"; then :
16583
16584else
16585 # Broken: fails on valid input.
16586continue
16587fi
cristyda16f162011-02-19 23:52:17 +000016588rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016589
16590 # OK, works on sane cases. Now check whether nonexistent headers
16591 # can be detected and how.
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593/* end confdefs.h. */
16594#include <ac_nonexistent.h>
16595_ACEOF
16596if ac_fn_cxx_try_cpp "$LINENO"; then :
16597 # Broken: success on invalid input.
16598continue
16599else
16600 # Passes both tests.
16601ac_preproc_ok=:
16602break
16603fi
cristyda16f162011-02-19 23:52:17 +000016604rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016605
16606done
16607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016608rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016609if $ac_preproc_ok; then :
16610
16611else
16612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16614as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16615See \`config.log' for more details" "$LINENO" 5; }
16616fi
16617
16618ac_ext=c
16619ac_cpp='$CPP $CPPFLAGS'
16620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16622ac_compiler_gnu=$ac_cv_c_compiler_gnu
16623
16624else
16625 _lt_caught_CXX_error=yes
16626fi
cristy73bd4a52010-10-05 11:24:23 +000016627
16628ac_ext=cpp
16629ac_cpp='$CXXCPP $CPPFLAGS'
16630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16633
16634archive_cmds_need_lc_CXX=no
16635allow_undefined_flag_CXX=
16636always_export_symbols_CXX=no
16637archive_expsym_cmds_CXX=
16638compiler_needs_object_CXX=no
16639export_dynamic_flag_spec_CXX=
16640hardcode_direct_CXX=no
16641hardcode_direct_absolute_CXX=no
16642hardcode_libdir_flag_spec_CXX=
16643hardcode_libdir_flag_spec_ld_CXX=
16644hardcode_libdir_separator_CXX=
16645hardcode_minus_L_CXX=no
16646hardcode_shlibpath_var_CXX=unsupported
16647hardcode_automatic_CXX=no
16648inherit_rpath_CXX=no
16649module_cmds_CXX=
16650module_expsym_cmds_CXX=
16651link_all_deplibs_CXX=unknown
16652old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016653reload_flag_CXX=$reload_flag
16654reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016655no_undefined_flag_CXX=
16656whole_archive_flag_spec_CXX=
16657enable_shared_with_static_runtimes_CXX=no
16658
16659# Source file extension for C++ test sources.
16660ac_ext=cpp
16661
16662# Object file extension for compiled C++ test sources.
16663objext=o
16664objext_CXX=$objext
16665
16666# No sense in running all these tests if we already determined that
16667# the CXX compiler isn't working. Some variables (like enable_shared)
16668# are currently assumed to apply to all compilers on this platform,
16669# and will be corrupted by setting them based on a non-working compiler.
16670if test "$_lt_caught_CXX_error" != yes; then
16671 # Code to be used in simple compile tests
16672 lt_simple_compile_test_code="int some_variable = 0;"
16673
16674 # Code to be used in simple link tests
16675 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16676
16677 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16678
16679
16680
16681
16682
16683
16684# If no C compiler was specified, use CC.
16685LTCC=${LTCC-"$CC"}
16686
16687# If no C compiler flags were specified, use CFLAGS.
16688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16689
16690# Allow CC to be a program name with arguments.
16691compiler=$CC
16692
16693
16694 # save warnings/boilerplate of simple test code
16695 ac_outfile=conftest.$ac_objext
16696echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16697eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16698_lt_compiler_boilerplate=`cat conftest.err`
16699$RM conftest*
16700
16701 ac_outfile=conftest.$ac_objext
16702echo "$lt_simple_link_test_code" >conftest.$ac_ext
16703eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16704_lt_linker_boilerplate=`cat conftest.err`
16705$RM -r conftest*
16706
16707
16708 # Allow CC to be a program name with arguments.
16709 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016710 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016711 lt_save_LD=$LD
16712 lt_save_GCC=$GCC
16713 GCC=$GXX
16714 lt_save_with_gnu_ld=$with_gnu_ld
16715 lt_save_path_LD=$lt_cv_path_LD
16716 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16717 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16718 else
16719 $as_unset lt_cv_prog_gnu_ld
16720 fi
16721 if test -n "${lt_cv_path_LDCXX+set}"; then
16722 lt_cv_path_LD=$lt_cv_path_LDCXX
16723 else
16724 $as_unset lt_cv_path_LD
16725 fi
16726 test -z "${LDCXX+set}" || LD=$LDCXX
16727 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016728 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016729 compiler=$CC
16730 compiler_CXX=$CC
16731 for cc_temp in $compiler""; do
16732 case $cc_temp in
16733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16735 \-*) ;;
16736 *) break;;
16737 esac
16738done
cristy0c60a692010-11-04 01:09:47 +000016739cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016740
16741
16742 if test -n "$compiler"; then
16743 # We don't want -fno-exception when compiling C++ code, so set the
16744 # no_builtin_flag separately
16745 if test "$GXX" = yes; then
16746 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16747 else
16748 lt_prog_compiler_no_builtin_flag_CXX=
16749 fi
16750
16751 if test "$GXX" = yes; then
16752 # Set up default GNU C++ configuration
16753
16754
16755
16756# Check whether --with-gnu-ld was given.
16757if test "${with_gnu_ld+set}" = set; then :
16758 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16759else
16760 with_gnu_ld=no
16761fi
16762
16763ac_prog=ld
16764if test "$GCC" = yes; then
16765 # Check if gcc -print-prog-name=ld gives a path.
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16767$as_echo_n "checking for ld used by $CC... " >&6; }
16768 case $host in
16769 *-*-mingw*)
16770 # gcc leaves a trailing carriage return which upsets mingw
16771 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16772 *)
16773 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16774 esac
16775 case $ac_prog in
16776 # Accept absolute paths.
16777 [\\/]* | ?:[\\/]*)
16778 re_direlt='/[^/][^/]*/\.\./'
16779 # Canonicalize the pathname of ld
16780 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16781 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16782 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16783 done
16784 test -z "$LD" && LD="$ac_prog"
16785 ;;
16786 "")
16787 # If it fails, then pretend we aren't using GCC.
16788 ac_prog=ld
16789 ;;
16790 *)
16791 # If it is relative, then search for the first ld in PATH.
16792 with_gnu_ld=unknown
16793 ;;
16794 esac
16795elif test "$with_gnu_ld" = yes; then
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16797$as_echo_n "checking for GNU ld... " >&6; }
16798else
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16800$as_echo_n "checking for non-GNU ld... " >&6; }
16801fi
cristyda16f162011-02-19 23:52:17 +000016802if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016803 $as_echo_n "(cached) " >&6
16804else
16805 if test -z "$LD"; then
16806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16807 for ac_dir in $PATH; do
16808 IFS="$lt_save_ifs"
16809 test -z "$ac_dir" && ac_dir=.
16810 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16811 lt_cv_path_LD="$ac_dir/$ac_prog"
16812 # Check to see if the program is GNU ld. I'd rather use --version,
16813 # but apparently some variants of GNU ld only accept -v.
16814 # Break only if it was the GNU/non-GNU ld that we prefer.
16815 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16816 *GNU* | *'with BFD'*)
16817 test "$with_gnu_ld" != no && break
16818 ;;
16819 *)
16820 test "$with_gnu_ld" != yes && break
16821 ;;
16822 esac
16823 fi
16824 done
16825 IFS="$lt_save_ifs"
16826else
16827 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16828fi
16829fi
16830
16831LD="$lt_cv_path_LD"
16832if test -n "$LD"; then
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16834$as_echo "$LD" >&6; }
16835else
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16837$as_echo "no" >&6; }
16838fi
cristy98dddb52010-11-04 00:30:15 +000016839test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16841$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016842if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016843 $as_echo_n "(cached) " >&6
16844else
16845 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16846case `$LD -v 2>&1 </dev/null` in
16847*GNU* | *'with BFD'*)
16848 lt_cv_prog_gnu_ld=yes
16849 ;;
16850*)
16851 lt_cv_prog_gnu_ld=no
16852 ;;
16853esac
16854fi
16855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16856$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16857with_gnu_ld=$lt_cv_prog_gnu_ld
16858
16859
16860
16861
16862
16863
16864
16865 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16866 # archiving commands below assume that GNU ld is being used.
16867 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016868 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16869 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 +000016870
16871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16872 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16873
16874 # If archive_cmds runs LD, not CC, wlarc should be empty
16875 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16876 # investigate it a little bit more. (MM)
16877 wlarc='${wl}'
16878
16879 # ancient GNU ld didn't support --whole-archive et. al.
16880 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16881 $GREP 'no-whole-archive' > /dev/null; then
16882 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16883 else
16884 whole_archive_flag_spec_CXX=
16885 fi
16886 else
16887 with_gnu_ld=no
16888 wlarc=
16889
16890 # A generic and very simple default shared library creation
16891 # command for GNU C++ for the case where it uses the native
16892 # linker, instead of GNU ld. If possible, this setting should
16893 # overridden to take advantage of the native linker features on
16894 # the platform it is being used on.
16895 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16896 fi
16897
16898 # Commands to make compiler produce verbose output that lists
16899 # what "hidden" libraries, object files and flags are used when
16900 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016902
16903 else
16904 GXX=no
16905 with_gnu_ld=no
16906 wlarc=
16907 fi
16908
16909 # PORTME: fill in a description of your system's C++ link characteristics
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16911$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16912 ld_shlibs_CXX=yes
16913 case $host_os in
16914 aix3*)
16915 # FIXME: insert proper C++ library support
16916 ld_shlibs_CXX=no
16917 ;;
16918 aix[4-9]*)
16919 if test "$host_cpu" = ia64; then
16920 # On IA64, the linker does run time linking by default, so we don't
16921 # have to do anything special.
16922 aix_use_runtimelinking=no
16923 exp_sym_flag='-Bexport'
16924 no_entry_flag=""
16925 else
16926 aix_use_runtimelinking=no
16927
16928 # Test if we are trying to use run time linking or normal
16929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16930 # need to do runtime linking.
16931 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16932 for ld_flag in $LDFLAGS; do
16933 case $ld_flag in
16934 *-brtl*)
16935 aix_use_runtimelinking=yes
16936 break
16937 ;;
16938 esac
16939 done
16940 ;;
16941 esac
16942
16943 exp_sym_flag='-bexport'
16944 no_entry_flag='-bnoentry'
16945 fi
16946
16947 # When large executables or shared objects are built, AIX ld can
16948 # have problems creating the table of contents. If linking a library
16949 # or program results in "error TOC overflow" add -mminimal-toc to
16950 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16951 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16952
16953 archive_cmds_CXX=''
16954 hardcode_direct_CXX=yes
16955 hardcode_direct_absolute_CXX=yes
16956 hardcode_libdir_separator_CXX=':'
16957 link_all_deplibs_CXX=yes
16958 file_list_spec_CXX='${wl}-f,'
16959
16960 if test "$GXX" = yes; then
16961 case $host_os in aix4.[012]|aix4.[012].*)
16962 # We only want to do this on AIX 4.2 and lower, the check
16963 # below for broken collect2 doesn't work under 4.3+
16964 collect2name=`${CC} -print-prog-name=collect2`
16965 if test -f "$collect2name" &&
16966 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16967 then
16968 # We have reworked collect2
16969 :
16970 else
16971 # We have old collect2
16972 hardcode_direct_CXX=unsupported
16973 # It fails to find uninstalled libraries when the uninstalled
16974 # path is not listed in the libpath. Setting hardcode_minus_L
16975 # to unsupported forces relinking
16976 hardcode_minus_L_CXX=yes
16977 hardcode_libdir_flag_spec_CXX='-L$libdir'
16978 hardcode_libdir_separator_CXX=
16979 fi
16980 esac
16981 shared_flag='-shared'
16982 if test "$aix_use_runtimelinking" = yes; then
16983 shared_flag="$shared_flag "'${wl}-G'
16984 fi
16985 else
16986 # not using gcc
16987 if test "$host_cpu" = ia64; then
16988 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16989 # chokes on -Wl,-G. The following line is correct:
16990 shared_flag='-G'
16991 else
16992 if test "$aix_use_runtimelinking" = yes; then
16993 shared_flag='${wl}-G'
16994 else
16995 shared_flag='${wl}-bM:SRE'
16996 fi
16997 fi
16998 fi
16999
17000 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17001 # It seems that -bexpall does not export symbols beginning with
17002 # underscore (_), so it is better to generate a list of symbols to
17003 # export.
17004 always_export_symbols_CXX=yes
17005 if test "$aix_use_runtimelinking" = yes; then
17006 # Warning - without using the other runtime loading flags (-brtl),
17007 # -berok will link without error, but may produce a broken library.
17008 allow_undefined_flag_CXX='-berok'
17009 # Determine the default libpath from the value encoded in an empty
17010 # executable.
cristyda16f162011-02-19 23:52:17 +000017011 if test "${lt_cv_aix_libpath+set}" = set; then
17012 aix_libpath=$lt_cv_aix_libpath
17013else
17014 if ${lt_cv_aix_libpath__CXX+:} false; then :
17015 $as_echo_n "(cached) " >&6
17016else
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017018/* end confdefs.h. */
17019
17020int
17021main ()
17022{
17023
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028if ac_fn_cxx_try_link "$LINENO"; then :
17029
cristyda16f162011-02-19 23:52:17 +000017030 lt_aix_libpath_sed='
17031 /Import File Strings/,/^$/ {
17032 /^0/ {
17033 s/^0 *\([^ ]*\) *$/\1/
17034 p
17035 }
17036 }'
17037 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17038 # Check for a 64-bit object if we didn't find anything.
17039 if test -z "$lt_cv_aix_libpath__CXX"; then
17040 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17041 fi
cristy73bd4a52010-10-05 11:24:23 +000017042fi
17043rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017045 if test -z "$lt_cv_aix_libpath__CXX"; then
17046 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17047 fi
17048
17049fi
17050
17051 aix_libpath=$lt_cv_aix_libpath__CXX
17052fi
cristy73bd4a52010-10-05 11:24:23 +000017053
17054 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17055
cristy0c60a692010-11-04 01:09:47 +000017056 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 +000017057 else
17058 if test "$host_cpu" = ia64; then
17059 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17060 allow_undefined_flag_CXX="-z nodefs"
17061 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"
17062 else
17063 # Determine the default libpath from the value encoded in an
17064 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017065 if test "${lt_cv_aix_libpath+set}" = set; then
17066 aix_libpath=$lt_cv_aix_libpath
17067else
17068 if ${lt_cv_aix_libpath__CXX+:} false; then :
17069 $as_echo_n "(cached) " >&6
17070else
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017072/* end confdefs.h. */
17073
17074int
17075main ()
17076{
17077
17078 ;
17079 return 0;
17080}
17081_ACEOF
17082if ac_fn_cxx_try_link "$LINENO"; then :
17083
cristyda16f162011-02-19 23:52:17 +000017084 lt_aix_libpath_sed='
17085 /Import File Strings/,/^$/ {
17086 /^0/ {
17087 s/^0 *\([^ ]*\) *$/\1/
17088 p
17089 }
17090 }'
17091 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17092 # Check for a 64-bit object if we didn't find anything.
17093 if test -z "$lt_cv_aix_libpath__CXX"; then
17094 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17095 fi
cristy73bd4a52010-10-05 11:24:23 +000017096fi
17097rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017099 if test -z "$lt_cv_aix_libpath__CXX"; then
17100 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17101 fi
17102
17103fi
17104
17105 aix_libpath=$lt_cv_aix_libpath__CXX
17106fi
cristy73bd4a52010-10-05 11:24:23 +000017107
17108 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17109 # Warning - without using the other run time loading flags,
17110 # -berok will link without error, but may produce a broken library.
17111 no_undefined_flag_CXX=' ${wl}-bernotok'
17112 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017113 if test "$with_gnu_ld" = yes; then
17114 # We only use this code for GNU lds that support --whole-archive.
17115 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17116 else
17117 # Exported symbols can be pulled into shared objects from archives
17118 whole_archive_flag_spec_CXX='$convenience'
17119 fi
cristy73bd4a52010-10-05 11:24:23 +000017120 archive_cmds_need_lc_CXX=yes
17121 # This is similar to how AIX traditionally builds its shared
17122 # libraries.
17123 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'
17124 fi
17125 fi
17126 ;;
17127
17128 beos*)
17129 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17130 allow_undefined_flag_CXX=unsupported
17131 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17132 # support --undefined. This deserves some investigation. FIXME
17133 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17134 else
17135 ld_shlibs_CXX=no
17136 fi
17137 ;;
17138
17139 chorus*)
17140 case $cc_basename in
17141 *)
17142 # FIXME: insert proper C++ library support
17143 ld_shlibs_CXX=no
17144 ;;
17145 esac
17146 ;;
17147
17148 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017149 case $GXX,$cc_basename in
17150 ,cl* | no,cl*)
17151 # Native MSVC
17152 # hardcode_libdir_flag_spec is actually meaningless, as there is
17153 # no search path for DLLs.
17154 hardcode_libdir_flag_spec_CXX=' '
17155 allow_undefined_flag_CXX=unsupported
17156 always_export_symbols_CXX=yes
17157 file_list_spec_CXX='@'
17158 # Tell ltmain to make .lib files, not .a files.
17159 libext=lib
17160 # Tell ltmain to make .dll files, not .so files.
17161 shrext_cmds=".dll"
17162 # FIXME: Setting linknames here is a bad hack.
17163 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17164 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17165 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17166 else
17167 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17168 fi~
17169 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17170 linknames='
17171 # The linker will not automatically build a static lib if we build a DLL.
17172 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17173 enable_shared_with_static_runtimes_CXX=yes
17174 # Don't use ranlib
17175 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17176 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17177 lt_tool_outputfile="@TOOL_OUTPUT@"~
17178 case $lt_outputfile in
17179 *.exe|*.EXE) ;;
17180 *)
17181 lt_outputfile="$lt_outputfile.exe"
17182 lt_tool_outputfile="$lt_tool_outputfile.exe"
17183 ;;
17184 esac~
17185 func_to_tool_file "$lt_outputfile"~
17186 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17187 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17188 $RM "$lt_outputfile.manifest";
17189 fi'
17190 ;;
17191 *)
17192 # g++
17193 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17194 # as there is no search path for DLLs.
17195 hardcode_libdir_flag_spec_CXX='-L$libdir'
17196 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17197 allow_undefined_flag_CXX=unsupported
17198 always_export_symbols_CXX=no
17199 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017200
cristyda16f162011-02-19 23:52:17 +000017201 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17202 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'
17203 # If the export-symbols file already is a .def file (1st line
17204 # is EXPORTS), use it as is; otherwise, prepend...
17205 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17206 cp $export_symbols $output_objdir/$soname.def;
17207 else
17208 echo EXPORTS > $output_objdir/$soname.def;
17209 cat $export_symbols >> $output_objdir/$soname.def;
17210 fi~
17211 $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'
17212 else
17213 ld_shlibs_CXX=no
17214 fi
17215 ;;
17216 esac
17217 ;;
cristy73bd4a52010-10-05 11:24:23 +000017218 darwin* | rhapsody*)
17219
17220
17221 archive_cmds_need_lc_CXX=no
17222 hardcode_direct_CXX=no
17223 hardcode_automatic_CXX=yes
17224 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017225 if test "$lt_cv_ld_force_load" = "yes"; then
17226 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\"`'
17227 else
17228 whole_archive_flag_spec_CXX=''
17229 fi
cristy73bd4a52010-10-05 11:24:23 +000017230 link_all_deplibs_CXX=yes
17231 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17232 case $cc_basename in
17233 ifort*) _lt_dar_can_shared=yes ;;
17234 *) _lt_dar_can_shared=$GCC ;;
17235 esac
17236 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017237 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017238 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}"
17239 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17240 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}"
17241 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}"
17242 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17243 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}"
17244 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}"
17245 fi
17246
17247 else
17248 ld_shlibs_CXX=no
17249 fi
17250
17251 ;;
17252
17253 dgux*)
17254 case $cc_basename in
17255 ec++*)
17256 # FIXME: insert proper C++ library support
17257 ld_shlibs_CXX=no
17258 ;;
17259 ghcx*)
17260 # Green Hills C++ Compiler
17261 # FIXME: insert proper C++ library support
17262 ld_shlibs_CXX=no
17263 ;;
17264 *)
17265 # FIXME: insert proper C++ library support
17266 ld_shlibs_CXX=no
17267 ;;
17268 esac
17269 ;;
17270
17271 freebsd[12]*)
17272 # C++ shared libraries reported to be fairly broken before
17273 # switch to ELF
17274 ld_shlibs_CXX=no
17275 ;;
17276
17277 freebsd-elf*)
17278 archive_cmds_need_lc_CXX=no
17279 ;;
17280
17281 freebsd* | dragonfly*)
17282 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17283 # conventions
17284 ld_shlibs_CXX=yes
17285 ;;
17286
17287 gnu*)
17288 ;;
17289
cristy0c60a692010-11-04 01:09:47 +000017290 haiku*)
17291 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17292 link_all_deplibs_CXX=yes
17293 ;;
17294
cristy73bd4a52010-10-05 11:24:23 +000017295 hpux9*)
17296 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17297 hardcode_libdir_separator_CXX=:
17298 export_dynamic_flag_spec_CXX='${wl}-E'
17299 hardcode_direct_CXX=yes
17300 hardcode_minus_L_CXX=yes # Not in the search PATH,
17301 # but as the default
17302 # location of the library.
17303
17304 case $cc_basename in
17305 CC*)
17306 # FIXME: insert proper C++ library support
17307 ld_shlibs_CXX=no
17308 ;;
17309 aCC*)
17310 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'
17311 # Commands to make compiler produce verbose output that lists
17312 # what "hidden" libraries, object files and flags are used when
17313 # linking a shared library.
17314 #
17315 # There doesn't appear to be a way to prevent this compiler from
17316 # explicitly linking system object files so we need to strip them
17317 # from the output so that they don't get included in the library
17318 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017319 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 +000017320 ;;
17321 *)
17322 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017323 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 +000017324 else
17325 # FIXME: insert proper C++ library support
17326 ld_shlibs_CXX=no
17327 fi
17328 ;;
17329 esac
17330 ;;
17331
17332 hpux10*|hpux11*)
17333 if test $with_gnu_ld = no; then
17334 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17335 hardcode_libdir_separator_CXX=:
17336
17337 case $host_cpu in
17338 hppa*64*|ia64*)
17339 ;;
17340 *)
17341 export_dynamic_flag_spec_CXX='${wl}-E'
17342 ;;
17343 esac
17344 fi
17345 case $host_cpu in
17346 hppa*64*|ia64*)
17347 hardcode_direct_CXX=no
17348 hardcode_shlibpath_var_CXX=no
17349 ;;
17350 *)
17351 hardcode_direct_CXX=yes
17352 hardcode_direct_absolute_CXX=yes
17353 hardcode_minus_L_CXX=yes # Not in the search PATH,
17354 # but as the default
17355 # location of the library.
17356 ;;
17357 esac
17358
17359 case $cc_basename in
17360 CC*)
17361 # FIXME: insert proper C++ library support
17362 ld_shlibs_CXX=no
17363 ;;
17364 aCC*)
17365 case $host_cpu in
17366 hppa*64*)
17367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17368 ;;
17369 ia64*)
17370 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17371 ;;
17372 *)
17373 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17374 ;;
17375 esac
17376 # Commands to make compiler produce verbose output that lists
17377 # what "hidden" libraries, object files and flags are used when
17378 # linking a shared library.
17379 #
17380 # There doesn't appear to be a way to prevent this compiler from
17381 # explicitly linking system object files so we need to strip them
17382 # from the output so that they don't get included in the library
17383 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017384 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 +000017385 ;;
17386 *)
17387 if test "$GXX" = yes; then
17388 if test $with_gnu_ld = no; then
17389 case $host_cpu in
17390 hppa*64*)
17391 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17392 ;;
17393 ia64*)
cristyda16f162011-02-19 23:52:17 +000017394 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 +000017395 ;;
17396 *)
cristyda16f162011-02-19 23:52:17 +000017397 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 +000017398 ;;
17399 esac
17400 fi
17401 else
17402 # FIXME: insert proper C++ library support
17403 ld_shlibs_CXX=no
17404 fi
17405 ;;
17406 esac
17407 ;;
17408
17409 interix[3-9]*)
17410 hardcode_direct_CXX=no
17411 hardcode_shlibpath_var_CXX=no
17412 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17413 export_dynamic_flag_spec_CXX='${wl}-E'
17414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17415 # Instead, shared libraries are loaded at an image base (0x10000000 by
17416 # default) and relocated if they conflict, which is a slow very memory
17417 # consuming and fragmenting process. To avoid this, we pick a random,
17418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17420 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'
17421 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'
17422 ;;
17423 irix5* | irix6*)
17424 case $cc_basename in
17425 CC*)
17426 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017427 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 +000017428
17429 # Archives containing C++ object files must be created using
17430 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17431 # necessary to make sure instantiated templates are included
17432 # in the archive.
17433 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17434 ;;
17435 *)
17436 if test "$GXX" = yes; then
17437 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017438 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 +000017439 else
cristyda16f162011-02-19 23:52:17 +000017440 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 +000017441 fi
17442 fi
17443 link_all_deplibs_CXX=yes
17444 ;;
17445 esac
17446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17447 hardcode_libdir_separator_CXX=:
17448 inherit_rpath_CXX=yes
17449 ;;
17450
cristy0c60a692010-11-04 01:09:47 +000017451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017452 case $cc_basename in
17453 KCC*)
17454 # Kuck and Associates, Inc. (KAI) C++ Compiler
17455
17456 # KCC will only create a shared library if the output file
17457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17458 # to its proper name (with version) after linking.
17459 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'
17460 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'
17461 # Commands to make compiler produce verbose output that lists
17462 # what "hidden" libraries, object files and flags are used when
17463 # linking a shared library.
17464 #
17465 # There doesn't appear to be a way to prevent this compiler from
17466 # explicitly linking system object files so we need to strip them
17467 # from the output so that they don't get included in the library
17468 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017469 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 +000017470
17471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17473
17474 # Archives containing C++ object files must be created using
17475 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17476 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17477 ;;
17478 icpc* | ecpc* )
17479 # Intel C++
17480 with_gnu_ld=yes
17481 # version 8.0 and above of icpc choke on multiply defined symbols
17482 # if we add $predep_objects and $postdep_objects, however 7.1 and
17483 # earlier do not add the objects themselves.
17484 case `$CC -V 2>&1` in
17485 *"Version 7."*)
17486 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17487 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'
17488 ;;
17489 *) # Version 8.0 or newer
17490 tmp_idyn=
17491 case $host_cpu in
17492 ia64*) tmp_idyn=' -i_dynamic';;
17493 esac
17494 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17495 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'
17496 ;;
17497 esac
17498 archive_cmds_need_lc_CXX=no
17499 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17501 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17502 ;;
17503 pgCC* | pgcpp*)
17504 # Portland Group C++ compiler
17505 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017506 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017507 prelink_cmds_CXX='tpldir=Template.dir~
17508 rm -rf $tpldir~
17509 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017510 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017511 old_archive_cmds_CXX='tpldir=Template.dir~
17512 rm -rf $tpldir~
17513 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017514 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017515 $RANLIB $oldlib'
17516 archive_cmds_CXX='tpldir=Template.dir~
17517 rm -rf $tpldir~
17518 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017519 $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 +000017520 archive_expsym_cmds_CXX='tpldir=Template.dir~
17521 rm -rf $tpldir~
17522 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017523 $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 +000017524 ;;
cristy0c60a692010-11-04 01:09:47 +000017525 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017526 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17527 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'
17528 ;;
17529 esac
17530
17531 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017533 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 +000017534 ;;
17535 cxx*)
17536 # Compaq C++
17537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17538 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'
17539
17540 runpath_var=LD_RUN_PATH
17541 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17542 hardcode_libdir_separator_CXX=:
17543
17544 # Commands to make compiler produce verbose output that lists
17545 # what "hidden" libraries, object files and flags are used when
17546 # linking a shared library.
17547 #
17548 # There doesn't appear to be a way to prevent this compiler from
17549 # explicitly linking system object files so we need to strip them
17550 # from the output so that they don't get included in the library
17551 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017552 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 +000017553 ;;
cristy0c60a692010-11-04 01:09:47 +000017554 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017555 # IBM XL 8.0 on PPC, with GNU ld
17556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17558 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17559 if test "x$supports_anon_versioning" = xyes; then
17560 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17562 echo "local: *; };" >> $output_objdir/$libname.ver~
17563 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17564 fi
17565 ;;
17566 *)
17567 case `$CC -V 2>&1 | sed 5q` in
17568 *Sun\ C*)
17569 # Sun C++ 5.9
17570 no_undefined_flag_CXX=' -zdefs'
17571 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17572 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'
17573 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017574 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 +000017575 compiler_needs_object_CXX=yes
17576
17577 # Not sure whether something based on
17578 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17579 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017580 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017581
17582 # Archives containing C++ object files must be created using
17583 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17584 # necessary to make sure instantiated templates are included
17585 # in the archive.
17586 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17587 ;;
17588 esac
17589 ;;
17590 esac
17591 ;;
17592
17593 lynxos*)
17594 # FIXME: insert proper C++ library support
17595 ld_shlibs_CXX=no
17596 ;;
17597
17598 m88k*)
17599 # FIXME: insert proper C++ library support
17600 ld_shlibs_CXX=no
17601 ;;
17602
17603 mvs*)
17604 case $cc_basename in
17605 cxx*)
17606 # FIXME: insert proper C++ library support
17607 ld_shlibs_CXX=no
17608 ;;
17609 *)
17610 # FIXME: insert proper C++ library support
17611 ld_shlibs_CXX=no
17612 ;;
17613 esac
17614 ;;
17615
17616 netbsd*)
17617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17618 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17619 wlarc=
17620 hardcode_libdir_flag_spec_CXX='-R$libdir'
17621 hardcode_direct_CXX=yes
17622 hardcode_shlibpath_var_CXX=no
17623 fi
17624 # Workaround some broken pre-1.5 toolchains
17625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17626 ;;
17627
17628 *nto* | *qnx*)
17629 ld_shlibs_CXX=yes
17630 ;;
17631
17632 openbsd2*)
17633 # C++ shared libraries are fairly broken
17634 ld_shlibs_CXX=no
17635 ;;
17636
17637 openbsd*)
17638 if test -f /usr/libexec/ld.so; then
17639 hardcode_direct_CXX=yes
17640 hardcode_shlibpath_var_CXX=no
17641 hardcode_direct_absolute_CXX=yes
17642 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17645 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17646 export_dynamic_flag_spec_CXX='${wl}-E'
17647 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17648 fi
cristy0c60a692010-11-04 01:09:47 +000017649 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017650 else
17651 ld_shlibs_CXX=no
17652 fi
17653 ;;
17654
17655 osf3* | osf4* | osf5*)
17656 case $cc_basename in
17657 KCC*)
17658 # Kuck and Associates, Inc. (KAI) C++ Compiler
17659
17660 # KCC will only create a shared library if the output file
17661 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17662 # to its proper name (with version) after linking.
17663 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'
17664
17665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17666 hardcode_libdir_separator_CXX=:
17667
17668 # Archives containing C++ object files must be created using
17669 # the KAI C++ compiler.
17670 case $host in
17671 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17672 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17673 esac
17674 ;;
17675 RCC*)
17676 # Rational C++ 2.4.1
17677 # FIXME: insert proper C++ library support
17678 ld_shlibs_CXX=no
17679 ;;
17680 cxx*)
17681 case $host in
17682 osf3*)
17683 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017684 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 +000017685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17686 ;;
17687 *)
17688 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017689 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 +000017690 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17691 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017692 $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 +000017693 $RM $lib.exp'
17694 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17695 ;;
17696 esac
17697
17698 hardcode_libdir_separator_CXX=:
17699
17700 # Commands to make compiler produce verbose output that lists
17701 # what "hidden" libraries, object files and flags are used when
17702 # linking a shared library.
17703 #
17704 # There doesn't appear to be a way to prevent this compiler from
17705 # explicitly linking system object files so we need to strip them
17706 # from the output so that they don't get included in the library
17707 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017708 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 +000017709 ;;
17710 *)
17711 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17712 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17713 case $host in
17714 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017715 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 +000017716 ;;
17717 *)
cristyda16f162011-02-19 23:52:17 +000017718 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 +000017719 ;;
17720 esac
17721
17722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17723 hardcode_libdir_separator_CXX=:
17724
17725 # Commands to make compiler produce verbose output that lists
17726 # what "hidden" libraries, object files and flags are used when
17727 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017728 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017729
17730 else
17731 # FIXME: insert proper C++ library support
17732 ld_shlibs_CXX=no
17733 fi
17734 ;;
17735 esac
17736 ;;
17737
17738 psos*)
17739 # FIXME: insert proper C++ library support
17740 ld_shlibs_CXX=no
17741 ;;
17742
17743 sunos4*)
17744 case $cc_basename in
17745 CC*)
17746 # Sun C++ 4.x
17747 # FIXME: insert proper C++ library support
17748 ld_shlibs_CXX=no
17749 ;;
17750 lcc*)
17751 # Lucid
17752 # FIXME: insert proper C++ library support
17753 ld_shlibs_CXX=no
17754 ;;
17755 *)
17756 # FIXME: insert proper C++ library support
17757 ld_shlibs_CXX=no
17758 ;;
17759 esac
17760 ;;
17761
17762 solaris*)
17763 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017764 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017765 # Sun C++ 4.2, 5.x and Centerline C++
17766 archive_cmds_need_lc_CXX=yes
17767 no_undefined_flag_CXX=' -zdefs'
17768 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17769 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17770 $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'
17771
17772 hardcode_libdir_flag_spec_CXX='-R$libdir'
17773 hardcode_shlibpath_var_CXX=no
17774 case $host_os in
17775 solaris2.[0-5] | solaris2.[0-5].*) ;;
17776 *)
17777 # The compiler driver will combine and reorder linker options,
17778 # but understands `-z linker_flag'.
17779 # Supported since Solaris 2.6 (maybe 2.5.1?)
17780 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17781 ;;
17782 esac
17783 link_all_deplibs_CXX=yes
17784
cristy0c60a692010-11-04 01:09:47 +000017785 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017786
17787 # Archives containing C++ object files must be created using
17788 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17789 # necessary to make sure instantiated templates are included
17790 # in the archive.
17791 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17792 ;;
17793 gcx*)
17794 # Green Hills C++ Compiler
17795 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17796
17797 # The C++ compiler must be used to create the archive.
17798 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17799 ;;
17800 *)
17801 # GNU C++ compiler with Solaris linker
17802 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17803 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17804 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017805 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 +000017806 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 +000017807 $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 +000017808
17809 # Commands to make compiler produce verbose output that lists
17810 # what "hidden" libraries, object files and flags are used when
17811 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017813 else
17814 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17815 # platform.
17816 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17817 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17818 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17819
17820 # Commands to make compiler produce verbose output that lists
17821 # what "hidden" libraries, object files and flags are used when
17822 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017823 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017824 fi
17825
17826 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17827 case $host_os in
17828 solaris2.[0-5] | solaris2.[0-5].*) ;;
17829 *)
17830 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17831 ;;
17832 esac
17833 fi
17834 ;;
17835 esac
17836 ;;
17837
17838 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17839 no_undefined_flag_CXX='${wl}-z,text'
17840 archive_cmds_need_lc_CXX=no
17841 hardcode_shlibpath_var_CXX=no
17842 runpath_var='LD_RUN_PATH'
17843
17844 case $cc_basename in
17845 CC*)
17846 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17848 ;;
17849 *)
17850 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17851 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17852 ;;
17853 esac
17854 ;;
17855
17856 sysv5* | sco3.2v5* | sco5v6*)
17857 # Note: We can NOT use -z defs as we might desire, because we do not
17858 # link with -lc, and that would cause any symbols used from libc to
17859 # always be unresolved, which means just about no library would
17860 # ever link correctly. If we're not using GNU ld we use -z text
17861 # though, which does catch some bad symbols but isn't as heavy-handed
17862 # as -z defs.
17863 no_undefined_flag_CXX='${wl}-z,text'
17864 allow_undefined_flag_CXX='${wl}-z,nodefs'
17865 archive_cmds_need_lc_CXX=no
17866 hardcode_shlibpath_var_CXX=no
17867 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17868 hardcode_libdir_separator_CXX=':'
17869 link_all_deplibs_CXX=yes
17870 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17871 runpath_var='LD_RUN_PATH'
17872
17873 case $cc_basename in
17874 CC*)
17875 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17876 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 +000017877 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17878 '"$old_archive_cmds_CXX"
17879 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17880 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017881 ;;
17882 *)
17883 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17884 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17885 ;;
17886 esac
17887 ;;
17888
17889 tandem*)
17890 case $cc_basename in
17891 NCC*)
17892 # NonStop-UX NCC 3.20
17893 # FIXME: insert proper C++ library support
17894 ld_shlibs_CXX=no
17895 ;;
17896 *)
17897 # FIXME: insert proper C++ library support
17898 ld_shlibs_CXX=no
17899 ;;
17900 esac
17901 ;;
17902
17903 vxworks*)
17904 # FIXME: insert proper C++ library support
17905 ld_shlibs_CXX=no
17906 ;;
17907
17908 *)
17909 # FIXME: insert proper C++ library support
17910 ld_shlibs_CXX=no
17911 ;;
17912 esac
17913
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17915$as_echo "$ld_shlibs_CXX" >&6; }
17916 test "$ld_shlibs_CXX" = no && can_build_shared=no
17917
17918 GCC_CXX="$GXX"
17919 LD_CXX="$LD"
17920
17921 ## CAVEAT EMPTOR:
17922 ## There is no encapsulation within the following macros, do not change
17923 ## the running order or otherwise move them around unless you know exactly
17924 ## what you are doing...
17925 # Dependencies to place before and after the object being linked:
17926predep_objects_CXX=
17927postdep_objects_CXX=
17928predeps_CXX=
17929postdeps_CXX=
17930compiler_lib_search_path_CXX=
17931
17932cat > conftest.$ac_ext <<_LT_EOF
17933class Foo
17934{
17935public:
17936 Foo (void) { a = 0; }
17937private:
17938 int a;
17939};
17940_LT_EOF
17941
cristyda16f162011-02-19 23:52:17 +000017942
17943_lt_libdeps_save_CFLAGS=$CFLAGS
17944case "$CC $CFLAGS " in #(
17945*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17946*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17947esac
17948
cristy73bd4a52010-10-05 11:24:23 +000017949if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17950 (eval $ac_compile) 2>&5
17951 ac_status=$?
17952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17953 test $ac_status = 0; }; then
17954 # Parse the compiler output and extract the necessary
17955 # objects, libraries and library flags.
17956
17957 # Sentinel used to keep track of whether or not we are before
17958 # the conftest object file.
17959 pre_test_object_deps_done=no
17960
17961 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017962 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017963
17964 -L* | -R* | -l*)
17965 # Some compilers place space between "-{L,R}" and the path.
17966 # Remove the space.
17967 if test $p = "-L" ||
17968 test $p = "-R"; then
17969 prev=$p
17970 continue
cristy73bd4a52010-10-05 11:24:23 +000017971 fi
17972
cristyda16f162011-02-19 23:52:17 +000017973 # Expand the sysroot to ease extracting the directories later.
17974 if test -z "$prev"; then
17975 case $p in
17976 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17977 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17978 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17979 esac
17980 fi
17981 case $p in
17982 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17983 esac
cristy73bd4a52010-10-05 11:24:23 +000017984 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017985 case ${prev} in
17986 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017987 # Internal compiler library paths should come after those
17988 # provided the user. The postdeps already come after the
17989 # user supplied libs so there is no need to process them.
17990 if test -z "$compiler_lib_search_path_CXX"; then
17991 compiler_lib_search_path_CXX="${prev}${p}"
17992 else
17993 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17994 fi
17995 ;;
17996 # The "-l" case would never come before the object being
17997 # linked, so don't bother handling this case.
17998 esac
17999 else
18000 if test -z "$postdeps_CXX"; then
18001 postdeps_CXX="${prev}${p}"
18002 else
18003 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18004 fi
18005 fi
cristyda16f162011-02-19 23:52:17 +000018006 prev=
cristy73bd4a52010-10-05 11:24:23 +000018007 ;;
18008
cristyda16f162011-02-19 23:52:17 +000018009 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018010 *.$objext)
18011 # This assumes that the test object file only shows up
18012 # once in the compiler output.
18013 if test "$p" = "conftest.$objext"; then
18014 pre_test_object_deps_done=yes
18015 continue
18016 fi
18017
18018 if test "$pre_test_object_deps_done" = no; then
18019 if test -z "$predep_objects_CXX"; then
18020 predep_objects_CXX="$p"
18021 else
18022 predep_objects_CXX="$predep_objects_CXX $p"
18023 fi
18024 else
18025 if test -z "$postdep_objects_CXX"; then
18026 postdep_objects_CXX="$p"
18027 else
18028 postdep_objects_CXX="$postdep_objects_CXX $p"
18029 fi
18030 fi
18031 ;;
18032
18033 *) ;; # Ignore the rest.
18034
18035 esac
18036 done
18037
18038 # Clean up.
18039 rm -f a.out a.exe
18040else
18041 echo "libtool.m4: error: problem compiling CXX test program"
18042fi
18043
18044$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018045CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018046
18047# PORTME: override above test on systems where it is broken
18048case $host_os in
18049interix[3-9]*)
18050 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18051 # hack all around it, let's just trust "g++" to DTRT.
18052 predep_objects_CXX=
18053 postdep_objects_CXX=
18054 postdeps_CXX=
18055 ;;
18056
18057linux*)
18058 case `$CC -V 2>&1 | sed 5q` in
18059 *Sun\ C*)
18060 # Sun C++ 5.9
18061
18062 # The more standards-conforming stlport4 library is
18063 # incompatible with the Cstd library. Avoid specifying
18064 # it if it's in CXXFLAGS. Ignore libCrun as
18065 # -library=stlport4 depends on it.
18066 case " $CXX $CXXFLAGS " in
18067 *" -library=stlport4 "*)
18068 solaris_use_stlport4=yes
18069 ;;
18070 esac
18071
18072 if test "$solaris_use_stlport4" != yes; then
18073 postdeps_CXX='-library=Cstd -library=Crun'
18074 fi
18075 ;;
18076 esac
18077 ;;
18078
18079solaris*)
18080 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018081 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018082 # The more standards-conforming stlport4 library is
18083 # incompatible with the Cstd library. Avoid specifying
18084 # it if it's in CXXFLAGS. Ignore libCrun as
18085 # -library=stlport4 depends on it.
18086 case " $CXX $CXXFLAGS " in
18087 *" -library=stlport4 "*)
18088 solaris_use_stlport4=yes
18089 ;;
18090 esac
18091
18092 # Adding this requires a known-good setup of shared libraries for
18093 # Sun compiler versions before 5.6, else PIC objects from an old
18094 # archive will be linked into the output, leading to subtle bugs.
18095 if test "$solaris_use_stlport4" != yes; then
18096 postdeps_CXX='-library=Cstd -library=Crun'
18097 fi
18098 ;;
18099 esac
18100 ;;
18101esac
18102
18103
18104case " $postdeps_CXX " in
18105*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18106esac
18107 compiler_lib_search_dirs_CXX=
18108if test -n "${compiler_lib_search_path_CXX}"; then
18109 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18110fi
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142 lt_prog_compiler_wl_CXX=
18143lt_prog_compiler_pic_CXX=
18144lt_prog_compiler_static_CXX=
18145
cristy73bd4a52010-10-05 11:24:23 +000018146
18147 # C++ specific cases for pic, static, wl, etc.
18148 if test "$GXX" = yes; then
18149 lt_prog_compiler_wl_CXX='-Wl,'
18150 lt_prog_compiler_static_CXX='-static'
18151
18152 case $host_os in
18153 aix*)
18154 # All AIX code is PIC.
18155 if test "$host_cpu" = ia64; then
18156 # AIX 5 now supports IA64 processor
18157 lt_prog_compiler_static_CXX='-Bstatic'
18158 fi
18159 ;;
18160
18161 amigaos*)
18162 case $host_cpu in
18163 powerpc)
18164 # see comment about AmigaOS4 .so support
18165 lt_prog_compiler_pic_CXX='-fPIC'
18166 ;;
18167 m68k)
18168 # FIXME: we need at least 68020 code to build shared libraries, but
18169 # adding the `-m68020' flag to GCC prevents building anything better,
18170 # like `-m68040'.
18171 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18172 ;;
18173 esac
18174 ;;
18175
18176 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18177 # PIC is the default for these OSes.
18178 ;;
18179 mingw* | cygwin* | os2* | pw32* | cegcc*)
18180 # This hack is so that the source file can tell whether it is being
18181 # built for inclusion in a dll (and should export symbols for example).
18182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18183 # (--disable-auto-import) libraries
18184 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18185 ;;
18186 darwin* | rhapsody*)
18187 # PIC is the default on this platform
18188 # Common symbols not allowed in MH_DYLIB files
18189 lt_prog_compiler_pic_CXX='-fno-common'
18190 ;;
18191 *djgpp*)
18192 # DJGPP does not support shared libraries at all
18193 lt_prog_compiler_pic_CXX=
18194 ;;
cristy0c60a692010-11-04 01:09:47 +000018195 haiku*)
18196 # PIC is the default for Haiku.
18197 # The "-static" flag exists, but is broken.
18198 lt_prog_compiler_static_CXX=
18199 ;;
cristy73bd4a52010-10-05 11:24:23 +000018200 interix[3-9]*)
18201 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18202 # Instead, we relocate shared libraries at runtime.
18203 ;;
18204 sysv4*MP*)
18205 if test -d /usr/nec; then
18206 lt_prog_compiler_pic_CXX=-Kconform_pic
18207 fi
18208 ;;
18209 hpux*)
18210 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18211 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18212 # sets the default TLS model and affects inlining.
18213 case $host_cpu in
18214 hppa*64*)
18215 ;;
18216 *)
18217 lt_prog_compiler_pic_CXX='-fPIC'
18218 ;;
18219 esac
18220 ;;
18221 *qnx* | *nto*)
18222 # QNX uses GNU C++, but need to define -shared option too, otherwise
18223 # it will coredump.
18224 lt_prog_compiler_pic_CXX='-fPIC -shared'
18225 ;;
18226 *)
18227 lt_prog_compiler_pic_CXX='-fPIC'
18228 ;;
18229 esac
18230 else
18231 case $host_os in
18232 aix[4-9]*)
18233 # All AIX code is PIC.
18234 if test "$host_cpu" = ia64; then
18235 # AIX 5 now supports IA64 processor
18236 lt_prog_compiler_static_CXX='-Bstatic'
18237 else
18238 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18239 fi
18240 ;;
18241 chorus*)
18242 case $cc_basename in
18243 cxch68*)
18244 # Green Hills C++ Compiler
18245 # _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"
18246 ;;
18247 esac
18248 ;;
cristyda16f162011-02-19 23:52:17 +000018249 mingw* | cygwin* | os2* | pw32* | cegcc*)
18250 # This hack is so that the source file can tell whether it is being
18251 # built for inclusion in a dll (and should export symbols for example).
18252 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18253 ;;
cristy73bd4a52010-10-05 11:24:23 +000018254 dgux*)
18255 case $cc_basename in
18256 ec++*)
18257 lt_prog_compiler_pic_CXX='-KPIC'
18258 ;;
18259 ghcx*)
18260 # Green Hills C++ Compiler
18261 lt_prog_compiler_pic_CXX='-pic'
18262 ;;
18263 *)
18264 ;;
18265 esac
18266 ;;
18267 freebsd* | dragonfly*)
18268 # FreeBSD uses GNU C++
18269 ;;
18270 hpux9* | hpux10* | hpux11*)
18271 case $cc_basename in
18272 CC*)
18273 lt_prog_compiler_wl_CXX='-Wl,'
18274 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18275 if test "$host_cpu" != ia64; then
18276 lt_prog_compiler_pic_CXX='+Z'
18277 fi
18278 ;;
18279 aCC*)
18280 lt_prog_compiler_wl_CXX='-Wl,'
18281 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18282 case $host_cpu in
18283 hppa*64*|ia64*)
18284 # +Z the default
18285 ;;
18286 *)
18287 lt_prog_compiler_pic_CXX='+Z'
18288 ;;
18289 esac
18290 ;;
18291 *)
18292 ;;
18293 esac
18294 ;;
18295 interix*)
18296 # This is c89, which is MS Visual C++ (no shared libs)
18297 # Anyone wants to do a port?
18298 ;;
18299 irix5* | irix6* | nonstopux*)
18300 case $cc_basename in
18301 CC*)
18302 lt_prog_compiler_wl_CXX='-Wl,'
18303 lt_prog_compiler_static_CXX='-non_shared'
18304 # CC pic flag -KPIC is the default.
18305 ;;
18306 *)
18307 ;;
18308 esac
18309 ;;
cristy0c60a692010-11-04 01:09:47 +000018310 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018311 case $cc_basename in
18312 KCC*)
18313 # KAI C++ Compiler
18314 lt_prog_compiler_wl_CXX='--backend -Wl,'
18315 lt_prog_compiler_pic_CXX='-fPIC'
18316 ;;
18317 ecpc* )
18318 # old Intel C++ for x86_64 which still supported -KPIC.
18319 lt_prog_compiler_wl_CXX='-Wl,'
18320 lt_prog_compiler_pic_CXX='-KPIC'
18321 lt_prog_compiler_static_CXX='-static'
18322 ;;
18323 icpc* )
18324 # Intel C++, used to be incompatible with GCC.
18325 # ICC 10 doesn't accept -KPIC any more.
18326 lt_prog_compiler_wl_CXX='-Wl,'
18327 lt_prog_compiler_pic_CXX='-fPIC'
18328 lt_prog_compiler_static_CXX='-static'
18329 ;;
18330 pgCC* | pgcpp*)
18331 # Portland Group C++ compiler
18332 lt_prog_compiler_wl_CXX='-Wl,'
18333 lt_prog_compiler_pic_CXX='-fpic'
18334 lt_prog_compiler_static_CXX='-Bstatic'
18335 ;;
18336 cxx*)
18337 # Compaq C++
18338 # Make sure the PIC flag is empty. It appears that all Alpha
18339 # Linux and Compaq Tru64 Unix objects are PIC.
18340 lt_prog_compiler_pic_CXX=
18341 lt_prog_compiler_static_CXX='-non_shared'
18342 ;;
cristy0c60a692010-11-04 01:09:47 +000018343 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18344 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018345 lt_prog_compiler_wl_CXX='-Wl,'
18346 lt_prog_compiler_pic_CXX='-qpic'
18347 lt_prog_compiler_static_CXX='-qstaticlink'
18348 ;;
18349 *)
18350 case `$CC -V 2>&1 | sed 5q` in
18351 *Sun\ C*)
18352 # Sun C++ 5.9
18353 lt_prog_compiler_pic_CXX='-KPIC'
18354 lt_prog_compiler_static_CXX='-Bstatic'
18355 lt_prog_compiler_wl_CXX='-Qoption ld '
18356 ;;
18357 esac
18358 ;;
18359 esac
18360 ;;
18361 lynxos*)
18362 ;;
18363 m88k*)
18364 ;;
18365 mvs*)
18366 case $cc_basename in
18367 cxx*)
18368 lt_prog_compiler_pic_CXX='-W c,exportall'
18369 ;;
18370 *)
18371 ;;
18372 esac
18373 ;;
18374 netbsd*)
18375 ;;
18376 *qnx* | *nto*)
18377 # QNX uses GNU C++, but need to define -shared option too, otherwise
18378 # it will coredump.
18379 lt_prog_compiler_pic_CXX='-fPIC -shared'
18380 ;;
18381 osf3* | osf4* | osf5*)
18382 case $cc_basename in
18383 KCC*)
18384 lt_prog_compiler_wl_CXX='--backend -Wl,'
18385 ;;
18386 RCC*)
18387 # Rational C++ 2.4.1
18388 lt_prog_compiler_pic_CXX='-pic'
18389 ;;
18390 cxx*)
18391 # Digital/Compaq C++
18392 lt_prog_compiler_wl_CXX='-Wl,'
18393 # Make sure the PIC flag is empty. It appears that all Alpha
18394 # Linux and Compaq Tru64 Unix objects are PIC.
18395 lt_prog_compiler_pic_CXX=
18396 lt_prog_compiler_static_CXX='-non_shared'
18397 ;;
18398 *)
18399 ;;
18400 esac
18401 ;;
18402 psos*)
18403 ;;
18404 solaris*)
18405 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018406 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018407 # Sun C++ 4.2, 5.x and Centerline C++
18408 lt_prog_compiler_pic_CXX='-KPIC'
18409 lt_prog_compiler_static_CXX='-Bstatic'
18410 lt_prog_compiler_wl_CXX='-Qoption ld '
18411 ;;
18412 gcx*)
18413 # Green Hills C++ Compiler
18414 lt_prog_compiler_pic_CXX='-PIC'
18415 ;;
18416 *)
18417 ;;
18418 esac
18419 ;;
18420 sunos4*)
18421 case $cc_basename in
18422 CC*)
18423 # Sun C++ 4.x
18424 lt_prog_compiler_pic_CXX='-pic'
18425 lt_prog_compiler_static_CXX='-Bstatic'
18426 ;;
18427 lcc*)
18428 # Lucid
18429 lt_prog_compiler_pic_CXX='-pic'
18430 ;;
18431 *)
18432 ;;
18433 esac
18434 ;;
18435 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18436 case $cc_basename in
18437 CC*)
18438 lt_prog_compiler_wl_CXX='-Wl,'
18439 lt_prog_compiler_pic_CXX='-KPIC'
18440 lt_prog_compiler_static_CXX='-Bstatic'
18441 ;;
18442 esac
18443 ;;
18444 tandem*)
18445 case $cc_basename in
18446 NCC*)
18447 # NonStop-UX NCC 3.20
18448 lt_prog_compiler_pic_CXX='-KPIC'
18449 ;;
18450 *)
18451 ;;
18452 esac
18453 ;;
18454 vxworks*)
18455 ;;
18456 *)
18457 lt_prog_compiler_can_build_shared_CXX=no
18458 ;;
18459 esac
18460 fi
18461
18462case $host_os in
18463 # For platforms which do not support PIC, -DPIC is meaningless:
18464 *djgpp*)
18465 lt_prog_compiler_pic_CXX=
18466 ;;
18467 *)
18468 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18469 ;;
18470esac
cristy73bd4a52010-10-05 11:24:23 +000018471
cristyda16f162011-02-19 23:52:17 +000018472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18473$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18474if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18475 $as_echo_n "(cached) " >&6
18476else
18477 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18478fi
18479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18480$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18481lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018482
18483#
18484# Check to make sure the PIC flag actually works.
18485#
18486if test -n "$lt_prog_compiler_pic_CXX"; then
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18488$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018489if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018490 $as_echo_n "(cached) " >&6
18491else
18492 lt_cv_prog_compiler_pic_works_CXX=no
18493 ac_outfile=conftest.$ac_objext
18494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18495 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18496 # Insert the option either (1) after the last *FLAGS variable, or
18497 # (2) before a word containing "conftest.", or (3) at the end.
18498 # Note that $ac_compile itself does not contain backslashes and begins
18499 # with a dollar sign (not a hyphen), so the echo should work correctly.
18500 # The option is referenced via a variable to avoid confusing sed.
18501 lt_compile=`echo "$ac_compile" | $SED \
18502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18504 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018506 (eval "$lt_compile" 2>conftest.err)
18507 ac_status=$?
18508 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018510 if (exit $ac_status) && test -s "$ac_outfile"; then
18511 # The compiler can only warn and ignore the option if not recognized
18512 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18516 lt_cv_prog_compiler_pic_works_CXX=yes
18517 fi
18518 fi
18519 $RM conftest*
18520
18521fi
18522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18523$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18524
18525if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18526 case $lt_prog_compiler_pic_CXX in
18527 "" | " "*) ;;
18528 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18529 esac
18530else
18531 lt_prog_compiler_pic_CXX=
18532 lt_prog_compiler_can_build_shared_CXX=no
18533fi
18534
18535fi
18536
18537
18538
cristyda16f162011-02-19 23:52:17 +000018539
18540
cristy73bd4a52010-10-05 11:24:23 +000018541#
18542# Check to make sure the static flag actually works.
18543#
18544wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18546$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018547if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018548 $as_echo_n "(cached) " >&6
18549else
18550 lt_cv_prog_compiler_static_works_CXX=no
18551 save_LDFLAGS="$LDFLAGS"
18552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18555 # The linker can only warn and ignore the option if not recognized
18556 # So say no if there are warnings
18557 if test -s conftest.err; then
18558 # Append any errors to the config.log.
18559 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18562 if diff conftest.exp conftest.er2 >/dev/null; then
18563 lt_cv_prog_compiler_static_works_CXX=yes
18564 fi
18565 else
18566 lt_cv_prog_compiler_static_works_CXX=yes
18567 fi
18568 fi
18569 $RM -r conftest*
18570 LDFLAGS="$save_LDFLAGS"
18571
18572fi
18573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18574$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18575
18576if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18577 :
18578else
18579 lt_prog_compiler_static_CXX=
18580fi
18581
18582
18583
18584
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18586$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018587if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018588 $as_echo_n "(cached) " >&6
18589else
18590 lt_cv_prog_compiler_c_o_CXX=no
18591 $RM -r conftest 2>/dev/null
18592 mkdir conftest
18593 cd conftest
18594 mkdir out
18595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18596
18597 lt_compiler_flag="-o out/conftest2.$ac_objext"
18598 # Insert the option either (1) after the last *FLAGS variable, or
18599 # (2) before a word containing "conftest.", or (3) at the end.
18600 # Note that $ac_compile itself does not contain backslashes and begins
18601 # with a dollar sign (not a hyphen), so the echo should work correctly.
18602 lt_compile=`echo "$ac_compile" | $SED \
18603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18605 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018607 (eval "$lt_compile" 2>out/conftest.err)
18608 ac_status=$?
18609 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18612 then
18613 # The compiler can only warn and ignore the option if not recognized
18614 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18618 lt_cv_prog_compiler_c_o_CXX=yes
18619 fi
18620 fi
18621 chmod u+w . 2>&5
18622 $RM conftest*
18623 # SGI C++ compiler will create directory out/ii_files/ for
18624 # template instantiation
18625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18626 $RM out/* && rmdir out
18627 cd ..
18628 $RM -r conftest
18629 $RM conftest*
18630
18631fi
18632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18633$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18634
18635
18636
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18638$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018639if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018640 $as_echo_n "(cached) " >&6
18641else
18642 lt_cv_prog_compiler_c_o_CXX=no
18643 $RM -r conftest 2>/dev/null
18644 mkdir conftest
18645 cd conftest
18646 mkdir out
18647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18648
18649 lt_compiler_flag="-o out/conftest2.$ac_objext"
18650 # Insert the option either (1) after the last *FLAGS variable, or
18651 # (2) before a word containing "conftest.", or (3) at the end.
18652 # Note that $ac_compile itself does not contain backslashes and begins
18653 # with a dollar sign (not a hyphen), so the echo should work correctly.
18654 lt_compile=`echo "$ac_compile" | $SED \
18655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18657 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018659 (eval "$lt_compile" 2>out/conftest.err)
18660 ac_status=$?
18661 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18664 then
18665 # The compiler can only warn and ignore the option if not recognized
18666 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18670 lt_cv_prog_compiler_c_o_CXX=yes
18671 fi
18672 fi
18673 chmod u+w . 2>&5
18674 $RM conftest*
18675 # SGI C++ compiler will create directory out/ii_files/ for
18676 # template instantiation
18677 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18678 $RM out/* && rmdir out
18679 cd ..
18680 $RM -r conftest
18681 $RM conftest*
18682
18683fi
18684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18685$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18686
18687
18688
18689
18690hard_links="nottested"
18691if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18692 # do not overwrite the value of need_locks provided by the user
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18694$as_echo_n "checking if we can lock with hard links... " >&6; }
18695 hard_links=yes
18696 $RM conftest*
18697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18698 touch conftest.a
18699 ln conftest.a conftest.b 2>&5 || hard_links=no
18700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18702$as_echo "$hard_links" >&6; }
18703 if test "$hard_links" = no; then
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18705$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18706 need_locks=warn
18707 fi
18708else
18709 need_locks=no
18710fi
18711
18712
18713
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18715$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18716
18717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018718 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018719 case $host_os in
18720 aix[4-9]*)
18721 # If we're using GNU nm, then we don't want the "-C" option.
18722 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018723 # Also, AIX nm treats weak defined symbols like other global defined
18724 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018726 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 +000018727 else
18728 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'
18729 fi
18730 ;;
18731 pw32*)
18732 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018733 ;;
cristy73bd4a52010-10-05 11:24:23 +000018734 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018735 case $cc_basename in
18736 cl*) ;;
18737 *)
18738 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'
18739 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18740 ;;
18741 esac
18742 ;;
cristy73bd4a52010-10-05 11:24:23 +000018743 *)
18744 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018745 ;;
cristy73bd4a52010-10-05 11:24:23 +000018746 esac
cristy73bd4a52010-10-05 11:24:23 +000018747
18748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18749$as_echo "$ld_shlibs_CXX" >&6; }
18750test "$ld_shlibs_CXX" = no && can_build_shared=no
18751
18752with_gnu_ld_CXX=$with_gnu_ld
18753
18754
18755
18756
18757
18758
18759#
18760# Do we need to explicitly link libc?
18761#
18762case "x$archive_cmds_need_lc_CXX" in
18763x|xyes)
18764 # Assume -lc should be added
18765 archive_cmds_need_lc_CXX=yes
18766
18767 if test "$enable_shared" = yes && test "$GCC" = yes; then
18768 case $archive_cmds_CXX in
18769 *'~'*)
18770 # FIXME: we may have to deal with multi-command sequences.
18771 ;;
18772 '$CC '*)
18773 # Test whether the compiler implicitly links with -lc since on some
18774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18775 # to ld, don't add -lc before -lgcc.
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18777$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018778if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018779 $as_echo_n "(cached) " >&6
18780else
18781 $RM conftest*
18782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018783
cristy0c60a692010-11-04 01:09:47 +000018784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018785 (eval $ac_compile) 2>&5
18786 ac_status=$?
18787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18788 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018789 soname=conftest
18790 lib=conftest
18791 libobjs=conftest.$ac_objext
18792 deplibs=
18793 wl=$lt_prog_compiler_wl_CXX
18794 pic_flag=$lt_prog_compiler_pic_CXX
18795 compiler_flags=-v
18796 linker_flags=-v
18797 verstring=
18798 output_objdir=.
18799 libname=conftest
18800 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18801 allow_undefined_flag_CXX=
18802 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 +000018803 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18804 ac_status=$?
18805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18806 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018807 then
18808 lt_cv_archive_cmds_need_lc_CXX=no
18809 else
18810 lt_cv_archive_cmds_need_lc_CXX=yes
18811 fi
18812 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18813 else
18814 cat conftest.err 1>&5
18815 fi
18816 $RM conftest*
18817
18818fi
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18820$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18821 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018822 ;;
18823 esac
18824 fi
18825 ;;
18826esac
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
18884
18885
18886
18887
18888
18889
18890
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18892$as_echo_n "checking dynamic linker characteristics... " >&6; }
18893
18894library_names_spec=
18895libname_spec='lib$name'
18896soname_spec=
18897shrext_cmds=".so"
18898postinstall_cmds=
18899postuninstall_cmds=
18900finish_cmds=
18901finish_eval=
18902shlibpath_var=
18903shlibpath_overrides_runpath=unknown
18904version_type=none
18905dynamic_linker="$host_os ld.so"
18906sys_lib_dlsearch_path_spec="/lib /usr/lib"
18907need_lib_prefix=unknown
18908hardcode_into_libs=no
18909
18910# when you set need_version to no, make sure it does not cause -set_version
18911# flags to be left without arguments
18912need_version=unknown
18913
18914case $host_os in
18915aix3*)
18916 version_type=linux
18917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18918 shlibpath_var=LIBPATH
18919
18920 # AIX 3 has no versioning support, so we append a major version to the name.
18921 soname_spec='${libname}${release}${shared_ext}$major'
18922 ;;
18923
18924aix[4-9]*)
18925 version_type=linux
18926 need_lib_prefix=no
18927 need_version=no
18928 hardcode_into_libs=yes
18929 if test "$host_cpu" = ia64; then
18930 # AIX 5 supports IA64
18931 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18932 shlibpath_var=LD_LIBRARY_PATH
18933 else
18934 # With GCC up to 2.95.x, collect2 would create an import file
18935 # for dependence libraries. The import file would start with
18936 # the line `#! .'. This would cause the generated library to
18937 # depend on `.', always an invalid library. This was fixed in
18938 # development snapshots of GCC prior to 3.0.
18939 case $host_os in
18940 aix4 | aix4.[01] | aix4.[01].*)
18941 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18942 echo ' yes '
18943 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18944 :
18945 else
18946 can_build_shared=no
18947 fi
18948 ;;
18949 esac
18950 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18951 # soname into executable. Probably we can add versioning support to
18952 # collect2, so additional links can be useful in future.
18953 if test "$aix_use_runtimelinking" = yes; then
18954 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18955 # instead of lib<name>.a to let people know that these are not
18956 # typical AIX shared libraries.
18957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18958 else
18959 # We preserve .a as extension for shared libraries through AIX4.2
18960 # and later when we are not doing run time linking.
18961 library_names_spec='${libname}${release}.a $libname.a'
18962 soname_spec='${libname}${release}${shared_ext}$major'
18963 fi
18964 shlibpath_var=LIBPATH
18965 fi
18966 ;;
18967
18968amigaos*)
18969 case $host_cpu in
18970 powerpc)
18971 # Since July 2007 AmigaOS4 officially supports .so libraries.
18972 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18974 ;;
18975 m68k)
18976 library_names_spec='$libname.ixlibrary $libname.a'
18977 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018978 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 +000018979 ;;
18980 esac
18981 ;;
18982
18983beos*)
18984 library_names_spec='${libname}${shared_ext}'
18985 dynamic_linker="$host_os ld.so"
18986 shlibpath_var=LIBRARY_PATH
18987 ;;
18988
18989bsdi[45]*)
18990 version_type=linux
18991 need_version=no
18992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18993 soname_spec='${libname}${release}${shared_ext}$major'
18994 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18995 shlibpath_var=LD_LIBRARY_PATH
18996 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18997 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18998 # the default ld.so.conf also contains /usr/contrib/lib and
18999 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19000 # libtool to hard-code these into programs
19001 ;;
19002
19003cygwin* | mingw* | pw32* | cegcc*)
19004 version_type=windows
19005 shrext_cmds=".dll"
19006 need_version=no
19007 need_lib_prefix=no
19008
cristyda16f162011-02-19 23:52:17 +000019009 case $GCC,$cc_basename in
19010 yes,*)
19011 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019012 library_names_spec='$libname.dll.a'
19013 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19014 postinstall_cmds='base_file=`basename \${file}`~
19015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19016 dldir=$destdir/`dirname \$dlpath`~
19017 test -d \$dldir || mkdir -p \$dldir~
19018 $install_prog $dir/$dlname \$dldir/$dlname~
19019 chmod a+x \$dldir/$dlname~
19020 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19021 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19022 fi'
19023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19024 dlpath=$dir/\$dldll~
19025 $RM \$dlpath'
19026 shlibpath_overrides_runpath=yes
19027
19028 case $host_os in
19029 cygwin*)
19030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019032
cristy73bd4a52010-10-05 11:24:23 +000019033 ;;
19034 mingw* | cegcc*)
19035 # MinGW DLLs use traditional 'lib' prefix
19036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019037 ;;
19038 pw32*)
19039 # pw32 DLLs use 'pw' prefix rather than 'lib'
19040 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19041 ;;
19042 esac
cristyda16f162011-02-19 23:52:17 +000019043 dynamic_linker='Win32 ld.exe'
19044 ;;
19045
19046 *,cl*)
19047 # Native MSVC
19048 libname_spec='$name'
19049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19050 library_names_spec='${libname}.dll.lib'
19051
19052 case $build_os in
19053 mingw*)
19054 sys_lib_search_path_spec=
19055 lt_save_ifs=$IFS
19056 IFS=';'
19057 for lt_path in $LIB
19058 do
19059 IFS=$lt_save_ifs
19060 # Let DOS variable expansion print the short 8.3 style file name.
19061 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19062 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19063 done
19064 IFS=$lt_save_ifs
19065 # Convert to MSYS style.
19066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19067 ;;
19068 cygwin*)
19069 # Convert to unix form, then to dos form, then back to unix form
19070 # but this time dos style (no spaces!) so that the unix form looks
19071 # like /cygdrive/c/PROGRA~1:/cygdr...
19072 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19073 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19074 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19075 ;;
19076 *)
19077 sys_lib_search_path_spec="$LIB"
19078 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19079 # It is most probably a Windows format PATH.
19080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19081 else
19082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19083 fi
19084 # FIXME: find the short name or the path components, as spaces are
19085 # common. (e.g. "Program Files" -> "PROGRA~1")
19086 ;;
19087 esac
19088
19089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19090 postinstall_cmds='base_file=`basename \${file}`~
19091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19092 dldir=$destdir/`dirname \$dlpath`~
19093 test -d \$dldir || mkdir -p \$dldir~
19094 $install_prog $dir/$dlname \$dldir/$dlname'
19095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19096 dlpath=$dir/\$dldll~
19097 $RM \$dlpath'
19098 shlibpath_overrides_runpath=yes
19099 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019100 ;;
19101
19102 *)
cristyda16f162011-02-19 23:52:17 +000019103 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019104 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019105 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019106 ;;
19107 esac
cristy73bd4a52010-10-05 11:24:23 +000019108 # FIXME: first we should search . and the directory the executable is in
19109 shlibpath_var=PATH
19110 ;;
19111
19112darwin* | rhapsody*)
19113 dynamic_linker="$host_os dyld"
19114 version_type=darwin
19115 need_lib_prefix=no
19116 need_version=no
19117 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19118 soname_spec='${libname}${release}${major}$shared_ext'
19119 shlibpath_overrides_runpath=yes
19120 shlibpath_var=DYLD_LIBRARY_PATH
19121 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19122
19123 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19124 ;;
19125
19126dgux*)
19127 version_type=linux
19128 need_lib_prefix=no
19129 need_version=no
19130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19131 soname_spec='${libname}${release}${shared_ext}$major'
19132 shlibpath_var=LD_LIBRARY_PATH
19133 ;;
19134
19135freebsd1*)
19136 dynamic_linker=no
19137 ;;
19138
19139freebsd* | dragonfly*)
19140 # DragonFly does not have aout. When/if they implement a new
19141 # versioning mechanism, adjust this.
19142 if test -x /usr/bin/objformat; then
19143 objformat=`/usr/bin/objformat`
19144 else
19145 case $host_os in
19146 freebsd[123]*) objformat=aout ;;
19147 *) objformat=elf ;;
19148 esac
19149 fi
19150 version_type=freebsd-$objformat
19151 case $version_type in
19152 freebsd-elf*)
19153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19154 need_version=no
19155 need_lib_prefix=no
19156 ;;
19157 freebsd-*)
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19159 need_version=yes
19160 ;;
19161 esac
19162 shlibpath_var=LD_LIBRARY_PATH
19163 case $host_os in
19164 freebsd2*)
19165 shlibpath_overrides_runpath=yes
19166 ;;
19167 freebsd3.[01]* | freebsdelf3.[01]*)
19168 shlibpath_overrides_runpath=yes
19169 hardcode_into_libs=yes
19170 ;;
19171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19173 shlibpath_overrides_runpath=no
19174 hardcode_into_libs=yes
19175 ;;
19176 *) # from 4.6 on, and DragonFly
19177 shlibpath_overrides_runpath=yes
19178 hardcode_into_libs=yes
19179 ;;
19180 esac
19181 ;;
19182
19183gnu*)
19184 version_type=linux
19185 need_lib_prefix=no
19186 need_version=no
19187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19188 soname_spec='${libname}${release}${shared_ext}$major'
19189 shlibpath_var=LD_LIBRARY_PATH
19190 hardcode_into_libs=yes
19191 ;;
19192
cristy0c60a692010-11-04 01:09:47 +000019193haiku*)
19194 version_type=linux
19195 need_lib_prefix=no
19196 need_version=no
19197 dynamic_linker="$host_os runtime_loader"
19198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19199 soname_spec='${libname}${release}${shared_ext}$major'
19200 shlibpath_var=LIBRARY_PATH
19201 shlibpath_overrides_runpath=yes
19202 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19203 hardcode_into_libs=yes
19204 ;;
19205
cristy73bd4a52010-10-05 11:24:23 +000019206hpux9* | hpux10* | hpux11*)
19207 # Give a soname corresponding to the major version so that dld.sl refuses to
19208 # link against other versions.
19209 version_type=sunos
19210 need_lib_prefix=no
19211 need_version=no
19212 case $host_cpu in
19213 ia64*)
19214 shrext_cmds='.so'
19215 hardcode_into_libs=yes
19216 dynamic_linker="$host_os dld.so"
19217 shlibpath_var=LD_LIBRARY_PATH
19218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19220 soname_spec='${libname}${release}${shared_ext}$major'
19221 if test "X$HPUX_IA64_MODE" = X32; then
19222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19223 else
19224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19225 fi
19226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19227 ;;
19228 hppa*64*)
19229 shrext_cmds='.sl'
19230 hardcode_into_libs=yes
19231 dynamic_linker="$host_os dld.sl"
19232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19235 soname_spec='${libname}${release}${shared_ext}$major'
19236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19238 ;;
19239 *)
19240 shrext_cmds='.sl'
19241 dynamic_linker="$host_os dld.sl"
19242 shlibpath_var=SHLIB_PATH
19243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19245 soname_spec='${libname}${release}${shared_ext}$major'
19246 ;;
19247 esac
cristy0c60a692010-11-04 01:09:47 +000019248 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019249 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019250 # or fails outright, so override atomically:
19251 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019252 ;;
19253
19254interix[3-9]*)
19255 version_type=linux
19256 need_lib_prefix=no
19257 need_version=no
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19259 soname_spec='${libname}${release}${shared_ext}$major'
19260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19261 shlibpath_var=LD_LIBRARY_PATH
19262 shlibpath_overrides_runpath=no
19263 hardcode_into_libs=yes
19264 ;;
19265
19266irix5* | irix6* | nonstopux*)
19267 case $host_os in
19268 nonstopux*) version_type=nonstopux ;;
19269 *)
19270 if test "$lt_cv_prog_gnu_ld" = yes; then
19271 version_type=linux
19272 else
19273 version_type=irix
19274 fi ;;
19275 esac
19276 need_lib_prefix=no
19277 need_version=no
19278 soname_spec='${libname}${release}${shared_ext}$major'
19279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19280 case $host_os in
19281 irix5* | nonstopux*)
19282 libsuff= shlibsuff=
19283 ;;
19284 *)
19285 case $LD in # libtool.m4 will add one of these switches to LD
19286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19287 libsuff= shlibsuff= libmagic=32-bit;;
19288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19289 libsuff=32 shlibsuff=N32 libmagic=N32;;
19290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19292 *) libsuff= shlibsuff= libmagic=never-match;;
19293 esac
19294 ;;
19295 esac
19296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19297 shlibpath_overrides_runpath=no
19298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19300 hardcode_into_libs=yes
19301 ;;
19302
19303# No shared lib support for Linux oldld, aout, or coff.
19304linux*oldld* | linux*aout* | linux*coff*)
19305 dynamic_linker=no
19306 ;;
19307
19308# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019309linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019310 version_type=linux
19311 need_lib_prefix=no
19312 need_version=no
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19314 soname_spec='${libname}${release}${shared_ext}$major'
19315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19316 shlibpath_var=LD_LIBRARY_PATH
19317 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019318
cristy73bd4a52010-10-05 11:24:23 +000019319 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019320 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019321 $as_echo_n "(cached) " >&6
19322else
19323 lt_cv_shlibpath_overrides_runpath=no
19324 save_LDFLAGS=$LDFLAGS
19325 save_libdir=$libdir
19326 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19327 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019329/* end confdefs.h. */
19330
19331int
19332main ()
19333{
19334
19335 ;
19336 return 0;
19337}
19338_ACEOF
19339if ac_fn_cxx_try_link "$LINENO"; then :
19340 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019341 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019342fi
19343fi
19344rm -f core conftest.err conftest.$ac_objext \
19345 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019346 LDFLAGS=$save_LDFLAGS
19347 libdir=$save_libdir
19348
19349fi
19350
19351 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019352
19353 # This implies no fast_install, which is unacceptable.
19354 # Some rework will be needed to allow for fast_install
19355 # before this can be enabled.
19356 hardcode_into_libs=yes
19357
19358 # Add ABI-specific directories to the system library path.
19359 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19360
19361 # Append ld.so.conf contents to the search path
19362 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019363 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 +000019364 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019365
cristy73bd4a52010-10-05 11:24:23 +000019366 fi
19367
19368 # We used to test for /lib/ld.so.1 and disable shared libraries on
19369 # powerpc, because MkLinux only supported shared libraries with the
19370 # GNU dynamic linker. Since this was broken with cross compilers,
19371 # most powerpc-linux boxes support dynamic linking these days and
19372 # people can always --disable-shared, the test was removed, and we
19373 # assume the GNU/Linux dynamic linker is in use.
19374 dynamic_linker='GNU/Linux ld.so'
19375 ;;
19376
19377netbsd*)
19378 version_type=sunos
19379 need_lib_prefix=no
19380 need_version=no
19381 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19384 dynamic_linker='NetBSD (a.out) ld.so'
19385 else
19386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19387 soname_spec='${libname}${release}${shared_ext}$major'
19388 dynamic_linker='NetBSD ld.elf_so'
19389 fi
19390 shlibpath_var=LD_LIBRARY_PATH
19391 shlibpath_overrides_runpath=yes
19392 hardcode_into_libs=yes
19393 ;;
19394
19395newsos6)
19396 version_type=linux
19397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19398 shlibpath_var=LD_LIBRARY_PATH
19399 shlibpath_overrides_runpath=yes
19400 ;;
19401
19402*nto* | *qnx*)
19403 version_type=qnx
19404 need_lib_prefix=no
19405 need_version=no
19406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19407 soname_spec='${libname}${release}${shared_ext}$major'
19408 shlibpath_var=LD_LIBRARY_PATH
19409 shlibpath_overrides_runpath=no
19410 hardcode_into_libs=yes
19411 dynamic_linker='ldqnx.so'
19412 ;;
19413
19414openbsd*)
19415 version_type=sunos
19416 sys_lib_dlsearch_path_spec="/usr/lib"
19417 need_lib_prefix=no
19418 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19419 case $host_os in
19420 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19421 *) need_version=no ;;
19422 esac
19423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19425 shlibpath_var=LD_LIBRARY_PATH
19426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19427 case $host_os in
19428 openbsd2.[89] | openbsd2.[89].*)
19429 shlibpath_overrides_runpath=no
19430 ;;
19431 *)
19432 shlibpath_overrides_runpath=yes
19433 ;;
19434 esac
19435 else
19436 shlibpath_overrides_runpath=yes
19437 fi
19438 ;;
19439
19440os2*)
19441 libname_spec='$name'
19442 shrext_cmds=".dll"
19443 need_lib_prefix=no
19444 library_names_spec='$libname${shared_ext} $libname.a'
19445 dynamic_linker='OS/2 ld.exe'
19446 shlibpath_var=LIBPATH
19447 ;;
19448
19449osf3* | osf4* | osf5*)
19450 version_type=osf
19451 need_lib_prefix=no
19452 need_version=no
19453 soname_spec='${libname}${release}${shared_ext}$major'
19454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19455 shlibpath_var=LD_LIBRARY_PATH
19456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19458 ;;
19459
19460rdos*)
19461 dynamic_linker=no
19462 ;;
19463
19464solaris*)
19465 version_type=linux
19466 need_lib_prefix=no
19467 need_version=no
19468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19469 soname_spec='${libname}${release}${shared_ext}$major'
19470 shlibpath_var=LD_LIBRARY_PATH
19471 shlibpath_overrides_runpath=yes
19472 hardcode_into_libs=yes
19473 # ldd complains unless libraries are executable
19474 postinstall_cmds='chmod +x $lib'
19475 ;;
19476
19477sunos4*)
19478 version_type=sunos
19479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19481 shlibpath_var=LD_LIBRARY_PATH
19482 shlibpath_overrides_runpath=yes
19483 if test "$with_gnu_ld" = yes; then
19484 need_lib_prefix=no
19485 fi
19486 need_version=yes
19487 ;;
19488
19489sysv4 | sysv4.3*)
19490 version_type=linux
19491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19492 soname_spec='${libname}${release}${shared_ext}$major'
19493 shlibpath_var=LD_LIBRARY_PATH
19494 case $host_vendor in
19495 sni)
19496 shlibpath_overrides_runpath=no
19497 need_lib_prefix=no
19498 runpath_var=LD_RUN_PATH
19499 ;;
19500 siemens)
19501 need_lib_prefix=no
19502 ;;
19503 motorola)
19504 need_lib_prefix=no
19505 need_version=no
19506 shlibpath_overrides_runpath=no
19507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19508 ;;
19509 esac
19510 ;;
19511
19512sysv4*MP*)
19513 if test -d /usr/nec ;then
19514 version_type=linux
19515 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19516 soname_spec='$libname${shared_ext}.$major'
19517 shlibpath_var=LD_LIBRARY_PATH
19518 fi
19519 ;;
19520
19521sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19522 version_type=freebsd-elf
19523 need_lib_prefix=no
19524 need_version=no
19525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19526 soname_spec='${libname}${release}${shared_ext}$major'
19527 shlibpath_var=LD_LIBRARY_PATH
19528 shlibpath_overrides_runpath=yes
19529 hardcode_into_libs=yes
19530 if test "$with_gnu_ld" = yes; then
19531 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19532 else
19533 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19534 case $host_os in
19535 sco3.2v5*)
19536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19537 ;;
19538 esac
19539 fi
19540 sys_lib_dlsearch_path_spec='/usr/lib'
19541 ;;
19542
19543tpf*)
19544 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19545 version_type=linux
19546 need_lib_prefix=no
19547 need_version=no
19548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19549 shlibpath_var=LD_LIBRARY_PATH
19550 shlibpath_overrides_runpath=no
19551 hardcode_into_libs=yes
19552 ;;
19553
19554uts4*)
19555 version_type=linux
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 soname_spec='${libname}${release}${shared_ext}$major'
19558 shlibpath_var=LD_LIBRARY_PATH
19559 ;;
19560
19561*)
19562 dynamic_linker=no
19563 ;;
19564esac
19565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19566$as_echo "$dynamic_linker" >&6; }
19567test "$dynamic_linker" = no && can_build_shared=no
19568
19569variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19570if test "$GCC" = yes; then
19571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19572fi
19573
19574if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19575 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19576fi
19577if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19578 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19579fi
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
19608
19609
19610
19611
19612
19613
19614
19615
cristy0c60a692010-11-04 01:09:47 +000019616
19617
cristy73bd4a52010-10-05 11:24:23 +000019618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19619$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19620hardcode_action_CXX=
19621if test -n "$hardcode_libdir_flag_spec_CXX" ||
19622 test -n "$runpath_var_CXX" ||
19623 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19624
19625 # We can hardcode non-existent directories.
19626 if test "$hardcode_direct_CXX" != no &&
19627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19628 # have to relink, otherwise we might link with an installed library
19629 # when we should be linking with a yet-to-be-installed one
19630 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19631 test "$hardcode_minus_L_CXX" != no; then
19632 # Linking always hardcodes the temporary library directory.
19633 hardcode_action_CXX=relink
19634 else
19635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19636 hardcode_action_CXX=immediate
19637 fi
19638else
19639 # We cannot hardcode anything, or else we can only hardcode existing
19640 # directories.
19641 hardcode_action_CXX=unsupported
19642fi
19643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19644$as_echo "$hardcode_action_CXX" >&6; }
19645
19646if test "$hardcode_action_CXX" = relink ||
19647 test "$inherit_rpath_CXX" = yes; then
19648 # Fast installation is not supported
19649 enable_fast_install=no
19650elif test "$shlibpath_overrides_runpath" = yes ||
19651 test "$enable_shared" = no; then
19652 # Fast installation is not necessary
19653 enable_fast_install=needless
19654fi
19655
19656
19657
19658
19659
19660
19661
19662 fi # test -n "$compiler"
19663
19664 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019665 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019666 LDCXX=$LD
19667 LD=$lt_save_LD
19668 GCC=$lt_save_GCC
19669 with_gnu_ld=$lt_save_with_gnu_ld
19670 lt_cv_path_LDCXX=$lt_cv_path_LD
19671 lt_cv_path_LD=$lt_save_path_LD
19672 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19673 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19674fi # test "$_lt_caught_CXX_error" != yes
19675
19676ac_ext=c
19677ac_cpp='$CPP $CPPFLAGS'
19678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19680ac_compiler_gnu=$ac_cv_c_compiler_gnu
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694 ac_config_commands="$ac_config_commands libtool"
19695
19696
19697
19698
19699# Only expand once:
19700
19701
19702
cristy3ed852e2009-09-05 21:47:34 +000019703
19704
19705# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019706
19707
19708
19709
19710
19711
19712
cristy73bd4a52010-10-05 11:24:23 +000019713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19714$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019715if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019716 $as_echo_n "(cached) " >&6
19717else
19718
19719module=yes
19720eval libltdl_cv_shlibext=$shrext_cmds
19721
19722fi
19723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19724$as_echo "$libltdl_cv_shlibext" >&6; }
19725if test -n "$libltdl_cv_shlibext"; then
19726
19727cat >>confdefs.h <<_ACEOF
19728#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19729_ACEOF
19730
19731fi
19732
19733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19734$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019735if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019736 $as_echo_n "(cached) " >&6
19737else
19738 lt_cv_module_path_var="$shlibpath_var"
19739fi
19740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19741$as_echo "$lt_cv_module_path_var" >&6; }
19742if test -n "$lt_cv_module_path_var"; then
19743
19744cat >>confdefs.h <<_ACEOF
19745#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19746_ACEOF
19747
19748fi
19749
19750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19751$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019752if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019753 $as_echo_n "(cached) " >&6
19754else
19755 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19756fi
19757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19758$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19759if test -n "$lt_cv_sys_dlsearch_path"; then
19760 sys_dlsearch_path=
19761 for dir in $lt_cv_sys_dlsearch_path; do
19762 if test -z "$sys_dlsearch_path"; then
19763 sys_dlsearch_path="$dir"
19764 else
19765 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19766 fi
19767 done
19768
19769cat >>confdefs.h <<_ACEOF
19770#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19771_ACEOF
19772
19773fi
19774
19775
19776LT_DLLOADERS=
19777
19778
19779ac_ext=c
19780ac_cpp='$CPP $CPPFLAGS'
19781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783ac_compiler_gnu=$ac_cv_c_compiler_gnu
19784
19785
19786LIBADD_DLOPEN=
19787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19788$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019789if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019790 $as_echo_n "(cached) " >&6
19791else
19792 ac_func_search_save_LIBS=$LIBS
19793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19794/* end confdefs.h. */
19795
19796/* Override any GCC internal prototype to avoid an error.
19797 Use char because int might match the return type of a GCC
19798 builtin and then its argument prototype would still apply. */
19799#ifdef __cplusplus
19800extern "C"
19801#endif
19802char dlopen ();
19803int
19804main ()
19805{
19806return dlopen ();
19807 ;
19808 return 0;
19809}
19810_ACEOF
19811for ac_lib in '' dl; do
19812 if test -z "$ac_lib"; then
19813 ac_res="none required"
19814 else
19815 ac_res=-l$ac_lib
19816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19817 fi
19818 if ac_fn_c_try_link "$LINENO"; then :
19819 ac_cv_search_dlopen=$ac_res
19820fi
19821rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019823 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019824 break
19825fi
19826done
cristyda16f162011-02-19 23:52:17 +000019827if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019828
19829else
19830 ac_cv_search_dlopen=no
19831fi
19832rm conftest.$ac_ext
19833LIBS=$ac_func_search_save_LIBS
19834fi
19835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19836$as_echo "$ac_cv_search_dlopen" >&6; }
19837ac_res=$ac_cv_search_dlopen
19838if test "$ac_res" != no; then :
19839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19840
19841$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19842
19843 if test "$ac_cv_search_dlopen" != "none required" ; then
19844 LIBADD_DLOPEN="-ldl"
19845 fi
19846 libltdl_cv_lib_dl_dlopen="yes"
19847 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19848else
19849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850/* end confdefs.h. */
19851#if HAVE_DLFCN_H
19852# include <dlfcn.h>
19853#endif
19854
19855int
19856main ()
19857{
19858dlopen(0, 0);
19859 ;
19860 return 0;
19861}
19862_ACEOF
19863if ac_fn_c_try_link "$LINENO"; then :
19864
19865$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19866
19867 libltdl_cv_func_dlopen="yes"
19868 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19869else
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19871$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019872if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019873 $as_echo_n "(cached) " >&6
19874else
19875 ac_check_lib_save_LIBS=$LIBS
19876LIBS="-lsvld $LIBS"
19877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878/* end confdefs.h. */
19879
19880/* Override any GCC internal prototype to avoid an error.
19881 Use char because int might match the return type of a GCC
19882 builtin and then its argument prototype would still apply. */
19883#ifdef __cplusplus
19884extern "C"
19885#endif
19886char dlopen ();
19887int
19888main ()
19889{
19890return dlopen ();
19891 ;
19892 return 0;
19893}
19894_ACEOF
19895if ac_fn_c_try_link "$LINENO"; then :
19896 ac_cv_lib_svld_dlopen=yes
19897else
19898 ac_cv_lib_svld_dlopen=no
19899fi
19900rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19902LIBS=$ac_check_lib_save_LIBS
19903fi
19904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19905$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019906if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019907
19908$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19909
19910 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19911 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19912fi
19913
19914fi
19915rm -f core conftest.err conftest.$ac_objext \
19916 conftest$ac_exeext conftest.$ac_ext
19917fi
19918
19919if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19920then
19921 lt_save_LIBS="$LIBS"
19922 LIBS="$LIBS $LIBADD_DLOPEN"
19923 for ac_func in dlerror
19924do :
19925 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019926if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019927 cat >>confdefs.h <<_ACEOF
19928#define HAVE_DLERROR 1
19929_ACEOF
19930
19931fi
19932done
19933
19934 LIBS="$lt_save_LIBS"
19935fi
19936
19937
19938LIBADD_SHL_LOAD=
19939ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019940if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019941
19942$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19943
19944 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19945else
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19947$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019948if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019949 $as_echo_n "(cached) " >&6
19950else
19951 ac_check_lib_save_LIBS=$LIBS
19952LIBS="-ldld $LIBS"
19953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19954/* end confdefs.h. */
19955
19956/* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19959#ifdef __cplusplus
19960extern "C"
19961#endif
19962char shl_load ();
19963int
19964main ()
19965{
19966return shl_load ();
19967 ;
19968 return 0;
19969}
19970_ACEOF
19971if ac_fn_c_try_link "$LINENO"; then :
19972 ac_cv_lib_dld_shl_load=yes
19973else
19974 ac_cv_lib_dld_shl_load=no
19975fi
19976rm -f core conftest.err conftest.$ac_objext \
19977 conftest$ac_exeext conftest.$ac_ext
19978LIBS=$ac_check_lib_save_LIBS
19979fi
19980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19981$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019982if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019983
19984$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19985
19986 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19987 LIBADD_SHL_LOAD="-ldld"
19988fi
19989
19990fi
19991
19992
19993
19994case $host_os in
19995darwin[1567].*)
19996# We only want this for pre-Mac OS X 10.4.
19997 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019998if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019999
20000$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20001
20002 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20003fi
20004
20005 ;;
20006beos*)
20007 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20008 ;;
20009cygwin* | mingw* | os2* | pw32*)
20010 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20011"
cristyda16f162011-02-19 23:52:17 +000020012if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020013 ac_have_decl=1
20014else
20015 ac_have_decl=0
20016fi
20017
20018cat >>confdefs.h <<_ACEOF
20019#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20020_ACEOF
20021
20022 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20023 ;;
20024esac
20025
20026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20027$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020028if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020029 $as_echo_n "(cached) " >&6
20030else
20031 ac_check_lib_save_LIBS=$LIBS
20032LIBS="-ldld $LIBS"
20033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20034/* end confdefs.h. */
20035
20036/* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20039#ifdef __cplusplus
20040extern "C"
20041#endif
20042char dld_link ();
20043int
20044main ()
20045{
20046return dld_link ();
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051if ac_fn_c_try_link "$LINENO"; then :
20052 ac_cv_lib_dld_dld_link=yes
20053else
20054 ac_cv_lib_dld_dld_link=no
20055fi
20056rm -f core conftest.err conftest.$ac_objext \
20057 conftest$ac_exeext conftest.$ac_ext
20058LIBS=$ac_check_lib_save_LIBS
20059fi
20060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20061$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020062if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020063
20064$as_echo "#define HAVE_DLD 1" >>confdefs.h
20065
20066 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20067fi
20068
20069
20070
20071
20072LT_DLPREOPEN=
20073if test -n "$LT_DLLOADERS"
20074then
20075 for lt_loader in $LT_DLLOADERS; do
20076 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20077 done
20078
20079$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20080
20081fi
20082
20083
20084LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20085
20086
20087ac_ext=c
20088ac_cpp='$CPP $CPPFLAGS'
20089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20091ac_compiler_gnu=$ac_cv_c_compiler_gnu
20092
20093
20094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20095$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020096if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020097 $as_echo_n "(cached) " >&6
20098else
20099 lt_cv_sys_symbol_underscore=no
20100 cat > conftest.$ac_ext <<_LT_EOF
20101void nm_test_func(){}
20102int main(){nm_test_func;return 0;}
20103_LT_EOF
20104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20105 (eval $ac_compile) 2>&5
20106 ac_status=$?
20107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20108 test $ac_status = 0; }; then
20109 # Now try to grab the symbols.
20110 ac_nlist=conftest.nm
20111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20112 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20113 ac_status=$?
20114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20115 test $ac_status = 0; } && test -s "$ac_nlist"; then
20116 # See whether the symbols have a leading underscore.
20117 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20118 lt_cv_sys_symbol_underscore=yes
20119 else
20120 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20121 :
20122 else
20123 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20124 fi
20125 fi
20126 else
20127 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20128 fi
20129 else
20130 echo "configure: failed program was:" >&5
20131 cat conftest.c >&5
20132 fi
20133 rm -rf conftest*
20134
20135fi
20136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20137$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20138 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20139
20140
20141if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20142 if test x"$libltdl_cv_func_dlopen" = xyes ||
20143 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20145$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020146if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020147 $as_echo_n "(cached) " >&6
20148else
20149 libltdl_cv_need_uscore=unknown
20150 save_LIBS="$LIBS"
20151 LIBS="$LIBS $LIBADD_DLOPEN"
20152 if test "$cross_compiling" = yes; then :
20153 libltdl_cv_need_uscore=cross
20154else
20155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20156 lt_status=$lt_dlunknown
20157 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020158#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020159#include "confdefs.h"
20160
20161#if HAVE_DLFCN_H
20162#include <dlfcn.h>
20163#endif
20164
20165#include <stdio.h>
20166
20167#ifdef RTLD_GLOBAL
20168# define LT_DLGLOBAL RTLD_GLOBAL
20169#else
20170# ifdef DL_GLOBAL
20171# define LT_DLGLOBAL DL_GLOBAL
20172# else
20173# define LT_DLGLOBAL 0
20174# endif
20175#endif
20176
20177/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20178 find out it does not work in some platform. */
20179#ifndef LT_DLLAZY_OR_NOW
20180# ifdef RTLD_LAZY
20181# define LT_DLLAZY_OR_NOW RTLD_LAZY
20182# else
20183# ifdef DL_LAZY
20184# define LT_DLLAZY_OR_NOW DL_LAZY
20185# else
20186# ifdef RTLD_NOW
20187# define LT_DLLAZY_OR_NOW RTLD_NOW
20188# else
20189# ifdef DL_NOW
20190# define LT_DLLAZY_OR_NOW DL_NOW
20191# else
20192# define LT_DLLAZY_OR_NOW 0
20193# endif
20194# endif
20195# endif
20196# endif
20197#endif
20198
cristy0c60a692010-11-04 01:09:47 +000020199/* When -fvisbility=hidden is used, assume the code has been annotated
20200 correspondingly for the symbols needed. */
20201#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020202int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020203#endif
20204
cristyda16f162011-02-19 23:52:17 +000020205int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020206int main ()
20207{
20208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20209 int status = $lt_dlunknown;
20210
20211 if (self)
20212 {
20213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020214 else
20215 {
20216 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20217 else puts (dlerror ());
20218 }
cristy73bd4a52010-10-05 11:24:23 +000020219 /* dlclose (self); */
20220 }
20221 else
20222 puts (dlerror ());
20223
20224 return status;
20225}
20226_LT_EOF
20227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20228 (eval $ac_link) 2>&5
20229 ac_status=$?
20230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20231 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20232 (./conftest; exit; ) >&5 2>/dev/null
20233 lt_status=$?
20234 case x$lt_status in
20235 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20236 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20237 x$lt_dlunknown|x*) ;;
20238 esac
20239 else :
20240 # compilation failed
20241
20242 fi
20243fi
20244rm -fr conftest*
20245
20246 LIBS="$save_LIBS"
20247
20248fi
20249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20250$as_echo "$libltdl_cv_need_uscore" >&6; }
20251 fi
20252fi
20253
20254if test x"$libltdl_cv_need_uscore" = xyes; then
20255
20256$as_echo "#define NEED_USCORE 1" >>confdefs.h
20257
20258fi
20259
20260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20261$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020262if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020263 $as_echo_n "(cached) " >&6
20264else
20265 # PORTME does your system automatically load deplibs for dlopen?
20266 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20267 # For now, we just catch OSes we know something about -- in the
20268 # future, we'll try test this programmatically.
20269 lt_cv_sys_dlopen_deplibs=unknown
20270 case $host_os in
20271 aix3*|aix4.1.*|aix4.2.*)
20272 # Unknown whether this is true for these versions of AIX, but
20273 # we want this `case' here to explicitly catch those versions.
20274 lt_cv_sys_dlopen_deplibs=unknown
20275 ;;
20276 aix[4-9]*)
20277 lt_cv_sys_dlopen_deplibs=yes
20278 ;;
20279 amigaos*)
20280 case $host_cpu in
20281 powerpc)
20282 lt_cv_sys_dlopen_deplibs=no
20283 ;;
20284 esac
20285 ;;
20286 darwin*)
20287 # Assuming the user has installed a libdl from somewhere, this is true
20288 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20289 lt_cv_sys_dlopen_deplibs=yes
20290 ;;
20291 freebsd* | dragonfly*)
20292 lt_cv_sys_dlopen_deplibs=yes
20293 ;;
cristy0c60a692010-11-04 01:09:47 +000020294 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020295 # GNU and its variants, using gnu ld.so (Glibc)
20296 lt_cv_sys_dlopen_deplibs=yes
20297 ;;
20298 hpux10*|hpux11*)
20299 lt_cv_sys_dlopen_deplibs=yes
20300 ;;
20301 interix*)
20302 lt_cv_sys_dlopen_deplibs=yes
20303 ;;
20304 irix[12345]*|irix6.[01]*)
20305 # Catch all versions of IRIX before 6.2, and indicate that we don't
20306 # know how it worked for any of those versions.
20307 lt_cv_sys_dlopen_deplibs=unknown
20308 ;;
20309 irix*)
20310 # The case above catches anything before 6.2, and it's known that
20311 # at 6.2 and later dlopen does load deplibs.
20312 lt_cv_sys_dlopen_deplibs=yes
20313 ;;
20314 netbsd*)
20315 lt_cv_sys_dlopen_deplibs=yes
20316 ;;
20317 openbsd*)
20318 lt_cv_sys_dlopen_deplibs=yes
20319 ;;
20320 osf[1234]*)
20321 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20322 # it did *not* use an RPATH in a shared library to find objects the
20323 # library depends on, so we explicitly say `no'.
20324 lt_cv_sys_dlopen_deplibs=no
20325 ;;
20326 osf5.0|osf5.0a|osf5.1)
20327 # dlopen *does* load deplibs and with the right loader patch applied
20328 # it even uses RPATH in a shared library to search for shared objects
20329 # that the library depends on, but there's no easy way to know if that
20330 # patch is installed. Since this is the case, all we can really
20331 # say is unknown -- it depends on the patch being installed. If
20332 # it is, this changes to `yes'. Without it, it would be `no'.
20333 lt_cv_sys_dlopen_deplibs=unknown
20334 ;;
20335 osf*)
20336 # the two cases above should catch all versions of osf <= 5.1. Read
20337 # the comments above for what we know about them.
20338 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20339 # is used to find them so we can finally say `yes'.
20340 lt_cv_sys_dlopen_deplibs=yes
20341 ;;
20342 qnx*)
20343 lt_cv_sys_dlopen_deplibs=yes
20344 ;;
20345 solaris*)
20346 lt_cv_sys_dlopen_deplibs=yes
20347 ;;
20348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20349 libltdl_cv_sys_dlopen_deplibs=yes
20350 ;;
20351 esac
20352
20353fi
20354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20355$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20356if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20357
20358$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20359
20360fi
20361
20362:
20363
20364for ac_header in argz.h
20365do :
20366 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20367"
cristyda16f162011-02-19 23:52:17 +000020368if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020369 cat >>confdefs.h <<_ACEOF
20370#define HAVE_ARGZ_H 1
20371_ACEOF
20372
20373fi
20374
20375done
20376
20377
20378ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20379# include <argz.h>
20380#endif
20381"
cristyda16f162011-02-19 23:52:17 +000020382if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020383
20384cat >>confdefs.h <<_ACEOF
20385#define HAVE_ERROR_T 1
20386_ACEOF
20387
20388
20389else
20390
20391$as_echo "#define error_t int" >>confdefs.h
20392
20393
20394$as_echo "#define __error_t_defined 1" >>confdefs.h
20395
20396fi
20397
20398
20399ARGZ_H=
20400for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20401 argz_next argz_stringify
20402do :
20403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20404ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020405if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020406 cat >>confdefs.h <<_ACEOF
20407#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20408_ACEOF
20409
20410else
20411 ARGZ_H=argz.h;
20412
20413 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20414
20415fi
20416done
20417
20418
20419if test -z "$ARGZ_H"; then :
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20421$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020422if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020423 $as_echo_n "(cached) " >&6
20424else
20425 case $host_os in #(
20426 *cygwin*)
20427 lt_cv_sys_argz_works=no
20428 if test "$cross_compiling" != no; then
20429 lt_cv_sys_argz_works="guessing no"
20430 else
20431 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20432 save_IFS=$IFS
20433 IFS=-.
20434 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20435 IFS=$save_IFS
20436 lt_os_major=${2-0}
20437 lt_os_minor=${3-0}
20438 lt_os_micro=${4-0}
20439 if test "$lt_os_major" -gt 1 \
20440 || { test "$lt_os_major" -eq 1 \
20441 && { test "$lt_os_minor" -gt 5 \
20442 || { test "$lt_os_minor" -eq 5 \
20443 && test "$lt_os_micro" -gt 24; }; }; }; then
20444 lt_cv_sys_argz_works=yes
20445 fi
20446 fi
20447 ;; #(
20448 *) lt_cv_sys_argz_works=yes ;;
20449 esac
20450fi
20451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20452$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020453 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020454
20455$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20456
20457else
20458 ARGZ_H=argz.h
20459
20460
20461 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20462
20463fi
20464fi
20465
20466
20467
20468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20469$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020470if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020471 $as_echo_n "(cached) " >&6
20472else
20473 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20474 libltdl_cv_preloaded_symbols=yes
20475 else
20476 libltdl_cv_preloaded_symbols=no
20477 fi
20478
20479fi
20480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20481$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20482if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20483
20484$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20485
20486fi
20487
20488# Set options
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500# Check whether --with-included_ltdl was given.
20501if test "${with_included_ltdl+set}" = set; then :
20502 withval=$with_included_ltdl;
20503fi
20504
20505
20506if test "x$with_included_ltdl" != xyes; then
20507 # We are not being forced to use the included libltdl sources, so
20508 # decide whether there is a useful installed version we can use.
20509 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20510
20511"
cristyda16f162011-02-19 23:52:17 +000020512if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020513 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20514 #include <ltdl.h>
20515"
cristyda16f162011-02-19 23:52:17 +000020516if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20518$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020519if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020520 $as_echo_n "(cached) " >&6
20521else
20522 ac_check_lib_save_LIBS=$LIBS
20523LIBS="-lltdl $LIBS"
20524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20525/* end confdefs.h. */
20526
20527/* Override any GCC internal prototype to avoid an error.
20528 Use char because int might match the return type of a GCC
20529 builtin and then its argument prototype would still apply. */
20530#ifdef __cplusplus
20531extern "C"
20532#endif
20533char lt_dladvise_preload ();
20534int
20535main ()
20536{
20537return lt_dladvise_preload ();
20538 ;
20539 return 0;
20540}
20541_ACEOF
20542if ac_fn_c_try_link "$LINENO"; then :
20543 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20544else
20545 ac_cv_lib_ltdl_lt_dladvise_preload=no
20546fi
20547rm -f core conftest.err conftest.$ac_objext \
20548 conftest$ac_exeext conftest.$ac_ext
20549LIBS=$ac_check_lib_save_LIBS
20550fi
20551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20552$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020553if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020554 with_included_ltdl=no
20555else
20556 with_included_ltdl=yes
20557fi
20558
20559else
20560 with_included_ltdl=yes
20561fi
20562
20563else
20564 with_included_ltdl=yes
20565fi
20566
20567
20568fi
20569
20570
20571
20572
20573# Check whether --with-ltdl_include was given.
20574if test "${with_ltdl_include+set}" = set; then :
20575 withval=$with_ltdl_include;
20576fi
20577
20578
20579if test -n "$with_ltdl_include"; then
20580 if test -f "$with_ltdl_include/ltdl.h"; then :
20581 else
cristy98dddb52010-11-04 00:30:15 +000020582 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020583 fi
20584else
20585 with_ltdl_include=no
20586fi
20587
20588
20589# Check whether --with-ltdl_lib was given.
20590if test "${with_ltdl_lib+set}" = set; then :
20591 withval=$with_ltdl_lib;
20592fi
20593
20594
20595if test -n "$with_ltdl_lib"; then
20596 if test -f "$with_ltdl_lib/libltdl.la"; then :
20597 else
cristy98dddb52010-11-04 00:30:15 +000020598 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020599 fi
20600else
20601 with_ltdl_lib=no
20602fi
20603
20604case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20605 ,yes,no,no,)
20606 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020607 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020608 "") enable_ltdl_convenience=yes
20609 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20610esac
20611LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20612LTDLDEPS=$LIBLTDL
20613LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20614
20615
20616
20617
20618
20619# For backwards non-gettext consistent compatibility...
20620INCLTDL="$LTDLINCL"
20621
20622
20623 ;;
20624 ,no,no,no,)
20625 # If the included ltdl is not to be used, then use the
20626 # preinstalled libltdl we found.
20627
20628$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20629
20630 LIBLTDL=-lltdl
20631 LTDLDEPS=
20632 LTDLINCL=
20633 ;;
20634 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020635 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020636 ;;
20637 *) with_included_ltdl=no
20638 LIBLTDL="-L$with_ltdl_lib -lltdl"
20639 LTDLDEPS=
20640 LTDLINCL="-I$with_ltdl_include"
20641 ;;
20642esac
20643INCLTDL="$LTDLINCL"
20644
20645# Report our decision...
20646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20647$as_echo_n "checking where to find libltdl headers... " >&6; }
20648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20649$as_echo "$LTDLINCL" >&6; }
20650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20651$as_echo_n "checking where to find libltdl library... " >&6; }
20652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20653$as_echo "$LIBLTDL" >&6; }
20654
20655
20656
20657# Check whether --enable-ltdl-install was given.
20658if test "${enable_ltdl_install+set}" = set; then :
20659 enableval=$enable_ltdl_install;
20660fi
20661
20662
20663case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20664 *yes*) ;;
20665 *) enable_ltdl_convenience=yes ;;
20666esac
20667
20668 if test x"${enable_ltdl_install-no}" != xno; then
20669 INSTALL_LTDL_TRUE=
20670 INSTALL_LTDL_FALSE='#'
20671else
20672 INSTALL_LTDL_TRUE='#'
20673 INSTALL_LTDL_FALSE=
20674fi
20675
20676 if test x"${enable_ltdl_convenience-no}" != xno; then
20677 CONVENIENCE_LTDL_TRUE=
20678 CONVENIENCE_LTDL_FALSE='#'
20679else
20680 CONVENIENCE_LTDL_TRUE='#'
20681 CONVENIENCE_LTDL_FALSE=
20682fi
20683
20684
20685
20686
20687
20688
cristy73bd4a52010-10-05 11:24:23 +000020689# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20690# the user used. This is so that ltdl.h can pick up the parent projects
20691# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20692# definitions required by ltdl.c.
20693# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20694
20695
20696
20697for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20698do :
20699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20700ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20701"
cristy98dddb52010-11-04 00:30:15 +000020702if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020703 cat >>confdefs.h <<_ACEOF
20704#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20705_ACEOF
20706
20707fi
20708
20709done
20710
20711
20712for ac_func in closedir opendir readdir
20713do :
20714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20715ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020716if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020717 cat >>confdefs.h <<_ACEOF
20718#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20719_ACEOF
20720
20721else
20722
20723
20724 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20725
20726fi
20727done
20728
20729for ac_func in strlcat strlcpy
20730do :
20731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20732ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020733if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020734 cat >>confdefs.h <<_ACEOF
20735#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20736_ACEOF
20737
20738else
20739
20740
20741 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20742
20743fi
20744done
20745
20746
20747
20748cat >>confdefs.h <<_ACEOF
20749#define LT_LIBEXT "$libext"
20750_ACEOF
20751
20752
cristyda16f162011-02-19 23:52:17 +000020753name=
20754eval "lt_libprefix=\"$libname_spec\""
20755
20756cat >>confdefs.h <<_ACEOF
20757#define LT_LIBPREFIX "$lt_libprefix"
20758_ACEOF
20759
20760
cristy73bd4a52010-10-05 11:24:23 +000020761name=ltdl
cristyda16f162011-02-19 23:52:17 +000020762eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020763
20764
20765
20766
20767
20768
20769
20770
20771# Only expand once:
20772
20773
cristy3ed852e2009-09-05 21:47:34 +000020774
20775# Check to see if building shared libraries
20776libtool_build_shared_libs='no'
20777if test "$enable_shared" = 'yes'; then
20778 libtool_build_shared_libs='yes'
20779fi
20780
20781# Check to see if building static libraries
20782libtool_build_static_libs='no'
20783if test "$enable_static" = 'yes'; then
20784 libtool_build_static_libs='yes'
20785fi
20786
cristy73bd4a52010-10-05 11:24:23 +000020787 if test "${libtool_build_shared_libs}" = 'yes'; then
20788 WITH_SHARED_LIBS_TRUE=
20789 WITH_SHARED_LIBS_FALSE='#'
20790else
20791 WITH_SHARED_LIBS_TRUE='#'
20792 WITH_SHARED_LIBS_FALSE=
20793fi
20794
cristy3ed852e2009-09-05 21:47:34 +000020795#
20796# Enable support for building loadable modules
20797#
20798
20799# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020800if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020801 withval=$with_modules; with_modules=$withval
20802else
cristy5a1cefd2010-01-06 20:42:35 +000020803 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020804fi
20805
20806
20807# Only allow building loadable modules if we are building shared libraries
20808if test "$with_modules" != 'no' ; then
20809 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020810 { $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 +000020811$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20812 with_modules='no'
20813 fi
20814fi
20815if test "$with_modules" != 'no'; then
20816
cristy8b350f62009-11-15 23:12:43 +000020817$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020818
20819fi
cristy73bd4a52010-10-05 11:24:23 +000020820 if test "$with_modules" != 'no'; then
20821 WITH_MODULES_TRUE=
20822 WITH_MODULES_FALSE='#'
20823else
20824 WITH_MODULES_TRUE='#'
20825 WITH_MODULES_FALSE=
20826fi
20827
cristy3ed852e2009-09-05 21:47:34 +000020828
20829# Enable building/use of libltdl if we are building shared libraries regardless
20830# of whether modules are built or not.
20831with_ltdl='no'
20832if test "$libtool_build_shared_libs" != 'no'; then
20833 with_ltdl='yes'
20834fi
20835
cristy73bd4a52010-10-05 11:24:23 +000020836 if test "$with_ltdl" != 'no'; then
20837 WITH_LTDL_TRUE=
20838 WITH_LTDL_FALSE='#'
20839else
20840 WITH_LTDL_TRUE='#'
20841 WITH_LTDL_FALSE=
20842fi
20843
cristy3ed852e2009-09-05 21:47:34 +000020844if test "$with_ltdl" != 'no'; then
20845
cristy8b350f62009-11-15 23:12:43 +000020846$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020847
20848
20849 # Set DLLDFLAGS
20850 if test X"$enable_shared" = Xyes; then
20851 DLLDFLAGS=-export-dynamic
20852
20853 fi
20854fi
20855
20856# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020857# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020858# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020859if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020860 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20861else
20862 enable_delegate_build='no'
20863fi
20864
20865
20866# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020867if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020868 enableval=$enable_deprecated; enable_deprecated=$enableval
20869else
20870 enable_deprecated='no'
20871fi
20872
20873
20874if test "$enable_deprecated" = 'yes'; then
20875
cristy8b350f62009-11-15 23:12:43 +000020876$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020877
20878else
20879 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20880fi
20881
20882# Build a version of ImageMagick which operates uninstalled.
20883# Used to build distributions located via MAGICK_HOME / executable path
20884# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020885if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020886 enableval=$enable_installed; enable_installed=$enableval
20887else
20888 enable_installed='yes'
20889fi
20890
20891
20892if test "$enable_installed" = 'yes'; then
20893
cristy8b350f62009-11-15 23:12:43 +000020894$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020895
20896else
20897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20898fi
20899
20900# Permit enciphering and deciphering image pixels.
20901# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020902if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020903 enableval=$enable_cipher; enable_cipher=$enableval
20904else
20905 enable_cipher='yes'
20906fi
20907
20908
20909if test "$enable_cipher" = 'yes'; then
20910
cristy8b350f62009-11-15 23:12:43 +000020911$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020912
20913fi
20914
20915# Build an embeddable version of ImageMagick.
20916# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020917if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020918 enableval=$enable_embeddable; enable_embeddable=$enableval
20919else
20920 enable_embeddable='no'
20921fi
20922
20923
20924if test "$enable_embeddable" = 'yes'; then
20925
cristy8b350f62009-11-15 23:12:43 +000020926$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020927
20928fi
20929
20930# Build a high dynamic range version of ImageMagick.
20931# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020932if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020933 enableval=$enable_hdri; enable_hdri=$enableval
20934else
20935 enable_hdri='no'
20936fi
20937
20938
20939MAGICK_HDRI=""
20940if test "$enable_hdri" = 'yes'; then
20941 MAGICK_HDRI="HDRI"
20942
cristy8b350f62009-11-15 23:12:43 +000020943$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020944
cristyfd9dcd42010-08-08 18:07:02 +000020945 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020946fi
20947
cristy3ed852e2009-09-05 21:47:34 +000020948# Build a version of ImageMagick with assert statements.
20949# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020950if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020951 enableval=$enable_assert; enable_assert=$enableval
20952else
20953 enable_assert='yes'
20954fi
20955
20956
20957if test "$enable_assert" = 'no'; then
20958
cristy8b350f62009-11-15 23:12:43 +000020959$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020960
20961fi
20962
20963# Add configure option --enable-maintainer-mode which enables dependency
20964# checking and generation useful to package maintainers. This is made an
20965# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020966
20967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20968$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20969 # Check whether --enable-maintainer-mode was given.
20970if test "${enable_maintainer_mode+set}" = set; then :
20971 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20972else
20973 USE_MAINTAINER_MODE=no
20974fi
20975
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20977$as_echo "$USE_MAINTAINER_MODE" >&6; }
20978 if test $USE_MAINTAINER_MODE = yes; then
20979 MAINTAINER_MODE_TRUE=
20980 MAINTAINER_MODE_FALSE='#'
20981else
20982 MAINTAINER_MODE_TRUE='#'
20983 MAINTAINER_MODE_FALSE=
20984fi
20985
20986 MAINT=$MAINTAINER_MODE_TRUE
20987
20988
cristy3ed852e2009-09-05 21:47:34 +000020989
20990
20991# Enable ccmalloc memory debugging support
20992# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020993if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020994 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20995else
20996 enable_ccmalloc='no'
20997fi
20998
20999
21000# Enable Electric Fence memory debugging support
21001# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021002if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021003 enableval=$enable_efence; enable_efence=$enableval
21004else
21005 enable_efence='no'
21006fi
21007
21008
21009# Enable prof-based profiling support
21010# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021011if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021012 enableval=$enable_prof; enable_prof=$enableval
21013else
21014 enable_prof='no'
21015fi
21016
21017
21018# Enable gprof-based profiling support
21019# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021020if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021021 enableval=$enable_gprof; enable_gprof=$enableval
21022else
21023 enable_gprof='no'
21024fi
21025
21026
21027# Enable gcov-based profiling support
21028# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021029if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021030 enableval=$enable_gcov; enable_gcov=$enableval
21031else
21032 enable_gcov='no'
21033fi
21034
21035
21036enable_profiling='no'
21037if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21038 enable_profiling='yes'
21039 if test "$libtool_build_shared_libs" = 'yes'; then
21040 echo "Warning: Can not profile code using shared libraries"
21041 fi
21042fi
21043
21044# Magick API method prefix
21045
21046# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021047if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021048 withval=$with_method_prefix; with_method_prefix=$enableval
21049else
21050 with_method_prefix=''
21051fi
21052
21053
21054if test "$with_method_prefix" != ''; then
21055
21056cat >>confdefs.h <<_ACEOF
21057#define NAMESPACE_PREFIX $with_method_prefix
21058_ACEOF
21059
21060fi
21061
21062# Number of bits in a Quantum
21063
21064# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021065if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021066 withval=$with_quantum_depth; with_quantum_depth=$withval
21067else
21068 with_quantum_depth=16
21069fi
21070
21071
21072if test "$with_quantum_depth" != '8'; then
21073 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21074fi
21075
21076case "${with_quantum_depth}" in
21077 8 ) ;;
21078 16 ) ;;
21079 32 ) ;;
21080 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021081 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021082esac
cristycdae12a2010-09-19 02:24:31 +000021083if test "$enable_hdri" = 'yes'; then
21084 with_quantum_depth=16
21085fi
cristy3ed852e2009-09-05 21:47:34 +000021086QUANTUM_DEPTH="$with_quantum_depth"
21087
21088cat >>confdefs.h <<_ACEOF
21089#define QUANTUM_DEPTH $QUANTUM_DEPTH
21090_ACEOF
21091
21092
21093# Set pixel cache threshold
21094
21095# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021096if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021097 withval=$with_cache; with_cache=$withval
21098else
21099 with_cache=''
21100fi
21101
21102
21103if test "$with_cache" != ''; then
21104
21105cat >>confdefs.h <<_ACEOF
21106#define PixelCacheThreshold $with_cache
21107_ACEOF
21108
21109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21110fi
21111
21112# Disable/Enable support for full delegate paths
21113
21114# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021115if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021116 withval=$with_frozenpaths; with_frozenpaths=$withval
21117else
21118 with_frozenpaths='no'
21119fi
21120
21121
21122# Enable build/install of Magick++
21123
21124# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021125if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021126 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21127else
21128 with_magick_plus_plus='yes'
21129fi
21130
21131
21132# Disable build/install of PerlMagick.
21133
21134# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021135if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021136 withval=$with_perl; with_perl=$withval
21137else
cristyb5f4e2f2010-04-25 00:49:11 +000021138 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021139fi
21140
21141
21142# Options to pass when configuring PerlMagick
21143
21144# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021145if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021146 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021147fi
21148
21149
cristy3ed852e2009-09-05 21:47:34 +000021150
21151# Enable umem, object-caching memory allocation library.
21152
21153# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021154if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021155 withval=$with_umem; with_umem=$withval
21156else
21157 with_umem='no'
21158fi
21159
21160if test "$with_umem" != 'yes' ; then
21161 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21162fi
21163
21164#
21165# Specify path to shared libstdc++ if not in normal location
21166#
21167
21168# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021169if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021170 withval=$with_libstdc; with_libstdc=$withval
21171else
21172 with_libstdc=''
21173fi
21174
21175
21176if test "$with_libstdc" != ''; then
21177 if test -d "$with_libstdc"; then
21178 LIBSTDCLDFLAGS="-L$with_libstdc"
21179 fi
21180fi
21181
21182
21183# Does gcc required -traditional?
21184if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021186$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021187if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021188 $as_echo_n "(cached) " >&6
21189else
21190 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021192/* end confdefs.h. */
21193#include <sgtty.h>
21194Autoconf TIOCGETP
21195_ACEOF
21196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021197 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021198 ac_cv_prog_gcc_traditional=yes
21199else
21200 ac_cv_prog_gcc_traditional=no
21201fi
21202rm -f conftest*
21203
21204
21205 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021207/* end confdefs.h. */
21208#include <termio.h>
21209Autoconf TCGETA
21210_ACEOF
21211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021212 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021213 ac_cv_prog_gcc_traditional=yes
21214fi
21215rm -f conftest*
21216
21217 fi
21218fi
cristy8b350f62009-11-15 23:12:43 +000021219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021220$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21221 if test $ac_cv_prog_gcc_traditional = yes; then
21222 CC="$CC -traditional"
21223 fi
21224fi
21225
21226
21227########
21228#
21229# Set defines required to build DLLs and modules using MinGW
21230#
21231########
21232# These options are set for multi-thread DLL module build
21233# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21234# module: _DLL
21235# executable/Magick++: _DLL _MAGICKMOD_
21236MODULE_EXTRA_CPPFLAGS=''
21237LIBRARY_EXTRA_CPPFLAGS=''
21238if test "${native_win32_build}" = 'yes'; then
21239 if test "${libtool_build_shared_libs}" = 'yes'; then
21240 CPPFLAGS="$CPPFLAGS -D_DLL"
21241 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21242 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21243 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21244 if test "$with_modules" = 'yes'; then
21245 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21246 else
21247 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21248 fi
21249 else
21250 CPPFLAGS="$CPPFLAGS -D_LIB"
21251 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21252 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21253 fi
21254 if test "$with_threads" = 'yes'; then
21255 CPPFLAGS="$CPPFLAGS -D_MT"
21256 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21257 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21258 fi
21259fi
21260
21261
21262
21263# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021265$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021266if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021267 $as_echo_n "(cached) " >&6
21268else
cristy8b350f62009-11-15 23:12:43 +000021269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021270/* end confdefs.h. */
21271#include <stdlib.h>
21272#include <stdarg.h>
21273#include <string.h>
21274#include <float.h>
21275
21276int
21277main ()
21278{
21279
21280 ;
21281 return 0;
21282}
21283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021284if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021285 ac_cv_header_stdc=yes
21286else
cristy8b350f62009-11-15 23:12:43 +000021287 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021288fi
cristy3ed852e2009-09-05 21:47:34 +000021289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290
21291if test $ac_cv_header_stdc = yes; then
21292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021294/* end confdefs.h. */
21295#include <string.h>
21296
21297_ACEOF
21298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021299 $EGREP "memchr" >/dev/null 2>&1; then :
21300
cristy3ed852e2009-09-05 21:47:34 +000021301else
21302 ac_cv_header_stdc=no
21303fi
21304rm -f conftest*
21305
21306fi
21307
21308if test $ac_cv_header_stdc = yes; then
21309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021311/* end confdefs.h. */
21312#include <stdlib.h>
21313
21314_ACEOF
21315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021316 $EGREP "free" >/dev/null 2>&1; then :
21317
cristy3ed852e2009-09-05 21:47:34 +000021318else
21319 ac_cv_header_stdc=no
21320fi
21321rm -f conftest*
21322
21323fi
21324
21325if test $ac_cv_header_stdc = yes; then
21326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021327 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021328 :
21329else
cristy8b350f62009-11-15 23:12:43 +000021330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021331/* end confdefs.h. */
21332#include <ctype.h>
21333#include <stdlib.h>
21334#if ((' ' & 0x0FF) == 0x020)
21335# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21336# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21337#else
21338# define ISLOWER(c) \
21339 (('a' <= (c) && (c) <= 'i') \
21340 || ('j' <= (c) && (c) <= 'r') \
21341 || ('s' <= (c) && (c) <= 'z'))
21342# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21343#endif
21344
21345#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21346int
21347main ()
21348{
21349 int i;
21350 for (i = 0; i < 256; i++)
21351 if (XOR (islower (i), ISLOWER (i))
21352 || toupper (i) != TOUPPER (i))
21353 return 2;
21354 return 0;
21355}
21356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021357if ac_fn_c_try_run "$LINENO"; then :
21358
cristy3ed852e2009-09-05 21:47:34 +000021359else
cristy8b350f62009-11-15 23:12:43 +000021360 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021361fi
cristy8b350f62009-11-15 23:12:43 +000021362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21363 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021364fi
21365
cristy3ed852e2009-09-05 21:47:34 +000021366fi
21367fi
cristy8b350f62009-11-15 23:12:43 +000021368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021369$as_echo "$ac_cv_header_stdc" >&6; }
21370if test $ac_cv_header_stdc = yes; then
21371
cristy8b350f62009-11-15 23:12:43 +000021372$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021373
21374fi
21375
21376if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021377 { $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 +000021378 header files. Compilation cannot proceed. Please install the ANSI C
21379 headers and rerun this script." >&5
21380$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21381 header files. Compilation cannot proceed. Please install the ANSI C
21382 headers and rerun this script." >&2;};
21383fi
cristya0b81c32010-01-22 02:54:33 +000021384
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21386$as_echo_n "checking whether to enable assertions... " >&6; }
21387 # Check whether --enable-assert was given.
21388if test "${enable_assert+set}" = set; then :
21389 enableval=$enable_assert; ac_enable_assert=$enableval
21390 if test "x$enableval" = xno; then :
21391
21392$as_echo "#define NDEBUG 1" >>confdefs.h
21393
21394elif test "x$enableval" != xyes; then :
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21396$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21397 ac_enable_assert=yes
21398fi
21399else
21400 ac_enable_assert=yes
21401fi
21402
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21404$as_echo "$ac_enable_assert" >&6; }
21405
cristy3ed852e2009-09-05 21:47:34 +000021406ac_header_dirent=no
21407for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21408 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021410$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021411if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021412 $as_echo_n "(cached) " >&6
21413else
cristy8b350f62009-11-15 23:12:43 +000021414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021415/* end confdefs.h. */
21416#include <sys/types.h>
21417#include <$ac_hdr>
21418
21419int
21420main ()
21421{
21422if ((DIR *) 0)
21423return 0;
21424 ;
21425 return 0;
21426}
21427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021428if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021429 eval "$as_ac_Header=yes"
21430else
cristy8b350f62009-11-15 23:12:43 +000021431 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021432fi
cristy3ed852e2009-09-05 21:47:34 +000021433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434fi
cristy8b350f62009-11-15 23:12:43 +000021435eval ac_res=\$$as_ac_Header
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021437$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021439 cat >>confdefs.h <<_ACEOF
21440#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21441_ACEOF
21442
21443ac_header_dirent=$ac_hdr; break
21444fi
21445
21446done
21447# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21448if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021450$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021451if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021452 $as_echo_n "(cached) " >&6
21453else
21454 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021456/* end confdefs.h. */
21457
21458/* Override any GCC internal prototype to avoid an error.
21459 Use char because int might match the return type of a GCC
21460 builtin and then its argument prototype would still apply. */
21461#ifdef __cplusplus
21462extern "C"
21463#endif
21464char opendir ();
21465int
21466main ()
21467{
21468return opendir ();
21469 ;
21470 return 0;
21471}
21472_ACEOF
21473for ac_lib in '' dir; do
21474 if test -z "$ac_lib"; then
21475 ac_res="none required"
21476 else
21477 ac_res=-l$ac_lib
21478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21479 fi
cristy8b350f62009-11-15 23:12:43 +000021480 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021481 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021482fi
cristy8b350f62009-11-15 23:12:43 +000021483rm -f core conftest.err conftest.$ac_objext \
21484 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021485 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021486 break
21487fi
21488done
cristyda16f162011-02-19 23:52:17 +000021489if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021490
cristy3ed852e2009-09-05 21:47:34 +000021491else
21492 ac_cv_search_opendir=no
21493fi
21494rm conftest.$ac_ext
21495LIBS=$ac_func_search_save_LIBS
21496fi
cristy8b350f62009-11-15 23:12:43 +000021497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021498$as_echo "$ac_cv_search_opendir" >&6; }
21499ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021500if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21502
21503fi
21504
21505else
cristy8b350f62009-11-15 23:12:43 +000021506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021507$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021508if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021509 $as_echo_n "(cached) " >&6
21510else
21511 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021513/* end confdefs.h. */
21514
21515/* Override any GCC internal prototype to avoid an error.
21516 Use char because int might match the return type of a GCC
21517 builtin and then its argument prototype would still apply. */
21518#ifdef __cplusplus
21519extern "C"
21520#endif
21521char opendir ();
21522int
21523main ()
21524{
21525return opendir ();
21526 ;
21527 return 0;
21528}
21529_ACEOF
21530for ac_lib in '' x; do
21531 if test -z "$ac_lib"; then
21532 ac_res="none required"
21533 else
21534 ac_res=-l$ac_lib
21535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21536 fi
cristy8b350f62009-11-15 23:12:43 +000021537 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021538 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021539fi
cristy8b350f62009-11-15 23:12:43 +000021540rm -f core conftest.err conftest.$ac_objext \
21541 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021542 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 break
21544fi
21545done
cristyda16f162011-02-19 23:52:17 +000021546if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021547
cristy3ed852e2009-09-05 21:47:34 +000021548else
21549 ac_cv_search_opendir=no
21550fi
21551rm conftest.$ac_ext
21552LIBS=$ac_func_search_save_LIBS
21553fi
cristy8b350f62009-11-15 23:12:43 +000021554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021555$as_echo "$ac_cv_search_opendir" >&6; }
21556ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021557if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21559
21560fi
21561
21562fi
21563
21564
21565# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021566for 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 +000021567do :
21568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21569ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021571 cat >>confdefs.h <<_ACEOF
21572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21573_ACEOF
21574
21575fi
21576
21577done
21578
21579
21580########
21581#
21582# Checks for typedefs, structures, and compiler characteristics.
21583#
21584########
21585
cristy8b350f62009-11-15 23:12:43 +000021586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021587$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021588if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021589 $as_echo_n "(cached) " >&6
21590else
cristy8b350f62009-11-15 23:12:43 +000021591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021592/* end confdefs.h. */
21593
21594#include <stdbool.h>
21595#ifndef bool
21596 "error: bool is not defined"
21597#endif
21598#ifndef false
21599 "error: false is not defined"
21600#endif
21601#if false
21602 "error: false is not 0"
21603#endif
21604#ifndef true
21605 "error: true is not defined"
21606#endif
21607#if true != 1
21608 "error: true is not 1"
21609#endif
21610#ifndef __bool_true_false_are_defined
21611 "error: __bool_true_false_are_defined is not defined"
21612#endif
21613
21614 struct s { _Bool s: 1; _Bool t; } s;
21615
21616 char a[true == 1 ? 1 : -1];
21617 char b[false == 0 ? 1 : -1];
21618 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21619 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021620 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021621 char f[(_Bool) 0.0 == false ? 1 : -1];
21622 char g[true];
21623 char h[sizeof (_Bool)];
21624 char i[sizeof s.t];
21625 enum { j = false, k = true, l = false * true, m = true * 256 };
21626 /* The following fails for
21627 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21628 _Bool n[m];
21629 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21630 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021631 /* Catch a bug in an HP-UX C compiler. See
21632 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21633 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21634 */
21635 _Bool q = true;
21636 _Bool *pq = &q;
21637
21638int
21639main ()
21640{
21641
cristyda16f162011-02-19 23:52:17 +000021642 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021643 *pq |= q;
21644 *pq |= ! q;
21645 /* Refer to every declared value, to avoid compiler optimizations. */
21646 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21647 + !m + !n + !o + !p + !q + !pq);
21648
21649 ;
21650 return 0;
21651}
21652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021653if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021654 ac_cv_header_stdbool_h=yes
21655else
cristy8b350f62009-11-15 23:12:43 +000021656 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021657fi
cristy3ed852e2009-09-05 21:47:34 +000021658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659fi
cristy8b350f62009-11-15 23:12:43 +000021660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021661$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021662ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021663if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021664
21665cat >>confdefs.h <<_ACEOF
21666#define HAVE__BOOL 1
21667_ACEOF
21668
21669
21670fi
21671
21672if test $ac_cv_header_stdbool_h = yes; then
21673
cristy8b350f62009-11-15 23:12:43 +000021674$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021675
21676fi
21677
cristy8b350f62009-11-15 23:12:43 +000021678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021679$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021680if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021681 $as_echo_n "(cached) " >&6
21682else
cristy8b350f62009-11-15 23:12:43 +000021683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021684/* end confdefs.h. */
21685
21686int
21687main ()
21688{
21689
21690volatile int x;
21691int * volatile y = (int *) 0;
21692return !x && !y;
21693 ;
21694 return 0;
21695}
21696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021697if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021698 ac_cv_c_volatile=yes
21699else
cristy8b350f62009-11-15 23:12:43 +000021700 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021701fi
cristy3ed852e2009-09-05 21:47:34 +000021702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21703fi
cristy8b350f62009-11-15 23:12:43 +000021704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021705$as_echo "$ac_cv_c_volatile" >&6; }
21706if test $ac_cv_c_volatile = no; then
21707
cristy8b350f62009-11-15 23:12:43 +000021708$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021709
21710fi
21711
cristy8b350f62009-11-15 23:12:43 +000021712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021713$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021714if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 $as_echo_n "(cached) " >&6
21716else
cristy8b350f62009-11-15 23:12:43 +000021717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021718/* end confdefs.h. */
21719#define x(y) #y
21720
21721char *s = x(teststring);
21722_ACEOF
21723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021724 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021725 ac_cv_c_stringize=no
21726else
21727 ac_cv_c_stringize=yes
21728fi
21729rm -f conftest*
21730
21731fi
cristy8b350f62009-11-15 23:12:43 +000021732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021733$as_echo "$ac_cv_c_stringize" >&6; }
21734if test $ac_cv_c_stringize = yes; then
21735
cristy8b350f62009-11-15 23:12:43 +000021736$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021737
21738fi
21739
cristy8b350f62009-11-15 23:12:43 +000021740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021741$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021742if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021743 $as_echo_n "(cached) " >&6
21744else
cristy8b350f62009-11-15 23:12:43 +000021745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021746/* end confdefs.h. */
21747#include <sys/types.h>
21748#include <sys/stat.h>
21749
21750#if defined S_ISBLK && defined S_IFDIR
21751extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21752#endif
21753
21754#if defined S_ISBLK && defined S_IFCHR
21755extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21756#endif
21757
21758#if defined S_ISLNK && defined S_IFREG
21759extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21760#endif
21761
21762#if defined S_ISSOCK && defined S_IFREG
21763extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21764#endif
21765
21766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021767if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021768 ac_cv_header_stat_broken=no
21769else
cristy8b350f62009-11-15 23:12:43 +000021770 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021771fi
cristy3ed852e2009-09-05 21:47:34 +000021772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773fi
cristy8b350f62009-11-15 23:12:43 +000021774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021775$as_echo "$ac_cv_header_stat_broken" >&6; }
21776if test $ac_cv_header_stat_broken = yes; then
21777
cristy8b350f62009-11-15 23:12:43 +000021778$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021779
21780fi
21781
cristy8b350f62009-11-15 23:12:43 +000021782{ $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 +000021783$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021784if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021785 $as_echo_n "(cached) " >&6
21786else
cristy8b350f62009-11-15 23:12:43 +000021787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021788/* end confdefs.h. */
21789#include <sys/types.h>
21790#include <sys/time.h>
21791#include <time.h>
21792
21793int
21794main ()
21795{
21796if ((struct tm *) 0)
21797return 0;
21798 ;
21799 return 0;
21800}
21801_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021802if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021803 ac_cv_header_time=yes
21804else
cristy8b350f62009-11-15 23:12:43 +000021805 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021806fi
cristy3ed852e2009-09-05 21:47:34 +000021807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808fi
cristy8b350f62009-11-15 23:12:43 +000021809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021810$as_echo "$ac_cv_header_time" >&6; }
21811if test $ac_cv_header_time = yes; then
21812
cristy8b350f62009-11-15 23:12:43 +000021813$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021814
21815fi
21816
cristy8b350f62009-11-15 23:12:43 +000021817{ $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 +000021818$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021819if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021820 $as_echo_n "(cached) " >&6
21821else
cristy8b350f62009-11-15 23:12:43 +000021822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021823/* end confdefs.h. */
21824#include <sys/types.h>
21825#include <time.h>
21826
21827int
21828main ()
21829{
21830struct tm tm;
21831 int *p = &tm.tm_sec;
21832 return !p;
21833 ;
21834 return 0;
21835}
21836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021837if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021838 ac_cv_struct_tm=time.h
21839else
cristy8b350f62009-11-15 23:12:43 +000021840 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021841fi
cristy3ed852e2009-09-05 21:47:34 +000021842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21843fi
cristy8b350f62009-11-15 23:12:43 +000021844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021845$as_echo "$ac_cv_struct_tm" >&6; }
21846if test $ac_cv_struct_tm = sys/time.h; then
21847
cristy8b350f62009-11-15 23:12:43 +000021848$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021849
21850fi
21851
cristy92703d82010-04-26 00:18:18 +000021852ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21853#include <$ac_cv_struct_tm>
21854
21855"
cristyda16f162011-02-19 23:52:17 +000021856if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021857
21858cat >>confdefs.h <<_ACEOF
21859#define HAVE_STRUCT_TM_TM_ZONE 1
21860_ACEOF
21861
21862
21863fi
21864
21865if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21866
21867$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21868
21869else
21870 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21871"
cristyda16f162011-02-19 23:52:17 +000021872if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021873 ac_have_decl=1
21874else
21875 ac_have_decl=0
21876fi
21877
21878cat >>confdefs.h <<_ACEOF
21879#define HAVE_DECL_TZNAME $ac_have_decl
21880_ACEOF
21881
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21883$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021884if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021885 $as_echo_n "(cached) " >&6
21886else
21887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21888/* end confdefs.h. */
21889#include <time.h>
21890#if !HAVE_DECL_TZNAME
21891extern char *tzname[];
21892#endif
21893
21894int
21895main ()
21896{
21897return tzname[0][0];
21898 ;
21899 return 0;
21900}
21901_ACEOF
21902if ac_fn_c_try_link "$LINENO"; then :
21903 ac_cv_var_tzname=yes
21904else
21905 ac_cv_var_tzname=no
21906fi
21907rm -f core conftest.err conftest.$ac_objext \
21908 conftest$ac_exeext conftest.$ac_ext
21909fi
21910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21911$as_echo "$ac_cv_var_tzname" >&6; }
21912 if test $ac_cv_var_tzname = yes; then
21913
21914$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21915
21916 fi
21917fi
21918
cristy8b350f62009-11-15 23:12:43 +000021919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021920$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021921if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021922 $as_echo_n "(cached) " >&6
21923else
21924 echo '#! /bin/cat
21925exit 69
21926' >conftest
21927chmod u+x conftest
21928(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21929if test $? -ne 69; then
21930 ac_cv_sys_interpreter=yes
21931else
21932 ac_cv_sys_interpreter=no
21933fi
21934rm -f conftest
21935fi
cristy8b350f62009-11-15 23:12:43 +000021936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021937$as_echo "$ac_cv_sys_interpreter" >&6; }
21938interpval=$ac_cv_sys_interpreter
21939
21940
cristy3ed852e2009-09-05 21:47:34 +000021941# If the C compiler supports the keyword inline, do nothing. Otherwise
21942# define inline to __inline__ or __inline if it accepts one of those,
21943# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021945$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021946if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021947 $as_echo_n "(cached) " >&6
21948else
21949 ac_cv_c_inline=no
21950for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021952/* end confdefs.h. */
21953#ifndef __cplusplus
21954typedef int foo_t;
21955static $ac_kw foo_t static_foo () {return 0; }
21956$ac_kw foo_t foo () {return 0; }
21957#endif
21958
21959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021960if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021961 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021962fi
cristy3ed852e2009-09-05 21:47:34 +000021963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 test "$ac_cv_c_inline" != no && break
21965done
21966
21967fi
cristy8b350f62009-11-15 23:12:43 +000021968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021969$as_echo "$ac_cv_c_inline" >&6; }
21970
cristy3ed852e2009-09-05 21:47:34 +000021971case $ac_cv_c_inline in
21972 inline | yes) ;;
21973 *)
21974 case $ac_cv_c_inline in
21975 no) ac_val=;;
21976 *) ac_val=$ac_cv_c_inline;;
21977 esac
21978 cat >>confdefs.h <<_ACEOF
21979#ifndef __cplusplus
21980#define inline $ac_val
21981#endif
21982_ACEOF
21983 ;;
21984esac
21985
21986
21987# If the C compiler supports the keyword restrict, do nothing. Otherwise
21988# define restrict to __restrict__ or __restrict if it accepts one of those,
21989# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021991$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021992if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021993 $as_echo_n "(cached) " >&6
21994else
21995 ac_cv_c_restrict=no
21996 # The order here caters to the fact that C++ does not require restrict.
21997 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021999/* end confdefs.h. */
22000typedef int * int_ptr;
22001 int foo (int_ptr $ac_kw ip) {
22002 return ip[0];
22003 }
22004int
22005main ()
22006{
22007int s[1];
22008 int * $ac_kw t = s;
22009 t[0] = 0;
22010 return foo(t)
22011 ;
22012 return 0;
22013}
22014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022015if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022016 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022017fi
cristy3ed852e2009-09-05 21:47:34 +000022018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 test "$ac_cv_c_restrict" != no && break
22020 done
22021
22022fi
cristy8b350f62009-11-15 23:12:43 +000022023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022024$as_echo "$ac_cv_c_restrict" >&6; }
22025
cristy3ed852e2009-09-05 21:47:34 +000022026 case $ac_cv_c_restrict in
22027 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022028 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022029 ;;
22030 *) cat >>confdefs.h <<_ACEOF
22031#define restrict $ac_cv_c_restrict
22032_ACEOF
22033 ;;
22034 esac
22035
22036
22037# If words are stored with the most significant byte first (like
22038# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022040$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022041if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022042 $as_echo_n "(cached) " >&6
22043else
22044 ac_cv_c_bigendian=unknown
22045 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022047/* end confdefs.h. */
22048#ifndef __APPLE_CC__
22049 not a universal capable compiler
22050 #endif
22051 typedef int dummy;
22052
22053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022054if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022055
22056 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022057 # there are at least two -arch flags with different values.
22058 ac_arch=
22059 ac_prev=
22060 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22061 if test -n "$ac_prev"; then
22062 case $ac_word in
22063 i?86 | x86_64 | ppc | ppc64)
22064 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22065 ac_arch=$ac_word
22066 else
22067 ac_cv_c_bigendian=universal
22068 break
22069 fi
22070 ;;
22071 esac
22072 ac_prev=
22073 elif test "x$ac_word" = "x-arch"; then
22074 ac_prev=arch
22075 fi
22076 done
cristy3ed852e2009-09-05 21:47:34 +000022077fi
cristy3ed852e2009-09-05 21:47:34 +000022078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 if test $ac_cv_c_bigendian = unknown; then
22080 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022082/* end confdefs.h. */
22083#include <sys/types.h>
22084 #include <sys/param.h>
22085
22086int
22087main ()
22088{
22089#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22090 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22091 && LITTLE_ENDIAN)
22092 bogus endian macros
22093 #endif
22094
22095 ;
22096 return 0;
22097}
22098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022099if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022100 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022102/* end confdefs.h. */
22103#include <sys/types.h>
22104 #include <sys/param.h>
22105
22106int
22107main ()
22108{
22109#if BYTE_ORDER != BIG_ENDIAN
22110 not big endian
22111 #endif
22112
22113 ;
22114 return 0;
22115}
22116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022117if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022118 ac_cv_c_bigendian=yes
22119else
cristy8b350f62009-11-15 23:12:43 +000022120 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022121fi
cristy3ed852e2009-09-05 21:47:34 +000022122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022123fi
cristy3ed852e2009-09-05 21:47:34 +000022124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 fi
22126 if test $ac_cv_c_bigendian = unknown; then
22127 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022129/* end confdefs.h. */
22130#include <limits.h>
22131
22132int
22133main ()
22134{
22135#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22136 bogus endian macros
22137 #endif
22138
22139 ;
22140 return 0;
22141}
22142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022143if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022144 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022146/* end confdefs.h. */
22147#include <limits.h>
22148
22149int
22150main ()
22151{
22152#ifndef _BIG_ENDIAN
22153 not big endian
22154 #endif
22155
22156 ;
22157 return 0;
22158}
22159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022160if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022161 ac_cv_c_bigendian=yes
22162else
cristy8b350f62009-11-15 23:12:43 +000022163 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022164fi
cristy3ed852e2009-09-05 21:47:34 +000022165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022166fi
cristy3ed852e2009-09-05 21:47:34 +000022167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22168 fi
22169 if test $ac_cv_c_bigendian = unknown; then
22170 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022171 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022172 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022174/* end confdefs.h. */
22175short int ascii_mm[] =
22176 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22177 short int ascii_ii[] =
22178 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22179 int use_ascii (int i) {
22180 return ascii_mm[i] + ascii_ii[i];
22181 }
22182 short int ebcdic_ii[] =
22183 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22184 short int ebcdic_mm[] =
22185 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22186 int use_ebcdic (int i) {
22187 return ebcdic_mm[i] + ebcdic_ii[i];
22188 }
22189 extern int foo;
22190
22191int
22192main ()
22193{
22194return use_ascii (foo) == use_ebcdic (foo);
22195 ;
22196 return 0;
22197}
22198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022199if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022200 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22201 ac_cv_c_bigendian=yes
22202 fi
22203 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22204 if test "$ac_cv_c_bigendian" = unknown; then
22205 ac_cv_c_bigendian=no
22206 else
22207 # finding both strings is unlikely to happen, but who knows?
22208 ac_cv_c_bigendian=unknown
22209 fi
22210 fi
cristy3ed852e2009-09-05 21:47:34 +000022211fi
cristy3ed852e2009-09-05 21:47:34 +000022212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213else
cristy8b350f62009-11-15 23:12:43 +000022214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022215/* end confdefs.h. */
22216$ac_includes_default
22217int
22218main ()
22219{
22220
22221 /* Are we little or big endian? From Harbison&Steele. */
22222 union
22223 {
22224 long int l;
22225 char c[sizeof (long int)];
22226 } u;
22227 u.l = 1;
22228 return u.c[sizeof (long int) - 1] == 1;
22229
22230 ;
22231 return 0;
22232}
22233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022234if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022235 ac_cv_c_bigendian=no
22236else
cristy8b350f62009-11-15 23:12:43 +000022237 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022238fi
cristy8b350f62009-11-15 23:12:43 +000022239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22240 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022241fi
22242
cristy3ed852e2009-09-05 21:47:34 +000022243 fi
22244fi
cristy8b350f62009-11-15 23:12:43 +000022245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo "$ac_cv_c_bigendian" >&6; }
22247 case $ac_cv_c_bigendian in #(
22248 yes)
cristy8b350f62009-11-15 23:12:43 +000022249 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022250;; #(
22251 no)
22252 ;; #(
22253 universal)
22254
cristy8b350f62009-11-15 23:12:43 +000022255$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022256
22257 ;; #(
22258 *)
cristy98dddb52010-11-04 00:30:15 +000022259 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022260 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022261 esac
22262
22263
22264# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022265ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022266if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022267
cristy3ed852e2009-09-05 21:47:34 +000022268else
22269
22270cat >>confdefs.h <<_ACEOF
22271#define mode_t int
22272_ACEOF
22273
22274fi
22275
22276
22277# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022278ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022279if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022280
cristy3ed852e2009-09-05 21:47:34 +000022281else
22282
22283cat >>confdefs.h <<_ACEOF
22284#define off_t long int
22285_ACEOF
22286
22287fi
22288
22289
22290# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022291ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022292if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022293
cristy3ed852e2009-09-05 21:47:34 +000022294else
22295
22296cat >>confdefs.h <<_ACEOF
22297#define pid_t int
22298_ACEOF
22299
22300fi
22301
22302
22303# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022304ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022305if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022306
cristy3ed852e2009-09-05 21:47:34 +000022307else
22308
22309cat >>confdefs.h <<_ACEOF
22310#define size_t unsigned int
22311_ACEOF
22312
22313fi
22314
22315
22316# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022317ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022318if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022319
cristy3ed852e2009-09-05 21:47:34 +000022320else
22321
22322cat >>confdefs.h <<_ACEOF
22323#define ssize_t int
22324_ACEOF
22325
22326fi
22327
22328
22329# If the C compiler supports a working long double type with more range
22330# or precision than the double type, define HAVE_LONG_DOUBLE.
22331
cristy8b350f62009-11-15 23:12:43 +000022332 { $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 +000022333$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022334if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022335 $as_echo_n "(cached) " >&6
22336else
cristy8b350f62009-11-15 23:12:43 +000022337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022338/* end confdefs.h. */
22339#include <float.h>
22340 long double const a[] =
22341 {
22342 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22343 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22344 };
22345 long double
22346 f (long double x)
22347 {
22348 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22349 + (x ? f (x) : 'c'));
22350 }
22351
22352int
22353main ()
22354{
22355static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22356 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22357 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22358 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22359 && (int) LDBL_EPSILON == 0
22360 )];
22361test_array [0] = 0
22362
22363 ;
22364 return 0;
22365}
22366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022367if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022368 ac_cv_type_long_double_wider=yes
22369else
cristy8b350f62009-11-15 23:12:43 +000022370 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022371fi
cristy3ed852e2009-09-05 21:47:34 +000022372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22373fi
cristy8b350f62009-11-15 23:12:43 +000022374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022375$as_echo "$ac_cv_type_long_double_wider" >&6; }
22376 if test $ac_cv_type_long_double_wider = yes; then
22377
cristy8b350f62009-11-15 23:12:43 +000022378$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022379
22380 fi
22381
22382
22383# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22384# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022386$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022387if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 $as_echo_n "(cached) " >&6
22389else
cristy8b350f62009-11-15 23:12:43 +000022390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022391/* end confdefs.h. */
22392$ac_includes_default
22393int
22394main ()
22395{
22396static int test_array [1 - 2 * !(((char) -1) < 0)];
22397test_array [0] = 0
22398
22399 ;
22400 return 0;
22401}
22402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022403if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022404 ac_cv_c_char_unsigned=no
22405else
cristy8b350f62009-11-15 23:12:43 +000022406 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022407fi
cristy3ed852e2009-09-05 21:47:34 +000022408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409fi
cristy8b350f62009-11-15 23:12:43 +000022410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022411$as_echo "$ac_cv_c_char_unsigned" >&6; }
22412if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022413 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022414
22415fi
22416
22417
22418# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22419# The cast to long int works around a bug in the HP C Compiler
22420# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22421# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22422# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022424$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022425if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022426 $as_echo_n "(cached) " >&6
22427else
cristy8b350f62009-11-15 23:12:43 +000022428 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 +000022429
cristy3ed852e2009-09-05 21:47:34 +000022430else
cristy8b350f62009-11-15 23:12:43 +000022431 if test "$ac_cv_type_signed_short" = yes; then
22432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022434as_fn_error 77 "cannot compute sizeof (signed short)
22435See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022436 else
22437 ac_cv_sizeof_signed_short=0
22438 fi
22439fi
cristy8b350f62009-11-15 23:12:43 +000022440
cristy3ed852e2009-09-05 21:47:34 +000022441fi
cristy8b350f62009-11-15 23:12:43 +000022442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022443$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22444
22445
22446
22447cat >>confdefs.h <<_ACEOF
22448#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22449_ACEOF
22450
22451
22452
22453# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22454# The cast to long int works around a bug in the HP C Compiler
22455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22457# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022459$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022460if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022461 $as_echo_n "(cached) " >&6
22462else
cristy8b350f62009-11-15 23:12:43 +000022463 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 +000022464
cristy3ed852e2009-09-05 21:47:34 +000022465else
cristy8b350f62009-11-15 23:12:43 +000022466 if test "$ac_cv_type_unsigned_short" = yes; then
22467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022469as_fn_error 77 "cannot compute sizeof (unsigned short)
22470See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022471 else
22472 ac_cv_sizeof_unsigned_short=0
22473 fi
22474fi
cristy8b350f62009-11-15 23:12:43 +000022475
cristy3ed852e2009-09-05 21:47:34 +000022476fi
cristy8b350f62009-11-15 23:12:43 +000022477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022478$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22479
22480
22481
22482cat >>confdefs.h <<_ACEOF
22483#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22484_ACEOF
22485
22486
22487
22488# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22489# The cast to long int works around a bug in the HP C Compiler
22490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22492# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022494$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022495if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022496 $as_echo_n "(cached) " >&6
22497else
cristy8b350f62009-11-15 23:12:43 +000022498 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 +000022499
cristy3ed852e2009-09-05 21:47:34 +000022500else
cristy8b350f62009-11-15 23:12:43 +000022501 if test "$ac_cv_type_signed_int" = yes; then
22502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022504as_fn_error 77 "cannot compute sizeof (signed int)
22505See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022506 else
22507 ac_cv_sizeof_signed_int=0
22508 fi
22509fi
cristy8b350f62009-11-15 23:12:43 +000022510
cristy3ed852e2009-09-05 21:47:34 +000022511fi
cristy8b350f62009-11-15 23:12:43 +000022512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022513$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22514
22515
22516
22517cat >>confdefs.h <<_ACEOF
22518#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22519_ACEOF
22520
22521
22522
22523# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22524# The cast to long int works around a bug in the HP C Compiler
22525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22527# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022529$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022530if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022531 $as_echo_n "(cached) " >&6
22532else
cristy8b350f62009-11-15 23:12:43 +000022533 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 +000022534
cristy3ed852e2009-09-05 21:47:34 +000022535else
cristy8b350f62009-11-15 23:12:43 +000022536 if test "$ac_cv_type_unsigned_int" = yes; then
22537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022539as_fn_error 77 "cannot compute sizeof (unsigned int)
22540See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022541 else
22542 ac_cv_sizeof_unsigned_int=0
22543 fi
22544fi
cristy8b350f62009-11-15 23:12:43 +000022545
cristy3ed852e2009-09-05 21:47:34 +000022546fi
cristy8b350f62009-11-15 23:12:43 +000022547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022548$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22549
22550
22551
22552cat >>confdefs.h <<_ACEOF
22553#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22554_ACEOF
22555
22556
22557
22558# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22559# The cast to long int works around a bug in the HP C Compiler
22560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22562# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022564$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022565if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022566 $as_echo_n "(cached) " >&6
22567else
cristy8b350f62009-11-15 23:12:43 +000022568 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 +000022569
cristy3ed852e2009-09-05 21:47:34 +000022570else
cristy8b350f62009-11-15 23:12:43 +000022571 if test "$ac_cv_type_signed_long" = yes; then
22572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022574as_fn_error 77 "cannot compute sizeof (signed long)
22575See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022576 else
22577 ac_cv_sizeof_signed_long=0
22578 fi
22579fi
cristy8b350f62009-11-15 23:12:43 +000022580
cristy3ed852e2009-09-05 21:47:34 +000022581fi
cristy8b350f62009-11-15 23:12:43 +000022582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022583$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22584
22585
22586
22587cat >>confdefs.h <<_ACEOF
22588#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22589_ACEOF
22590
22591
22592
22593# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22594# The cast to long int works around a bug in the HP C Compiler
22595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22597# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022599$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022600if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022601 $as_echo_n "(cached) " >&6
22602else
cristy8b350f62009-11-15 23:12:43 +000022603 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 +000022604
cristy3ed852e2009-09-05 21:47:34 +000022605else
cristy8b350f62009-11-15 23:12:43 +000022606 if test "$ac_cv_type_unsigned_long" = yes; then
22607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022609as_fn_error 77 "cannot compute sizeof (unsigned long)
22610See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022611 else
22612 ac_cv_sizeof_unsigned_long=0
22613 fi
22614fi
cristy8b350f62009-11-15 23:12:43 +000022615
cristy3ed852e2009-09-05 21:47:34 +000022616fi
cristy8b350f62009-11-15 23:12:43 +000022617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022618$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22619
22620
22621
22622cat >>confdefs.h <<_ACEOF
22623#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22624_ACEOF
22625
22626
22627
22628# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22629# 'signed long long' is not supported then the value defined is zero.
22630# The cast to long int works around a bug in the HP C Compiler
22631# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22632# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22633# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022635$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022636if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022637 $as_echo_n "(cached) " >&6
22638else
cristy8b350f62009-11-15 23:12:43 +000022639 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 +000022640
cristy3ed852e2009-09-05 21:47:34 +000022641else
cristy8b350f62009-11-15 23:12:43 +000022642 if test "$ac_cv_type_signed_long_long" = yes; then
22643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022645as_fn_error 77 "cannot compute sizeof (signed long long)
22646See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022647 else
22648 ac_cv_sizeof_signed_long_long=0
22649 fi
22650fi
cristy8b350f62009-11-15 23:12:43 +000022651
cristy3ed852e2009-09-05 21:47:34 +000022652fi
cristy8b350f62009-11-15 23:12:43 +000022653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022654$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22655
22656
22657
22658cat >>confdefs.h <<_ACEOF
22659#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22660_ACEOF
22661
22662
22663
22664# Obtain size of a 'unsigned long long' and define as
22665# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22666# supported then the value defined is zero.
22667# The cast to long int works around a bug in the HP C Compiler
22668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22670# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022672$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022673if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022674 $as_echo_n "(cached) " >&6
22675else
cristy8b350f62009-11-15 23:12:43 +000022676 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 +000022677
cristy3ed852e2009-09-05 21:47:34 +000022678else
cristy8b350f62009-11-15 23:12:43 +000022679 if test "$ac_cv_type_unsigned_long_long" = yes; then
22680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022682as_fn_error 77 "cannot compute sizeof (unsigned long long)
22683See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022684 else
22685 ac_cv_sizeof_unsigned_long_long=0
22686 fi
22687fi
cristy8b350f62009-11-15 23:12:43 +000022688
cristy3ed852e2009-09-05 21:47:34 +000022689fi
cristy8b350f62009-11-15 23:12:43 +000022690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022691$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22692
22693
22694
22695cat >>confdefs.h <<_ACEOF
22696#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22697_ACEOF
22698
22699
22700
22701# Obtain size of off_t and define as SIZEOF_OFF_T
22702# The cast to long int works around a bug in the HP C Compiler
22703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22705# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022707$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022708if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022709 $as_echo_n "(cached) " >&6
22710else
cristy8b350f62009-11-15 23:12:43 +000022711 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 +000022712
cristy3ed852e2009-09-05 21:47:34 +000022713else
cristy8b350f62009-11-15 23:12:43 +000022714 if test "$ac_cv_type_off_t" = yes; then
22715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022717as_fn_error 77 "cannot compute sizeof (off_t)
22718See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022719 else
22720 ac_cv_sizeof_off_t=0
22721 fi
22722fi
cristy8b350f62009-11-15 23:12:43 +000022723
cristy3ed852e2009-09-05 21:47:34 +000022724fi
cristy8b350f62009-11-15 23:12:43 +000022725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022726$as_echo "$ac_cv_sizeof_off_t" >&6; }
22727
22728
22729
22730cat >>confdefs.h <<_ACEOF
22731#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22732_ACEOF
22733
22734
22735
22736# Obtain size of size_t and define as SIZEOF_SIZE_T
22737# The cast to long int works around a bug in the HP C Compiler
22738# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22739# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22740# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022742$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022743if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022744 $as_echo_n "(cached) " >&6
22745else
cristy8b350f62009-11-15 23:12:43 +000022746 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 +000022747
cristy3ed852e2009-09-05 21:47:34 +000022748else
cristy8b350f62009-11-15 23:12:43 +000022749 if test "$ac_cv_type_size_t" = yes; then
22750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022752as_fn_error 77 "cannot compute sizeof (size_t)
22753See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022754 else
22755 ac_cv_sizeof_size_t=0
22756 fi
22757fi
cristy8b350f62009-11-15 23:12:43 +000022758
cristy3ed852e2009-09-05 21:47:34 +000022759fi
cristy8b350f62009-11-15 23:12:43 +000022760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022761$as_echo "$ac_cv_sizeof_size_t" >&6; }
22762
22763
22764
22765cat >>confdefs.h <<_ACEOF
22766#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22767_ACEOF
22768
22769
22770
cristy330e9352010-06-01 18:42:49 +000022771# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22772# The cast to long int works around a bug in the HP C Compiler
22773# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22774# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22775# This bug is HP SR number 8606223364.
22776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22777$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022778if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022779 $as_echo_n "(cached) " >&6
22780else
22781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22782
22783else
22784 if test "$ac_cv_type_ssize_t" = yes; then
22785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022787as_fn_error 77 "cannot compute sizeof (ssize_t)
22788See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022789 else
22790 ac_cv_sizeof_ssize_t=0
22791 fi
22792fi
22793
22794fi
22795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22796$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22797
22798
22799
22800cat >>confdefs.h <<_ACEOF
22801#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22802_ACEOF
22803
22804
22805
cristy3ed852e2009-09-05 21:47:34 +000022806# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22807# The cast to long int works around a bug in the HP C Compiler
22808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22810# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022812$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022813if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022814 $as_echo_n "(cached) " >&6
22815else
cristy8b350f62009-11-15 23:12:43 +000022816 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 +000022817
cristy3ed852e2009-09-05 21:47:34 +000022818else
cristy8b350f62009-11-15 23:12:43 +000022819 if test "$ac_cv_type_unsigned_intp" = yes; then
22820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022822as_fn_error 77 "cannot compute sizeof (unsigned int*)
22823See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022824 else
22825 ac_cv_sizeof_unsigned_intp=0
22826 fi
22827fi
cristy8b350f62009-11-15 23:12:43 +000022828
cristy3ed852e2009-09-05 21:47:34 +000022829fi
cristy8b350f62009-11-15 23:12:43 +000022830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022831$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22832
22833
22834
22835cat >>confdefs.h <<_ACEOF
22836#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22837_ACEOF
22838
22839
22840
22841#
22842# Compute sized types for current CPU and compiler options.
22843#
22844
cristy8b350f62009-11-15 23:12:43 +000022845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022846$as_echo_n "checking for signed 8-bit type... " >&6; }
22847INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022849$as_echo "$INT8_T" >&6; }
22850
22851
cristy8b350f62009-11-15 23:12:43 +000022852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022853$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22854UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022856$as_echo "$UINT8_T" >&6; }
22857
22858
cristy8b350f62009-11-15 23:12:43 +000022859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022860$as_echo_n "checking for signed 16-bit type... " >&6; }
22861INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022863$as_echo "$INT16_T" >&6; }
22864
22865
cristy8b350f62009-11-15 23:12:43 +000022866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022867$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22868UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo "$UINT16_T" >&6; }
22871
22872
cristy8b350f62009-11-15 23:12:43 +000022873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022874$as_echo_n "checking for signed 32-bit type... " >&6; }
22875INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000022876INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000022877if test $ac_cv_sizeof_signed_int -eq 4; then
22878 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000022879 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000022880elif test $ac_cv_sizeof_signed_long -eq 4; then
22881 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000022882 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000022883fi
cristy8b350f62009-11-15 23:12:43 +000022884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022885$as_echo "$INT32_T" >&6; }
22886
22887
cristy6d5e20f2011-04-25 13:48:54 +000022888
cristy8b350f62009-11-15 23:12:43 +000022889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022890$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22891UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000022892UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000022893if test $ac_cv_sizeof_unsigned_int -eq 4; then
22894 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000022895 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000022896elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22897 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000022898 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000022899fi
cristy8b350f62009-11-15 23:12:43 +000022900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022901$as_echo "$UINT32_T" >&6; }
22902
22903
cristy6d5e20f2011-04-25 13:48:54 +000022904
cristy8b350f62009-11-15 23:12:43 +000022905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022906$as_echo_n "checking for signed 64-bit type... " >&6; }
22907INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000022908INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000022909if test $ac_cv_sizeof_signed_long -eq 8; then
22910 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000022911 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000022912elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22913 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000022914 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000022915fi
cristy6d5e20f2011-04-25 13:48:54 +000022916case "${build_os}" in
22917 mingw* )
22918 INT64_F='"I64"'
22919 ;;
22920esac
cristy8b350f62009-11-15 23:12:43 +000022921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022922$as_echo "$INT64_T" >&6; }
22923
22924
cristy6d5e20f2011-04-25 13:48:54 +000022925
cristy8b350f62009-11-15 23:12:43 +000022926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022927$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22928UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000022929UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000022930if test $ac_cv_sizeof_unsigned_long -eq 8; then
22931 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000022932 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000022933elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22934 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000022935 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000022936fi
cristy6d5e20f2011-04-25 13:48:54 +000022937case "${build_os}" in
22938 mingw* )
22939 UINT64_F='"I64"'
22940 ;;
22941esac
cristy8b350f62009-11-15 23:12:43 +000022942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022943$as_echo "$UINT64_T" >&6; }
22944
22945
cristy6d5e20f2011-04-25 13:48:54 +000022946
cristy8b350f62009-11-15 23:12:43 +000022947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022948$as_echo_n "checking for unsigned maximum type... " >&6; }
22949UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000022950UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000022951if test "$UINT64_T" != 'none'; then
22952 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000022953 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000022954elif test "$UINT32_T" != 'none'; then
22955 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000022956 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000022957fi
cristy8b350f62009-11-15 23:12:43 +000022958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022959$as_echo "$UINTMAX_T" >&6; }
22960
22961
cristy6d5e20f2011-04-25 13:48:54 +000022962
cristy8b350f62009-11-15 23:12:43 +000022963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022964$as_echo_n "checking for pointer difference type... " >&6; }
22965UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000022966UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000022967if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22968 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000022969 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000022970elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22971 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000022972 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000022973fi
cristy8b350f62009-11-15 23:12:43 +000022974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022975$as_echo "$UINTPTR_T" >&6; }
22976
22977
cristy6d5e20f2011-04-25 13:48:54 +000022978
cristy8b350f62009-11-15 23:12:43 +000022979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022980$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022982/* end confdefs.h. */
22983
22984int
22985main ()
22986{
22987{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22988 ;
22989 return 0;
22990}
22991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022992if ac_fn_c_try_compile "$LINENO"; then :
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022994$as_echo "yes" >&6; }
22995else
cristy8b350f62009-11-15 23:12:43 +000022996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022997$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022999$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023001/* end confdefs.h. */
23002
23003int
23004main ()
23005{
23006{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23007 ;
23008 return 0;
23009}
23010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023011if ac_fn_c_try_compile "$LINENO"; then :
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023013$as_echo "yes" >&6; }
23014
cristy8b350f62009-11-15 23:12:43 +000023015$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023016
23017else
cristy8b350f62009-11-15 23:12:43 +000023018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023019$as_echo "no" >&6; }
23020
cristy8b350f62009-11-15 23:12:43 +000023021$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023022
23023fi
cristy3ed852e2009-09-05 21:47:34 +000023024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025fi
cristy3ed852e2009-09-05 21:47:34 +000023026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027
23028########
23029#
23030# Check for functions
23031#
23032########
cristy73bd4a52010-10-05 11:24:23 +000023033for ac_header in stdlib.h unistd.h
23034do :
23035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23036ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023038 cat >>confdefs.h <<_ACEOF
23039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23040_ACEOF
23041
23042fi
23043
23044done
23045
23046for ac_func in getpagesize
23047do :
23048 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023049if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023050 cat >>confdefs.h <<_ACEOF
23051#define HAVE_GETPAGESIZE 1
23052_ACEOF
23053
23054fi
23055done
23056
23057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23058$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023059if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023060 $as_echo_n "(cached) " >&6
23061else
23062 if test "$cross_compiling" = yes; then :
23063 magick_cv_func_mmap_fileio=no
23064else
23065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23066/* end confdefs.h. */
23067$ac_includes_default
23068/* malloc might have been renamed as rpl_malloc. */
23069#undef malloc
23070
23071/*
23072 This test is derived from GNU Autoconf's similar macro.
23073 The purpose of this test is to verify that files may be memory
23074 mapped, and that memory mapping and file I/O are coherent.
23075
23076 The test creates a test file, memory maps the file, updates
23077 the file using the memory map, and then reads the file using
23078 file I/O to verify that the file contains the updates.
23079*/
23080
23081#include <fcntl.h>
23082#include <sys/mman.h>
23083
23084#if !STDC_HEADERS && !HAVE_STDLIB_H
23085char *malloc ();
23086#endif
23087
23088/* This mess was copied from the GNU getpagesize.h. */
23089#if !HAVE_GETPAGESIZE
23090/* Assume that all systems that can run configure have sys/param.h. */
23091# if !HAVE_SYS_PARAM_H
23092# define HAVE_SYS_PARAM_H 1
23093# endif
23094
23095# ifdef _SC_PAGESIZE
23096# define getpagesize() sysconf(_SC_PAGESIZE)
23097# else /* no _SC_PAGESIZE */
23098# if HAVE_SYS_PARAM_H
23099# include <sys/param.h>
23100# ifdef EXEC_PAGESIZE
23101# define getpagesize() EXEC_PAGESIZE
23102# else /* no EXEC_PAGESIZE */
23103# ifdef NBPG
23104# define getpagesize() NBPG * CLSIZE
23105# ifndef CLSIZE
23106# define CLSIZE 1
23107# endif /* no CLSIZE */
23108# else /* no NBPG */
23109# ifdef NBPC
23110# define getpagesize() NBPC
23111# else /* no NBPC */
23112# ifdef PAGESIZE
23113# define getpagesize() PAGESIZE
23114# endif /* PAGESIZE */
23115# endif /* no NBPC */
23116# endif /* no NBPG */
23117# endif /* no EXEC_PAGESIZE */
23118# else /* no HAVE_SYS_PARAM_H */
23119# define getpagesize() 8192 /* punt totally */
23120# endif /* no HAVE_SYS_PARAM_H */
23121# endif /* no _SC_PAGESIZE */
23122
23123#endif /* no HAVE_GETPAGESIZE */
23124
23125int
23126main ()
23127{
23128 char *data, *data2, *data3;
23129 int i, pagesize;
23130 int fd;
23131
23132 pagesize = getpagesize ();
23133
23134 /* First, make a file with some known garbage in it. */
23135 data = (char *) malloc (pagesize);
23136 if (!data)
23137 exit (1);
23138 for (i = 0; i < pagesize; ++i)
23139 *(data + i) = rand ();
23140 umask (0);
23141 fd = creat ("conftest.mmap", 0600);
23142 if (fd < 0)
23143 exit (1);
23144 if (write (fd, data, pagesize) != pagesize)
23145 exit (1);
23146 close (fd);
23147
23148 /* Mmap the file as read/write/shared and verify that we see the
23149 same garbage. */
23150 fd = open ("conftest.mmap", O_RDWR);
23151 if (fd < 0)
23152 exit (1);
23153 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23154 if (data2 == 0)
23155 exit (1);
23156 for (i = 0; i < pagesize; ++i)
23157 if (*(data + i) != *(data2 + i))
23158 exit (1);
23159
23160 /* Finally, make sure that changes to the mapped area
23161 percolate back to the file as seen by read(). */
23162 for (i = 0; i < pagesize; ++i)
23163 *(data2 + i) = *(data2 + i) + 1;
23164 data3 = (char *) malloc (pagesize);
23165 if (!data3)
23166 exit (1);
23167 if (read (fd, data3, pagesize) != pagesize)
23168 exit (1);
23169 for (i = 0; i < pagesize; ++i)
23170 if (*(data2 + i) != *(data3 + i))
23171 exit (1);
23172 close (fd);
23173 exit (0);
23174}
23175_ACEOF
23176if ac_fn_c_try_run "$LINENO"; then :
23177 magick_cv_func_mmap_fileio=yes
23178else
23179 magick_cv_func_mmap_fileio=no
23180fi
23181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23182 conftest.$ac_objext conftest.beam conftest.$ac_ext
23183fi
23184
23185fi
23186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23187$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23188if test $magick_cv_func_mmap_fileio = yes; then
23189
23190$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23191
23192fi
23193rm -f conftest.mmap
23194
cristy8b350f62009-11-15 23:12:43 +000023195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023196$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023197if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023198 $as_echo_n "(cached) " >&6
23199else
cristy8b350f62009-11-15 23:12:43 +000023200 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023201 ac_cv_func_closedir_void=yes
23202else
cristy8b350f62009-11-15 23:12:43 +000023203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023204/* end confdefs.h. */
23205$ac_includes_default
23206#include <$ac_header_dirent>
23207#ifndef __cplusplus
23208int closedir ();
23209#endif
23210
23211int
23212main ()
23213{
23214return closedir (opendir (".")) != 0;
23215 ;
23216 return 0;
23217}
23218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023219if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023220 ac_cv_func_closedir_void=no
23221else
cristy8b350f62009-11-15 23:12:43 +000023222 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023223fi
cristy8b350f62009-11-15 23:12:43 +000023224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23225 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023226fi
23227
cristy3ed852e2009-09-05 21:47:34 +000023228fi
cristy8b350f62009-11-15 23:12:43 +000023229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023230$as_echo "$ac_cv_func_closedir_void" >&6; }
23231if test $ac_cv_func_closedir_void = yes; then
23232
cristy8b350f62009-11-15 23:12:43 +000023233$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023234
23235fi
23236
cristycd4c5312009-11-22 01:19:08 +000023237
23238
23239
23240 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023241do :
23242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023243ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23244"
cristy98dddb52010-11-04 00:30:15 +000023245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023246 cat >>confdefs.h <<_ACEOF
23247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23248_ACEOF
23249
23250fi
23251
23252done
23253
cristycd4c5312009-11-22 01:19:08 +000023254
23255
23256
23257
23258
23259
23260
cristy3ed852e2009-09-05 21:47:34 +000023261for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023262do :
23263 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023264if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023265 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023266#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023267_ACEOF
23268
23269fi
23270done
23271
cristy8b350f62009-11-15 23:12:43 +000023272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023273$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023274if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023275 $as_echo_n "(cached) " >&6
23276else
cristy8b350f62009-11-15 23:12:43 +000023277 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023278 ac_cv_func_mmap_fixed_mapped=no
23279else
cristy8b350f62009-11-15 23:12:43 +000023280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023281/* end confdefs.h. */
23282$ac_includes_default
23283/* malloc might have been renamed as rpl_malloc. */
23284#undef malloc
23285
23286/* Thanks to Mike Haertel and Jim Avera for this test.
23287 Here is a matrix of mmap possibilities:
23288 mmap private not fixed
23289 mmap private fixed at somewhere currently unmapped
23290 mmap private fixed at somewhere already mapped
23291 mmap shared not fixed
23292 mmap shared fixed at somewhere currently unmapped
23293 mmap shared fixed at somewhere already mapped
23294 For private mappings, we should verify that changes cannot be read()
23295 back from the file, nor mmap's back from the file at a different
23296 address. (There have been systems where private was not correctly
23297 implemented like the infamous i386 svr4.0, and systems where the
23298 VM page cache was not coherent with the file system buffer cache
23299 like early versions of FreeBSD and possibly contemporary NetBSD.)
23300 For shared mappings, we should conversely verify that changes get
23301 propagated back to all the places they're supposed to be.
23302
23303 Grep wants private fixed already mapped.
23304 The main things grep needs to know about mmap are:
23305 * does it exist and is it safe to write into the mmap'd area
23306 * how to use it (BSD variants) */
23307
23308#include <fcntl.h>
23309#include <sys/mman.h>
23310
23311#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23312char *malloc ();
23313#endif
23314
23315/* This mess was copied from the GNU getpagesize.h. */
23316#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023317# ifdef _SC_PAGESIZE
23318# define getpagesize() sysconf(_SC_PAGESIZE)
23319# else /* no _SC_PAGESIZE */
23320# ifdef HAVE_SYS_PARAM_H
23321# include <sys/param.h>
23322# ifdef EXEC_PAGESIZE
23323# define getpagesize() EXEC_PAGESIZE
23324# else /* no EXEC_PAGESIZE */
23325# ifdef NBPG
23326# define getpagesize() NBPG * CLSIZE
23327# ifndef CLSIZE
23328# define CLSIZE 1
23329# endif /* no CLSIZE */
23330# else /* no NBPG */
23331# ifdef NBPC
23332# define getpagesize() NBPC
23333# else /* no NBPC */
23334# ifdef PAGESIZE
23335# define getpagesize() PAGESIZE
23336# endif /* PAGESIZE */
23337# endif /* no NBPC */
23338# endif /* no NBPG */
23339# endif /* no EXEC_PAGESIZE */
23340# else /* no HAVE_SYS_PARAM_H */
23341# define getpagesize() 8192 /* punt totally */
23342# endif /* no HAVE_SYS_PARAM_H */
23343# endif /* no _SC_PAGESIZE */
23344
23345#endif /* no HAVE_GETPAGESIZE */
23346
23347int
23348main ()
23349{
23350 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023351 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023352 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023353 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023354
23355 pagesize = getpagesize ();
23356
23357 /* First, make a file with some known garbage in it. */
23358 data = (char *) malloc (pagesize);
23359 if (!data)
23360 return 1;
23361 for (i = 0; i < pagesize; ++i)
23362 *(data + i) = rand ();
23363 umask (0);
23364 fd = creat ("conftest.mmap", 0600);
23365 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023366 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023367 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023368 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023369 close (fd);
23370
cristycd4c5312009-11-22 01:19:08 +000023371 /* Next, check that the tail of a page is zero-filled. File must have
23372 non-zero length, otherwise we risk SIGBUS for entire page. */
23373 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23374 if (fd2 < 0)
23375 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023376 cdata2 = "";
23377 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023378 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023379 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023380 if (data2 == MAP_FAILED)
23381 return 6;
23382 for (i = 0; i < pagesize; ++i)
23383 if (*(data2 + i))
23384 return 7;
23385 close (fd2);
23386 if (munmap (data2, pagesize))
23387 return 8;
23388
cristy3ed852e2009-09-05 21:47:34 +000023389 /* Next, try to mmap the file at a fixed address which already has
23390 something else allocated at it. If we can, also make sure that
23391 we see the same garbage. */
23392 fd = open ("conftest.mmap", O_RDWR);
23393 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023394 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023397 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023398 for (i = 0; i < pagesize; ++i)
23399 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023400 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023401
23402 /* Finally, make sure that changes to the mapped area do not
23403 percolate back to the file as seen by read(). (This is a bug on
23404 some variants of i386 svr4.0.) */
23405 for (i = 0; i < pagesize; ++i)
23406 *(data2 + i) = *(data2 + i) + 1;
23407 data3 = (char *) malloc (pagesize);
23408 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023409 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023410 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023411 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023412 for (i = 0; i < pagesize; ++i)
23413 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023414 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023415 close (fd);
23416 return 0;
23417}
23418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023419if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023420 ac_cv_func_mmap_fixed_mapped=yes
23421else
cristy8b350f62009-11-15 23:12:43 +000023422 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023423fi
cristy8b350f62009-11-15 23:12:43 +000023424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23425 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023426fi
23427
cristy3ed852e2009-09-05 21:47:34 +000023428fi
cristy8b350f62009-11-15 23:12:43 +000023429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023430$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23431if test $ac_cv_func_mmap_fixed_mapped = yes; then
23432
cristy8b350f62009-11-15 23:12:43 +000023433$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023434
23435fi
cristycd4c5312009-11-22 01:19:08 +000023436rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023437
cristy3ed852e2009-09-05 21:47:34 +000023438for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023439do :
23440 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023441if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023442 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023443#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023444_ACEOF
23445
23446fi
23447
23448done
23449
cristy3ed852e2009-09-05 21:47:34 +000023450for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023451do :
23452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23453ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023454if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023455 cat >>confdefs.h <<_ACEOF
23456#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23457_ACEOF
23458
23459fi
23460done
23461
23462if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023464$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023465if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023466 $as_echo_n "(cached) " >&6
23467else
cristy8b350f62009-11-15 23:12:43 +000023468 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023469 ac_cv_func_fork_works=cross
23470else
cristy8b350f62009-11-15 23:12:43 +000023471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023472/* end confdefs.h. */
23473$ac_includes_default
23474int
23475main ()
23476{
23477
23478 /* By Ruediger Kuhlmann. */
23479 return fork () < 0;
23480
23481 ;
23482 return 0;
23483}
23484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023485if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023486 ac_cv_func_fork_works=yes
23487else
cristy8b350f62009-11-15 23:12:43 +000023488 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023489fi
cristy8b350f62009-11-15 23:12:43 +000023490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23491 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023492fi
23493
cristy3ed852e2009-09-05 21:47:34 +000023494fi
cristy8b350f62009-11-15 23:12:43 +000023495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023496$as_echo "$ac_cv_func_fork_works" >&6; }
23497
23498else
23499 ac_cv_func_fork_works=$ac_cv_func_fork
23500fi
23501if test "x$ac_cv_func_fork_works" = xcross; then
23502 case $host in
23503 *-*-amigaos* | *-*-msdosdjgpp*)
23504 # Override, as these systems have only a dummy fork() stub
23505 ac_cv_func_fork_works=no
23506 ;;
23507 *)
23508 ac_cv_func_fork_works=yes
23509 ;;
23510 esac
cristy8b350f62009-11-15 23:12:43 +000023511 { $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 +000023512$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23513fi
23514ac_cv_func_vfork_works=$ac_cv_func_vfork
23515if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023517$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023518if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023519 $as_echo_n "(cached) " >&6
23520else
cristy8b350f62009-11-15 23:12:43 +000023521 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023522 ac_cv_func_vfork_works=cross
23523else
cristy8b350f62009-11-15 23:12:43 +000023524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023525/* end confdefs.h. */
23526/* Thanks to Paul Eggert for this test. */
23527$ac_includes_default
23528#include <sys/wait.h>
23529#ifdef HAVE_VFORK_H
23530# include <vfork.h>
23531#endif
23532/* On some sparc systems, changes by the child to local and incoming
23533 argument registers are propagated back to the parent. The compiler
23534 is told about this with #include <vfork.h>, but some compilers
23535 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23536 static variable whose address is put into a register that is
23537 clobbered by the vfork. */
23538static void
23539#ifdef __cplusplus
23540sparc_address_test (int arg)
23541# else
23542sparc_address_test (arg) int arg;
23543#endif
23544{
23545 static pid_t child;
23546 if (!child) {
23547 child = vfork ();
23548 if (child < 0) {
23549 perror ("vfork");
23550 _exit(2);
23551 }
23552 if (!child) {
23553 arg = getpid();
23554 write(-1, "", 0);
23555 _exit (arg);
23556 }
23557 }
23558}
23559
23560int
23561main ()
23562{
23563 pid_t parent = getpid ();
23564 pid_t child;
23565
23566 sparc_address_test (0);
23567
23568 child = vfork ();
23569
23570 if (child == 0) {
23571 /* Here is another test for sparc vfork register problems. This
23572 test uses lots of local variables, at least as many local
23573 variables as main has allocated so far including compiler
23574 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23575 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23576 reuse the register of parent for one of the local variables,
23577 since it will think that parent can't possibly be used any more
23578 in this routine. Assigning to the local variable will thus
23579 munge parent in the parent process. */
23580 pid_t
23581 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23582 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23583 /* Convince the compiler that p..p7 are live; otherwise, it might
23584 use the same hardware register for all 8 local variables. */
23585 if (p != p1 || p != p2 || p != p3 || p != p4
23586 || p != p5 || p != p6 || p != p7)
23587 _exit(1);
23588
23589 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23590 from child file descriptors. If the child closes a descriptor
23591 before it execs or exits, this munges the parent's descriptor
23592 as well. Test for this by closing stdout in the child. */
23593 _exit(close(fileno(stdout)) != 0);
23594 } else {
23595 int status;
23596 struct stat st;
23597
23598 while (wait(&status) != child)
23599 ;
23600 return (
23601 /* Was there some problem with vforking? */
23602 child < 0
23603
23604 /* Did the child fail? (This shouldn't happen.) */
23605 || status
23606
23607 /* Did the vfork/compiler bug occur? */
23608 || parent != getpid()
23609
23610 /* Did the file descriptor bug occur? */
23611 || fstat(fileno(stdout), &st) != 0
23612 );
23613 }
23614}
23615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023616if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023617 ac_cv_func_vfork_works=yes
23618else
cristy8b350f62009-11-15 23:12:43 +000023619 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023620fi
cristy8b350f62009-11-15 23:12:43 +000023621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23622 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023623fi
23624
cristy3ed852e2009-09-05 21:47:34 +000023625fi
cristy8b350f62009-11-15 23:12:43 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023627$as_echo "$ac_cv_func_vfork_works" >&6; }
23628
23629fi;
23630if test "x$ac_cv_func_fork_works" = xcross; then
23631 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023632 { $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 +000023633$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23634fi
23635
23636if test "x$ac_cv_func_vfork_works" = xyes; then
23637
cristy8b350f62009-11-15 23:12:43 +000023638$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023639
23640else
23641
cristy8b350f62009-11-15 23:12:43 +000023642$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023643
23644fi
23645if test "x$ac_cv_func_fork_works" = xyes; then
23646
cristy8b350f62009-11-15 23:12:43 +000023647$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023648
23649fi
23650
cristy8b350f62009-11-15 23:12:43 +000023651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023652$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023653if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023654 $as_echo_n "(cached) " >&6
23655else
cristy8b350f62009-11-15 23:12:43 +000023656 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023657 ac_cv_func_memcmp_working=no
23658else
cristy8b350f62009-11-15 23:12:43 +000023659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023660/* end confdefs.h. */
23661$ac_includes_default
23662int
23663main ()
23664{
23665
23666 /* Some versions of memcmp are not 8-bit clean. */
23667 char c0 = '\100', c1 = '\200', c2 = '\201';
23668 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23669 return 1;
23670
23671 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23672 or more and with at least one buffer not starting on a 4-byte boundary.
23673 William Lewis provided this test program. */
23674 {
23675 char foo[21];
23676 char bar[21];
23677 int i;
23678 for (i = 0; i < 4; i++)
23679 {
23680 char *a = foo + i;
23681 char *b = bar + i;
23682 strcpy (a, "--------01111111");
23683 strcpy (b, "--------10000000");
23684 if (memcmp (a, b, 16) >= 0)
23685 return 1;
23686 }
23687 return 0;
23688 }
23689
23690 ;
23691 return 0;
23692}
23693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023694if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023695 ac_cv_func_memcmp_working=yes
23696else
cristy8b350f62009-11-15 23:12:43 +000023697 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023698fi
cristy8b350f62009-11-15 23:12:43 +000023699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23700 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023701fi
23702
cristy3ed852e2009-09-05 21:47:34 +000023703fi
cristy8b350f62009-11-15 23:12:43 +000023704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023705$as_echo "$ac_cv_func_memcmp_working" >&6; }
23706test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23707 *" memcmp.$ac_objext "* ) ;;
23708 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23709 ;;
23710esac
23711
23712
cristy3ed852e2009-09-05 21:47:34 +000023713for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023714do :
23715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23716ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023718 cat >>confdefs.h <<_ACEOF
23719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23720_ACEOF
23721
23722fi
23723
23724done
23725
cristy8b350f62009-11-15 23:12:43 +000023726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023727$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023728if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023729 $as_echo_n "(cached) " >&6
23730else
23731 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23732 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23733 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023735/* end confdefs.h. */
23736$ac_includes_default
23737#ifdef HAVE_SYS_SELECT_H
23738# include <sys/select.h>
23739#endif
23740#ifdef HAVE_SYS_SOCKET_H
23741# include <sys/socket.h>
23742#endif
23743
23744int
23745main ()
23746{
23747extern int select ($ac_arg1,
23748 $ac_arg234, $ac_arg234, $ac_arg234,
23749 $ac_arg5);
23750 ;
23751 return 0;
23752}
23753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023754if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023755 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023756fi
cristy3ed852e2009-09-05 21:47:34 +000023757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 done
23759 done
23760done
23761# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023762: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023763
23764fi
cristy8b350f62009-11-15 23:12:43 +000023765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023766$as_echo "$ac_cv_func_select_args" >&6; }
23767ac_save_IFS=$IFS; IFS=','
23768set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23769IFS=$ac_save_IFS
23770shift
23771
23772cat >>confdefs.h <<_ACEOF
23773#define SELECT_TYPE_ARG1 $1
23774_ACEOF
23775
23776
23777cat >>confdefs.h <<_ACEOF
23778#define SELECT_TYPE_ARG234 ($2)
23779_ACEOF
23780
23781
23782cat >>confdefs.h <<_ACEOF
23783#define SELECT_TYPE_ARG5 ($3)
23784_ACEOF
23785
23786rm -f conftest*
23787
cristyda16f162011-02-19 23:52:17 +000023788if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023789 $as_echo_n "(cached) " >&6
23790else
23791 ac_cv_func_setvbuf_reversed=no
23792fi
23793
23794
cristy8b350f62009-11-15 23:12:43 +000023795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023796$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023797if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023798 $as_echo_n "(cached) " >&6
23799else
cristy8b350f62009-11-15 23:12:43 +000023800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023801/* end confdefs.h. */
23802#include <sys/types.h>
23803#include <signal.h>
23804
23805int
23806main ()
23807{
23808return *(signal (0, 0)) (0) == 1;
23809 ;
23810 return 0;
23811}
23812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023814 ac_cv_type_signal=int
23815else
cristy8b350f62009-11-15 23:12:43 +000023816 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023817fi
cristy3ed852e2009-09-05 21:47:34 +000023818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23819fi
cristy8b350f62009-11-15 23:12:43 +000023820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023821$as_echo "$ac_cv_type_signal" >&6; }
23822
23823cat >>confdefs.h <<_ACEOF
23824#define RETSIGTYPE $ac_cv_type_signal
23825_ACEOF
23826
23827
cristy8b350f62009-11-15 23:12:43 +000023828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023829$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023830if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023831 $as_echo_n "(cached) " >&6
23832else
cristy8b350f62009-11-15 23:12:43 +000023833 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023834 ac_cv_func_strtod=no
23835else
cristy8b350f62009-11-15 23:12:43 +000023836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023837/* end confdefs.h. */
23838
23839$ac_includes_default
23840#ifndef strtod
23841double strtod ();
23842#endif
23843int
23844main()
23845{
23846 {
23847 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23848 char *string = " +69";
23849 char *term;
23850 double value;
23851 value = strtod (string, &term);
23852 if (value != 69 || term != (string + 4))
23853 return 1;
23854 }
23855
23856 {
23857 /* Under Solaris 2.4, strtod returns the wrong value for the
23858 terminating character under some conditions. */
23859 char *string = "NaN";
23860 char *term;
23861 strtod (string, &term);
23862 if (term != string && *(term - 1) == 0)
23863 return 1;
23864 }
23865 return 0;
23866}
23867
23868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023869if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023870 ac_cv_func_strtod=yes
23871else
cristy8b350f62009-11-15 23:12:43 +000023872 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023873fi
cristy8b350f62009-11-15 23:12:43 +000023874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23875 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023876fi
23877
cristy3ed852e2009-09-05 21:47:34 +000023878fi
cristy8b350f62009-11-15 23:12:43 +000023879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023880$as_echo "$ac_cv_func_strtod" >&6; }
23881if test $ac_cv_func_strtod = no; then
23882 case " $LIBOBJS " in
23883 *" strtod.$ac_objext "* ) ;;
23884 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23885 ;;
23886esac
23887
cristy8b350f62009-11-15 23:12:43 +000023888ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023889if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023890
cristy3ed852e2009-09-05 21:47:34 +000023891fi
23892
cristy3ed852e2009-09-05 21:47:34 +000023893if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023896if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023897 $as_echo_n "(cached) " >&6
23898else
23899 ac_check_lib_save_LIBS=$LIBS
23900LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023902/* end confdefs.h. */
23903
23904/* Override any GCC internal prototype to avoid an error.
23905 Use char because int might match the return type of a GCC
23906 builtin and then its argument prototype would still apply. */
23907#ifdef __cplusplus
23908extern "C"
23909#endif
23910char pow ();
23911int
23912main ()
23913{
23914return pow ();
23915 ;
23916 return 0;
23917}
23918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023920 ac_cv_lib_m_pow=yes
23921else
cristy8b350f62009-11-15 23:12:43 +000023922 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023923fi
cristy8b350f62009-11-15 23:12:43 +000023924rm -f core conftest.err conftest.$ac_objext \
23925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023926LIBS=$ac_check_lib_save_LIBS
23927fi
cristy8b350f62009-11-15 23:12:43 +000023928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023929$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023930if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023931 POW_LIB=-lm
23932else
cristy8b350f62009-11-15 23:12:43 +000023933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023934$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23935fi
23936
23937fi
23938
23939fi
23940
cristy3ed852e2009-09-05 21:47:34 +000023941for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023942do :
23943 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023944if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023945 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023946#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023947_ACEOF
23948
cristy8b350f62009-11-15 23:12:43 +000023949ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023950if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023951
cristy8b350f62009-11-15 23:12:43 +000023952$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023953
23954fi
23955
23956fi
23957done
23958
23959
23960
cristy161b9262010-03-20 19:34:32 +000023961#
23962# Find math library
23963#
23964MATH_LIBS=''
23965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23966$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023967if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023968 $as_echo_n "(cached) " >&6
23969else
23970 ac_check_lib_save_LIBS=$LIBS
23971LIBS="-lm $LIBS"
23972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973/* end confdefs.h. */
23974
23975/* Override any GCC internal prototype to avoid an error.
23976 Use char because int might match the return type of a GCC
23977 builtin and then its argument prototype would still apply. */
23978#ifdef __cplusplus
23979extern "C"
23980#endif
23981char sqrt ();
23982int
23983main ()
23984{
23985return sqrt ();
23986 ;
23987 return 0;
23988}
23989_ACEOF
23990if ac_fn_c_try_link "$LINENO"; then :
23991 ac_cv_lib_m_sqrt=yes
23992else
23993 ac_cv_lib_m_sqrt=no
23994fi
23995rm -f core conftest.err conftest.$ac_objext \
23996 conftest$ac_exeext conftest.$ac_ext
23997LIBS=$ac_check_lib_save_LIBS
23998fi
23999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24000$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024001if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024002 MATH_LIBS="-lm"
24003fi
24004
24005LIBS="$MATH_LIBS $LIBS"
24006
24007
cristy47b022b2011-01-18 22:29:21 +000024008for 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 +000024009do :
24010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24011ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024012if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024013 cat >>confdefs.h <<_ACEOF
24014#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24015_ACEOF
24016
24017fi
24018done
24019
24020
cristye43a45e2009-09-28 14:49:00 +000024021#
24022# Check for clock_gettime().
24023#
cristy8b350f62009-11-15 23:12:43 +000024024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024025$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024026if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024027 $as_echo_n "(cached) " >&6
24028else
24029 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024031/* end confdefs.h. */
24032
24033/* Override any GCC internal prototype to avoid an error.
24034 Use char because int might match the return type of a GCC
24035 builtin and then its argument prototype would still apply. */
24036#ifdef __cplusplus
24037extern "C"
24038#endif
24039char clock_gettime ();
24040int
24041main ()
24042{
24043return clock_gettime ();
24044 ;
24045 return 0;
24046}
24047_ACEOF
24048for ac_lib in '' rt; do
24049 if test -z "$ac_lib"; then
24050 ac_res="none required"
24051 else
24052 ac_res=-l$ac_lib
24053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24054 fi
cristy8b350f62009-11-15 23:12:43 +000024055 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024056 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024057fi
cristy8b350f62009-11-15 23:12:43 +000024058rm -f core conftest.err conftest.$ac_objext \
24059 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024060 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024061 break
24062fi
24063done
cristyda16f162011-02-19 23:52:17 +000024064if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024065
cristye43a45e2009-09-28 14:49:00 +000024066else
24067 ac_cv_search_clock_gettime=no
24068fi
24069rm conftest.$ac_ext
24070LIBS=$ac_func_search_save_LIBS
24071fi
cristy8b350f62009-11-15 23:12:43 +000024072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024073$as_echo "$ac_cv_search_clock_gettime" >&6; }
24074ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024075if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24077
24078
cristy8b350f62009-11-15 23:12:43 +000024079$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024080
cristy8b350f62009-11-15 23:12:43 +000024081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024082$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024084/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024085
24086 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024087int
24088main ()
24089{
24090clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024091 ;
24092 return 0;
24093}
24094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024095if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024096
cristy8b350f62009-11-15 23:12:43 +000024097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024098$as_echo "yes" >&6; }
24099
cristy8b350f62009-11-15 23:12:43 +000024100$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024101
24102
24103else
cristy8b350f62009-11-15 23:12:43 +000024104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024105$as_echo "no" >&6; }
24106
24107fi
cristye43a45e2009-09-28 14:49:00 +000024108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24109
24110else
24111
cristy8b350f62009-11-15 23:12:43 +000024112 for ac_func in gettimeofday ftime
24113do :
24114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24115ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024116if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024117 cat >>confdefs.h <<_ACEOF
24118#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24119_ACEOF
24120 break
24121fi
24122done
24123
24124
24125
24126fi
24127
24128
cristy3ed852e2009-09-05 21:47:34 +000024129########
24130#
24131# Check for function prototypes
24132#
24133########
24134
cristy8b350f62009-11-15 23:12:43 +000024135ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024136#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024137"
cristyda16f162011-02-19 23:52:17 +000024138if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024139 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024140else
cristy8b350f62009-11-15 23:12:43 +000024141 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024142fi
24143
cristy3ed852e2009-09-05 21:47:34 +000024144cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024145#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024147ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024148#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024149"
cristyda16f162011-02-19 23:52:17 +000024150if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024151 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024152else
cristy8b350f62009-11-15 23:12:43 +000024153 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024154fi
24155
cristy3ed852e2009-09-05 21:47:34 +000024156cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024157#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024158_ACEOF
24159
24160
cristy8b350f62009-11-15 23:12:43 +000024161ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024162#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024163"
cristyda16f162011-02-19 23:52:17 +000024164if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024165 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024166else
cristy8b350f62009-11-15 23:12:43 +000024167 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024168fi
24169
cristy3ed852e2009-09-05 21:47:34 +000024170cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024171#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024172_ACEOF
24173
24174
cristy8b350f62009-11-15 23:12:43 +000024175ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024176#include <stdio.h>
24177#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024178"
cristyda16f162011-02-19 23:52:17 +000024179if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024180 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024181else
cristy8b350f62009-11-15 23:12:43 +000024182 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024183fi
24184
cristy3ed852e2009-09-05 21:47:34 +000024185cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024186#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024187_ACEOF
24188
24189
cristy3ed852e2009-09-05 21:47:34 +000024190########
24191#
24192# C++ Support Tests (For Magick++)
24193#
24194########
24195have_magick_plus_plus='no'
24196if test "$with_magick_plus_plus" = 'yes'; then
24197 OLIBS="$LIBS"
24198 LIBS=''
24199 ac_ext=cpp
24200ac_cpp='$CXXCPP $CPPFLAGS'
24201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24204
24205
24206 # Full set of headers used...
24207 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24208 # functional iomanip iosfwd iostream iterator list string strstream utility
24209 ac_ext=cpp
24210ac_cpp='$CXXCPP $CPPFLAGS'
24211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24214
24215 ac_ext=cpp
24216ac_cpp='$CXXCPP $CPPFLAGS'
24217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24220if test -z "$CXX"; then
24221 if test -n "$CCC"; then
24222 CXX=$CCC
24223 else
24224 if test -n "$ac_tool_prefix"; then
24225 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24226 do
24227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024230$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024231if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024232 $as_echo_n "(cached) " >&6
24233else
24234 if test -n "$CXX"; then
24235 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24236else
24237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24238for as_dir in $PATH
24239do
24240 IFS=$as_save_IFS
24241 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024242 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024246 break 2
24247 fi
24248done
cristy8b350f62009-11-15 23:12:43 +000024249 done
cristy3ed852e2009-09-05 21:47:34 +000024250IFS=$as_save_IFS
24251
24252fi
24253fi
24254CXX=$ac_cv_prog_CXX
24255if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024257$as_echo "$CXX" >&6; }
24258else
cristy8b350f62009-11-15 23:12:43 +000024259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024260$as_echo "no" >&6; }
24261fi
24262
24263
24264 test -n "$CXX" && break
24265 done
24266fi
24267if test -z "$CXX"; then
24268 ac_ct_CXX=$CXX
24269 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24270do
24271 # Extract the first word of "$ac_prog", so it can be a program name with args.
24272set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024275if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 $as_echo_n "(cached) " >&6
24277else
24278 if test -n "$ac_ct_CXX"; then
24279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24280else
24281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24282for as_dir in $PATH
24283do
24284 IFS=$as_save_IFS
24285 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24288 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290 break 2
24291 fi
24292done
cristy8b350f62009-11-15 23:12:43 +000024293 done
cristy3ed852e2009-09-05 21:47:34 +000024294IFS=$as_save_IFS
24295
24296fi
24297fi
24298ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24299if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024301$as_echo "$ac_ct_CXX" >&6; }
24302else
cristy8b350f62009-11-15 23:12:43 +000024303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024304$as_echo "no" >&6; }
24305fi
24306
24307
24308 test -n "$ac_ct_CXX" && break
24309done
24310
24311 if test "x$ac_ct_CXX" = x; then
24312 CXX="g++"
24313 else
24314 case $cross_compiling:$ac_tool_warned in
24315yes:)
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24318ac_tool_warned=yes ;;
24319esac
24320 CXX=$ac_ct_CXX
24321 fi
24322fi
24323
24324 fi
24325fi
24326# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024327$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024328set X $ac_compile
24329ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024330for ac_option in --version -v -V -qversion; do
24331 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024332case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335esac
cristy8b350f62009-11-15 23:12:43 +000024336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24337$as_echo "$ac_try_echo"; } >&5
24338 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024339 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024340 if test -s conftest.err; then
24341 sed '10a\
24342... rest of stderr output deleted ...
24343 10q' conftest.err >conftest.er1
24344 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024345 fi
cristycd4c5312009-11-22 01:19:08 +000024346 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }
24349done
cristy3ed852e2009-09-05 21:47:34 +000024350
cristy8b350f62009-11-15 23:12:43 +000024351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024352$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024353if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024354 $as_echo_n "(cached) " >&6
24355else
cristy8b350f62009-11-15 23:12:43 +000024356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024357/* end confdefs.h. */
24358
24359int
24360main ()
24361{
24362#ifndef __GNUC__
24363 choke me
24364#endif
24365
24366 ;
24367 return 0;
24368}
24369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024370if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024371 ac_compiler_gnu=yes
24372else
cristy8b350f62009-11-15 23:12:43 +000024373 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024374fi
cristy3ed852e2009-09-05 21:47:34 +000024375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24377
24378fi
cristy8b350f62009-11-15 23:12:43 +000024379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024380$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24381if test $ac_compiler_gnu = yes; then
24382 GXX=yes
24383else
24384 GXX=
24385fi
24386ac_test_CXXFLAGS=${CXXFLAGS+set}
24387ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024389$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024390if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024391 $as_echo_n "(cached) " >&6
24392else
24393 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24394 ac_cxx_werror_flag=yes
24395 ac_cv_prog_cxx_g=no
24396 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024398/* end confdefs.h. */
24399
24400int
24401main ()
24402{
24403
24404 ;
24405 return 0;
24406}
24407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024408if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024409 ac_cv_prog_cxx_g=yes
24410else
cristy8b350f62009-11-15 23:12:43 +000024411 CXXFLAGS=""
24412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024413/* end confdefs.h. */
24414
24415int
24416main ()
24417{
24418
24419 ;
24420 return 0;
24421}
24422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024423if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024424
cristy8b350f62009-11-15 23:12:43 +000024425else
24426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024427 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024429/* end confdefs.h. */
24430
24431int
24432main ()
24433{
24434
24435 ;
24436 return 0;
24437}
24438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024439if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024440 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024441fi
cristy3ed852e2009-09-05 21:47:34 +000024442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24443fi
cristy3ed852e2009-09-05 21:47:34 +000024444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24445fi
cristy3ed852e2009-09-05 21:47:34 +000024446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24448fi
cristy8b350f62009-11-15 23:12:43 +000024449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024450$as_echo "$ac_cv_prog_cxx_g" >&6; }
24451if test "$ac_test_CXXFLAGS" = set; then
24452 CXXFLAGS=$ac_save_CXXFLAGS
24453elif test $ac_cv_prog_cxx_g = yes; then
24454 if test "$GXX" = yes; then
24455 CXXFLAGS="-g -O2"
24456 else
24457 CXXFLAGS="-g"
24458 fi
24459else
24460 if test "$GXX" = yes; then
24461 CXXFLAGS="-O2"
24462 else
24463 CXXFLAGS=
24464 fi
24465fi
24466ac_ext=cpp
24467ac_cpp='$CXXCPP $CPPFLAGS'
24468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24471
cristy73bd4a52010-10-05 11:24:23 +000024472depcc="$CXX" am_compiler_list=
24473
24474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24475$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024476if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024477 $as_echo_n "(cached) " >&6
24478else
24479 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24480 # We make a subdir and do the tests there. Otherwise we can end up
24481 # making bogus files that we don't know about and never remove. For
24482 # instance it was reported that on HP-UX the gcc test will end up
24483 # making a dummy file named `D' -- because `-MD' means `put the output
24484 # in D'.
24485 mkdir conftest.dir
24486 # Copy depcomp to subdir because otherwise we won't find it if we're
24487 # using a relative directory.
24488 cp "$am_depcomp" conftest.dir
24489 cd conftest.dir
24490 # We will build objects and dependencies in a subdirectory because
24491 # it helps to detect inapplicable dependency modes. For instance
24492 # both Tru64's cc and ICC support -MD to output dependencies as a
24493 # side effect of compilation, but ICC will put the dependencies in
24494 # the current directory while Tru64 will put them in the object
24495 # directory.
24496 mkdir sub
24497
24498 am_cv_CXX_dependencies_compiler_type=none
24499 if test "$am_compiler_list" = ""; then
24500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24501 fi
24502 am__universal=false
24503 case " $depcc " in #(
24504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24505 esac
24506
24507 for depmode in $am_compiler_list; do
24508 # Setup a source with many dependencies, because some compilers
24509 # like to wrap large dependency lists on column 80 (with \), and
24510 # we should not choose a depcomp mode which is confused by this.
24511 #
24512 # We need to recreate these files for each test, as the compiler may
24513 # overwrite some of them when testing with obscure command lines.
24514 # This happens at least with the AIX C compiler.
24515 : > sub/conftest.c
24516 for i in 1 2 3 4 5 6; do
24517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24518 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24519 # Solaris 8's {/usr,}/bin/sh.
24520 touch sub/conftst$i.h
24521 done
24522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24523
24524 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24525 # mode. It turns out that the SunPro C++ compiler does not properly
24526 # handle `-M -o', and we need to detect this. Also, some Intel
24527 # versions had trouble with output in subdirs
24528 am__obj=sub/conftest.${OBJEXT-o}
24529 am__minus_obj="-o $am__obj"
24530 case $depmode in
24531 gcc)
24532 # This depmode causes a compiler race in universal mode.
24533 test "$am__universal" = false || continue
24534 ;;
24535 nosideeffect)
24536 # after this tag, mechanisms are not by side-effect, so they'll
24537 # only be used when explicitly requested
24538 if test "x$enable_dependency_tracking" = xyes; then
24539 continue
24540 else
24541 break
24542 fi
24543 ;;
24544 msvisualcpp | msvcmsys)
24545 # This compiler won't grok `-c -o', but also, the minuso test has
24546 # not run yet. These depmodes are late enough in the game, and
24547 # so weak that their functioning should not be impacted.
24548 am__obj=conftest.${OBJEXT-o}
24549 am__minus_obj=
24550 ;;
24551 none) break ;;
24552 esac
24553 if depmode=$depmode \
24554 source=sub/conftest.c object=$am__obj \
24555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24557 >/dev/null 2>conftest.err &&
24558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24562 # icc doesn't choke on unknown options, it will just issue warnings
24563 # or remarks (even with -Werror). So we grep stderr for any message
24564 # that says an option was ignored or not supported.
24565 # When given -MP, icc 7.0 and 7.1 complain thusly:
24566 # icc: Command line warning: ignoring option '-M'; no argument required
24567 # The diagnosis changed in icc 8.0:
24568 # icc: Command line remark: option '-MP' not supported
24569 if (grep 'ignoring option' conftest.err ||
24570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24571 am_cv_CXX_dependencies_compiler_type=$depmode
24572 break
24573 fi
24574 fi
24575 done
24576
24577 cd ..
24578 rm -rf conftest.dir
24579else
24580 am_cv_CXX_dependencies_compiler_type=none
24581fi
24582
24583fi
24584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24585$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24586CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24587
24588 if
24589 test "x$enable_dependency_tracking" != xno \
24590 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24591 am__fastdepCXX_TRUE=
24592 am__fastdepCXX_FALSE='#'
24593else
24594 am__fastdepCXX_TRUE='#'
24595 am__fastdepCXX_FALSE=
24596fi
24597
24598
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24600$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024601if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024602 $as_echo_n "(cached) " >&6
24603else
24604
24605 ac_ext=cpp
24606ac_cpp='$CXXCPP $CPPFLAGS'
24607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24610
24611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24612/* end confdefs.h. */
24613
24614int f(int x){return 1;}
24615int f(char x){return 1;}
24616int f(bool x){return 1;}
24617
24618int
24619main ()
24620{
24621bool b = true; return f(b);
24622 ;
24623 return 0;
24624}
24625_ACEOF
24626if ac_fn_cxx_try_compile "$LINENO"; then :
24627 ax_cv_cxx_bool=yes
24628else
24629 ax_cv_cxx_bool=no
24630fi
24631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24632 ac_ext=cpp
24633ac_cpp='$CXXCPP $CPPFLAGS'
24634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24637
24638
24639fi
24640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24641$as_echo "$ax_cv_cxx_bool" >&6; }
24642if test "$ax_cv_cxx_bool" = yes; then
24643
24644$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24645
24646fi
24647
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24649$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024650if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024651 $as_echo_n "(cached) " >&6
24652else
24653
24654 ac_ext=cpp
24655ac_cpp='$CXXCPP $CPPFLAGS'
24656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24659
24660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24661/* end confdefs.h. */
24662namespace Outer { namespace Inner { int i = 0; }}
24663int
24664main ()
24665{
24666using namespace Outer::Inner; return i;
24667 ;
24668 return 0;
24669}
24670_ACEOF
24671if ac_fn_cxx_try_compile "$LINENO"; then :
24672 ax_cv_cxx_namespaces=yes
24673else
24674 ax_cv_cxx_namespaces=no
24675fi
24676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24677 ac_ext=cpp
24678ac_cpp='$CXXCPP $CPPFLAGS'
24679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24682
24683
24684fi
24685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24686$as_echo "$ax_cv_cxx_namespaces" >&6; }
24687if test "$ax_cv_cxx_namespaces" = yes; then
24688
24689$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24690
24691fi
24692
24693
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24695$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024696if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024697 $as_echo_n "(cached) " >&6
24698else
24699
24700 ac_ext=cpp
24701ac_cpp='$CXXCPP $CPPFLAGS'
24702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24705
24706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24707/* end confdefs.h. */
24708#include <iostream>
24709 std::istream& is = std::cin;
24710int
24711main ()
24712{
24713
24714 ;
24715 return 0;
24716}
24717_ACEOF
24718if ac_fn_cxx_try_compile "$LINENO"; then :
24719 ax_cv_cxx_have_std_namespace=yes
24720else
24721 ax_cv_cxx_have_std_namespace=no
24722fi
24723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 ac_ext=cpp
24725ac_cpp='$CXXCPP $CPPFLAGS'
24726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24729
24730
24731fi
24732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24733$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24734 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24735
24736$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24737
24738 fi
24739
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24741$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024742if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024743 $as_echo_n "(cached) " >&6
24744else
24745
24746
24747 ac_ext=cpp
24748ac_cpp='$CXXCPP $CPPFLAGS'
24749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24752
24753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24754/* end confdefs.h. */
24755#include <iostream>
24756#include <map>
24757#include <iomanip>
24758#include <cmath>
24759#ifdef HAVE_NAMESPACES
24760using namespace std;
24761#endif
24762int
24763main ()
24764{
24765return 0;
24766 ;
24767 return 0;
24768}
24769_ACEOF
24770if ac_fn_cxx_try_compile "$LINENO"; then :
24771 ac_cv_cxx_have_std_libs=yes
24772else
24773 ac_cv_cxx_have_std_libs=no
24774fi
24775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 ac_ext=cpp
24777ac_cpp='$CXXCPP $CPPFLAGS'
24778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24781
24782
24783fi
24784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24785$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24786if test "$ac_cv_cxx_have_std_libs" = yes; then
24787
24788$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24789
24790fi
24791
cristy3ed852e2009-09-05 21:47:34 +000024792
24793 OPENMP_CXXFLAGS=
24794 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024795if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024796 enableval=$enable_openmp;
24797fi
24798
24799 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24801$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024802if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024803 $as_echo_n "(cached) " >&6
24804else
cristy8b350f62009-11-15 23:12:43 +000024805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024807
24808#ifndef _OPENMP
24809 choke me
24810#endif
24811#include <omp.h>
24812int main () { return omp_get_num_threads (); }
24813
24814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024815if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024816 ac_cv_prog_cxx_openmp='none needed'
24817else
cristy8b350f62009-11-15 23:12:43 +000024818 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024819 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24820 ac_save_CXXFLAGS=$CXXFLAGS
24821 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24823/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024824
24825#ifndef _OPENMP
24826 choke me
24827#endif
24828#include <omp.h>
24829int main () { return omp_get_num_threads (); }
24830
24831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024832if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024833 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024834fi
cristy8b350f62009-11-15 23:12:43 +000024835rm -f core conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024837 CXXFLAGS=$ac_save_CXXFLAGS
24838 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24839 break
24840 fi
24841 done
24842fi
cristy8b350f62009-11-15 23:12:43 +000024843rm -f core conftest.err conftest.$ac_objext \
24844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024845fi
cristy8b350f62009-11-15 23:12:43 +000024846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024847$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24848 case $ac_cv_prog_cxx_openmp in #(
24849 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024850 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024851 *)
cristy8b350f62009-11-15 23:12:43 +000024852 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024853 esac
24854 fi
24855
24856
24857 ac_ext=c
24858ac_cpp='$CPP $CPPFLAGS'
24859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24861ac_compiler_gnu=$ac_cv_c_compiler_gnu
24862
24863
cristy8b350f62009-11-15 23:12:43 +000024864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024865$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24866 if \
cristy964cb7f2010-04-25 23:18:00 +000024867 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024868 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024869 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024870 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024871 have_magick_plus_plus='yes'
24872 else
24873 have_magick_plus_plus='no (failed tests)'
24874 fi
cristy8b350f62009-11-15 23:12:43 +000024875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024876$as_echo "$have_magick_plus_plus" >&6; }
24877 LIBS="$OLIBS"
24878fi
cristy73bd4a52010-10-05 11:24:23 +000024879 if test "$have_magick_plus_plus" = 'yes'; then
24880 WITH_MAGICK_PLUS_PLUS_TRUE=
24881 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24882else
24883 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24884 WITH_MAGICK_PLUS_PLUS_FALSE=
24885fi
24886
cristy3ed852e2009-09-05 21:47:34 +000024887
24888# Only check for delegate libraries in subdirectories if requested.
24889if test "$enable_delegate_build" != 'no'; then
24890 # Check for delegate sub-directories and add -I & -L options as required.
24891 # This presumes that delegates are installed as detailed in the ImageMagick
24892 # README. If delegates are installed in a standard location where the
24893 # compiler will automatically find them then these options should not be
24894 # required.
24895
24896 #
24897 # Most delegates have includes in the same directory as the library, but not all...
24898 #
24899 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024900 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 +000024901 if test -d "$builddir/$dir"; then
24902 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24903 else
24904 if test -d "$srcdirfull/$dir"; then
24905 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24906 fi
24907 fi
24908 done
24909
24910 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024911 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 +000024912 if test -d "$builddir/$dir/.libs"; then
24913 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24914 else
24915 if test -d "$srcdirfull/$dir/.libs"; then
24916 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24917 fi
24918 fi
24919 if test -d "$builddir/$dir"; then
24920 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24921 else
24922 if test -d "$srcdirfull/$dir"; then
24923 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24924 fi
24925 fi
24926 done
24927fi
24928
24929# Assume that delegate headers reside under same directory as ImageMagick
24930# installation prefix.
24931MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24932
24933#
24934# Find the X11 RGB database
24935#
cristy8b350f62009-11-15 23:12:43 +000024936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024937$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024938if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024939 $as_echo_n "(cached) " >&6
24940else
24941 # Look for the header file in a standard set of common directories.
24942# Check X11 before X11Rn because it is often a symlink to the current release.
24943 for ac_dir in \
24944 /lib/usr/lib/X11 \
24945 /usr/X11/lib \
24946 /usr/X11R4/lib \
24947 /usr/X11R5/lib \
24948 /usr/X11R6/lib \
24949 /usr/X11R7/lib \
24950 /usr/X386/lib \
24951 /usr/XFree86/lib/X11 \
24952 /usr/athena/lib \
24953 /usr/lib \
24954 /usr/lib/X11 \
24955 /usr/lib/X11R4 \
24956 /usr/lib/X11R5 \
24957 /usr/lib/X11R6 \
24958 /usr/lib/X11R7 \
24959 /usr/local/X11/lib \
24960 /usr/local/X11R4/lib \
24961 /usr/local/X11R5/lib \
24962 /usr/local/X11R6/lib \
24963 /usr/local/lib \
24964 /usr/local/lib/X11 \
24965 /usr/local/lib/X11R4 \
24966 /usr/local/lib/X11R5 \
24967 /usr/local/lib/X11R6 \
24968 /usr/local/lib/X11R7 \
24969 /usr/local/x11r5/lib \
24970 /usr/lpp/Xamples/lib \
24971 /usr/openwin/lib \
24972 /usr/openwin/share/lib \
24973 /usr/unsupported/lib \
24974 /usr/x386/lib \
24975 ; do
24976 if test -f "$ac_dir/X11/rgb.txt"; then
24977 im_cv_x_configure="$ac_dir/X11/"
24978 break
24979 elif test -f "$ac_dir/rgb.txt"; then
24980 im_cv_x_configure="$ac_dir/"
24981 break
24982 fi
24983
24984 done
24985fi
cristy8b350f62009-11-15 23:12:43 +000024986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024987$as_echo "$im_cv_x_configure" >&6; }
24988X11_CONFIGURE_PATH="$im_cv_x_configure"
24989case "${build_os}" in
24990 mingw* )
24991 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24992 ;;
24993esac
24994
24995cat >>confdefs.h <<_ACEOF
24996#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24997_ACEOF
24998
24999
25000#
25001# Find OpenMP library
25002#
25003GOMP_LIBS=''
25004if test "$enable_openmp" != 'no'; then
25005 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025007$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025008if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025009 $as_echo_n "(cached) " >&6
25010else
25011 ac_check_lib_save_LIBS=$LIBS
25012LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025014/* end confdefs.h. */
25015
25016/* Override any GCC internal prototype to avoid an error.
25017 Use char because int might match the return type of a GCC
25018 builtin and then its argument prototype would still apply. */
25019#ifdef __cplusplus
25020extern "C"
25021#endif
25022char GOMP_parallel_start ();
25023int
25024main ()
25025{
25026return GOMP_parallel_start ();
25027 ;
25028 return 0;
25029}
25030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025031if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025032 ac_cv_lib_gomp_GOMP_parallel_start=yes
25033else
cristy8b350f62009-11-15 23:12:43 +000025034 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025035fi
cristy8b350f62009-11-15 23:12:43 +000025036rm -f core conftest.err conftest.$ac_objext \
25037 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025038LIBS=$ac_check_lib_save_LIBS
25039fi
cristy8b350f62009-11-15 23:12:43 +000025040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025041$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025042if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025043 GOMP_LIBS="-lgomp"
25044fi
25045 # gcc
25046 else
cristy8b350f62009-11-15 23:12:43 +000025047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025048$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025049if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025050 $as_echo_n "(cached) " >&6
25051else
25052 ac_check_lib_save_LIBS=$LIBS
25053LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025055/* end confdefs.h. */
25056
25057/* Override any GCC internal prototype to avoid an error.
25058 Use char because int might match the return type of a GCC
25059 builtin and then its argument prototype would still apply. */
25060#ifdef __cplusplus
25061extern "C"
25062#endif
25063char sunw_mp_register_warn ();
25064int
25065main ()
25066{
25067return sunw_mp_register_warn ();
25068 ;
25069 return 0;
25070}
25071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025073 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25074else
cristy8b350f62009-11-15 23:12:43 +000025075 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025076fi
cristy8b350f62009-11-15 23:12:43 +000025077rm -f core conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025079LIBS=$ac_check_lib_save_LIBS
25080fi
cristy8b350f62009-11-15 23:12:43 +000025081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025082$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025083if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025084 GOMP_LIBS="-lmtsk"
25085fi
25086 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025088$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025089if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025090 $as_echo_n "(cached) " >&6
25091else
25092 ac_check_lib_save_LIBS=$LIBS
25093LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025095/* end confdefs.h. */
25096
25097/* Override any GCC internal prototype to avoid an error.
25098 Use char because int might match the return type of a GCC
25099 builtin and then its argument prototype would still apply. */
25100#ifdef __cplusplus
25101extern "C"
25102#endif
25103char _xlsmpFlush ();
25104int
25105main ()
25106{
25107return _xlsmpFlush ();
25108 ;
25109 return 0;
25110}
25111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025112if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025113 ac_cv_lib_xlsmp__xlsmpFlush=yes
25114else
cristy8b350f62009-11-15 23:12:43 +000025115 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025116fi
cristy8b350f62009-11-15 23:12:43 +000025117rm -f core conftest.err conftest.$ac_objext \
25118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025119LIBS=$ac_check_lib_save_LIBS
25120fi
cristy8b350f62009-11-15 23:12:43 +000025121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025122$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025123if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025124 GOMP_LIBS="-lxlsmp"
25125fi
25126 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025128$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025129if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025130 $as_echo_n "(cached) " >&6
25131else
25132 ac_check_lib_save_LIBS=$LIBS
25133LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025135/* end confdefs.h. */
25136
25137/* Override any GCC internal prototype to avoid an error.
25138 Use char because int might match the return type of a GCC
25139 builtin and then its argument prototype would still apply. */
25140#ifdef __cplusplus
25141extern "C"
25142#endif
25143char mp_destroy ();
25144int
25145main ()
25146{
25147return mp_destroy ();
25148 ;
25149 return 0;
25150}
25151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025153 ac_cv_lib_mp_mp_destroy=yes
25154else
cristy8b350f62009-11-15 23:12:43 +000025155 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025156fi
cristy8b350f62009-11-15 23:12:43 +000025157rm -f core conftest.err conftest.$ac_objext \
25158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025159LIBS=$ac_check_lib_save_LIBS
25160fi
cristy8b350f62009-11-15 23:12:43 +000025161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025162$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025163if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025164 GOMP_LIBS="-lmp"
25165fi
25166 # SGI IRIX 6.5 MIPSpro C/C++
25167 fi
25168 LIBS="$GOMP_LIBS $LIBS"
25169fi
25170
25171
25172#
25173# Find Posix threads library
25174#
25175THREAD_LIBS=''
25176if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25177
25178 if test "x$PTHREAD_LIBS" = "x"; then
25179 case "${host_cpu}-${host_os}" in
25180 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025181
25182
25183
25184ac_ext=c
25185ac_cpp='$CPP $CPPFLAGS'
25186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25188ac_compiler_gnu=$ac_cv_c_compiler_gnu
25189
25190magick_pthread_lib_ok=no
25191
25192LIB=-lc_r
25193save_LIBS="$LIBS"
25194LIBS="$LIBS $LIB"
25195
25196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25197$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25199/* end confdefs.h. */
25200#include <pthread.h>
25201int
25202main ()
25203{
25204 pthread_t th;
25205 pthread_join(th, 0);
25206 pthread_attr_init(0);
25207 pthread_cleanup_push(0, 0);
25208 pthread_create(0,0,0,0);
25209 pthread_cleanup_pop(0);
25210 ;
25211 return 0;
25212}
25213_ACEOF
25214if ac_fn_c_try_link "$LINENO"; then :
25215 magick_pthread_lib_ok=yes
25216fi
25217rm -f core conftest.err conftest.$ac_objext \
25218 conftest$ac_exeext conftest.$ac_ext
25219
25220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25221$as_echo "${magick_pthread_lib_ok}" >&6; }
25222if test "$magick_pthread_lib_ok" = yes
25223then
25224 PTHREAD_LIBS=-lc_r
25225 :
25226else
25227
25228 :
25229fi
25230
25231LIBS="$save_LIBS"
25232
25233ac_ext=c
25234ac_cpp='$CPP $CPPFLAGS'
25235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25237ac_compiler_gnu=$ac_cv_c_compiler_gnu
25238
25239 ;;
cristy3ed852e2009-09-05 21:47:34 +000025240 esac
25241 fi
25242
25243 for lib in pthread pthreads; do
25244 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025245
25246
25247
25248ac_ext=c
25249ac_cpp='$CPP $CPPFLAGS'
25250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25252ac_compiler_gnu=$ac_cv_c_compiler_gnu
25253
25254magick_pthread_lib_ok=no
25255
25256LIB=-l$lib
25257save_LIBS="$LIBS"
25258LIBS="$LIBS $LIB"
25259
25260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25261$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25263/* end confdefs.h. */
25264#include <pthread.h>
25265int
25266main ()
25267{
25268 pthread_t th;
25269 pthread_join(th, 0);
25270 pthread_attr_init(0);
25271 pthread_cleanup_push(0, 0);
25272 pthread_create(0,0,0,0);
25273 pthread_cleanup_pop(0);
25274 ;
25275 return 0;
25276}
25277_ACEOF
25278if ac_fn_c_try_link "$LINENO"; then :
25279 magick_pthread_lib_ok=yes
25280fi
25281rm -f core conftest.err conftest.$ac_objext \
25282 conftest$ac_exeext conftest.$ac_ext
25283
25284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25285$as_echo "${magick_pthread_lib_ok}" >&6; }
25286if test "$magick_pthread_lib_ok" = yes
25287then
25288 PTHREAD_LIBS=-l$lib
25289 :
25290else
25291
25292 :
25293fi
25294
25295LIBS="$save_LIBS"
25296
25297ac_ext=c
25298ac_cpp='$CPP $CPPFLAGS'
25299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25301ac_compiler_gnu=$ac_cv_c_compiler_gnu
25302
25303
cristy3ed852e2009-09-05 21:47:34 +000025304 fi
25305 done
25306
25307 THREAD_LIBS="$PTHREAD_LIBS"
25308 LIBS="$LIBS $THREAD_LIBS"
25309fi
25310
25311
25312#
25313# Check for umem.
25314#
25315have_umem='no'
25316UMEM_LIBS=''
25317if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025319$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025321$as_echo "" >&6; }
25322 failed=0
25323 passed=0
cristy8b350f62009-11-15 23:12:43 +000025324 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025325if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025326 passed=`expr $passed + 1`
25327else
25328 failed=`expr $failed + 1`
25329fi
25330
25331
cristy8b350f62009-11-15 23:12:43 +000025332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025333$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025334if ${ac_cv_lib_umem_umem_alloc+:} 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_alloc ();
25349int
25350main ()
25351{
25352return umem_alloc ();
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_alloc=yes
25359else
cristy8b350f62009-11-15 23:12:43 +000025360 ac_cv_lib_umem_umem_alloc=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_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025367$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025368if test "x$ac_cv_lib_umem_umem_alloc" = 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 for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025375$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025376if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025377 $as_echo_n "(cached) " >&6
25378else
25379 ac_check_lib_save_LIBS=$LIBS
25380LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025382/* end confdefs.h. */
25383
25384/* Override any GCC internal prototype to avoid an error.
25385 Use char because int might match the return type of a GCC
25386 builtin and then its argument prototype would still apply. */
25387#ifdef __cplusplus
25388extern "C"
25389#endif
25390char umem_free ();
25391int
25392main ()
25393{
25394return umem_free ();
25395 ;
25396 return 0;
25397}
25398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025399if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025400 ac_cv_lib_umem_umem_free=yes
25401else
cristy8b350f62009-11-15 23:12:43 +000025402 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025403fi
cristy8b350f62009-11-15 23:12:43 +000025404rm -f core conftest.err conftest.$ac_objext \
25405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025406LIBS=$ac_check_lib_save_LIBS
25407fi
cristy8b350f62009-11-15 23:12:43 +000025408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025409$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025410if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025411 passed=`expr $passed + 1`
25412else
25413 failed=`expr $failed + 1`
25414fi
25415
cristy8b350f62009-11-15 23:12:43 +000025416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025417$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25418 if test $passed -gt 0; then
25419 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025421$as_echo "no -- some components failed test" >&6; }
25422 have_umem='no (failed tests)'
25423 else
25424 UMEM_LIBS='-lumem'
25425 LIBS="$UMEM_LIBS $LIBS"
25426
cristy8b350f62009-11-15 23:12:43 +000025427$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025428
cristy8b350f62009-11-15 23:12:43 +000025429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025430$as_echo "yes" >&6; }
25431 have_umem='yes'
25432 fi
25433 else
cristy8b350f62009-11-15 23:12:43 +000025434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025435$as_echo "no" >&6; }
25436 fi
25437fi
cristy73bd4a52010-10-05 11:24:23 +000025438 if test "$have_umem" = 'yes'; then
25439 HasUMEM_TRUE=
25440 HasUMEM_FALSE='#'
25441else
25442 HasUMEM_TRUE='#'
25443 HasUMEM_FALSE=
25444fi
25445
cristy3ed852e2009-09-05 21:47:34 +000025446
25447
25448#
25449# Add support for ccmalloc memory debugging library if requested
25450#
25451have_ccmalloc='no'
25452CCMALLOC_LIBS=''
25453if test "$enable_ccmalloc" = 'yes'; then
25454 # Extract the first word of "ccmalloc", so it can be a program name with args.
25455set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025457$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025458if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025459 $as_echo_n "(cached) " >&6
25460else
25461 case $CCMALLOCDelegate in
25462 [\\/]* | ?:[\\/]*)
25463 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25464 ;;
25465 *)
25466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25467for as_dir in $PATH
25468do
25469 IFS=$as_save_IFS
25470 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25473 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025475 break 2
25476 fi
25477done
cristy8b350f62009-11-15 23:12:43 +000025478 done
cristy3ed852e2009-09-05 21:47:34 +000025479IFS=$as_save_IFS
25480
25481 ;;
25482esac
25483fi
25484CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25485if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025487$as_echo "$CCMALLOCDelegate" >&6; }
25488else
cristy8b350f62009-11-15 23:12:43 +000025489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025490$as_echo "no" >&6; }
25491fi
25492
25493
25494 if test -n "$CCMALLOCDelegate"; then
25495 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25496 OLIBS="$LIBS"
25497 # Assume that gcc is used with ccmalloc.
25498 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025500$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025501if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025502 $as_echo_n "(cached) " >&6
25503else
25504 ac_check_lib_save_LIBS=$LIBS
25505LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025507/* end confdefs.h. */
25508
25509/* Override any GCC internal prototype to avoid an error.
25510 Use char because int might match the return type of a GCC
25511 builtin and then its argument prototype would still apply. */
25512#ifdef __cplusplus
25513extern "C"
25514#endif
25515char ccmalloc_malloc ();
25516int
25517main ()
25518{
25519return ccmalloc_malloc ();
25520 ;
25521 return 0;
25522}
25523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025525 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25526else
cristy8b350f62009-11-15 23:12:43 +000025527 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025528fi
cristy8b350f62009-11-15 23:12:43 +000025529rm -f core conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025531LIBS=$ac_check_lib_save_LIBS
25532fi
cristy8b350f62009-11-15 23:12:43 +000025533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025534$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025535if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025536 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25537fi
25538
25539 if test -n "$CCMALLOC_LIBS"; then
25540 LIBS="$OLIBS"
25541 LIBS="$LIBS $CCMALLOC_LIBS"
25542 have_ccmalloc='yes'
25543 else
25544 LIBS="$OLIBS"
25545 fi
25546 fi
25547fi
25548
25549#
25550# Add support for efence memory debugging library if requested
25551#
25552if test "$enable_efence" = 'yes'; then
25553 EFENCE_LIBS='-lefence'
25554 LIBS="$EFENCE_LIBS $LIBS"
25555fi
25556
cristy3ed852e2009-09-05 21:47:34 +000025557
25558#
25559# Check for BZLIB
25560#
25561
25562
25563# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025564if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025565 withval=$with_bzlib; with_bzlib=$withval
25566else
25567 with_bzlib='yes'
25568fi
25569
25570
25571if test "$with_bzlib" != 'yes'; then
25572 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25573fi
25574
25575have_bzlib='no'
25576if test "$with_bzlib" != 'no'; then
25577 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025579$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025581$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025583$as_echo "" >&6; }
25584 failed=0
25585 passed=0
25586 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025587 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025588if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025589 passed=`expr $passed + 1`
25590else
25591 failed=`expr $failed + 1`
25592fi
25593
25594
cristy8b350f62009-11-15 23:12:43 +000025595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025596$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025597if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025598 $as_echo_n "(cached) " >&6
25599else
25600 ac_check_lib_save_LIBS=$LIBS
25601LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025603/* end confdefs.h. */
25604
25605/* Override any GCC internal prototype to avoid an error.
25606 Use char because int might match the return type of a GCC
25607 builtin and then its argument prototype would still apply. */
25608#ifdef __cplusplus
25609extern "C"
25610#endif
25611char BZ2_bzDecompress ();
25612int
25613main ()
25614{
25615return BZ2_bzDecompress ();
25616 ;
25617 return 0;
25618}
25619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025621 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25622else
cristy8b350f62009-11-15 23:12:43 +000025623 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025624fi
cristy8b350f62009-11-15 23:12:43 +000025625rm -f core conftest.err conftest.$ac_objext \
25626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025627LIBS=$ac_check_lib_save_LIBS
25628fi
cristy8b350f62009-11-15 23:12:43 +000025629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025630$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025631if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025632 found_libbz=`expr $found_libbz + 1`
25633fi
25634
25635 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025637$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025638if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025639 $as_echo_n "(cached) " >&6
25640else
25641 ac_check_lib_save_LIBS=$LIBS
25642LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025644/* end confdefs.h. */
25645
25646/* Override any GCC internal prototype to avoid an error.
25647 Use char because int might match the return type of a GCC
25648 builtin and then its argument prototype would still apply. */
25649#ifdef __cplusplus
25650extern "C"
25651#endif
25652char _imp__BZ2_decompress ();
25653int
25654main ()
25655{
25656return _imp__BZ2_decompress ();
25657 ;
25658 return 0;
25659}
25660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025662 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25663else
cristy8b350f62009-11-15 23:12:43 +000025664 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025665fi
cristy8b350f62009-11-15 23:12:43 +000025666rm -f core conftest.err conftest.$ac_objext \
25667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025668LIBS=$ac_check_lib_save_LIBS
25669fi
cristy8b350f62009-11-15 23:12:43 +000025670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025671$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025672if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025673 found_libbz=`expr $found_libbz + 1`
25674fi
25675
25676 fi
25677 if test $found_libbz -gt 0; then
25678 passed=`expr $passed + 1`
25679 else
25680 failed=`expr $failed + 1`
25681 fi
cristy8b350f62009-11-15 23:12:43 +000025682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025683$as_echo_n "checking if BZLIB package is complete... " >&6; }
25684 if test $passed -gt 0; then
25685 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025687$as_echo "no -- some components failed test" >&6; }
25688 have_bzlib='no (failed tests)'
25689 else
25690 BZLIB_LIBS='-lbz2'
25691 LIBS="$BZLIB_LIBS $LIBS"
25692
cristy8b350f62009-11-15 23:12:43 +000025693$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025694
cristy8b350f62009-11-15 23:12:43 +000025695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025696$as_echo "yes" >&6; }
25697 have_bzlib='yes'
25698 fi
25699 else
cristy8b350f62009-11-15 23:12:43 +000025700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025701$as_echo "no" >&6; }
25702 fi
25703fi
cristy73bd4a52010-10-05 11:24:23 +000025704 if test "$have_bzlib" = 'yes'; then
25705 BZLIB_DELEGATE_TRUE=
25706 BZLIB_DELEGATE_FALSE='#'
25707else
25708 BZLIB_DELEGATE_TRUE='#'
25709 BZLIB_DELEGATE_FALSE=
25710fi
25711
cristy3ed852e2009-09-05 21:47:34 +000025712
25713
25714#
25715# Find the X11 include and library directories.
25716#
25717IPC_LIBS=''
25718X11_LIBS=''
25719XEXT_LIBS=''
25720XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025722$as_echo_n "checking for X... " >&6; }
25723
25724
25725# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025726if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025727 withval=$with_x;
25728fi
25729
25730# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25731if test "x$with_x" = xno; then
25732 # The user explicitly disabled X.
25733 have_x=disabled
25734else
25735 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025736 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025737 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025738 $as_echo_n "(cached) " >&6
25739else
25740 # One or both of the vars are not set, and there is no cached value.
25741ac_x_includes=no ac_x_libraries=no
25742rm -f -r conftest.dir
25743if mkdir conftest.dir; then
25744 cd conftest.dir
25745 cat >Imakefile <<'_ACEOF'
25746incroot:
25747 @echo incroot='${INCROOT}'
25748usrlibdir:
25749 @echo usrlibdir='${USRLIBDIR}'
25750libdir:
25751 @echo libdir='${LIBDIR}'
25752_ACEOF
25753 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025754 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025755 for ac_var in incroot usrlibdir libdir; do
25756 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25757 done
25758 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25759 for ac_extension in a so sl dylib la dll; do
25760 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25761 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25762 ac_im_usrlibdir=$ac_im_libdir; break
25763 fi
25764 done
25765 # Screen out bogus values from the imake configuration. They are
25766 # bogus both because they are the default anyway, and because
25767 # using them would break gcc on systems where it needs fixed includes.
25768 case $ac_im_incroot in
25769 /usr/include) ac_x_includes= ;;
25770 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25771 esac
25772 case $ac_im_usrlibdir in
25773 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25774 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25775 esac
25776 fi
25777 cd ..
25778 rm -f -r conftest.dir
25779fi
25780
25781# Standard set of common directories for X headers.
25782# Check X11 before X11Rn because it is often a symlink to the current release.
25783ac_x_header_dirs='
25784/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025785/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025786/usr/X11R6/include
25787/usr/X11R5/include
25788/usr/X11R4/include
25789
25790/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025791/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025792/usr/include/X11R6
25793/usr/include/X11R5
25794/usr/include/X11R4
25795
25796/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025797/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025798/usr/local/X11R6/include
25799/usr/local/X11R5/include
25800/usr/local/X11R4/include
25801
25802/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025803/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025804/usr/local/include/X11R6
25805/usr/local/include/X11R5
25806/usr/local/include/X11R4
25807
25808/usr/X386/include
25809/usr/x386/include
25810/usr/XFree86/include/X11
25811
25812/usr/include
25813/usr/local/include
25814/usr/unsupported/include
25815/usr/athena/include
25816/usr/local/x11r5/include
25817/usr/lpp/Xamples/include
25818
25819/usr/openwin/include
25820/usr/openwin/share/include'
25821
25822if test "$ac_x_includes" = no; then
25823 # Guess where to find include files, by looking for Xlib.h.
25824 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025826/* end confdefs.h. */
25827#include <X11/Xlib.h>
25828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025829if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025830 # We can compile using X headers with no special include directory.
25831ac_x_includes=
25832else
cristyc7083c12009-10-14 03:16:55 +000025833 for ac_dir in $ac_x_header_dirs; do
25834 if test -r "$ac_dir/X11/Xlib.h"; then
25835 ac_x_includes=$ac_dir
25836 break
25837 fi
25838done
25839fi
cristyda16f162011-02-19 23:52:17 +000025840rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025841fi # $ac_x_includes = no
25842
25843if test "$ac_x_libraries" = no; then
25844 # Check for the libraries.
25845 # See if we find them without any special options.
25846 # Don't add to $LIBS permanently.
25847 ac_save_LIBS=$LIBS
25848 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025850/* end confdefs.h. */
25851#include <X11/Xlib.h>
25852int
25853main ()
25854{
25855XrmInitialize ()
25856 ;
25857 return 0;
25858}
25859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025860if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025861 LIBS=$ac_save_LIBS
25862# We can link X programs with no special library path.
25863ac_x_libraries=
25864else
cristy8b350f62009-11-15 23:12:43 +000025865 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025866for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25867do
25868 # Don't even attempt the hair of trying to link an X program!
25869 for ac_extension in a so sl dylib la dll; do
25870 if test -r "$ac_dir/libX11.$ac_extension"; then
25871 ac_x_libraries=$ac_dir
25872 break 2
25873 fi
25874 done
25875done
25876fi
cristy8b350f62009-11-15 23:12:43 +000025877rm -f core conftest.err conftest.$ac_objext \
25878 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025879fi # $ac_x_libraries = no
25880
25881case $ac_x_includes,$ac_x_libraries in #(
25882 no,* | *,no | *\'*)
25883 # Didn't find X, or a directory has "'" in its name.
25884 ac_cv_have_x="have_x=no";; #(
25885 *)
25886 # Record where we found X for the cache.
25887 ac_cv_have_x="have_x=yes\
25888 ac_x_includes='$ac_x_includes'\
25889 ac_x_libraries='$ac_x_libraries'"
25890esac
25891fi
25892;; #(
25893 *) have_x=yes;;
25894 esac
25895 eval "$ac_cv_have_x"
25896fi # $with_x != no
25897
25898if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025900$as_echo "$have_x" >&6; }
25901 no_x=yes
25902else
25903 # If each of the values was on the command line, it overrides each guess.
25904 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25905 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25906 # Update the cache value to reflect the command line values.
25907 ac_cv_have_x="have_x=yes\
25908 ac_x_includes='$x_includes'\
25909 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025911$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25912fi
25913
cristy3ed852e2009-09-05 21:47:34 +000025914if test "$no_x" = yes; then
25915 # Not all programs may use this symbol, but it does not hurt to define it.
25916
cristy8b350f62009-11-15 23:12:43 +000025917$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025918
25919 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25920else
25921 if test -n "$x_includes"; then
25922 X_CFLAGS="$X_CFLAGS -I$x_includes"
25923 fi
25924
25925 # It would also be nice to do this for all -L options, not just this one.
25926 if test -n "$x_libraries"; then
25927 X_LIBS="$X_LIBS -L$x_libraries"
25928 # For Solaris; some versions of Sun CC require a space after -R and
25929 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025931$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25932 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25933 ac_xsave_c_werror_flag=$ac_c_werror_flag
25934 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025936/* end confdefs.h. */
25937
25938int
25939main ()
25940{
25941
25942 ;
25943 return 0;
25944}
25945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025946if ac_fn_c_try_link "$LINENO"; then :
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025948$as_echo "no" >&6; }
25949 X_LIBS="$X_LIBS -R$x_libraries"
25950else
cristy8b350f62009-11-15 23:12:43 +000025951 LIBS="$ac_xsave_LIBS -R $x_libraries"
25952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025953/* end confdefs.h. */
25954
25955int
25956main ()
25957{
25958
25959 ;
25960 return 0;
25961}
25962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025963if ac_fn_c_try_link "$LINENO"; then :
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025965$as_echo "yes" >&6; }
25966 X_LIBS="$X_LIBS -R $x_libraries"
25967else
cristy8b350f62009-11-15 23:12:43 +000025968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025969$as_echo "neither works" >&6; }
25970fi
cristy8b350f62009-11-15 23:12:43 +000025971rm -f core conftest.err conftest.$ac_objext \
25972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025973fi
cristy8b350f62009-11-15 23:12:43 +000025974rm -f core conftest.err conftest.$ac_objext \
25975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025976 ac_c_werror_flag=$ac_xsave_c_werror_flag
25977 LIBS=$ac_xsave_LIBS
25978 fi
25979
25980 # Check for system-dependent libraries X programs must link with.
25981 # Do this before checking for the system-independent R6 libraries
25982 # (-lICE), since we may need -lsocket or whatever for X linking.
25983
25984 if test "$ISC" = yes; then
25985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25986 else
25987 # Martyn Johnson says this is needed for Ultrix, if the X
25988 # libraries were built with DECnet support. And Karl Berry says
25989 # the Alpha needs dnet_stub (dnet does not exist).
25990 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025992/* end confdefs.h. */
25993
25994/* Override any GCC internal prototype to avoid an error.
25995 Use char because int might match the return type of a GCC
25996 builtin and then its argument prototype would still apply. */
25997#ifdef __cplusplus
25998extern "C"
25999#endif
26000char XOpenDisplay ();
26001int
26002main ()
26003{
26004return XOpenDisplay ();
26005 ;
26006 return 0;
26007}
26008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026010
cristy8b350f62009-11-15 23:12:43 +000026011else
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026014if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026015 $as_echo_n "(cached) " >&6
26016else
26017 ac_check_lib_save_LIBS=$LIBS
26018LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026020/* end confdefs.h. */
26021
26022/* Override any GCC internal prototype to avoid an error.
26023 Use char because int might match the return type of a GCC
26024 builtin and then its argument prototype would still apply. */
26025#ifdef __cplusplus
26026extern "C"
26027#endif
26028char dnet_ntoa ();
26029int
26030main ()
26031{
26032return dnet_ntoa ();
26033 ;
26034 return 0;
26035}
26036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026037if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026038 ac_cv_lib_dnet_dnet_ntoa=yes
26039else
cristy8b350f62009-11-15 23:12:43 +000026040 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026041fi
cristy8b350f62009-11-15 23:12:43 +000026042rm -f core conftest.err conftest.$ac_objext \
26043 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026044LIBS=$ac_check_lib_save_LIBS
26045fi
cristy8b350f62009-11-15 23:12:43 +000026046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026047$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026048if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026049 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26050fi
26051
26052 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026054$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026055if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026056 $as_echo_n "(cached) " >&6
26057else
26058 ac_check_lib_save_LIBS=$LIBS
26059LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026061/* end confdefs.h. */
26062
26063/* Override any GCC internal prototype to avoid an error.
26064 Use char because int might match the return type of a GCC
26065 builtin and then its argument prototype would still apply. */
26066#ifdef __cplusplus
26067extern "C"
26068#endif
26069char dnet_ntoa ();
26070int
26071main ()
26072{
26073return dnet_ntoa ();
26074 ;
26075 return 0;
26076}
26077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026078if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026079 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26080else
cristy8b350f62009-11-15 23:12:43 +000026081 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026082fi
cristy8b350f62009-11-15 23:12:43 +000026083rm -f core conftest.err conftest.$ac_objext \
26084 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026085LIBS=$ac_check_lib_save_LIBS
26086fi
cristy8b350f62009-11-15 23:12:43 +000026087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026088$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026089if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026090 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26091fi
26092
26093 fi
26094fi
cristy8b350f62009-11-15 23:12:43 +000026095rm -f core conftest.err conftest.$ac_objext \
26096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026097 LIBS="$ac_xsave_LIBS"
26098
26099 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26100 # to get the SysV transport functions.
26101 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26102 # needs -lnsl.
26103 # The nsl library prevents programs from opening the X display
26104 # on Irix 5.2, according to T.E. Dickey.
26105 # The functions gethostbyname, getservbyname, and inet_addr are
26106 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026107 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026108if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026109
cristy3ed852e2009-09-05 21:47:34 +000026110fi
26111
cristy3ed852e2009-09-05 21:47:34 +000026112 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026114$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026115if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 $as_echo_n "(cached) " >&6
26117else
26118 ac_check_lib_save_LIBS=$LIBS
26119LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026121/* end confdefs.h. */
26122
26123/* Override any GCC internal prototype to avoid an error.
26124 Use char because int might match the return type of a GCC
26125 builtin and then its argument prototype would still apply. */
26126#ifdef __cplusplus
26127extern "C"
26128#endif
26129char gethostbyname ();
26130int
26131main ()
26132{
26133return gethostbyname ();
26134 ;
26135 return 0;
26136}
26137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026138if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026139 ac_cv_lib_nsl_gethostbyname=yes
26140else
cristy8b350f62009-11-15 23:12:43 +000026141 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026142fi
cristy8b350f62009-11-15 23:12:43 +000026143rm -f core conftest.err conftest.$ac_objext \
26144 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026145LIBS=$ac_check_lib_save_LIBS
26146fi
cristy8b350f62009-11-15 23:12:43 +000026147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026148$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026149if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026150 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26151fi
26152
26153 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026155$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026156if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026157 $as_echo_n "(cached) " >&6
26158else
26159 ac_check_lib_save_LIBS=$LIBS
26160LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026162/* end confdefs.h. */
26163
26164/* Override any GCC internal prototype to avoid an error.
26165 Use char because int might match the return type of a GCC
26166 builtin and then its argument prototype would still apply. */
26167#ifdef __cplusplus
26168extern "C"
26169#endif
26170char gethostbyname ();
26171int
26172main ()
26173{
26174return gethostbyname ();
26175 ;
26176 return 0;
26177}
26178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026179if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026180 ac_cv_lib_bsd_gethostbyname=yes
26181else
cristy8b350f62009-11-15 23:12:43 +000026182 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026183fi
cristy8b350f62009-11-15 23:12:43 +000026184rm -f core conftest.err conftest.$ac_objext \
26185 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026186LIBS=$ac_check_lib_save_LIBS
26187fi
cristy8b350f62009-11-15 23:12:43 +000026188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026189$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026190if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26192fi
26193
26194 fi
26195 fi
26196
26197 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26198 # socket/setsockopt and other routines are undefined under SCO ODT
26199 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26200 # on later versions), says Simon Leinen: it contains gethostby*
26201 # variants that don't use the name server (or something). -lsocket
26202 # must be given before -lnsl if both are needed. We assume that
26203 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026204 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026205if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026206
cristy3ed852e2009-09-05 21:47:34 +000026207fi
26208
cristy3ed852e2009-09-05 21:47:34 +000026209 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026211$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026212if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026213 $as_echo_n "(cached) " >&6
26214else
26215 ac_check_lib_save_LIBS=$LIBS
26216LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026218/* end confdefs.h. */
26219
26220/* Override any GCC internal prototype to avoid an error.
26221 Use char because int might match the return type of a GCC
26222 builtin and then its argument prototype would still apply. */
26223#ifdef __cplusplus
26224extern "C"
26225#endif
26226char connect ();
26227int
26228main ()
26229{
26230return connect ();
26231 ;
26232 return 0;
26233}
26234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026236 ac_cv_lib_socket_connect=yes
26237else
cristy8b350f62009-11-15 23:12:43 +000026238 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026239fi
cristy8b350f62009-11-15 23:12:43 +000026240rm -f core conftest.err conftest.$ac_objext \
26241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026242LIBS=$ac_check_lib_save_LIBS
26243fi
cristy8b350f62009-11-15 23:12:43 +000026244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026245$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026246if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026247 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26248fi
26249
26250 fi
26251
26252 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026253 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026254if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026255
cristy3ed852e2009-09-05 21:47:34 +000026256fi
26257
cristy3ed852e2009-09-05 21:47:34 +000026258 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026260$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026261if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026262 $as_echo_n "(cached) " >&6
26263else
26264 ac_check_lib_save_LIBS=$LIBS
26265LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026267/* end confdefs.h. */
26268
26269/* Override any GCC internal prototype to avoid an error.
26270 Use char because int might match the return type of a GCC
26271 builtin and then its argument prototype would still apply. */
26272#ifdef __cplusplus
26273extern "C"
26274#endif
26275char remove ();
26276int
26277main ()
26278{
26279return remove ();
26280 ;
26281 return 0;
26282}
26283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026285 ac_cv_lib_posix_remove=yes
26286else
cristy8b350f62009-11-15 23:12:43 +000026287 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026288fi
cristy8b350f62009-11-15 23:12:43 +000026289rm -f core conftest.err conftest.$ac_objext \
26290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026291LIBS=$ac_check_lib_save_LIBS
26292fi
cristy8b350f62009-11-15 23:12:43 +000026293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026294$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026295if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26297fi
26298
26299 fi
26300
26301 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026302 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026303if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026304
cristy3ed852e2009-09-05 21:47:34 +000026305fi
26306
cristy3ed852e2009-09-05 21:47:34 +000026307 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026309$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026310if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026311 $as_echo_n "(cached) " >&6
26312else
26313 ac_check_lib_save_LIBS=$LIBS
26314LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026316/* end confdefs.h. */
26317
26318/* Override any GCC internal prototype to avoid an error.
26319 Use char because int might match the return type of a GCC
26320 builtin and then its argument prototype would still apply. */
26321#ifdef __cplusplus
26322extern "C"
26323#endif
26324char shmat ();
26325int
26326main ()
26327{
26328return shmat ();
26329 ;
26330 return 0;
26331}
26332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026333if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026334 ac_cv_lib_ipc_shmat=yes
26335else
cristy8b350f62009-11-15 23:12:43 +000026336 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026337fi
cristy8b350f62009-11-15 23:12:43 +000026338rm -f core conftest.err conftest.$ac_objext \
26339 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026340LIBS=$ac_check_lib_save_LIBS
26341fi
cristy8b350f62009-11-15 23:12:43 +000026342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026343$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026344if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026345 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26346fi
26347
26348 fi
26349 fi
26350
26351 # Check for libraries that X11R6 Xt/Xaw programs need.
26352 ac_save_LDFLAGS=$LDFLAGS
26353 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26354 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26355 # check for ICE first), but we must link in the order -lSM -lICE or
26356 # we get undefined symbols. So assume we have SM if we have ICE.
26357 # These have to be linked with before -lX11, unlike the other
26358 # libraries we check for below, so use a different variable.
26359 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026361$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026362if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026363 $as_echo_n "(cached) " >&6
26364else
26365 ac_check_lib_save_LIBS=$LIBS
26366LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026368/* end confdefs.h. */
26369
26370/* Override any GCC internal prototype to avoid an error.
26371 Use char because int might match the return type of a GCC
26372 builtin and then its argument prototype would still apply. */
26373#ifdef __cplusplus
26374extern "C"
26375#endif
26376char IceConnectionNumber ();
26377int
26378main ()
26379{
26380return IceConnectionNumber ();
26381 ;
26382 return 0;
26383}
26384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026385if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026386 ac_cv_lib_ICE_IceConnectionNumber=yes
26387else
cristy8b350f62009-11-15 23:12:43 +000026388 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026389fi
cristy8b350f62009-11-15 23:12:43 +000026390rm -f core conftest.err conftest.$ac_objext \
26391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026392LIBS=$ac_check_lib_save_LIBS
26393fi
cristy8b350f62009-11-15 23:12:43 +000026394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026395$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026396if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026397 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26398fi
26399
26400 LDFLAGS=$ac_save_LDFLAGS
26401
26402fi
26403
26404if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026406$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026408$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026410$as_echo "" >&6; }
26411 LDFLAGS="$LDFLAGS $X_LIBS"
26412 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26413 LIBS="$X11_LIBS $LIBS"
26414 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26415
26416
cristy8b350f62009-11-15 23:12:43 +000026417$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026418
26419 #
26420 # Check for X11 shared memory extension
26421 #
26422 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026423 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026424if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026425 have_shmctl='yes'
26426fi
26427
26428 if test "$have_shmctl" != 'yes'; then
26429 PERSIST_LIBS=$LIBS
26430 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026432/* end confdefs.h. */
26433
26434/* Override any GCC internal prototype to avoid an error.
26435 Use char because int might match the return type of a GCC
26436 builtin and then its argument prototype would still apply. */
26437#ifdef __cplusplus
26438extern "C"
26439#endif
26440char shmctl ();
26441int
26442main ()
26443{
26444return shmctl ();
26445 ;
26446 return 0;
26447}
26448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026450 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026451fi
cristy8b350f62009-11-15 23:12:43 +000026452rm -f core conftest.err conftest.$ac_objext \
26453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026454 LIBS=$PERSIST_LIBS
26455 fi
26456
26457 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026459$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026460if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026461 $as_echo_n "(cached) " >&6
26462else
26463 ac_check_lib_save_LIBS=$LIBS
26464LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026466/* end confdefs.h. */
26467
26468/* Override any GCC internal prototype to avoid an error.
26469 Use char because int might match the return type of a GCC
26470 builtin and then its argument prototype would still apply. */
26471#ifdef __cplusplus
26472extern "C"
26473#endif
26474char XShmAttach ();
26475int
26476main ()
26477{
26478return XShmAttach ();
26479 ;
26480 return 0;
26481}
26482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026484 ac_cv_lib_Xext_XShmAttach=yes
26485else
cristy8b350f62009-11-15 23:12:43 +000026486 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026487fi
cristy8b350f62009-11-15 23:12:43 +000026488rm -f core conftest.err conftest.$ac_objext \
26489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026490LIBS=$ac_check_lib_save_LIBS
26491fi
cristy8b350f62009-11-15 23:12:43 +000026492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026493$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026494if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026495 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026496$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026497
26498fi
26499
26500 fi
26501
26502 #
26503 # Check for X11 shape extension
26504 #
cristy8b350f62009-11-15 23:12:43 +000026505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026506$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026507if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026508 $as_echo_n "(cached) " >&6
26509else
26510 ac_check_lib_save_LIBS=$LIBS
26511LIBS="-lXext $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 XShapeCombineMask ();
26522int
26523main ()
26524{
26525return XShapeCombineMask ();
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_Xext_XShapeCombineMask=yes
26532else
cristy8b350f62009-11-15 23:12:43 +000026533 ac_cv_lib_Xext_XShapeCombineMask=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_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026540$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026541if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026542 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026543$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026544
26545fi
26546
cristy8b350f62009-11-15 23:12:43 +000026547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026548$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026549if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026550 $as_echo_n "(cached) " >&6
26551else
26552 ac_check_lib_save_LIBS=$LIBS
26553LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026555/* end confdefs.h. */
26556
26557/* Override any GCC internal prototype to avoid an error.
26558 Use char because int might match the return type of a GCC
26559 builtin and then its argument prototype would still apply. */
26560#ifdef __cplusplus
26561extern "C"
26562#endif
26563char XtSetEventDispatcher ();
26564int
26565main ()
26566{
26567return XtSetEventDispatcher ();
26568 ;
26569 return 0;
26570}
26571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26574else
cristy8b350f62009-11-15 23:12:43 +000026575 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026576fi
cristy8b350f62009-11-15 23:12:43 +000026577rm -f core conftest.err conftest.$ac_objext \
26578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026579LIBS=$ac_check_lib_save_LIBS
26580fi
cristy8b350f62009-11-15 23:12:43 +000026581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026582$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026583if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 XT_LIBS='-lXt'
26585fi
26586
26587 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26588fi
26589if test "$no_x" != 'yes'; then
26590 have_x='yes'
26591else
26592 have_x='no'
26593fi
cristy73bd4a52010-10-05 11:24:23 +000026594 if test "$have_x" = 'yes'; then
26595 X11_DELEGATE_TRUE=
26596 X11_DELEGATE_FALSE='#'
26597else
26598 X11_DELEGATE_TRUE='#'
26599 X11_DELEGATE_FALSE=
26600fi
26601
cristy3ed852e2009-09-05 21:47:34 +000026602
26603
26604
26605
26606#
26607# Check for ZLIB
26608#
26609
26610# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026611if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026612 withval=$with_zlib; with_zlib=$withval
26613else
26614 with_zlib='yes'
26615fi
26616
26617
26618if test "$with_zlib" != 'yes'; then
26619 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26620fi
26621
26622have_zlib='no'
26623ZLIB_LIBS=''
26624if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026626$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026628$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026630$as_echo "" >&6; }
26631 ZLIB_LIBS=''
26632 failed=0
26633 passed=0
cristy8b350f62009-11-15 23:12:43 +000026634 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026635if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026636 passed=`expr $passed + 1`
26637else
26638 failed=`expr $failed + 1`
26639fi
26640
26641
cristy8b350f62009-11-15 23:12:43 +000026642 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026643if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026644 passed=`expr $passed + 1`
26645else
26646 failed=`expr $failed + 1`
26647fi
26648
26649
cristy8b350f62009-11-15 23:12:43 +000026650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026651$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026652if ${ac_cv_lib_z_compress+:} 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 compress ();
26667int
26668main ()
26669{
26670return compress ();
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_compress=yes
26677else
cristy8b350f62009-11-15 23:12:43 +000026678 ac_cv_lib_z_compress=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_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026686if test "x$ac_cv_lib_z_compress" = 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 uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026693$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026694if ${ac_cv_lib_z_uncompress+:} 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 uncompress ();
26709int
26710main ()
26711{
26712return uncompress ();
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_uncompress=yes
26719else
cristy8b350f62009-11-15 23:12:43 +000026720 ac_cv_lib_z_uncompress=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_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026727$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026728if test "x$ac_cv_lib_z_uncompress" = 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 deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026735$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026736if ${ac_cv_lib_z_deflate+:} 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 deflate ();
26751int
26752main ()
26753{
26754return deflate ();
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_deflate=yes
26761else
cristy8b350f62009-11-15 23:12:43 +000026762 ac_cv_lib_z_deflate=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_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026770if test "x$ac_cv_lib_z_deflate" = 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 inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026778if ${ac_cv_lib_z_inflate+:} 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 inflate ();
26793int
26794main ()
26795{
26796return inflate ();
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_inflate=yes
26803else
cristy8b350f62009-11-15 23:12:43 +000026804 ac_cv_lib_z_inflate=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_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026812if test "x$ac_cv_lib_z_inflate" = 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 gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026819$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026820if ${ac_cv_lib_z_gzseek+:} 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 gzseek ();
26835int
26836main ()
26837{
26838return gzseek ();
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_gzseek=yes
26845else
cristy8b350f62009-11-15 23:12:43 +000026846 ac_cv_lib_z_gzseek=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_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026853$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026854if test "x$ac_cv_lib_z_gzseek" = 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 for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026861$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026862if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026863 $as_echo_n "(cached) " >&6
26864else
26865 ac_check_lib_save_LIBS=$LIBS
26866LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026868/* end confdefs.h. */
26869
26870/* Override any GCC internal prototype to avoid an error.
26871 Use char because int might match the return type of a GCC
26872 builtin and then its argument prototype would still apply. */
26873#ifdef __cplusplus
26874extern "C"
26875#endif
26876char gztell ();
26877int
26878main ()
26879{
26880return gztell ();
26881 ;
26882 return 0;
26883}
26884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026885if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026886 ac_cv_lib_z_gztell=yes
26887else
cristy8b350f62009-11-15 23:12:43 +000026888 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026889fi
cristy8b350f62009-11-15 23:12:43 +000026890rm -f core conftest.err conftest.$ac_objext \
26891 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026892LIBS=$ac_check_lib_save_LIBS
26893fi
cristy8b350f62009-11-15 23:12:43 +000026894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026895$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026896if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026897 passed=`expr $passed + 1`
26898else
26899 failed=`expr $failed + 1`
26900fi
26901
cristy8b350f62009-11-15 23:12:43 +000026902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026903$as_echo_n "checking if ZLIB package is complete... " >&6; }
26904 if test $passed -gt 0; then
26905 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026907$as_echo "no -- some components failed test" >&6; }
26908 have_zlib='no (failed tests)'
26909 else
26910 ZLIB_LIBS='-lz'
26911 LIBS="$ZLIB_LIBS $LIBS"
26912
cristy8b350f62009-11-15 23:12:43 +000026913$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026914
cristy8b350f62009-11-15 23:12:43 +000026915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026916$as_echo "yes" >&6; }
26917 have_zlib='yes'
26918 fi
26919 else
cristy8b350f62009-11-15 23:12:43 +000026920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026921$as_echo "no" >&6; }
26922 fi
26923fi
cristy73bd4a52010-10-05 11:24:23 +000026924 if test "$have_zlib" = 'yes'; then
26925 ZLIB_DELEGATE_TRUE=
26926 ZLIB_DELEGATE_FALSE='#'
26927else
26928 ZLIB_DELEGATE_TRUE='#'
26929 ZLIB_DELEGATE_FALSE=
26930fi
26931
cristy3ed852e2009-09-05 21:47:34 +000026932
26933
26934#
26935# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26936#
26937LIB_DL=''
26938if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026940$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026941if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026942 $as_echo_n "(cached) " >&6
26943else
26944 ac_check_lib_save_LIBS=$LIBS
26945LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026947/* end confdefs.h. */
26948
26949/* Override any GCC internal prototype to avoid an error.
26950 Use char because int might match the return type of a GCC
26951 builtin and then its argument prototype would still apply. */
26952#ifdef __cplusplus
26953extern "C"
26954#endif
26955char dlopen ();
26956int
26957main ()
26958{
26959return dlopen ();
26960 ;
26961 return 0;
26962}
26963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026965 ac_cv_lib_dl_dlopen=yes
26966else
cristy8b350f62009-11-15 23:12:43 +000026967 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026968fi
cristy8b350f62009-11-15 23:12:43 +000026969rm -f core conftest.err conftest.$ac_objext \
26970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026971LIBS=$ac_check_lib_save_LIBS
26972fi
cristy8b350f62009-11-15 23:12:43 +000026973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026974$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026975if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026976 LIB_DL='-ldl'
26977fi
26978
26979 LIBS="$LIB_DL $LIBS"
26980fi
26981
26982
26983
26984#
26985# Check for Autotrace delegate library.
26986#
26987
26988# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026989if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026990 withval=$with_autotrace; with_autotrace=$withval
26991else
26992 with_autotrace='no'
26993fi
26994
26995
26996if test "$with_autotrace" != 'yes'; then
26997 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26998fi
26999
27000have_autotrace='no'
27001AUTOTRACE_CFLAGS=""
27002AUTOTRACE_LIBS=""
27003AUTOTRACE_PKG=""
27004if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027006$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027007
27008pkg_failed=no
27009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27010$as_echo_n "checking for AUTOTRACE... " >&6; }
27011
27012if test -n "$AUTOTRACE_CFLAGS"; then
27013 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27014 elif test -n "$PKG_CONFIG"; then
27015 if test -n "$PKG_CONFIG" && \
27016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27017 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27018 ac_status=$?
27019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27020 test $ac_status = 0; }; then
27021 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27022else
27023 pkg_failed=yes
27024fi
27025 else
27026 pkg_failed=untried
27027fi
27028if test -n "$AUTOTRACE_LIBS"; then
27029 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27030 elif test -n "$PKG_CONFIG"; then
27031 if test -n "$PKG_CONFIG" && \
27032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27033 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27034 ac_status=$?
27035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27036 test $ac_status = 0; }; then
27037 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27038else
27039 pkg_failed=yes
27040fi
27041 else
27042 pkg_failed=untried
27043fi
27044
27045
27046
27047if test $pkg_failed = yes; then
27048
27049if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27050 _pkg_short_errors_supported=yes
27051else
27052 _pkg_short_errors_supported=no
27053fi
27054 if test $_pkg_short_errors_supported = yes; then
27055 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27056 else
27057 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27058 fi
27059 # Put the nasty error message in config.log where it belongs
27060 echo "$AUTOTRACE_PKG_ERRORS" >&5
27061
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27063$as_echo "no" >&6; }
27064 have_autotrace=no
27065elif test $pkg_failed = untried; then
27066 have_autotrace=no
27067else
27068 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27069 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27071$as_echo "yes" >&6; }
27072 have_autotrace=yes
27073fi
cristy8b350f62009-11-15 23:12:43 +000027074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027075$as_echo "" >&6; }
27076fi
27077
27078if test "$have_autotrace" = 'yes'; then
27079 failed=0
27080
cristy8b350f62009-11-15 23:12:43 +000027081$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027082
27083 if test "$with_modules" = 'no'; then
27084 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27085 fi
27086fi
27087
cristy73bd4a52010-10-05 11:24:23 +000027088 if test "$have_autotrace" = 'yes'; then
27089 AUTOTRACE_DELEGATE_TRUE=
27090 AUTOTRACE_DELEGATE_FALSE='#'
27091else
27092 AUTOTRACE_DELEGATE_TRUE='#'
27093 AUTOTRACE_DELEGATE_FALSE=
27094fi
27095
cristy3ed852e2009-09-05 21:47:34 +000027096
27097
27098
27099
27100#
27101# Check for Display Postscript delegate library.
27102#
27103
27104# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027105if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027106 withval=$with_dps; with_dps=$withval
27107else
27108 with_dps='yes'
27109fi
27110
27111
27112if test "$with_dps" != 'yes'; then
27113 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27114fi
27115
27116have_dps='no'
27117DPS_LIBS=''
27118if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027120$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "" >&6; }
27125 failed=0
27126 passed=0
27127 PERSIST_CPPFLAGS="$CPPFLAGS"
27128 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027129 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 +000027130if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027131 passed=`expr $passed + 1`
27132else
27133 failed=`expr $failed + 1`
27134fi
27135
27136
27137 # DPS issues:
27138 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27139 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27140 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27141 # ImageMagick itself doesn't use -lXt.
27142 have_libdps='no'
27143 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027145$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027146if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027147 $as_echo_n "(cached) " >&6
27148else
27149 ac_check_lib_save_LIBS=$LIBS
27150LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027152/* end confdefs.h. */
27153
27154/* Override any GCC internal prototype to avoid an error.
27155 Use char because int might match the return type of a GCC
27156 builtin and then its argument prototype would still apply. */
27157#ifdef __cplusplus
27158extern "C"
27159#endif
27160char DPSInitialize ();
27161int
27162main ()
27163{
27164return DPSInitialize ();
27165 ;
27166 return 0;
27167}
27168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027169if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 ac_cv_lib_dps_DPSInitialize=yes
27171else
cristy8b350f62009-11-15 23:12:43 +000027172 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027173fi
cristy8b350f62009-11-15 23:12:43 +000027174rm -f core conftest.err conftest.$ac_objext \
27175 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027176LIBS=$ac_check_lib_save_LIBS
27177fi
cristy8b350f62009-11-15 23:12:43 +000027178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027179$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027180if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027181 have_libdps='yes'
27182else
27183 have_libdps='no'
27184fi
27185
27186 if test "$have_libdps" != 'yes'; then
27187 # Unset cache variable so we can try again.
27188 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027191if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 $as_echo_n "(cached) " >&6
27193else
27194 ac_check_lib_save_LIBS=$LIBS
27195LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027197/* end confdefs.h. */
27198
27199/* Override any GCC internal prototype to avoid an error.
27200 Use char because int might match the return type of a GCC
27201 builtin and then its argument prototype would still apply. */
27202#ifdef __cplusplus
27203extern "C"
27204#endif
27205char DPSInitialize ();
27206int
27207main ()
27208{
27209return DPSInitialize ();
27210 ;
27211 return 0;
27212}
27213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 ac_cv_lib_dps_DPSInitialize=yes
27216else
cristy8b350f62009-11-15 23:12:43 +000027217 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027218fi
cristy8b350f62009-11-15 23:12:43 +000027219rm -f core conftest.err conftest.$ac_objext \
27220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027221LIBS=$ac_check_lib_save_LIBS
27222fi
cristy8b350f62009-11-15 23:12:43 +000027223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027225if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 have_libdps='yes'
27227else
27228 have_libdps='no'
27229fi
27230
27231 if test "$have_libdps" = 'yes'; then
27232 LIBDPS_XT='-lXt'
27233 fi
27234 fi
27235 if test "$have_libdps" = 'yes'; then
27236 passed=`expr $passed + 1`
27237 else
27238 failed=`expr $failed + 1`
27239 fi
cristy8b350f62009-11-15 23:12:43 +000027240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027242if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 $as_echo_n "(cached) " >&6
27244else
27245 ac_check_lib_save_LIBS=$LIBS
27246LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027248/* end confdefs.h. */
27249
27250/* Override any GCC internal prototype to avoid an error.
27251 Use char because int might match the return type of a GCC
27252 builtin and then its argument prototype would still apply. */
27253#ifdef __cplusplus
27254extern "C"
27255#endif
27256char XDPSPixelsPerPoint ();
27257int
27258main ()
27259{
27260return XDPSPixelsPerPoint ();
27261 ;
27262 return 0;
27263}
27264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027265if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027266 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27267else
cristy8b350f62009-11-15 23:12:43 +000027268 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027269fi
cristy8b350f62009-11-15 23:12:43 +000027270rm -f core conftest.err conftest.$ac_objext \
27271 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027272LIBS=$ac_check_lib_save_LIBS
27273fi
cristy8b350f62009-11-15 23:12:43 +000027274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027276if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 passed=`expr $passed + 1`
27278else
27279 failed=`expr $failed + 1`
27280fi
27281
cristy8b350f62009-11-15 23:12:43 +000027282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027283$as_echo_n "checking if DPS package is complete... " >&6; }
27284 if test $passed -gt 0; then
27285 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo "no -- some components failed test" >&6; }
27288 have_dps='no (failed tests)'
27289 CPPFLAGS="$PERSIST_CPPFLAGS"
27290 else
27291 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27292 LIBS="$DPS_LIBS $LIBS"
27293
cristy8b350f62009-11-15 23:12:43 +000027294$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027295
cristy8b350f62009-11-15 23:12:43 +000027296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo "yes" >&6; }
27298 have_dps='yes'
27299 fi
27300 else
cristy8b350f62009-11-15 23:12:43 +000027301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027302$as_echo "no" >&6; }
27303 CPPFLAGS=$PERSIST_CPPFLAGS
27304 fi
27305fi
cristy73bd4a52010-10-05 11:24:23 +000027306 if test "$have_dps" = 'yes'; then
27307 DPS_DELEGATE_TRUE=
27308 DPS_DELEGATE_FALSE='#'
27309else
27310 DPS_DELEGATE_TRUE='#'
27311 DPS_DELEGATE_FALSE=
27312fi
27313
cristy3ed852e2009-09-05 21:47:34 +000027314
27315
27316
27317#
27318# Check for DJVU delegate library.
27319#
27320
27321# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027322if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027323 withval=$with_djvu; with_djvu=$withval
27324else
27325 with_djvu='yes'
27326fi
27327
27328
27329if test "$with_djvu" != 'yes'; then
27330 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27331fi
27332
27333have_djvu='no'
27334DJVU_LIBS=''
27335if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027337$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027339$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo "" >&6; }
27342 failed=0
27343 passed=0
cristy8b350f62009-11-15 23:12:43 +000027344 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 +000027345if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027346 passed=`expr $passed + 1`
27347else
27348 failed=`expr $failed + 1`
27349fi
27350
27351
cristy8b350f62009-11-15 23:12:43 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027353$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027354if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 $as_echo_n "(cached) " >&6
27356else
27357 ac_check_lib_save_LIBS=$LIBS
27358LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027360/* end confdefs.h. */
27361
27362/* Override any GCC internal prototype to avoid an error.
27363 Use char because int might match the return type of a GCC
27364 builtin and then its argument prototype would still apply. */
27365#ifdef __cplusplus
27366extern "C"
27367#endif
27368char ddjvu_context_create ();
27369int
27370main ()
27371{
27372return ddjvu_context_create ();
27373 ;
27374 return 0;
27375}
27376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027377if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027378 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27379else
cristy8b350f62009-11-15 23:12:43 +000027380 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027381fi
cristy8b350f62009-11-15 23:12:43 +000027382rm -f core conftest.err conftest.$ac_objext \
27383 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027384LIBS=$ac_check_lib_save_LIBS
27385fi
cristy8b350f62009-11-15 23:12:43 +000027386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027387$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027388if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027389 passed=`expr $passed + 1`
27390else
27391 failed=`expr $failed + 1`
27392fi
27393
cristy8b350f62009-11-15 23:12:43 +000027394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027395$as_echo_n "checking if DJVU package is complete... " >&6; }
27396 if test $passed -gt 0; then
27397 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027399$as_echo "no -- some components failed test" >&6; }
27400 have_djvu='no (failed tests)'
27401 else
27402 DJVU_LIBS='-ldjvulibre'
27403 LIBS="$DJVU_LIBS $LIBS"
27404
cristy8b350f62009-11-15 23:12:43 +000027405$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027406
cristy8b350f62009-11-15 23:12:43 +000027407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027408$as_echo "yes" >&6; }
27409 have_djvu='yes'
27410 fi
27411 else
cristy8b350f62009-11-15 23:12:43 +000027412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027413$as_echo "no" >&6; }
27414 fi
27415fi
cristy73bd4a52010-10-05 11:24:23 +000027416 if test "$have_djvu" = 'yes'; then
27417 DJVU_DELEGATE_TRUE=
27418 DJVU_DELEGATE_FALSE='#'
27419else
27420 DJVU_DELEGATE_TRUE='#'
27421 DJVU_DELEGATE_FALSE=
27422fi
27423
cristy3ed852e2009-09-05 21:47:34 +000027424
27425
27426
27427#
cristy430a7312010-01-21 20:44:04 +000027428# Set DejaVu font directory.
27429#
27430
27431# Check whether --with-dejavu-font-dir was given.
27432if test "${with_dejavu_font_dir+set}" = set; then :
27433 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27434else
27435 with_dejavu_font_dir='default'
27436fi
27437
27438
27439if test "$with_dejavu_font_dir" != 'default'; then
27440 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27441fi
27442
27443
27444#
cristy3ed852e2009-09-05 21:47:34 +000027445# Check for FFTW delegate library.
27446#
27447
27448# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027449if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027450 withval=$with_fftw; with_fftw=$withval
27451else
27452 with_fftw='yes'
27453fi
27454
27455
27456if test "$with_fftw" != 'yes'; then
27457 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27458fi
27459
27460have_fftw='no'
27461FFTW_LIBS=''
27462if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027464$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027466$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027468$as_echo "" >&6; }
27469 failed=0
27470 passed=0
cristy8b350f62009-11-15 23:12:43 +000027471 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027472if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027473 passed=`expr $passed + 1`
27474else
27475 failed=`expr $failed + 1`
27476fi
27477
27478
cristy8b350f62009-11-15 23:12:43 +000027479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027480$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027481if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027482 $as_echo_n "(cached) " >&6
27483else
27484 ac_check_lib_save_LIBS=$LIBS
27485LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027487/* end confdefs.h. */
27488
27489/* Override any GCC internal prototype to avoid an error.
27490 Use char because int might match the return type of a GCC
27491 builtin and then its argument prototype would still apply. */
27492#ifdef __cplusplus
27493extern "C"
27494#endif
27495char fftw_execute ();
27496int
27497main ()
27498{
27499return fftw_execute ();
27500 ;
27501 return 0;
27502}
27503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027504if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027505 ac_cv_lib_fftw3_fftw_execute=yes
27506else
cristy8b350f62009-11-15 23:12:43 +000027507 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027508fi
cristy8b350f62009-11-15 23:12:43 +000027509rm -f core conftest.err conftest.$ac_objext \
27510 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027511LIBS=$ac_check_lib_save_LIBS
27512fi
cristy8b350f62009-11-15 23:12:43 +000027513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027514$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027515if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027516 passed=`expr $passed + 1`
27517else
27518 failed=`expr $failed + 1`
27519fi
27520
cristy8b350f62009-11-15 23:12:43 +000027521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027522$as_echo_n "checking if FFTW package is complete... " >&6; }
27523 if test $passed -gt 0; then
27524 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo "no -- some components failed test" >&6; }
27527 have_fftw='no (failed tests)'
27528 else
27529 FFTW_LIBS='-lfftw3'
27530 LIBS="$FFTW_LIBS $LIBS"
27531
cristy8b350f62009-11-15 23:12:43 +000027532$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027533
cristy8b350f62009-11-15 23:12:43 +000027534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo "yes" >&6; }
27536 have_fftw='yes'
27537 fi
27538 else
cristy8b350f62009-11-15 23:12:43 +000027539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027540$as_echo "no" >&6; }
27541 fi
27542fi
cristy73bd4a52010-10-05 11:24:23 +000027543 if test "$have_fftw" = 'yes'; then
27544 FFTW_DELEGATE_TRUE=
27545 FFTW_DELEGATE_FALSE='#'
27546else
27547 FFTW_DELEGATE_TRUE='#'
27548 FFTW_DELEGATE_FALSE=
27549fi
27550
cristy3ed852e2009-09-05 21:47:34 +000027551
27552
27553
27554#
27555# Check for FlashPIX delegate library.
27556#
27557
27558# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027559if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 withval=$with_fpx; with_fpx=$withval
27561else
27562 with_fpx='yes'
27563fi
27564
27565
27566if test "$with_fpx" != 'yes'; then
27567 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27568fi
27569
27570have_fpx='no'
27571FPX_LIBS=''
27572if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027574$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027576$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027578$as_echo "" >&6; }
27579 failed=0
27580 passed=0
27581 ac_ext=cpp
27582ac_cpp='$CXXCPP $CPPFLAGS'
27583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27586
27587
cristy8b350f62009-11-15 23:12:43 +000027588ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027589if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 passed=`expr $passed + 1`
27591else
27592 failed=`expr $failed + 1`
27593fi
27594
27595
cristy8b350f62009-11-15 23:12:43 +000027596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027597$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027598if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027599 $as_echo_n "(cached) " >&6
27600else
27601 ac_check_lib_save_LIBS=$LIBS
27602LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027604/* end confdefs.h. */
27605
27606/* Override any GCC internal prototype to avoid an error.
27607 Use char because int might match the return type of a GCC
27608 builtin and then its argument prototype would still apply. */
27609#ifdef __cplusplus
27610extern "C"
27611#endif
27612char FPX_OpenImageByFilename ();
27613int
27614main ()
27615{
27616return FPX_OpenImageByFilename ();
27617 ;
27618 return 0;
27619}
27620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027621if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27623else
cristy8b350f62009-11-15 23:12:43 +000027624 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027625fi
cristy8b350f62009-11-15 23:12:43 +000027626rm -f core conftest.err conftest.$ac_objext \
27627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027628LIBS=$ac_check_lib_save_LIBS
27629fi
cristy8b350f62009-11-15 23:12:43 +000027630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027631$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027632if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 passed=`expr $passed + 1`
27634else
27635 failed=`expr $failed + 1`
27636fi
27637
27638 ac_ext=c
27639ac_cpp='$CPP $CPPFLAGS'
27640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27642ac_compiler_gnu=$ac_cv_c_compiler_gnu
27643
cristy8b350f62009-11-15 23:12:43 +000027644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027645$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27646 if test $passed -gt 0; then
27647 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027649$as_echo "no -- some components failed test" >&6; }
27650 have_fpx='no (failed tests)'
27651 else
27652 FPX_LIBS='-lfpx'
27653
cristy8b350f62009-11-15 23:12:43 +000027654$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027655
cristy8b350f62009-11-15 23:12:43 +000027656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027657$as_echo "yes" >&6; }
27658 have_fpx='yes'
27659 PERLMAINCC="$CXX"
27660 fi
27661 else
cristy8b350f62009-11-15 23:12:43 +000027662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027663$as_echo "no" >&6; }
27664 fi
27665fi
cristy73bd4a52010-10-05 11:24:23 +000027666 if test "$have_fpx" = 'yes'; then
27667 FPX_DELEGATE_TRUE=
27668 FPX_DELEGATE_FALSE='#'
27669else
27670 FPX_DELEGATE_TRUE='#'
27671 FPX_DELEGATE_FALSE=
27672fi
27673
cristy3ed852e2009-09-05 21:47:34 +000027674
27675
27676
27677#
27678# Check for fontconfig delegate library.
27679#
27680
27681# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027682if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027683 withval=$with_fontconfig; with_fontconfig=$withval
27684else
27685 with_fontconfig=$have_x
27686fi
27687
27688
27689if test "$with_fontconfig" != 'yes'; then
27690 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27691fi
27692
27693have_fontconfig='no'
27694FONTCONFIG_CFLAGS=""
27695FONTCONFIG_LIBS=""
27696FONTCONFIG_PKG=""
27697if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027700
27701pkg_failed=no
27702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27703$as_echo_n "checking for FONTCONFIG... " >&6; }
27704
27705if test -n "$FONTCONFIG_CFLAGS"; then
27706 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27707 elif test -n "$PKG_CONFIG"; then
27708 if test -n "$PKG_CONFIG" && \
27709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27710 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27711 ac_status=$?
27712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27713 test $ac_status = 0; }; then
27714 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27715else
27716 pkg_failed=yes
27717fi
27718 else
27719 pkg_failed=untried
27720fi
27721if test -n "$FONTCONFIG_LIBS"; then
27722 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27723 elif test -n "$PKG_CONFIG"; then
27724 if test -n "$PKG_CONFIG" && \
27725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27726 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27727 ac_status=$?
27728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27729 test $ac_status = 0; }; then
27730 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27731else
27732 pkg_failed=yes
27733fi
27734 else
27735 pkg_failed=untried
27736fi
27737
27738
27739
27740if test $pkg_failed = yes; then
27741
27742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27743 _pkg_short_errors_supported=yes
27744else
27745 _pkg_short_errors_supported=no
27746fi
27747 if test $_pkg_short_errors_supported = yes; then
27748 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27749 else
27750 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27751 fi
27752 # Put the nasty error message in config.log where it belongs
27753 echo "$FONTCONFIG_PKG_ERRORS" >&5
27754
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27756$as_echo "no" >&6; }
27757 have_fontconfig=no
27758elif test $pkg_failed = untried; then
27759 have_fontconfig=no
27760else
27761 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27762 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27764$as_echo "yes" >&6; }
27765 have_fontconfig=yes
27766fi
cristy8b350f62009-11-15 23:12:43 +000027767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo "" >&6; }
27769fi
27770
27771if test "$have_fontconfig" = 'yes'; then
27772
cristy8b350f62009-11-15 23:12:43 +000027773$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027774
cristyd09bcf92010-03-25 03:04:45 +000027775 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027776 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027777 fi
cristy3ed852e2009-09-05 21:47:34 +000027778fi
27779
cristy73bd4a52010-10-05 11:24:23 +000027780 if test "$have_fontconfig" = 'yes'; then
27781 FONTCONFIG_DELEGATE_TRUE=
27782 FONTCONFIG_DELEGATE_FALSE='#'
27783else
27784 FONTCONFIG_DELEGATE_TRUE='#'
27785 FONTCONFIG_DELEGATE_FALSE=
27786fi
27787
cristy3ed852e2009-09-05 21:47:34 +000027788
27789
27790
27791
27792#
27793# Check for freetype delegate library.
27794#
27795
27796# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027797if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027798 withval=$with_freetype; with_freetype=$withval
27799else
27800 with_freetype='yes'
27801fi
27802
27803
27804
27805if test "$with_freetype" != 'yes'; then
27806 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27807fi
27808
27809have_freetype='no'
27810FREETYPE_LIBS=''
27811if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027813$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027815$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo "" >&6; }
27818 failed=0
27819 passed=0
cristy66291112009-10-03 22:44:36 +000027820 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027821 PERSIST_CPPFLAGS="$CPPFLAGS"
27822 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27823 :
27824 else
27825 freetype_config=''
27826 for ac_prog in freetype-config
27827do
27828 # Extract the first word of "$ac_prog", so it can be a program name with args.
27829set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027832if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 $as_echo_n "(cached) " >&6
27834else
27835 if test -n "$freetype_config"; then
27836 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27837else
27838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27839for as_dir in $PATH
27840do
27841 IFS=$as_save_IFS
27842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27845 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027847 break 2
27848 fi
27849done
cristy8b350f62009-11-15 23:12:43 +000027850 done
cristy3ed852e2009-09-05 21:47:34 +000027851IFS=$as_save_IFS
27852
27853fi
27854fi
27855freetype_config=$ac_cv_prog_freetype_config
27856if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo "$freetype_config" >&6; }
27859else
cristy8b350f62009-11-15 23:12:43 +000027860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027861$as_echo "no" >&6; }
27862fi
27863
27864
27865 test -n "$freetype_config" && break
27866done
27867 if test -n "$freetype_config"; then
27868 freetype_cflags=`$freetype_config --cflags`
27869 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027870 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027871 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27872 fi
27873 fi
27874
27875 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027877$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027878if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027879 $as_echo_n "(cached) " >&6
27880else
27881 ac_check_lib_save_LIBS=$LIBS
27882LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027884/* end confdefs.h. */
27885
27886/* Override any GCC internal prototype to avoid an error.
27887 Use char because int might match the return type of a GCC
27888 builtin and then its argument prototype would still apply. */
27889#ifdef __cplusplus
27890extern "C"
27891#endif
27892char FT_Init_FreeType ();
27893int
27894main ()
27895{
27896return FT_Init_FreeType ();
27897 ;
27898 return 0;
27899}
27900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027901if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027902 ac_cv_lib_freetype_FT_Init_FreeType=yes
27903else
cristy8b350f62009-11-15 23:12:43 +000027904 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027905fi
cristy8b350f62009-11-15 23:12:43 +000027906rm -f core conftest.err conftest.$ac_objext \
27907 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027908LIBS=$ac_check_lib_save_LIBS
27909fi
cristy8b350f62009-11-15 23:12:43 +000027910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027911$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027912if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027913 FREETYPE_LIBS='-lfreetype'
27914fi
27915
27916 if test "$FREETYPE_LIBS" != ''; then
27917 passed=`expr $passed + 1`
27918 else
27919 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027920 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027921 fi
27922 fi
27923
cristy8b350f62009-11-15 23:12:43 +000027924 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027925if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027926 FT2BUILD_H='#include <ft2build.h>'
27927else
27928 ft2build=''
27929fi
27930
27931
cristy8b350f62009-11-15 23:12:43 +000027932 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27933"
cristyda16f162011-02-19 23:52:17 +000027934if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 have_freetype_h='yes'
27936else
27937 have_freetype_h='no'
27938fi
27939
27940
27941 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27942 passed=`expr $passed + 1`
27943 else
27944 failed=`expr $failed + 1`
27945 CPPFLAGS="$PERSIST_CPPFLAGS"
27946 fi
27947
cristy8b350f62009-11-15 23:12:43 +000027948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo_n "checking if FreeType package is complete... " >&6; }
27950 if test $passed -gt 0; then
27951 if test $failed -gt 0; then
27952 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027954$as_echo "no -- some components failed test" >&6; }
27955 have_freetype='no (failed tests)'
27956 else
27957 LIBS="$FREETYPE_LIBS $LIBS"
27958
cristy8b350f62009-11-15 23:12:43 +000027959$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027960
27961 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27962
cristy8b350f62009-11-15 23:12:43 +000027963$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027964
27965 fi
cristy8b350f62009-11-15 23:12:43 +000027966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo "yes" >&6; }
27968 have_freetype='yes'
27969 fi
27970 else
cristy8b350f62009-11-15 23:12:43 +000027971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027972$as_echo "no" >&6; }
27973 fi
27974fi
cristy73bd4a52010-10-05 11:24:23 +000027975 if test "$have_freetype" = 'yes'; then
27976 FREETYPE_DELEGATE_TRUE=
27977 FREETYPE_DELEGATE_FALSE='#'
27978else
27979 FREETYPE_DELEGATE_TRUE='#'
27980 FREETYPE_DELEGATE_FALSE=
27981fi
27982
cristy3ed852e2009-09-05 21:47:34 +000027983
27984
27985
27986
27987#
27988# Check for Ghostscript library or framework.
27989#
27990# Test for iapi.h & test for gsapi_new_instance in -lgs
27991# or -framework Ghostscript
27992
27993
27994# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027995if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027996 withval=$with_gslib; with_gslib=$withval
27997else
27998 with_gslib='no'
27999fi
28000
28001
cristyb7931f12009-09-25 10:22:21 +000028002gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028003if test "$with_gslib" != 'yes'; then
28004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28005fi
28006
28007have_gslib='no'
28008GS_LIBS=''
28009if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028011$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028013$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028016 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028017 failed=0
28018 passed=0
cristy8b350f62009-11-15 23:12:43 +000028019 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 +000028020if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028021 passed=`expr $passed + 1`
28022else
28023 failed=`expr $failed + 1`
28024fi
28025
28026
cristy8b350f62009-11-15 23:12:43 +000028027 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 +000028028if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028029 passed=`expr $passed + 1`
28030else
28031 failed=`expr $failed + 1`
28032fi
28033
28034
cristy73bd4a52010-10-05 11:24:23 +000028035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28036$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028037if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028038 $as_echo_n "(cached) " >&6
28039else
28040 ac_check_framework_save_LIBS=$LIBS
28041LIBS="-framework Ghostscript $LIBS"
28042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28043/* end confdefs.h. */
28044
28045/* Override any GCC internal prototype to avoid an error.
28046 Use char because int might match the return type of a GCC
28047 builtin and then its argument prototype would still apply. */
28048#ifdef __cplusplus
28049extern "C"
28050#endif
28051char gsapi_new_instance ();
28052int
28053main ()
28054{
28055return gsapi_new_instance ();
28056 ;
28057 return 0;
28058}
28059_ACEOF
28060if ac_fn_c_try_link "$LINENO"; then :
28061 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28062else
28063 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28064fi
28065rm -f core conftest.err conftest.$ac_objext \
28066 conftest$ac_exeext conftest.$ac_ext
28067LIBS=$ac_check_framework_save_LIBS
28068fi
28069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28070$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28071if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28072 framework=`expr $framework + 1`
28073else
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028076if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028077 $as_echo_n "(cached) " >&6
28078else
28079 ac_check_lib_save_LIBS=$LIBS
28080LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028082/* end confdefs.h. */
28083
28084/* Override any GCC internal prototype to avoid an error.
28085 Use char because int might match the return type of a GCC
28086 builtin and then its argument prototype would still apply. */
28087#ifdef __cplusplus
28088extern "C"
28089#endif
28090char gsapi_new_instance ();
28091int
28092main ()
28093{
28094return gsapi_new_instance ();
28095 ;
28096 return 0;
28097}
28098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 ac_cv_lib_gs_gsapi_new_instance=yes
28101else
cristy8b350f62009-11-15 23:12:43 +000028102 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028103fi
cristy8b350f62009-11-15 23:12:43 +000028104rm -f core conftest.err conftest.$ac_objext \
28105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028106LIBS=$ac_check_lib_save_LIBS
28107fi
cristy8b350f62009-11-15 23:12:43 +000028108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028110if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 passed=`expr $passed + 1`
28112else
28113 failed=`expr $failed + 1`
28114fi
cristy73bd4a52010-10-05 11:24:23 +000028115
28116fi
cristy8b350f62009-11-15 23:12:43 +000028117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028118$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28119 if test $passed -gt 0; then
28120 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028122$as_echo "no -- some components failed test" >&6; }
28123 have_gslib='no (failed tests)'
28124 else
28125 if test $framework -gt 0; then
28126 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028127 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028129$as_echo "yes, using framework." >&6; }
28130 else
cristy8b350f62009-11-15 23:12:43 +000028131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028132$as_echo "yes, using library." >&6; }
28133 GS_LIBS='-lgs'
28134 fi
28135 LIBS="$GS_LIBS $LIBS"
28136
cristy8b350f62009-11-15 23:12:43 +000028137$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028138
28139 have_gslib='yes'
28140 fi
28141 else
cristy8b350f62009-11-15 23:12:43 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo "no" >&6; }
28144 fi
28145fi
cristy73bd4a52010-10-05 11:24:23 +000028146 if test "$have_gslib" = 'yes'; then
28147 GS_DELEGATE_TRUE=
28148 GS_DELEGATE_FALSE='#'
28149else
28150 GS_DELEGATE_TRUE='#'
28151 GS_DELEGATE_FALSE=
28152fi
28153
cristy3ed852e2009-09-05 21:47:34 +000028154
28155
28156# Set default font search path
28157
28158# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028159if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028160 withval=$with_fontpath; with_fontpath=$withval
28161else
28162 with_fontpath=''
28163fi
28164
28165
28166if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28167 with_fontpath=''
28168else
28169
28170cat >>confdefs.h <<_ACEOF
28171#define MAGICK_FONT_PATH "$with_fontpath"
28172_ACEOF
28173
28174fi
28175if test "$with_fontpath=" != ''; then
28176 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28177fi
28178
28179# Set Ghostscript font directory
28180
28181# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028182if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028183 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28184else
28185 with_gs_font_dir='default'
28186fi
28187
28188
28189if test "$with_gs_font_dir" != 'default'; then
28190 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28191fi
28192
28193
28194#
28195# Check for GVC delegate library.
28196#
28197
28198# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028199if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028200 withval=$with_gvc; with_gvc=$withval
28201else
28202 with_gvc='yes'
28203fi
28204
28205
28206if test "$with_gvc" != 'yes'; then
28207 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28208fi
28209
28210GVC_PKG=""
28211if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028213$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028214
28215pkg_failed=no
28216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28217$as_echo_n "checking for GVC... " >&6; }
28218
28219if test -n "$GVC_CFLAGS"; then
28220 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28221 elif test -n "$PKG_CONFIG"; then
28222 if test -n "$PKG_CONFIG" && \
28223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28224 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28225 ac_status=$?
28226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28227 test $ac_status = 0; }; then
28228 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28229else
28230 pkg_failed=yes
28231fi
28232 else
28233 pkg_failed=untried
28234fi
28235if test -n "$GVC_LIBS"; then
28236 pkg_cv_GVC_LIBS="$GVC_LIBS"
28237 elif test -n "$PKG_CONFIG"; then
28238 if test -n "$PKG_CONFIG" && \
28239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28240 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28241 ac_status=$?
28242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28243 test $ac_status = 0; }; then
28244 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28245else
28246 pkg_failed=yes
28247fi
28248 else
28249 pkg_failed=untried
28250fi
28251
28252
28253
28254if test $pkg_failed = yes; then
28255
28256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28257 _pkg_short_errors_supported=yes
28258else
28259 _pkg_short_errors_supported=no
28260fi
28261 if test $_pkg_short_errors_supported = yes; then
28262 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28263 else
28264 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28265 fi
28266 # Put the nasty error message in config.log where it belongs
28267 echo "$GVC_PKG_ERRORS" >&5
28268
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28270$as_echo "no" >&6; }
28271 have_gvc=no
28272elif test $pkg_failed = untried; then
28273 have_gvc=no
28274else
28275 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28276 GVC_LIBS=$pkg_cv_GVC_LIBS
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28278$as_echo "yes" >&6; }
28279 have_gvc=yes
28280fi
cristy8b350f62009-11-15 23:12:43 +000028281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo "" >&6; }
28283fi
28284
28285if test "$have_gvc" = 'yes'; then
28286
cristy8b350f62009-11-15 23:12:43 +000028287$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028288
28289 if test "$with_modules" = 'no'; then
28290 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28291 fi
28292fi
28293
cristy73bd4a52010-10-05 11:24:23 +000028294 if test "$have_gvc" = 'yes'; then
28295 GVC_DELEGATE_TRUE=
28296 GVC_DELEGATE_FALSE='#'
28297else
28298 GVC_DELEGATE_TRUE='#'
28299 GVC_DELEGATE_FALSE=
28300fi
28301
cristy3ed852e2009-09-05 21:47:34 +000028302
28303
28304
28305
28306#
28307# Check for JBIG delegate library.
28308#
28309
28310
28311# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028312if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 withval=$with_jbig; with_jbig=$withval
28314else
28315 with_jbig='yes'
28316fi
28317
28318
28319have_jbig='no'
28320JBIG_LIBS=''
28321if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028323$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028325$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028327$as_echo "" >&6; }
28328 failed=0
28329 passed=0
cristy8b350f62009-11-15 23:12:43 +000028330 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028331if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028332 passed=`expr $passed + 1`
28333else
28334 failed=`expr $failed + 1`
28335fi
28336
28337
cristy8b350f62009-11-15 23:12:43 +000028338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028339$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028340if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028341 $as_echo_n "(cached) " >&6
28342else
28343 ac_check_lib_save_LIBS=$LIBS
28344LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028346/* end confdefs.h. */
28347
28348/* Override any GCC internal prototype to avoid an error.
28349 Use char because int might match the return type of a GCC
28350 builtin and then its argument prototype would still apply. */
28351#ifdef __cplusplus
28352extern "C"
28353#endif
28354char jbg_dec_init ();
28355int
28356main ()
28357{
28358return jbg_dec_init ();
28359 ;
28360 return 0;
28361}
28362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028364 ac_cv_lib_jbig_jbg_dec_init=yes
28365else
cristy8b350f62009-11-15 23:12:43 +000028366 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028367fi
cristy8b350f62009-11-15 23:12:43 +000028368rm -f core conftest.err conftest.$ac_objext \
28369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028370LIBS=$ac_check_lib_save_LIBS
28371fi
cristy8b350f62009-11-15 23:12:43 +000028372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028373$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028374if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 passed=`expr $passed + 1`
28376else
28377 failed=`expr $failed + 1`
28378fi
28379
cristy8b350f62009-11-15 23:12:43 +000028380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028381$as_echo_n "checking if JBIG package is complete... " >&6; }
28382 if test $passed -gt 0; then
28383 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028385$as_echo "no -- some components failed test" >&6; }
28386 have_jbig='no (failed tests)'
28387 else
28388 JBIG_LIBS='-ljbig'
28389 LIBS="$JBIG_LIBS $LIBS"
28390
cristy8b350f62009-11-15 23:12:43 +000028391$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028392
cristy8b350f62009-11-15 23:12:43 +000028393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028394$as_echo "yes" >&6; }
28395 have_jbig='yes'
28396 fi
28397 else
cristy8b350f62009-11-15 23:12:43 +000028398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028399$as_echo "no" >&6; }
28400 fi
28401fi
cristy73bd4a52010-10-05 11:24:23 +000028402 if test "$have_jbig" = 'yes'; then
28403 JBIG_DELEGATE_TRUE=
28404 JBIG_DELEGATE_FALSE='#'
28405else
28406 JBIG_DELEGATE_TRUE='#'
28407 JBIG_DELEGATE_FALSE=
28408fi
28409
cristy3ed852e2009-09-05 21:47:34 +000028410
28411
28412
28413#
28414# Check for JPEG delegate library.
28415#
28416
28417# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028418if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028419 withval=$with_jpeg; with_jpeg=$withval
28420else
28421 with_jpeg='yes'
28422fi
28423
28424
28425if test "$with_jpeg" != 'yes'; then
28426 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28427fi
28428
28429have_jpeg='no'
28430JPEG_LIBS=''
28431if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028433$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028435$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028437$as_echo "" >&6; }
28438 failed=0
28439 passed=0
cristy8b350f62009-11-15 23:12:43 +000028440 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028441if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028442 passed=`expr $passed + 1`
28443else
28444 failed=`expr $failed + 1`
28445fi
28446
28447
cristy8b350f62009-11-15 23:12:43 +000028448 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028449if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028450 passed=`expr $passed + 1`
28451else
28452 failed=`expr $failed + 1`
28453fi
28454
28455
cristy8b350f62009-11-15 23:12:43 +000028456 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028457if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028458 passed=`expr $passed + 1`
28459else
28460 failed=`expr $failed + 1`
28461fi
28462
28463
cristy8b350f62009-11-15 23:12:43 +000028464 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028465if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028466 passed=`expr $passed + 1`
28467else
28468 failed=`expr $failed + 1`
28469fi
28470
28471
cristy8b350f62009-11-15 23:12:43 +000028472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028473$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028474if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028475 $as_echo_n "(cached) " >&6
28476else
28477 ac_check_lib_save_LIBS=$LIBS
28478LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028480/* end confdefs.h. */
28481
28482/* Override any GCC internal prototype to avoid an error.
28483 Use char because int might match the return type of a GCC
28484 builtin and then its argument prototype would still apply. */
28485#ifdef __cplusplus
28486extern "C"
28487#endif
28488char jpeg_read_header ();
28489int
28490main ()
28491{
28492return jpeg_read_header ();
28493 ;
28494 return 0;
28495}
28496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028498 ac_cv_lib_jpeg_jpeg_read_header=yes
28499else
cristy8b350f62009-11-15 23:12:43 +000028500 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028501fi
cristy8b350f62009-11-15 23:12:43 +000028502rm -f core conftest.err conftest.$ac_objext \
28503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028504LIBS=$ac_check_lib_save_LIBS
28505fi
cristy8b350f62009-11-15 23:12:43 +000028506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028507$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028508if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028509 passed=`expr $passed + 1`
28510else
28511 failed=`expr $failed + 1`
28512fi
28513
28514
28515# Test for compatible JPEG library
28516if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028518$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028519if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028520 $as_echo_n "(cached) " >&6
28521else
cristy8b350f62009-11-15 23:12:43 +000028522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028523/* end confdefs.h. */
28524#include <stdio.h>
28525#include <stdlib.h>
28526#include <jpeglib.h>
28527
28528int
28529main ()
28530{
28531
28532#if JPEG_LIB_VERSION < 62
28533#error IJG JPEG library must be version 6b or newer!
28534#endif
28535return 0;
28536
28537 ;
28538 return 0;
28539}
28540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028541if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28543else
cristy8b350f62009-11-15 23:12:43 +000028544 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028545fi
cristy3ed852e2009-09-05 21:47:34 +000028546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28547fi
cristy8b350f62009-11-15 23:12:43 +000028548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28550fi
cristy8b350f62009-11-15 23:12:43 +000028551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028552$as_echo_n "checking if JPEG package is complete... " >&6; }
28553 if test $passed -gt 0; then
28554 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028556$as_echo "no -- some components failed test" >&6; }
28557 have_jpeg='no (failed tests)'
28558 else
28559 JPEG_LIBS='-ljpeg'
28560 LIBS="$JPEG_LIBS $LIBS"
28561
cristy8b350f62009-11-15 23:12:43 +000028562$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028563
cristy8b350f62009-11-15 23:12:43 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028565$as_echo "yes" >&6; }
28566 have_jpeg='yes'
28567 fi
28568 else
cristy8b350f62009-11-15 23:12:43 +000028569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028570$as_echo "no" >&6; }
28571 fi
28572fi
cristy73bd4a52010-10-05 11:24:23 +000028573 if test "$have_jpeg" = 'yes'; then
28574 JPEG_DELEGATE_TRUE=
28575 JPEG_DELEGATE_FALSE='#'
28576else
28577 JPEG_DELEGATE_TRUE='#'
28578 JPEG_DELEGATE_FALSE=
28579fi
28580
cristy3ed852e2009-09-05 21:47:34 +000028581
28582
28583
28584#
28585# Check for JPEG Version 2 delegate library.
28586#
28587
28588# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028589if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028590 withval=$with_jp2; with_jp2=$withval
28591else
28592 with_jp2='yes'
28593fi
28594
28595
28596if test "$with_jp2" != 'yes'; then
28597 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28598fi
28599
28600have_jp2='no'
28601JP2_LIBS=''
28602if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028604$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028606$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028608$as_echo "" >&6; }
28609 failed=0
28610 passed=0
cristy8b350f62009-11-15 23:12:43 +000028611 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 +000028612if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028613 passed=`expr $passed + 1`
28614else
28615 failed=`expr $failed + 1`
28616fi
28617
28618
cristy8b350f62009-11-15 23:12:43 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028620$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028621if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028622 $as_echo_n "(cached) " >&6
28623else
28624 ac_check_lib_save_LIBS=$LIBS
28625LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028627/* end confdefs.h. */
28628
28629/* Override any GCC internal prototype to avoid an error.
28630 Use char because int might match the return type of a GCC
28631 builtin and then its argument prototype would still apply. */
28632#ifdef __cplusplus
28633extern "C"
28634#endif
28635char jas_stream_fopen ();
28636int
28637main ()
28638{
28639return jas_stream_fopen ();
28640 ;
28641 return 0;
28642}
28643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028645 ac_cv_lib_jasper_jas_stream_fopen=yes
28646else
cristy8b350f62009-11-15 23:12:43 +000028647 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028648fi
cristy8b350f62009-11-15 23:12:43 +000028649rm -f core conftest.err conftest.$ac_objext \
28650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028651LIBS=$ac_check_lib_save_LIBS
28652fi
cristy8b350f62009-11-15 23:12:43 +000028653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028654$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028655if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028656 passed=`expr $passed + 1`
28657else
28658 failed=`expr $failed + 1`
28659fi
28660
cristy8b350f62009-11-15 23:12:43 +000028661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028662$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28663 if test $passed -gt 0; then
28664 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028666$as_echo "no -- some components failed test" >&6; }
28667 have_jp2='no (failed tests)'
28668 else
28669 JP2_LIBS='-ljasper'
28670 LIBS="$JP2_LIBS $LIBS"
28671
cristy8b350f62009-11-15 23:12:43 +000028672$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028673
cristy8b350f62009-11-15 23:12:43 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028675$as_echo "yes" >&6; }
28676 have_jp2='yes'
28677 fi
28678 else
cristy8b350f62009-11-15 23:12:43 +000028679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028680$as_echo "no" >&6; }
28681 fi
28682fi
cristy73bd4a52010-10-05 11:24:23 +000028683 if test "$have_jp2" = 'yes'; then
28684 JP2_DELEGATE_TRUE=
28685 JP2_DELEGATE_FALSE='#'
28686else
28687 JP2_DELEGATE_TRUE='#'
28688 JP2_DELEGATE_FALSE=
28689fi
28690
cristy3ed852e2009-09-05 21:47:34 +000028691
28692
28693
28694#
28695# Check for LCMS delegate library.
28696#
cristy71203402010-06-18 13:12:03 +000028697# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028698
28699# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028700if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028701 withval=$with_lcms; with_lcms=$withval
28702else
28703 with_lcms='yes'
28704fi
28705
cristy71203402010-06-18 13:12:03 +000028706if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028707 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28708fi
28709
cristy71203402010-06-18 13:12:03 +000028710# Disable LCMS2.
28711
28712# Check whether --with-lcms2 was given.
28713if test "${with_lcms2+set}" = set; then :
28714 withval=$with_lcms2; with_lcms2=$withval
28715else
28716 with_lcms2='yes'
28717fi
28718
28719if test "$with_lcms2" != 'yes' ; then
28720 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28721fi
28722
28723have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028724LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028725if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028727$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28729$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028731$as_echo "" >&6; }
28732 failed=0
28733 passed=0
28734 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028735
28736 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028737 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028738if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028739 have_lcms_header='yes'
28740fi
28741
28742
28743 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028744
28745$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28746
cristy71203402010-06-18 13:12:03 +000028747 passed=`expr $passed + 1`
28748 fi
28749
28750 # Check for <lcms2/lcms2.h)
28751 if test "$have_lcms_header" != 'yes'; then
28752 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 +000028753if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028754 have_lcms_header='yes'
28755fi
28756
28757
cristy71203402010-06-18 13:12:03 +000028758 if test "$have_lcms_header" = 'yes'; then
28759 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028760
cristy71203402010-06-18 13:12:03 +000028761$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028762
cristy71203402010-06-18 13:12:03 +000028763 fi
cristyd09bcf92010-03-25 03:04:45 +000028764 fi
cristy71203402010-06-18 13:12:03 +000028765
28766 # Failed to find lcms header?
28767 if test "$have_lcms_header" != 'yes'; then
28768 failed=`expr $failed + 1`
28769 fi
28770
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28772$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028773if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028774 $as_echo_n "(cached) " >&6
28775else
28776 ac_check_lib_save_LIBS=$LIBS
28777LIBS="-llcms2 $LIBS"
28778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28779/* end confdefs.h. */
28780
28781/* Override any GCC internal prototype to avoid an error.
28782 Use char because int might match the return type of a GCC
28783 builtin and then its argument prototype would still apply. */
28784#ifdef __cplusplus
28785extern "C"
28786#endif
cristy71203402010-06-18 13:12:03 +000028787char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028788int
28789main ()
28790{
cristy71203402010-06-18 13:12:03 +000028791return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028792 ;
28793 return 0;
28794}
28795_ACEOF
28796if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028797 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028798else
cristy71203402010-06-18 13:12:03 +000028799 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028800fi
28801rm -f core conftest.err conftest.$ac_objext \
28802 conftest$ac_exeext conftest.$ac_ext
28803LIBS=$ac_check_lib_save_LIBS
28804fi
cristy71203402010-06-18 13:12:03 +000028805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28806$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028807if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028808 passed=`expr $passed + 1`
28809else
28810 failed=`expr $failed + 1`
28811fi
28812
cristy71203402010-06-18 13:12:03 +000028813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28814$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028815 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028816 if test $failed -gt 0; then
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028818$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028819 have_lcms2='no (failed tests)'
28820 else
28821 LCMS_LIBS='-llcms2'
28822 LIBS="$LCMS_LIBS $LIBS"
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028824$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028825 have_lcms2='yes'
28826 fi
cristyd09bcf92010-03-25 03:04:45 +000028827 else
cristy71203402010-06-18 13:12:03 +000028828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028829$as_echo "no" >&6; }
28830 fi
28831fi
28832
cristy71203402010-06-18 13:12:03 +000028833#
28834# Check for LCMS v1 (1.11 or later)
28835#
28836if test $have_lcms2 = 'yes'; then
28837 with_lcms='no'
28838fi
28839
28840have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028841if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28843$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28845$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28847$as_echo "" >&6; }
28848 failed=0
28849 passed=0
28850 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028851
28852 # Check for <lcms.h>
28853 if test "$have_lcms_header" != 'yes'; then
28854 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028855if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028856 have_lcms_header='yes'
28857fi
28858
28859
cristy71203402010-06-18 13:12:03 +000028860 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028861 passed=`expr $passed + 1`
28862
cristy8b350f62009-11-15 23:12:43 +000028863$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028864
cristy71203402010-06-18 13:12:03 +000028865 fi
28866 fi
28867
28868 # Check for <lcms/lcms.h>
28869 if test "$have_lcms_header" != 'yes'; then
28870 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 +000028871if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028872 have_lcms_header='yes'
28873fi
28874
28875
cristy71203402010-06-18 13:12:03 +000028876 if test "$have_lcms_header" = 'yes'; then
28877 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028878
cristy8b350f62009-11-15 23:12:43 +000028879$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028880
cristy71203402010-06-18 13:12:03 +000028881 fi
cristy3ed852e2009-09-05 21:47:34 +000028882 fi
cristy71203402010-06-18 13:12:03 +000028883
28884 # Failed to find lcms header?
28885 if test "$have_lcms_header" != 'yes'; then
28886 failed=`expr $failed + 1`
28887 fi
28888
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28890$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028891if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028892 $as_echo_n "(cached) " >&6
28893else
28894 ac_check_lib_save_LIBS=$LIBS
28895LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028897/* end confdefs.h. */
28898
28899/* Override any GCC internal prototype to avoid an error.
28900 Use char because int might match the return type of a GCC
28901 builtin and then its argument prototype would still apply. */
28902#ifdef __cplusplus
28903extern "C"
28904#endif
cristy71203402010-06-18 13:12:03 +000028905char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028906int
28907main ()
28908{
cristy71203402010-06-18 13:12:03 +000028909return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028910 ;
28911 return 0;
28912}
28913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028914if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028915 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028916else
cristy71203402010-06-18 13:12:03 +000028917 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028918fi
cristy8b350f62009-11-15 23:12:43 +000028919rm -f core conftest.err conftest.$ac_objext \
28920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028921LIBS=$ac_check_lib_save_LIBS
28922fi
cristy71203402010-06-18 13:12:03 +000028923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28924$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028925if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028926 passed=`expr $passed + 1`
28927else
28928 failed=`expr $failed + 1`
28929fi
28930
cristy8b350f62009-11-15 23:12:43 +000028931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028932$as_echo_n "checking if LCMS package is complete... " >&6; }
28933 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028934 if test $failed -gt 0; then
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028936$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028937 have_lcms='no (failed tests)'
28938 else
28939 LCMS_LIBS='-llcms'
28940 LIBS="$LCMS_LIBS $LIBS"
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028942$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028943 have_lcms='yes'
28944 fi
cristy3ed852e2009-09-05 21:47:34 +000028945 else
cristy71203402010-06-18 13:12:03 +000028946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028947$as_echo "no" >&6; }
28948 fi
28949fi
cristy71203402010-06-18 13:12:03 +000028950
cristy73bd4a52010-10-05 11:24:23 +000028951 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28952 LCMS_DELEGATE_TRUE=
28953 LCMS_DELEGATE_FALSE='#'
28954else
28955 LCMS_DELEGATE_TRUE='#'
28956 LCMS_DELEGATE_FALSE=
28957fi
28958
cristy71203402010-06-18 13:12:03 +000028959if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28960
28961$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28962
28963fi
28964
cristy3ed852e2009-09-05 21:47:34 +000028965
28966
28967
28968#
28969# Check for the LQR (Liquid Rescale) delegate library.
28970#
28971
28972# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028973if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028974 withval=$with_lqr; with_lqr=$withval
28975else
28976 with_lqr='yes'
28977fi
28978
28979
28980if test "$with_lqr" != 'yes'; then
28981 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28982fi
28983
28984have_lqr='no'
28985LQR_CFLAGS=""
28986LQR_LIBS=""
28987LQR_PKG=""
28988if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028990$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028991
28992pkg_failed=no
28993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28994$as_echo_n "checking for LQR... " >&6; }
28995
28996if test -n "$LQR_CFLAGS"; then
28997 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28998 elif test -n "$PKG_CONFIG"; then
28999 if test -n "$PKG_CONFIG" && \
29000 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29001 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29002 ac_status=$?
29003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29004 test $ac_status = 0; }; then
29005 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29006else
29007 pkg_failed=yes
29008fi
29009 else
29010 pkg_failed=untried
29011fi
29012if test -n "$LQR_LIBS"; then
29013 pkg_cv_LQR_LIBS="$LQR_LIBS"
29014 elif test -n "$PKG_CONFIG"; then
29015 if test -n "$PKG_CONFIG" && \
29016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29017 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29018 ac_status=$?
29019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29020 test $ac_status = 0; }; then
29021 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29022else
29023 pkg_failed=yes
29024fi
29025 else
29026 pkg_failed=untried
29027fi
29028
29029
29030
29031if test $pkg_failed = yes; then
29032
29033if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29034 _pkg_short_errors_supported=yes
29035else
29036 _pkg_short_errors_supported=no
29037fi
29038 if test $_pkg_short_errors_supported = yes; then
29039 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29040 else
29041 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29042 fi
29043 # Put the nasty error message in config.log where it belongs
29044 echo "$LQR_PKG_ERRORS" >&5
29045
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29047$as_echo "no" >&6; }
29048 have_lqr=no
29049elif test $pkg_failed = untried; then
29050 have_lqr=no
29051else
29052 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29053 LQR_LIBS=$pkg_cv_LQR_LIBS
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29055$as_echo "yes" >&6; }
29056 have_lqr=yes
29057fi
cristy8b350f62009-11-15 23:12:43 +000029058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029059$as_echo "" >&6; }
29060fi
29061
29062if test "$have_lqr" = 'yes'; then
29063
cristy8b350f62009-11-15 23:12:43 +000029064$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029065
29066 CFLAGS="$LQR_CFLAGS $CFLAGS"
29067fi
29068
cristy73bd4a52010-10-05 11:24:23 +000029069 if test "$have_lqr" = 'yes'; then
29070 LQR_DELEGATE_TRUE=
29071 LQR_DELEGATE_FALSE='#'
29072else
29073 LQR_DELEGATE_TRUE='#'
29074 LQR_DELEGATE_FALSE=
29075fi
29076
cristy3ed852e2009-09-05 21:47:34 +000029077
29078
29079
29080
cristyfbb0ef02010-12-19 02:32:11 +000029081# Disable LZMA (lzma library)
29082
29083# Check whether --with-lzma was given.
29084if test "${with_lzma+set}" = set; then :
29085 withval=$with_lzma; with_lzma=$withval
29086else
29087 with_lzma='yes'
29088fi
29089
29090if test "$with_lzma" != 'yes' ; then
29091 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29092fi
29093
29094#
29095# Check for LZMA
29096#
29097have_lzma='no'
29098LZMA_LIBS=''
29099if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29101$as_echo "-------------------------------------------------------------" >&6; }
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29103$as_echo_n "checking for LZMA... " >&6; }
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29105$as_echo "" >&6; }
29106 failed=0
29107 passed=0
29108 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029109if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029110 passed=`expr $passed + 1`
29111else
29112 failed=`expr $failed + 1`
29113fi
29114
29115
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29117$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029118if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029119 $as_echo_n "(cached) " >&6
29120else
29121 ac_check_lib_save_LIBS=$LIBS
29122LIBS="-llzma $LIBS"
29123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29124/* end confdefs.h. */
29125
29126/* Override any GCC internal prototype to avoid an error.
29127 Use char because int might match the return type of a GCC
29128 builtin and then its argument prototype would still apply. */
29129#ifdef __cplusplus
29130extern "C"
29131#endif
29132char lzma_code ();
29133int
29134main ()
29135{
29136return lzma_code ();
29137 ;
29138 return 0;
29139}
29140_ACEOF
29141if ac_fn_c_try_link "$LINENO"; then :
29142 ac_cv_lib_lzma_lzma_code=yes
29143else
29144 ac_cv_lib_lzma_lzma_code=no
29145fi
29146rm -f core conftest.err conftest.$ac_objext \
29147 conftest$ac_exeext conftest.$ac_ext
29148LIBS=$ac_check_lib_save_LIBS
29149fi
29150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29151$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029152if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029153 passed=`expr $passed + 1`
29154else
29155 failed=`expr $failed + 1`
29156fi
29157
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29159$as_echo_n "checking if LZMA package is complete... " >&6; }
29160 if test $passed -gt 0; then
29161 if test $failed -gt 0; then
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29163$as_echo "no -- some components failed test" >&6; }
29164 have_lzma='no (failed tests)'
29165 else
29166 LZMA_LIBS='-llzma'
29167 LIBS="$LZMA_LIBS $LIBS"
29168
29169$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29170
29171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29172$as_echo "yes" >&6; }
29173 have_lzma='yes'
29174 fi
29175 else
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29177$as_echo "no" >&6; }
29178 fi
29179fi
29180 if test "$have_lzma" = 'yes'; then
29181 LZMA_DELEGATE_TRUE=
29182 LZMA_DELEGATE_FALSE='#'
29183else
29184 LZMA_DELEGATE_TRUE='#'
29185 LZMA_DELEGATE_FALSE=
29186fi
29187
29188
29189
29190
cristy3ed852e2009-09-05 21:47:34 +000029191#
29192# Check for the OpenEXR delegate library.
29193#
29194
29195# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029196if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029197 withval=$with_openexr; with_openexr=$withval
29198else
29199 with_openexr='yes'
29200fi
29201
29202
29203if test "$with_openexr" != 'yes'; then
29204 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29205fi
29206
29207have_openexr='no'
29208OPENEXR_CFLAGS=""
29209OPENEXR_LIBS=""
29210OPENEXR_PKG=""
29211if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029213$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029214
29215pkg_failed=no
29216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29217$as_echo_n "checking for OPENEXR... " >&6; }
29218
29219if test -n "$OPENEXR_CFLAGS"; then
29220 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29221 elif test -n "$PKG_CONFIG"; then
29222 if test -n "$PKG_CONFIG" && \
29223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29224 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29225 ac_status=$?
29226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29227 test $ac_status = 0; }; then
29228 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29229else
29230 pkg_failed=yes
29231fi
29232 else
29233 pkg_failed=untried
29234fi
29235if test -n "$OPENEXR_LIBS"; then
29236 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29237 elif test -n "$PKG_CONFIG"; then
29238 if test -n "$PKG_CONFIG" && \
29239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29240 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29241 ac_status=$?
29242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29243 test $ac_status = 0; }; then
29244 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29245else
29246 pkg_failed=yes
29247fi
29248 else
29249 pkg_failed=untried
29250fi
29251
29252
29253
29254if test $pkg_failed = yes; then
29255
29256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29257 _pkg_short_errors_supported=yes
29258else
29259 _pkg_short_errors_supported=no
29260fi
29261 if test $_pkg_short_errors_supported = yes; then
29262 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29263 else
29264 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29265 fi
29266 # Put the nasty error message in config.log where it belongs
29267 echo "$OPENEXR_PKG_ERRORS" >&5
29268
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29270$as_echo "no" >&6; }
29271 have_openexr=no
29272elif test $pkg_failed = untried; then
29273 have_openexr=no
29274else
29275 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29276 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29278$as_echo "yes" >&6; }
29279 have_openexr=yes
29280fi
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo "" >&6; }
29283fi
29284
29285if test "$have_openexr" = 'yes'; then
29286
cristy8b350f62009-11-15 23:12:43 +000029287$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029288
29289 if test "$with_modules" = 'no'; then
29290 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29291 fi
29292fi
29293
cristy73bd4a52010-10-05 11:24:23 +000029294 if test "$have_openexr" = 'yes'; then
29295 OPENEXR_DELEGATE_TRUE=
29296 OPENEXR_DELEGATE_FALSE='#'
29297else
29298 OPENEXR_DELEGATE_TRUE='#'
29299 OPENEXR_DELEGATE_FALSE=
29300fi
29301
cristy3ed852e2009-09-05 21:47:34 +000029302
29303
29304
29305
29306#
29307# Check for PNG delegate library.
29308#
29309
29310# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029311if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029312 withval=$with_png; with_png=$withval
29313else
29314 with_png='yes'
29315fi
29316
29317
29318if test "$with_png" != 'yes'; then
29319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29320fi
29321
29322have_png='no'
29323PNG_LIBS=''
29324if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029326$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029328$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029330$as_echo "" >&6; }
29331 failed=0
29332 passed=0
cristy8b350f62009-11-15 23:12:43 +000029333 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029334if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029335 passed=`expr $passed + 1`
29336else
29337 failed=`expr $failed + 1`
29338fi
29339
29340
cristy8b350f62009-11-15 23:12:43 +000029341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029342$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029343if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029344 $as_echo_n "(cached) " >&6
29345else
29346 ac_check_lib_save_LIBS=$LIBS
29347LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029349/* end confdefs.h. */
29350
29351/* Override any GCC internal prototype to avoid an error.
29352 Use char because int might match the return type of a GCC
29353 builtin and then its argument prototype would still apply. */
29354#ifdef __cplusplus
29355extern "C"
29356#endif
29357char png_get_io_ptr ();
29358int
29359main ()
29360{
29361return png_get_io_ptr ();
29362 ;
29363 return 0;
29364}
29365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029367 ac_cv_lib_png_png_get_io_ptr=yes
29368else
cristy8b350f62009-11-15 23:12:43 +000029369 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029370fi
cristy8b350f62009-11-15 23:12:43 +000029371rm -f core conftest.err conftest.$ac_objext \
29372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029373LIBS=$ac_check_lib_save_LIBS
29374fi
cristy8b350f62009-11-15 23:12:43 +000029375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029377if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029378 passed=`expr $passed + 1`
29379else
29380 failed=`expr $failed + 1`
29381fi
29382
cristy8b350f62009-11-15 23:12:43 +000029383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029384$as_echo_n "checking if PNG package is complete... " >&6; }
29385 if test $passed -gt 0; then
29386 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029388$as_echo "no -- some components failed test" >&6; }
29389 have_png='no (failed tests)'
29390 else
29391 PNG_LIBS='-lpng'
29392 LIBS="$PNG_LIBS $LIBS"
29393
cristy8b350f62009-11-15 23:12:43 +000029394$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029395
cristy8b350f62009-11-15 23:12:43 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029397$as_echo "yes" >&6; }
29398 have_png='yes'
29399 fi
29400 else
cristy8b350f62009-11-15 23:12:43 +000029401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029402$as_echo "no" >&6; }
29403 fi
29404fi
cristy73bd4a52010-10-05 11:24:23 +000029405 if test "$have_png" = 'yes'; then
29406 PNG_DELEGATE_TRUE=
29407 PNG_DELEGATE_FALSE='#'
29408else
29409 PNG_DELEGATE_TRUE='#'
29410 PNG_DELEGATE_FALSE=
29411fi
29412
cristy3ed852e2009-09-05 21:47:34 +000029413
29414
29415
29416#
29417# Check for RSVG delegate library.
29418#
29419
29420# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029421if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029422 withval=$with_rsvg; with_rsvg=$withval
29423else
29424 with_rsvg=$have_x
29425fi
29426
29427
29428if test "$with_rsvg" != 'yes'; then
29429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29430fi
29431
29432have_rsvg='no'
29433have_cairo='no'
29434RSVG_CFLAGS=""
29435RSVG_LIBS=""
29436RSVG_PKG=""
29437if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029439$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029440
29441pkg_failed=no
29442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29443$as_echo_n "checking for RSVG... " >&6; }
29444
29445if test -n "$RSVG_CFLAGS"; then
29446 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29447 elif test -n "$PKG_CONFIG"; then
29448 if test -n "$PKG_CONFIG" && \
29449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29450 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29451 ac_status=$?
29452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29453 test $ac_status = 0; }; then
29454 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29455else
29456 pkg_failed=yes
29457fi
29458 else
29459 pkg_failed=untried
29460fi
29461if test -n "$RSVG_LIBS"; then
29462 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29463 elif test -n "$PKG_CONFIG"; then
29464 if test -n "$PKG_CONFIG" && \
29465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29466 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29467 ac_status=$?
29468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29469 test $ac_status = 0; }; then
29470 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29471else
29472 pkg_failed=yes
29473fi
29474 else
29475 pkg_failed=untried
29476fi
29477
29478
29479
29480if test $pkg_failed = yes; then
29481
29482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29483 _pkg_short_errors_supported=yes
29484else
29485 _pkg_short_errors_supported=no
29486fi
29487 if test $_pkg_short_errors_supported = yes; then
29488 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29489 else
29490 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29491 fi
29492 # Put the nasty error message in config.log where it belongs
29493 echo "$RSVG_PKG_ERRORS" >&5
29494
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29496$as_echo "no" >&6; }
29497 have_rsvg=no
29498elif test $pkg_failed = untried; then
29499 have_rsvg=no
29500else
29501 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29502 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29504$as_echo "yes" >&6; }
29505 have_rsvg=yes
29506fi
cristy8b350f62009-11-15 23:12:43 +000029507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029508$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029509
29510pkg_failed=no
29511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29512$as_echo_n "checking for CAIRO_SVG... " >&6; }
29513
29514if test -n "$CAIRO_SVG_CFLAGS"; then
29515 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29516 elif test -n "$PKG_CONFIG"; then
29517 if test -n "$PKG_CONFIG" && \
29518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29519 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29520 ac_status=$?
29521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29522 test $ac_status = 0; }; then
29523 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29524else
29525 pkg_failed=yes
29526fi
29527 else
29528 pkg_failed=untried
29529fi
29530if test -n "$CAIRO_SVG_LIBS"; then
29531 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29532 elif test -n "$PKG_CONFIG"; then
29533 if test -n "$PKG_CONFIG" && \
29534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29535 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29536 ac_status=$?
29537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29538 test $ac_status = 0; }; then
29539 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29540else
29541 pkg_failed=yes
29542fi
29543 else
29544 pkg_failed=untried
29545fi
29546
29547
29548
29549if test $pkg_failed = yes; then
29550
29551if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29552 _pkg_short_errors_supported=yes
29553else
29554 _pkg_short_errors_supported=no
29555fi
29556 if test $_pkg_short_errors_supported = yes; then
29557 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29558 else
29559 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29560 fi
29561 # Put the nasty error message in config.log where it belongs
29562 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29563
29564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29565$as_echo "no" >&6; }
29566 have_cairo=no
29567elif test $pkg_failed = untried; then
29568 have_cairo=no
29569else
29570 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29571 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29573$as_echo "yes" >&6; }
29574 have_cairo=yes
29575fi
cristy8b350f62009-11-15 23:12:43 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029577$as_echo "" >&6; }
29578fi
29579
29580if test "$have_rsvg" = 'yes'; then
29581
cristy8b350f62009-11-15 23:12:43 +000029582$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029583
29584 if test "$with_modules" = 'no'; then
29585 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29586 fi
29587fi
29588
29589if test "$have_cairo" = 'yes'; then
29590
cristy8b350f62009-11-15 23:12:43 +000029591$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029592
29593 if test "$with_modules" = 'no'; then
29594 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29595 fi
29596fi
29597
cristy73bd4a52010-10-05 11:24:23 +000029598 if test "$have_rsvg" = 'yes'; then
29599 RSVG_DELEGATE_TRUE=
29600 RSVG_DELEGATE_FALSE='#'
29601else
29602 RSVG_DELEGATE_TRUE='#'
29603 RSVG_DELEGATE_FALSE=
29604fi
29605
29606 if test "$have_cairo" = 'yes'; then
29607 CAIRO_DELEGATE_TRUE=
29608 CAIRO_DELEGATE_FALSE='#'
29609else
29610 CAIRO_DELEGATE_TRUE='#'
29611 CAIRO_DELEGATE_FALSE=
29612fi
29613
cristy3ed852e2009-09-05 21:47:34 +000029614
29615
29616
29617
29618#
29619# Check for TIFF delegate library.
29620#
29621
29622# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029623if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029624 withval=$with_tiff; with_tiff=$withval
29625else
29626 with_tiff='yes'
29627fi
29628
29629
29630if test "$with_tiff" != 'yes'; then
29631 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29632fi
29633
29634have_tiff='no'
29635TIFF_LIBS=''
29636if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029638$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029640$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029642$as_echo "" >&6; }
29643 failed=0
29644 passed=0
cristy8b350f62009-11-15 23:12:43 +000029645 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029646if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029647 passed=`expr $passed + 1`
29648else
29649 failed=`expr $failed + 1`
29650fi
29651
29652
cristy8b350f62009-11-15 23:12:43 +000029653 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029654if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029655 passed=`expr $passed + 1`
29656else
29657 failed=`expr $failed + 1`
29658fi
29659
29660
cristy8b350f62009-11-15 23:12:43 +000029661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029662$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029663if ${ac_cv_lib_tiff_TIFFOpen+:} 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 TIFFOpen ();
29678int
29679main ()
29680{
29681return TIFFOpen ();
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_TIFFOpen=yes
29688else
cristy8b350f62009-11-15 23:12:43 +000029689 ac_cv_lib_tiff_TIFFOpen=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_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029696$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029697if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029698 passed=`expr $passed + 1`
29699else
29700 failed=`expr $failed + 1`
29701fi
29702
cristy8b350f62009-11-15 23:12:43 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029705if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029706 $as_echo_n "(cached) " >&6
29707else
29708 ac_check_lib_save_LIBS=$LIBS
29709LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029711/* 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 TIFFClientOpen ();
29720int
29721main ()
29722{
29723return TIFFClientOpen ();
29724 ;
29725 return 0;
29726}
29727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029729 ac_cv_lib_tiff_TIFFClientOpen=yes
29730else
cristy8b350f62009-11-15 23:12:43 +000029731 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029732fi
cristy8b350f62009-11-15 23:12:43 +000029733rm -f core conftest.err conftest.$ac_objext \
29734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029735LIBS=$ac_check_lib_save_LIBS
29736fi
cristy8b350f62009-11-15 23:12:43 +000029737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029738$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029739if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029740 passed=`expr $passed + 1`
29741else
29742 failed=`expr $failed + 1`
29743fi
29744
cristyb97f1002010-07-26 14:02:57 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29746$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029747if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029748 $as_echo_n "(cached) " >&6
29749else
29750 ac_check_lib_save_LIBS=$LIBS
29751LIBS="-ltiff $LIBS"
29752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29753/* 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 TIFFIsBigEndian ();
29762int
29763main ()
29764{
29765return TIFFIsBigEndian ();
29766 ;
29767 return 0;
29768}
29769_ACEOF
29770if ac_fn_c_try_link "$LINENO"; then :
29771 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29772else
29773 ac_cv_lib_tiff_TIFFIsBigEndian=no
29774fi
29775rm -f core conftest.err conftest.$ac_objext \
29776 conftest$ac_exeext conftest.$ac_ext
29777LIBS=$ac_check_lib_save_LIBS
29778fi
29779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29780$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029781if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +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 TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029788$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029789if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} 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 TIFFIsByteSwapped ();
29804int
29805main ()
29806{
29807return TIFFIsByteSwapped ();
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_TIFFIsByteSwapped=yes
29814else
cristy8b350f62009-11-15 23:12:43 +000029815 ac_cv_lib_tiff_TIFFIsByteSwapped=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_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029823if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = 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 TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029830$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029831if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} 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 TIFFReadRGBATile ();
29846int
29847main ()
29848{
29849return TIFFReadRGBATile ();
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_TIFFReadRGBATile=yes
29856else
cristy8b350f62009-11-15 23:12:43 +000029857 ac_cv_lib_tiff_TIFFReadRGBATile=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_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029865if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = 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 for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029872$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029873if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029874 $as_echo_n "(cached) " >&6
29875else
29876 ac_check_lib_save_LIBS=$LIBS
29877LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029879/* end confdefs.h. */
29880
29881/* Override any GCC internal prototype to avoid an error.
29882 Use char because int might match the return type of a GCC
29883 builtin and then its argument prototype would still apply. */
29884#ifdef __cplusplus
29885extern "C"
29886#endif
29887char TIFFReadRGBAStrip ();
29888int
29889main ()
29890{
29891return TIFFReadRGBAStrip ();
29892 ;
29893 return 0;
29894}
29895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029897 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29898else
cristy8b350f62009-11-15 23:12:43 +000029899 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029900fi
cristy8b350f62009-11-15 23:12:43 +000029901rm -f core conftest.err conftest.$ac_objext \
29902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029903LIBS=$ac_check_lib_save_LIBS
29904fi
cristy8b350f62009-11-15 23:12:43 +000029905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029906$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029907if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029908 passed=`expr $passed + 1`
29909else
29910 failed=`expr $failed + 1`
29911fi
29912
cristy8b350f62009-11-15 23:12:43 +000029913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029914$as_echo_n "checking if TIFF package is complete... " >&6; }
29915 if test $passed -gt 0; then
29916 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029918$as_echo "no -- some components failed test" >&6; }
29919 have_tiff='no (failed tests)'
29920 else
29921 TIFF_LIBS='-ltiff'
29922 LIBS="$TIFF_LIBS $LIBS"
29923
cristy8b350f62009-11-15 23:12:43 +000029924$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029925
cristy8b350f62009-11-15 23:12:43 +000029926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029927$as_echo "yes" >&6; }
29928 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029929 for ac_header in tiffconf.h
29930do :
29931 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029932if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029933 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029934#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029935_ACEOF
29936
29937fi
29938
29939done
29940
cristy8b350f62009-11-15 23:12:43 +000029941 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029942 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29943 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029944do :
29945 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29946ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029947if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029948 cat >>confdefs.h <<_ACEOF
29949#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29950_ACEOF
29951
29952fi
29953done
29954
29955 fi
29956 else
cristy8b350f62009-11-15 23:12:43 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029958$as_echo "no" >&6; }
29959 fi
29960fi
cristy73bd4a52010-10-05 11:24:23 +000029961 if test "$have_tiff" = 'yes'; then
29962 TIFF_DELEGATE_TRUE=
29963 TIFF_DELEGATE_FALSE='#'
29964else
29965 TIFF_DELEGATE_TRUE='#'
29966 TIFF_DELEGATE_FALSE=
29967fi
29968
cristy3ed852e2009-09-05 21:47:34 +000029969
29970
29971
29972#
cristyb1860752011-03-14 00:27:46 +000029973# Check for WEBP delegate library.
29974#
29975
29976# Check whether --with-webp was given.
29977if test "${with_webp+set}" = set; then :
29978 withval=$with_webp; with_webp=$withval
29979else
29980 with_webp='yes'
29981fi
29982
29983
29984if test "$with_webp" != 'yes'; then
29985 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
29986fi
29987
29988have_webp='no'
29989WEBP_LIBS=''
29990if test "$with_webp" != 'no'; then
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29992$as_echo "-------------------------------------------------------------" >&6; }
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
29994$as_echo_n "checking for WEBP... " >&6; }
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29996$as_echo "" >&6; }
29997 failed=0
29998 passed=0
29999 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
30000if test "x$ac_cv_header_webp_decode_h" = xyes; then :
30001 passed=`expr $passed + 1`
30002else
30003 failed=`expr $failed + 1`
30004fi
30005
30006
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
30008$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
30009if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
30010 $as_echo_n "(cached) " >&6
30011else
30012 ac_check_lib_save_LIBS=$LIBS
30013LIBS="-lwebp $LIBS"
30014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30015/* end confdefs.h. */
30016
30017/* Override any GCC internal prototype to avoid an error.
30018 Use char because int might match the return type of a GCC
30019 builtin and then its argument prototype would still apply. */
30020#ifdef __cplusplus
30021extern "C"
30022#endif
30023char WebPDecodeRGB ();
30024int
30025main ()
30026{
30027return WebPDecodeRGB ();
30028 ;
30029 return 0;
30030}
30031_ACEOF
30032if ac_fn_c_try_link "$LINENO"; then :
30033 ac_cv_lib_webp_WebPDecodeRGB=yes
30034else
30035 ac_cv_lib_webp_WebPDecodeRGB=no
30036fi
30037rm -f core conftest.err conftest.$ac_objext \
30038 conftest$ac_exeext conftest.$ac_ext
30039LIBS=$ac_check_lib_save_LIBS
30040fi
30041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30042$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30043if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30044 passed=`expr $passed + 1`
30045else
30046 failed=`expr $failed + 1`
30047fi
30048
30049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30050$as_echo_n "checking if WEBP package is complete... " >&6; }
30051 if test $passed -gt 0; then
30052 if test $failed -gt 0; then
30053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30054$as_echo "no -- some components failed test" >&6; }
30055 have_webp='no (failed tests)'
30056 else
30057 WEBP_LIBS='-lwebp'
30058 LIBS="$WEBP_LIBS $LIBS"
30059
30060$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30061
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30063$as_echo "yes" >&6; }
30064 have_webp='yes'
30065 fi
30066 else
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30068$as_echo "no" >&6; }
30069 fi
30070fi
30071 if test "$have_webp" = 'yes'; then
30072 WEBP_DELEGATE_TRUE=
30073 WEBP_DELEGATE_FALSE='#'
30074else
30075 WEBP_DELEGATE_TRUE='#'
30076 WEBP_DELEGATE_FALSE=
30077fi
30078
30079
30080
30081
30082#
cristy3ed852e2009-09-05 21:47:34 +000030083# Set Windows font directory.
30084#
30085
30086# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030087if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030088 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30089else
30090 with_windows_font_dir=''
30091fi
30092
30093if test "$with_windows_font_dir" != '' ; then
30094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30095fi
30096
30097
30098#
30099# Check for WMF delegate library.
30100#
30101
30102# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030103if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030104 withval=$with_wmf; with_wmf=$withval
30105else
cristy8d63d1d2010-01-06 20:38:37 +000030106 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030107fi
30108
30109
30110if test "$with_wmf" != 'yes'; then
30111 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30112fi
30113
30114have_wmf='no'
30115WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030116if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030118$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030120$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030122$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000030123 failed=0
30124 passed=0
30125 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 +000030126if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030127 passed=`expr $passed + 1`
30128else
30129 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030130fi
30131
30132
cristy735e8942010-04-02 20:32:57 +000030133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30134$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030135if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030136 $as_echo_n "(cached) " >&6
30137else
30138 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000030139LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030141/* end confdefs.h. */
30142
30143/* Override any GCC internal prototype to avoid an error.
30144 Use char because int might match the return type of a GCC
30145 builtin and then its argument prototype would still apply. */
30146#ifdef __cplusplus
30147extern "C"
30148#endif
cristy735e8942010-04-02 20:32:57 +000030149char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030150int
30151main ()
30152{
cristy735e8942010-04-02 20:32:57 +000030153return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030154 ;
30155 return 0;
30156}
30157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030158if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030159 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030160else
cristy735e8942010-04-02 20:32:57 +000030161 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030162fi
cristy8b350f62009-11-15 23:12:43 +000030163rm -f core conftest.err conftest.$ac_objext \
30164 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030165LIBS=$ac_check_lib_save_LIBS
30166fi
cristy735e8942010-04-02 20:32:57 +000030167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30168$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030169if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030170 passed=`expr $passed + 1`
30171else
30172 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030173fi
30174
cristy735e8942010-04-02 20:32:57 +000030175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30176$as_echo_n "checking if WMF package is complete... " >&6; }
30177 if test $passed -gt 0; then
30178 if test $failed -gt 0; then
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30180$as_echo "no -- some components failed test" >&6; }
30181 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030182 else
cristy735e8942010-04-02 20:32:57 +000030183 WMF_LIBS='-lwmf -lwmflite'
30184 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030185
cristy8b350f62009-11-15 23:12:43 +000030186$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030187
cristy735e8942010-04-02 20:32:57 +000030188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030189$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030190 have_wmf='yes'
30191 fi
cristy3ed852e2009-09-05 21:47:34 +000030192 else
cristy8b350f62009-11-15 23:12:43 +000030193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030194$as_echo "no" >&6; }
30195 fi
30196fi
cristy73bd4a52010-10-05 11:24:23 +000030197 if test "$have_wmf" = 'yes'; then
30198 WMF_DELEGATE_TRUE=
30199 WMF_DELEGATE_FALSE='#'
30200else
30201 WMF_DELEGATE_TRUE='#'
30202 WMF_DELEGATE_FALSE=
30203fi
30204
cristy3ed852e2009-09-05 21:47:34 +000030205
30206
30207
30208
cristy735e8942010-04-02 20:32:57 +000030209
cristy3ed852e2009-09-05 21:47:34 +000030210#
30211# Check for XML delegate library.
30212#
30213
30214# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030215if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030216 withval=$with_xml; with_xml=$withval
30217else
30218 with_xml=$have_x
30219fi
30220
30221
30222if test "$with_xml" != 'yes' ; then
30223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30224fi
30225
30226have_xml='no'
30227XML_LIBS=''
30228if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030230$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030234$as_echo "" >&6; }
30235 PERSIST_LDFLAGS=$LDFLAGS
30236 PERSIST_CPPFLAGS=$CPPFLAGS
30237 xml2_config=''
30238 for ac_prog in xml2-config
30239do
30240 # Extract the first word of "$ac_prog", so it can be a program name with args.
30241set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030244if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030245 $as_echo_n "(cached) " >&6
30246else
30247 if test -n "$xml2_config"; then
30248 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30249else
30250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30251for as_dir in $PATH
30252do
30253 IFS=$as_save_IFS
30254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30257 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030259 break 2
30260 fi
30261done
cristy8b350f62009-11-15 23:12:43 +000030262 done
cristy3ed852e2009-09-05 21:47:34 +000030263IFS=$as_save_IFS
30264
30265fi
30266fi
30267xml2_config=$ac_cv_prog_xml2_config
30268if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030270$as_echo "$xml2_config" >&6; }
30271else
cristy8b350f62009-11-15 23:12:43 +000030272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030273$as_echo "no" >&6; }
30274fi
30275
30276
30277 test -n "$xml2_config" && break
30278done
30279 if test -n "$xml2_config"; then
30280 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30281 # the shared library installed under /usr/lib, whereas the package
30282 # installs itself under $prefix/libxml and $prefix/lib.
30283 xml2_prefix=`xml2-config --prefix`
30284 if test -d "${xml2_prefix}/include/libxml2"; then
30285 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30286 fi
30287 if test "${xml2_prefix}" != '/usr'; then
30288 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30289 fi
30290 fi
30291 failed=0
30292 passed=0
cristy8b350f62009-11-15 23:12:43 +000030293 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 +000030294if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030295 passed=`expr $passed + 1`
30296else
30297 failed=`expr $failed + 1`
30298fi
30299
30300
cristy8b350f62009-11-15 23:12:43 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030302$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030303if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030304 $as_echo_n "(cached) " >&6
30305else
30306 ac_check_lib_save_LIBS=$LIBS
30307LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030309/* end confdefs.h. */
30310
30311/* Override any GCC internal prototype to avoid an error.
30312 Use char because int might match the return type of a GCC
30313 builtin and then its argument prototype would still apply. */
30314#ifdef __cplusplus
30315extern "C"
30316#endif
30317char xmlParseExternalEntity ();
30318int
30319main ()
30320{
30321return xmlParseExternalEntity ();
30322 ;
30323 return 0;
30324}
30325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030326if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030327 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30328else
cristy8b350f62009-11-15 23:12:43 +000030329 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030330fi
cristy8b350f62009-11-15 23:12:43 +000030331rm -f core conftest.err conftest.$ac_objext \
30332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030333LIBS=$ac_check_lib_save_LIBS
30334fi
cristy8b350f62009-11-15 23:12:43 +000030335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030336$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030337if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030338 passed=`expr $passed + 1`
30339else
30340 failed=`expr $failed + 1`
30341fi
30342
cristy8b350f62009-11-15 23:12:43 +000030343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030344$as_echo_n "checking if XML package is complete... " >&6; }
30345 if test $passed -gt 0; then
30346 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030348$as_echo "no -- some components failed test" >&6; }
30349 have_xml='no (failed tests)'
30350 LDFLAGS="$PERSIST_LDFLAGS"
30351 CPPFLAGS="$PERSIST_CPPFLAGS"
30352 else
30353 XML_LIBS='-lxml2'
30354 LIBS="$XML_LIBS $LIBS"
30355
cristy8b350f62009-11-15 23:12:43 +000030356$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030357
cristy8b350f62009-11-15 23:12:43 +000030358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030359$as_echo "yes" >&6; }
30360 have_xml='yes'
30361 fi
30362 else
cristy8b350f62009-11-15 23:12:43 +000030363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030364$as_echo "no" >&6; }
30365 fi
30366fi
cristy73bd4a52010-10-05 11:24:23 +000030367 if test "$have_xml" = 'yes'; then
30368 XML_DELEGATE_TRUE=
30369 XML_DELEGATE_FALSE='#'
30370else
30371 XML_DELEGATE_TRUE='#'
30372 XML_DELEGATE_FALSE=
30373fi
30374
cristy3ed852e2009-09-05 21:47:34 +000030375
30376
30377
30378# Substitute compiler name to build/link PerlMagick
30379#
30380
30381
30382#
30383# Configure install Paths
30384#
30385
30386# Subdirectory under lib to place ImageMagick lib files
30387LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30388
30389cat >>confdefs.h <<_ACEOF
30390#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30391_ACEOF
30392
30393
30394# Path to ImageMagick bin directory
30395EXECUTABLE_PATH="${BIN_DIR}"
30396DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30397case "${build_os}" in
30398 mingw* )
30399 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30400 ;;
30401esac
30402
30403cat >>confdefs.h <<_ACEOF
30404#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30405_ACEOF
30406
30407
30408
30409# Path to ImageMagick lib
30410LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30411DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30412case "${build_os}" in
30413 mingw* )
30414 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30415 ;;
30416esac
30417
30418cat >>confdefs.h <<_ACEOF
30419#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30420_ACEOF
30421
30422
30423
cristy3ed852e2009-09-05 21:47:34 +000030424#
30425# Subdirectory under lib to place ImageMagick coder module files
30426CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30427
30428cat >>confdefs.h <<_ACEOF
30429#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30430_ACEOF
30431
30432CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30433DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30434case "${build_os}" in
30435 mingw* )
30436 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30437 ;;
30438esac
30439
30440cat >>confdefs.h <<_ACEOF
30441#define CODER_PATH "$DEFINE_CODER_PATH"
30442_ACEOF
30443
30444
30445
30446#
30447# Subdirectory under lib to place ImageMagick filter module files
30448FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30449
30450cat >>confdefs.h <<_ACEOF
30451#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30452_ACEOF
30453
30454FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30455DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30456case "${build_os}" in
30457 mingw* )
30458 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30459 ;;
30460esac
30461
30462cat >>confdefs.h <<_ACEOF
30463#define FILTER_PATH "$DEFINE_FILTER_PATH"
30464_ACEOF
30465
30466
30467
30468#
30469# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000030470DOCUMENTATION_RELATIVE_PATH=""
30471DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
30472DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030473case "${build_os}" in
30474 mingw* )
30475 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30476 ;;
30477esac
30478
30479cat >>confdefs.h <<_ACEOF
30480#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30481_ACEOF
30482
30483
30484
cristy3cf8a722011-03-20 23:32:22 +000030485# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000030486CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000030487
30488cat >>confdefs.h <<_ACEOF
30489#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30490_ACEOF
30491
30492CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30493DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30494case "${build_os}" in
30495 mingw* )
30496 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30497 ;;
30498esac
30499
30500cat >>confdefs.h <<_ACEOF
30501#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30502_ACEOF
30503
30504
30505
30506# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000030507SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000030508
30509cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000030510#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000030511_ACEOF
30512
cristy4f820712011-04-01 12:35:43 +000030513SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30514DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030515case "${build_os}" in
30516 mingw* )
cristy4f820712011-04-01 12:35:43 +000030517 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000030518 ;;
30519esac
30520
30521cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000030522#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000030523_ACEOF
30524
30525
30526
30527#
30528# program_transform_name is formed for use in a Makefile, so create a
30529# modified version for use in a shell script.
30530configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30531
30532# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030534$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030536$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030538$as_echo "" >&6; }
30539AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030540BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030541BZIPDelegateDefault='bzip2'
30542BrowseDelegateDefault='xdg-open'
30543CGMDecodeDelegateDefault='ralcgm'
30544CatDelegateDefault='cat'
30545DNGDecodeDelegateDefault='ufraw-batch'
30546GVCDecodeDelegateDefault='dot'
30547DVIDecodeDelegateDefault='dvips'
30548EchoDelegateDefault='echo'
30549EditorDelegateDefault='xterm'
30550FIGDecodeDelegateDefault='fig2dev'
30551ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30552DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30553MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30554GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000030555HPGLDecodeDelegateDefault='hp2xx'
30556HTMLDecodeDelegateDefault='html2ps'
30557ILBMDecodeDelegateDefault='ilbmtoppm'
30558ILBMEncodeDelegateDefault='ppmtoilbm'
30559LPDelegateDefault='lp'
30560LPRDelegateDefault='lpr'
30561LZWDecodeDelegateDefault='uncompress'
30562LZWEncodeDelegateDefault='compress'
30563LaunchDelegateDefault='gimp'
30564MANDelegateDefault='groff'
30565MPEGDecodeDelegateDefault='ffmpeg'
30566MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030567MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030568MVDelegateDefault='mv'
30569PCLDelegateDefault='pcl6'
30570PGPDecodeDelegateDefault='pgpv'
30571POVDelegateDefault='povray'
30572if test "$native_win32_build" = 'yes'; then
30573 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030574elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030575 PSDelegateDefault='gsc'
30576else
30577 PSDelegateDefault='gs'
30578fi
30579RLEEncodeDelegateDefault='rawtorle'
30580RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030581RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030582SCANDecodeDelegateDefault='scanimage'
30583TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030584UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000030585WMFDecodeDelegateDefault='wmf2eps'
30586WWWDecodeDelegateDefault='curl'
30587XPSDelegateDefault='gxps'
30588ZipDelegateDefault='gzip'
30589
30590# Search for delegates
30591# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30592set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030594$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030595if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030596 $as_echo_n "(cached) " >&6
30597else
30598 case $AutotraceDecodeDelegate in
30599 [\\/]* | ?:[\\/]*)
30600 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30601 ;;
30602 *)
30603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30604for as_dir in $PATH
30605do
30606 IFS=$as_save_IFS
30607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30610 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030612 break 2
30613 fi
30614done
cristy8b350f62009-11-15 23:12:43 +000030615 done
cristy3ed852e2009-09-05 21:47:34 +000030616IFS=$as_save_IFS
30617
30618 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30619 ;;
30620esac
30621fi
30622AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30623if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030625$as_echo "$AutotraceDecodeDelegate" >&6; }
30626else
cristy8b350f62009-11-15 23:12:43 +000030627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030628$as_echo "no" >&6; }
30629fi
30630
30631
cristy3ed852e2009-09-05 21:47:34 +000030632# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30633set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030635$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030636if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030637 $as_echo_n "(cached) " >&6
30638else
30639 case $BlenderDecodeDelegate in
30640 [\\/]* | ?:[\\/]*)
30641 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30642 ;;
30643 *)
30644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30645for as_dir in $PATH
30646do
30647 IFS=$as_save_IFS
30648 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030649 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30651 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030653 break 2
30654 fi
30655done
cristy8b350f62009-11-15 23:12:43 +000030656 done
cristy3ed852e2009-09-05 21:47:34 +000030657IFS=$as_save_IFS
30658
30659 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30660 ;;
30661esac
30662fi
30663BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30664if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030666$as_echo "$BlenderDecodeDelegate" >&6; }
30667else
cristy8b350f62009-11-15 23:12:43 +000030668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030669$as_echo "no" >&6; }
30670fi
30671
30672
30673# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30674set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030677if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030678 $as_echo_n "(cached) " >&6
30679else
30680 case $BZIPDelegate in
30681 [\\/]* | ?:[\\/]*)
30682 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30683 ;;
30684 *)
30685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30686for as_dir in $PATH
30687do
30688 IFS=$as_save_IFS
30689 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30692 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030694 break 2
30695 fi
30696done
cristy8b350f62009-11-15 23:12:43 +000030697 done
cristy3ed852e2009-09-05 21:47:34 +000030698IFS=$as_save_IFS
30699
30700 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30701 ;;
30702esac
30703fi
30704BZIPDelegate=$ac_cv_path_BZIPDelegate
30705if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030707$as_echo "$BZIPDelegate" >&6; }
30708else
cristy8b350f62009-11-15 23:12:43 +000030709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030710$as_echo "no" >&6; }
30711fi
30712
30713
30714# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30715set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030718if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030719 $as_echo_n "(cached) " >&6
30720else
30721 case $BrowseDelegate in
30722 [\\/]* | ?:[\\/]*)
30723 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30724 ;;
30725 *)
30726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30727for as_dir in $PATH
30728do
30729 IFS=$as_save_IFS
30730 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30733 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030735 break 2
30736 fi
30737done
cristy8b350f62009-11-15 23:12:43 +000030738 done
cristy3ed852e2009-09-05 21:47:34 +000030739IFS=$as_save_IFS
30740
30741 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30742 ;;
30743esac
30744fi
30745BrowseDelegate=$ac_cv_path_BrowseDelegate
30746if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030748$as_echo "$BrowseDelegate" >&6; }
30749else
cristy8b350f62009-11-15 23:12:43 +000030750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030751$as_echo "no" >&6; }
30752fi
30753
30754
30755# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30756set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030759if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030760 $as_echo_n "(cached) " >&6
30761else
30762 case $CGMDecodeDelegate in
30763 [\\/]* | ?:[\\/]*)
30764 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30765 ;;
30766 *)
30767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30768for as_dir in $PATH
30769do
30770 IFS=$as_save_IFS
30771 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030772 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30774 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030776 break 2
30777 fi
30778done
cristy8b350f62009-11-15 23:12:43 +000030779 done
cristy3ed852e2009-09-05 21:47:34 +000030780IFS=$as_save_IFS
30781
30782 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30783 ;;
30784esac
30785fi
30786CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30787if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030789$as_echo "$CGMDecodeDelegate" >&6; }
30790else
cristy8b350f62009-11-15 23:12:43 +000030791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030792$as_echo "no" >&6; }
30793fi
30794
30795
30796# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30797set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030800if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030801 $as_echo_n "(cached) " >&6
30802else
30803 case $CatDelegate in
30804 [\\/]* | ?:[\\/]*)
30805 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30806 ;;
30807 *)
30808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30809for as_dir in $PATH
30810do
30811 IFS=$as_save_IFS
30812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30815 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030817 break 2
30818 fi
30819done
cristy8b350f62009-11-15 23:12:43 +000030820 done
cristy3ed852e2009-09-05 21:47:34 +000030821IFS=$as_save_IFS
30822
30823 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30824 ;;
30825esac
30826fi
30827CatDelegate=$ac_cv_path_CatDelegate
30828if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030830$as_echo "$CatDelegate" >&6; }
30831else
cristy8b350f62009-11-15 23:12:43 +000030832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030833$as_echo "no" >&6; }
30834fi
30835
30836
30837# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30838set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030841if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030842 $as_echo_n "(cached) " >&6
30843else
30844 case $DNGDecodeDelegate in
30845 [\\/]* | ?:[\\/]*)
30846 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30847 ;;
30848 *)
30849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30850for as_dir in $PATH
30851do
30852 IFS=$as_save_IFS
30853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30856 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030858 break 2
30859 fi
30860done
cristy8b350f62009-11-15 23:12:43 +000030861 done
cristy3ed852e2009-09-05 21:47:34 +000030862IFS=$as_save_IFS
30863
30864 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30865 ;;
30866esac
30867fi
30868DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30869if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030871$as_echo "$DNGDecodeDelegate" >&6; }
30872else
cristy8b350f62009-11-15 23:12:43 +000030873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030874$as_echo "no" >&6; }
30875fi
30876
30877
30878# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30879set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030882if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030883 $as_echo_n "(cached) " >&6
30884else
30885 case $GVCDecodeDelegate in
30886 [\\/]* | ?:[\\/]*)
30887 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30888 ;;
30889 *)
30890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30891for as_dir in $PATH
30892do
30893 IFS=$as_save_IFS
30894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30897 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030899 break 2
30900 fi
30901done
cristy8b350f62009-11-15 23:12:43 +000030902 done
cristy3ed852e2009-09-05 21:47:34 +000030903IFS=$as_save_IFS
30904
30905 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30906 ;;
30907esac
30908fi
30909GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30910if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030912$as_echo "$GVCDecodeDelegate" >&6; }
30913else
cristy8b350f62009-11-15 23:12:43 +000030914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030915$as_echo "no" >&6; }
30916fi
30917
30918
30919# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30920set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030922$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030923if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030924 $as_echo_n "(cached) " >&6
30925else
30926 case $DVIDecodeDelegate in
30927 [\\/]* | ?:[\\/]*)
30928 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30929 ;;
30930 *)
30931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30932for as_dir in $PATH
30933do
30934 IFS=$as_save_IFS
30935 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030936 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30938 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030940 break 2
30941 fi
30942done
cristy8b350f62009-11-15 23:12:43 +000030943 done
cristy3ed852e2009-09-05 21:47:34 +000030944IFS=$as_save_IFS
30945
30946 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30947 ;;
30948esac
30949fi
30950DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30951if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030953$as_echo "$DVIDecodeDelegate" >&6; }
30954else
cristy8b350f62009-11-15 23:12:43 +000030955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030956$as_echo "no" >&6; }
30957fi
30958
30959
30960# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30961set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030964if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030965 $as_echo_n "(cached) " >&6
30966else
30967 case $EchoDelegate in
30968 [\\/]* | ?:[\\/]*)
30969 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30970 ;;
30971 *)
30972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30973for as_dir in $PATH
30974do
30975 IFS=$as_save_IFS
30976 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030977 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30979 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030981 break 2
30982 fi
30983done
cristy8b350f62009-11-15 23:12:43 +000030984 done
cristy3ed852e2009-09-05 21:47:34 +000030985IFS=$as_save_IFS
30986
30987 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30988 ;;
30989esac
30990fi
30991EchoDelegate=$ac_cv_path_EchoDelegate
30992if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030994$as_echo "$EchoDelegate" >&6; }
30995else
cristy8b350f62009-11-15 23:12:43 +000030996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030997$as_echo "no" >&6; }
30998fi
30999
31000
31001# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
31002set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031004$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031005if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031006 $as_echo_n "(cached) " >&6
31007else
31008 case $EditorDelegate in
31009 [\\/]* | ?:[\\/]*)
31010 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
31011 ;;
31012 *)
31013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31014for as_dir in $PATH
31015do
31016 IFS=$as_save_IFS
31017 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31020 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031022 break 2
31023 fi
31024done
cristy8b350f62009-11-15 23:12:43 +000031025 done
cristy3ed852e2009-09-05 21:47:34 +000031026IFS=$as_save_IFS
31027
31028 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31029 ;;
31030esac
31031fi
31032EditorDelegate=$ac_cv_path_EditorDelegate
31033if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031035$as_echo "$EditorDelegate" >&6; }
31036else
cristy8b350f62009-11-15 23:12:43 +000031037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031038$as_echo "no" >&6; }
31039fi
31040
31041
31042# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31043set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031045$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031046if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031047 $as_echo_n "(cached) " >&6
31048else
31049 case $FIGDecodeDelegate in
31050 [\\/]* | ?:[\\/]*)
31051 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31052 ;;
31053 *)
31054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31055for as_dir in $PATH
31056do
31057 IFS=$as_save_IFS
31058 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031059 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31061 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031063 break 2
31064 fi
31065done
cristy8b350f62009-11-15 23:12:43 +000031066 done
cristy3ed852e2009-09-05 21:47:34 +000031067IFS=$as_save_IFS
31068
31069 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31070 ;;
31071esac
31072fi
31073FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31074if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031076$as_echo "$FIGDecodeDelegate" >&6; }
31077else
cristy8b350f62009-11-15 23:12:43 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031079$as_echo "no" >&6; }
31080fi
31081
31082
31083# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31084set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031087if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031088 $as_echo_n "(cached) " >&6
31089else
31090 case $ConvertDelegate in
31091 [\\/]* | ?:[\\/]*)
31092 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31093 ;;
31094 *)
31095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31096for as_dir in $PATH
31097do
31098 IFS=$as_save_IFS
31099 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31102 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031104 break 2
31105 fi
31106done
cristy8b350f62009-11-15 23:12:43 +000031107 done
cristy3ed852e2009-09-05 21:47:34 +000031108IFS=$as_save_IFS
31109
31110 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31111 ;;
31112esac
31113fi
31114ConvertDelegate=$ac_cv_path_ConvertDelegate
31115if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031117$as_echo "$ConvertDelegate" >&6; }
31118else
cristy8b350f62009-11-15 23:12:43 +000031119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031120$as_echo "no" >&6; }
31121fi
31122
31123
31124# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31125set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031128if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031129 $as_echo_n "(cached) " >&6
31130else
31131 case $DisplayDelegate in
31132 [\\/]* | ?:[\\/]*)
31133 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31134 ;;
31135 *)
31136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31137for as_dir in $PATH
31138do
31139 IFS=$as_save_IFS
31140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31143 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031145 break 2
31146 fi
31147done
cristy8b350f62009-11-15 23:12:43 +000031148 done
cristy3ed852e2009-09-05 21:47:34 +000031149IFS=$as_save_IFS
31150
31151 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31152 ;;
31153esac
31154fi
31155DisplayDelegate=$ac_cv_path_DisplayDelegate
31156if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031158$as_echo "$DisplayDelegate" >&6; }
31159else
cristy8b350f62009-11-15 23:12:43 +000031160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031161$as_echo "no" >&6; }
31162fi
31163
31164
31165# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31166set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031168$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031169if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031170 $as_echo_n "(cached) " >&6
31171else
31172 case $MogrifyDelegate in
31173 [\\/]* | ?:[\\/]*)
31174 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31175 ;;
31176 *)
31177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31178for as_dir in $PATH
31179do
31180 IFS=$as_save_IFS
31181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31184 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031186 break 2
31187 fi
31188done
cristy8b350f62009-11-15 23:12:43 +000031189 done
cristy3ed852e2009-09-05 21:47:34 +000031190IFS=$as_save_IFS
31191
31192 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31193 ;;
31194esac
31195fi
31196MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31197if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031199$as_echo "$MogrifyDelegate" >&6; }
31200else
cristy8b350f62009-11-15 23:12:43 +000031201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031202$as_echo "no" >&6; }
31203fi
31204
31205
31206# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31207set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031209$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031210if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031211 $as_echo_n "(cached) " >&6
31212else
31213 case $GnuplotDecodeDelegate in
31214 [\\/]* | ?:[\\/]*)
31215 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31216 ;;
31217 *)
31218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31219for as_dir in $PATH
31220do
31221 IFS=$as_save_IFS
31222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31225 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031227 break 2
31228 fi
31229done
cristy8b350f62009-11-15 23:12:43 +000031230 done
cristy3ed852e2009-09-05 21:47:34 +000031231IFS=$as_save_IFS
31232
31233 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31234 ;;
31235esac
31236fi
31237GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31238if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031240$as_echo "$GnuplotDecodeDelegate" >&6; }
31241else
cristy8b350f62009-11-15 23:12:43 +000031242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031243$as_echo "no" >&6; }
31244fi
31245
31246
cristy3ed852e2009-09-05 21:47:34 +000031247# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31248set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031251if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031252 $as_echo_n "(cached) " >&6
31253else
31254 case $HPGLDecodeDelegate in
31255 [\\/]* | ?:[\\/]*)
31256 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31257 ;;
31258 *)
31259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31260for as_dir in $PATH
31261do
31262 IFS=$as_save_IFS
31263 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31266 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031268 break 2
31269 fi
31270done
cristy8b350f62009-11-15 23:12:43 +000031271 done
cristy3ed852e2009-09-05 21:47:34 +000031272IFS=$as_save_IFS
31273
31274 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31275 ;;
31276esac
31277fi
31278HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31279if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031281$as_echo "$HPGLDecodeDelegate" >&6; }
31282else
cristy8b350f62009-11-15 23:12:43 +000031283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031284$as_echo "no" >&6; }
31285fi
31286
31287
31288# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31289set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031291$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031292if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031293 $as_echo_n "(cached) " >&6
31294else
31295 case $HTMLDecodeDelegate in
31296 [\\/]* | ?:[\\/]*)
31297 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31298 ;;
31299 *)
31300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31301for as_dir in $PATH
31302do
31303 IFS=$as_save_IFS
31304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31307 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031309 break 2
31310 fi
31311done
cristy8b350f62009-11-15 23:12:43 +000031312 done
cristy3ed852e2009-09-05 21:47:34 +000031313IFS=$as_save_IFS
31314
31315 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31316 ;;
31317esac
31318fi
31319HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31320if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031322$as_echo "$HTMLDecodeDelegate" >&6; }
31323else
cristy8b350f62009-11-15 23:12:43 +000031324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031325$as_echo "no" >&6; }
31326fi
31327
31328
31329# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31330set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031332$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031333if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031334 $as_echo_n "(cached) " >&6
31335else
31336 case $ILBMDecodeDelegate in
31337 [\\/]* | ?:[\\/]*)
31338 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31339 ;;
31340 *)
31341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31342for as_dir in $PATH
31343do
31344 IFS=$as_save_IFS
31345 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031346 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31348 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031350 break 2
31351 fi
31352done
cristy8b350f62009-11-15 23:12:43 +000031353 done
cristy3ed852e2009-09-05 21:47:34 +000031354IFS=$as_save_IFS
31355
31356 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31357 ;;
31358esac
31359fi
31360ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31361if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031363$as_echo "$ILBMDecodeDelegate" >&6; }
31364else
cristy8b350f62009-11-15 23:12:43 +000031365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031366$as_echo "no" >&6; }
31367fi
31368
31369
31370# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31371set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031374if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031375 $as_echo_n "(cached) " >&6
31376else
31377 case $ILBMEncodeDelegate in
31378 [\\/]* | ?:[\\/]*)
31379 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31380 ;;
31381 *)
31382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31383for as_dir in $PATH
31384do
31385 IFS=$as_save_IFS
31386 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031387 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31389 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031391 break 2
31392 fi
31393done
cristy8b350f62009-11-15 23:12:43 +000031394 done
cristy3ed852e2009-09-05 21:47:34 +000031395IFS=$as_save_IFS
31396
31397 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31398 ;;
31399esac
31400fi
31401ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31402if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031404$as_echo "$ILBMEncodeDelegate" >&6; }
31405else
cristy8b350f62009-11-15 23:12:43 +000031406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031407$as_echo "no" >&6; }
31408fi
31409
31410
31411# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31412set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031414$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031415if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031416 $as_echo_n "(cached) " >&6
31417else
31418 case $LPDelegate in
31419 [\\/]* | ?:[\\/]*)
31420 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31421 ;;
31422 *)
31423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31424for as_dir in $PATH
31425do
31426 IFS=$as_save_IFS
31427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31430 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031432 break 2
31433 fi
31434done
cristy8b350f62009-11-15 23:12:43 +000031435 done
cristy3ed852e2009-09-05 21:47:34 +000031436IFS=$as_save_IFS
31437
31438 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31439 ;;
31440esac
31441fi
31442LPDelegate=$ac_cv_path_LPDelegate
31443if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031445$as_echo "$LPDelegate" >&6; }
31446else
cristy8b350f62009-11-15 23:12:43 +000031447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031448$as_echo "no" >&6; }
31449fi
31450
31451
31452# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31453set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031455$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031456if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031457 $as_echo_n "(cached) " >&6
31458else
31459 case $LPRDelegate in
31460 [\\/]* | ?:[\\/]*)
31461 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31462 ;;
31463 *)
31464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31465for as_dir in $PATH
31466do
31467 IFS=$as_save_IFS
31468 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31471 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031473 break 2
31474 fi
31475done
cristy8b350f62009-11-15 23:12:43 +000031476 done
cristy3ed852e2009-09-05 21:47:34 +000031477IFS=$as_save_IFS
31478
31479 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31480 ;;
31481esac
31482fi
31483LPRDelegate=$ac_cv_path_LPRDelegate
31484if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031486$as_echo "$LPRDelegate" >&6; }
31487else
cristy8b350f62009-11-15 23:12:43 +000031488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031489$as_echo "no" >&6; }
31490fi
31491
31492
31493# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31494set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031496$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031497if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031498 $as_echo_n "(cached) " >&6
31499else
31500 case $LZWDecodeDelegate in
31501 [\\/]* | ?:[\\/]*)
31502 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31503 ;;
31504 *)
31505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31506for as_dir in $PATH
31507do
31508 IFS=$as_save_IFS
31509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31512 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031514 break 2
31515 fi
31516done
cristy8b350f62009-11-15 23:12:43 +000031517 done
cristy3ed852e2009-09-05 21:47:34 +000031518IFS=$as_save_IFS
31519
31520 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31521 ;;
31522esac
31523fi
31524LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31525if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031527$as_echo "$LZWDecodeDelegate" >&6; }
31528else
cristy8b350f62009-11-15 23:12:43 +000031529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031530$as_echo "no" >&6; }
31531fi
31532
31533
31534# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31535set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031538if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031539 $as_echo_n "(cached) " >&6
31540else
31541 case $LZWEncodeDelegate in
31542 [\\/]* | ?:[\\/]*)
31543 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31544 ;;
31545 *)
31546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31547for as_dir in $PATH
31548do
31549 IFS=$as_save_IFS
31550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31553 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031555 break 2
31556 fi
31557done
cristy8b350f62009-11-15 23:12:43 +000031558 done
cristy3ed852e2009-09-05 21:47:34 +000031559IFS=$as_save_IFS
31560
31561 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31562 ;;
31563esac
31564fi
31565LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31566if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031568$as_echo "$LZWEncodeDelegate" >&6; }
31569else
cristy8b350f62009-11-15 23:12:43 +000031570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031571$as_echo "no" >&6; }
31572fi
31573
31574
31575# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31576set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031578$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031579if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031580 $as_echo_n "(cached) " >&6
31581else
31582 case $LaunchDelegate in
31583 [\\/]* | ?:[\\/]*)
31584 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31585 ;;
31586 *)
31587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31588for as_dir in $PATH
31589do
31590 IFS=$as_save_IFS
31591 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31594 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031596 break 2
31597 fi
31598done
cristy8b350f62009-11-15 23:12:43 +000031599 done
cristy3ed852e2009-09-05 21:47:34 +000031600IFS=$as_save_IFS
31601
31602 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31603 ;;
31604esac
31605fi
31606LaunchDelegate=$ac_cv_path_LaunchDelegate
31607if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031609$as_echo "$LaunchDelegate" >&6; }
31610else
cristy8b350f62009-11-15 23:12:43 +000031611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031612$as_echo "no" >&6; }
31613fi
31614
31615
31616# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31617set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031619$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031620if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031621 $as_echo_n "(cached) " >&6
31622else
31623 case $MANDelegate in
31624 [\\/]* | ?:[\\/]*)
31625 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31626 ;;
31627 *)
31628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31629for as_dir in $PATH
31630do
31631 IFS=$as_save_IFS
31632 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31635 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031637 break 2
31638 fi
31639done
cristy8b350f62009-11-15 23:12:43 +000031640 done
cristy3ed852e2009-09-05 21:47:34 +000031641IFS=$as_save_IFS
31642
31643 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31644 ;;
31645esac
31646fi
31647MANDelegate=$ac_cv_path_MANDelegate
31648if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031650$as_echo "$MANDelegate" >&6; }
31651else
cristy8b350f62009-11-15 23:12:43 +000031652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031653$as_echo "no" >&6; }
31654fi
31655
31656
31657# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31658set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031660$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031661if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031662 $as_echo_n "(cached) " >&6
31663else
31664 case $MPEGDecodeDelegate in
31665 [\\/]* | ?:[\\/]*)
31666 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31667 ;;
31668 *)
31669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31670for as_dir in $PATH
31671do
31672 IFS=$as_save_IFS
31673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31676 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031678 break 2
31679 fi
31680done
cristy8b350f62009-11-15 23:12:43 +000031681 done
cristy3ed852e2009-09-05 21:47:34 +000031682IFS=$as_save_IFS
31683
31684 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31685 ;;
31686esac
31687fi
31688MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31689if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031691$as_echo "$MPEGDecodeDelegate" >&6; }
31692else
cristy8b350f62009-11-15 23:12:43 +000031693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031694$as_echo "no" >&6; }
31695fi
31696
31697
31698# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31699set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031701$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031702if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031703 $as_echo_n "(cached) " >&6
31704else
31705 case $MPEGEncodeDelegate in
31706 [\\/]* | ?:[\\/]*)
31707 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31708 ;;
31709 *)
31710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31711for as_dir in $PATH
31712do
31713 IFS=$as_save_IFS
31714 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031715 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31717 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031719 break 2
31720 fi
31721done
cristy8b350f62009-11-15 23:12:43 +000031722 done
cristy3ed852e2009-09-05 21:47:34 +000031723IFS=$as_save_IFS
31724
31725 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31726 ;;
31727esac
31728fi
31729MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31730if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031732$as_echo "$MPEGEncodeDelegate" >&6; }
31733else
cristy8b350f62009-11-15 23:12:43 +000031734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031735$as_echo "no" >&6; }
31736fi
31737
31738
cristy935c86e2010-06-05 23:50:07 +000031739# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31740set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031743if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031744 $as_echo_n "(cached) " >&6
31745else
31746 case $MrSIDDecodeDelegate in
31747 [\\/]* | ?:[\\/]*)
31748 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31749 ;;
31750 *)
31751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31752for as_dir in $PATH
31753do
31754 IFS=$as_save_IFS
31755 test -z "$as_dir" && as_dir=.
31756 for ac_exec_ext in '' $ac_executable_extensions; do
31757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31758 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31760 break 2
31761 fi
31762done
31763 done
31764IFS=$as_save_IFS
31765
31766 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31767 ;;
31768esac
31769fi
31770MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31771if test -n "$MrSIDDecodeDelegate"; then
31772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31773$as_echo "$MrSIDDecodeDelegate" >&6; }
31774else
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31776$as_echo "no" >&6; }
31777fi
31778
31779
cristy3ed852e2009-09-05 21:47:34 +000031780# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31781set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031783$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031784if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031785 $as_echo_n "(cached) " >&6
31786else
31787 case $MVDelegate in
31788 [\\/]* | ?:[\\/]*)
31789 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31790 ;;
31791 *)
31792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31793for as_dir in $PATH
31794do
31795 IFS=$as_save_IFS
31796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31799 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031801 break 2
31802 fi
31803done
cristy8b350f62009-11-15 23:12:43 +000031804 done
cristy3ed852e2009-09-05 21:47:34 +000031805IFS=$as_save_IFS
31806
31807 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31808 ;;
31809esac
31810fi
31811MVDelegate=$ac_cv_path_MVDelegate
31812if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031814$as_echo "$MVDelegate" >&6; }
31815else
cristy8b350f62009-11-15 23:12:43 +000031816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031817$as_echo "no" >&6; }
31818fi
31819
31820
31821# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31822set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031825if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031826 $as_echo_n "(cached) " >&6
31827else
31828 case $PCLDelegate in
31829 [\\/]* | ?:[\\/]*)
31830 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31831 ;;
31832 *)
31833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31834for as_dir in $PATH
31835do
31836 IFS=$as_save_IFS
31837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31840 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031842 break 2
31843 fi
31844done
cristy8b350f62009-11-15 23:12:43 +000031845 done
cristy3ed852e2009-09-05 21:47:34 +000031846IFS=$as_save_IFS
31847
31848 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31849 ;;
31850esac
31851fi
31852PCLDelegate=$ac_cv_path_PCLDelegate
31853if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031855$as_echo "$PCLDelegate" >&6; }
31856else
cristy8b350f62009-11-15 23:12:43 +000031857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031858$as_echo "no" >&6; }
31859fi
31860
31861
31862# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31863set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031866if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031867 $as_echo_n "(cached) " >&6
31868else
31869 case $PGPDecodeDelegate in
31870 [\\/]* | ?:[\\/]*)
31871 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31872 ;;
31873 *)
31874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31875for as_dir in $PATH
31876do
31877 IFS=$as_save_IFS
31878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31881 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031883 break 2
31884 fi
31885done
cristy8b350f62009-11-15 23:12:43 +000031886 done
cristy3ed852e2009-09-05 21:47:34 +000031887IFS=$as_save_IFS
31888
31889 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31890 ;;
31891esac
31892fi
31893PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31894if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031896$as_echo "$PGPDecodeDelegate" >&6; }
31897else
cristy8b350f62009-11-15 23:12:43 +000031898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031899$as_echo "no" >&6; }
31900fi
31901
31902
31903# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31904set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031907if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031908 $as_echo_n "(cached) " >&6
31909else
31910 case $POVDelegate in
31911 [\\/]* | ?:[\\/]*)
31912 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31913 ;;
31914 *)
31915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31916for as_dir in $PATH
31917do
31918 IFS=$as_save_IFS
31919 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31922 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924 break 2
31925 fi
31926done
cristy8b350f62009-11-15 23:12:43 +000031927 done
cristy3ed852e2009-09-05 21:47:34 +000031928IFS=$as_save_IFS
31929
31930 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31931 ;;
31932esac
31933fi
31934POVDelegate=$ac_cv_path_POVDelegate
31935if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031937$as_echo "$POVDelegate" >&6; }
31938else
cristy8b350f62009-11-15 23:12:43 +000031939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031940$as_echo "no" >&6; }
31941fi
31942
31943
31944for ac_prog in gsx gsc "$PSDelegateDefault"
31945do
31946 # Extract the first word of "$ac_prog", so it can be a program name with args.
31947set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031950if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031951 $as_echo_n "(cached) " >&6
31952else
31953 case $PSDelegate in
31954 [\\/]* | ?:[\\/]*)
31955 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31956 ;;
31957 *)
31958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31959for as_dir in $PATH
31960do
31961 IFS=$as_save_IFS
31962 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31965 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031967 break 2
31968 fi
31969done
cristy8b350f62009-11-15 23:12:43 +000031970 done
cristy3ed852e2009-09-05 21:47:34 +000031971IFS=$as_save_IFS
31972
31973 ;;
31974esac
31975fi
31976PSDelegate=$ac_cv_path_PSDelegate
31977if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031979$as_echo "$PSDelegate" >&6; }
31980else
cristy8b350f62009-11-15 23:12:43 +000031981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo "no" >&6; }
31983fi
31984
31985
31986 test -n "$PSDelegate" && break
31987done
31988test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31989
31990# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31991set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031994if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031995 $as_echo_n "(cached) " >&6
31996else
31997 case $RLEEncodeDelegate in
31998 [\\/]* | ?:[\\/]*)
31999 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
32000 ;;
32001 *)
32002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32003for as_dir in $PATH
32004do
32005 IFS=$as_save_IFS
32006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32009 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032011 break 2
32012 fi
32013done
cristy8b350f62009-11-15 23:12:43 +000032014 done
cristy3ed852e2009-09-05 21:47:34 +000032015IFS=$as_save_IFS
32016
32017 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
32018 ;;
32019esac
32020fi
32021RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32022if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032024$as_echo "$RLEEncodeDelegate" >&6; }
32025else
cristy8b350f62009-11-15 23:12:43 +000032026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032027$as_echo "no" >&6; }
32028fi
32029
32030
32031# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32032set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032035if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032036 $as_echo_n "(cached) " >&6
32037else
32038 case $RMDelegate in
32039 [\\/]* | ?:[\\/]*)
32040 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32041 ;;
32042 *)
32043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32044for as_dir in $PATH
32045do
32046 IFS=$as_save_IFS
32047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32050 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052 break 2
32053 fi
32054done
cristy8b350f62009-11-15 23:12:43 +000032055 done
cristy3ed852e2009-09-05 21:47:34 +000032056IFS=$as_save_IFS
32057
32058 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32059 ;;
32060esac
32061fi
32062RMDelegate=$ac_cv_path_RMDelegate
32063if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032065$as_echo "$RMDelegate" >&6; }
32066else
cristy8b350f62009-11-15 23:12:43 +000032067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032068$as_echo "no" >&6; }
32069fi
32070
32071
cristy4689cf02010-02-17 21:15:45 +000032072# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32073set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032076if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032077 $as_echo_n "(cached) " >&6
32078else
32079 case $RSVGDecodeDelegate in
32080 [\\/]* | ?:[\\/]*)
32081 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32082 ;;
32083 *)
32084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32085for as_dir in $PATH
32086do
32087 IFS=$as_save_IFS
32088 test -z "$as_dir" && as_dir=.
32089 for ac_exec_ext in '' $ac_executable_extensions; do
32090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32091 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32093 break 2
32094 fi
32095done
32096 done
32097IFS=$as_save_IFS
32098
32099 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32100 ;;
32101esac
32102fi
32103RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32104if test -n "$RSVGDecodeDelegate"; then
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32106$as_echo "$RSVGDecodeDelegate" >&6; }
32107else
32108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32109$as_echo "no" >&6; }
32110fi
32111
32112
cristy3ed852e2009-09-05 21:47:34 +000032113# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32114set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032117if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032118 $as_echo_n "(cached) " >&6
32119else
32120 case $SCANDecodeDelegate in
32121 [\\/]* | ?:[\\/]*)
32122 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32123 ;;
32124 *)
32125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32126for as_dir in $PATH
32127do
32128 IFS=$as_save_IFS
32129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32132 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032134 break 2
32135 fi
32136done
cristy8b350f62009-11-15 23:12:43 +000032137 done
cristy3ed852e2009-09-05 21:47:34 +000032138IFS=$as_save_IFS
32139
32140 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32141 ;;
32142esac
32143fi
32144SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32145if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032147$as_echo "$SCANDecodeDelegate" >&6; }
32148else
cristy8b350f62009-11-15 23:12:43 +000032149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150$as_echo "no" >&6; }
32151fi
32152
32153
32154# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32155set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032157$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032158if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032159 $as_echo_n "(cached) " >&6
32160else
32161 case $TXTDelegate in
32162 [\\/]* | ?:[\\/]*)
32163 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32164 ;;
32165 *)
32166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32167for as_dir in $PATH
32168do
32169 IFS=$as_save_IFS
32170 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032171 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32173 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032175 break 2
32176 fi
32177done
cristy8b350f62009-11-15 23:12:43 +000032178 done
cristy3ed852e2009-09-05 21:47:34 +000032179IFS=$as_save_IFS
32180
32181 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32182 ;;
32183esac
32184fi
32185TXTDelegate=$ac_cv_path_TXTDelegate
32186if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032188$as_echo "$TXTDelegate" >&6; }
32189else
cristy8b350f62009-11-15 23:12:43 +000032190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191$as_echo "no" >&6; }
32192fi
32193
32194
cristy5ac9ac82010-07-29 13:24:24 +000032195# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32196set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032199if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032200 $as_echo_n "(cached) " >&6
32201else
32202 case $UniconvertorDelegate in
32203 [\\/]* | ?:[\\/]*)
32204 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32205 ;;
32206 *)
32207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32208for as_dir in $PATH
32209do
32210 IFS=$as_save_IFS
32211 test -z "$as_dir" && as_dir=.
32212 for ac_exec_ext in '' $ac_executable_extensions; do
32213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32214 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32216 break 2
32217 fi
32218done
32219 done
32220IFS=$as_save_IFS
32221
32222 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32223 ;;
32224esac
32225fi
32226UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32227if test -n "$UniconvertorDelegate"; then
32228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32229$as_echo "$UniconvertorDelegate" >&6; }
32230else
32231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32232$as_echo "no" >&6; }
32233fi
32234
32235
cristy3ed852e2009-09-05 21:47:34 +000032236# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32237set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032240if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032241 $as_echo_n "(cached) " >&6
32242else
32243 case $WMFDecodeDelegate in
32244 [\\/]* | ?:[\\/]*)
32245 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32246 ;;
32247 *)
32248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32249for as_dir in $PATH
32250do
32251 IFS=$as_save_IFS
32252 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32255 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032257 break 2
32258 fi
32259done
cristy8b350f62009-11-15 23:12:43 +000032260 done
cristy3ed852e2009-09-05 21:47:34 +000032261IFS=$as_save_IFS
32262
32263 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32264 ;;
32265esac
32266fi
32267WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32268if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032270$as_echo "$WMFDecodeDelegate" >&6; }
32271else
cristy8b350f62009-11-15 23:12:43 +000032272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032273$as_echo "no" >&6; }
32274fi
32275
32276
32277# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32278set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032280$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032281if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032282 $as_echo_n "(cached) " >&6
32283else
32284 case $WWWDecodeDelegate in
32285 [\\/]* | ?:[\\/]*)
32286 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32287 ;;
32288 *)
32289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32290for as_dir in $PATH
32291do
32292 IFS=$as_save_IFS
32293 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032294 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32296 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032298 break 2
32299 fi
32300done
cristy8b350f62009-11-15 23:12:43 +000032301 done
cristy3ed852e2009-09-05 21:47:34 +000032302IFS=$as_save_IFS
32303
32304 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32305 ;;
32306esac
32307fi
32308WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32309if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032311$as_echo "$WWWDecodeDelegate" >&6; }
32312else
cristy8b350f62009-11-15 23:12:43 +000032313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032314$as_echo "no" >&6; }
32315fi
32316
32317
32318# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32319set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032322if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032323 $as_echo_n "(cached) " >&6
32324else
32325 case $XPSDelegate in
32326 [\\/]* | ?:[\\/]*)
32327 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32328 ;;
32329 *)
32330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32331for as_dir in $PATH
32332do
32333 IFS=$as_save_IFS
32334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32337 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032339 break 2
32340 fi
32341done
cristy8b350f62009-11-15 23:12:43 +000032342 done
cristy3ed852e2009-09-05 21:47:34 +000032343IFS=$as_save_IFS
32344
32345 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32346 ;;
32347esac
32348fi
32349XPSDelegate=$ac_cv_path_XPSDelegate
32350if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032352$as_echo "$XPSDelegate" >&6; }
32353else
cristy8b350f62009-11-15 23:12:43 +000032354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032355$as_echo "no" >&6; }
32356fi
32357
32358
32359# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32360set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032363if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032364 $as_echo_n "(cached) " >&6
32365else
32366 case $ZipDelegate in
32367 [\\/]* | ?:[\\/]*)
32368 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32369 ;;
32370 *)
32371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32372for as_dir in $PATH
32373do
32374 IFS=$as_save_IFS
32375 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32378 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032380 break 2
32381 fi
32382done
cristy8b350f62009-11-15 23:12:43 +000032383 done
cristy3ed852e2009-09-05 21:47:34 +000032384IFS=$as_save_IFS
32385
32386 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32387 ;;
32388esac
32389fi
32390ZipDelegate=$ac_cv_path_ZipDelegate
32391if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032393$as_echo "$ZipDelegate" >&6; }
32394else
cristy8b350f62009-11-15 23:12:43 +000032395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032396$as_echo "no" >&6; }
32397fi
32398
32399
32400
32401# Prefer lpr to lp; lp needs options tacked on.
32402if test "$LPRDelegate" != no; then
32403 PrintDelegate="$LPRDelegate"
32404else
32405 PrintDelegate="$LPDelegate -c -s"
32406fi
32407
32408
32409# Installed ImageMagick utiltity paths
32410ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32411DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32412MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32413
32414# Set delegate booleans
32415have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32416have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32417have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32418have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32419have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032420have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032421have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32422have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032423have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32424have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32425
32426#
32427# Test for font directories
32428#
32429type_include_files=''
32430
cristy430a7312010-01-21 20:44:04 +000032431# Dejavu fonts.
32432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32433$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32434dejavu_font_dir=''
32435if test "${with_dejavu_font_dir}" != 'default'; then
32436 dejavu_font_dir="${with_dejavu_font_dir}/"
32437else
32438 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32439 if test -f "${font_dir}DejaVuSerif.ttf"; then
32440 dejavu_font_dir="${font_dir}"
32441 break 1
32442 fi
32443 done
32444fi
32445if test "${dejavu_font_dir}x" != 'x'; then
32446 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32448$as_echo "$dejavu_font_dir" >&6; }
32449else
32450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32451$as_echo "not found!" >&6; };
32452fi
32453
32454
cristy3ed852e2009-09-05 21:47:34 +000032455# Windows
32456windows_font_dir=''
32457if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32458 windows_font_dir="${with_windows_font_dir}/"
32459fi
cristy430a7312010-01-21 20:44:04 +000032460if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032461 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32462 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32463 fi
32464 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32465 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32466 fi
32467 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32468 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32469 fi
32470fi
cristy430a7312010-01-21 20:44:04 +000032471if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032472 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32473fi
32474
32475
32476# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032478$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32479ghostscript_font_dir=''
32480if test "${with_gs_font_dir}" != 'default'; then
32481 ghostscript_font_dir="${with_gs_font_dir}/"
32482else
32483 if test "${native_win32_build}" = 'yes'; then
32484 # Native Windows Build
32485 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32486 if test -f "${font_dir}a010013l.pfb"; then
32487 ghostscript_font_dir="$font_dir"
32488 break 1
32489 fi
32490 done
32491 if test "${PSDelegate}" != 'gswin32c'; then
32492 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32493 fi
32494 else
32495 # Linux / Mac OS X / Unix Build
32496 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
32497 if test -f "${font_dir}a010013l.pfb"; then
32498 ghostscript_font_dir="${font_dir}"
32499 break 1
32500 fi
32501 done
32502 if test "${ghostscript_font_dir}x" = 'x'; then
32503 if test "$PSDelegate" != 'gs'; then
32504 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32505 fi
32506 fi
32507 fi
32508fi
32509if test "${ghostscript_font_dir}x" != 'x'; then
32510 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032512$as_echo "$ghostscript_font_dir" >&6; }
32513else
cristy8b350f62009-11-15 23:12:43 +000032514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032515$as_echo "not found!" >&6; };
32516fi
32517
32518case "${build_os}" in
32519 mingw* )
32520 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32521 ;;
32522esac
32523
32524
32525
32526#
32527# Handle case where user doesn't want frozen paths
32528#
32529if test "$with_frozenpaths" != 'yes'; then
32530 # Re-set delegate definitions to default (no paths)
32531 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032532 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32533 BZIPDelegate="$BZIPDelegateDefault"
32534 BrowseDelegate="$BrowseDelegateDefault"
32535 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32536 CatDelegate="$CatDelegateDefault"
32537 ConvertDelegate="$ConvertDelegateDefault"
32538 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32539 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32540 EchoDelegate="$EchoDelegateDefault"
32541 EditorDelegate="$EditorDelegateDefault"
32542 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32543 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32544 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32545 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32546 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32547 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32548 LPDelegate="$LPDelegateDefault"
32549 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32550 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32551 LaunchDelegate="$LaunchDelegateDefault"
32552 MANDelegate="$MANDelegateDefault"
32553 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32554 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032555 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032556 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32557 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032558 PCLDelegate="$PCLDelegateDefault"
32559 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32560 POVDelegate="$POVDelegateDefault"
32561 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032562 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32563 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032564 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032565 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32566 ShowImageDelegate="$ShowImageDelegateDefault"
32567 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032568 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032569 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32570 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32571 XPSDelegate="$XPSDelegateDefault"
32572 ZipDelegate="$ZipDelegateDefault"
32573fi
32574
32575# Delegate substitutions
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618#
32619# RPM support.
32620#
32621RPM=''
32622for ac_prog in gnutar gtar tar
32623do
32624 # Extract the first word of "$ac_prog", so it can be a program name with args.
32625set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032628if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032629 $as_echo_n "(cached) " >&6
32630else
32631 if test -n "$TAR"; then
32632 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32633else
32634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32635for as_dir in $PATH
32636do
32637 IFS=$as_save_IFS
32638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32641 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643 break 2
32644 fi
32645done
cristy8b350f62009-11-15 23:12:43 +000032646 done
cristy3ed852e2009-09-05 21:47:34 +000032647IFS=$as_save_IFS
32648
32649fi
32650fi
32651TAR=$ac_cv_prog_TAR
32652if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032654$as_echo "$TAR" >&6; }
32655else
cristy8b350f62009-11-15 23:12:43 +000032656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032657$as_echo "no" >&6; }
32658fi
32659
32660
32661 test -n "$TAR" && break
32662done
32663
32664for ac_prog in perl
32665do
32666 # Extract the first word of "$ac_prog", so it can be a program name with args.
32667set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032670if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032671 $as_echo_n "(cached) " >&6
32672else
32673 if test -n "$PERL"; then
32674 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32675else
32676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32677for as_dir in $PATH
32678do
32679 IFS=$as_save_IFS
32680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32683 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032685 break 2
32686 fi
32687done
cristy8b350f62009-11-15 23:12:43 +000032688 done
cristy3ed852e2009-09-05 21:47:34 +000032689IFS=$as_save_IFS
32690
32691fi
32692fi
32693PERL=$ac_cv_prog_PERL
32694if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032696$as_echo "$PERL" >&6; }
32697else
cristy8b350f62009-11-15 23:12:43 +000032698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032699$as_echo "no" >&6; }
32700fi
32701
32702
32703 test -n "$PERL" && break
32704done
32705
32706for ac_prog in rpmbuild rpm
32707do
32708 # Extract the first word of "$ac_prog", so it can be a program name with args.
32709set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032711$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032712if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032713 $as_echo_n "(cached) " >&6
32714else
32715 if test -n "$RPM"; then
32716 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32717else
32718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32719for as_dir in $PATH
32720do
32721 IFS=$as_save_IFS
32722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32725 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032727 break 2
32728 fi
32729done
cristy8b350f62009-11-15 23:12:43 +000032730 done
cristy3ed852e2009-09-05 21:47:34 +000032731IFS=$as_save_IFS
32732
32733fi
32734fi
32735RPM=$ac_cv_prog_RPM
32736if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032738$as_echo "$RPM" >&6; }
32739else
cristy8b350f62009-11-15 23:12:43 +000032740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032741$as_echo "no" >&6; }
32742fi
32743
32744
32745 test -n "$RPM" && break
32746done
32747
32748
cristy73bd4a52010-10-05 11:24:23 +000032749ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32750
32751
32752AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32753
32754
32755AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32756
32757
32758AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32759
32760
32761 if test "x$RPM" != "x" ; then
32762 RPM_DELEGATE_TRUE=
32763 RPM_DELEGATE_FALSE='#'
32764else
32765 RPM_DELEGATE_TRUE='#'
32766 RPM_DELEGATE_FALSE=
32767fi
32768
cristy3ed852e2009-09-05 21:47:34 +000032769
32770#
32771# 7ZIP support (http://p7zip.sourceforge.net/)
32772#
32773P7ZIP=''
32774for ac_prog in 7za
32775do
32776 # Extract the first word of "$ac_prog", so it can be a program name with args.
32777set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032780if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032781 $as_echo_n "(cached) " >&6
32782else
32783 if test -n "$P7ZIP"; then
32784 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32785else
32786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32787for as_dir in $PATH
32788do
32789 IFS=$as_save_IFS
32790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32793 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032795 break 2
32796 fi
32797done
cristy8b350f62009-11-15 23:12:43 +000032798 done
cristy3ed852e2009-09-05 21:47:34 +000032799IFS=$as_save_IFS
32800
32801fi
32802fi
32803P7ZIP=$ac_cv_prog_P7ZIP
32804if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032806$as_echo "$P7ZIP" >&6; }
32807else
cristy8b350f62009-11-15 23:12:43 +000032808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032809$as_echo "no" >&6; }
32810fi
32811
32812
32813 test -n "$P7ZIP" && break
32814done
32815
32816
cristy73bd4a52010-10-05 11:24:23 +000032817 if test "x$P7ZIP" != "x" ; then
32818 P7ZIP_DELEGATE_TRUE=
32819 P7ZIP_DELEGATE_FALSE='#'
32820else
32821 P7ZIP_DELEGATE_TRUE='#'
32822 P7ZIP_DELEGATE_FALSE=
32823fi
32824
cristy3ed852e2009-09-05 21:47:34 +000032825
32826#
32827# ZIP support (http://www.info-zip.org/Zip.html)
32828#
32829ZIP=''
32830for ac_prog in zip
32831do
32832 # Extract the first word of "$ac_prog", so it can be a program name with args.
32833set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032836if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032837 $as_echo_n "(cached) " >&6
32838else
32839 if test -n "$ZIP"; then
32840 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32841else
32842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32843for as_dir in $PATH
32844do
32845 IFS=$as_save_IFS
32846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32849 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032851 break 2
32852 fi
32853done
cristy8b350f62009-11-15 23:12:43 +000032854 done
cristy3ed852e2009-09-05 21:47:34 +000032855IFS=$as_save_IFS
32856
32857fi
32858fi
32859ZIP=$ac_cv_prog_ZIP
32860if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032862$as_echo "$ZIP" >&6; }
32863else
cristy8b350f62009-11-15 23:12:43 +000032864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032865$as_echo "no" >&6; }
32866fi
32867
32868
32869 test -n "$ZIP" && break
32870done
32871
32872
cristy73bd4a52010-10-05 11:24:23 +000032873 if test "x$ZIP" != "x" ; then
32874 ZIP_DELEGATE_TRUE=
32875 ZIP_DELEGATE_FALSE='#'
32876else
32877 ZIP_DELEGATE_TRUE='#'
32878 ZIP_DELEGATE_FALSE=
32879fi
32880
cristy3ed852e2009-09-05 21:47:34 +000032881
32882#
32883# GhostPCL related configuration.
32884#
32885PCLColorDevice=ppmraw
32886PCLCMYKDevice=bmpsep8
32887PCLMonoDevice=pbmraw
32888if test -z "$PCLVersion"; then
32889 PCLVersion='unknown'
32890fi
32891if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032893$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032895$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo "" >&6; }
32898 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo_n "checking for pcl color device... " >&6; }
32901 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32902 :
32903 else
32904 PCLColorDevice=ppmraw
32905 fi
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "$PCLColorDevice" >&6; }
32908
32909 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo_n "checking for pcl CMYK device... " >&6; }
32912 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32913 :
32914 else
32915 PCLCMYKDevice=$PCLColorDevice
32916 fi
cristy8b350f62009-11-15 23:12:43 +000032917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918$as_echo "$PCLCMYKDevice" >&6; }
32919
32920 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032922$as_echo_n "checking for pcl mono device... " >&6; }
32923 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32924 :
32925 else
32926 PCLMonoDevice=$PCLColorDevice
32927 fi
cristy8b350f62009-11-15 23:12:43 +000032928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929$as_echo "$PCLMonoDevice" >&6; }
32930fi
32931
32932
32933
32934
32935
32936
32937#
32938# GhostXPS related configuration.
32939#
32940XPSColorDevice=ppmraw
32941XPSCMYKDevice=bmpsep8
32942XPSMonoDevice=pbmraw
32943if test -z "$XPSVersion"; then
32944 XPSVersion='unknown'
32945fi
32946if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "" >&6; }
32953 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo_n "checking for xps color device... " >&6; }
32956 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32957 :
32958 else
32959 XPSColorDevice=ppmraw
32960 fi
cristy8b350f62009-11-15 23:12:43 +000032961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo "$XPSColorDevice" >&6; }
32963
32964 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo_n "checking for xps CMYK device... " >&6; }
32967 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32968 :
32969 else
32970 XPSCMYKDevice=$XPSColorDevice
32971 fi
cristy8b350f62009-11-15 23:12:43 +000032972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973$as_echo "$XPSCMYKDevice" >&6; }
32974
32975 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032977$as_echo_n "checking for xps mono device... " >&6; }
32978 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32979 :
32980 else
32981 XPSMonoDevice=$XPSColorDevice
32982 fi
cristy8b350f62009-11-15 23:12:43 +000032983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984$as_echo "$XPSMonoDevice" >&6; }
32985fi
32986
32987
32988
32989
32990
32991
32992#
32993# Ghostscript related configuration.
32994#
cristya97426c2011-02-04 01:41:27 +000032995GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032996GSColorDevice=pnmraw
32997GSCMYKDevice=pam
32998GSMonoDevice=pbmraw
32999GSPDFDevice=pdfwrite
33000GSPSDevice=pswrite
33001GSEPSDevice=epswrite
33002GSVersion='unknown'
33003if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo_n "checking for Ghostscript version... " >&6; }
33012 if GSVersion=`$PSDelegate --version`; then
33013 :
33014 else
33015 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
33016 fi
cristy8b350f62009-11-15 23:12:43 +000033017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000033018$as_echo "$GSVersion" >&6; }
33019
33020 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000033021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033022$as_echo_n "checking for gs alpha device... " >&6; }
33023 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33024 :
33025 else
33026 GSAlphaDevice=pnmraw
33027 fi
cristy8b350f62009-11-15 23:12:43 +000033028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033029$as_echo "$GSAlphaDevice" >&6; }
33030
33031 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo_n "checking for gs color device... " >&6; }
33034 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33035 :
33036 else
33037 GSColorDevice=pnmraw
33038 fi
cristy8b350f62009-11-15 23:12:43 +000033039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo "$GSColorDevice" >&6; }
33041
33042 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo_n "checking for gs CMYK device... " >&6; }
33045 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33046 :
33047 else
33048 GSCMYKDevice=bmpsep8
33049 fi
cristy8b350f62009-11-15 23:12:43 +000033050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051$as_echo "$GSCMYKDevice" >&6; }
33052
33053 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo_n "checking for gs mono device... " >&6; }
33056 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33057 :
33058 else
33059 GSMonoDevice=$GSColorDevice
33060 fi
cristy8b350f62009-11-15 23:12:43 +000033061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062$as_echo "$GSMonoDevice" >&6; }
33063
33064 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo_n "checking for gs PDF writing device... " >&6; }
33067 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33068 :
33069 else
33070 GSPDFDevice=nodevice
33071 fi
cristy8b350f62009-11-15 23:12:43 +000033072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033073$as_echo "$GSPDFDevice" >&6; }
33074
33075 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo_n "checking for gs PS writing device... " >&6; }
33078 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33079 :
33080 else
33081 GSPSDevice=nodevice
33082 fi
cristy8b350f62009-11-15 23:12:43 +000033083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033084$as_echo "$GSPSDevice" >&6; }
33085
33086 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033088$as_echo_n "checking for gs EPS writing device... " >&6; }
33089 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33090 :
33091 else
33092 GSEPSDevice=nodevice
33093 fi
cristy8b350f62009-11-15 23:12:43 +000033094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo "$GSEPSDevice" >&6; }
33096fi
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107#
33108# PerlMagick-related configuration
33109#
33110
33111# Look for PERL if PerlMagick requested
33112# If name/path of desired PERL interpreter is specified, look for that one first
33113have_perl='no'
33114if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033120$as_echo "" >&6; }
33121 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033124if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033125 $as_echo_n "(cached) " >&6
33126else
33127 ac_cv_path_PERL="$with_perl"
33128fi
cristy8b350f62009-11-15 23:12:43 +000033129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo "$ac_cv_path_PERL" >&6; };
33131 PERL=$ac_cv_path_PERL
33132 have_perl="$ac_cv_path_PERL"
33133 else
33134 for ac_prog in perl perl5
33135do
33136 # Extract the first word of "$ac_prog", so it can be a program name with args.
33137set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033140if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033141 $as_echo_n "(cached) " >&6
33142else
33143 case $PERL in
33144 [\\/]* | ?:[\\/]*)
33145 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33146 ;;
33147 *)
33148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33149for as_dir in $PATH
33150do
33151 IFS=$as_save_IFS
33152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33155 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157 break 2
33158 fi
33159done
cristy8b350f62009-11-15 23:12:43 +000033160 done
cristy3ed852e2009-09-05 21:47:34 +000033161IFS=$as_save_IFS
33162
33163 ;;
33164esac
33165fi
33166PERL=$ac_cv_path_PERL
33167if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033169$as_echo "$PERL" >&6; }
33170else
cristy8b350f62009-11-15 23:12:43 +000033171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo "no" >&6; }
33173fi
33174
33175
33176 test -n "$PERL" && break
33177done
33178 if test "$ac_cv_path_PERL"; then
33179 have_perl="$ac_cv_path_PERL"
33180 fi
33181 fi
33182fi
33183
cristy949301e2010-01-06 01:38:40 +000033184if test "$with_perl" != 'yes' ; then
33185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33186fi
33187
33188PERL_SUPPORTS_DESTDIR='no'
33189
cristy3ed852e2009-09-05 21:47:34 +000033190with_perl_static='no'
33191with_perl_dynamic='no'
33192if test "$have_perl" != 'no'; then
33193 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33194 with_perl_static='yes'
33195 fi
33196 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33197 with_perl_dynamic='yes'
33198 fi
33199 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033200
33201
33202
33203
33204 if test -n "$PERL"; then :
33205
33206 ax_perl_version="5.8.1"
33207
33208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33209$as_echo_n "checking for perl version... " >&6; }
33210
33211 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33212
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33214$as_echo "$perl_version" >&6; }
33215
33216 PERL_VERSION=$perl_version
33217
33218
33219
33220
33221
33222 # Used to indicate true or false condition
33223 ax_compare_version=false
33224
33225 # Convert the two version strings to be compared into a format that
33226 # allows a simple string comparison. The end result is that a version
33227 # string of the form 1.12.5-r617 will be converted to the form
33228 # 0001001200050617. In other words, each number is zero padded to four
33229 # digits, and non digits are removed.
33230
33231 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33232 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33233 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33234 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33235 -e 's/[^0-9]//g'`
33236
33237
33238 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33239 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33240 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33241 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33242 -e 's/[^0-9]//g'`
33243
33244
33245 ax_compare_version=`echo "x$ax_compare_version_A
33246x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33247
33248
33249
33250 if test "$ax_compare_version" = "true" ; then
33251
33252 :
33253 PERL_SUPPORTS_DESTDIR='yes'
33254
33255 else
33256 :
33257 PERL_SUPPORTS_DESTDIR='no'
33258
33259 fi
33260
33261
33262else
33263
33264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33265$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33266 PERL_SUPPORTS_DESTDIR='no'
33267
cristy3ed852e2009-09-05 21:47:34 +000033268fi
cristy73bd4a52010-10-05 11:24:23 +000033269
33270fi
33271 if test "$have_perl" != 'no'; then
33272 WITH_PERL_TRUE=
33273 WITH_PERL_FALSE='#'
33274else
33275 WITH_PERL_TRUE='#'
33276 WITH_PERL_FALSE=
33277fi
33278
33279 if test $with_perl_static = 'yes'; then
33280 WITH_PERL_STATIC_TRUE=
33281 WITH_PERL_STATIC_FALSE='#'
33282else
33283 WITH_PERL_STATIC_TRUE='#'
33284 WITH_PERL_STATIC_FALSE=
33285fi
33286
33287 if test $with_perl_dynamic = 'yes'; then
33288 WITH_PERL_DYNAMIC_TRUE=
33289 WITH_PERL_DYNAMIC_FALSE='#'
33290else
33291 WITH_PERL_DYNAMIC_TRUE='#'
33292 WITH_PERL_DYNAMIC_FALSE=
33293fi
33294
cristy3ed852e2009-09-05 21:47:34 +000033295
33296
33297# Determine path to pick up MagickCore library from for use with building PerlMagick
33298MAGICKCORE_PATH="${LIB_DIR}"
33299if test $with_perl_static = 'yes'; then
33300 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33301 libtool_objdir=$objdir
33302
33303 # Linker search path to library, followed by -lMagickCore
33304 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33305fi
33306
33307
33308# Create a simple string containing format names for all delegate libraries
33309DELEGATES=''
33310if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33311if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33312if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33313if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33314if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33315if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33316if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33317if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33318if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33319if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33320if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33321if test "$have_jpeg" = 'yes'; then
33322 DELEGATES="$DELEGATES jpeg";
33323 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33324fi
33325if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033326if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033327if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33328if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033329if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033330if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33331if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33332if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33333if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33334if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33335if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33336if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33337if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33338if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33339
33340
33341
33342#
33343# Handle special compiler flags
33344#
33345
33346# Add '-p' if prof source profiling support enabled
33347if test "$enable_prof" = 'yes'; then
33348 CFLAGS="-p $CFLAGS"
33349 CXXFLAGS="-p $CXXFLAGS"
33350 LDFLAGS="-p $LDFLAGS"
33351fi
33352
33353# Add '-pg' if gprof source profiling support enabled
33354if test "$enable_gprof" = 'yes'; then
33355 CFLAGS="-pg $CFLAGS"
33356 CXXFLAGS="-pg $CXXFLAGS"
33357 LDFLAGS="-pg $LDFLAGS"
33358fi
33359
33360# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33361# This is a gcc-specific feature
33362if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033365if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033366 $as_echo_n "(cached) " >&6
33367else
33368 ac_check_lib_save_LIBS=$LIBS
33369LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033371/* end confdefs.h. */
33372
33373/* Override any GCC internal prototype to avoid an error.
33374 Use char because int might match the return type of a GCC
33375 builtin and then its argument prototype would still apply. */
33376#ifdef __cplusplus
33377extern "C"
33378#endif
33379char _gcov_init ();
33380int
33381main ()
33382{
33383return _gcov_init ();
33384 ;
33385 return 0;
33386}
33387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033388if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033389 ac_cv_lib_gcov__gcov_init=yes
33390else
cristy8b350f62009-11-15 23:12:43 +000033391 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033392fi
cristy8b350f62009-11-15 23:12:43 +000033393rm -f core conftest.err conftest.$ac_objext \
33394 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033395LIBS=$ac_check_lib_save_LIBS
33396fi
cristy8b350f62009-11-15 23:12:43 +000033397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033398$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033399if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033400 cat >>confdefs.h <<_ACEOF
33401#define HAVE_LIBGCOV 1
33402_ACEOF
33403
33404 LIBS="-lgcov $LIBS"
33405
33406fi
33407
cristy8b350f62009-11-15 23:12:43 +000033408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033410if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033411 $as_echo_n "(cached) " >&6
33412else
33413 ac_check_lib_save_LIBS=$LIBS
33414LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033416/* end confdefs.h. */
33417
33418/* Override any GCC internal prototype to avoid an error.
33419 Use char because int might match the return type of a GCC
33420 builtin and then its argument prototype would still apply. */
33421#ifdef __cplusplus
33422extern "C"
33423#endif
33424char __gcov_init ();
33425int
33426main ()
33427{
33428return __gcov_init ();
33429 ;
33430 return 0;
33431}
33432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033434 ac_cv_lib_gcov___gcov_init=yes
33435else
cristy8b350f62009-11-15 23:12:43 +000033436 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033437fi
cristy8b350f62009-11-15 23:12:43 +000033438rm -f core conftest.err conftest.$ac_objext \
33439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033440LIBS=$ac_check_lib_save_LIBS
33441fi
cristy8b350f62009-11-15 23:12:43 +000033442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033444if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033445 cat >>confdefs.h <<_ACEOF
33446#define HAVE_LIBGCOV 1
33447_ACEOF
33448
33449 LIBS="-lgcov $LIBS"
33450
33451fi
33452
33453 case "$target_os" in
33454 darwin*)
33455 OSX_GCOV_LDFLAG="-Wl,-single_module"
33456 ;;
33457 *)
33458 OSX_GCOV_LDFLAG=""
33459 ;;
33460 esac
33461
33462 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33463 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33464 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33465fi
33466
33467#
33468# Build library dependency list for libMagickCore
33469#
33470
33471MAGICK_LIBLTDL='' # Libltdl for build
33472MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33473MAGICK_LTDLDEPS='' # extra libltdl dependencies
33474if test "$with_ltdl" != 'no'
33475then
33476 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33477 MAGICK_API_LIBLTDL='-lltdl'
33478 fi
33479 MAGICK_LIBLTDL=${LIBLTDL}
33480 MAGICK_LTDLDEPS=${LTDLDEPS}
33481fi
33482
33483
33484
33485if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033486 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 +000033487else
cristyb1860752011-03-14 00:27:46 +000033488 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 +000033489fi
33490
33491
33492#
33493# Remove extraneous spaces from output variables (asthetic)
33494#
33495X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33496X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33497X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33498X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33499
33500CC=`echo $CC | sed -e 's/ */ /g'`
33501CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33502CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33503CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33504DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33505DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33506LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33507TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33508MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33509#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33510
33511# Pass only user-provided LIBS as "global" libraries
33512LIBS=$USER_LIBS
33513
33514#AC_SUBST(CPPFLAGS)
33515
33516#AC_SUBST(LDFLAGS)
33517#AC_SUBST(X_PRE_LIBS)
33518#AC_SUBST(X_LIBS)
33519#AC_SUBST(X_EXTRA_LIBS)
33520
33521MAGICK_CFLAGS=$CFLAGS
33522MAGICK_CXXFLAGS="$CXXFLAGS"
33523MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33524MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33525MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33526MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33527
33528
33529
33530
33531
33532
33533
33534
cristyfd9dcd42010-08-08 18:07:02 +000033535
cristy3ed852e2009-09-05 21:47:34 +000033536# Set configured scripts to executable.
33537ac_config_commands="$ac_config_commands default"
33538
33539ac_config_commands="$ac_config_commands MagickCore-config.in"
33540
33541ac_config_commands="$ac_config_commands Magick-config.in"
33542
33543ac_config_commands="$ac_config_commands MagickWand-config.in"
33544
33545ac_config_commands="$ac_config_commands Wand-config.in"
33546
33547ac_config_commands="$ac_config_commands Magick++-config.in"
33548
33549ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33550
33551
cristy8b350f62009-11-15 23:12:43 +000033552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033553$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033555$as_echo "Update ImageMagick configuration" >&6; }
33556cat >confcache <<\_ACEOF
33557# This file is a shell script that caches the results of configure
33558# tests run on this system so they can be shared between configure
33559# scripts and configure runs, see configure's option --config-cache.
33560# It is not useful on other systems. If it contains results you don't
33561# want to keep, you may remove or edit it.
33562#
33563# config.status only pays attention to the cache file if you give it
33564# the --recheck option to rerun configure.
33565#
33566# `ac_cv_env_foo' variables (set or unset) will be overridden when
33567# loading this file, other *unset* `ac_cv_foo' will be assigned the
33568# following values.
33569
33570_ACEOF
33571
33572# The following way of writing the cache mishandles newlines in values,
33573# but we know of no workaround that is simple, portable, and efficient.
33574# So, we kill variables containing newlines.
33575# Ultrix sh set writes to stderr and can't be redirected directly,
33576# and sets the high bit in the cache file unless we assign to the vars.
33577(
33578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33579 eval ac_val=\$$ac_var
33580 case $ac_val in #(
33581 *${as_nl}*)
33582 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33585 esac
33586 case $ac_var in #(
33587 _ | IFS | as_nl) ;; #(
33588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033589 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033590 esac ;;
33591 esac
33592 done
33593
33594 (set) 2>&1 |
33595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33596 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033597 # `set' does not quote correctly, so add quotes: double-quote
33598 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033599 sed -n \
33600 "s/'/'\\\\''/g;
33601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33602 ;; #(
33603 *)
33604 # `set' quotes correctly as required by POSIX, so do not add quotes.
33605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33606 ;;
33607 esac |
33608 sort
33609) |
33610 sed '
33611 /^ac_cv_env_/b end
33612 t clear
33613 :clear
33614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33615 t end
33616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33617 :end' >>confcache
33618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33619 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033620 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033623 if test ! -f "$cache_file" || test -h "$cache_file"; then
33624 cat confcache >"$cache_file"
33625 else
33626 case $cache_file in #(
33627 */* | ?:*)
33628 mv -f confcache "$cache_file"$$ &&
33629 mv -f "$cache_file"$$ "$cache_file" ;; #(
33630 *)
33631 mv -f confcache "$cache_file" ;;
33632 esac
33633 fi
33634 fi
cristy3ed852e2009-09-05 21:47:34 +000033635 else
cristy8b350f62009-11-15 23:12:43 +000033636 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033637$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33638 fi
33639fi
33640rm -f confcache
33641
33642test "x$prefix" = xNONE && prefix=$ac_default_prefix
33643# Let make expand exec_prefix.
33644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33645
33646DEFS=-DHAVE_CONFIG_H
33647
33648ac_libobjs=
33649ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033650U=
cristy3ed852e2009-09-05 21:47:34 +000033651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33652 # 1. Remove the extension, and $U if already installed.
33653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33654 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33656 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033657 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33658 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033659done
33660LIBOBJS=$ac_libobjs
33661
33662LTLIBOBJS=$ac_ltlibobjs
33663
33664
cristy73bd4a52010-10-05 11:24:23 +000033665 if test -n "$EXEEXT"; then
33666 am__EXEEXT_TRUE=
33667 am__EXEEXT_FALSE='#'
33668else
33669 am__EXEEXT_TRUE='#'
33670 am__EXEEXT_FALSE=
33671fi
cristy3ed852e2009-09-05 21:47:34 +000033672
cristy73bd4a52010-10-05 11:24:23 +000033673if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033674 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033675Usually this means the macro was only invoked conditionally." "$LINENO" 5
33676fi
33677if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033678 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033679Usually this means the macro was only invoked conditionally." "$LINENO" 5
33680fi
33681if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033682 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033683Usually this means the macro was only invoked conditionally." "$LINENO" 5
33684fi
33685if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033686 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033687Usually this means the macro was only invoked conditionally." "$LINENO" 5
33688fi
33689if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033690 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033691Usually this means the macro was only invoked conditionally." "$LINENO" 5
33692fi
33693if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033694 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033695Usually this means the macro was only invoked conditionally." "$LINENO" 5
33696fi
33697if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033698 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033699Usually this means the macro was only invoked conditionally." "$LINENO" 5
33700fi
33701if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033702 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033703Usually this means the macro was only invoked conditionally." "$LINENO" 5
33704fi
cristy73bd4a52010-10-05 11:24:23 +000033705if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033706 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033707Usually this means the macro was only invoked conditionally." "$LINENO" 5
33708fi
33709if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033710 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033711Usually this means the macro was only invoked conditionally." "$LINENO" 5
33712fi
33713LT_CONFIG_H=config/config.h
33714
33715 _ltdl_libobjs=
33716 _ltdl_ltlibobjs=
33717 if test -n "$_LT_LIBOBJS"; then
33718 # Remove the extension.
33719 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33720 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33721 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33722 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33723 done
33724 fi
33725 ltdl_LIBOBJS=$_ltdl_libobjs
33726
33727 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33728
33729
33730if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033731 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033732Usually this means the macro was only invoked conditionally." "$LINENO" 5
33733fi
33734if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033735 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033736Usually this means the macro was only invoked conditionally." "$LINENO" 5
33737fi
33738if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033739 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033740Usually this means the macro was only invoked conditionally." "$LINENO" 5
33741fi
33742if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033743 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033744Usually this means the macro was only invoked conditionally." "$LINENO" 5
33745fi
33746
33747if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033748 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033749Usually this means the macro was only invoked conditionally." "$LINENO" 5
33750fi
33751if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033752 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033753Usually this means the macro was only invoked conditionally." "$LINENO" 5
33754fi
33755if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033756 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033757Usually this means the macro was only invoked conditionally." "$LINENO" 5
33758fi
33759if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033760 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033761Usually this means the macro was only invoked conditionally." "$LINENO" 5
33762fi
33763if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033764 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033765Usually this means the macro was only invoked conditionally." "$LINENO" 5
33766fi
33767if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033768 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033769Usually this means the macro was only invoked conditionally." "$LINENO" 5
33770fi
33771if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033772 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033773Usually this means the macro was only invoked conditionally." "$LINENO" 5
33774fi
33775if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033776 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033777Usually this means the macro was only invoked conditionally." "$LINENO" 5
33778fi
33779if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033780 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033781Usually this means the macro was only invoked conditionally." "$LINENO" 5
33782fi
33783if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033784 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033785Usually this means the macro was only invoked conditionally." "$LINENO" 5
33786fi
33787if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033788 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033789Usually this means the macro was only invoked conditionally." "$LINENO" 5
33790fi
33791if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033792 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033793Usually this means the macro was only invoked conditionally." "$LINENO" 5
33794fi
33795if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033796 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033797Usually this means the macro was only invoked conditionally." "$LINENO" 5
33798fi
33799if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033800 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033801Usually this means the macro was only invoked conditionally." "$LINENO" 5
33802fi
33803if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033804 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033805Usually this means the macro was only invoked conditionally." "$LINENO" 5
33806fi
33807if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033808 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033809Usually this means the macro was only invoked conditionally." "$LINENO" 5
33810fi
33811if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033812 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033813Usually this means the macro was only invoked conditionally." "$LINENO" 5
33814fi
33815if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033816 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033817Usually this means the macro was only invoked conditionally." "$LINENO" 5
33818fi
33819if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033820 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033821Usually this means the macro was only invoked conditionally." "$LINENO" 5
33822fi
33823if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033824 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033825Usually this means the macro was only invoked conditionally." "$LINENO" 5
33826fi
cristyfbb0ef02010-12-19 02:32:11 +000033827if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33828 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33829Usually this means the macro was only invoked conditionally." "$LINENO" 5
33830fi
cristy73bd4a52010-10-05 11:24:23 +000033831if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033832 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033833Usually this means the macro was only invoked conditionally." "$LINENO" 5
33834fi
33835if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033836 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033837Usually this means the macro was only invoked conditionally." "$LINENO" 5
33838fi
33839if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033840 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033841Usually this means the macro was only invoked conditionally." "$LINENO" 5
33842fi
33843if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033844 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033845Usually this means the macro was only invoked conditionally." "$LINENO" 5
33846fi
33847if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033848 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033849Usually this means the macro was only invoked conditionally." "$LINENO" 5
33850fi
cristyb1860752011-03-14 00:27:46 +000033851if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
33852 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
33853Usually this means the macro was only invoked conditionally." "$LINENO" 5
33854fi
cristy73bd4a52010-10-05 11:24:23 +000033855if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033856 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033857Usually this means the macro was only invoked conditionally." "$LINENO" 5
33858fi
33859if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033860 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033861Usually this means the macro was only invoked conditionally." "$LINENO" 5
33862fi
33863if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033864 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033865Usually this means the macro was only invoked conditionally." "$LINENO" 5
33866fi
33867if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033868 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033869Usually this means the macro was only invoked conditionally." "$LINENO" 5
33870fi
33871if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033872 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033873Usually this means the macro was only invoked conditionally." "$LINENO" 5
33874fi
33875if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033876 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033877Usually this means the macro was only invoked conditionally." "$LINENO" 5
33878fi
33879if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033880 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033881Usually this means the macro was only invoked conditionally." "$LINENO" 5
33882fi
33883if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033884 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033885Usually this means the macro was only invoked conditionally." "$LINENO" 5
33886fi
cristy3ed852e2009-09-05 21:47:34 +000033887
cristyda16f162011-02-19 23:52:17 +000033888: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033889ac_write_fail=0
33890ac_clean_files_save=$ac_clean_files
33891ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033892{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033894as_write_fail=0
33895cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033896#! $SHELL
33897# Generated by $as_me.
33898# Run this file to recreate the current configuration.
33899# Compiler output produced by configure, useful for debugging
33900# configure, is in config.log if it exists.
33901
33902debug=false
33903ac_cs_recheck=false
33904ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033905
cristy8b350f62009-11-15 23:12:43 +000033906SHELL=\${CONFIG_SHELL-$SHELL}
33907export SHELL
33908_ASEOF
33909cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33910## -------------------- ##
33911## M4sh Initialization. ##
33912## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033913
33914# Be more Bourne compatible
33915DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033916if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033917 emulate sh
33918 NULLCMD=:
33919 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33920 # is contrary to our usage. Disable this feature.
33921 alias -g '${1+"$@"}'='"$@"'
33922 setopt NO_GLOB_SUBST
33923else
cristy8b350f62009-11-15 23:12:43 +000033924 case `(set -o) 2>/dev/null` in #(
33925 *posix*) :
33926 set -o posix ;; #(
33927 *) :
33928 ;;
cristy3ed852e2009-09-05 21:47:34 +000033929esac
cristy3ed852e2009-09-05 21:47:34 +000033930fi
33931
33932
cristy3ed852e2009-09-05 21:47:34 +000033933as_nl='
33934'
33935export as_nl
33936# Printing a long string crashes Solaris 7 /usr/bin/printf.
33937as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33938as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33939as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033940# Prefer a ksh shell builtin over an external printf program on Solaris,
33941# but without wasting forks for bash or zsh.
33942if test -z "$BASH_VERSION$ZSH_VERSION" \
33943 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33944 as_echo='print -r --'
33945 as_echo_n='print -rn --'
33946elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033947 as_echo='printf %s\n'
33948 as_echo_n='printf %s'
33949else
33950 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33951 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33952 as_echo_n='/usr/ucb/echo -n'
33953 else
33954 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33955 as_echo_n_body='eval
33956 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033957 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033958 *"$as_nl"*)
33959 expr "X$arg" : "X\\(.*\\)$as_nl";
33960 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33961 esac;
33962 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33963 '
33964 export as_echo_n_body
33965 as_echo_n='sh -c $as_echo_n_body as_echo'
33966 fi
33967 export as_echo_body
33968 as_echo='sh -c $as_echo_body as_echo'
33969fi
33970
33971# The user is always right.
33972if test "${PATH_SEPARATOR+set}" != set; then
33973 PATH_SEPARATOR=:
33974 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33975 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33976 PATH_SEPARATOR=';'
33977 }
33978fi
33979
cristy3ed852e2009-09-05 21:47:34 +000033980
33981# IFS
33982# We need space, tab and new line, in precisely that order. Quoting is
33983# there to prevent editors from complaining about space-tab.
33984# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33985# splitting by setting IFS to empty value.)
33986IFS=" "" $as_nl"
33987
33988# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033989as_myself=
cristy8b350f62009-11-15 23:12:43 +000033990case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033991 *[\\/]* ) as_myself=$0 ;;
33992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33993for as_dir in $PATH
33994do
33995 IFS=$as_save_IFS
33996 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033997 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33998 done
cristy3ed852e2009-09-05 21:47:34 +000033999IFS=$as_save_IFS
34000
34001 ;;
34002esac
34003# We did not find ourselves, most probably we were run as `sh COMMAND'
34004# in which case we are not to be found in the path.
34005if test "x$as_myself" = x; then
34006 as_myself=$0
34007fi
34008if test ! -f "$as_myself"; then
34009 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000034010 exit 1
cristy3ed852e2009-09-05 21:47:34 +000034011fi
34012
cristy8b350f62009-11-15 23:12:43 +000034013# Unset variables that we do not need and which cause bugs (e.g. in
34014# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34015# suppresses any "Segmentation fault" message there. '((' could
34016# trigger a bug in pdksh 5.2.14.
34017for as_var in BASH_ENV ENV MAIL MAILPATH
34018do eval test x\${$as_var+set} = xset \
34019 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000034020done
34021PS1='$ '
34022PS2='> '
34023PS4='+ '
34024
34025# NLS nuisances.
34026LC_ALL=C
34027export LC_ALL
34028LANGUAGE=C
34029export LANGUAGE
34030
cristy8b350f62009-11-15 23:12:43 +000034031# CDPATH.
34032(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34033
34034
cristy98dddb52010-11-04 00:30:15 +000034035# as_fn_error STATUS ERROR [LINENO LOG_FD]
34036# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000034037# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34038# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000034039# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034040as_fn_error ()
34041{
cristy98dddb52010-11-04 00:30:15 +000034042 as_status=$1; test $as_status -eq 0 && as_status=1
34043 if test "$4"; then
34044 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34045 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034046 fi
cristy98dddb52010-11-04 00:30:15 +000034047 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034048 as_fn_exit $as_status
34049} # as_fn_error
34050
34051
34052# as_fn_set_status STATUS
34053# -----------------------
34054# Set $? to STATUS, without forking.
34055as_fn_set_status ()
34056{
34057 return $1
34058} # as_fn_set_status
34059
34060# as_fn_exit STATUS
34061# -----------------
34062# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34063as_fn_exit ()
34064{
34065 set +e
34066 as_fn_set_status $1
34067 exit $1
34068} # as_fn_exit
34069
34070# as_fn_unset VAR
34071# ---------------
34072# Portably unset VAR.
34073as_fn_unset ()
34074{
34075 { eval $1=; unset $1;}
34076}
34077as_unset=as_fn_unset
34078# as_fn_append VAR VALUE
34079# ----------------------
34080# Append the text in VALUE to the end of the definition contained in VAR. Take
34081# advantage of any shell optimizations that allow amortized linear growth over
34082# repeated appends, instead of the typical quadratic growth present in naive
34083# implementations.
34084if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34085 eval 'as_fn_append ()
34086 {
34087 eval $1+=\$2
34088 }'
34089else
34090 as_fn_append ()
34091 {
34092 eval $1=\$$1\$2
34093 }
34094fi # as_fn_append
34095
34096# as_fn_arith ARG...
34097# ------------------
34098# Perform arithmetic evaluation on the ARGs, and store the result in the
34099# global $as_val. Take advantage of shells that can avoid forks. The arguments
34100# must be portable across $(()) and expr.
34101if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34102 eval 'as_fn_arith ()
34103 {
34104 as_val=$(( $* ))
34105 }'
34106else
34107 as_fn_arith ()
34108 {
34109 as_val=`expr "$@" || test $? -eq 1`
34110 }
34111fi # as_fn_arith
34112
34113
cristy3ed852e2009-09-05 21:47:34 +000034114if expr a : '\(a\)' >/dev/null 2>&1 &&
34115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34116 as_expr=expr
34117else
34118 as_expr=false
34119fi
34120
34121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34122 as_basename=basename
34123else
34124 as_basename=false
34125fi
34126
cristy8b350f62009-11-15 23:12:43 +000034127if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34128 as_dirname=dirname
34129else
34130 as_dirname=false
34131fi
cristy3ed852e2009-09-05 21:47:34 +000034132
cristy3ed852e2009-09-05 21:47:34 +000034133as_me=`$as_basename -- "$0" ||
34134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34135 X"$0" : 'X\(//\)$' \| \
34136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34137$as_echo X/"$0" |
34138 sed '/^.*\/\([^/][^/]*\)\/*$/{
34139 s//\1/
34140 q
34141 }
34142 /^X\/\(\/\/\)$/{
34143 s//\1/
34144 q
34145 }
34146 /^X\/\(\/\).*/{
34147 s//\1/
34148 q
34149 }
34150 s/.*/./; q'`
34151
cristy8b350f62009-11-15 23:12:43 +000034152# Avoid depending upon Character Ranges.
34153as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34154as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34155as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34156as_cr_digits='0123456789'
34157as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034158
34159ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034160case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034161-n*)
cristy8b350f62009-11-15 23:12:43 +000034162 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034163 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034164 xy) ECHO_C='\c';;
34165 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34166 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034167 esac;;
34168*)
34169 ECHO_N='-n';;
34170esac
cristy3ed852e2009-09-05 21:47:34 +000034171
34172rm -f conf$$ conf$$.exe conf$$.file
34173if test -d conf$$.dir; then
34174 rm -f conf$$.dir/conf$$.file
34175else
34176 rm -f conf$$.dir
34177 mkdir conf$$.dir 2>/dev/null
34178fi
34179if (echo >conf$$.file) 2>/dev/null; then
34180 if ln -s conf$$.file conf$$ 2>/dev/null; then
34181 as_ln_s='ln -s'
34182 # ... but there are two gotchas:
34183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34185 # In both cases, we have to default to `cp -p'.
34186 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34187 as_ln_s='cp -p'
34188 elif ln conf$$.file conf$$ 2>/dev/null; then
34189 as_ln_s=ln
34190 else
34191 as_ln_s='cp -p'
34192 fi
34193else
34194 as_ln_s='cp -p'
34195fi
34196rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34197rmdir conf$$.dir 2>/dev/null
34198
cristy8b350f62009-11-15 23:12:43 +000034199
34200# as_fn_mkdir_p
34201# -------------
34202# Create "$as_dir" as a directory, including parents if necessary.
34203as_fn_mkdir_p ()
34204{
34205
34206 case $as_dir in #(
34207 -*) as_dir=./$as_dir;;
34208 esac
34209 test -d "$as_dir" || eval $as_mkdir_p || {
34210 as_dirs=
34211 while :; do
34212 case $as_dir in #(
34213 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34214 *) as_qdir=$as_dir;;
34215 esac
34216 as_dirs="'$as_qdir' $as_dirs"
34217 as_dir=`$as_dirname -- "$as_dir" ||
34218$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34219 X"$as_dir" : 'X\(//\)[^/]' \| \
34220 X"$as_dir" : 'X\(//\)$' \| \
34221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34222$as_echo X"$as_dir" |
34223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34224 s//\1/
34225 q
34226 }
34227 /^X\(\/\/\)[^/].*/{
34228 s//\1/
34229 q
34230 }
34231 /^X\(\/\/\)$/{
34232 s//\1/
34233 q
34234 }
34235 /^X\(\/\).*/{
34236 s//\1/
34237 q
34238 }
34239 s/.*/./; q'`
34240 test -d "$as_dir" && break
34241 done
34242 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034243 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034244
34245
34246} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034247if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034248 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034249else
34250 test -d ./-p && rmdir ./-p
34251 as_mkdir_p=false
34252fi
34253
34254if test -x / >/dev/null 2>&1; then
34255 as_test_x='test -x'
34256else
34257 if ls -dL / >/dev/null 2>&1; then
34258 as_ls_L_option=L
34259 else
34260 as_ls_L_option=
34261 fi
34262 as_test_x='
34263 eval sh -c '\''
34264 if test -d "$1"; then
34265 test -d "$1/.";
34266 else
cristy8b350f62009-11-15 23:12:43 +000034267 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034268 -*)set "./$1";;
34269 esac;
cristy8b350f62009-11-15 23:12:43 +000034270 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034271 ???[sx]*):;;*)false;;esac;fi
34272 '\'' sh
34273 '
34274fi
34275as_executable_p=$as_test_x
34276
34277# Sed expression to map a string onto a valid CPP name.
34278as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34279
34280# Sed expression to map a string onto a valid variable name.
34281as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34282
34283
34284exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034285## ----------------------------------- ##
34286## Main body of $CONFIG_STATUS script. ##
34287## ----------------------------------- ##
34288_ASEOF
34289test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034290
cristy8b350f62009-11-15 23:12:43 +000034291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34292# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034293# report actual input values of CONFIG_FILES etc. instead of their
34294# values after options handling.
34295ac_log="
cristy45dbd322011-03-27 16:40:38 +000034296This file was extended by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +000034297generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034298
34299 CONFIG_FILES = $CONFIG_FILES
34300 CONFIG_HEADERS = $CONFIG_HEADERS
34301 CONFIG_LINKS = $CONFIG_LINKS
34302 CONFIG_COMMANDS = $CONFIG_COMMANDS
34303 $ $0 $@
34304
34305on `(hostname || uname -n) 2>/dev/null | sed 1q`
34306"
34307
34308_ACEOF
34309
34310case $ac_config_files in *"
34311"*) set x $ac_config_files; shift; ac_config_files=$*;;
34312esac
34313
34314case $ac_config_headers in *"
34315"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34316esac
34317
34318
34319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34320# Files that config.status was made for.
34321config_files="$ac_config_files"
34322config_headers="$ac_config_headers"
34323config_commands="$ac_config_commands"
34324
34325_ACEOF
34326
34327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34328ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034329\`$as_me' instantiates files and other configuration actions
34330from templates according to the current configuration. Unless the files
34331and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034332
cristy8b350f62009-11-15 23:12:43 +000034333Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034334
34335 -h, --help print this help, then exit
34336 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034337 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034338 -q, --quiet, --silent
34339 do not print progress messages
34340 -d, --debug don't remove temporary files
34341 --recheck update $as_me by reconfiguring in the same conditions
34342 --file=FILE[:TEMPLATE]
34343 instantiate the configuration file FILE
34344 --header=FILE[:TEMPLATE]
34345 instantiate the configuration header FILE
34346
34347Configuration files:
34348$config_files
34349
34350Configuration headers:
34351$config_headers
34352
34353Configuration commands:
34354$config_commands
34355
cristy8b350f62009-11-15 23:12:43 +000034356Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034357
34358_ACEOF
34359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034360ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034361ac_cs_version="\\
cristy45dbd322011-03-27 16:40:38 +000034362ImageMagick config.status 6.6.9
cristyda16f162011-02-19 23:52:17 +000034363configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034364 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034365
cristy98dddb52010-11-04 00:30:15 +000034366Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034367This config.status script is free software; the Free Software Foundation
34368gives unlimited permission to copy, distribute and modify it."
34369
34370ac_pwd='$ac_pwd'
34371srcdir='$srcdir'
34372INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034373MKDIR_P='$MKDIR_P'
34374AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034375test -n "\$AWK" || AWK=awk
34376_ACEOF
34377
34378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34379# The default lists apply if the user does not specify any file.
34380ac_need_defaults=:
34381while test $# != 0
34382do
34383 case $1 in
cristyda16f162011-02-19 23:52:17 +000034384 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34386 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34387 ac_shift=:
34388 ;;
cristyda16f162011-02-19 23:52:17 +000034389 --*=)
34390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34391 ac_optarg=
34392 ac_shift=:
34393 ;;
cristy3ed852e2009-09-05 21:47:34 +000034394 *)
34395 ac_option=$1
34396 ac_optarg=$2
34397 ac_shift=shift
34398 ;;
34399 esac
34400
34401 case $ac_option in
34402 # Handling of the options.
34403 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34404 ac_cs_recheck=: ;;
34405 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34406 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034407 --config | --confi | --conf | --con | --co | --c )
34408 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034409 --debug | --debu | --deb | --de | --d | -d )
34410 debug=: ;;
34411 --file | --fil | --fi | --f )
34412 $ac_shift
34413 case $ac_optarg in
34414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034415 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034416 esac
cristy8b350f62009-11-15 23:12:43 +000034417 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034418 ac_need_defaults=false;;
34419 --header | --heade | --head | --hea )
34420 $ac_shift
34421 case $ac_optarg in
34422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34423 esac
cristy8b350f62009-11-15 23:12:43 +000034424 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034425 ac_need_defaults=false;;
34426 --he | --h)
34427 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034428 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034429Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034430 --help | --hel | -h )
34431 $as_echo "$ac_cs_usage"; exit ;;
34432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34433 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34434 ac_cs_silent=: ;;
34435
34436 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034437 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034438Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034439
cristy8b350f62009-11-15 23:12:43 +000034440 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034441 ac_need_defaults=false ;;
34442
34443 esac
34444 shift
34445done
34446
34447ac_configure_extra_args=
34448
34449if $ac_cs_silent; then
34450 exec 6>/dev/null
34451 ac_configure_extra_args="$ac_configure_extra_args --silent"
34452fi
34453
34454_ACEOF
34455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34456if \$ac_cs_recheck; then
34457 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34458 shift
34459 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34460 CONFIG_SHELL='$SHELL'
34461 export CONFIG_SHELL
34462 exec "\$@"
34463fi
34464
34465_ACEOF
34466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34467exec 5>>config.log
34468{
34469 echo
34470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34471## Running $as_me. ##
34472_ASBOX
34473 $as_echo "$ac_log"
34474} >&5
34475
34476_ACEOF
34477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034478#
34479# INIT-COMMANDS
34480#
34481PACKAGE="$PACKAGE"
34482AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34483
34484
34485# The HP-UX ksh and POSIX shell print the target directory to stdout
34486# if CDPATH is set.
34487(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34488
34489sed_quote_subst='$sed_quote_subst'
34490double_quote_subst='$double_quote_subst'
34491delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034492SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34493Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34494GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34495EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34496FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34497SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34498ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34499LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34500macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34501macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34502AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34503DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34504OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34505enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34506enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34507pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34508enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34509host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34510host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34511host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34512build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34513build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34514build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34515NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34516LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34517max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34518ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34519exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34520lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34521lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34522lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034523lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34524lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034525reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34526reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34527deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34528file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034529file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34530want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34531sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034532AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34533AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034534archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034535STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34536RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34537old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34538old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34539old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34540lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34541CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34542CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34543compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34544GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34545lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34546lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34547lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34548lt_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 +000034549nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34550lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034551objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34552MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34553lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034554lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034555lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034556lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34557lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34558need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034559MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034560DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34561NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34562LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34563OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34564OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34565libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34566shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34567extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34568archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34569enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34570export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34571whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34572compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34573old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34574old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34575archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34576archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34577module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34578module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34579with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34580allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34581no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34582hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34583hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34584hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34585hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34586hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34587hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34588hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34589hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34590inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34591link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034592always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34593export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34594exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34595include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34596prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034597postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034598file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34599variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34600need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34601need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34602version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34603runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34604shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34605shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34606libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34607library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34608soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34609install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34610postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34611postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34612finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34613finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34614hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34615sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34616sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34617hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34618enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34619enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34620enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34621old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34622striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34623compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34624predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34625postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34626predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34627postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34628compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34629LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34630reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34631reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34632old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34633compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34634GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34635lt_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 +000034636lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034637lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034638lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34639lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34640archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34641enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34642export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34643whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34644compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34645old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34646old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34647archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34648archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34649module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34650module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34651with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34652allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34653no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34654hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34655hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34656hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34657hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34658hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34659hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34660hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34661hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34662inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34663link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034664always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34665export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34666exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34667include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34668prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034669postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034670file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34671hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34672compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34673predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34674postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34675predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34676postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34677compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034678
34679LTCC='$LTCC'
34680LTCFLAGS='$LTCFLAGS'
34681compiler='$compiler_DEFAULT'
34682
cristy0c60a692010-11-04 01:09:47 +000034683# A function that is used when there is no print builtin or printf.
34684func_fallback_echo ()
34685{
34686 eval 'cat <<_LTECHO_EOF
34687\$1
34688_LTECHO_EOF'
34689}
34690
cristy73bd4a52010-10-05 11:24:23 +000034691# Quote evaled strings.
34692for var in SED \
34693GREP \
34694EGREP \
34695FGREP \
cristy0c60a692010-11-04 01:09:47 +000034696SHELL \
34697ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034698LD \
cristy0c60a692010-11-04 01:09:47 +000034699AS \
34700DLLTOOL \
34701OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034702NM \
34703LN_S \
34704lt_SP2NL \
34705lt_NL2SP \
34706reload_flag \
34707deplibs_check_method \
34708file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034709file_magic_glob \
34710want_nocaseglob \
34711sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034712AR \
34713AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034714archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034715STRIP \
34716RANLIB \
34717CC \
34718CFLAGS \
34719compiler \
34720lt_cv_sys_global_symbol_pipe \
34721lt_cv_sys_global_symbol_to_cdecl \
34722lt_cv_sys_global_symbol_to_c_name_address \
34723lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034724nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034725lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034726lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034727lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034728lt_prog_compiler_static \
34729lt_cv_prog_compiler_c_o \
34730need_locks \
cristyda16f162011-02-19 23:52:17 +000034731MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034732DSYMUTIL \
34733NMEDIT \
34734LIPO \
34735OTOOL \
34736OTOOL64 \
34737shrext_cmds \
34738export_dynamic_flag_spec \
34739whole_archive_flag_spec \
34740compiler_needs_object \
34741with_gnu_ld \
34742allow_undefined_flag \
34743no_undefined_flag \
34744hardcode_libdir_flag_spec \
34745hardcode_libdir_flag_spec_ld \
34746hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034747exclude_expsyms \
34748include_expsyms \
34749file_list_spec \
34750variables_saved_for_relink \
34751libname_spec \
34752library_names_spec \
34753soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034754install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034755finish_eval \
34756old_striplib \
34757striplib \
34758compiler_lib_search_dirs \
34759predep_objects \
34760postdep_objects \
34761predeps \
34762postdeps \
34763compiler_lib_search_path \
34764LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034765reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034766compiler_CXX \
34767lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034768lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034769lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034770lt_prog_compiler_static_CXX \
34771lt_cv_prog_compiler_c_o_CXX \
34772export_dynamic_flag_spec_CXX \
34773whole_archive_flag_spec_CXX \
34774compiler_needs_object_CXX \
34775with_gnu_ld_CXX \
34776allow_undefined_flag_CXX \
34777no_undefined_flag_CXX \
34778hardcode_libdir_flag_spec_CXX \
34779hardcode_libdir_flag_spec_ld_CXX \
34780hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034781exclude_expsyms_CXX \
34782include_expsyms_CXX \
34783file_list_spec_CXX \
34784compiler_lib_search_dirs_CXX \
34785predep_objects_CXX \
34786postdep_objects_CXX \
34787predeps_CXX \
34788postdeps_CXX \
34789compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034790 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034791 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034792 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034793 ;;
34794 *)
34795 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34796 ;;
34797 esac
34798done
34799
34800# Double-quote double-evaled strings.
34801for var in reload_cmds \
34802old_postinstall_cmds \
34803old_postuninstall_cmds \
34804old_archive_cmds \
34805extract_expsyms_cmds \
34806old_archive_from_new_cmds \
34807old_archive_from_expsyms_cmds \
34808archive_cmds \
34809archive_expsym_cmds \
34810module_cmds \
34811module_expsym_cmds \
34812export_symbols_cmds \
34813prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034814postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034815postinstall_cmds \
34816postuninstall_cmds \
34817finish_cmds \
34818sys_lib_search_path_spec \
34819sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034820reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034821old_archive_cmds_CXX \
34822old_archive_from_new_cmds_CXX \
34823old_archive_from_expsyms_cmds_CXX \
34824archive_cmds_CXX \
34825archive_expsym_cmds_CXX \
34826module_cmds_CXX \
34827module_expsym_cmds_CXX \
34828export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034829prelink_cmds_CXX \
34830postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034831 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034832 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034833 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034834 ;;
34835 *)
34836 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34837 ;;
34838 esac
34839done
34840
cristy73bd4a52010-10-05 11:24:23 +000034841ac_aux_dir='$ac_aux_dir'
34842xsi_shell='$xsi_shell'
34843lt_shell_append='$lt_shell_append'
34844
34845# See if we are running on zsh, and set the options which allow our
34846# commands through without removal of \ escapes INIT.
34847if test -n "\${ZSH_VERSION+set}" ; then
34848 setopt NO_GLOB_SUBST
34849fi
34850
34851
34852 PACKAGE='$PACKAGE'
34853 VERSION='$VERSION'
34854 TIMESTAMP='$TIMESTAMP'
34855 RM='$RM'
34856 ofile='$ofile'
34857
34858
34859
34860
34861
34862
cristy3ed852e2009-09-05 21:47:34 +000034863_ACEOF
34864
34865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34866
34867# Handling of arguments.
34868for ac_config_target in $ac_config_targets
34869do
34870 case $ac_config_target in
34871 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034872 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034873 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34874 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34875 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34876 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34877 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034878 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034879 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34880 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34881 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34882 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34883 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34884 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34885 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34886 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34887 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34888 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34889 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34890 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34891 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34892 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34893 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34894 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34895 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34896 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34897 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34898 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34899 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34900 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34901 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34902 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34903 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34904 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34905 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34906 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34907 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34908 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34909 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34910 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34911 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034912 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34913 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034914 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34915 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34916 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34917 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34918 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34919 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34920 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34921
cristy98dddb52010-11-04 00:30:15 +000034922 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034923 esac
34924done
34925
34926
34927# If the user did not use the arguments to specify the items to instantiate,
34928# then the envvar interface is used. Set only those that are not.
34929# We use the long form for the default assignment because of an extremely
34930# bizarre bug on SunOS 4.1.3.
34931if $ac_need_defaults; then
34932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34935fi
34936
34937# Have a temporary directory for convenience. Make it in the build tree
34938# simply because there is no reason against having it here, and in addition,
34939# creating and moving files from /tmp can sometimes cause problems.
34940# Hook for its removal unless debugging.
34941# Note that there is a small window in which the directory will not be cleaned:
34942# after its creation but before its name has been assigned to `$tmp'.
34943$debug ||
34944{
cristyda16f162011-02-19 23:52:17 +000034945 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034946 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034947 : "${ac_tmp:=$tmp}"
34948 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034949' 0
cristy8b350f62009-11-15 23:12:43 +000034950 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034951}
34952# Create a (secure) tmp directory for tmp files.
34953
34954{
34955 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034956 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034957} ||
34958{
34959 tmp=./conf$$-$RANDOM
34960 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034961} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034962ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034963
34964# Set up the scripts for CONFIG_FILES section.
34965# No need to generate them if there are no CONFIG_FILES.
34966# This happens for instance with `./config.status config.h'.
34967if test -n "$CONFIG_FILES"; then
34968
34969
cristy8b350f62009-11-15 23:12:43 +000034970ac_cr=`echo X | tr X '\015'`
34971# On cygwin, bash can eat \r inside `` if the user requested igncr.
34972# But we know of no other shell where ac_cr would be empty at this
34973# point, so we can use a bashism as a fallback.
34974if test "x$ac_cr" = x; then
34975 eval ac_cr=\$\'\\r\'
34976fi
cristy3ed852e2009-09-05 21:47:34 +000034977ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34978if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034979 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034980else
34981 ac_cs_awk_cr=$ac_cr
34982fi
34983
cristyda16f162011-02-19 23:52:17 +000034984echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034985_ACEOF
34986
34987
34988{
34989 echo "cat >conf$$subs.awk <<_ACEOF" &&
34990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34991 echo "_ACEOF"
34992} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34994ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034995ac_delim='%!_!# '
34996for ac_last_try in false false false false false :; do
34997 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034999
35000 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35001 if test $ac_delim_n = $ac_delim_num; then
35002 break
35003 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035005 else
35006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35007 fi
35008done
35009rm -f conf$$subs.sh
35010
35011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000035012cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035013_ACEOF
35014sed -n '
35015h
35016s/^/S["/; s/!.*/"]=/
35017p
35018g
35019s/^[^!]*!//
35020:repl
35021t repl
35022s/'"$ac_delim"'$//
35023t delim
35024:nl
35025h
cristycd4c5312009-11-22 01:19:08 +000035026s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035027t more1
35028s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35029p
35030n
35031b repl
35032:more1
35033s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35034p
35035g
35036s/.\{148\}//
35037t nl
35038:delim
35039h
cristycd4c5312009-11-22 01:19:08 +000035040s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035041t more2
35042s/["\\]/\\&/g; s/^/"/; s/$/"/
35043p
35044b
35045:more2
35046s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35047p
35048g
35049s/.\{148\}//
35050t delim
35051' <conf$$subs.awk | sed '
35052/^[^""]/{
35053 N
35054 s/\n//
35055}
35056' >>$CONFIG_STATUS || ac_write_fail=1
35057rm -f conf$$subs.awk
35058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35059_ACAWK
cristyda16f162011-02-19 23:52:17 +000035060cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035061 for (key in S) S_is_set[key] = 1
35062 FS = ""
35063
35064}
35065{
35066 line = $ 0
35067 nfields = split(line, field, "@")
35068 substed = 0
35069 len = length(field[1])
35070 for (i = 2; i < nfields; i++) {
35071 key = field[i]
35072 keylen = length(key)
35073 if (S_is_set[key]) {
35074 value = S[key]
35075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35076 len += length(value) + length(field[++i])
35077 substed = 1
35078 } else
35079 len += 1 + keylen
35080 }
35081
35082 print line
35083}
35084
35085_ACAWK
35086_ACEOF
35087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35088if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35089 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35090else
35091 cat
cristyda16f162011-02-19 23:52:17 +000035092fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035093 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035094_ACEOF
35095
cristy98dddb52010-11-04 00:30:15 +000035096# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35097# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035098# trailing colons and then remove the whole line if VPATH becomes empty
35099# (actually we leave an empty line to preserve line numbers).
35100if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035101 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35102h
35103s///
35104s/^/:/
35105s/[ ]*$/:/
35106s/:\$(srcdir):/:/g
35107s/:\${srcdir}:/:/g
35108s/:@srcdir@:/:/g
35109s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035110s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035111x
35112s/\(=[ ]*\).*/\1/
35113G
35114s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035115s/^[^=]*=[ ]*$//
35116}'
35117fi
35118
35119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35120fi # test -n "$CONFIG_FILES"
35121
35122# Set up the scripts for CONFIG_HEADERS section.
35123# No need to generate them if there are no CONFIG_HEADERS.
35124# This happens for instance with `./config.status Makefile'.
35125if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035126cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035127BEGIN {
35128_ACEOF
35129
35130# Transform confdefs.h into an awk script `defines.awk', embedded as
35131# here-document in config.status, that substitutes the proper values into
35132# config.h.in to produce config.h.
35133
35134# Create a delimiter string that does not exist in confdefs.h, to ease
35135# handling of long lines.
35136ac_delim='%!_!# '
35137for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035138 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35139 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035140 break
35141 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035142 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035143 else
35144 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35145 fi
35146done
35147
35148# For the awk script, D is an array of macro values keyed by name,
35149# likewise P contains macro parameters if any. Preserve backslash
35150# newline sequences.
35151
35152ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35153sed -n '
35154s/.\{148\}/&'"$ac_delim"'/g
35155t rset
35156:rset
35157s/^[ ]*#[ ]*define[ ][ ]*/ /
35158t def
35159d
35160:def
35161s/\\$//
35162t bsnl
35163s/["\\]/\\&/g
35164s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35165D["\1"]=" \3"/p
35166s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35167d
35168:bsnl
35169s/["\\]/\\&/g
35170s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35171D["\1"]=" \3\\\\\\n"\\/p
35172t cont
35173s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35174t cont
35175d
35176:cont
35177n
35178s/.\{148\}/&'"$ac_delim"'/g
35179t clear
35180:clear
35181s/\\$//
35182t bsnlc
35183s/["\\]/\\&/g; s/^/"/; s/$/"/p
35184d
35185:bsnlc
35186s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35187b cont
35188' <confdefs.h | sed '
35189s/'"$ac_delim"'/"\\\
35190"/g' >>$CONFIG_STATUS || ac_write_fail=1
35191
35192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35193 for (key in D) D_is_set[key] = 1
35194 FS = ""
35195}
35196/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35197 line = \$ 0
35198 split(line, arg, " ")
35199 if (arg[1] == "#") {
35200 defundef = arg[2]
35201 mac1 = arg[3]
35202 } else {
35203 defundef = substr(arg[1], 2)
35204 mac1 = arg[2]
35205 }
35206 split(mac1, mac2, "(") #)
35207 macro = mac2[1]
35208 prefix = substr(line, 1, index(line, defundef) - 1)
35209 if (D_is_set[macro]) {
35210 # Preserve the white space surrounding the "#".
35211 print prefix "define", macro P[macro] D[macro]
35212 next
35213 } else {
35214 # Replace #undef with comments. This is necessary, for example,
35215 # in the case of _POSIX_SOURCE, which is predefined and required
35216 # on some systems where configure will not decide to define it.
35217 if (defundef == "undef") {
35218 print "/*", prefix defundef, macro, "*/"
35219 next
35220 }
35221 }
35222}
35223{ print }
35224_ACAWK
35225_ACEOF
35226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035227 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035228fi # test -n "$CONFIG_HEADERS"
35229
35230
35231eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35232shift
35233for ac_tag
35234do
35235 case $ac_tag in
35236 :[FHLC]) ac_mode=$ac_tag; continue;;
35237 esac
35238 case $ac_mode$ac_tag in
35239 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035240 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035241 :[FH]-) ac_tag=-:-;;
35242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35243 esac
35244 ac_save_IFS=$IFS
35245 IFS=:
35246 set x $ac_tag
35247 IFS=$ac_save_IFS
35248 shift
35249 ac_file=$1
35250 shift
35251
35252 case $ac_mode in
35253 :L) ac_source=$1;;
35254 :[FH])
35255 ac_file_inputs=
35256 for ac_f
35257 do
35258 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035259 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035260 *) # Look for the file first in the build tree, then in the source tree
35261 # (if the path is not absolute). The absolute path cannot be DOS-style,
35262 # because $ac_f cannot contain `:'.
35263 test -f "$ac_f" ||
35264 case $ac_f in
35265 [\\/$]*) false;;
35266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35267 esac ||
cristy98dddb52010-11-04 00:30:15 +000035268 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035269 esac
35270 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035271 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035272 done
35273
35274 # Let's still pretend it is `configure' which instantiates (i.e., don't
35275 # use $as_me), people would be surprised to read:
35276 # /* config.h. Generated by config.status. */
35277 configure_input='Generated from '`
35278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35279 `' by configure.'
35280 if test x"$ac_file" != x-; then
35281 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035283$as_echo "$as_me: creating $ac_file" >&6;}
35284 fi
35285 # Neutralize special characters interpreted by sed in replacement strings.
35286 case $configure_input in #(
35287 *\&* | *\|* | *\\* )
35288 ac_sed_conf_input=`$as_echo "$configure_input" |
35289 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35290 *) ac_sed_conf_input=$configure_input;;
35291 esac
35292
35293 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035294 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035296 esac
35297 ;;
35298 esac
35299
35300 ac_dir=`$as_dirname -- "$ac_file" ||
35301$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35302 X"$ac_file" : 'X\(//\)[^/]' \| \
35303 X"$ac_file" : 'X\(//\)$' \| \
35304 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35305$as_echo X"$ac_file" |
35306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35307 s//\1/
35308 q
35309 }
35310 /^X\(\/\/\)[^/].*/{
35311 s//\1/
35312 q
35313 }
35314 /^X\(\/\/\)$/{
35315 s//\1/
35316 q
35317 }
35318 /^X\(\/\).*/{
35319 s//\1/
35320 q
35321 }
35322 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035323 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035324 ac_builddir=.
35325
35326case "$ac_dir" in
35327.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35328*)
35329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35330 # A ".." for each directory in $ac_dir_suffix.
35331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35332 case $ac_top_builddir_sub in
35333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35335 esac ;;
35336esac
35337ac_abs_top_builddir=$ac_pwd
35338ac_abs_builddir=$ac_pwd$ac_dir_suffix
35339# for backward compatibility:
35340ac_top_builddir=$ac_top_build_prefix
35341
35342case $srcdir in
35343 .) # We are building in place.
35344 ac_srcdir=.
35345 ac_top_srcdir=$ac_top_builddir_sub
35346 ac_abs_top_srcdir=$ac_pwd ;;
35347 [\\/]* | ?:[\\/]* ) # Absolute name.
35348 ac_srcdir=$srcdir$ac_dir_suffix;
35349 ac_top_srcdir=$srcdir
35350 ac_abs_top_srcdir=$srcdir ;;
35351 *) # Relative name.
35352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35353 ac_top_srcdir=$ac_top_build_prefix$srcdir
35354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35355esac
35356ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35357
35358
35359 case $ac_mode in
35360 :F)
35361 #
35362 # CONFIG_FILE
35363 #
35364
35365 case $INSTALL in
35366 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35367 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35368 esac
cristy73bd4a52010-10-05 11:24:23 +000035369 ac_MKDIR_P=$MKDIR_P
35370 case $MKDIR_P in
35371 [\\/$]* | ?:[\\/]* ) ;;
35372 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35373 esac
cristy3ed852e2009-09-05 21:47:34 +000035374_ACEOF
35375
35376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35377# If the template does not know about datarootdir, expand it.
35378# FIXME: This hack should be removed a few years after 2.60.
35379ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035380ac_sed_dataroot='
35381/datarootdir/ {
35382 p
35383 q
35384}
35385/@datadir@/p
35386/@docdir@/p
35387/@infodir@/p
35388/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035389/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035390case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35391*datarootdir*) ac_datarootdir_seen=yes;;
35392*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035394$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35395_ACEOF
35396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35397 ac_datarootdir_hack='
35398 s&@datadir@&$datadir&g
35399 s&@docdir@&$docdir&g
35400 s&@infodir@&$infodir&g
35401 s&@localedir@&$localedir&g
35402 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035403 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035404esac
35405_ACEOF
35406
35407# Neutralize VPATH when `$srcdir' = `.'.
35408# Shell code in configure.ac might set extrasub.
35409# FIXME: do we really want to maintain this feature?
35410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35411ac_sed_extra="$ac_vpsub
35412$extrasub
35413_ACEOF
35414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35415:t
35416/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35417s|@configure_input@|$ac_sed_conf_input|;t t
35418s&@top_builddir@&$ac_top_builddir_sub&;t t
35419s&@top_build_prefix@&$ac_top_build_prefix&;t t
35420s&@srcdir@&$ac_srcdir&;t t
35421s&@abs_srcdir@&$ac_abs_srcdir&;t t
35422s&@top_srcdir@&$ac_top_srcdir&;t t
35423s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35424s&@builddir@&$ac_builddir&;t t
35425s&@abs_builddir@&$ac_abs_builddir&;t t
35426s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35427s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035428s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035429$ac_datarootdir_hack
35430"
cristyda16f162011-02-19 23:52:17 +000035431eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35432 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035433
35434test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035435 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35436 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35437 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035439which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035440$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035441which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035442
cristyda16f162011-02-19 23:52:17 +000035443 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035444 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035445 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35446 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035447 esac \
cristy98dddb52010-11-04 00:30:15 +000035448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035449 ;;
35450 :H)
35451 #
35452 # CONFIG_HEADER
35453 #
35454 if test x"$ac_file" != x-; then
35455 {
35456 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035457 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35458 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035460 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035461 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035462$as_echo "$as_me: $ac_file is unchanged" >&6;}
35463 else
35464 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035465 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035467 fi
35468 else
35469 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035470 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035471 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035472 fi
cristy73bd4a52010-10-05 11:24:23 +000035473# Compute "$ac_file"'s index in $config_headers.
35474_am_arg="$ac_file"
35475_am_stamp_count=1
35476for _am_header in $config_headers :; do
35477 case $_am_header in
35478 $_am_arg | $_am_arg:* )
35479 break ;;
35480 * )
35481 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35482 esac
35483done
35484echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35485$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35486 X"$_am_arg" : 'X\(//\)[^/]' \| \
35487 X"$_am_arg" : 'X\(//\)$' \| \
35488 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35489$as_echo X"$_am_arg" |
35490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35491 s//\1/
35492 q
35493 }
35494 /^X\(\/\/\)[^/].*/{
35495 s//\1/
35496 q
35497 }
35498 /^X\(\/\/\)$/{
35499 s//\1/
35500 q
35501 }
35502 /^X\(\/\).*/{
35503 s//\1/
35504 q
35505 }
35506 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035507 ;;
35508
cristy8b350f62009-11-15 23:12:43 +000035509 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035510$as_echo "$as_me: executing $ac_file commands" >&6;}
35511 ;;
35512 esac
35513
35514
35515 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035516 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35517ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35518ac_prefix_conf_PKG=`echo MagickCore`
35519ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35520ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35521ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35522if test ".$ac_prefix_conf_INP" = "."; then
35523 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35524 case "$ac_file" in
35525 *.h) ac_prefix_conf_INP=$ac_file ;;
35526 *)
35527 esac
35528 test ".$ac_prefix_conf_INP" != "." && break
35529 done
35530fi
35531if test ".$ac_prefix_conf_INP" = "."; then
35532 case "$ac_prefix_conf_OUT" in
35533 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35534 ;;
35535 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35536 ;;
35537 *) ac_prefix_conf_INP=config.h
35538 ;;
35539 esac
35540fi
35541if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035542 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035543else
35544 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35545 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35546 fi fi
35547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35548$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35549 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035550 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35551 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35552 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35553 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35554 $as_echo "#endif/" >> conftest.prefix
35555 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35556 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35557 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035558 # now executing _script on _DEF input to create _OUT output file
35559 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35560 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35561 echo ' ' >>$tmp/pconfig.h
35562 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35563
35564 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35565 echo ' ' >>$tmp/pconfig.h
35566 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35567 echo "#endif" >>$tmp/pconfig.h
35568 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35570$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35571 else
35572 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35573$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35574 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35575 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35576 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35577$as_echo X"$ac_prefix_conf_OUT" |
35578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35579 s//\1/
35580 q
35581 }
35582 /^X\(\/\/\)[^/].*/{
35583 s//\1/
35584 q
35585 }
35586 /^X\(\/\/\)$/{
35587 s//\1/
35588 q
35589 }
35590 /^X\(\/\).*/{
35591 s//\1/
35592 q
35593 }
35594 s/.*/./; q'`
35595 as_dir="$ac_dir"; as_fn_mkdir_p
35596 rm -f "$ac_prefix_conf_OUT"
35597 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35598 fi
35599 cp conftest.prefix _configs.sed
35600 else
cristy98dddb52010-11-04 00:30:15 +000035601 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 +000035602 fi
35603 rm -f conftest.*
35604fi
35605 ;;
35606 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35607 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35608 # are listed without --file. Let's play safe and only enable the eval
35609 # if we detect the quoting.
35610 case $CONFIG_FILES in
35611 *\'*) eval set x "$CONFIG_FILES" ;;
35612 *) set x $CONFIG_FILES ;;
35613 esac
35614 shift
35615 for mf
35616 do
35617 # Strip MF so we end up with the name of the file.
35618 mf=`echo "$mf" | sed -e 's/:.*$//'`
35619 # Check whether this is an Automake generated Makefile or not.
35620 # We used to match only the files named `Makefile.in', but
35621 # some people rename them; so instead we look at the file content.
35622 # Grep'ing the first line is not enough: some people post-process
35623 # each Makefile.in and add a new line on top of each file to say so.
35624 # Grep'ing the whole file is not good either: AIX grep has a line
35625 # limit of 2048, but all sed's we know have understand at least 4000.
35626 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35627 dirpart=`$as_dirname -- "$mf" ||
35628$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35629 X"$mf" : 'X\(//\)[^/]' \| \
35630 X"$mf" : 'X\(//\)$' \| \
35631 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35632$as_echo X"$mf" |
35633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35634 s//\1/
35635 q
35636 }
35637 /^X\(\/\/\)[^/].*/{
35638 s//\1/
35639 q
35640 }
35641 /^X\(\/\/\)$/{
35642 s//\1/
35643 q
35644 }
35645 /^X\(\/\).*/{
35646 s//\1/
35647 q
35648 }
35649 s/.*/./; q'`
35650 else
35651 continue
35652 fi
35653 # Extract the definition of DEPDIR, am__include, and am__quote
35654 # from the Makefile without running `make'.
35655 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35656 test -z "$DEPDIR" && continue
35657 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35658 test -z "am__include" && continue
35659 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35660 # When using ansi2knr, U may be empty or an underscore; expand it
35661 U=`sed -n 's/^U = //p' < "$mf"`
35662 # Find all dependency output files, they are included files with
35663 # $(DEPDIR) in their names. We invoke sed twice because it is the
35664 # simplest approach to changing $(DEPDIR) to its actual value in the
35665 # expansion.
35666 for file in `sed -n "
35667 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35668 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35669 # Make sure the directory exists.
35670 test -f "$dirpart/$file" && continue
35671 fdir=`$as_dirname -- "$file" ||
35672$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35673 X"$file" : 'X\(//\)[^/]' \| \
35674 X"$file" : 'X\(//\)$' \| \
35675 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35676$as_echo X"$file" |
35677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35678 s//\1/
35679 q
35680 }
35681 /^X\(\/\/\)[^/].*/{
35682 s//\1/
35683 q
35684 }
35685 /^X\(\/\/\)$/{
35686 s//\1/
35687 q
35688 }
35689 /^X\(\/\).*/{
35690 s//\1/
35691 q
35692 }
35693 s/.*/./; q'`
35694 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35695 # echo "creating $dirpart/$file"
35696 echo '# dummy' > "$dirpart/$file"
35697 done
35698 done
35699}
35700 ;;
35701 "libtool":C)
35702
35703 # See if we are running on zsh, and set the options which allow our
35704 # commands through without removal of \ escapes.
35705 if test -n "${ZSH_VERSION+set}" ; then
35706 setopt NO_GLOB_SUBST
35707 fi
35708
35709 cfgfile="${ofile}T"
35710 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35711 $RM "$cfgfile"
35712
35713 cat <<_LT_EOF >> "$cfgfile"
35714#! $SHELL
35715
35716# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35717# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35719# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35720#
35721# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035722# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35723# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035724# Written by Gordon Matzigkeit, 1996
35725#
35726# This file is part of GNU Libtool.
35727#
35728# GNU Libtool is free software; you can redistribute it and/or
35729# modify it under the terms of the GNU General Public License as
35730# published by the Free Software Foundation; either version 2 of
35731# the License, or (at your option) any later version.
35732#
35733# As a special exception to the GNU General Public License,
35734# if you distribute this file as part of a program or library that
35735# is built using GNU Libtool, you may include this file under the
35736# same distribution terms that you use for the rest of that program.
35737#
35738# GNU Libtool is distributed in the hope that it will be useful,
35739# but WITHOUT ANY WARRANTY; without even the implied warranty of
35740# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35741# GNU General Public License for more details.
35742#
35743# You should have received a copy of the GNU General Public License
35744# along with GNU Libtool; see the file COPYING. If not, a copy
35745# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35746# obtained by writing to the Free Software Foundation, Inc.,
35747# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35748
35749
35750# The names of the tagged configurations supported by this script.
35751available_tags="CXX "
35752
35753# ### BEGIN LIBTOOL CONFIG
35754
35755# A sed program that does not truncate output.
35756SED=$lt_SED
35757
35758# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35759Xsed="\$SED -e 1s/^X//"
35760
35761# A grep program that handles long lines.
35762GREP=$lt_GREP
35763
35764# An ERE matcher.
35765EGREP=$lt_EGREP
35766
35767# A literal string matcher.
35768FGREP=$lt_FGREP
35769
cristy0c60a692010-11-04 01:09:47 +000035770# Shell to use when invoking shell scripts.
35771SHELL=$lt_SHELL
35772
35773# An echo program that protects backslashes.
35774ECHO=$lt_ECHO
35775
cristy73bd4a52010-10-05 11:24:23 +000035776# Which release of libtool.m4 was used?
35777macro_version=$macro_version
35778macro_revision=$macro_revision
35779
35780# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035781AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035782
35783# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035784DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035785
35786# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035787OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035788
35789# Whether or not to build shared libraries.
35790build_libtool_libs=$enable_shared
35791
35792# Whether or not to build static libraries.
35793build_old_libs=$enable_static
35794
35795# What type of objects to build.
35796pic_mode=$pic_mode
35797
35798# Whether or not to optimize for fast installation.
35799fast_install=$enable_fast_install
35800
35801# The host system.
35802host_alias=$host_alias
35803host=$host
35804host_os=$host_os
35805
35806# The build system.
35807build_alias=$build_alias
35808build=$build
35809build_os=$build_os
35810
35811# A BSD- or MS-compatible name lister.
35812NM=$lt_NM
35813
35814# Whether we need soft or hard links.
35815LN_S=$lt_LN_S
35816
35817# What is the maximum length of a command?
35818max_cmd_len=$max_cmd_len
35819
35820# Object file suffix (normally "o").
35821objext=$ac_objext
35822
35823# Executable file suffix (normally "").
35824exeext=$exeext
35825
35826# whether the shell understands "unset".
35827lt_unset=$lt_unset
35828
35829# turn spaces into newlines.
35830SP2NL=$lt_lt_SP2NL
35831
35832# turn newlines into spaces.
35833NL2SP=$lt_lt_NL2SP
35834
cristyda16f162011-02-19 23:52:17 +000035835# convert \$build file names to \$host format.
35836to_host_file_cmd=$lt_cv_to_host_file_cmd
35837
35838# convert \$build files to toolchain format.
35839to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35840
cristy73bd4a52010-10-05 11:24:23 +000035841# Method to check whether dependent libraries are shared objects.
35842deplibs_check_method=$lt_deplibs_check_method
35843
cristyda16f162011-02-19 23:52:17 +000035844# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035845file_magic_cmd=$lt_file_magic_cmd
35846
cristyda16f162011-02-19 23:52:17 +000035847# How to find potential files when deplibs_check_method = "file_magic".
35848file_magic_glob=$lt_file_magic_glob
35849
35850# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35851want_nocaseglob=$lt_want_nocaseglob
35852
35853# Command to associate shared and link libraries.
35854sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35855
cristy73bd4a52010-10-05 11:24:23 +000035856# The archiver.
35857AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035858
35859# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035860AR_FLAGS=$lt_AR_FLAGS
35861
cristyda16f162011-02-19 23:52:17 +000035862# How to feed a file listing to the archiver.
35863archiver_list_spec=$lt_archiver_list_spec
35864
cristy73bd4a52010-10-05 11:24:23 +000035865# A symbol stripping program.
35866STRIP=$lt_STRIP
35867
35868# Commands used to install an old-style archive.
35869RANLIB=$lt_RANLIB
35870old_postinstall_cmds=$lt_old_postinstall_cmds
35871old_postuninstall_cmds=$lt_old_postuninstall_cmds
35872
cristy0c60a692010-11-04 01:09:47 +000035873# Whether to use a lock for old archive extraction.
35874lock_old_archive_extraction=$lock_old_archive_extraction
35875
cristy73bd4a52010-10-05 11:24:23 +000035876# A C compiler.
35877LTCC=$lt_CC
35878
35879# LTCC compiler flags.
35880LTCFLAGS=$lt_CFLAGS
35881
35882# Take the output of nm and produce a listing of raw symbols and C names.
35883global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35884
35885# Transform the output of nm in a proper C declaration.
35886global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35887
35888# Transform the output of nm in a C name address pair.
35889global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35890
35891# Transform the output of nm in a C name address pair when lib prefix is needed.
35892global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35893
cristyda16f162011-02-19 23:52:17 +000035894# Specify filename containing input files for \$NM.
35895nm_file_list_spec=$lt_nm_file_list_spec
35896
35897# The root where to search for dependent libraries,and in which our libraries should be installed.
35898lt_sysroot=$lt_sysroot
35899
cristy73bd4a52010-10-05 11:24:23 +000035900# The name of the directory that contains temporary libtool files.
35901objdir=$objdir
35902
cristy73bd4a52010-10-05 11:24:23 +000035903# Used to examine libraries when file_magic_cmd begins with "file".
35904MAGIC_CMD=$MAGIC_CMD
35905
35906# Must we lock files when doing compilation?
35907need_locks=$lt_need_locks
35908
cristyda16f162011-02-19 23:52:17 +000035909# Manifest tool.
35910MANIFEST_TOOL=$lt_MANIFEST_TOOL
35911
cristy73bd4a52010-10-05 11:24:23 +000035912# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35913DSYMUTIL=$lt_DSYMUTIL
35914
35915# Tool to change global to local symbols on Mac OS X.
35916NMEDIT=$lt_NMEDIT
35917
35918# Tool to manipulate fat objects and archives on Mac OS X.
35919LIPO=$lt_LIPO
35920
35921# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35922OTOOL=$lt_OTOOL
35923
35924# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35925OTOOL64=$lt_OTOOL64
35926
35927# Old archive suffix (normally "a").
35928libext=$libext
35929
35930# Shared library suffix (normally ".so").
35931shrext_cmds=$lt_shrext_cmds
35932
35933# The commands to extract the exported symbol list from a shared archive.
35934extract_expsyms_cmds=$lt_extract_expsyms_cmds
35935
35936# Variables whose values should be saved in libtool wrapper scripts and
35937# restored at link time.
35938variables_saved_for_relink=$lt_variables_saved_for_relink
35939
35940# Do we need the "lib" prefix for modules?
35941need_lib_prefix=$need_lib_prefix
35942
35943# Do we need a version for libraries?
35944need_version=$need_version
35945
35946# Library versioning type.
35947version_type=$version_type
35948
35949# Shared library runtime path variable.
35950runpath_var=$runpath_var
35951
35952# Shared library path variable.
35953shlibpath_var=$shlibpath_var
35954
35955# Is shlibpath searched before the hard-coded library search path?
35956shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35957
35958# Format of library name prefix.
35959libname_spec=$lt_libname_spec
35960
35961# List of archive names. First name is the real one, the rest are links.
35962# The last name is the one that the linker finds with -lNAME
35963library_names_spec=$lt_library_names_spec
35964
35965# The coded name of the library, if different from the real name.
35966soname_spec=$lt_soname_spec
35967
cristy0c60a692010-11-04 01:09:47 +000035968# Permission mode override for installation of shared libraries.
35969install_override_mode=$lt_install_override_mode
35970
cristy73bd4a52010-10-05 11:24:23 +000035971# Command to use after installation of a shared archive.
35972postinstall_cmds=$lt_postinstall_cmds
35973
35974# Command to use after uninstallation of a shared archive.
35975postuninstall_cmds=$lt_postuninstall_cmds
35976
35977# Commands used to finish a libtool library installation in a directory.
35978finish_cmds=$lt_finish_cmds
35979
35980# As "finish_cmds", except a single script fragment to be evaled but
35981# not shown.
35982finish_eval=$lt_finish_eval
35983
35984# Whether we should hardcode library paths into libraries.
35985hardcode_into_libs=$hardcode_into_libs
35986
35987# Compile-time system search path for libraries.
35988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35989
35990# Run-time system search path for libraries.
35991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35992
35993# Whether dlopen is supported.
35994dlopen_support=$enable_dlopen
35995
35996# Whether dlopen of programs is supported.
35997dlopen_self=$enable_dlopen_self
35998
35999# Whether dlopen of statically linked programs is supported.
36000dlopen_self_static=$enable_dlopen_self_static
36001
36002# Commands to strip libraries.
36003old_striplib=$lt_old_striplib
36004striplib=$lt_striplib
36005
36006
36007# The linker used to build libraries.
36008LD=$lt_LD
36009
cristy0c60a692010-11-04 01:09:47 +000036010# How to create reloadable object files.
36011reload_flag=$lt_reload_flag
36012reload_cmds=$lt_reload_cmds
36013
cristy73bd4a52010-10-05 11:24:23 +000036014# Commands used to build an old-style archive.
36015old_archive_cmds=$lt_old_archive_cmds
36016
36017# A language specific compiler.
36018CC=$lt_compiler
36019
36020# Is the compiler the GNU compiler?
36021with_gcc=$GCC
36022
36023# Compiler flag to turn off builtin functions.
36024no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36025
cristy73bd4a52010-10-05 11:24:23 +000036026# Additional compiler flags for building library objects.
36027pic_flag=$lt_lt_prog_compiler_pic
36028
cristyda16f162011-02-19 23:52:17 +000036029# How to pass a linker flag through the compiler.
36030wl=$lt_lt_prog_compiler_wl
36031
cristy73bd4a52010-10-05 11:24:23 +000036032# Compiler flag to prevent dynamic linking.
36033link_static_flag=$lt_lt_prog_compiler_static
36034
36035# Does compiler simultaneously support -c and -o options?
36036compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36037
36038# Whether or not to add -lc for building shared libraries.
36039build_libtool_need_lc=$archive_cmds_need_lc
36040
36041# Whether or not to disallow shared libs when runtime libs are static.
36042allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36043
36044# Compiler flag to allow reflexive dlopens.
36045export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36046
36047# Compiler flag to generate shared objects directly from archives.
36048whole_archive_flag_spec=$lt_whole_archive_flag_spec
36049
36050# Whether the compiler copes with passing no objects directly.
36051compiler_needs_object=$lt_compiler_needs_object
36052
36053# Create an old-style archive from a shared archive.
36054old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36055
36056# Create a temporary old-style archive to link instead of a shared archive.
36057old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36058
36059# Commands used to build a shared archive.
36060archive_cmds=$lt_archive_cmds
36061archive_expsym_cmds=$lt_archive_expsym_cmds
36062
36063# Commands used to build a loadable module if different from building
36064# a shared archive.
36065module_cmds=$lt_module_cmds
36066module_expsym_cmds=$lt_module_expsym_cmds
36067
36068# Whether we are building with GNU ld or not.
36069with_gnu_ld=$lt_with_gnu_ld
36070
36071# Flag that allows shared libraries with undefined symbols to be built.
36072allow_undefined_flag=$lt_allow_undefined_flag
36073
36074# Flag that enforces no undefined symbols.
36075no_undefined_flag=$lt_no_undefined_flag
36076
36077# Flag to hardcode \$libdir into a binary during linking.
36078# This must work even if \$libdir does not exist
36079hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36080
36081# If ld is used when linking, flag to hardcode \$libdir into a binary
36082# during linking. This must work even if \$libdir does not exist.
36083hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36084
36085# Whether we need a single "-rpath" flag with a separated argument.
36086hardcode_libdir_separator=$lt_hardcode_libdir_separator
36087
36088# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36089# DIR into the resulting binary.
36090hardcode_direct=$hardcode_direct
36091
36092# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36093# DIR into the resulting binary and the resulting library dependency is
36094# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36095# library is relocated.
36096hardcode_direct_absolute=$hardcode_direct_absolute
36097
36098# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36099# into the resulting binary.
36100hardcode_minus_L=$hardcode_minus_L
36101
36102# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36103# into the resulting binary.
36104hardcode_shlibpath_var=$hardcode_shlibpath_var
36105
36106# Set to "yes" if building a shared library automatically hardcodes DIR
36107# into the library and all subsequent libraries and executables linked
36108# against it.
36109hardcode_automatic=$hardcode_automatic
36110
36111# Set to yes if linker adds runtime paths of dependent libraries
36112# to runtime path list.
36113inherit_rpath=$inherit_rpath
36114
36115# Whether libtool must link a program against all its dependency libraries.
36116link_all_deplibs=$link_all_deplibs
36117
cristy73bd4a52010-10-05 11:24:23 +000036118# Set to "yes" if exported symbols are required.
36119always_export_symbols=$always_export_symbols
36120
36121# The commands to list exported symbols.
36122export_symbols_cmds=$lt_export_symbols_cmds
36123
36124# Symbols that should not be listed in the preloaded symbols.
36125exclude_expsyms=$lt_exclude_expsyms
36126
36127# Symbols that must always be exported.
36128include_expsyms=$lt_include_expsyms
36129
36130# Commands necessary for linking programs (against libraries) with templates.
36131prelink_cmds=$lt_prelink_cmds
36132
cristyda16f162011-02-19 23:52:17 +000036133# Commands necessary for finishing linking programs.
36134postlink_cmds=$lt_postlink_cmds
36135
cristy73bd4a52010-10-05 11:24:23 +000036136# Specify filename containing input files.
36137file_list_spec=$lt_file_list_spec
36138
36139# How to hardcode a shared library path into an executable.
36140hardcode_action=$hardcode_action
36141
36142# The directories searched by this compiler when creating a shared library.
36143compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36144
36145# Dependencies to place before and after the objects being linked to
36146# create a shared library.
36147predep_objects=$lt_predep_objects
36148postdep_objects=$lt_postdep_objects
36149predeps=$lt_predeps
36150postdeps=$lt_postdeps
36151
36152# The library search path used internally by the compiler when linking
36153# a shared library.
36154compiler_lib_search_path=$lt_compiler_lib_search_path
36155
36156# ### END LIBTOOL CONFIG
36157
36158_LT_EOF
36159
36160 case $host_os in
36161 aix3*)
36162 cat <<\_LT_EOF >> "$cfgfile"
36163# AIX sometimes has problems with the GCC collect2 program. For some
36164# reason, if we set the COLLECT_NAMES environment variable, the problems
36165# vanish in a puff of smoke.
36166if test "X${COLLECT_NAMES+set}" != Xset; then
36167 COLLECT_NAMES=
36168 export COLLECT_NAMES
36169fi
36170_LT_EOF
36171 ;;
36172 esac
36173
36174
36175ltmain="$ac_aux_dir/ltmain.sh"
36176
36177
36178 # We use sed instead of cat because bash on DJGPP gets confused if
36179 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36180 # text mode, it properly converts lines to CR/LF. This bash problem
36181 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036182 sed '$q' "$ltmain" >> "$cfgfile" \
36183 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036184
cristyda16f162011-02-19 23:52:17 +000036185 if test x"$xsi_shell" = xyes; then
36186 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36187func_dirname ()\
36188{\
36189\ case ${1} in\
36190\ */*) func_dirname_result="${1%/*}${2}" ;;\
36191\ * ) func_dirname_result="${3}" ;;\
36192\ esac\
36193} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36194 && mv -f "$cfgfile.tmp" "$cfgfile" \
36195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36196test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036197
36198
cristyda16f162011-02-19 23:52:17 +000036199 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36200func_basename ()\
36201{\
36202\ func_basename_result="${1##*/}"\
36203} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36204 && mv -f "$cfgfile.tmp" "$cfgfile" \
36205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36206test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036207
36208
cristyda16f162011-02-19 23:52:17 +000036209 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36210func_dirname_and_basename ()\
36211{\
36212\ case ${1} in\
36213\ */*) func_dirname_result="${1%/*}${2}" ;;\
36214\ * ) func_dirname_result="${3}" ;;\
36215\ esac\
36216\ func_basename_result="${1##*/}"\
36217} # Extended-shell func_dirname_and_basename 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=:
cristy73bd4a52010-10-05 11:24:23 +000036221
cristyda16f162011-02-19 23:52:17 +000036222
36223 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36224func_stripname ()\
36225{\
36226\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36227\ # positional parameters, so assign one to ordinary parameter first.\
36228\ func_stripname_result=${3}\
36229\ func_stripname_result=${func_stripname_result#"${1}"}\
36230\ func_stripname_result=${func_stripname_result%"${2}"}\
36231} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36232 && mv -f "$cfgfile.tmp" "$cfgfile" \
36233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36234test 0 -eq $? || _lt_function_replace_fail=:
36235
36236
36237 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36238func_split_long_opt ()\
36239{\
36240\ func_split_long_opt_name=${1%%=*}\
36241\ func_split_long_opt_arg=${1#*=}\
36242} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36243 && mv -f "$cfgfile.tmp" "$cfgfile" \
36244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36245test 0 -eq $? || _lt_function_replace_fail=:
36246
36247
36248 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36249func_split_short_opt ()\
36250{\
36251\ func_split_short_opt_arg=${1#??}\
36252\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36253} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36254 && mv -f "$cfgfile.tmp" "$cfgfile" \
36255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36256test 0 -eq $? || _lt_function_replace_fail=:
36257
36258
36259 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36260func_lo2o ()\
36261{\
36262\ case ${1} in\
36263\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36264\ *) func_lo2o_result=${1} ;;\
36265\ esac\
36266} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36267 && mv -f "$cfgfile.tmp" "$cfgfile" \
36268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36269test 0 -eq $? || _lt_function_replace_fail=:
36270
36271
36272 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36273func_xform ()\
36274{\
36275 func_xform_result=${1%.*}.lo\
36276} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36277 && mv -f "$cfgfile.tmp" "$cfgfile" \
36278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36279test 0 -eq $? || _lt_function_replace_fail=:
36280
36281
36282 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36283func_arith ()\
36284{\
36285 func_arith_result=$(( $* ))\
36286} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36287 && mv -f "$cfgfile.tmp" "$cfgfile" \
36288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36289test 0 -eq $? || _lt_function_replace_fail=:
36290
36291
36292 sed -e '/^func_len ()$/,/^} # func_len /c\
36293func_len ()\
36294{\
36295 func_len_result=${#1}\
36296} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36297 && mv -f "$cfgfile.tmp" "$cfgfile" \
36298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36299test 0 -eq $? || _lt_function_replace_fail=:
36300
36301fi
36302
36303if test x"$lt_shell_append" = xyes; then
36304 sed -e '/^func_append ()$/,/^} # func_append /c\
36305func_append ()\
36306{\
36307 eval "${1}+=\\${2}"\
36308} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36309 && mv -f "$cfgfile.tmp" "$cfgfile" \
36310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36311test 0 -eq $? || _lt_function_replace_fail=:
36312
36313
36314 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36315func_append_quoted ()\
36316{\
36317\ func_quote_for_eval "${2}"\
36318\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36319} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36320 && mv -f "$cfgfile.tmp" "$cfgfile" \
36321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36322test 0 -eq $? || _lt_function_replace_fail=:
36323
36324
36325 # Save a `func_append' function call where possible by direct use of '+='
36326 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36327 && mv -f "$cfgfile.tmp" "$cfgfile" \
36328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36329 test 0 -eq $? || _lt_function_replace_fail=:
36330else
36331 # Save a `func_append' function call even when '+=' is not available
36332 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36333 && mv -f "$cfgfile.tmp" "$cfgfile" \
36334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36335 test 0 -eq $? || _lt_function_replace_fail=:
36336fi
36337
36338if test x"$_lt_function_replace_fail" = x":"; then
36339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36340$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36341fi
36342
36343
36344 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036345 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36346 chmod +x "$ofile"
36347
36348
36349 cat <<_LT_EOF >> "$ofile"
36350
36351# ### BEGIN LIBTOOL TAG CONFIG: CXX
36352
36353# The linker used to build libraries.
36354LD=$lt_LD_CXX
36355
cristy0c60a692010-11-04 01:09:47 +000036356# How to create reloadable object files.
36357reload_flag=$lt_reload_flag_CXX
36358reload_cmds=$lt_reload_cmds_CXX
36359
cristy73bd4a52010-10-05 11:24:23 +000036360# Commands used to build an old-style archive.
36361old_archive_cmds=$lt_old_archive_cmds_CXX
36362
36363# A language specific compiler.
36364CC=$lt_compiler_CXX
36365
36366# Is the compiler the GNU compiler?
36367with_gcc=$GCC_CXX
36368
36369# Compiler flag to turn off builtin functions.
36370no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36371
cristy73bd4a52010-10-05 11:24:23 +000036372# Additional compiler flags for building library objects.
36373pic_flag=$lt_lt_prog_compiler_pic_CXX
36374
cristyda16f162011-02-19 23:52:17 +000036375# How to pass a linker flag through the compiler.
36376wl=$lt_lt_prog_compiler_wl_CXX
36377
cristy73bd4a52010-10-05 11:24:23 +000036378# Compiler flag to prevent dynamic linking.
36379link_static_flag=$lt_lt_prog_compiler_static_CXX
36380
36381# Does compiler simultaneously support -c and -o options?
36382compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36383
36384# Whether or not to add -lc for building shared libraries.
36385build_libtool_need_lc=$archive_cmds_need_lc_CXX
36386
36387# Whether or not to disallow shared libs when runtime libs are static.
36388allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36389
36390# Compiler flag to allow reflexive dlopens.
36391export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36392
36393# Compiler flag to generate shared objects directly from archives.
36394whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36395
36396# Whether the compiler copes with passing no objects directly.
36397compiler_needs_object=$lt_compiler_needs_object_CXX
36398
36399# Create an old-style archive from a shared archive.
36400old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36401
36402# Create a temporary old-style archive to link instead of a shared archive.
36403old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36404
36405# Commands used to build a shared archive.
36406archive_cmds=$lt_archive_cmds_CXX
36407archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36408
36409# Commands used to build a loadable module if different from building
36410# a shared archive.
36411module_cmds=$lt_module_cmds_CXX
36412module_expsym_cmds=$lt_module_expsym_cmds_CXX
36413
36414# Whether we are building with GNU ld or not.
36415with_gnu_ld=$lt_with_gnu_ld_CXX
36416
36417# Flag that allows shared libraries with undefined symbols to be built.
36418allow_undefined_flag=$lt_allow_undefined_flag_CXX
36419
36420# Flag that enforces no undefined symbols.
36421no_undefined_flag=$lt_no_undefined_flag_CXX
36422
36423# Flag to hardcode \$libdir into a binary during linking.
36424# This must work even if \$libdir does not exist
36425hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36426
36427# If ld is used when linking, flag to hardcode \$libdir into a binary
36428# during linking. This must work even if \$libdir does not exist.
36429hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36430
36431# Whether we need a single "-rpath" flag with a separated argument.
36432hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36433
36434# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36435# DIR into the resulting binary.
36436hardcode_direct=$hardcode_direct_CXX
36437
36438# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36439# DIR into the resulting binary and the resulting library dependency is
36440# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36441# library is relocated.
36442hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36443
36444# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36445# into the resulting binary.
36446hardcode_minus_L=$hardcode_minus_L_CXX
36447
36448# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36449# into the resulting binary.
36450hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36451
36452# Set to "yes" if building a shared library automatically hardcodes DIR
36453# into the library and all subsequent libraries and executables linked
36454# against it.
36455hardcode_automatic=$hardcode_automatic_CXX
36456
36457# Set to yes if linker adds runtime paths of dependent libraries
36458# to runtime path list.
36459inherit_rpath=$inherit_rpath_CXX
36460
36461# Whether libtool must link a program against all its dependency libraries.
36462link_all_deplibs=$link_all_deplibs_CXX
36463
cristy73bd4a52010-10-05 11:24:23 +000036464# Set to "yes" if exported symbols are required.
36465always_export_symbols=$always_export_symbols_CXX
36466
36467# The commands to list exported symbols.
36468export_symbols_cmds=$lt_export_symbols_cmds_CXX
36469
36470# Symbols that should not be listed in the preloaded symbols.
36471exclude_expsyms=$lt_exclude_expsyms_CXX
36472
36473# Symbols that must always be exported.
36474include_expsyms=$lt_include_expsyms_CXX
36475
36476# Commands necessary for linking programs (against libraries) with templates.
36477prelink_cmds=$lt_prelink_cmds_CXX
36478
cristyda16f162011-02-19 23:52:17 +000036479# Commands necessary for finishing linking programs.
36480postlink_cmds=$lt_postlink_cmds_CXX
36481
cristy73bd4a52010-10-05 11:24:23 +000036482# Specify filename containing input files.
36483file_list_spec=$lt_file_list_spec_CXX
36484
36485# How to hardcode a shared library path into an executable.
36486hardcode_action=$hardcode_action_CXX
36487
36488# The directories searched by this compiler when creating a shared library.
36489compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36490
36491# Dependencies to place before and after the objects being linked to
36492# create a shared library.
36493predep_objects=$lt_predep_objects_CXX
36494postdep_objects=$lt_postdep_objects_CXX
36495predeps=$lt_predeps_CXX
36496postdeps=$lt_postdeps_CXX
36497
36498# The library search path used internally by the compiler when linking
36499# a shared library.
36500compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36501
36502# ### END LIBTOOL TAG CONFIG: CXX
36503_LT_EOF
36504
36505 ;;
cristy3ed852e2009-09-05 21:47:34 +000036506 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36507 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36508 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36509 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36510 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36511 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36512
36513 esac
36514done # for ac_tag
36515
36516
cristy8b350f62009-11-15 23:12:43 +000036517as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036518_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036519ac_clean_files=$ac_clean_files_save
36520
36521test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036522 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036523
36524
36525# configure is writing to config.log, and then calls config.status.
36526# config.status does its own redirection, appending to config.log.
36527# Unfortunately, on DOS this fails, as config.log is still kept open
36528# by configure, so config.status won't be able to write to it; its
36529# output is simply discarded. So we exec the FD to /dev/null,
36530# effectively closing config.log, so it can be properly (re)opened and
36531# appended to by config.status. When coming back to configure, we
36532# need to make the FD available again.
36533if test "$no_create" != yes; then
36534 ac_cs_success=:
36535 ac_config_status_args=
36536 test "$silent" = yes &&
36537 ac_config_status_args="$ac_config_status_args --quiet"
36538 exec 5>/dev/null
36539 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36540 exec 5>>config.log
36541 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36542 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036543 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036544fi
36545if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036547$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36548fi
36549
36550
36551rm -f magick-version
36552
cristy430a7312010-01-21 20:44:04 +000036553result_dejavu_font_dir='none'
36554if test "${dejavu_font_dir}x" != 'x'; then
36555 result_dejavu_font_dir=$dejavu_font_dir
36556fi
36557
cristy3ed852e2009-09-05 21:47:34 +000036558result_ghostscript_font_dir='none'
36559if test "${ghostscript_font_dir}x" != 'x'; then
36560 result_ghostscript_font_dir=$ghostscript_font_dir
36561fi
36562
36563result_windows_font_dir='none'
36564if test "${windows_font_dir}x" != 'x'; then
36565 result_windows_font_dir=${windows_font_dir}
36566fi
36567
cristy8b350f62009-11-15 23:12:43 +000036568{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036569ImageMagick is configured as follows. Please verify that this configuration
36570matches your expectations.
36571
36572Host system type: $host
36573Build system type: $build
36574
36575 Option Value
36576-------------------------------------------------------------------------------
36577Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36578Static libraries --enable-static=$enable_static $libtool_build_static_libs
36579Module support --with-modules=$with_modules $with_modules
36580GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36581Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36582High Dynamic Range Imagery
36583 --enable-hdri=$enable_hdri $enable_hdri
36584
36585Delegate Configuration:
36586BZLIB --with-bzlib=$with_bzlib $have_bzlib
36587Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036588Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036589DJVU --with-djvu=$with_djvu $have_djvu
36590DPS --with-dps=$with_dps $have_dps
36591FFTW --with-fftw=$with_fftw $have_fftw
36592FlashPIX --with-fpx=$with_fpx $have_fpx
36593FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36594FreeType --with-freetype=$with_freetype $have_freetype
36595GhostPCL None $PCLDelegate ($PCLVersion)
36596GhostXPS None $XPSDelegate ($XPSVersion)
36597Ghostscript None $PSDelegate ($GSVersion)
36598Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36599Ghostscript lib --with-gslib=$with_gslib $have_gslib
36600Graphviz --with-gvc=$with_gvc $have_gvc
36601JBIG --with-jbig=$with_jbig $have_jbig
36602JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36603JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036604LCMS v1 --with-lcms=$with_lcms $have_lcms
36605LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036606LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036607LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036608Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36609OpenEXR --with-openexr=$with_openexr $have_openexr
36610PERL --with-perl=$with_perl $have_perl
36611PNG --with-png=$with_png $have_png
36612RSVG --with-rsvg=$with_rsvg $have_rsvg
36613TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036614WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036615Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36616WMF --with-wmf=$with_wmf $have_wmf
36617X11 --with-x=$with_x $have_x
36618XML --with-xml=$with_xml $have_xml
36619ZLIB --with-zlib=$with_zlib $have_zlib
36620
36621X11 Configuration:
36622 X_CFLAGS = $X_CFLAGS
36623 X_PRE_LIBS = $X_PRE_LIBS
36624 X_LIBS = $X_LIBS
36625 X_EXTRA_LIBS = $X_EXTRA_LIBS
36626
36627Options used to compile and link:
36628 PREFIX = $PREFIX_DIR
36629 EXEC-PREFIX = $EXEC_PREFIX_DIR
36630 VERSION = $PACKAGE_VERSION
36631 CC = $CC
36632 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036633 CPPFLAGS = $MAGICK_CPPFLAGS
36634 PCFLAGS = $MAGICK_PCFLAGS
36635 DEFS = $DEFS
36636 LDFLAGS = $LDFLAGS
36637 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36638 LIBS = $MAGICK_LIBS
36639 CXX = $CXX
36640 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036641 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036642" >&5
36643$as_echo "
36644ImageMagick is configured as follows. Please verify that this configuration
36645matches your expectations.
36646
36647Host system type: $host
36648Build system type: $build
36649
36650 Option Value
36651-------------------------------------------------------------------------------
36652Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36653Static libraries --enable-static=$enable_static $libtool_build_static_libs
36654Module support --with-modules=$with_modules $with_modules
36655GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36656Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36657High Dynamic Range Imagery
36658 --enable-hdri=$enable_hdri $enable_hdri
36659
36660Delegate Configuration:
36661BZLIB --with-bzlib=$with_bzlib $have_bzlib
36662Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036663Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036664DJVU --with-djvu=$with_djvu $have_djvu
36665DPS --with-dps=$with_dps $have_dps
36666FFTW --with-fftw=$with_fftw $have_fftw
36667FlashPIX --with-fpx=$with_fpx $have_fpx
36668FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36669FreeType --with-freetype=$with_freetype $have_freetype
36670GhostPCL None $PCLDelegate ($PCLVersion)
36671GhostXPS None $XPSDelegate ($XPSVersion)
36672Ghostscript None $PSDelegate ($GSVersion)
36673Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36674Ghostscript lib --with-gslib=$with_gslib $have_gslib
36675Graphviz --with-gvc=$with_gvc $have_gvc
36676JBIG --with-jbig=$with_jbig $have_jbig
36677JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36678JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036679LCMS v1 --with-lcms=$with_lcms $have_lcms
36680LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036681LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036682LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036683Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36684OpenEXR --with-openexr=$with_openexr $have_openexr
36685PERL --with-perl=$with_perl $have_perl
36686PNG --with-png=$with_png $have_png
36687RSVG --with-rsvg=$with_rsvg $have_rsvg
36688TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036689WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036690Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36691WMF --with-wmf=$with_wmf $have_wmf
36692X11 --with-x=$with_x $have_x
36693XML --with-xml=$with_xml $have_xml
36694ZLIB --with-zlib=$with_zlib $have_zlib
36695
36696X11 Configuration:
36697 X_CFLAGS = $X_CFLAGS
36698 X_PRE_LIBS = $X_PRE_LIBS
36699 X_LIBS = $X_LIBS
36700 X_EXTRA_LIBS = $X_EXTRA_LIBS
36701
36702Options used to compile and link:
36703 PREFIX = $PREFIX_DIR
36704 EXEC-PREFIX = $EXEC_PREFIX_DIR
36705 VERSION = $PACKAGE_VERSION
36706 CC = $CC
36707 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036708 CPPFLAGS = $MAGICK_CPPFLAGS
36709 PCFLAGS = $MAGICK_PCFLAGS
36710 DEFS = $DEFS
36711 LDFLAGS = $LDFLAGS
36712 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36713 LIBS = $MAGICK_LIBS
36714 CXX = $CXX
36715 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036716 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036717" >&6; }