blob: 36b4594f4e7f1c4ca6514e22f119fd38c52818df [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000738WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000742WEBP_LIBS
743WEBP_DELEGATE_FALSE
744WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746TIFF_DELEGATE_FALSE
747TIFF_DELEGATE_TRUE
748CAIRO_DELEGATE_FALSE
749CAIRO_DELEGATE_TRUE
750RSVG_DELEGATE_FALSE
751RSVG_DELEGATE_TRUE
752CAIRO_SVG_LIBS
753CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000754RSVG_LIBS
755RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000756PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000757PNG_DELEGATE_FALSE
758PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000759PANGOCAIRO_DELEGATE_FALSE
760PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000761PANGO_DELEGATE_FALSE
762PANGO_DELEGATE_TRUE
763PANGO_LIBS
764PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000765OPENEXR_DELEGATE_FALSE
766OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000767OPENEXR_LIBS
768OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000769LZMA_DELEGATE_FALSE
770LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000771LZMA_LIBS
772LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000773LQR_DELEGATE_FALSE
774LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775LQR_LIBS
776LQR_CFLAGS
777LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778LCMS_DELEGATE_FALSE
779LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JP2_DELEGATE_FALSE
782JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784JPEG_DELEGATE_FALSE
785JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787JBIG_DELEGATE_FALSE
788JBIG_DELEGATE_TRUE
789GVC_DELEGATE_FALSE
790GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791GVC_LIBS
792GVC_CFLAGS
793GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794GS_DELEGATE_FALSE
795GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797FREETYPE_DELEGATE_FALSE
798FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000799freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000800FONTCONFIG_DELEGATE_FALSE
801FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802FONTCONFIG_LIBS
803FONTCONFIG_CFLAGS
804FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805FPX_DELEGATE_FALSE
806FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808FFTW_DELEGATE_FALSE
809FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811DJVU_DELEGATE_FALSE
812DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814DPS_DELEGATE_FALSE
815DPS_DELEGATE_TRUE
816AUTOTRACE_DELEGATE_FALSE
817AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818AUTOTRACE_LIBS
819AUTOTRACE_CFLAGS
820LIB_DL
821ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822ZLIB_DELEGATE_FALSE
823ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824XEXT_LIBS
825X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826X11_DELEGATE_FALSE
827X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828X_EXTRA_LIBS
829X_LIBS
830X_PRE_LIBS
831X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000832XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000833BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834BZLIB_DELEGATE_FALSE
835BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836CCMALLOCDelegate
837UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838HasUMEM_FALSE
839HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840THREAD_LIBS
841GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842WITH_MAGICK_PLUS_PLUS_FALSE
843WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000845MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000846POW_LIB
847LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000848UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000850UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000851UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000856UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000857UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000858INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000859INT32_T
860UINT16_T
861INT16_T
862UINT8_T
863INT8_T
864LIBRARY_EXTRA_CPPFLAGS
865MODULE_EXTRA_CPPFLAGS
866LIBSTDCLDFLAGS
867PERL_MAKE_OPTIONS
868QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000869LEGACY_SUPPORT_FALSE
870LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000871MAINT
872MAINTAINER_MODE_FALSE
873MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874MAGICK_HDRI
875DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000876WITH_LTDL_FALSE
877WITH_LTDL_TRUE
878WITH_MODULES_FALSE
879WITH_MODULES_TRUE
880WITH_SHARED_LIBS_FALSE
881WITH_SHARED_LIBS_TRUE
882LTDLOPEN
883LT_CONFIG_H
884CONVENIENCE_LTDL_FALSE
885CONVENIENCE_LTDL_TRUE
886INSTALL_LTDL_FALSE
887INSTALL_LTDL_TRUE
888ARGZ_H
889sys_symbol_underscore
890LIBADD_DL
891LT_DLPREOPEN
892LIBADD_DLD_LINK
893LIBADD_SHL_LOAD
894LIBADD_DLOPEN
895LT_DLLOADERS
896INCLTDL
897LTDLINCL
898LTDLDEPS
899LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000900LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000901CXXCPP
902OTOOL64
903OTOOL
904LIPO
905NMEDIT
906DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000907MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000908RANLIB
cristyda16f162011-02-19 23:52:17 +0000909ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000910AR
911NM
912ac_ct_DUMPBIN
913DUMPBIN
914LIBTOOL
915OBJDUMP
916DLLTOOL
917AS
cristy3ed852e2009-09-05 21:47:34 +0000918LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000919CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000920CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000921OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000922PTHREAD_CFLAGS
923PTHREAD_LIBS
924PTHREAD_CC
925ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000926SHAREARCH_DIR
927INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000928WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000929USING_CL_FALSE
930USING_CL_TRUE
931CYGWIN_BUILD_FALSE
932CYGWIN_BUILD_TRUE
933WIN32_NATIVE_BUILD_FALSE
934WIN32_NATIVE_BUILD_TRUE
935WINGDI32_DELEGATE_FALSE
936WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000937GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000938PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000939PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000940LN_S
cristy3ed852e2009-09-05 21:47:34 +0000941LD
cristy73bd4a52010-10-05 11:24:23 +0000942FGREP
943SED
944am__fastdepCXX_FALSE
945am__fastdepCXX_TRUE
946CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000947ac_ct_CXX
948CXXFLAGS
949CXX
cristya0b81c32010-01-22 02:54:33 +0000950EGREP
951GREP
952CPP
cristy73bd4a52010-10-05 11:24:23 +0000953am__fastdepCC_FALSE
954am__fastdepCC_TRUE
955CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000956am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000957AMDEPBACKSLASH
958AMDEP_FALSE
959AMDEP_TRUE
960am__quote
961am__include
962DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000963OBJEXT
964EXEEXT
965ac_ct_CC
966CPPFLAGS
967LDFLAGS
968CFLAGS
969CC
970DIRSEP
971MAGICK_FILTER_MODULE_PATH
972MAGICK_CONFIGURE_BUILD_PATH
973MAGICK_CONFIGURE_SRC_PATH
974MAGICK_CODER_MODULE_PATH
975MAN_DIR
976INFO_DIR
977PERSISTINCLUDE_DIR
978INCLUDE_DIR
979LIB_DIR
980LOCALSTATE_DIR
981SHAREDSTATE_DIR
982SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000983DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000984DATA_DIR
985LIBEXEC_DIR
986SBIN_DIR
987BIN_DIR
988EXEC_PREFIX_DIR
989PREFIX_DIR
990CONFIG_STATUS_DEPENDENCIES
991MAGICK_LIB_VERSION_NUMBER
992MAGICK_LIB_VERSION_TEXT
993MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000994AM_BACKSLASH
995AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000996AM_DEFAULT_V
997AM_V
cristy73bd4a52010-10-05 11:24:23 +0000998am__untar
999am__tar
1000AMTAR
1001am__leading_dot
1002SET_MAKE
1003AWK
1004mkdir_p
1005MKDIR_P
1006INSTALL_STRIP_PROGRAM
1007STRIP
1008install_sh
1009MAKEINFO
1010AUTOHEADER
1011AUTOMAKE
1012AUTOCONF
1013ACLOCAL
1014VERSION
1015PACKAGE
1016CYGPATH_W
1017am__isrc
1018INSTALL_DATA
1019INSTALL_SCRIPT
1020INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001021PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001022PACKAGE_RELEASE_DATE
1023PACKAGE_LIB_VERSION_NUMBER
1024PACKAGE_LIB_VERSION
1025PACKAGE_CHANGE_DATE
1026PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001027PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001028MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001029MAGICK_LIBRARY_VERSION_INFO
1030MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001031MAGICK_LIBRARY_AGE
1032MAGICK_LIBRARY_REVISION
1033MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001034MAGICK_TARGET_OS
1035MAGICK_TARGET_VENDOR
1036MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001037target_os
1038target_vendor
1039target_cpu
1040target
1041host_os
1042host_vendor
1043host_cpu
1044host
1045build_os
1046build_vendor
1047build_cpu
1048build
1049CONFIGURE_ARGS
1050DISTCHECK_CONFIG_FLAGS
1051target_alias
1052host_alias
1053build_alias
1054LIBS
1055ECHO_T
1056ECHO_N
1057ECHO_C
1058DEFS
1059mandir
1060localedir
1061libdir
1062psdir
1063pdfdir
1064dvidir
1065htmldir
1066infodir
1067docdir
1068oldincludedir
1069includedir
1070localstatedir
1071sharedstatedir
1072sysconfdir
1073datadir
1074datarootdir
1075libexecdir
1076sbindir
1077bindir
1078program_transform_name
1079prefix
1080exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001081PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001082PACKAGE_BUGREPORT
1083PACKAGE_STRING
1084PACKAGE_VERSION
1085PACKAGE_TARNAME
1086PACKAGE_NAME
1087PATH_SEPARATOR
1088SHELL'
1089ac_subst_files=''
1090ac_user_opts='
1091enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001092enable_silent_rules
1093enable_dependency_tracking
1094with_gnu_ld
1095with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001096with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001097enable_bounds_checking
1098enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001099with_includearch_dir
1100with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001101with_threads
1102enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001103enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001104enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001105enable_shared
1106enable_static
1107with_pic
1108enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001109with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001110enable_libtool_lock
1111with_included_ltdl
1112with_ltdl_include
1113with_ltdl_lib
1114enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001115with_modules
1116enable_delegate_build
1117enable_deprecated
1118enable_installed
1119enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001120enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001121enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001122enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001123enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001124enable_ccmalloc
1125enable_efence
1126enable_prof
1127enable_gprof
1128enable_gcov
1129with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001130enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001131with_quantum_depth
1132with_cache
1133with_frozenpaths
1134with_magick_plus_plus
1135with_perl
1136with_perl_options
1137with_umem
1138with_libstdc
1139with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001140with_x
cristy3ed852e2009-09-05 21:47:34 +00001141with_zlib
1142with_autotrace
1143with_dps
1144with_djvu
cristy430a7312010-01-21 20:44:04 +00001145with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001146with_fftw
1147with_fpx
1148with_fontconfig
1149with_freetype
1150with_gslib
1151with_fontpath
1152with_gs_font_dir
1153with_gvc
1154with_jbig
1155with_jpeg
1156with_jp2
1157with_lcms
cristy71203402010-06-18 13:12:03 +00001158with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001159with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001160with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001161with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001162with_pango
cristy3ed852e2009-09-05 21:47:34 +00001163with_png
1164with_rsvg
1165with_tiff
cristyb1860752011-03-14 00:27:46 +00001166with_webp
cristy3ed852e2009-09-05 21:47:34 +00001167with_windows_font_dir
1168with_wmf
1169with_xml
1170'
1171 ac_precious_vars='build_alias
1172host_alias
1173target_alias
1174CC
1175CFLAGS
1176LDFLAGS
1177LIBS
1178CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001179CPP
cristy3ed852e2009-09-05 21:47:34 +00001180CXX
1181CXXFLAGS
1182CCC
cristy73bd4a52010-10-05 11:24:23 +00001183PKG_CONFIG
1184CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001185XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001186AUTOTRACE_CFLAGS
1187AUTOTRACE_LIBS
1188FONTCONFIG_CFLAGS
1189FONTCONFIG_LIBS
1190GVC_CFLAGS
1191GVC_LIBS
1192LQR_CFLAGS
1193LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001194LZMA_CFLAGS
1195LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001196OPENEXR_CFLAGS
1197OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001198PANGO_CFLAGS
1199PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001200RSVG_CFLAGS
1201RSVG_LIBS
1202CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001203CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001204
1205
1206# Initialize some variables set by options.
1207ac_init_help=
1208ac_init_version=false
1209ac_unrecognized_opts=
1210ac_unrecognized_sep=
1211# The variables have the same names as the options, with
1212# dashes changed to underlines.
1213cache_file=/dev/null
1214exec_prefix=NONE
1215no_create=
1216no_recursion=
1217prefix=NONE
1218program_prefix=NONE
1219program_suffix=NONE
1220program_transform_name=s,x,x,
1221silent=
1222site=
1223srcdir=
1224verbose=
1225x_includes=NONE
1226x_libraries=NONE
1227
1228# Installation directory options.
1229# These are left unexpanded so users can "make install exec_prefix=/foo"
1230# and all the variables that are supposed to be based on exec_prefix
1231# by default will actually change.
1232# Use braces instead of parens because sh, perl, etc. also accept them.
1233# (The list follows the same order as the GNU Coding Standards.)
1234bindir='${exec_prefix}/bin'
1235sbindir='${exec_prefix}/sbin'
1236libexecdir='${exec_prefix}/libexec'
1237datarootdir='${prefix}/share'
1238datadir='${datarootdir}'
1239sysconfdir='${prefix}/etc'
1240sharedstatedir='${prefix}/com'
1241localstatedir='${prefix}/var'
1242includedir='${prefix}/include'
1243oldincludedir='/usr/include'
1244docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1245infodir='${datarootdir}/info'
1246htmldir='${docdir}'
1247dvidir='${docdir}'
1248pdfdir='${docdir}'
1249psdir='${docdir}'
1250libdir='${exec_prefix}/lib'
1251localedir='${datarootdir}/locale'
1252mandir='${datarootdir}/man'
1253
1254ac_prev=
1255ac_dashdash=
1256for ac_option
1257do
1258 # If the previous option needs an argument, assign it.
1259 if test -n "$ac_prev"; then
1260 eval $ac_prev=\$ac_option
1261 ac_prev=
1262 continue
1263 fi
1264
1265 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001266 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1267 *=) ac_optarg= ;;
1268 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001269 esac
1270
1271 # Accept the important Cygnus configure options, so we can diagnose typos.
1272
1273 case $ac_dashdash$ac_option in
1274 --)
1275 ac_dashdash=yes ;;
1276
1277 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1278 ac_prev=bindir ;;
1279 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1280 bindir=$ac_optarg ;;
1281
1282 -build | --build | --buil | --bui | --bu)
1283 ac_prev=build_alias ;;
1284 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1285 build_alias=$ac_optarg ;;
1286
1287 -cache-file | --cache-file | --cache-fil | --cache-fi \
1288 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1289 ac_prev=cache_file ;;
1290 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1291 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1292 cache_file=$ac_optarg ;;
1293
1294 --config-cache | -C)
1295 cache_file=config.cache ;;
1296
1297 -datadir | --datadir | --datadi | --datad)
1298 ac_prev=datadir ;;
1299 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1300 datadir=$ac_optarg ;;
1301
1302 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1303 | --dataroo | --dataro | --datar)
1304 ac_prev=datarootdir ;;
1305 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1306 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1307 datarootdir=$ac_optarg ;;
1308
1309 -disable-* | --disable-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001313 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1317 *"
1318"enable_$ac_useropt"
1319"*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval enable_$ac_useropt=no ;;
1324
1325 -docdir | --docdir | --docdi | --doc | --do)
1326 ac_prev=docdir ;;
1327 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1328 docdir=$ac_optarg ;;
1329
1330 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1331 ac_prev=dvidir ;;
1332 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1333 dvidir=$ac_optarg ;;
1334
1335 -enable-* | --enable-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001339 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1343 *"
1344"enable_$ac_useropt"
1345"*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval enable_$ac_useropt=\$ac_optarg ;;
1350
1351 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1352 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1353 | --exec | --exe | --ex)
1354 ac_prev=exec_prefix ;;
1355 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1356 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1357 | --exec=* | --exe=* | --ex=*)
1358 exec_prefix=$ac_optarg ;;
1359
1360 -gas | --gas | --ga | --g)
1361 # Obsolete; use --with-gas.
1362 with_gas=yes ;;
1363
1364 -help | --help | --hel | --he | -h)
1365 ac_init_help=long ;;
1366 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1367 ac_init_help=recursive ;;
1368 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1369 ac_init_help=short ;;
1370
1371 -host | --host | --hos | --ho)
1372 ac_prev=host_alias ;;
1373 -host=* | --host=* | --hos=* | --ho=*)
1374 host_alias=$ac_optarg ;;
1375
1376 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1377 ac_prev=htmldir ;;
1378 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1379 | --ht=*)
1380 htmldir=$ac_optarg ;;
1381
1382 -includedir | --includedir | --includedi | --included | --include \
1383 | --includ | --inclu | --incl | --inc)
1384 ac_prev=includedir ;;
1385 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1386 | --includ=* | --inclu=* | --incl=* | --inc=*)
1387 includedir=$ac_optarg ;;
1388
1389 -infodir | --infodir | --infodi | --infod | --info | --inf)
1390 ac_prev=infodir ;;
1391 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1392 infodir=$ac_optarg ;;
1393
1394 -libdir | --libdir | --libdi | --libd)
1395 ac_prev=libdir ;;
1396 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1397 libdir=$ac_optarg ;;
1398
1399 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1400 | --libexe | --libex | --libe)
1401 ac_prev=libexecdir ;;
1402 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1403 | --libexe=* | --libex=* | --libe=*)
1404 libexecdir=$ac_optarg ;;
1405
1406 -localedir | --localedir | --localedi | --localed | --locale)
1407 ac_prev=localedir ;;
1408 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1409 localedir=$ac_optarg ;;
1410
1411 -localstatedir | --localstatedir | --localstatedi | --localstated \
1412 | --localstate | --localstat | --localsta | --localst | --locals)
1413 ac_prev=localstatedir ;;
1414 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1415 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1416 localstatedir=$ac_optarg ;;
1417
1418 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1419 ac_prev=mandir ;;
1420 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1421 mandir=$ac_optarg ;;
1422
1423 -nfp | --nfp | --nf)
1424 # Obsolete; use --without-fp.
1425 with_fp=no ;;
1426
1427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1428 | --no-cr | --no-c | -n)
1429 no_create=yes ;;
1430
1431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1433 no_recursion=yes ;;
1434
1435 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1436 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1437 | --oldin | --oldi | --old | --ol | --o)
1438 ac_prev=oldincludedir ;;
1439 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1440 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1441 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1442 oldincludedir=$ac_optarg ;;
1443
1444 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1445 ac_prev=prefix ;;
1446 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1447 prefix=$ac_optarg ;;
1448
1449 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1450 | --program-pre | --program-pr | --program-p)
1451 ac_prev=program_prefix ;;
1452 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1453 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1454 program_prefix=$ac_optarg ;;
1455
1456 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1457 | --program-suf | --program-su | --program-s)
1458 ac_prev=program_suffix ;;
1459 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1460 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1461 program_suffix=$ac_optarg ;;
1462
1463 -program-transform-name | --program-transform-name \
1464 | --program-transform-nam | --program-transform-na \
1465 | --program-transform-n | --program-transform- \
1466 | --program-transform | --program-transfor \
1467 | --program-transfo | --program-transf \
1468 | --program-trans | --program-tran \
1469 | --progr-tra | --program-tr | --program-t)
1470 ac_prev=program_transform_name ;;
1471 -program-transform-name=* | --program-transform-name=* \
1472 | --program-transform-nam=* | --program-transform-na=* \
1473 | --program-transform-n=* | --program-transform-=* \
1474 | --program-transform=* | --program-transfor=* \
1475 | --program-transfo=* | --program-transf=* \
1476 | --program-trans=* | --program-tran=* \
1477 | --progr-tra=* | --program-tr=* | --program-t=*)
1478 program_transform_name=$ac_optarg ;;
1479
1480 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1481 ac_prev=pdfdir ;;
1482 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1483 pdfdir=$ac_optarg ;;
1484
1485 -psdir | --psdir | --psdi | --psd | --ps)
1486 ac_prev=psdir ;;
1487 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1488 psdir=$ac_optarg ;;
1489
1490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1491 | -silent | --silent | --silen | --sile | --sil)
1492 silent=yes ;;
1493
1494 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1495 ac_prev=sbindir ;;
1496 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1497 | --sbi=* | --sb=*)
1498 sbindir=$ac_optarg ;;
1499
1500 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1501 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1502 | --sharedst | --shareds | --shared | --share | --shar \
1503 | --sha | --sh)
1504 ac_prev=sharedstatedir ;;
1505 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1506 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1507 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1508 | --sha=* | --sh=*)
1509 sharedstatedir=$ac_optarg ;;
1510
1511 -site | --site | --sit)
1512 ac_prev=site ;;
1513 -site=* | --site=* | --sit=*)
1514 site=$ac_optarg ;;
1515
1516 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1517 ac_prev=srcdir ;;
1518 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1519 srcdir=$ac_optarg ;;
1520
1521 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1522 | --syscon | --sysco | --sysc | --sys | --sy)
1523 ac_prev=sysconfdir ;;
1524 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1525 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1526 sysconfdir=$ac_optarg ;;
1527
1528 -target | --target | --targe | --targ | --tar | --ta | --t)
1529 ac_prev=target_alias ;;
1530 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1531 target_alias=$ac_optarg ;;
1532
1533 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1534 verbose=yes ;;
1535
1536 -version | --version | --versio | --versi | --vers | -V)
1537 ac_init_version=: ;;
1538
1539 -with-* | --with-*)
1540 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1541 # Reject names that are not valid shell variable names.
1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001543 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001544 ac_useropt_orig=$ac_useropt
1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546 case $ac_user_opts in
1547 *"
1548"with_$ac_useropt"
1549"*) ;;
1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1551 ac_unrecognized_sep=', ';;
1552 esac
1553 eval with_$ac_useropt=\$ac_optarg ;;
1554
1555 -without-* | --without-*)
1556 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1557 # Reject names that are not valid shell variable names.
1558 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001559 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001560 ac_useropt_orig=$ac_useropt
1561 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562 case $ac_user_opts in
1563 *"
1564"with_$ac_useropt"
1565"*) ;;
1566 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1567 ac_unrecognized_sep=', ';;
1568 esac
1569 eval with_$ac_useropt=no ;;
1570
1571 --x)
1572 # Obsolete; use --with-x.
1573 with_x=yes ;;
1574
1575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1576 | --x-incl | --x-inc | --x-in | --x-i)
1577 ac_prev=x_includes ;;
1578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1580 x_includes=$ac_optarg ;;
1581
1582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1584 ac_prev=x_libraries ;;
1585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1587 x_libraries=$ac_optarg ;;
1588
cristy98dddb52010-11-04 00:30:15 +00001589 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1590Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001591 ;;
1592
1593 *=*)
1594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1595 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001596 case $ac_envvar in #(
1597 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001598 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001599 esac
cristy3ed852e2009-09-05 21:47:34 +00001600 eval $ac_envvar=\$ac_optarg
1601 export $ac_envvar ;;
1602
1603 *)
1604 # FIXME: should be removed in autoconf 3.0.
1605 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1607 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001608 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001609 ;;
1610
1611 esac
1612done
1613
1614if test -n "$ac_prev"; then
1615 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001616 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001617fi
1618
1619if test -n "$ac_unrecognized_opts"; then
1620 case $enable_option_checking in
1621 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001622 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001623 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1624 esac
1625fi
1626
1627# Check all directory arguments for consistency.
1628for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1629 datadir sysconfdir sharedstatedir localstatedir includedir \
1630 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1631 libdir localedir mandir
1632do
1633 eval ac_val=\$$ac_var
1634 # Remove trailing slashes.
1635 case $ac_val in
1636 */ )
1637 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1638 eval $ac_var=\$ac_val;;
1639 esac
1640 # Be sure to have absolute directory names.
1641 case $ac_val in
1642 [\\/$]* | ?:[\\/]* ) continue;;
1643 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1644 esac
cristy98dddb52010-11-04 00:30:15 +00001645 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001646done
1647
1648# There might be people who depend on the old broken behavior: `$host'
1649# used to hold the argument of --host etc.
1650# FIXME: To remove some day.
1651build=$build_alias
1652host=$host_alias
1653target=$target_alias
1654
1655# FIXME: To remove some day.
1656if test "x$host_alias" != x; then
1657 if test "x$build_alias" = x; then
1658 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001659 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1660 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001661 elif test "x$build_alias" != "x$host_alias"; then
1662 cross_compiling=yes
1663 fi
1664fi
1665
1666ac_tool_prefix=
1667test -n "$host_alias" && ac_tool_prefix=$host_alias-
1668
1669test "$silent" = yes && exec 6>/dev/null
1670
1671
1672ac_pwd=`pwd` && test -n "$ac_pwd" &&
1673ac_ls_di=`ls -di .` &&
1674ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001675 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001676test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001677 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001678
1679
1680# Find the source files, if location was not specified.
1681if test -z "$srcdir"; then
1682 ac_srcdir_defaulted=yes
1683 # Try the directory containing this script, then the parent directory.
1684 ac_confdir=`$as_dirname -- "$as_myself" ||
1685$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1686 X"$as_myself" : 'X\(//\)[^/]' \| \
1687 X"$as_myself" : 'X\(//\)$' \| \
1688 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1689$as_echo X"$as_myself" |
1690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1691 s//\1/
1692 q
1693 }
1694 /^X\(\/\/\)[^/].*/{
1695 s//\1/
1696 q
1697 }
1698 /^X\(\/\/\)$/{
1699 s//\1/
1700 q
1701 }
1702 /^X\(\/\).*/{
1703 s//\1/
1704 q
1705 }
1706 s/.*/./; q'`
1707 srcdir=$ac_confdir
1708 if test ! -r "$srcdir/$ac_unique_file"; then
1709 srcdir=..
1710 fi
1711else
1712 ac_srcdir_defaulted=no
1713fi
1714if test ! -r "$srcdir/$ac_unique_file"; then
1715 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001716 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001717fi
1718ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1719ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001720 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001721 pwd)`
1722# When building in place, set srcdir=.
1723if test "$ac_abs_confdir" = "$ac_pwd"; then
1724 srcdir=.
1725fi
1726# Remove unnecessary trailing slashes from srcdir.
1727# Double slashes in file names in object file debugging info
1728# mess up M-x gdb in Emacs.
1729case $srcdir in
1730*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1731esac
1732for ac_var in $ac_precious_vars; do
1733 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1734 eval ac_env_${ac_var}_value=\$${ac_var}
1735 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1736 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1737done
1738
1739#
1740# Report the --help message.
1741#
1742if test "$ac_init_help" = "long"; then
1743 # Omit some internal or obsolete options to make the list less imposing.
1744 # This message is too long to be a string in the A/UX 3.1 sh.
1745 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001746\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001747
1748Usage: $0 [OPTION]... [VAR=VALUE]...
1749
1750To assign environment variables (e.g., CC, CFLAGS...), specify them as
1751VAR=VALUE. See below for descriptions of some of the useful variables.
1752
1753Defaults for the options are specified in brackets.
1754
1755Configuration:
1756 -h, --help display this help and exit
1757 --help=short display options specific to this package
1758 --help=recursive display the short help of all the included packages
1759 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001760 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001761 --cache-file=FILE cache test results in FILE [disabled]
1762 -C, --config-cache alias for \`--cache-file=config.cache'
1763 -n, --no-create do not create output files
1764 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1765
1766Installation directories:
1767 --prefix=PREFIX install architecture-independent files in PREFIX
1768 [$ac_default_prefix]
1769 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1770 [PREFIX]
1771
1772By default, \`make install' will install all the files in
1773\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1774an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1775for instance \`--prefix=\$HOME'.
1776
1777For better control, use the options below.
1778
1779Fine tuning of the installation directories:
1780 --bindir=DIR user executables [EPREFIX/bin]
1781 --sbindir=DIR system admin executables [EPREFIX/sbin]
1782 --libexecdir=DIR program executables [EPREFIX/libexec]
1783 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1784 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1785 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1786 --libdir=DIR object code libraries [EPREFIX/lib]
1787 --includedir=DIR C header files [PREFIX/include]
1788 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1789 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1790 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1791 --infodir=DIR info documentation [DATAROOTDIR/info]
1792 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1793 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001794 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001795 --htmldir=DIR html documentation [DOCDIR]
1796 --dvidir=DIR dvi documentation [DOCDIR]
1797 --pdfdir=DIR pdf documentation [DOCDIR]
1798 --psdir=DIR ps documentation [DOCDIR]
1799_ACEOF
1800
1801 cat <<\_ACEOF
1802
cristy73bd4a52010-10-05 11:24:23 +00001803Program names:
1804 --program-prefix=PREFIX prepend PREFIX to installed program names
1805 --program-suffix=SUFFIX append SUFFIX to installed program names
1806 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1807
cristy3ed852e2009-09-05 21:47:34 +00001808X features:
1809 --x-includes=DIR X include files are in DIR
1810 --x-libraries=DIR X library files are in DIR
1811
1812System types:
1813 --build=BUILD configure for building on BUILD [guessed]
1814 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1815 --target=TARGET configure for building compilers for TARGET [HOST]
1816_ACEOF
1817fi
1818
1819if test -n "$ac_init_help"; then
1820 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001821 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001822 esac
1823 cat <<\_ACEOF
1824
1825Optional Features:
1826 --disable-option-checking ignore unrecognized --enable/--with options
1827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001829 --enable-silent-rules less verbose build output (undo: `make V=1')
1830 --disable-silent-rules verbose build output (undo: `make V=0')
1831 --disable-dependency-tracking speeds up one-time build
1832 --enable-dependency-tracking do not reject slow dependency extractors
cristya3824692012-03-30 17:22:07 +00001833 --enable-bounds-checking
1834 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001835 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001836 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001837 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001838 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001839 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001840 --enable-shared[=PKGS] build shared libraries [default=yes]
1841 --enable-static[=PKGS] build static libraries [default=yes]
1842 --enable-fast-install[=PKGS]
1843 optimize for fast installation [default=yes]
1844 --disable-libtool-lock avoid locking (might break parallel builds)
1845 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001846 --enable-delegate-build look for delegate libraries in build directory
1847 --disable-deprecated exclude deprecated methods in MagickCore and
1848 MagickWand API's
1849 --disable-installed Formally install ImageMagick under PREFIX
1850 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001851 --enable-zero-configuration
1852 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001853 zero-configuration ImageMagick
1854 --enable-hdri accurately represent the wide range of intensity
1855 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001856 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001857 --enable-maintainer-mode enable make rules and dependencies not useful
1858 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001859 --enable-ccmalloc enable 'ccmalloc' memory debug support
1860 --enable-efence enable 'efence' memory debug support
1861 --enable-prof enable 'prof' profiling support
1862 --enable-gprof enable 'gprof' profiling support
1863 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001864 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001865 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001866
1867Optional Packages:
1868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001870 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001871 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001872 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1873 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001874 --includearch-dir=DIR ARCH specific include directory
1875 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001876 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001877 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001878 both]
cristyda16f162011-02-19 23:52:17 +00001879 --with-sysroot=DIR Search for dependent libraries within DIR
1880 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001881 --with-included-ltdl use the GNU ltdl sources included here
1882 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1883 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001884 --with-modules enable building dynamically loadable modules
1885 --with-method-prefix=PREFIX
1886 prefix MagickCore API methods
1887 --with-quantum-depth=DEPTH
1888 number of bits in a pixel quantum (default 16)
1889 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1890 memory)
1891 --with-frozenpaths freeze delegate paths
1892 --without-magick-plus-plus
1893 disable build/install of Magick++
1894 --with-perl enable build/install of PerlMagick
1895 --with-perl-options=OPTIONS
1896 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001897 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001898 --with-umem enable umem memory allocation library support
1899 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1900 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001901 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001902 --without-zlib disable ZLIB support
1903 --with-autotrace enable autotrace support
1904 --without-dps disable Display Postscript support
1905 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001906 --with-dejavu-font-dir=DIR
1907 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001908 --without-fftw disable FFTW support
1909 --without-fpx disable FlashPIX support
1910 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001911 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001912 --without-gslib enable Ghostscript library support
1913 --with-fontpath=DIR prepend to default font search path
1914 --with-gs-font-dir=DIR Ghostscript font directory
1915 --without-gvc disable GVC support
1916 --without-jbig disable JBIG support
1917 --without-jpeg disable JPEG support
1918 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001919 --without-lcms disable lcms (v1.1X) support
1920 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001921 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001922 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001924 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001925 --without-png disable PNG support
1926 --without-rsvg disable RSVG support
1927 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001928 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001929 --with-windows-font-dir=DIR
1930 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001931 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-xml disable XML support
1933
1934Some influential environment variables:
1935 CC C compiler command
1936 CFLAGS C compiler flags
1937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1938 nonstandard directory <lib dir>
1939 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001940 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001941 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001942 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001943 CXX C++ compiler command
1944 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001945 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001946 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001947 XMKMF Path to xmkmf, Makefile generator for X Window System
1948 AUTOTRACE_CFLAGS
1949 C compiler flags for AUTOTRACE, overriding pkg-config
1950 AUTOTRACE_LIBS
1951 linker flags for AUTOTRACE, overriding pkg-config
1952 FONTCONFIG_CFLAGS
1953 C compiler flags for FONTCONFIG, overriding pkg-config
1954 FONTCONFIG_LIBS
1955 linker flags for FONTCONFIG, overriding pkg-config
1956 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1957 GVC_LIBS linker flags for GVC, overriding pkg-config
1958 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1959 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001960 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1961 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001962 OPENEXR_CFLAGS
1963 C compiler flags for OPENEXR, overriding pkg-config
1964 OPENEXR_LIBS
1965 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001966 PANGO_CFLAGS
1967 C compiler flags for PANGO, overriding pkg-config
1968 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001969 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1970 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1971 CAIRO_SVG_CFLAGS
1972 C compiler flags for CAIRO_SVG, overriding pkg-config
1973 CAIRO_SVG_LIBS
1974 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001975
1976Use these variables to override the choices made by `configure' or to help
1977it to find libraries and programs with nonstandard names/locations.
1978
1979Report bugs to <http://www.imagemagick.org>.
1980_ACEOF
1981ac_status=$?
1982fi
1983
1984if test "$ac_init_help" = "recursive"; then
1985 # If there are subdirs, report their specific --help.
1986 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1987 test -d "$ac_dir" ||
1988 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1989 continue
1990 ac_builddir=.
1991
1992case "$ac_dir" in
1993.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1994*)
1995 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1996 # A ".." for each directory in $ac_dir_suffix.
1997 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1998 case $ac_top_builddir_sub in
1999 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2000 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2001 esac ;;
2002esac
2003ac_abs_top_builddir=$ac_pwd
2004ac_abs_builddir=$ac_pwd$ac_dir_suffix
2005# for backward compatibility:
2006ac_top_builddir=$ac_top_build_prefix
2007
2008case $srcdir in
2009 .) # We are building in place.
2010 ac_srcdir=.
2011 ac_top_srcdir=$ac_top_builddir_sub
2012 ac_abs_top_srcdir=$ac_pwd ;;
2013 [\\/]* | ?:[\\/]* ) # Absolute name.
2014 ac_srcdir=$srcdir$ac_dir_suffix;
2015 ac_top_srcdir=$srcdir
2016 ac_abs_top_srcdir=$srcdir ;;
2017 *) # Relative name.
2018 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2019 ac_top_srcdir=$ac_top_build_prefix$srcdir
2020 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2021esac
2022ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2023
2024 cd "$ac_dir" || { ac_status=$?; continue; }
2025 # Check for guested configure.
2026 if test -f "$ac_srcdir/configure.gnu"; then
2027 echo &&
2028 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2029 elif test -f "$ac_srcdir/configure"; then
2030 echo &&
2031 $SHELL "$ac_srcdir/configure" --help=recursive
2032 else
2033 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2034 fi || ac_status=$?
2035 cd "$ac_pwd" || { ac_status=$?; break; }
2036 done
2037fi
2038
2039test -n "$ac_init_help" && exit $ac_status
2040if $ac_init_version; then
2041 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002042ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002043generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002044
cristy98dddb52010-11-04 00:30:15 +00002045Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002046This configure script is free software; the Free Software Foundation
2047gives unlimited permission to copy, distribute and modify it.
2048_ACEOF
2049 exit
2050fi
cristy8b350f62009-11-15 23:12:43 +00002051
2052## ------------------------ ##
2053## Autoconf initialization. ##
2054## ------------------------ ##
2055
2056# ac_fn_c_try_compile LINENO
2057# --------------------------
2058# Try to compile conftest.$ac_ext, and return whether this succeeded.
2059ac_fn_c_try_compile ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 rm -f conftest.$ac_objext
2063 if { { ac_try="$ac_compile"
2064case "(($ac_try" in
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2067esac
2068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069$as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_compile") 2>conftest.err
2071 ac_status=$?
2072 if test -s conftest.err; then
2073 grep -v '^ *+' conftest.err >conftest.er1
2074 cat conftest.er1 >&5
2075 mv -f conftest.er1 conftest.err
2076 fi
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; } && {
2079 test -z "$ac_c_werror_flag" ||
2080 test ! -s conftest.err
2081 } && test -s conftest.$ac_objext; then :
2082 ac_retval=0
2083else
2084 $as_echo "$as_me: failed program was:" >&5
2085sed 's/^/| /' conftest.$ac_ext >&5
2086
2087 ac_retval=1
2088fi
cristyda16f162011-02-19 23:52:17 +00002089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002090 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002091
2092} # ac_fn_c_try_compile
2093
cristy95646052009-11-28 23:05:30 +00002094# ac_fn_c_try_cpp LINENO
2095# ----------------------
2096# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2097ac_fn_c_try_cpp ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if { { ac_try="$ac_cpp conftest.$ac_ext"
2101case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104esac
2105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106$as_echo "$ac_try_echo"; } >&5
2107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2108 ac_status=$?
2109 if test -s conftest.err; then
2110 grep -v '^ *+' conftest.err >conftest.er1
2111 cat conftest.er1 >&5
2112 mv -f conftest.er1 conftest.err
2113 fi
2114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002115 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2117 test ! -s conftest.err
2118 }; then :
2119 ac_retval=0
2120else
2121 $as_echo "$as_me: failed program was:" >&5
2122sed 's/^/| /' conftest.$ac_ext >&5
2123
2124 ac_retval=1
2125fi
cristyda16f162011-02-19 23:52:17 +00002126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002127 as_fn_set_status $ac_retval
2128
2129} # ac_fn_c_try_cpp
2130
cristy8b350f62009-11-15 23:12:43 +00002131# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2132# -------------------------------------------------------
2133# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2134# the include files in INCLUDES and setting the cache variable VAR
2135# accordingly.
2136ac_fn_c_check_header_mongrel ()
2137{
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002139 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002142if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002143 $as_echo_n "(cached) " >&6
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148else
2149 # Is the header compilable?
2150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2151$as_echo_n "checking $2 usability... " >&6; }
2152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154$4
2155#include <$2>
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_header_compiler=yes
2159else
2160 ac_header_compiler=no
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2164$as_echo "$ac_header_compiler" >&6; }
2165
2166# Is the header present?
2167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2168$as_echo_n "checking $2 presence... " >&6; }
2169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170/* end confdefs.h. */
2171#include <$2>
2172_ACEOF
2173if ac_fn_c_try_cpp "$LINENO"; then :
2174 ac_header_preproc=yes
2175else
2176 ac_header_preproc=no
2177fi
cristyda16f162011-02-19 23:52:17 +00002178rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2180$as_echo "$ac_header_preproc" >&6; }
2181
2182# So? What about this header?
2183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2184 yes:no: )
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2186$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189 ;;
2190 no:yes:* )
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2192$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2194$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2196$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2198$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2200$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002201( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002202## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002203## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002204 ) | sed "s/^/$as_me: WARNING: /" >&2
2205 ;;
2206esac
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002209if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002210 $as_echo_n "(cached) " >&6
2211else
2212 eval "$3=\$ac_header_compiler"
2213fi
2214eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216$as_echo "$ac_res" >&6; }
2217fi
cristyda16f162011-02-19 23:52:17 +00002218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002219
2220} # ac_fn_c_check_header_mongrel
2221
2222# ac_fn_c_try_run LINENO
2223# ----------------------
2224# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2225# that executables *can* be run.
2226ac_fn_c_try_run ()
2227{
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 if { { ac_try="$ac_link"
2230case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233esac
2234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235$as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_link") 2>&5
2237 ac_status=$?
2238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2239 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2240 { { case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2243esac
2244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245$as_echo "$ac_try_echo"; } >&5
2246 (eval "$ac_try") 2>&5
2247 ac_status=$?
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; }; }; then :
2250 ac_retval=0
2251else
2252 $as_echo "$as_me: program exited with status $ac_status" >&5
2253 $as_echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 ac_retval=$ac_status
2257fi
2258 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002260 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002261
2262} # ac_fn_c_try_run
2263
2264# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2265# -------------------------------------------------------
2266# Tests whether HEADER exists and can be compiled using the include files in
2267# INCLUDES, setting the cache variable VAR accordingly.
2268ac_fn_c_check_header_compile ()
2269{
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2272$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002273if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002274 $as_echo_n "(cached) " >&6
2275else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h. */
2278$4
2279#include <$2>
2280_ACEOF
2281if ac_fn_c_try_compile "$LINENO"; then :
2282 eval "$3=yes"
2283else
2284 eval "$3=no"
2285fi
2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002292
2293} # ac_fn_c_check_header_compile
2294
cristya0b81c32010-01-22 02:54:33 +00002295# ac_fn_cxx_try_compile LINENO
2296# ----------------------------
2297# Try to compile conftest.$ac_ext, and return whether this succeeded.
2298ac_fn_cxx_try_compile ()
2299{
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 rm -f conftest.$ac_objext
2302 if { { ac_try="$ac_compile"
2303case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306esac
2307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308$as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_compile") 2>conftest.err
2310 ac_status=$?
2311 if test -s conftest.err; then
2312 grep -v '^ *+' conftest.err >conftest.er1
2313 cat conftest.er1 >&5
2314 mv -f conftest.er1 conftest.err
2315 fi
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && {
2318 test -z "$ac_cxx_werror_flag" ||
2319 test ! -s conftest.err
2320 } && test -s conftest.$ac_objext; then :
2321 ac_retval=0
2322else
2323 $as_echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 ac_retval=1
2327fi
cristyda16f162011-02-19 23:52:17 +00002328 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002329 as_fn_set_status $ac_retval
2330
2331} # ac_fn_cxx_try_compile
2332
cristy8b350f62009-11-15 23:12:43 +00002333# ac_fn_c_try_link LINENO
2334# -----------------------
2335# Try to link conftest.$ac_ext, and return whether this succeeded.
2336ac_fn_c_try_link ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 rm -f conftest.$ac_objext conftest$ac_exeext
2340 if { { ac_try="$ac_link"
2341case "(($ac_try" in
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2344esac
2345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2346$as_echo "$ac_try_echo"; } >&5
2347 (eval "$ac_link") 2>conftest.err
2348 ac_status=$?
2349 if test -s conftest.err; then
2350 grep -v '^ *+' conftest.err >conftest.er1
2351 cat conftest.er1 >&5
2352 mv -f conftest.er1 conftest.err
2353 fi
2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355 test $ac_status = 0; } && {
2356 test -z "$ac_c_werror_flag" ||
2357 test ! -s conftest.err
2358 } && test -s conftest$ac_exeext && {
2359 test "$cross_compiling" = yes ||
2360 $as_test_x conftest$ac_exeext
2361 }; then :
2362 ac_retval=0
2363else
2364 $as_echo "$as_me: failed program was:" >&5
2365sed 's/^/| /' conftest.$ac_ext >&5
2366
2367 ac_retval=1
2368fi
2369 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2370 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2371 # interfere with the next link command; also delete a directory that is
2372 # left behind by Apple's compiler. We do this before executing the actions.
2373 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002375 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002376
2377} # ac_fn_c_try_link
2378
cristy73bd4a52010-10-05 11:24:23 +00002379# ac_fn_c_check_func LINENO FUNC VAR
2380# ----------------------------------
2381# Tests whether FUNC exists, setting the cache variable VAR accordingly
2382ac_fn_c_check_func ()
2383{
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2386$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002387if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002388 $as_echo_n "(cached) " >&6
2389else
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391/* end confdefs.h. */
2392/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2394#define $2 innocuous_$2
2395
2396/* System header to define __stub macros and hopefully few prototypes,
2397 which can conflict with char $2 (); below.
2398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2399 <limits.h> exists even on freestanding compilers. */
2400
2401#ifdef __STDC__
2402# include <limits.h>
2403#else
2404# include <assert.h>
2405#endif
2406
2407#undef $2
2408
2409/* Override any GCC internal prototype to avoid an error.
2410 Use char because int might match the return type of a GCC
2411 builtin and then its argument prototype would still apply. */
2412#ifdef __cplusplus
2413extern "C"
2414#endif
2415char $2 ();
2416/* The GNU C library defines this for functions which it implements
2417 to always fail with ENOSYS. Some functions are actually named
2418 something starting with __ and the normal name is an alias. */
2419#if defined __stub_$2 || defined __stub___$2
2420choke me
2421#endif
2422
2423int
2424main ()
2425{
2426return $2 ();
2427 ;
2428 return 0;
2429}
2430_ACEOF
2431if ac_fn_c_try_link "$LINENO"; then :
2432 eval "$3=yes"
2433else
2434 eval "$3=no"
2435fi
2436rm -f core conftest.err conftest.$ac_objext \
2437 conftest$ac_exeext conftest.$ac_ext
2438fi
2439eval ac_res=\$$3
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002443
2444} # ac_fn_c_check_func
2445
2446# ac_fn_cxx_try_cpp LINENO
2447# ------------------------
2448# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2449ac_fn_cxx_try_cpp ()
2450{
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 if { { ac_try="$ac_cpp conftest.$ac_ext"
2453case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458$as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2460 ac_status=$?
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2465 fi
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002467 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002468 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 }; then :
2471 ac_retval=0
2472else
2473 $as_echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 ac_retval=1
2477fi
cristyda16f162011-02-19 23:52:17 +00002478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002479 as_fn_set_status $ac_retval
2480
2481} # ac_fn_cxx_try_cpp
2482
2483# ac_fn_cxx_try_link LINENO
2484# -------------------------
2485# Try to link conftest.$ac_ext, and return whether this succeeded.
2486ac_fn_cxx_try_link ()
2487{
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 rm -f conftest.$ac_objext conftest$ac_exeext
2490 if { { ac_try="$ac_link"
2491case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494esac
2495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496$as_echo "$ac_try_echo"; } >&5
2497 (eval "$ac_link") 2>conftest.err
2498 ac_status=$?
2499 if test -s conftest.err; then
2500 grep -v '^ *+' conftest.err >conftest.er1
2501 cat conftest.er1 >&5
2502 mv -f conftest.er1 conftest.err
2503 fi
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; } && {
2506 test -z "$ac_cxx_werror_flag" ||
2507 test ! -s conftest.err
2508 } && test -s conftest$ac_exeext && {
2509 test "$cross_compiling" = yes ||
2510 $as_test_x conftest$ac_exeext
2511 }; then :
2512 ac_retval=0
2513else
2514 $as_echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 ac_retval=1
2518fi
2519 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2520 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2521 # interfere with the next link command; also delete a directory that is
2522 # left behind by Apple's compiler. We do this before executing the actions.
2523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002525 as_fn_set_status $ac_retval
2526
2527} # ac_fn_cxx_try_link
2528
cristy98dddb52010-11-04 00:30:15 +00002529# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2530# ---------------------------------------------
2531# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2532# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002533ac_fn_c_check_decl ()
2534{
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002536 as_decl_name=`echo $2|sed 's/ *(.*//'`
2537 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2539$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002540if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002541 $as_echo_n "(cached) " >&6
2542else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546int
2547main ()
2548{
cristy98dddb52010-11-04 00:30:15 +00002549#ifndef $as_decl_name
2550#ifdef __cplusplus
2551 (void) $as_decl_use;
2552#else
2553 (void) $as_decl_name;
2554#endif
cristy73bd4a52010-10-05 11:24:23 +00002555#endif
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_compile "$LINENO"; then :
2562 eval "$3=yes"
2563else
2564 eval "$3=no"
2565fi
2566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567fi
2568eval ac_res=\$$3
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002572
2573} # ac_fn_c_check_decl
2574
cristy8b350f62009-11-15 23:12:43 +00002575# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2576# -------------------------------------------
2577# Tests whether TYPE exists after having included INCLUDES, setting cache
2578# variable VAR accordingly.
2579ac_fn_c_check_type ()
2580{
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002584if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002585 $as_echo_n "(cached) " >&6
2586else
2587 eval "$3=no"
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h. */
2590$4
2591int
2592main ()
2593{
2594if (sizeof ($2))
2595 return 0;
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600if ac_fn_c_try_compile "$LINENO"; then :
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602/* end confdefs.h. */
2603$4
2604int
2605main ()
2606{
2607if (sizeof (($2)))
2608 return 0;
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613if ac_fn_c_try_compile "$LINENO"; then :
2614
2615else
2616 eval "$3=yes"
2617fi
2618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619fi
2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621fi
2622eval ac_res=\$$3
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002626
2627} # ac_fn_c_check_type
2628
cristy92703d82010-04-26 00:18:18 +00002629# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2630# ----------------------------------------------------
2631# Tries to find if the field MEMBER exists in type AGGR, after including
2632# INCLUDES, setting cache variable VAR accordingly.
2633ac_fn_c_check_member ()
2634{
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2637$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002638if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002639 $as_echo_n "(cached) " >&6
2640else
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642/* end confdefs.h. */
2643$5
2644int
2645main ()
2646{
2647static $2 ac_aggr;
2648if (ac_aggr.$3)
2649return 0;
2650 ;
2651 return 0;
2652}
2653_ACEOF
2654if ac_fn_c_try_compile "$LINENO"; then :
2655 eval "$4=yes"
2656else
2657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658/* end confdefs.h. */
2659$5
2660int
2661main ()
2662{
2663static $2 ac_aggr;
2664if (sizeof ac_aggr.$3)
2665return 0;
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670if ac_fn_c_try_compile "$LINENO"; then :
2671 eval "$4=yes"
2672else
2673 eval "$4=no"
2674fi
2675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676fi
2677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678fi
2679eval ac_res=\$$4
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2681$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002683
2684} # ac_fn_c_check_member
2685
cristy501c8042011-05-26 17:46:28 +00002686# ac_fn_c_find_intX_t LINENO BITS VAR
2687# -----------------------------------
2688# Finds a signed integer type with width BITS, setting cache variable VAR
2689# accordingly.
2690ac_fn_c_find_intX_t ()
2691{
2692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2694$as_echo_n "checking for int$2_t... " >&6; }
2695if eval \${$3+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697else
2698 eval "$3=no"
2699 # Order is important - never check a type that is potentially smaller
2700 # than half of the expected target width.
2701 for ac_type in int$2_t 'int' 'long int' \
2702 'long long int' 'short int' 'signed char'; do
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h. */
2705$ac_includes_default
2706 enum { N = $2 / 2 - 1 };
2707int
2708main ()
2709{
2710static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2711test_array [0] = 0
2712
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717if ac_fn_c_try_compile "$LINENO"; then :
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719/* end confdefs.h. */
2720$ac_includes_default
2721 enum { N = $2 / 2 - 1 };
2722int
2723main ()
2724{
2725static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2726 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2727test_array [0] = 0
2728
2729 ;
2730 return 0;
2731}
2732_ACEOF
2733if ac_fn_c_try_compile "$LINENO"; then :
2734
2735else
2736 case $ac_type in #(
2737 int$2_t) :
2738 eval "$3=yes" ;; #(
2739 *) :
2740 eval "$3=\$ac_type" ;;
2741esac
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 if eval test \"x\$"$3"\" = x"no"; then :
2747
2748else
2749 break
2750fi
2751 done
2752fi
2753eval ac_res=\$$3
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2755$as_echo "$ac_res" >&6; }
2756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2757
2758} # ac_fn_c_find_intX_t
2759
2760# ac_fn_c_find_uintX_t LINENO BITS VAR
2761# ------------------------------------
2762# Finds an unsigned integer type with width BITS, setting cache variable VAR
2763# accordingly.
2764ac_fn_c_find_uintX_t ()
2765{
2766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2768$as_echo_n "checking for uint$2_t... " >&6; }
2769if eval \${$3+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771else
2772 eval "$3=no"
2773 # Order is important - never check a type that is potentially smaller
2774 # than half of the expected target width.
2775 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2776 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778/* end confdefs.h. */
2779$ac_includes_default
2780int
2781main ()
2782{
2783static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2784test_array [0] = 0
2785
2786 ;
2787 return 0;
2788}
2789_ACEOF
2790if ac_fn_c_try_compile "$LINENO"; then :
2791 case $ac_type in #(
2792 uint$2_t) :
2793 eval "$3=yes" ;; #(
2794 *) :
2795 eval "$3=\$ac_type" ;;
2796esac
2797fi
2798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 if eval test \"x\$"$3"\" = x"no"; then :
2800
2801else
2802 break
2803fi
2804 done
2805fi
2806eval ac_res=\$$3
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2808$as_echo "$ac_res" >&6; }
2809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2810
2811} # ac_fn_c_find_uintX_t
2812
cristy8b350f62009-11-15 23:12:43 +00002813# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2814# --------------------------------------------
2815# Tries to find the compile-time value of EXPR in a program that includes
2816# INCLUDES, setting VAR accordingly. Returns whether the value could be
2817# computed
2818ac_fn_c_compute_int ()
2819{
2820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2821 if test "$cross_compiling" = yes; then
2822 # Depending upon the size, compute the lo and hi bounds.
2823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824/* end confdefs.h. */
2825$4
2826int
2827main ()
2828{
2829static int test_array [1 - 2 * !(($2) >= 0)];
2830test_array [0] = 0
2831
2832 ;
2833 return 0;
2834}
2835_ACEOF
2836if ac_fn_c_try_compile "$LINENO"; then :
2837 ac_lo=0 ac_mid=0
2838 while :; do
2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840/* end confdefs.h. */
2841$4
2842int
2843main ()
2844{
2845static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2846test_array [0] = 0
2847
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852if ac_fn_c_try_compile "$LINENO"; then :
2853 ac_hi=$ac_mid; break
2854else
2855 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2856 if test $ac_lo -le $ac_mid; then
2857 ac_lo= ac_hi=
2858 break
2859 fi
2860 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2861fi
2862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 done
2864else
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866/* end confdefs.h. */
2867$4
2868int
2869main ()
2870{
2871static int test_array [1 - 2 * !(($2) < 0)];
2872test_array [0] = 0
2873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878if ac_fn_c_try_compile "$LINENO"; then :
2879 ac_hi=-1 ac_mid=-1
2880 while :; do
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882/* end confdefs.h. */
2883$4
2884int
2885main ()
2886{
2887static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2888test_array [0] = 0
2889
2890 ;
2891 return 0;
2892}
2893_ACEOF
2894if ac_fn_c_try_compile "$LINENO"; then :
2895 ac_lo=$ac_mid; break
2896else
2897 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2898 if test $ac_mid -le $ac_hi; then
2899 ac_lo= ac_hi=
2900 break
2901 fi
2902 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2903fi
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 done
2906else
2907 ac_lo= ac_hi=
2908fi
2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910fi
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912# Binary search between lo and hi bounds.
2913while test "x$ac_lo" != "x$ac_hi"; do
2914 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916/* end confdefs.h. */
2917$4
2918int
2919main ()
2920{
2921static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2922test_array [0] = 0
2923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928if ac_fn_c_try_compile "$LINENO"; then :
2929 ac_hi=$ac_mid
2930else
2931 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2932fi
2933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934done
2935case $ac_lo in #((
2936?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2937'') ac_retval=1 ;;
2938esac
2939 else
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941/* end confdefs.h. */
2942$4
2943static long int longval () { return $2; }
2944static unsigned long int ulongval () { return $2; }
2945#include <stdio.h>
2946#include <stdlib.h>
2947int
2948main ()
2949{
2950
2951 FILE *f = fopen ("conftest.val", "w");
2952 if (! f)
2953 return 1;
2954 if (($2) < 0)
2955 {
2956 long int i = longval ();
2957 if (i != ($2))
2958 return 1;
2959 fprintf (f, "%ld", i);
2960 }
2961 else
2962 {
2963 unsigned long int i = ulongval ();
2964 if (i != ($2))
2965 return 1;
2966 fprintf (f, "%lu", i);
2967 }
2968 /* Do not output a trailing newline, as this causes \r\n confusion
2969 on some platforms. */
2970 return ferror (f) || fclose (f) != 0;
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976if ac_fn_c_try_run "$LINENO"; then :
2977 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2978else
2979 ac_retval=1
2980fi
2981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2982 conftest.$ac_objext conftest.beam conftest.$ac_ext
2983rm -f conftest.val
2984
2985 fi
cristyda16f162011-02-19 23:52:17 +00002986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002987 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002988
2989} # ac_fn_c_compute_int
2990
2991# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2992# ---------------------------------------------------------
2993# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2994# the include files in INCLUDES and setting the cache variable VAR
2995# accordingly.
2996ac_fn_cxx_check_header_mongrel ()
2997{
2998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002999 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3001$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003002if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003003 $as_echo_n "(cached) " >&6
3004fi
3005eval ac_res=\$$3
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3007$as_echo "$ac_res" >&6; }
3008else
3009 # Is the header compilable?
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3011$as_echo_n "checking $2 usability... " >&6; }
3012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013/* end confdefs.h. */
3014$4
3015#include <$2>
3016_ACEOF
3017if ac_fn_cxx_try_compile "$LINENO"; then :
3018 ac_header_compiler=yes
3019else
3020 ac_header_compiler=no
3021fi
3022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3024$as_echo "$ac_header_compiler" >&6; }
3025
3026# Is the header present?
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3028$as_echo_n "checking $2 presence... " >&6; }
3029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030/* end confdefs.h. */
3031#include <$2>
3032_ACEOF
3033if ac_fn_cxx_try_cpp "$LINENO"; then :
3034 ac_header_preproc=yes
3035else
3036 ac_header_preproc=no
3037fi
cristyda16f162011-02-19 23:52:17 +00003038rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3040$as_echo "$ac_header_preproc" >&6; }
3041
3042# So? What about this header?
3043case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3044 yes:no: )
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3046$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3048$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3049 ;;
3050 no:yes:* )
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3052$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3054$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3056$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3058$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3060$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003061( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003062## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003063## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003064 ) | sed "s/^/$as_me: WARNING: /" >&2
3065 ;;
3066esac
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3068$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003069if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003070 $as_echo_n "(cached) " >&6
3071else
3072 eval "$3=\$ac_header_compiler"
3073fi
3074eval ac_res=\$$3
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3076$as_echo "$ac_res" >&6; }
3077fi
cristyda16f162011-02-19 23:52:17 +00003078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003079
3080} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003081cat >config.log <<_ACEOF
3082This file contains any messages produced by compilers while
3083running configure, to aid debugging if configure makes a mistake.
3084
cristy29eb34e2011-10-16 00:46:08 +00003085It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003086generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003087
3088 $ $0 $@
3089
3090_ACEOF
3091exec 5>>config.log
3092{
3093cat <<_ASUNAME
3094## --------- ##
3095## Platform. ##
3096## --------- ##
3097
3098hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3099uname -m = `(uname -m) 2>/dev/null || echo unknown`
3100uname -r = `(uname -r) 2>/dev/null || echo unknown`
3101uname -s = `(uname -s) 2>/dev/null || echo unknown`
3102uname -v = `(uname -v) 2>/dev/null || echo unknown`
3103
3104/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3105/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3106
3107/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3108/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3109/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3110/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3111/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3112/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3113/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3114
3115_ASUNAME
3116
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003122 $as_echo "PATH: $as_dir"
3123 done
cristy3ed852e2009-09-05 21:47:34 +00003124IFS=$as_save_IFS
3125
3126} >&5
3127
3128cat >&5 <<_ACEOF
3129
3130
3131## ----------- ##
3132## Core tests. ##
3133## ----------- ##
3134
3135_ACEOF
3136
3137
3138# Keep a trace of the command line.
3139# Strip out --no-create and --no-recursion so they do not pile up.
3140# Strip out --silent because we don't want to record it for future runs.
3141# Also quote any args containing shell meta-characters.
3142# Make two passes to allow for proper duplicate-argument suppression.
3143ac_configure_args=
3144ac_configure_args0=
3145ac_configure_args1=
3146ac_must_keep_next=false
3147for ac_pass in 1 2
3148do
3149 for ac_arg
3150 do
3151 case $ac_arg in
3152 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3154 | -silent | --silent | --silen | --sile | --sil)
3155 continue ;;
3156 *\'*)
3157 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 esac
3159 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003160 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003161 2)
cristy8b350f62009-11-15 23:12:43 +00003162 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003163 if test $ac_must_keep_next = true; then
3164 ac_must_keep_next=false # Got value, back to normal.
3165 else
3166 case $ac_arg in
3167 *=* | --config-cache | -C | -disable-* | --disable-* \
3168 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3169 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3170 | -with-* | --with-* | -without-* | --without-* | --x)
3171 case "$ac_configure_args0 " in
3172 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3173 esac
3174 ;;
3175 -* ) ac_must_keep_next=true ;;
3176 esac
3177 fi
cristy8b350f62009-11-15 23:12:43 +00003178 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003179 ;;
3180 esac
3181 done
3182done
cristy8b350f62009-11-15 23:12:43 +00003183{ ac_configure_args0=; unset ac_configure_args0;}
3184{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003185
3186# When interrupted or exit'd, cleanup temporary files, and complete
3187# config.log. We remove comments because anyway the quotes in there
3188# would cause problems or look ugly.
3189# WARNING: Use '\'' to represent an apostrophe within the trap.
3190# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3191trap 'exit_status=$?
3192 # Save into config.log some information that might help in debugging.
3193 {
3194 echo
3195
cristy98dddb52010-11-04 00:30:15 +00003196 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003197## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003198## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003199 echo
3200 # The following way of writing the cache mishandles newlines in values,
3201(
3202 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3203 eval ac_val=\$$ac_var
3204 case $ac_val in #(
3205 *${as_nl}*)
3206 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003208$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3209 esac
3210 case $ac_var in #(
3211 _ | IFS | as_nl) ;; #(
3212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003213 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003214 esac ;;
3215 esac
3216 done
3217 (set) 2>&1 |
3218 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3219 *${as_nl}ac_space=\ *)
3220 sed -n \
3221 "s/'\''/'\''\\\\'\'''\''/g;
3222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3223 ;; #(
3224 *)
3225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3226 ;;
3227 esac |
3228 sort
3229)
3230 echo
3231
cristy98dddb52010-11-04 00:30:15 +00003232 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003233## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003234## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003235 echo
3236 for ac_var in $ac_subst_vars
3237 do
3238 eval ac_val=\$$ac_var
3239 case $ac_val in
3240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3241 esac
3242 $as_echo "$ac_var='\''$ac_val'\''"
3243 done | sort
3244 echo
3245
3246 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003247 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003248## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003249## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003250 echo
3251 for ac_var in $ac_subst_files
3252 do
3253 eval ac_val=\$$ac_var
3254 case $ac_val in
3255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3256 esac
3257 $as_echo "$ac_var='\''$ac_val'\''"
3258 done | sort
3259 echo
3260 fi
3261
3262 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003263 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003264## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003265## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003266 echo
3267 cat confdefs.h
3268 echo
3269 fi
3270 test "$ac_signal" != 0 &&
3271 $as_echo "$as_me: caught signal $ac_signal"
3272 $as_echo "$as_me: exit $exit_status"
3273 } >&5
3274 rm -f core *.core core.conftest.* &&
3275 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3276 exit $exit_status
3277' 0
3278for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003279 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003280done
3281ac_signal=0
3282
3283# confdefs.h avoids OS command line length limits that DEFS can exceed.
3284rm -f -r conftest* confdefs.h
3285
cristy8b350f62009-11-15 23:12:43 +00003286$as_echo "/* confdefs.h */" > confdefs.h
3287
cristy3ed852e2009-09-05 21:47:34 +00003288# Predefined preprocessor variables.
3289
3290cat >>confdefs.h <<_ACEOF
3291#define PACKAGE_NAME "$PACKAGE_NAME"
3292_ACEOF
3293
cristy3ed852e2009-09-05 21:47:34 +00003294cat >>confdefs.h <<_ACEOF
3295#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3296_ACEOF
3297
cristy3ed852e2009-09-05 21:47:34 +00003298cat >>confdefs.h <<_ACEOF
3299#define PACKAGE_VERSION "$PACKAGE_VERSION"
3300_ACEOF
3301
cristy3ed852e2009-09-05 21:47:34 +00003302cat >>confdefs.h <<_ACEOF
3303#define PACKAGE_STRING "$PACKAGE_STRING"
3304_ACEOF
3305
cristy3ed852e2009-09-05 21:47:34 +00003306cat >>confdefs.h <<_ACEOF
3307#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3308_ACEOF
3309
cristy8b350f62009-11-15 23:12:43 +00003310cat >>confdefs.h <<_ACEOF
3311#define PACKAGE_URL "$PACKAGE_URL"
3312_ACEOF
3313
cristy3ed852e2009-09-05 21:47:34 +00003314
3315# Let the site file select an alternate cache file if it wants to.
3316# Prefer an explicitly selected file to automatically selected ones.
3317ac_site_file1=NONE
3318ac_site_file2=NONE
3319if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003320 # We do not want a PATH search for config.site.
3321 case $CONFIG_SITE in #((
3322 -*) ac_site_file1=./$CONFIG_SITE;;
3323 */*) ac_site_file1=$CONFIG_SITE;;
3324 *) ac_site_file1=./$CONFIG_SITE;;
3325 esac
cristy3ed852e2009-09-05 21:47:34 +00003326elif test "x$prefix" != xNONE; then
3327 ac_site_file1=$prefix/share/config.site
3328 ac_site_file2=$prefix/etc/config.site
3329else
3330 ac_site_file1=$ac_default_prefix/share/config.site
3331 ac_site_file2=$ac_default_prefix/etc/config.site
3332fi
3333for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3334do
3335 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003336 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3339 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003340 . "$ac_site_file" \
3341 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343as_fn_error $? "failed to load site script $ac_site_file
3344See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003345 fi
3346done
3347
3348if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003349 # Some versions of bash will fail to source /dev/null (special files
3350 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3351 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003353$as_echo "$as_me: loading cache $cache_file" >&6;}
3354 case $cache_file in
3355 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3356 *) . "./$cache_file";;
3357 esac
3358 fi
3359else
cristy8b350f62009-11-15 23:12:43 +00003360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo "$as_me: creating cache $cache_file" >&6;}
3362 >$cache_file
3363fi
3364
cristycd4c5312009-11-22 01:19:08 +00003365as_fn_append ac_header_list " stdlib.h"
3366as_fn_append ac_header_list " unistd.h"
3367as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003368# Check that the precious variables saved in the cache have kept the same
3369# value.
3370ac_cache_corrupted=false
3371for ac_var in $ac_precious_vars; do
3372 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3373 eval ac_new_set=\$ac_env_${ac_var}_set
3374 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3375 eval ac_new_val=\$ac_env_${ac_var}_value
3376 case $ac_old_set,$ac_new_set in
3377 set,)
cristy8b350f62009-11-15 23:12:43 +00003378 { $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 +00003379$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3380 ac_cache_corrupted=: ;;
3381 ,set)
cristy8b350f62009-11-15 23:12:43 +00003382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3384 ac_cache_corrupted=: ;;
3385 ,);;
3386 *)
3387 if test "x$ac_old_val" != "x$ac_new_val"; then
3388 # differences in whitespace do not lead to failure.
3389 ac_old_val_w=`echo x $ac_old_val`
3390 ac_new_val_w=`echo x $ac_new_val`
3391 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003393$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3394 ac_cache_corrupted=:
3395 else
cristy8b350f62009-11-15 23:12:43 +00003396 { $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 +00003397$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3398 eval $ac_var=\$ac_old_val
3399 fi
cristy8b350f62009-11-15 23:12:43 +00003400 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003401$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003402 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3404 fi;;
3405 esac
3406 # Pass precious variables to config.status.
3407 if test "$ac_new_set" = set; then
3408 case $ac_new_val in
3409 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3410 *) ac_arg=$ac_var=$ac_new_val ;;
3411 esac
3412 case " $ac_configure_args " in
3413 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003414 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003415 esac
3416 fi
3417done
3418if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003422$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003423 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003424fi
cristy8b350f62009-11-15 23:12:43 +00003425## -------------------- ##
3426## Main body of script. ##
3427## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003428
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
3435
3436
3437ac_aux_dir=
3438for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003439 if test -f "$ac_dir/install-sh"; then
3440 ac_aux_dir=$ac_dir
3441 ac_install_sh="$ac_aux_dir/install-sh -c"
3442 break
3443 elif test -f "$ac_dir/install.sh"; then
3444 ac_aux_dir=$ac_dir
3445 ac_install_sh="$ac_aux_dir/install.sh -c"
3446 break
3447 elif test -f "$ac_dir/shtool"; then
3448 ac_aux_dir=$ac_dir
3449 ac_install_sh="$ac_aux_dir/shtool install -c"
3450 break
3451 fi
cristy3ed852e2009-09-05 21:47:34 +00003452done
3453if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003454 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003455fi
3456
3457# These three variables are undocumented and unsupported,
3458# and are intended to be withdrawn in a future Autoconf release.
3459# They can cause serious problems if a builder's source tree is in a directory
3460# whose full name contains unusual characters.
3461ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3462ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3463ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3464
3465
3466
3467
3468ac_config_headers="$ac_config_headers config/config.h"
3469
cristy24fc1fe2010-10-23 21:13:01 +00003470
cristy4c08aed2011-07-01 19:47:50 +00003471ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003472
cristy4c08aed2011-07-01 19:47:50 +00003473ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003474
3475
3476#
3477# Save initial user-tunable values
3478#
3479USER_LIBS=$LIBS
3480for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3481 eval isset=\${$var+set}
3482 if test "$isset" = 'set'; then
3483 eval val=$`echo $var`
3484 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3485 fi
3486done
3487
3488
3489CONFIGURE_ARGS="$0 ${ac_configure_args}"
3490
3491
3492# Source file containing package/library versioning information.
3493. ${srcdir}/version.sh
3494
cristy15a88782010-01-31 23:24:49 +00003495echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003496# Make sure we can run config.sub.
3497$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003498 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003499
cristy8b350f62009-11-15 23:12:43 +00003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003501$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003502if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003503 $as_echo_n "(cached) " >&6
3504else
3505 ac_build_alias=$build_alias
3506test "x$ac_build_alias" = x &&
3507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3508test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003509 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003510ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003512
3513fi
cristy8b350f62009-11-15 23:12:43 +00003514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003515$as_echo "$ac_cv_build" >&6; }
3516case $ac_cv_build in
3517*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003518*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003519esac
3520build=$ac_cv_build
3521ac_save_IFS=$IFS; IFS='-'
3522set x $ac_cv_build
3523shift
3524build_cpu=$1
3525build_vendor=$2
3526shift; shift
3527# Remember, the first character of IFS is used to create $*,
3528# except with old shells:
3529build_os=$*
3530IFS=$ac_save_IFS
3531case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3532
3533
cristy8b350f62009-11-15 23:12:43 +00003534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003535$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003536if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003537 $as_echo_n "(cached) " >&6
3538else
3539 if test "x$host_alias" = x; then
3540 ac_cv_host=$ac_cv_build
3541else
3542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003544fi
3545
3546fi
cristy8b350f62009-11-15 23:12:43 +00003547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003548$as_echo "$ac_cv_host" >&6; }
3549case $ac_cv_host in
3550*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003551*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003552esac
3553host=$ac_cv_host
3554ac_save_IFS=$IFS; IFS='-'
3555set x $ac_cv_host
3556shift
3557host_cpu=$1
3558host_vendor=$2
3559shift; shift
3560# Remember, the first character of IFS is used to create $*,
3561# except with old shells:
3562host_os=$*
3563IFS=$ac_save_IFS
3564case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3565
3566
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003569if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003570 $as_echo_n "(cached) " >&6
3571else
3572 if test "x$target_alias" = x; then
3573 ac_cv_target=$ac_cv_host
3574else
3575 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003577fi
3578
3579fi
cristy8b350f62009-11-15 23:12:43 +00003580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003581$as_echo "$ac_cv_target" >&6; }
3582case $ac_cv_target in
3583*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003584*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003585esac
3586target=$ac_cv_target
3587ac_save_IFS=$IFS; IFS='-'
3588set x $ac_cv_target
3589shift
3590target_cpu=$1
3591target_vendor=$2
3592shift; shift
3593# Remember, the first character of IFS is used to create $*,
3594# except with old shells:
3595target_os=$*
3596IFS=$ac_save_IFS
3597case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3598
3599
3600# The aliases save the names the user supplied, while $host etc.
3601# will get canonicalized.
3602test -n "$target_alias" &&
3603 test "$program_prefix$program_suffix$program_transform_name" = \
3604 NONENONEs,x,x, &&
3605 program_prefix=${target_alias}-
3606
cristy837d6dc2010-02-27 01:16:57 +00003607
3608
3609
cristy19615b82011-04-13 20:02:01 +00003610MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003611
3612
cristy19615b82011-04-13 20:02:01 +00003613MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003614
3615
cristy19615b82011-04-13 20:02:01 +00003616MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003617
3618
cristy3ed852e2009-09-05 21:47:34 +00003619# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003620MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3621
3622MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3623
cristye73514f2012-04-09 11:22:43 +00003624MAGICK_SVN_REVISION=7407
cristyd694ca32011-03-27 21:42:54 +00003625
3626
cristy3ed852e2009-09-05 21:47:34 +00003627
3628
3629# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3631$as_echo_n "checking whether build environment is sane... " >&6; }
3632# Just in case
3633sleep 1
3634echo timestamp > conftest.file
3635# Reject unsafe characters in $srcdir or the absolute working directory
3636# name. Accept space and tab only in the latter.
3637am_lf='
3638'
3639case `pwd` in
3640 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003641 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003642esac
3643case $srcdir in
3644 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003645 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003646esac
cristy3ed852e2009-09-05 21:47:34 +00003647
cristy73bd4a52010-10-05 11:24:23 +00003648# Do `set' in a subshell so we don't clobber the current shell's
3649# arguments. Must try -L first in case configure is actually a
3650# symlink; some systems play weird games with the mod time of symlinks
3651# (eg FreeBSD returns the mod time of the symlink's containing
3652# directory).
3653if (
3654 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3655 if test "$*" = "X"; then
3656 # -L didn't work.
3657 set X `ls -t "$srcdir/configure" conftest.file`
3658 fi
3659 rm -f conftest.file
3660 if test "$*" != "X $srcdir/configure conftest.file" \
3661 && test "$*" != "X conftest.file $srcdir/configure"; then
3662
3663 # If neither matched, then we have a broken ls. This can happen
3664 # if, for instance, CONFIG_SHELL is bash and it inherits a
3665 # broken ls alias from the environment. This has actually
3666 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003667 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003668alias in your environment" "$LINENO" 5
3669 fi
3670
3671 test "$2" = conftest.file
3672 )
3673then
3674 # Ok.
3675 :
3676else
cristy98dddb52010-11-04 00:30:15 +00003677 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003678Check your system clock" "$LINENO" 5
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3681$as_echo "yes" >&6; }
3682
3683am__api_version='1.11'
3684
3685# Find a good install program. We prefer a C program (faster),
3686# so one script is as good as another. But avoid the broken or
3687# incompatible versions:
3688# SysV /etc/install, /usr/sbin/install
3689# SunOS /usr/etc/install
3690# IRIX /sbin/install
3691# AIX /bin/install
3692# AmigaOS /C/install, which installs bootblocks on floppy discs
3693# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3694# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3695# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3696# OS/2's system install, which has a completely different semantic
3697# ./install, which can be erroneously created by make from ./install.sh.
3698# Reject install programs that cannot install multiple files.
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3700$as_echo_n "checking for a BSD-compatible install... " >&6; }
3701if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003702if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003703 $as_echo_n "(cached) " >&6
3704else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 # Account for people who put trailing slashes in PATH elements.
3711case $as_dir/ in #((
3712 ./ | .// | /[cC]/* | \
3713 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3714 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3715 /usr/ucb/* ) ;;
3716 *)
3717 # OSF1 and SCO ODT 3.0 have their own names for install.
3718 # Don't use installbsd from OSF since it installs stuff as root
3719 # by default.
3720 for ac_prog in ginstall scoinst install; do
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3723 if test $ac_prog = install &&
3724 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3725 # AIX install. It has an incompatible calling convention.
3726 :
3727 elif test $ac_prog = install &&
3728 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3729 # program-specific install script used by HP pwplus--don't use.
3730 :
3731 else
3732 rm -rf conftest.one conftest.two conftest.dir
3733 echo one > conftest.one
3734 echo two > conftest.two
3735 mkdir conftest.dir
3736 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3737 test -s conftest.one && test -s conftest.two &&
3738 test -s conftest.dir/conftest.one &&
3739 test -s conftest.dir/conftest.two
3740 then
3741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3742 break 3
3743 fi
3744 fi
3745 fi
3746 done
3747 done
3748 ;;
3749esac
3750
3751 done
3752IFS=$as_save_IFS
3753
3754rm -rf conftest.one conftest.two conftest.dir
3755
3756fi
3757 if test "${ac_cv_path_install+set}" = set; then
3758 INSTALL=$ac_cv_path_install
3759 else
3760 # As a last resort, use the slow shell script. Don't cache a
3761 # value for INSTALL within a source directory, because that will
3762 # break other packages using the cache if that directory is
3763 # removed, or if the value is a relative name.
3764 INSTALL=$ac_install_sh
3765 fi
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3768$as_echo "$INSTALL" >&6; }
3769
3770# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3771# It thinks the first close brace ends the variable substitution.
3772test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3773
3774test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3775
3776test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3777
3778test "$program_prefix" != NONE &&
3779 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3780# Use a double $ so make ignores it.
3781test "$program_suffix" != NONE &&
3782 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3783# Double any \ or $.
3784# By default was `s,x,x', remove it if useless.
3785ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3786program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3787
3788# expand $ac_aux_dir to an absolute path
3789am_aux_dir=`cd $ac_aux_dir && pwd`
3790
3791if test x"${MISSING+set}" != xset; then
3792 case $am_aux_dir in
3793 *\ * | *\ *)
3794 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3795 *)
3796 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3797 esac
3798fi
3799# Use eval to expand $SHELL
3800if eval "$MISSING --run true"; then
3801 am_missing_run="$MISSING --run "
3802else
3803 am_missing_run=
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3805$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3806fi
3807
3808if test x"${install_sh}" != xset; then
3809 case $am_aux_dir in
3810 *\ * | *\ *)
3811 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3812 *)
3813 install_sh="\${SHELL} $am_aux_dir/install-sh"
3814 esac
3815fi
3816
3817# Installed binaries are usually stripped using `strip' when the user
3818# run `make install-strip'. However `strip' might not be the right
3819# tool to use in cross-compilation environments, therefore Automake
3820# will honor the `STRIP' environment variable to overrule this program.
3821if test "$cross_compiling" != no; then
3822 if test -n "$ac_tool_prefix"; then
3823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3824set dummy ${ac_tool_prefix}strip; ac_word=$2
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003827if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003828 $as_echo_n "(cached) " >&6
3829else
3830 if test -n "$STRIP"; then
3831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844done
3845 done
3846IFS=$as_save_IFS
3847
3848fi
3849fi
3850STRIP=$ac_cv_prog_STRIP
3851if test -n "$STRIP"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3853$as_echo "$STRIP" >&6; }
3854else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856$as_echo "no" >&6; }
3857fi
3858
3859
3860fi
3861if test -z "$ac_cv_prog_STRIP"; then
3862 ac_ct_STRIP=$STRIP
3863 # Extract the first word of "strip", so it can be a program name with args.
3864set dummy strip; ac_word=$2
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003867if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003868 $as_echo_n "(cached) " >&6
3869else
3870 if test -n "$ac_ct_STRIP"; then
3871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3872else
3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_ac_ct_STRIP="strip"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884done
3885 done
3886IFS=$as_save_IFS
3887
3888fi
3889fi
3890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3891if test -n "$ac_ct_STRIP"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3893$as_echo "$ac_ct_STRIP" >&6; }
3894else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896$as_echo "no" >&6; }
3897fi
3898
3899 if test "x$ac_ct_STRIP" = x; then
3900 STRIP=":"
3901 else
3902 case $cross_compiling:$ac_tool_warned in
3903yes:)
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906ac_tool_warned=yes ;;
3907esac
3908 STRIP=$ac_ct_STRIP
3909 fi
3910else
3911 STRIP="$ac_cv_prog_STRIP"
3912fi
3913
3914fi
3915INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3918$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3919if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003920 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003921 $as_echo_n "(cached) " >&6
3922else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_prog in mkdir gmkdir; do
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3931 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3932 'mkdir (GNU coreutils) '* | \
3933 'mkdir (coreutils) '* | \
3934 'mkdir (fileutils) '4.1*)
3935 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3936 break 3;;
3937 esac
3938 done
3939 done
3940 done
3941IFS=$as_save_IFS
3942
3943fi
3944
3945 test -d ./--version && rmdir ./--version
3946 if test "${ac_cv_path_mkdir+set}" = set; then
3947 MKDIR_P="$ac_cv_path_mkdir -p"
3948 else
3949 # As a last resort, use the slow shell script. Don't cache a
3950 # value for MKDIR_P within a source directory, because that will
3951 # break other packages using the cache if that directory is
3952 # removed, or if the value is a relative name.
3953 MKDIR_P="$ac_install_sh -d"
3954 fi
3955fi
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3957$as_echo "$MKDIR_P" >&6; }
3958
3959mkdir_p="$MKDIR_P"
3960case $mkdir_p in
3961 [\\/$]* | ?:[\\/]*) ;;
3962 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3963esac
3964
3965for ac_prog in gawk mawk nawk awk
3966do
3967 # Extract the first word of "$ac_prog", so it can be a program name with args.
3968set dummy $ac_prog; ac_word=$2
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003971if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003972 $as_echo_n "(cached) " >&6
3973else
3974 if test -n "$AWK"; then
3975 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3976else
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3984 ac_cv_prog_AWK="$ac_prog"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3987 fi
3988done
3989 done
3990IFS=$as_save_IFS
3991
3992fi
3993fi
3994AWK=$ac_cv_prog_AWK
3995if test -n "$AWK"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3997$as_echo "$AWK" >&6; }
3998else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
4001fi
4002
4003
4004 test -n "$AWK" && break
4005done
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4008$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4009set x ${MAKE-make}
4010ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004011if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004012 $as_echo_n "(cached) " >&6
4013else
4014 cat >conftest.make <<\_ACEOF
4015SHELL = /bin/sh
4016all:
4017 @echo '@@@%%%=$(MAKE)=@@@%%%'
4018_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004019# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004020case `${MAKE-make} -f conftest.make 2>/dev/null` in
4021 *@@@%%%=?*=@@@%%%*)
4022 eval ac_cv_prog_make_${ac_make}_set=yes;;
4023 *)
4024 eval ac_cv_prog_make_${ac_make}_set=no;;
4025esac
4026rm -f conftest.make
4027fi
4028if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4030$as_echo "yes" >&6; }
4031 SET_MAKE=
4032else
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034$as_echo "no" >&6; }
4035 SET_MAKE="MAKE=${MAKE-make}"
4036fi
4037
4038rm -rf .tst 2>/dev/null
4039mkdir .tst 2>/dev/null
4040if test -d .tst; then
4041 am__leading_dot=.
4042else
4043 am__leading_dot=_
4044fi
4045rmdir .tst 2>/dev/null
4046
cristya448bd22011-10-14 12:38:13 +00004047# Check whether --enable-silent-rules was given.
4048if test "${enable_silent_rules+set}" = set; then :
4049 enableval=$enable_silent_rules;
4050fi
4051
4052case $enable_silent_rules in
4053yes) AM_DEFAULT_VERBOSITY=0;;
4054no) AM_DEFAULT_VERBOSITY=1;;
4055*) AM_DEFAULT_VERBOSITY=1;;
4056esac
cristyc3fb77b2012-02-06 01:49:41 +00004057am_make=${MAKE-make}
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4059$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4060if ${am_cv_make_support_nested_variables+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062else
4063 if $as_echo 'TRUE=$(BAR$(V))
4064BAR0=false
4065BAR1=true
4066V=1
4067am__doit:
4068 @$(TRUE)
4069.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4070 am_cv_make_support_nested_variables=yes
4071else
4072 am_cv_make_support_nested_variables=no
4073fi
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4076$as_echo "$am_cv_make_support_nested_variables" >&6; }
4077if test $am_cv_make_support_nested_variables = yes; then
4078 AM_V='$(V)'
4079 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4080else
4081 AM_V=$AM_DEFAULT_VERBOSITY
4082 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4083fi
cristya448bd22011-10-14 12:38:13 +00004084AM_BACKSLASH='\'
4085
cristy73bd4a52010-10-05 11:24:23 +00004086if test "`cd $srcdir && pwd`" != "`pwd`"; then
4087 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4088 # is not polluted with repeated "-I."
4089 am__isrc=' -I$(srcdir)'
4090 # test to see if srcdir already configured
4091 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004092 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004093 fi
4094fi
4095
4096# test whether we have cygpath
4097if test -z "$CYGPATH_W"; then
4098 if (cygpath --version) >/dev/null 2>/dev/null; then
4099 CYGPATH_W='cygpath -w'
4100 else
4101 CYGPATH_W=echo
4102 fi
4103fi
4104
4105
4106# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004107 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004108 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004109
4110
cristya448bd22011-10-14 12:38:13 +00004111cat >>confdefs.h <<_ACEOF
4112#define PACKAGE "$PACKAGE"
4113_ACEOF
4114
4115
4116cat >>confdefs.h <<_ACEOF
4117#define VERSION "$VERSION"
4118_ACEOF
4119
cristy73bd4a52010-10-05 11:24:23 +00004120# Some tools Automake needs.
4121
4122ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4123
4124
4125AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4126
4127
4128AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4129
4130
4131AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4132
4133
4134MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4135
4136# We need awk for the "check" target. The system "awk" is bad on
4137# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004138# Always define AMTAR for backward compatibility. Yes, it's still used
4139# in the wild :-( We should find a proper way to deprecate it ...
4140AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004141
cristyc3fb77b2012-02-06 01:49:41 +00004142am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004143
4144
4145
4146
4147
cristy3ed852e2009-09-05 21:47:34 +00004148
4149# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004150# Check whether --enable-silent-rules was given.
4151if test "${enable_silent_rules+set}" = set; then :
4152 enableval=$enable_silent_rules;
4153fi
4154
4155case $enable_silent_rules in
4156yes) AM_DEFAULT_VERBOSITY=0;;
4157no) AM_DEFAULT_VERBOSITY=1;;
4158*) AM_DEFAULT_VERBOSITY=0;;
4159esac
cristyc3fb77b2012-02-06 01:49:41 +00004160am_make=${MAKE-make}
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4162$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4163if ${am_cv_make_support_nested_variables+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165else
4166 if $as_echo 'TRUE=$(BAR$(V))
4167BAR0=false
4168BAR1=true
4169V=1
4170am__doit:
4171 @$(TRUE)
4172.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4173 am_cv_make_support_nested_variables=yes
4174else
4175 am_cv_make_support_nested_variables=no
4176fi
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4179$as_echo "$am_cv_make_support_nested_variables" >&6; }
4180if test $am_cv_make_support_nested_variables = yes; then
4181 AM_V='$(V)'
4182 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4183else
4184 AM_V=$AM_DEFAULT_VERBOSITY
4185 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4186fi
cristy73bd4a52010-10-05 11:24:23 +00004187AM_BACKSLASH='\'
4188
cristy3ed852e2009-09-05 21:47:34 +00004189
4190MAGICK_LIB_VERSION="0x"
4191if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4192 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4193fi
4194MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4195if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4196 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4197fi
4198MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4199if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4200 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4201fi
4202MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4203
4204
4205# Definition used to define MagickLibVersionText in version.h
4206MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4207
4208
4209# Definition used to define MagickLibVersionNumber in version.h
4210MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4211
4212
4213# Regenerate config.status if ChangeLog or version.sh is updated.
4214CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4215
4216
4217PERLMAINCC=$CC
4218
4219MAGICK_CFLAGS=''
4220MAGICK_CPPFLAGS=$CPPFLAGS_USER
4221MAGICK_PCFLAGS=$CPPFLAGS_USER
4222MAGICK_LDFLAGS=''
4223MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004224MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004225
4226#
4227# Evaluate shell variable equivalents to Makefile directory variables
4228#
4229if test "x$prefix" = xNONE; then
4230 prefix=$ac_default_prefix
4231fi
4232# Let make expand exec_prefix.
4233if test "x$exec_prefix" = xNONE; then
4234 exec_prefix='${prefix}'
4235fi
4236
4237#
4238eval "eval PREFIX_DIR=${prefix}"
4239
4240eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4241
4242eval "eval BIN_DIR=$bindir"
4243
4244eval "eval SBIN_DIR=$sbindir"
4245
4246eval "eval LIBEXEC_DIR=$libexecdir"
4247
4248eval "eval DATA_DIR=$datadir"
4249
cristy4e65ec22012-04-08 01:33:27 +00004250eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004251
cristy3ed852e2009-09-05 21:47:34 +00004252eval "eval SYSCONF_DIR=$sysconfdir"
4253
4254eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4255
4256eval "eval LOCALSTATE_DIR=$localstatedir"
4257
4258eval "eval LIB_DIR=$libdir"
4259
4260eval "eval INCLUDE_DIR=$includedir"
4261
4262eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4263
4264eval "eval INFO_DIR=$infodir"
4265
4266eval "eval MAN_DIR=$mandir"
4267
4268
4269# Get full paths to source and build directories
4270srcdirfull="`cd $srcdir && pwd`"
4271builddir="`pwd`"
4272
4273#
4274# Compute variables useful for running uninstalled software.
4275#
4276MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4277MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4278MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4279MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4280DIRSEP=':'
4281case "${build_os}" in
4282 mingw* )
4283 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4284 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4285 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4286 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4287 DIRSEP=';'
4288 ;;
4289esac
4290case "${host_os}" in
4291 mingw* )
4292 DIRSEP=';'
4293 ;;
4294esac
4295
4296
4297
4298
4299
4300
cristya0b81c32010-01-22 02:54:33 +00004301
4302#
4303# Enable OS features.
4304#
cristy73bd4a52010-10-05 11:24:23 +00004305DEPDIR="${am__leading_dot}deps"
4306
4307ac_config_commands="$ac_config_commands depfiles"
4308
4309
4310am_make=${MAKE-make}
4311cat > confinc << 'END'
4312am__doit:
4313 @echo this is the am__doit target
4314.PHONY: am__doit
4315END
4316# If we don't find an include directive, just comment out the code.
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4318$as_echo_n "checking for style of include used by $am_make... " >&6; }
4319am__include="#"
4320am__quote=
4321_am_result=none
4322# First try GNU make style include.
4323echo "include confinc" > confmf
4324# Ignore all kinds of additional output from `make'.
4325case `$am_make -s -f confmf 2> /dev/null` in #(
4326*the\ am__doit\ target*)
4327 am__include=include
4328 am__quote=
4329 _am_result=GNU
4330 ;;
4331esac
4332# Now try BSD make style include.
4333if test "$am__include" = "#"; then
4334 echo '.include "confinc"' > confmf
4335 case `$am_make -s -f confmf 2> /dev/null` in #(
4336 *the\ am__doit\ target*)
4337 am__include=.include
4338 am__quote="\""
4339 _am_result=BSD
4340 ;;
4341 esac
4342fi
4343
4344
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4346$as_echo "$_am_result" >&6; }
4347rm -f confinc confmf
4348
4349# Check whether --enable-dependency-tracking was given.
4350if test "${enable_dependency_tracking+set}" = set; then :
4351 enableval=$enable_dependency_tracking;
4352fi
4353
4354if test "x$enable_dependency_tracking" != xno; then
4355 am_depcomp="$ac_aux_dir/depcomp"
4356 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004357 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004358fi
4359 if test "x$enable_dependency_tracking" != xno; then
4360 AMDEP_TRUE=
4361 AMDEP_FALSE='#'
4362else
4363 AMDEP_TRUE='#'
4364 AMDEP_FALSE=
4365fi
4366
4367
cristy3ed852e2009-09-05 21:47:34 +00004368ac_ext=c
4369ac_cpp='$CPP $CPPFLAGS'
4370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373if test -n "$ac_tool_prefix"; then
4374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4375set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004378if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004379 $as_echo_n "(cached) " >&6
4380else
4381 if test -n "$CC"; then
4382 ac_cv_prog_CC="$CC" # Let the user override the test.
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004393 break 2
4394 fi
4395done
cristy8b350f62009-11-15 23:12:43 +00004396 done
cristy3ed852e2009-09-05 21:47:34 +00004397IFS=$as_save_IFS
4398
4399fi
4400fi
4401CC=$ac_cv_prog_CC
4402if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo "$CC" >&6; }
4405else
cristy8b350f62009-11-15 23:12:43 +00004406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004407$as_echo "no" >&6; }
4408fi
4409
4410
4411fi
4412if test -z "$ac_cv_prog_CC"; then
4413 ac_ct_CC=$CC
4414 # Extract the first word of "gcc", so it can be a program name with args.
4415set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004418if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004419 $as_echo_n "(cached) " >&6
4420else
4421 if test -n "$ac_ct_CC"; then
4422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433 break 2
4434 fi
4435done
cristy8b350f62009-11-15 23:12:43 +00004436 done
cristy3ed852e2009-09-05 21:47:34 +00004437IFS=$as_save_IFS
4438
4439fi
4440fi
4441ac_ct_CC=$ac_cv_prog_ac_ct_CC
4442if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004444$as_echo "$ac_ct_CC" >&6; }
4445else
cristy8b350f62009-11-15 23:12:43 +00004446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo "no" >&6; }
4448fi
4449
4450 if test "x$ac_ct_CC" = x; then
4451 CC=""
4452 else
4453 case $cross_compiling:$ac_tool_warned in
4454yes:)
cristy8b350f62009-11-15 23:12:43 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4457ac_tool_warned=yes ;;
4458esac
4459 CC=$ac_ct_CC
4460 fi
4461else
4462 CC="$ac_cv_prog_CC"
4463fi
4464
4465if test -z "$CC"; then
4466 if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4468set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004470$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004471if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004472 $as_echo_n "(cached) " >&6
4473else
4474 if test -n "$CC"; then
4475 ac_cv_prog_CC="$CC" # Let the user override the test.
4476else
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486 break 2
4487 fi
4488done
cristy8b350f62009-11-15 23:12:43 +00004489 done
cristy3ed852e2009-09-05 21:47:34 +00004490IFS=$as_save_IFS
4491
4492fi
4493fi
4494CC=$ac_cv_prog_CC
4495if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004497$as_echo "$CC" >&6; }
4498else
cristy8b350f62009-11-15 23:12:43 +00004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004500$as_echo "no" >&6; }
4501fi
4502
4503
4504 fi
4505fi
4506if test -z "$CC"; then
4507 # Extract the first word of "cc", so it can be a program name with args.
4508set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004511if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004512 $as_echo_n "(cached) " >&6
4513else
4514 if test -n "$CC"; then
4515 ac_cv_prog_CC="$CC" # Let the user override the test.
4516else
4517 ac_prog_rejected=no
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4526 ac_prog_rejected=yes
4527 continue
4528 fi
4529 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004531 break 2
4532 fi
4533done
cristy8b350f62009-11-15 23:12:43 +00004534 done
cristy3ed852e2009-09-05 21:47:34 +00004535IFS=$as_save_IFS
4536
4537if test $ac_prog_rejected = yes; then
4538 # We found a bogon in the path, so make sure we never use it.
4539 set dummy $ac_cv_prog_CC
4540 shift
4541 if test $# != 0; then
4542 # We chose a different compiler from the bogus one.
4543 # However, it has the same basename, so the bogon will be chosen
4544 # first if we set CC to just the basename; use the full file name.
4545 shift
4546 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4547 fi
4548fi
4549fi
4550fi
4551CC=$ac_cv_prog_CC
4552if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554$as_echo "$CC" >&6; }
4555else
cristy8b350f62009-11-15 23:12:43 +00004556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004557$as_echo "no" >&6; }
4558fi
4559
4560
4561fi
4562if test -z "$CC"; then
4563 if test -n "$ac_tool_prefix"; then
4564 for ac_prog in cl.exe
4565 do
4566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4567set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004570if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004571 $as_echo_n "(cached) " >&6
4572else
4573 if test -n "$CC"; then
4574 ac_cv_prog_CC="$CC" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004585 break 2
4586 fi
4587done
cristy8b350f62009-11-15 23:12:43 +00004588 done
cristy3ed852e2009-09-05 21:47:34 +00004589IFS=$as_save_IFS
4590
4591fi
4592fi
4593CC=$ac_cv_prog_CC
4594if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo "$CC" >&6; }
4597else
cristy8b350f62009-11-15 23:12:43 +00004598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004599$as_echo "no" >&6; }
4600fi
4601
4602
4603 test -n "$CC" && break
4604 done
4605fi
4606if test -z "$CC"; then
4607 ac_ct_CC=$CC
4608 for ac_prog in cl.exe
4609do
4610 # Extract the first word of "$ac_prog", so it can be a program name with args.
4611set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004614if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004615 $as_echo_n "(cached) " >&6
4616else
4617 if test -n "$ac_ct_CC"; then
4618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004625 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004629 break 2
4630 fi
4631done
cristy8b350f62009-11-15 23:12:43 +00004632 done
cristy3ed852e2009-09-05 21:47:34 +00004633IFS=$as_save_IFS
4634
4635fi
4636fi
4637ac_ct_CC=$ac_cv_prog_ac_ct_CC
4638if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004640$as_echo "$ac_ct_CC" >&6; }
4641else
cristy8b350f62009-11-15 23:12:43 +00004642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004643$as_echo "no" >&6; }
4644fi
4645
4646
4647 test -n "$ac_ct_CC" && break
4648done
4649
4650 if test "x$ac_ct_CC" = x; then
4651 CC=""
4652 else
4653 case $cross_compiling:$ac_tool_warned in
4654yes:)
cristy8b350f62009-11-15 23:12:43 +00004655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4657ac_tool_warned=yes ;;
4658esac
4659 CC=$ac_ct_CC
4660 fi
4661fi
4662
4663fi
4664
4665
cristy8b350f62009-11-15 23:12:43 +00004666test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004668as_fn_error $? "no acceptable C compiler found in \$PATH
4669See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004670
4671# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004672$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673set X $ac_compile
4674ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004675for ac_option in --version -v -V -qversion; do
4676 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004677case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
cristy8b350f62009-11-15 23:12:43 +00004681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682$as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004684 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004685 if test -s conftest.err; then
4686 sed '10a\
4687... rest of stderr output deleted ...
4688 10q' conftest.err >conftest.er1
4689 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004690 fi
cristycd4c5312009-11-22 01:19:08 +00004691 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693 test $ac_status = 0; }
4694done
cristy3ed852e2009-09-05 21:47:34 +00004695
cristy8b350f62009-11-15 23:12:43 +00004696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004697/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004698
cristy3ed852e2009-09-05 21:47:34 +00004699int
4700main ()
4701{
4702
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004708ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004709# Try to create an executable without -o first, disregard a.out.
4710# It will help us diagnose broken compilers, and finding out an intuition
4711# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4713$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004714ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4715
4716# The possible output files:
4717ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4718
4719ac_rmfiles=
4720for ac_file in $ac_files
4721do
4722 case $ac_file in
4723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4725 esac
4726done
4727rm -f $ac_rmfiles
4728
cristy8b350f62009-11-15 23:12:43 +00004729if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004730case "(($ac_try" in
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4733esac
cristy8b350f62009-11-15 23:12:43 +00004734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4735$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004736 (eval "$ac_link_default") 2>&5
4737 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4739 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4741# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4742# in a Makefile. We should not override ac_cv_exeext if it was cached,
4743# so that the user can short-circuit this test for compilers unknown to
4744# Autoconf.
4745for ac_file in $ac_files ''
4746do
4747 test -f "$ac_file" || continue
4748 case $ac_file in
4749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4750 ;;
4751 [ab].out )
4752 # We found the default executable, but exeext='' is most
4753 # certainly right.
4754 break;;
4755 *.* )
cristy8b350f62009-11-15 23:12:43 +00004756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004757 then :; else
4758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4759 fi
4760 # We set ac_cv_exeext here because the later test for it is not
4761 # safe: cross compilers may not add the suffix if given an `-o'
4762 # argument, so we may need to know it at that point already.
4763 # Even if this section looks crufty: it has the advantage of
4764 # actually working.
4765 break;;
4766 * )
4767 break;;
4768 esac
4769done
4770test "$ac_cv_exeext" = no && ac_cv_exeext=
4771
4772else
4773 ac_file=''
4774fi
cristy8b350f62009-11-15 23:12:43 +00004775if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777$as_echo "no" >&6; }
4778$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004779sed 's/^/| /' conftest.$ac_ext >&5
4780
cristy8b350f62009-11-15 23:12:43 +00004781{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004783as_fn_error 77 "C compiler cannot create executables
4784See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004785else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004788fi
cristycd4c5312009-11-22 01:19:08 +00004789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4790$as_echo_n "checking for C compiler default output file name... " >&6; }
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4792$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004793ac_exeext=$ac_cv_exeext
4794
cristycd4c5312009-11-22 01:19:08 +00004795rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004796ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004798$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004799if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004800case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803esac
cristy8b350f62009-11-15 23:12:43 +00004804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4805$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004806 (eval "$ac_link") 2>&5
4807 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004810 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4811# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4812# work properly (i.e., refer to `conftest.exe'), while it won't with
4813# `rm'.
4814for ac_file in conftest.exe conftest conftest.*; do
4815 test -f "$ac_file" || continue
4816 case $ac_file in
4817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4818 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4819 break;;
4820 * ) break;;
4821 esac
4822done
4823else
cristy8b350f62009-11-15 23:12:43 +00004824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004826as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4827See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004828fi
cristycd4c5312009-11-22 01:19:08 +00004829rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004831$as_echo "$ac_cv_exeext" >&6; }
4832
4833rm -f conftest.$ac_ext
4834EXEEXT=$ac_cv_exeext
4835ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h. */
4838#include <stdio.h>
4839int
4840main ()
4841{
4842FILE *f = fopen ("conftest.out", "w");
4843 return ferror (f) || fclose (f) != 0;
4844
4845 ;
4846 return 0;
4847}
4848_ACEOF
4849ac_clean_files="$ac_clean_files conftest.out"
4850# Check that the compiler produces executables we can run. If not, either
4851# the compiler is broken, or we cross compile.
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4853$as_echo_n "checking whether we are cross compiling... " >&6; }
4854if test "$cross_compiling" != yes; then
4855 { { ac_try="$ac_link"
4856case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859esac
4860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861$as_echo "$ac_try_echo"; } >&5
4862 (eval "$ac_link") 2>&5
4863 ac_status=$?
4864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865 test $ac_status = 0; }
4866 if { ac_try='./conftest$ac_cv_exeext'
4867 { { case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4870esac
4871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4872$as_echo "$ac_try_echo"; } >&5
4873 (eval "$ac_try") 2>&5
4874 ac_status=$?
4875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4876 test $ac_status = 0; }; }; then
4877 cross_compiling=no
4878 else
4879 if test "$cross_compiling" = maybe; then
4880 cross_compiling=yes
4881 else
4882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004884as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004885If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004886See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004887 fi
4888 fi
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4891$as_echo "$cross_compiling" >&6; }
4892
4893rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4894ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004896$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004897if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004898 $as_echo_n "(cached) " >&6
4899else
cristy8b350f62009-11-15 23:12:43 +00004900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004901/* end confdefs.h. */
4902
4903int
4904main ()
4905{
4906
4907 ;
4908 return 0;
4909}
4910_ACEOF
4911rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004912if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004913case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916esac
cristy8b350f62009-11-15 23:12:43 +00004917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004919 (eval "$ac_compile") 2>&5
4920 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004923 for ac_file in conftest.o conftest.obj conftest.*; do
4924 test -f "$ac_file" || continue;
4925 case $ac_file in
4926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4927 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4928 break;;
4929 esac
4930done
4931else
4932 $as_echo "$as_me: failed program was:" >&5
4933sed 's/^/| /' conftest.$ac_ext >&5
4934
cristy8b350f62009-11-15 23:12:43 +00004935{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004937as_fn_error $? "cannot compute suffix of object files: cannot compile
4938See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004939fi
cristy3ed852e2009-09-05 21:47:34 +00004940rm -f conftest.$ac_cv_objext conftest.$ac_ext
4941fi
cristy8b350f62009-11-15 23:12:43 +00004942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004943$as_echo "$ac_cv_objext" >&6; }
4944OBJEXT=$ac_cv_objext
4945ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004947$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004948if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004949 $as_echo_n "(cached) " >&6
4950else
cristy8b350f62009-11-15 23:12:43 +00004951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004952/* end confdefs.h. */
4953
4954int
4955main ()
4956{
4957#ifndef __GNUC__
4958 choke me
4959#endif
4960
4961 ;
4962 return 0;
4963}
4964_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004965if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004966 ac_compiler_gnu=yes
4967else
cristy8b350f62009-11-15 23:12:43 +00004968 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004969fi
cristy3ed852e2009-09-05 21:47:34 +00004970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971ac_cv_c_compiler_gnu=$ac_compiler_gnu
4972
4973fi
cristy8b350f62009-11-15 23:12:43 +00004974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004975$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4976if test $ac_compiler_gnu = yes; then
4977 GCC=yes
4978else
4979 GCC=
4980fi
4981ac_test_CFLAGS=${CFLAGS+set}
4982ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004984$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004985if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004986 $as_echo_n "(cached) " >&6
4987else
4988 ac_save_c_werror_flag=$ac_c_werror_flag
4989 ac_c_werror_flag=yes
4990 ac_cv_prog_cc_g=no
4991 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004993/* end confdefs.h. */
4994
4995int
4996main ()
4997{
4998
4999 ;
5000 return 0;
5001}
5002_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005003if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005004 ac_cv_prog_cc_g=yes
5005else
cristy8b350f62009-11-15 23:12:43 +00005006 CFLAGS=""
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005008/* end confdefs.h. */
5009
5010int
5011main ()
5012{
5013
5014 ;
5015 return 0;
5016}
5017_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005018if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005019
cristy8b350f62009-11-15 23:12:43 +00005020else
5021 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005022 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005024/* end confdefs.h. */
5025
5026int
5027main ()
5028{
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005034if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005035 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005036fi
cristy3ed852e2009-09-05 21:47:34 +00005037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038fi
cristy3ed852e2009-09-05 21:47:34 +00005039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040fi
cristy3ed852e2009-09-05 21:47:34 +00005041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 ac_c_werror_flag=$ac_save_c_werror_flag
5043fi
cristy8b350f62009-11-15 23:12:43 +00005044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005045$as_echo "$ac_cv_prog_cc_g" >&6; }
5046if test "$ac_test_CFLAGS" = set; then
5047 CFLAGS=$ac_save_CFLAGS
5048elif test $ac_cv_prog_cc_g = yes; then
5049 if test "$GCC" = yes; then
5050 CFLAGS="-g -O2"
5051 else
5052 CFLAGS="-g"
5053 fi
5054else
5055 if test "$GCC" = yes; then
5056 CFLAGS="-O2"
5057 else
5058 CFLAGS=
5059 fi
5060fi
cristy8b350f62009-11-15 23:12:43 +00005061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005062$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005063if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005064 $as_echo_n "(cached) " >&6
5065else
5066 ac_cv_prog_cc_c89=no
5067ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005069/* end confdefs.h. */
5070#include <stdarg.h>
5071#include <stdio.h>
5072#include <sys/types.h>
5073#include <sys/stat.h>
5074/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5075struct buf { int x; };
5076FILE * (*rcsopen) (struct buf *, struct stat *, int);
5077static char *e (p, i)
5078 char **p;
5079 int i;
5080{
5081 return p[i];
5082}
5083static char *f (char * (*g) (char **, int), char **p, ...)
5084{
5085 char *s;
5086 va_list v;
5087 va_start (v,p);
5088 s = g (p, va_arg (v,int));
5089 va_end (v);
5090 return s;
5091}
5092
5093/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5094 function prototypes and stuff, but not '\xHH' hex character constants.
5095 These don't provoke an error unfortunately, instead are silently treated
5096 as 'x'. The following induces an error, until -std is added to get
5097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5098 array size at least. It's necessary to write '\x00'==0 to get something
5099 that's true only with -std. */
5100int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5101
5102/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5103 inside strings and character constants. */
5104#define FOO(x) 'x'
5105int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5106
5107int test (int i, double x);
5108struct s1 {int (*f) (int a);};
5109struct s2 {int (*f) (double a);};
5110int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5111int argc;
5112char **argv;
5113int
5114main ()
5115{
5116return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5117 ;
5118 return 0;
5119}
5120_ACEOF
5121for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5123do
5124 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005125 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005126 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005127fi
cristy3ed852e2009-09-05 21:47:34 +00005128rm -f core conftest.err conftest.$ac_objext
5129 test "x$ac_cv_prog_cc_c89" != "xno" && break
5130done
5131rm -f conftest.$ac_ext
5132CC=$ac_save_CC
5133
5134fi
5135# AC_CACHE_VAL
5136case "x$ac_cv_prog_cc_c89" in
5137 x)
cristy8b350f62009-11-15 23:12:43 +00005138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005139$as_echo "none needed" >&6; } ;;
5140 xno)
cristy8b350f62009-11-15 23:12:43 +00005141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005142$as_echo "unsupported" >&6; } ;;
5143 *)
5144 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005146$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5147esac
cristy8b350f62009-11-15 23:12:43 +00005148if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005149
cristy8b350f62009-11-15 23:12:43 +00005150fi
cristy3ed852e2009-09-05 21:47:34 +00005151
5152ac_ext=c
5153ac_cpp='$CPP $CPPFLAGS'
5154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005157
cristy73bd4a52010-10-05 11:24:23 +00005158depcc="$CC" am_compiler_list=
5159
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5161$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005162if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005163 $as_echo_n "(cached) " >&6
5164else
5165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5166 # We make a subdir and do the tests there. Otherwise we can end up
5167 # making bogus files that we don't know about and never remove. For
5168 # instance it was reported that on HP-UX the gcc test will end up
5169 # making a dummy file named `D' -- because `-MD' means `put the output
5170 # in D'.
cristy7247bba2012-02-05 16:37:27 +00005171 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005172 mkdir conftest.dir
5173 # Copy depcomp to subdir because otherwise we won't find it if we're
5174 # using a relative directory.
5175 cp "$am_depcomp" conftest.dir
5176 cd conftest.dir
5177 # We will build objects and dependencies in a subdirectory because
5178 # it helps to detect inapplicable dependency modes. For instance
5179 # both Tru64's cc and ICC support -MD to output dependencies as a
5180 # side effect of compilation, but ICC will put the dependencies in
5181 # the current directory while Tru64 will put them in the object
5182 # directory.
5183 mkdir sub
5184
5185 am_cv_CC_dependencies_compiler_type=none
5186 if test "$am_compiler_list" = ""; then
5187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5188 fi
5189 am__universal=false
5190 case " $depcc " in #(
5191 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5192 esac
5193
5194 for depmode in $am_compiler_list; do
5195 # Setup a source with many dependencies, because some compilers
5196 # like to wrap large dependency lists on column 80 (with \), and
5197 # we should not choose a depcomp mode which is confused by this.
5198 #
5199 # We need to recreate these files for each test, as the compiler may
5200 # overwrite some of them when testing with obscure command lines.
5201 # This happens at least with the AIX C compiler.
5202 : > sub/conftest.c
5203 for i in 1 2 3 4 5 6; do
5204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5206 # Solaris 8's {/usr,}/bin/sh.
5207 touch sub/conftst$i.h
5208 done
5209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5210
5211 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5212 # mode. It turns out that the SunPro C++ compiler does not properly
5213 # handle `-M -o', and we need to detect this. Also, some Intel
5214 # versions had trouble with output in subdirs
5215 am__obj=sub/conftest.${OBJEXT-o}
5216 am__minus_obj="-o $am__obj"
5217 case $depmode in
5218 gcc)
5219 # This depmode causes a compiler race in universal mode.
5220 test "$am__universal" = false || continue
5221 ;;
5222 nosideeffect)
5223 # after this tag, mechanisms are not by side-effect, so they'll
5224 # only be used when explicitly requested
5225 if test "x$enable_dependency_tracking" = xyes; then
5226 continue
5227 else
5228 break
5229 fi
5230 ;;
cristy7247bba2012-02-05 16:37:27 +00005231 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00005232 # This compiler won't grok `-c -o', but also, the minuso test has
5233 # not run yet. These depmodes are late enough in the game, and
5234 # so weak that their functioning should not be impacted.
5235 am__obj=conftest.${OBJEXT-o}
5236 am__minus_obj=
5237 ;;
5238 none) break ;;
5239 esac
5240 if depmode=$depmode \
5241 source=sub/conftest.c object=$am__obj \
5242 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5243 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5244 >/dev/null 2>conftest.err &&
5245 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5246 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5247 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5248 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5249 # icc doesn't choke on unknown options, it will just issue warnings
5250 # or remarks (even with -Werror). So we grep stderr for any message
5251 # that says an option was ignored or not supported.
5252 # When given -MP, icc 7.0 and 7.1 complain thusly:
5253 # icc: Command line warning: ignoring option '-M'; no argument required
5254 # The diagnosis changed in icc 8.0:
5255 # icc: Command line remark: option '-MP' not supported
5256 if (grep 'ignoring option' conftest.err ||
5257 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5258 am_cv_CC_dependencies_compiler_type=$depmode
5259 break
5260 fi
5261 fi
5262 done
5263
5264 cd ..
5265 rm -rf conftest.dir
5266else
5267 am_cv_CC_dependencies_compiler_type=none
5268fi
5269
5270fi
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5272$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5273CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5274
5275 if
5276 test "x$enable_dependency_tracking" != xno \
5277 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5278 am__fastdepCC_TRUE=
5279 am__fastdepCC_FALSE='#'
5280else
5281 am__fastdepCC_TRUE='#'
5282 am__fastdepCC_FALSE=
5283fi
5284
5285
cristy3ed852e2009-09-05 21:47:34 +00005286
cristya0b81c32010-01-22 02:54:33 +00005287ac_ext=c
5288ac_cpp='$CPP $CPPFLAGS'
5289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5293$as_echo_n "checking how to run the C preprocessor... " >&6; }
5294# On Suns, sometimes $CPP names a directory.
5295if test -n "$CPP" && test -d "$CPP"; then
5296 CPP=
5297fi
5298if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005299 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005300 $as_echo_n "(cached) " >&6
5301else
5302 # Double quotes because CPP needs to be expanded
5303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5304 do
5305 ac_preproc_ok=false
5306for ac_c_preproc_warn_flag in '' yes
5307do
5308 # Use a header file that comes with gcc, so configuring glibc
5309 # with a fresh cross-compiler works.
5310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311 # <limits.h> exists even on freestanding compilers.
5312 # On the NeXT, cc -E runs the code through the compiler's parser,
5313 # not just through cpp. "Syntax error" is here to catch this case.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h. */
5316#ifdef __STDC__
5317# include <limits.h>
5318#else
5319# include <assert.h>
5320#endif
5321 Syntax error
5322_ACEOF
5323if ac_fn_c_try_cpp "$LINENO"; then :
5324
5325else
5326 # Broken: fails on valid input.
5327continue
5328fi
cristyda16f162011-02-19 23:52:17 +00005329rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005330
5331 # OK, works on sane cases. Now check whether nonexistent headers
5332 # can be detected and how.
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h. */
5335#include <ac_nonexistent.h>
5336_ACEOF
5337if ac_fn_c_try_cpp "$LINENO"; then :
5338 # Broken: success on invalid input.
5339continue
5340else
5341 # Passes both tests.
5342ac_preproc_ok=:
5343break
5344fi
cristyda16f162011-02-19 23:52:17 +00005345rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005346
5347done
5348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005349rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005350if $ac_preproc_ok; then :
5351 break
5352fi
5353
5354 done
5355 ac_cv_prog_CPP=$CPP
5356
5357fi
5358 CPP=$ac_cv_prog_CPP
5359else
5360 ac_cv_prog_CPP=$CPP
5361fi
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5363$as_echo "$CPP" >&6; }
5364ac_preproc_ok=false
5365for ac_c_preproc_warn_flag in '' yes
5366do
5367 # Use a header file that comes with gcc, so configuring glibc
5368 # with a fresh cross-compiler works.
5369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5370 # <limits.h> exists even on freestanding compilers.
5371 # On the NeXT, cc -E runs the code through the compiler's parser,
5372 # not just through cpp. "Syntax error" is here to catch this case.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#ifdef __STDC__
5376# include <limits.h>
5377#else
5378# include <assert.h>
5379#endif
5380 Syntax error
5381_ACEOF
5382if ac_fn_c_try_cpp "$LINENO"; then :
5383
5384else
5385 # Broken: fails on valid input.
5386continue
5387fi
cristyda16f162011-02-19 23:52:17 +00005388rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005389
5390 # OK, works on sane cases. Now check whether nonexistent headers
5391 # can be detected and how.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h. */
5394#include <ac_nonexistent.h>
5395_ACEOF
5396if ac_fn_c_try_cpp "$LINENO"; then :
5397 # Broken: success on invalid input.
5398continue
5399else
5400 # Passes both tests.
5401ac_preproc_ok=:
5402break
5403fi
cristyda16f162011-02-19 23:52:17 +00005404rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005405
5406done
5407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005408rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005409if $ac_preproc_ok; then :
5410
5411else
5412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005414as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5415See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005416fi
5417
5418ac_ext=c
5419ac_cpp='$CPP $CPPFLAGS'
5420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5426$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005427if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005428 $as_echo_n "(cached) " >&6
5429else
5430 if test -z "$GREP"; then
5431 ac_path_GREP_found=false
5432 # Loop through the user's path and test for each of PROGNAME-LIST
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_prog in grep ggrep; do
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5442# Check for GNU ac_path_GREP and select it if it is found.
5443 # Check for GNU $ac_path_GREP
5444case `"$ac_path_GREP" --version 2>&1` in
5445*GNU*)
5446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5447*)
5448 ac_count=0
5449 $as_echo_n 0123456789 >"conftest.in"
5450 while :
5451 do
5452 cat "conftest.in" "conftest.in" >"conftest.tmp"
5453 mv "conftest.tmp" "conftest.in"
5454 cp "conftest.in" "conftest.nl"
5455 $as_echo 'GREP' >> "conftest.nl"
5456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5458 as_fn_arith $ac_count + 1 && ac_count=$as_val
5459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5460 # Best one so far, save it but keep looking for a better one
5461 ac_cv_path_GREP="$ac_path_GREP"
5462 ac_path_GREP_max=$ac_count
5463 fi
5464 # 10*(2^10) chars as input seems more than enough
5465 test $ac_count -gt 10 && break
5466 done
5467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5468esac
5469
5470 $ac_path_GREP_found && break 3
5471 done
5472 done
5473 done
5474IFS=$as_save_IFS
5475 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005476 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005477 fi
5478else
5479 ac_cv_path_GREP=$GREP
5480fi
5481
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5484$as_echo "$ac_cv_path_GREP" >&6; }
5485 GREP="$ac_cv_path_GREP"
5486
5487
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5489$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005490if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005491 $as_echo_n "(cached) " >&6
5492else
5493 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5494 then ac_cv_path_EGREP="$GREP -E"
5495 else
5496 if test -z "$EGREP"; then
5497 ac_path_EGREP_found=false
5498 # Loop through the user's path and test for each of PROGNAME-LIST
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5501do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_prog in egrep; do
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5507 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5508# Check for GNU ac_path_EGREP and select it if it is found.
5509 # Check for GNU $ac_path_EGREP
5510case `"$ac_path_EGREP" --version 2>&1` in
5511*GNU*)
5512 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5513*)
5514 ac_count=0
5515 $as_echo_n 0123456789 >"conftest.in"
5516 while :
5517 do
5518 cat "conftest.in" "conftest.in" >"conftest.tmp"
5519 mv "conftest.tmp" "conftest.in"
5520 cp "conftest.in" "conftest.nl"
5521 $as_echo 'EGREP' >> "conftest.nl"
5522 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5524 as_fn_arith $ac_count + 1 && ac_count=$as_val
5525 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5526 # Best one so far, save it but keep looking for a better one
5527 ac_cv_path_EGREP="$ac_path_EGREP"
5528 ac_path_EGREP_max=$ac_count
5529 fi
5530 # 10*(2^10) chars as input seems more than enough
5531 test $ac_count -gt 10 && break
5532 done
5533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5534esac
5535
5536 $ac_path_EGREP_found && break 3
5537 done
5538 done
5539 done
5540IFS=$as_save_IFS
5541 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005542 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005543 fi
5544else
5545 ac_cv_path_EGREP=$EGREP
5546fi
5547
5548 fi
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5551$as_echo "$ac_cv_path_EGREP" >&6; }
5552 EGREP="$ac_cv_path_EGREP"
5553
5554
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5556$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005557if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005558 $as_echo_n "(cached) " >&6
5559else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h. */
5562#include <stdlib.h>
5563#include <stdarg.h>
5564#include <string.h>
5565#include <float.h>
5566
5567int
5568main ()
5569{
5570
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575if ac_fn_c_try_compile "$LINENO"; then :
5576 ac_cv_header_stdc=yes
5577else
5578 ac_cv_header_stdc=no
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581
5582if test $ac_cv_header_stdc = yes; then
5583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h. */
5586#include <string.h>
5587
5588_ACEOF
5589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5590 $EGREP "memchr" >/dev/null 2>&1; then :
5591
5592else
5593 ac_cv_header_stdc=no
5594fi
5595rm -f conftest*
5596
5597fi
5598
5599if test $ac_cv_header_stdc = yes; then
5600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h. */
5603#include <stdlib.h>
5604
5605_ACEOF
5606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607 $EGREP "free" >/dev/null 2>&1; then :
5608
5609else
5610 ac_cv_header_stdc=no
5611fi
5612rm -f conftest*
5613
5614fi
5615
5616if test $ac_cv_header_stdc = yes; then
5617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5618 if test "$cross_compiling" = yes; then :
5619 :
5620else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h. */
5623#include <ctype.h>
5624#include <stdlib.h>
5625#if ((' ' & 0x0FF) == 0x020)
5626# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5627# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5628#else
5629# define ISLOWER(c) \
5630 (('a' <= (c) && (c) <= 'i') \
5631 || ('j' <= (c) && (c) <= 'r') \
5632 || ('s' <= (c) && (c) <= 'z'))
5633# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5634#endif
5635
5636#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5637int
5638main ()
5639{
5640 int i;
5641 for (i = 0; i < 256; i++)
5642 if (XOR (islower (i), ISLOWER (i))
5643 || toupper (i) != TOUPPER (i))
5644 return 2;
5645 return 0;
5646}
5647_ACEOF
5648if ac_fn_c_try_run "$LINENO"; then :
5649
5650else
5651 ac_cv_header_stdc=no
5652fi
5653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5654 conftest.$ac_objext conftest.beam conftest.$ac_ext
5655fi
5656
5657fi
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5660$as_echo "$ac_cv_header_stdc" >&6; }
5661if test $ac_cv_header_stdc = yes; then
5662
5663$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5664
5665fi
5666
5667# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5668for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5669 inttypes.h stdint.h unistd.h
5670do :
5671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5673"
cristy98dddb52010-11-04 00:30:15 +00005674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005675 cat >>confdefs.h <<_ACEOF
5676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5677_ACEOF
5678
5679fi
5680
5681done
5682
5683
5684
5685 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 +00005686if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005687 MINIX=yes
5688else
5689 MINIX=
5690fi
5691
5692
5693 if test "$MINIX" = yes; then
5694
5695$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5696
5697
5698$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5699
5700
5701$as_echo "#define _MINIX 1" >>confdefs.h
5702
5703 fi
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5707$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005708if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005709 $as_echo_n "(cached) " >&6
5710else
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h. */
5713
5714# define __EXTENSIONS__ 1
5715 $ac_includes_default
5716int
5717main ()
5718{
5719
5720 ;
5721 return 0;
5722}
5723_ACEOF
5724if ac_fn_c_try_compile "$LINENO"; then :
5725 ac_cv_safe_to_define___extensions__=yes
5726else
5727 ac_cv_safe_to_define___extensions__=no
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730fi
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5732$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5733 test $ac_cv_safe_to_define___extensions__ = yes &&
5734 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5735
5736 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5737
5738 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5739
5740 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5741
5742 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5743
5744
5745
5746# Check for programs
5747ac_ext=c
5748ac_cpp='$CPP $CPPFLAGS'
5749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5754set dummy ${ac_tool_prefix}gcc; ac_word=$2
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005757if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005758 $as_echo_n "(cached) " >&6
5759else
5760 if test -n "$CC"; then
5761 ac_cv_prog_CC="$CC" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775 done
5776IFS=$as_save_IFS
5777
5778fi
5779fi
5780CC=$ac_cv_prog_CC
5781if test -n "$CC"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5783$as_echo "$CC" >&6; }
5784else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786$as_echo "no" >&6; }
5787fi
5788
5789
5790fi
5791if test -z "$ac_cv_prog_CC"; then
5792 ac_ct_CC=$CC
5793 # Extract the first word of "gcc", so it can be a program name with args.
5794set dummy gcc; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005797if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$ac_ct_CC"; then
5801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_ac_ct_CC="gcc"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815 done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820ac_ct_CC=$ac_cv_prog_ac_ct_CC
5821if test -n "$ac_ct_CC"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5823$as_echo "$ac_ct_CC" >&6; }
5824else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827fi
5828
5829 if test "x$ac_ct_CC" = x; then
5830 CC=""
5831 else
5832 case $cross_compiling:$ac_tool_warned in
5833yes:)
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836ac_tool_warned=yes ;;
5837esac
5838 CC=$ac_ct_CC
5839 fi
5840else
5841 CC="$ac_cv_prog_CC"
5842fi
5843
5844if test -z "$CC"; then
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5847set dummy ${ac_tool_prefix}cc; ac_word=$2
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005850if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005851 $as_echo_n "(cached) " >&6
5852else
5853 if test -n "$CC"; then
5854 ac_cv_prog_CC="$CC" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_CC="${ac_tool_prefix}cc"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867done
5868 done
5869IFS=$as_save_IFS
5870
5871fi
5872fi
5873CC=$ac_cv_prog_CC
5874if test -n "$CC"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5876$as_echo "$CC" >&6; }
5877else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880fi
5881
5882
5883 fi
5884fi
5885if test -z "$CC"; then
5886 # Extract the first word of "cc", so it can be a program name with args.
5887set dummy cc; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005890if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005891 $as_echo_n "(cached) " >&6
5892else
5893 if test -n "$CC"; then
5894 ac_cv_prog_CC="$CC" # Let the user override the test.
5895else
5896 ac_prog_rejected=no
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5905 ac_prog_rejected=yes
5906 continue
5907 fi
5908 ac_cv_prog_CC="cc"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913 done
5914IFS=$as_save_IFS
5915
5916if test $ac_prog_rejected = yes; then
5917 # We found a bogon in the path, so make sure we never use it.
5918 set dummy $ac_cv_prog_CC
5919 shift
5920 if test $# != 0; then
5921 # We chose a different compiler from the bogus one.
5922 # However, it has the same basename, so the bogon will be chosen
5923 # first if we set CC to just the basename; use the full file name.
5924 shift
5925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5926 fi
5927fi
5928fi
5929fi
5930CC=$ac_cv_prog_CC
5931if test -n "$CC"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5933$as_echo "$CC" >&6; }
5934else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937fi
5938
5939
5940fi
5941if test -z "$CC"; then
5942 if test -n "$ac_tool_prefix"; then
5943 for ac_prog in cl.exe
5944 do
5945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005949if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005950 $as_echo_n "(cached) " >&6
5951else
5952 if test -n "$CC"; then
5953 ac_cv_prog_CC="$CC" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966done
5967 done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972CC=$ac_cv_prog_CC
5973if test -n "$CC"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5975$as_echo "$CC" >&6; }
5976else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }
5979fi
5980
5981
5982 test -n "$CC" && break
5983 done
5984fi
5985if test -z "$CC"; then
5986 ac_ct_CC=$CC
5987 for ac_prog in cl.exe
5988do
5989 # Extract the first word of "$ac_prog", so it can be a program name with args.
5990set dummy $ac_prog; ac_word=$2
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005993if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005994 $as_echo_n "(cached) " >&6
5995else
5996 if test -n "$ac_ct_CC"; then
5997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_ac_ct_CC="$ac_prog"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011 done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016ac_ct_CC=$ac_cv_prog_ac_ct_CC
6017if test -n "$ac_ct_CC"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6019$as_echo "$ac_ct_CC" >&6; }
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023fi
6024
6025
6026 test -n "$ac_ct_CC" && break
6027done
6028
6029 if test "x$ac_ct_CC" = x; then
6030 CC=""
6031 else
6032 case $cross_compiling:$ac_tool_warned in
6033yes:)
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036ac_tool_warned=yes ;;
6037esac
6038 CC=$ac_ct_CC
6039 fi
6040fi
6041
6042fi
6043
6044
6045test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006047as_fn_error $? "no acceptable C compiler found in \$PATH
6048See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006049
6050# Provide some information about the compiler.
6051$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6052set X $ac_compile
6053ac_compiler=$2
6054for ac_option in --version -v -V -qversion; do
6055 { { ac_try="$ac_compiler $ac_option >&5"
6056case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6061$as_echo "$ac_try_echo"; } >&5
6062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6063 ac_status=$?
6064 if test -s conftest.err; then
6065 sed '10a\
6066... rest of stderr output deleted ...
6067 10q' conftest.err >conftest.er1
6068 cat conftest.er1 >&5
6069 fi
6070 rm -f conftest.er1 conftest.err
6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072 test $ac_status = 0; }
6073done
6074
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6076$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006077if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006078 $as_echo_n "(cached) " >&6
6079else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h. */
6082
6083int
6084main ()
6085{
6086#ifndef __GNUC__
6087 choke me
6088#endif
6089
6090 ;
6091 return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then :
6095 ac_compiler_gnu=yes
6096else
6097 ac_compiler_gnu=no
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100ac_cv_c_compiler_gnu=$ac_compiler_gnu
6101
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6104$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6105if test $ac_compiler_gnu = yes; then
6106 GCC=yes
6107else
6108 GCC=
6109fi
6110ac_test_CFLAGS=${CFLAGS+set}
6111ac_save_CFLAGS=$CFLAGS
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6113$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006114if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006115 $as_echo_n "(cached) " >&6
6116else
6117 ac_save_c_werror_flag=$ac_c_werror_flag
6118 ac_c_werror_flag=yes
6119 ac_cv_prog_cc_g=no
6120 CFLAGS="-g"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h. */
6123
6124int
6125main ()
6126{
6127
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132if ac_fn_c_try_compile "$LINENO"; then :
6133 ac_cv_prog_cc_g=yes
6134else
6135 CFLAGS=""
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137/* end confdefs.h. */
6138
6139int
6140main ()
6141{
6142
6143 ;
6144 return 0;
6145}
6146_ACEOF
6147if ac_fn_c_try_compile "$LINENO"; then :
6148
6149else
6150 ac_c_werror_flag=$ac_save_c_werror_flag
6151 CFLAGS="-g"
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h. */
6154
6155int
6156main ()
6157{
6158
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_cv_prog_cc_g=yes
6165fi
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167fi
6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169fi
6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 ac_c_werror_flag=$ac_save_c_werror_flag
6172fi
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6174$as_echo "$ac_cv_prog_cc_g" >&6; }
6175if test "$ac_test_CFLAGS" = set; then
6176 CFLAGS=$ac_save_CFLAGS
6177elif test $ac_cv_prog_cc_g = yes; then
6178 if test "$GCC" = yes; then
6179 CFLAGS="-g -O2"
6180 else
6181 CFLAGS="-g"
6182 fi
6183else
6184 if test "$GCC" = yes; then
6185 CFLAGS="-O2"
6186 else
6187 CFLAGS=
6188 fi
6189fi
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6191$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006192if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006193 $as_echo_n "(cached) " >&6
6194else
6195 ac_cv_prog_cc_c89=no
6196ac_save_CC=$CC
6197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h. */
6199#include <stdarg.h>
6200#include <stdio.h>
6201#include <sys/types.h>
6202#include <sys/stat.h>
6203/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6204struct buf { int x; };
6205FILE * (*rcsopen) (struct buf *, struct stat *, int);
6206static char *e (p, i)
6207 char **p;
6208 int i;
6209{
6210 return p[i];
6211}
6212static char *f (char * (*g) (char **, int), char **p, ...)
6213{
6214 char *s;
6215 va_list v;
6216 va_start (v,p);
6217 s = g (p, va_arg (v,int));
6218 va_end (v);
6219 return s;
6220}
6221
6222/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6223 function prototypes and stuff, but not '\xHH' hex character constants.
6224 These don't provoke an error unfortunately, instead are silently treated
6225 as 'x'. The following induces an error, until -std is added to get
6226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6227 array size at least. It's necessary to write '\x00'==0 to get something
6228 that's true only with -std. */
6229int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6230
6231/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6232 inside strings and character constants. */
6233#define FOO(x) 'x'
6234int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6235
6236int test (int i, double x);
6237struct s1 {int (*f) (int a);};
6238struct s2 {int (*f) (double a);};
6239int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6240int argc;
6241char **argv;
6242int
6243main ()
6244{
6245return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6246 ;
6247 return 0;
6248}
6249_ACEOF
6250for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6251 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6252do
6253 CC="$ac_save_CC $ac_arg"
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255 ac_cv_prog_cc_c89=$ac_arg
6256fi
6257rm -f core conftest.err conftest.$ac_objext
6258 test "x$ac_cv_prog_cc_c89" != "xno" && break
6259done
6260rm -f conftest.$ac_ext
6261CC=$ac_save_CC
6262
6263fi
6264# AC_CACHE_VAL
6265case "x$ac_cv_prog_cc_c89" in
6266 x)
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6268$as_echo "none needed" >&6; } ;;
6269 xno)
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6271$as_echo "unsupported" >&6; } ;;
6272 *)
6273 CC="$CC $ac_cv_prog_cc_c89"
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6275$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6276esac
6277if test "x$ac_cv_prog_cc_c89" != xno; then :
6278
6279fi
6280
6281ac_ext=c
6282ac_cpp='$CPP $CPPFLAGS'
6283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285ac_compiler_gnu=$ac_cv_c_compiler_gnu
6286
cristy73bd4a52010-10-05 11:24:23 +00006287depcc="$CC" am_compiler_list=
6288
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6290$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006291if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006292 $as_echo_n "(cached) " >&6
6293else
6294 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6295 # We make a subdir and do the tests there. Otherwise we can end up
6296 # making bogus files that we don't know about and never remove. For
6297 # instance it was reported that on HP-UX the gcc test will end up
6298 # making a dummy file named `D' -- because `-MD' means `put the output
6299 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006300 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006301 mkdir conftest.dir
6302 # Copy depcomp to subdir because otherwise we won't find it if we're
6303 # using a relative directory.
6304 cp "$am_depcomp" conftest.dir
6305 cd conftest.dir
6306 # We will build objects and dependencies in a subdirectory because
6307 # it helps to detect inapplicable dependency modes. For instance
6308 # both Tru64's cc and ICC support -MD to output dependencies as a
6309 # side effect of compilation, but ICC will put the dependencies in
6310 # the current directory while Tru64 will put them in the object
6311 # directory.
6312 mkdir sub
6313
6314 am_cv_CC_dependencies_compiler_type=none
6315 if test "$am_compiler_list" = ""; then
6316 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6317 fi
6318 am__universal=false
6319 case " $depcc " in #(
6320 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6321 esac
6322
6323 for depmode in $am_compiler_list; do
6324 # Setup a source with many dependencies, because some compilers
6325 # like to wrap large dependency lists on column 80 (with \), and
6326 # we should not choose a depcomp mode which is confused by this.
6327 #
6328 # We need to recreate these files for each test, as the compiler may
6329 # overwrite some of them when testing with obscure command lines.
6330 # This happens at least with the AIX C compiler.
6331 : > sub/conftest.c
6332 for i in 1 2 3 4 5 6; do
6333 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6334 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6335 # Solaris 8's {/usr,}/bin/sh.
6336 touch sub/conftst$i.h
6337 done
6338 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6339
6340 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6341 # mode. It turns out that the SunPro C++ compiler does not properly
6342 # handle `-M -o', and we need to detect this. Also, some Intel
6343 # versions had trouble with output in subdirs
6344 am__obj=sub/conftest.${OBJEXT-o}
6345 am__minus_obj="-o $am__obj"
6346 case $depmode in
6347 gcc)
6348 # This depmode causes a compiler race in universal mode.
6349 test "$am__universal" = false || continue
6350 ;;
6351 nosideeffect)
6352 # after this tag, mechanisms are not by side-effect, so they'll
6353 # only be used when explicitly requested
6354 if test "x$enable_dependency_tracking" = xyes; then
6355 continue
6356 else
6357 break
6358 fi
6359 ;;
cristy7247bba2012-02-05 16:37:27 +00006360 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006361 # This compiler won't grok `-c -o', but also, the minuso test has
6362 # not run yet. These depmodes are late enough in the game, and
6363 # so weak that their functioning should not be impacted.
6364 am__obj=conftest.${OBJEXT-o}
6365 am__minus_obj=
6366 ;;
6367 none) break ;;
6368 esac
6369 if depmode=$depmode \
6370 source=sub/conftest.c object=$am__obj \
6371 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6372 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6373 >/dev/null 2>conftest.err &&
6374 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6375 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6376 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6377 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6378 # icc doesn't choke on unknown options, it will just issue warnings
6379 # or remarks (even with -Werror). So we grep stderr for any message
6380 # that says an option was ignored or not supported.
6381 # When given -MP, icc 7.0 and 7.1 complain thusly:
6382 # icc: Command line warning: ignoring option '-M'; no argument required
6383 # The diagnosis changed in icc 8.0:
6384 # icc: Command line remark: option '-MP' not supported
6385 if (grep 'ignoring option' conftest.err ||
6386 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6387 am_cv_CC_dependencies_compiler_type=$depmode
6388 break
6389 fi
6390 fi
6391 done
6392
6393 cd ..
6394 rm -rf conftest.dir
6395else
6396 am_cv_CC_dependencies_compiler_type=none
6397fi
6398
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6401$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6402CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6403
6404 if
6405 test "x$enable_dependency_tracking" != xno \
6406 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6407 am__fastdepCC_TRUE=
6408 am__fastdepCC_FALSE='#'
6409else
6410 am__fastdepCC_TRUE='#'
6411 am__fastdepCC_FALSE=
6412fi
6413
6414
cristy95646052009-11-28 23:05:30 +00006415ac_ext=cpp
6416ac_cpp='$CXXCPP $CPPFLAGS'
6417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6420if test -z "$CXX"; then
6421 if test -n "$CCC"; then
6422 CXX=$CCC
6423 else
6424 if test -n "$ac_tool_prefix"; then
6425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6426 do
6427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006431if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006432 $as_echo_n "(cached) " >&6
6433else
6434 if test -n "$CXX"; then
6435 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448done
6449 done
6450IFS=$as_save_IFS
6451
6452fi
6453fi
6454CXX=$ac_cv_prog_CXX
6455if test -n "$CXX"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6457$as_echo "$CXX" >&6; }
6458else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461fi
6462
6463
6464 test -n "$CXX" && break
6465 done
6466fi
6467if test -z "$CXX"; then
6468 ac_ct_CXX=$CXX
6469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6470do
6471 # Extract the first word of "$ac_prog", so it can be a program name with args.
6472set dummy $ac_prog; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006475if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006476 $as_echo_n "(cached) " >&6
6477else
6478 if test -n "$ac_ct_CXX"; then
6479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_ac_ct_CXX="$ac_prog"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493 done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6499if test -n "$ac_ct_CXX"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6501$as_echo "$ac_ct_CXX" >&6; }
6502else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507
6508 test -n "$ac_ct_CXX" && break
6509done
6510
6511 if test "x$ac_ct_CXX" = x; then
6512 CXX="g++"
6513 else
6514 case $cross_compiling:$ac_tool_warned in
6515yes:)
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6518ac_tool_warned=yes ;;
6519esac
6520 CXX=$ac_ct_CXX
6521 fi
6522fi
6523
6524 fi
6525fi
6526# Provide some information about the compiler.
6527$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6528set X $ac_compile
6529ac_compiler=$2
6530for ac_option in --version -v -V -qversion; do
6531 { { ac_try="$ac_compiler $ac_option >&5"
6532case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
6536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6537$as_echo "$ac_try_echo"; } >&5
6538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6539 ac_status=$?
6540 if test -s conftest.err; then
6541 sed '10a\
6542... rest of stderr output deleted ...
6543 10q' conftest.err >conftest.er1
6544 cat conftest.er1 >&5
6545 fi
6546 rm -f conftest.er1 conftest.err
6547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6548 test $ac_status = 0; }
6549done
6550
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6552$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006553if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006554 $as_echo_n "(cached) " >&6
6555else
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h. */
6558
6559int
6560main ()
6561{
6562#ifndef __GNUC__
6563 choke me
6564#endif
6565
6566 ;
6567 return 0;
6568}
6569_ACEOF
6570if ac_fn_cxx_try_compile "$LINENO"; then :
6571 ac_compiler_gnu=yes
6572else
6573 ac_compiler_gnu=no
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6577
6578fi
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6580$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6581if test $ac_compiler_gnu = yes; then
6582 GXX=yes
6583else
6584 GXX=
6585fi
6586ac_test_CXXFLAGS=${CXXFLAGS+set}
6587ac_save_CXXFLAGS=$CXXFLAGS
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6589$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006590if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006591 $as_echo_n "(cached) " >&6
6592else
6593 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6594 ac_cxx_werror_flag=yes
6595 ac_cv_prog_cxx_g=no
6596 CXXFLAGS="-g"
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h. */
6599
6600int
6601main ()
6602{
6603
6604 ;
6605 return 0;
6606}
6607_ACEOF
6608if ac_fn_cxx_try_compile "$LINENO"; then :
6609 ac_cv_prog_cxx_g=yes
6610else
6611 CXXFLAGS=""
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h. */
6614
6615int
6616main ()
6617{
6618
6619 ;
6620 return 0;
6621}
6622_ACEOF
6623if ac_fn_cxx_try_compile "$LINENO"; then :
6624
6625else
6626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6627 CXXFLAGS="-g"
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h. */
6630
6631int
6632main ()
6633{
6634
6635 ;
6636 return 0;
6637}
6638_ACEOF
6639if ac_fn_cxx_try_compile "$LINENO"; then :
6640 ac_cv_prog_cxx_g=yes
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643fi
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6650$as_echo "$ac_cv_prog_cxx_g" >&6; }
6651if test "$ac_test_CXXFLAGS" = set; then
6652 CXXFLAGS=$ac_save_CXXFLAGS
6653elif test $ac_cv_prog_cxx_g = yes; then
6654 if test "$GXX" = yes; then
6655 CXXFLAGS="-g -O2"
6656 else
6657 CXXFLAGS="-g"
6658 fi
6659else
6660 if test "$GXX" = yes; then
6661 CXXFLAGS="-O2"
6662 else
6663 CXXFLAGS=
6664 fi
6665fi
6666ac_ext=c
6667ac_cpp='$CPP $CPPFLAGS'
6668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671
cristy73bd4a52010-10-05 11:24:23 +00006672depcc="$CXX" am_compiler_list=
6673
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6675$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006676if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006677 $as_echo_n "(cached) " >&6
6678else
6679 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6680 # We make a subdir and do the tests there. Otherwise we can end up
6681 # making bogus files that we don't know about and never remove. For
6682 # instance it was reported that on HP-UX the gcc test will end up
6683 # making a dummy file named `D' -- because `-MD' means `put the output
6684 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006685 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006686 mkdir conftest.dir
6687 # Copy depcomp to subdir because otherwise we won't find it if we're
6688 # using a relative directory.
6689 cp "$am_depcomp" conftest.dir
6690 cd conftest.dir
6691 # We will build objects and dependencies in a subdirectory because
6692 # it helps to detect inapplicable dependency modes. For instance
6693 # both Tru64's cc and ICC support -MD to output dependencies as a
6694 # side effect of compilation, but ICC will put the dependencies in
6695 # the current directory while Tru64 will put them in the object
6696 # directory.
6697 mkdir sub
6698
6699 am_cv_CXX_dependencies_compiler_type=none
6700 if test "$am_compiler_list" = ""; then
6701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6702 fi
6703 am__universal=false
6704 case " $depcc " in #(
6705 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6706 esac
6707
6708 for depmode in $am_compiler_list; do
6709 # Setup a source with many dependencies, because some compilers
6710 # like to wrap large dependency lists on column 80 (with \), and
6711 # we should not choose a depcomp mode which is confused by this.
6712 #
6713 # We need to recreate these files for each test, as the compiler may
6714 # overwrite some of them when testing with obscure command lines.
6715 # This happens at least with the AIX C compiler.
6716 : > sub/conftest.c
6717 for i in 1 2 3 4 5 6; do
6718 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6719 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6720 # Solaris 8's {/usr,}/bin/sh.
6721 touch sub/conftst$i.h
6722 done
6723 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6724
6725 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6726 # mode. It turns out that the SunPro C++ compiler does not properly
6727 # handle `-M -o', and we need to detect this. Also, some Intel
6728 # versions had trouble with output in subdirs
6729 am__obj=sub/conftest.${OBJEXT-o}
6730 am__minus_obj="-o $am__obj"
6731 case $depmode in
6732 gcc)
6733 # This depmode causes a compiler race in universal mode.
6734 test "$am__universal" = false || continue
6735 ;;
6736 nosideeffect)
6737 # after this tag, mechanisms are not by side-effect, so they'll
6738 # only be used when explicitly requested
6739 if test "x$enable_dependency_tracking" = xyes; then
6740 continue
6741 else
6742 break
6743 fi
6744 ;;
cristy7247bba2012-02-05 16:37:27 +00006745 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006746 # This compiler won't grok `-c -o', but also, the minuso test has
6747 # not run yet. These depmodes are late enough in the game, and
6748 # so weak that their functioning should not be impacted.
6749 am__obj=conftest.${OBJEXT-o}
6750 am__minus_obj=
6751 ;;
6752 none) break ;;
6753 esac
6754 if depmode=$depmode \
6755 source=sub/conftest.c object=$am__obj \
6756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6757 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6758 >/dev/null 2>conftest.err &&
6759 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6761 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6763 # icc doesn't choke on unknown options, it will just issue warnings
6764 # or remarks (even with -Werror). So we grep stderr for any message
6765 # that says an option was ignored or not supported.
6766 # When given -MP, icc 7.0 and 7.1 complain thusly:
6767 # icc: Command line warning: ignoring option '-M'; no argument required
6768 # The diagnosis changed in icc 8.0:
6769 # icc: Command line remark: option '-MP' not supported
6770 if (grep 'ignoring option' conftest.err ||
6771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6772 am_cv_CXX_dependencies_compiler_type=$depmode
6773 break
6774 fi
6775 fi
6776 done
6777
6778 cd ..
6779 rm -rf conftest.dir
6780else
6781 am_cv_CXX_dependencies_compiler_type=none
6782fi
6783
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6786$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6787CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6788
6789 if
6790 test "x$enable_dependency_tracking" != xno \
6791 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6792 am__fastdepCXX_TRUE=
6793 am__fastdepCXX_FALSE='#'
6794else
6795 am__fastdepCXX_TRUE='#'
6796 am__fastdepCXX_FALSE=
6797fi
6798
6799
cristy8b350f62009-11-15 23:12:43 +00006800 case $ac_cv_prog_cc_stdc in #(
6801 no) :
6802 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6803 *) :
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006805$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006806if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006807 $as_echo_n "(cached) " >&6
6808else
6809 ac_cv_prog_cc_c99=no
6810ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006812/* end confdefs.h. */
6813#include <stdarg.h>
6814#include <stdbool.h>
6815#include <stdlib.h>
6816#include <wchar.h>
6817#include <stdio.h>
6818
6819// Check varargs macros. These examples are taken from C99 6.10.3.5.
6820#define debug(...) fprintf (stderr, __VA_ARGS__)
6821#define showlist(...) puts (#__VA_ARGS__)
6822#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6823static void
6824test_varargs_macros (void)
6825{
6826 int x = 1234;
6827 int y = 5678;
6828 debug ("Flag");
6829 debug ("X = %d\n", x);
6830 showlist (The first, second, and third items.);
6831 report (x>y, "x is %d but y is %d", x, y);
6832}
6833
6834// Check long long types.
6835#define BIG64 18446744073709551615ull
6836#define BIG32 4294967295ul
6837#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6838#if !BIG_OK
6839 your preprocessor is broken;
6840#endif
6841#if BIG_OK
6842#else
6843 your preprocessor is broken;
6844#endif
6845static long long int bignum = -9223372036854775807LL;
6846static unsigned long long int ubignum = BIG64;
6847
6848struct incomplete_array
6849{
6850 int datasize;
6851 double data[];
6852};
6853
6854struct named_init {
6855 int number;
6856 const wchar_t *name;
6857 double average;
6858};
6859
6860typedef const char *ccp;
6861
6862static inline int
6863test_restrict (ccp restrict text)
6864{
6865 // See if C++-style comments work.
6866 // Iterate through items via the restricted pointer.
6867 // Also check for declarations in for loops.
6868 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6869 continue;
6870 return 0;
6871}
6872
6873// Check varargs and va_copy.
6874static void
6875test_varargs (const char *format, ...)
6876{
6877 va_list args;
6878 va_start (args, format);
6879 va_list args_copy;
6880 va_copy (args_copy, args);
6881
6882 const char *str;
6883 int number;
6884 float fnumber;
6885
6886 while (*format)
6887 {
6888 switch (*format++)
6889 {
6890 case 's': // string
6891 str = va_arg (args_copy, const char *);
6892 break;
6893 case 'd': // int
6894 number = va_arg (args_copy, int);
6895 break;
6896 case 'f': // float
6897 fnumber = va_arg (args_copy, double);
6898 break;
6899 default:
6900 break;
6901 }
6902 }
6903 va_end (args_copy);
6904 va_end (args);
6905}
6906
6907int
6908main ()
6909{
6910
6911 // Check bool.
6912 _Bool success = false;
6913
6914 // Check restrict.
6915 if (test_restrict ("String literal") == 0)
6916 success = true;
6917 char *restrict newvar = "Another string";
6918
6919 // Check varargs.
6920 test_varargs ("s, d' f .", "string", 65, 34.234);
6921 test_varargs_macros ();
6922
6923 // Check flexible array members.
6924 struct incomplete_array *ia =
6925 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6926 ia->datasize = 10;
6927 for (int i = 0; i < ia->datasize; ++i)
6928 ia->data[i] = i * 1.234;
6929
6930 // Check named initializers.
6931 struct named_init ni = {
6932 .number = 34,
6933 .name = L"Test wide string",
6934 .average = 543.34343,
6935 };
6936
6937 ni.number = 58;
6938
6939 int dynamic_array[ni.number];
6940 dynamic_array[ni.number - 1] = 543;
6941
6942 // work around unused variable warnings
6943 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6944 || dynamic_array[ni.number - 1] != 543);
6945
6946 ;
6947 return 0;
6948}
6949_ACEOF
6950for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6951do
6952 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006953 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006954 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006955fi
cristy3ed852e2009-09-05 21:47:34 +00006956rm -f core conftest.err conftest.$ac_objext
6957 test "x$ac_cv_prog_cc_c99" != "xno" && break
6958done
6959rm -f conftest.$ac_ext
6960CC=$ac_save_CC
6961
6962fi
6963# AC_CACHE_VAL
6964case "x$ac_cv_prog_cc_c99" in
6965 x)
cristy8b350f62009-11-15 23:12:43 +00006966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006967$as_echo "none needed" >&6; } ;;
6968 xno)
cristy8b350f62009-11-15 23:12:43 +00006969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006970$as_echo "unsupported" >&6; } ;;
6971 *)
6972 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006974$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6975esac
cristy8b350f62009-11-15 23:12:43 +00006976if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006977 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6978else
cristy8b350f62009-11-15 23:12:43 +00006979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006980$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006981if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006982 $as_echo_n "(cached) " >&6
6983else
6984 ac_cv_prog_cc_c89=no
6985ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006987/* end confdefs.h. */
6988#include <stdarg.h>
6989#include <stdio.h>
6990#include <sys/types.h>
6991#include <sys/stat.h>
6992/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6993struct buf { int x; };
6994FILE * (*rcsopen) (struct buf *, struct stat *, int);
6995static char *e (p, i)
6996 char **p;
6997 int i;
6998{
6999 return p[i];
7000}
7001static char *f (char * (*g) (char **, int), char **p, ...)
7002{
7003 char *s;
7004 va_list v;
7005 va_start (v,p);
7006 s = g (p, va_arg (v,int));
7007 va_end (v);
7008 return s;
7009}
7010
7011/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7012 function prototypes and stuff, but not '\xHH' hex character constants.
7013 These don't provoke an error unfortunately, instead are silently treated
7014 as 'x'. The following induces an error, until -std is added to get
7015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7016 array size at least. It's necessary to write '\x00'==0 to get something
7017 that's true only with -std. */
7018int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7019
7020/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7021 inside strings and character constants. */
7022#define FOO(x) 'x'
7023int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7024
7025int test (int i, double x);
7026struct s1 {int (*f) (int a);};
7027struct s2 {int (*f) (double a);};
7028int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7029int argc;
7030char **argv;
7031int
7032main ()
7033{
7034return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7035 ;
7036 return 0;
7037}
7038_ACEOF
7039for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7040 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7041do
7042 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007043 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007044 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007045fi
cristy3ed852e2009-09-05 21:47:34 +00007046rm -f core conftest.err conftest.$ac_objext
7047 test "x$ac_cv_prog_cc_c89" != "xno" && break
7048done
7049rm -f conftest.$ac_ext
7050CC=$ac_save_CC
7051
7052fi
7053# AC_CACHE_VAL
7054case "x$ac_cv_prog_cc_c89" in
7055 x)
cristy8b350f62009-11-15 23:12:43 +00007056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007057$as_echo "none needed" >&6; } ;;
7058 xno)
cristy8b350f62009-11-15 23:12:43 +00007059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007060$as_echo "unsupported" >&6; } ;;
7061 *)
7062 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007064$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7065esac
cristy8b350f62009-11-15 23:12:43 +00007066if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007067 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7068else
7069 ac_cv_prog_cc_stdc=no
7070fi
7071
cristy3ed852e2009-09-05 21:47:34 +00007072fi
cristy3ed852e2009-09-05 21:47:34 +00007073 ;;
7074esac
cristy8b350f62009-11-15 23:12:43 +00007075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007076$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007077 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007078 $as_echo_n "(cached) " >&6
7079fi
7080
cristy8b350f62009-11-15 23:12:43 +00007081 case $ac_cv_prog_cc_stdc in #(
7082 no) :
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7084$as_echo "unsupported" >&6; } ;; #(
7085 '') :
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7087$as_echo "none needed" >&6; } ;; #(
7088 *) :
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007090$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7091esac
7092
cristy3ed852e2009-09-05 21:47:34 +00007093ac_ext=c
7094ac_cpp='$CPP $CPPFLAGS'
7095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo_n "checking how to run the C preprocessor... " >&6; }
7100# On Suns, sometimes $CPP names a directory.
7101if test -n "$CPP" && test -d "$CPP"; then
7102 CPP=
7103fi
7104if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007105 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007106 $as_echo_n "(cached) " >&6
7107else
7108 # Double quotes because CPP needs to be expanded
7109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7110 do
7111 ac_preproc_ok=false
7112for ac_c_preproc_warn_flag in '' yes
7113do
7114 # Use a header file that comes with gcc, so configuring glibc
7115 # with a fresh cross-compiler works.
7116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117 # <limits.h> exists even on freestanding compilers.
7118 # On the NeXT, cc -E runs the code through the compiler's parser,
7119 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007121/* end confdefs.h. */
7122#ifdef __STDC__
7123# include <limits.h>
7124#else
7125# include <assert.h>
7126#endif
7127 Syntax error
7128_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007129if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007130
cristy8b350f62009-11-15 23:12:43 +00007131else
cristy3ed852e2009-09-05 21:47:34 +00007132 # Broken: fails on valid input.
7133continue
7134fi
cristyda16f162011-02-19 23:52:17 +00007135rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007136
7137 # OK, works on sane cases. Now check whether nonexistent headers
7138 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007140/* end confdefs.h. */
7141#include <ac_nonexistent.h>
7142_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007143if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007144 # Broken: success on invalid input.
7145continue
7146else
cristy3ed852e2009-09-05 21:47:34 +00007147 # Passes both tests.
7148ac_preproc_ok=:
7149break
7150fi
cristyda16f162011-02-19 23:52:17 +00007151rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007152
7153done
7154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007155rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007156if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007157 break
7158fi
7159
7160 done
7161 ac_cv_prog_CPP=$CPP
7162
7163fi
7164 CPP=$ac_cv_prog_CPP
7165else
7166 ac_cv_prog_CPP=$CPP
7167fi
cristy8b350f62009-11-15 23:12:43 +00007168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007169$as_echo "$CPP" >&6; }
7170ac_preproc_ok=false
7171for ac_c_preproc_warn_flag in '' yes
7172do
7173 # Use a header file that comes with gcc, so configuring glibc
7174 # with a fresh cross-compiler works.
7175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176 # <limits.h> exists even on freestanding compilers.
7177 # On the NeXT, cc -E runs the code through the compiler's parser,
7178 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007180/* end confdefs.h. */
7181#ifdef __STDC__
7182# include <limits.h>
7183#else
7184# include <assert.h>
7185#endif
7186 Syntax error
7187_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007188if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007189
cristy8b350f62009-11-15 23:12:43 +00007190else
cristy3ed852e2009-09-05 21:47:34 +00007191 # Broken: fails on valid input.
7192continue
7193fi
cristyda16f162011-02-19 23:52:17 +00007194rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007195
7196 # OK, works on sane cases. Now check whether nonexistent headers
7197 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007199/* end confdefs.h. */
7200#include <ac_nonexistent.h>
7201_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007202if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007203 # Broken: success on invalid input.
7204continue
7205else
cristy3ed852e2009-09-05 21:47:34 +00007206 # Passes both tests.
7207ac_preproc_ok=:
7208break
7209fi
cristyda16f162011-02-19 23:52:17 +00007210rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007211
7212done
7213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007214rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007215if $ac_preproc_ok; then :
7216
cristy3ed852e2009-09-05 21:47:34 +00007217else
cristy8b350f62009-11-15 23:12:43 +00007218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7221See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007222fi
7223
7224ac_ext=c
7225ac_cpp='$CPP $CPPFLAGS'
7226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
cristy73bd4a52010-10-05 11:24:23 +00007230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7231$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007232if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007233 $as_echo_n "(cached) " >&6
7234else
7235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7236 for ac_i in 1 2 3 4 5 6 7; do
7237 ac_script="$ac_script$as_nl$ac_script"
7238 done
7239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7240 { ac_script=; unset ac_script;}
7241 if test -z "$SED"; then
7242 ac_path_SED_found=false
7243 # Loop through the user's path and test for each of PROGNAME-LIST
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_prog in sed gsed; do
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7252 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7253# Check for GNU ac_path_SED and select it if it is found.
7254 # Check for GNU $ac_path_SED
7255case `"$ac_path_SED" --version 2>&1` in
7256*GNU*)
7257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7258*)
7259 ac_count=0
7260 $as_echo_n 0123456789 >"conftest.in"
7261 while :
7262 do
7263 cat "conftest.in" "conftest.in" >"conftest.tmp"
7264 mv "conftest.tmp" "conftest.in"
7265 cp "conftest.in" "conftest.nl"
7266 $as_echo '' >> "conftest.nl"
7267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7269 as_fn_arith $ac_count + 1 && ac_count=$as_val
7270 if test $ac_count -gt ${ac_path_SED_max-0}; then
7271 # Best one so far, save it but keep looking for a better one
7272 ac_cv_path_SED="$ac_path_SED"
7273 ac_path_SED_max=$ac_count
7274 fi
7275 # 10*(2^10) chars as input seems more than enough
7276 test $ac_count -gt 10 && break
7277 done
7278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7279esac
7280
7281 $ac_path_SED_found && break 3
7282 done
7283 done
7284 done
7285IFS=$as_save_IFS
7286 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007287 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007288 fi
7289else
7290 ac_cv_path_SED=$SED
7291fi
7292
7293fi
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7295$as_echo "$ac_cv_path_SED" >&6; }
7296 SED="$ac_cv_path_SED"
7297 rm -f conftest.sed
7298
7299test -z "$SED" && SED=sed
7300Xsed="$SED -e 1s/^X//"
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7313$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007314if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007315 $as_echo_n "(cached) " >&6
7316else
7317 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7318 then ac_cv_path_FGREP="$GREP -F"
7319 else
7320 if test -z "$FGREP"; then
7321 ac_path_FGREP_found=false
7322 # Loop through the user's path and test for each of PROGNAME-LIST
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7325do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_prog in fgrep; do
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7331 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7332# Check for GNU ac_path_FGREP and select it if it is found.
7333 # Check for GNU $ac_path_FGREP
7334case `"$ac_path_FGREP" --version 2>&1` in
7335*GNU*)
7336 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7337*)
7338 ac_count=0
7339 $as_echo_n 0123456789 >"conftest.in"
7340 while :
7341 do
7342 cat "conftest.in" "conftest.in" >"conftest.tmp"
7343 mv "conftest.tmp" "conftest.in"
7344 cp "conftest.in" "conftest.nl"
7345 $as_echo 'FGREP' >> "conftest.nl"
7346 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7348 as_fn_arith $ac_count + 1 && ac_count=$as_val
7349 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7350 # Best one so far, save it but keep looking for a better one
7351 ac_cv_path_FGREP="$ac_path_FGREP"
7352 ac_path_FGREP_max=$ac_count
7353 fi
7354 # 10*(2^10) chars as input seems more than enough
7355 test $ac_count -gt 10 && break
7356 done
7357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7358esac
7359
7360 $ac_path_FGREP_found && break 3
7361 done
7362 done
7363 done
7364IFS=$as_save_IFS
7365 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007366 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007367 fi
7368else
7369 ac_cv_path_FGREP=$FGREP
7370fi
7371
7372 fi
7373fi
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7375$as_echo "$ac_cv_path_FGREP" >&6; }
7376 FGREP="$ac_cv_path_FGREP"
7377
7378
7379test -z "$GREP" && GREP=grep
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
cristy0c60a692010-11-04 01:09:47 +00007397ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7398ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7399ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7400
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7402$as_echo_n "checking how to print strings... " >&6; }
7403# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007404if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007405 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7406 ECHO='print -r --'
7407elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7408 ECHO='printf %s\n'
7409else
7410 # Use this function as a fallback that always works.
7411 func_fallback_echo ()
7412 {
7413 eval 'cat <<_LTECHO_EOF
7414$1
7415_LTECHO_EOF'
7416 }
7417 ECHO='func_fallback_echo'
7418fi
7419
7420# func_echo_all arg...
7421# Invoke $ECHO with all args, space-separated.
7422func_echo_all ()
7423{
7424 $ECHO ""
7425}
7426
7427case "$ECHO" in
7428 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7429$as_echo "printf" >&6; } ;;
7430 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7431$as_echo "print -r" >&6; } ;;
7432 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7433$as_echo "cat" >&6; } ;;
7434esac
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
cristy73bd4a52010-10-05 11:24:23 +00007449
7450
7451# Check whether --with-gnu-ld was given.
7452if test "${with_gnu_ld+set}" = set; then :
7453 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7454else
7455 with_gnu_ld=no
7456fi
7457
7458ac_prog=ld
7459if test "$GCC" = yes; then
7460 # Check if gcc -print-prog-name=ld gives a path.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7462$as_echo_n "checking for ld used by $CC... " >&6; }
7463 case $host in
7464 *-*-mingw*)
7465 # gcc leaves a trailing carriage return which upsets mingw
7466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7467 *)
7468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7469 esac
7470 case $ac_prog in
7471 # Accept absolute paths.
7472 [\\/]* | ?:[\\/]*)
7473 re_direlt='/[^/][^/]*/\.\./'
7474 # Canonicalize the pathname of ld
7475 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7476 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7477 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7478 done
7479 test -z "$LD" && LD="$ac_prog"
7480 ;;
7481 "")
7482 # If it fails, then pretend we aren't using GCC.
7483 ac_prog=ld
7484 ;;
7485 *)
7486 # If it is relative, then search for the first ld in PATH.
7487 with_gnu_ld=unknown
7488 ;;
7489 esac
7490elif test "$with_gnu_ld" = yes; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7492$as_echo_n "checking for GNU ld... " >&6; }
7493else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7495$as_echo_n "checking for non-GNU ld... " >&6; }
7496fi
cristyda16f162011-02-19 23:52:17 +00007497if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007498 $as_echo_n "(cached) " >&6
7499else
7500 if test -z "$LD"; then
7501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7502 for ac_dir in $PATH; do
7503 IFS="$lt_save_ifs"
7504 test -z "$ac_dir" && ac_dir=.
7505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7506 lt_cv_path_LD="$ac_dir/$ac_prog"
7507 # Check to see if the program is GNU ld. I'd rather use --version,
7508 # but apparently some variants of GNU ld only accept -v.
7509 # Break only if it was the GNU/non-GNU ld that we prefer.
7510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7511 *GNU* | *'with BFD'*)
7512 test "$with_gnu_ld" != no && break
7513 ;;
7514 *)
7515 test "$with_gnu_ld" != yes && break
7516 ;;
7517 esac
7518 fi
7519 done
7520 IFS="$lt_save_ifs"
7521else
7522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7523fi
7524fi
7525
7526LD="$lt_cv_path_LD"
7527if test -n "$LD"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7529$as_echo "$LD" >&6; }
7530else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532$as_echo "no" >&6; }
7533fi
cristy98dddb52010-11-04 00:30:15 +00007534test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7536$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007537if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007538 $as_echo_n "(cached) " >&6
7539else
7540 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7541case `$LD -v 2>&1 </dev/null` in
7542*GNU* | *'with BFD'*)
7543 lt_cv_prog_gnu_ld=yes
7544 ;;
7545*)
7546 lt_cv_prog_gnu_ld=no
7547 ;;
7548esac
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7551$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7552with_gnu_ld=$lt_cv_prog_gnu_ld
7553
7554
7555
7556
7557
7558
7559
7560
7561
cristy3ed852e2009-09-05 21:47:34 +00007562
cristy837d6dc2010-02-27 01:16:57 +00007563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7564$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007565if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007566 $as_echo_n "(cached) " >&6
7567else
7568 ac_cv_prog_cc_c99=no
7569ac_save_CC=$CC
7570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h. */
7572#include <stdarg.h>
7573#include <stdbool.h>
7574#include <stdlib.h>
7575#include <wchar.h>
7576#include <stdio.h>
7577
7578// Check varargs macros. These examples are taken from C99 6.10.3.5.
7579#define debug(...) fprintf (stderr, __VA_ARGS__)
7580#define showlist(...) puts (#__VA_ARGS__)
7581#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7582static void
7583test_varargs_macros (void)
7584{
7585 int x = 1234;
7586 int y = 5678;
7587 debug ("Flag");
7588 debug ("X = %d\n", x);
7589 showlist (The first, second, and third items.);
7590 report (x>y, "x is %d but y is %d", x, y);
7591}
7592
7593// Check long long types.
7594#define BIG64 18446744073709551615ull
7595#define BIG32 4294967295ul
7596#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7597#if !BIG_OK
7598 your preprocessor is broken;
7599#endif
7600#if BIG_OK
7601#else
7602 your preprocessor is broken;
7603#endif
7604static long long int bignum = -9223372036854775807LL;
7605static unsigned long long int ubignum = BIG64;
7606
7607struct incomplete_array
7608{
7609 int datasize;
7610 double data[];
7611};
7612
7613struct named_init {
7614 int number;
7615 const wchar_t *name;
7616 double average;
7617};
7618
7619typedef const char *ccp;
7620
7621static inline int
7622test_restrict (ccp restrict text)
7623{
7624 // See if C++-style comments work.
7625 // Iterate through items via the restricted pointer.
7626 // Also check for declarations in for loops.
7627 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7628 continue;
7629 return 0;
7630}
7631
7632// Check varargs and va_copy.
7633static void
7634test_varargs (const char *format, ...)
7635{
7636 va_list args;
7637 va_start (args, format);
7638 va_list args_copy;
7639 va_copy (args_copy, args);
7640
7641 const char *str;
7642 int number;
7643 float fnumber;
7644
7645 while (*format)
7646 {
7647 switch (*format++)
7648 {
7649 case 's': // string
7650 str = va_arg (args_copy, const char *);
7651 break;
7652 case 'd': // int
7653 number = va_arg (args_copy, int);
7654 break;
7655 case 'f': // float
7656 fnumber = va_arg (args_copy, double);
7657 break;
7658 default:
7659 break;
7660 }
7661 }
7662 va_end (args_copy);
7663 va_end (args);
7664}
7665
7666int
7667main ()
7668{
7669
7670 // Check bool.
7671 _Bool success = false;
7672
7673 // Check restrict.
7674 if (test_restrict ("String literal") == 0)
7675 success = true;
7676 char *restrict newvar = "Another string";
7677
7678 // Check varargs.
7679 test_varargs ("s, d' f .", "string", 65, 34.234);
7680 test_varargs_macros ();
7681
7682 // Check flexible array members.
7683 struct incomplete_array *ia =
7684 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7685 ia->datasize = 10;
7686 for (int i = 0; i < ia->datasize; ++i)
7687 ia->data[i] = i * 1.234;
7688
7689 // Check named initializers.
7690 struct named_init ni = {
7691 .number = 34,
7692 .name = L"Test wide string",
7693 .average = 543.34343,
7694 };
7695
7696 ni.number = 58;
7697
7698 int dynamic_array[ni.number];
7699 dynamic_array[ni.number - 1] = 543;
7700
7701 // work around unused variable warnings
7702 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7703 || dynamic_array[ni.number - 1] != 543);
7704
7705 ;
7706 return 0;
7707}
7708_ACEOF
7709for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7710do
7711 CC="$ac_save_CC $ac_arg"
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 ac_cv_prog_cc_c99=$ac_arg
7714fi
7715rm -f core conftest.err conftest.$ac_objext
7716 test "x$ac_cv_prog_cc_c99" != "xno" && break
7717done
7718rm -f conftest.$ac_ext
7719CC=$ac_save_CC
7720
7721fi
7722# AC_CACHE_VAL
7723case "x$ac_cv_prog_cc_c99" in
7724 x)
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7726$as_echo "none needed" >&6; } ;;
7727 xno)
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7729$as_echo "unsupported" >&6; } ;;
7730 *)
7731 CC="$CC $ac_cv_prog_cc_c99"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7733$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7734esac
7735if test "x$ac_cv_prog_cc_c99" != xno; then :
7736
7737fi
7738
7739
cristy73bd4a52010-10-05 11:24:23 +00007740if test "x$CC" != xcc; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7742$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7743else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7745$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7746fi
7747set dummy $CC; ac_cc=`$as_echo "$2" |
7748 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007749if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007750 $as_echo_n "(cached) " >&6
7751else
cristy73bd4a52010-10-05 11:24:23 +00007752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h. */
7754
7755int
7756main ()
7757{
7758
7759 ;
7760 return 0;
7761}
7762_ACEOF
7763# Make sure it works both with $CC and with simple cc.
7764# We do the test twice because some compilers refuse to overwrite an
7765# existing .o file with -o, though they will create one.
7766ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7767rm -f conftest2.*
7768if { { case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771esac
7772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7773$as_echo "$ac_try_echo"; } >&5
7774 (eval "$ac_try") 2>&5
7775 ac_status=$?
7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; } &&
7778 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7780 *) ac_try_echo=$ac_try;;
7781esac
7782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7783$as_echo "$ac_try_echo"; } >&5
7784 (eval "$ac_try") 2>&5
7785 ac_status=$?
7786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7787 test $ac_status = 0; };
7788then
7789 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7790 if test "x$CC" != xcc; then
7791 # Test first that cc exists at all.
7792 if { ac_try='cc -c conftest.$ac_ext >&5'
7793 { { case "(($ac_try" in
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7796esac
7797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7798$as_echo "$ac_try_echo"; } >&5
7799 (eval "$ac_try") 2>&5
7800 ac_status=$?
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }; }; then
7803 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7804 rm -f conftest2.*
7805 if { { case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7808esac
7809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7810$as_echo "$ac_try_echo"; } >&5
7811 (eval "$ac_try") 2>&5
7812 ac_status=$?
7813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7814 test $ac_status = 0; } &&
7815 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7818esac
7819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7820$as_echo "$ac_try_echo"; } >&5
7821 (eval "$ac_try") 2>&5
7822 ac_status=$?
7823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824 test $ac_status = 0; };
7825 then
7826 # cc works too.
7827 :
7828 else
7829 # cc exists but doesn't like -o.
7830 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7831 fi
7832 fi
7833 fi
7834else
7835 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7836fi
7837rm -f core conftest*
7838
7839fi
7840if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842$as_echo "yes" >&6; }
7843else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
7846
7847$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7848
7849fi
7850
7851# FIXME: we rely on the cache variable name because
7852# there is no other way.
7853set dummy $CC
7854am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7855eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7856if test "$am_t" != yes; then
7857 # Losing compiler, so override with the script.
7858 # FIXME: It is wrong to rewrite CC.
7859 # But if we don't then we get into trouble of one sort or another.
7860 # A longer-term fix would be to have automake use am__CC in this case,
7861 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7862 CC="$am_aux_dir/compile $CC"
7863fi
7864
7865
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7867$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007868if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007869 $as_echo_n "(cached) " >&6
7870else
7871 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007872 ac_ext=c
7873ac_cpp='$CPP $CPPFLAGS'
7874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877
7878 ac_save_CFLAGS="$CFLAGS"
7879for 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" #
7880do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h. */
7883
7884int
7885main ()
7886{
cristy24fc1fe2010-10-23 21:13:01 +00007887
cristy73bd4a52010-10-05 11:24:23 +00007888 ;
7889 return 0;
7890}
7891_ACEOF
7892if ac_fn_c_try_compile "$LINENO"; then :
7893 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7894fi
7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896done
7897 CFLAGS="$ac_save_CFLAGS"
7898 ac_ext=c
7899ac_cpp='$CPP $CPPFLAGS'
7900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904
7905fi
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7907$as_echo "$ac_cv_cflags_warn_all" >&6; }
7908case ".$ac_cv_cflags_warn_all" in
7909 .ok|.ok,*) ;;
7910 .|.no|.no,*)
7911 ;;
7912 *)
7913 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7914 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7915 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7916 ac_status=$?
7917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918 test $ac_status = 0; }
7919 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7920 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7921 ac_status=$?
7922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7923 test $ac_status = 0; }
7924 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7925 fi
7926 ;;
nicolas6237c462010-10-05 06:11:49 +00007927esac
cristy3ed852e2009-09-05 21:47:34 +00007928
cristya0b81c32010-01-22 02:54:33 +00007929
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7931$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7932set x ${MAKE-make}
7933ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007934if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007935 $as_echo_n "(cached) " >&6
7936else
7937 cat >conftest.make <<\_ACEOF
7938SHELL = /bin/sh
7939all:
7940 @echo '@@@%%%=$(MAKE)=@@@%%%'
7941_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007942# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007943case `${MAKE-make} -f conftest.make 2>/dev/null` in
7944 *@@@%%%=?*=@@@%%%*)
7945 eval ac_cv_prog_make_${ac_make}_set=yes;;
7946 *)
7947 eval ac_cv_prog_make_${ac_make}_set=no;;
7948esac
7949rm -f conftest.make
7950fi
7951if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7953$as_echo "yes" >&6; }
7954 SET_MAKE=
7955else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
7958 SET_MAKE="MAKE=${MAKE-make}"
7959fi
7960
cristy8b350f62009-11-15 23:12:43 +00007961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007962$as_echo_n "checking whether ln -s works... " >&6; }
7963LN_S=$as_ln_s
7964if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007966$as_echo "yes" >&6; }
7967else
cristy8b350f62009-11-15 23:12:43 +00007968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007969$as_echo "no, using $LN_S" >&6; }
7970fi
7971
cristy73bd4a52010-10-05 11:24:23 +00007972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7973$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7974
7975# Check whether --with-dmalloc was given.
7976if test "${with_dmalloc+set}" = set; then :
7977 withval=$with_dmalloc; if test "$withval" = yes; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7979$as_echo "yes" >&6; }
7980
7981$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7982
7983 LIBS="$LIBS -ldmalloc"
7984 LDFLAGS="$LDFLAGS -g"
7985else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987$as_echo "no" >&6; }
7988fi
7989else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991$as_echo "no" >&6; }
7992fi
7993
7994
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7997$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007998if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007999 $as_echo_n "(cached) " >&6
8000else
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002/* end confdefs.h. */
8003#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008004 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008005 static void
8006 foo(void) {
8007 exit(1);
8008 }
8009
8010int
8011main ()
8012{
8013
8014 ;
8015 return 0;
8016}
8017_ACEOF
8018if ac_fn_c_try_compile "$LINENO"; then :
8019 ax_cv___attribute__=yes
8020else
8021 ax_cv___attribute__=no
8022
8023fi
8024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025
8026fi
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8028$as_echo "$ax_cv___attribute__" >&6; }
8029 if test "$ax_cv___attribute__" = "yes"; then
8030
8031$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8032
8033 fi
8034
8035
8036
cristy37110d62012-03-01 18:38:20 +00008037
8038
8039# Check whether --with-gcc-arch was given.
8040if test "${with_gcc_arch+set}" = set; then :
8041 withval=$with_gcc_arch; ax_gcc_arch=$withval
8042else
cristya32d1812012-03-02 19:24:21 +00008043 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008044fi
8045
8046
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8048$as_echo_n "checking for gcc architecture flag... " >&6; }
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8050$as_echo "" >&6; }
8051if ${ax_cv_gcc_archflag+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053else
8054
8055ax_cv_gcc_archflag="unknown"
8056
8057if test "$GCC" = yes; then
8058
8059if test "x$ax_gcc_arch" = xyes; then
8060ax_gcc_arch=""
8061if test "$cross_compiling" = no; then
8062case $host_cpu in
8063 i[3456]86*|x86_64*) # use cpuid codes
8064
8065ac_ext=c
8066ac_cpp='$CPP $CPPFLAGS'
8067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8072$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8073if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075else
8076 if test "$cross_compiling" = yes; then :
8077 ax_cv_gcc_x86_cpuid_0=unknown
8078else
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080/* end confdefs.h. */
8081#include <stdio.h>
8082int
8083main ()
8084{
8085
8086 int op = 0, eax, ebx, ecx, edx;
8087 FILE *f;
8088 __asm__("cpuid"
8089 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8090 : "a" (op));
8091 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8092 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8093 fclose(f);
8094 return 0;
8095
8096 ;
8097 return 0;
8098}
8099_ACEOF
8100if ac_fn_c_try_run "$LINENO"; then :
8101 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8102else
8103 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8104fi
8105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8106 conftest.$ac_objext conftest.beam conftest.$ac_ext
8107fi
8108
8109fi
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8111$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8112ac_ext=c
8113ac_cpp='$CPP $CPPFLAGS'
8114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116ac_compiler_gnu=$ac_cv_c_compiler_gnu
8117
8118
8119
8120ac_ext=c
8121ac_cpp='$CPP $CPPFLAGS'
8122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8127$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8128if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130else
8131 if test "$cross_compiling" = yes; then :
8132 ax_cv_gcc_x86_cpuid_1=unknown
8133else
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135/* end confdefs.h. */
8136#include <stdio.h>
8137int
8138main ()
8139{
8140
8141 int op = 1, eax, ebx, ecx, edx;
8142 FILE *f;
8143 __asm__("cpuid"
8144 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8145 : "a" (op));
8146 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8147 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8148 fclose(f);
8149 return 0;
8150
8151 ;
8152 return 0;
8153}
8154_ACEOF
8155if ac_fn_c_try_run "$LINENO"; then :
8156 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8157else
8158 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8159fi
8160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8161 conftest.$ac_objext conftest.beam conftest.$ac_ext
8162fi
8163
8164fi
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8166$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8167ac_ext=c
8168ac_cpp='$CPP $CPPFLAGS'
8169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8171ac_compiler_gnu=$ac_cv_c_compiler_gnu
8172
8173
8174 case $ax_cv_gcc_x86_cpuid_0 in
8175 *:756e6547:*:*) # Intel
8176 case $ax_cv_gcc_x86_cpuid_1 in
8177 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8178 *5??:*:*:*) ax_gcc_arch=pentium ;;
8179 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8180 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8181 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8182 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8183 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8184 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8185 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8186 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8187 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8188 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8189 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8190 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8191 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8192 case $host_cpu in
8193 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8194 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8195 esac ;;
8196 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8197 esac ;;
8198 *:68747541:*:*) # AMD
8199 case $ax_cv_gcc_x86_cpuid_1 in
8200 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8201 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8202 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8203 *60?:*:*:*) ax_gcc_arch=k7 ;;
8204 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8205 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8206 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8207 *6[68a]?:*:*:*)
8208
8209ac_ext=c
8210ac_cpp='$CPP $CPPFLAGS'
8211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213ac_compiler_gnu=$ac_cv_c_compiler_gnu
8214
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8216$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8217if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219else
8220 if test "$cross_compiling" = yes; then :
8221 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8222else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h. */
8225#include <stdio.h>
8226int
8227main ()
8228{
8229
8230 int op = 0x80000006, eax, ebx, ecx, edx;
8231 FILE *f;
8232 __asm__("cpuid"
8233 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8234 : "a" (op));
8235 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8236 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8237 fclose(f);
8238 return 0;
8239
8240 ;
8241 return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_run "$LINENO"; then :
8245 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8246else
8247 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8248fi
8249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8250 conftest.$ac_objext conftest.beam conftest.$ac_ext
8251fi
8252
8253fi
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8255$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8256ac_ext=c
8257ac_cpp='$CPP $CPPFLAGS'
8258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260ac_compiler_gnu=$ac_cv_c_compiler_gnu
8261
8262 # L2 cache size
8263 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8264 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8265 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8266 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8267 esac ;;
8268 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8269 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8270 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8271 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8272 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8273 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8274 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8275 esac ;;
8276 *:746e6543:*:*) # IDT
8277 case $ax_cv_gcc_x86_cpuid_1 in
8278 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8279 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8280 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8281 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8282 esac ;;
8283 esac
8284 if test x"$ax_gcc_arch" = x; then # fallback
8285 case $host_cpu in
8286 i586*) ax_gcc_arch=pentium ;;
8287 i686*) ax_gcc_arch=pentiumpro ;;
8288 esac
8289 fi
8290 ;;
8291
8292 sparc*)
8293 # Extract the first word of "prtdiag", so it can be a program name with args.
8294set dummy prtdiag; ac_word=$2
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296$as_echo_n "checking for $ac_word... " >&6; }
8297if ${ac_cv_path_PRTDIAG+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299else
8300 case $PRTDIAG in
8301 [\\/]* | ?:[\\/]*)
8302 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8303 ;;
8304 *)
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8307for as_dir in $as_dummy
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317done
8318 done
8319IFS=$as_save_IFS
8320
8321 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8322 ;;
8323esac
8324fi
8325PRTDIAG=$ac_cv_path_PRTDIAG
8326if test -n "$PRTDIAG"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8328$as_echo "$PRTDIAG" >&6; }
8329else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
8332fi
8333
8334
8335 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8336 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8337 case $cputype in
8338 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8339 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8340 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8341 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8342 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8343 *cypress*) ax_gcc_arch=cypress ;;
8344 esac ;;
8345
8346 alphaev5) ax_gcc_arch=ev5 ;;
8347 alphaev56) ax_gcc_arch=ev56 ;;
8348 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8349 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8350 alphaev6) ax_gcc_arch=ev6 ;;
8351 alphaev67) ax_gcc_arch=ev67 ;;
8352 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8353 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8354 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8355 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8356
8357 powerpc*)
8358 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8359 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8360 case $cputype in
8361 *750*) ax_gcc_arch="750 G3" ;;
8362 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8363 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8364 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8365 *970*) ax_gcc_arch="970 G5 power4";;
8366 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8367 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8368 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8369 *) ax_gcc_arch=$cputype ;;
8370 esac
8371 ax_gcc_arch="$ax_gcc_arch powerpc"
8372 ;;
8373esac
8374fi # not cross-compiling
8375fi # guess arch
8376
8377if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8378for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008379 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008380 flags="-mtune=$arch"
8381 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8382 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8383 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8384 else
8385 flags="-march=$arch -mcpu=$arch -m$arch"
8386 fi
8387 for flag in $flags; do
8388 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8390$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8391if eval \${$as_CACHEVAR+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393else
8394
8395 ax_check_save_flags=$CFLAGS
8396 CFLAGS="$CFLAGS $flag"
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h. */
8399
8400int
8401main ()
8402{
8403
8404 ;
8405 return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_compile "$LINENO"; then :
8409 eval "$as_CACHEVAR=yes"
8410else
8411 eval "$as_CACHEVAR=no"
8412fi
8413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 CFLAGS=$ax_check_save_flags
8415fi
8416eval ac_res=\$$as_CACHEVAR
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8418$as_echo "$ac_res" >&6; }
8419if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8420 ax_cv_gcc_archflag=$flag; break
8421else
8422 :
8423fi
8424
8425 done
8426 test "x$ax_cv_gcc_archflag" = xunknown || break
8427done
8428fi
8429
8430fi # $GCC=yes
8431
8432fi
8433
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8435$as_echo_n "checking for gcc architecture flag... " >&6; }
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8437$as_echo "$ax_cv_gcc_archflag" >&6; }
8438if test "x$ax_cv_gcc_archflag" = xunknown; then
8439 :
8440else
8441 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8442fi
8443
8444
8445
cristy73bd4a52010-10-05 11:24:23 +00008446if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8447 if test -n "$ac_tool_prefix"; then
8448 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8449set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008452if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008453 $as_echo_n "(cached) " >&6
8454else
8455 case $PKG_CONFIG in
8456 [\\/]* | ?:[\\/]*)
8457 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8458 ;;
8459 *)
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8470 fi
8471done
8472 done
8473IFS=$as_save_IFS
8474
8475 ;;
8476esac
8477fi
8478PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8479if test -n "$PKG_CONFIG"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8481$as_echo "$PKG_CONFIG" >&6; }
8482else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
8485fi
8486
8487
8488fi
8489if test -z "$ac_cv_path_PKG_CONFIG"; then
8490 ac_pt_PKG_CONFIG=$PKG_CONFIG
8491 # Extract the first word of "pkg-config", so it can be a program name with args.
8492set dummy pkg-config; ac_word=$2
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008495if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008496 $as_echo_n "(cached) " >&6
8497else
8498 case $ac_pt_PKG_CONFIG in
8499 [\\/]* | ?:[\\/]*)
8500 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8501 ;;
8502 *)
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8513 fi
8514done
8515 done
8516IFS=$as_save_IFS
8517
8518 ;;
8519esac
8520fi
8521ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8522if test -n "$ac_pt_PKG_CONFIG"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8524$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8525else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528fi
8529
8530 if test "x$ac_pt_PKG_CONFIG" = x; then
8531 PKG_CONFIG=""
8532 else
8533 case $cross_compiling:$ac_tool_warned in
8534yes:)
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8537ac_tool_warned=yes ;;
8538esac
8539 PKG_CONFIG=$ac_pt_PKG_CONFIG
8540 fi
8541else
8542 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8543fi
8544
8545fi
8546if test -n "$PKG_CONFIG"; then
8547 _pkg_min_version=0.9.0
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8549$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8550 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8552$as_echo "yes" >&6; }
8553 else
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555$as_echo "no" >&6; }
8556 PKG_CONFIG=""
8557 fi
8558
8559fi
cristy3ed852e2009-09-05 21:47:34 +00008560
8561#
cristy3ed852e2009-09-05 21:47:34 +00008562# Enable run-time checking.
8563#
8564# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008565if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008566 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8567else
8568 enable_bounds_checking='no'
8569fi
8570
8571
8572if test "$enable_bounds_checking" = yes; then
8573
cristy8b350f62009-11-15 23:12:43 +00008574$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008575
8576fi
8577
8578#
8579# Tests for Windows
8580#
8581
8582
cristy73bd4a52010-10-05 11:24:23 +00008583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8584$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008585if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008586 $as_echo_n "(cached) " >&6
8587else
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589/* end confdefs.h. */
8590
8591int
8592main ()
8593{
8594#ifndef _MSC_VER
8595 choke me
8596#endif
8597
8598 ;
8599 return 0;
8600}
8601_ACEOF
8602if ac_fn_c_try_compile "$LINENO"; then :
8603 ax_compiler_ms=yes
8604else
8605 ax_compiler_ms=no
8606fi
8607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608ax_cv_c_compiler_ms=$ax_compiler_ms
8609
8610fi
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8612$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008613
8614GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008615native_win32_build='no'
8616cygwin_build='no'
8617case "${host_os}" in
8618 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008619 cygwin_build='yes'
8620 GDI32_LIBS='-lgdi32'
8621 ;;
8622 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008623 native_win32_build='yes'
8624 GDI32_LIBS='-lgdi32'
8625 ;;
8626esac
8627if test "${GDI32_LIBS}x" != 'x'; then
8628
cristy8b350f62009-11-15 23:12:43 +00008629$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008630
8631fi
8632
cristy73bd4a52010-10-05 11:24:23 +00008633 if test "${GDI32_LIBS}x" != 'x' ; then
8634 WINGDI32_DELEGATE_TRUE=
8635 WINGDI32_DELEGATE_FALSE='#'
8636else
8637 WINGDI32_DELEGATE_TRUE='#'
8638 WINGDI32_DELEGATE_FALSE=
8639fi
8640
8641 if test "${native_win32_build}" = 'yes' ; then
8642 WIN32_NATIVE_BUILD_TRUE=
8643 WIN32_NATIVE_BUILD_FALSE='#'
8644else
8645 WIN32_NATIVE_BUILD_TRUE='#'
8646 WIN32_NATIVE_BUILD_FALSE=
8647fi
8648
8649 if test "${cygwin_build}" = 'yes' ; then
8650 CYGWIN_BUILD_TRUE=
8651 CYGWIN_BUILD_FALSE='#'
8652else
8653 CYGWIN_BUILD_TRUE='#'
8654 CYGWIN_BUILD_FALSE=
8655fi
8656
8657 if test "x${CC}" = 'xcl.exe' ; then
8658 USING_CL_TRUE=
8659 USING_CL_FALSE='#'
8660else
8661 USING_CL_TRUE='#'
8662 USING_CL_FALSE=
8663fi
8664
cristy3ed852e2009-09-05 21:47:34 +00008665
8666WinPathScript="${srcdirfull}/winpath.sh"
8667
8668
8669#
8670# Compiler flags tweaks
8671#
8672if test "${GCC}" != "yes"; then
8673 case "${host}" in
8674 *-*-hpux* )
8675 # aCC: HP ANSI C++ B3910B A.03.34
8676 CFLAGS="${CFLAGS} -Wp,-H30000"
8677 if test -n "${CXXFLAGS}"; then
8678 CXXFLAGS='-AA'
8679 else
8680 CXXFLAGS="${CXXFLAGS} -AA"
8681 fi
8682 ;;
8683 *-dec-osf5.* )
8684 # Compaq alphaev68-dec-osf5.1 compiler
8685 if test -n "${CXXFLAGS}"; then
8686 CXXFLAGS='-std strict_ansi -noimplicit_include'
8687 else
8688 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8689 fi
8690 esac
8691fi
8692
8693# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008695$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008696if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008697 $as_echo_n "(cached) " >&6
8698else
8699
8700im_cv_ld_lazyload='none'
8701case "${host}" in
8702 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8703 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8704 im_cv_ld_lazyload='-Wl,-zlazyload'
8705 fi
8706 ;;
8707esac
8708
8709fi
cristy8b350f62009-11-15 23:12:43 +00008710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008711$as_echo "$im_cv_ld_lazyload" >&6; }
8712if test "${im_cv_ld_lazyload}" != 'none' ; then
8713 if test -z "${LDFLAGS}" ; then
8714 LDFLAGS="${im_cv_ld_lazyload}"
8715 else
8716 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8717 fi
8718fi
8719
8720case "$host" in
8721*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008722 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008723if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008724 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8725else
8726 build_osxuniversal=no
8727fi
8728
8729
8730 if test "${build_osxuniversal}" != no ; then
8731 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008732 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008733Please re-run configure with these options:
8734 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008735 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008736 fi
8737 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8738 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8739 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8740 fi
8741 ;;
8742esac
8743
cristy0151ae12011-10-28 16:32:29 +00008744#
8745# ARCH specific include directory
8746#
8747
cristy670aa3c2011-11-03 00:54:00 +00008748# Check whether --with-includearch-dir was given.
8749if test "${with_includearch_dir+set}" = set; then :
8750 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008751else
cristy670aa3c2011-11-03 00:54:00 +00008752 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008753fi
8754
8755
cristy670aa3c2011-11-03 00:54:00 +00008756eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008757
cristy0151ae12011-10-28 16:32:29 +00008758
8759#
8760# ARCH specific configuration directory
8761#
8762
cristy670aa3c2011-11-03 00:54:00 +00008763# Check whether --with-sharearch-dir was given.
8764if test "${with_sharearch_dir+set}" = set; then :
8765 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008766else
cristy408ebcd2011-11-14 01:36:57 +00008767 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008768fi
8769
8770
cristy670aa3c2011-11-03 00:54:00 +00008771eval "eval SHAREARCH_DIR=$sharearch_dir"
8772SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008773
cristy0151ae12011-10-28 16:32:29 +00008774
8775#
cristy3ed852e2009-09-05 21:47:34 +00008776# Enable support for threads
8777
8778# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008779if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008780 withval=$with_threads; with_threads=$withval
8781else
8782 with_threads='yes'
8783fi
8784
8785
8786have_threads=no
8787if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008788
8789
cristy73bd4a52010-10-05 11:24:23 +00008790ac_ext=c
8791ac_cpp='$CPP $CPPFLAGS'
8792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8794ac_compiler_gnu=$ac_cv_c_compiler_gnu
8795
8796ax_pthread_ok=no
8797
8798# We used to check for pthread.h first, but this fails if pthread.h
8799# requires special compiler flags (e.g. on True64 or Sequent).
8800# It gets checked for in the link test anyway.
8801
8802# First of all, check if the user has set any of the PTHREAD_LIBS,
8803# etcetera environment variables, and if threads linking works using
8804# them:
8805if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8806 save_CFLAGS="$CFLAGS"
8807 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8808 save_LIBS="$LIBS"
8809 LIBS="$PTHREAD_LIBS $LIBS"
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8811$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h. */
8814
8815/* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821char pthread_join ();
8822int
8823main ()
8824{
8825return pthread_join ();
8826 ;
8827 return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"; then :
8831 ax_pthread_ok=yes
8832fi
8833rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8836$as_echo "$ax_pthread_ok" >&6; }
8837 if test x"$ax_pthread_ok" = xno; then
8838 PTHREAD_LIBS=""
8839 PTHREAD_CFLAGS=""
8840 fi
8841 LIBS="$save_LIBS"
8842 CFLAGS="$save_CFLAGS"
8843fi
8844
8845# We must check for the threads library under a number of different
8846# names; the ordering is very important because some systems
8847# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8848# libraries is broken (non-POSIX).
8849
8850# Create a list of thread flags to try. Items starting with a "-" are
8851# C compiler flags, and other items are library names, except for "none"
8852# which indicates that we try without any flags at all, and "pthread-config"
8853# which is a program returning the flags for the Pth emulation library.
8854
cristy18307f12011-12-30 01:20:16 +00008855ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008856
8857# The ordering *is* (sometimes) important. Some notes on the
8858# individual items follow:
8859
8860# pthreads: AIX (must check this before -lpthread)
8861# none: in case threads are in libc; should be tried before -Kthread and
8862# other compiler flags to prevent continual compiler warnings
8863# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8864# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8865# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8866# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8867# -pthreads: Solaris/gcc
8868# -mthreads: Mingw32/gcc, Lynx/gcc
8869# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8870# doesn't hurt to check since this sometimes defines pthreads too;
8871# also defines -D_REENTRANT)
8872# ... -mt is also the pthreads flag for HP/aCC
8873# pthread: Linux, etcetera
8874# --thread-safe: KAI C++
8875# pthread-config: use pthread-config program (for GNU Pth library)
8876
8877case "${host_cpu}-${host_os}" in
8878 *solaris*)
8879
8880 # On Solaris (at least, for some versions), libc contains stubbed
8881 # (non-functional) versions of the pthreads routines, so link-based
8882 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8883 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8884 # a function called by this macro, so we could check for that, but
8885 # who knows whether they'll stub that too in a future libc.) So,
8886 # we'll just look for -pthreads and -lpthread first:
8887
8888 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8889 ;;
8890
cristya316db12011-10-24 00:49:45 +00008891 *-darwin*)
8892 ax_pthread_flags="-pthread $ax_pthread_flags"
8893 ;;
cristy73bd4a52010-10-05 11:24:23 +00008894esac
8895
8896if test x"$ax_pthread_ok" = xno; then
8897for flag in $ax_pthread_flags; do
8898
8899 case $flag in
8900 none)
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8902$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8903 ;;
8904
8905 -*)
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8907$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8908 PTHREAD_CFLAGS="$flag"
8909 ;;
8910
cristya316db12011-10-24 00:49:45 +00008911 pthread-config)
8912 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008913set dummy pthread-config; ac_word=$2
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008916if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008917 $as_echo_n "(cached) " >&6
8918else
8919 if test -n "$ax_pthread_config"; then
8920 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8921else
8922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923for as_dir in $PATH
8924do
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8929 ac_cv_prog_ax_pthread_config="yes"
8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8932 fi
8933done
8934 done
8935IFS=$as_save_IFS
8936
8937 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8938fi
8939fi
8940ax_pthread_config=$ac_cv_prog_ax_pthread_config
8941if test -n "$ax_pthread_config"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8943$as_echo "$ax_pthread_config" >&6; }
8944else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
8947fi
8948
8949
cristya316db12011-10-24 00:49:45 +00008950 if test x"$ax_pthread_config" = xno; then continue; fi
8951 PTHREAD_CFLAGS="`pthread-config --cflags`"
8952 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8953 ;;
cristy73bd4a52010-10-05 11:24:23 +00008954
8955 *)
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8957$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8958 PTHREAD_LIBS="-l$flag"
8959 ;;
8960 esac
8961
8962 save_LIBS="$LIBS"
8963 save_CFLAGS="$CFLAGS"
8964 LIBS="$PTHREAD_LIBS $LIBS"
8965 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8966
8967 # Check for various functions. We must include pthread.h,
8968 # since some functions may be macros. (On the Sequent, we
8969 # need a special flag -Kthread to make this header compile.)
8970 # We check for pthread_join because it is in -lpthread on IRIX
8971 # while pthread_create is in libc. We check for pthread_attr_init
8972 # due to DEC craziness with -lpthreads. We check for
8973 # pthread_cleanup_push because it is one of the few pthread
8974 # functions on Solaris that doesn't have a non-functional libc stub.
8975 # We try pthread_create on general principles.
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h. */
8978#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008979 static void routine(void *a) { a = 0; }
8980 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008981int
8982main ()
8983{
8984pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008985 pthread_create(&th, 0, start_routine, 0);
8986 pthread_join(th, 0);
8987 pthread_attr_init(&attr);
8988 pthread_cleanup_push(routine, 0);
8989 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008990 ;
8991 return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_link "$LINENO"; then :
8995 ax_pthread_ok=yes
8996fi
8997rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999
9000 LIBS="$save_LIBS"
9001 CFLAGS="$save_CFLAGS"
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9004$as_echo "$ax_pthread_ok" >&6; }
9005 if test "x$ax_pthread_ok" = xyes; then
9006 break;
9007 fi
9008
9009 PTHREAD_LIBS=""
9010 PTHREAD_CFLAGS=""
9011done
9012fi
9013
9014# Various other checks:
9015if test "x$ax_pthread_ok" = xyes; then
9016 save_LIBS="$LIBS"
9017 LIBS="$PTHREAD_LIBS $LIBS"
9018 save_CFLAGS="$CFLAGS"
9019 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9020
9021 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009023$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009024 attr_name=unknown
9025 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009027/* end confdefs.h. */
9028#include <pthread.h>
9029int
9030main ()
9031{
cristya316db12011-10-24 00:49:45 +00009032int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009033 ;
9034 return 0;
9035}
9036_ACEOF
9037if ac_fn_c_try_link "$LINENO"; then :
9038 attr_name=$attr; break
9039fi
9040rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009042 done
cristy73bd4a52010-10-05 11:24:23 +00009043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9044$as_echo "$attr_name" >&6; }
9045 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9046
9047cat >>confdefs.h <<_ACEOF
9048#define PTHREAD_CREATE_JOINABLE $attr_name
9049_ACEOF
9050
9051 fi
9052
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9054$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9055 flag=no
9056 case "${host_cpu}-${host_os}" in
9057 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9058 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9059 esac
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9061$as_echo "${flag}" >&6; }
9062 if test "x$flag" != xno; then
9063 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9064 fi
9065
cristya316db12011-10-24 00:49:45 +00009066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9067$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9068if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070else
9071
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h. */
9074
9075 #include <pthread.h>
9076int
9077main ()
9078{
9079int i = PTHREAD_PRIO_INHERIT;
9080 ;
9081 return 0;
9082}
9083_ACEOF
9084if ac_fn_c_try_link "$LINENO"; then :
9085 ax_cv_PTHREAD_PRIO_INHERIT=yes
9086else
9087 ax_cv_PTHREAD_PRIO_INHERIT=no
9088fi
9089rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091
9092fi
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9094$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9095 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9096
9097$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9098
9099fi
9100
cristy73bd4a52010-10-05 11:24:23 +00009101 LIBS="$save_LIBS"
9102 CFLAGS="$save_CFLAGS"
9103
9104 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009105 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009106 for ac_prog in xlc_r cc_r
9107do
9108 # Extract the first word of "$ac_prog", so it can be a program name with args.
9109set dummy $ac_prog; ac_word=$2
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009112if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009113 $as_echo_n "(cached) " >&6
9114else
9115 if test -n "$PTHREAD_CC"; then
9116 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9117else
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_prog_PTHREAD_CC="$ac_prog"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130 done
9131IFS=$as_save_IFS
9132
9133fi
9134fi
9135PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9136if test -n "$PTHREAD_CC"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9138$as_echo "$PTHREAD_CC" >&6; }
9139else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141$as_echo "no" >&6; }
9142fi
9143
9144
9145 test -n "$PTHREAD_CC" && break
9146done
9147test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9148
9149 else
9150 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009151 fi
cristy73bd4a52010-10-05 11:24:23 +00009152else
9153 PTHREAD_CC="$CC"
9154fi
9155
9156
9157
9158
9159
9160# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9161if test x"$ax_pthread_ok" = xyes; then
9162
9163$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9164
9165 :
9166else
9167 ax_pthread_ok=no
9168
9169fi
9170ac_ext=c
9171ac_cpp='$CPP $CPPFLAGS'
9172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9174ac_compiler_gnu=$ac_cv_c_compiler_gnu
9175
9176
cristy7acf8fb2010-09-23 19:58:53 +00009177 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009178 have_threads=yes
9179 DEF_THREAD="$PTHREAD_CFLAGS"
9180 CFLAGS="$CFLAGS $DEF_THREAD"
9181 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9182 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009183 { $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 +00009184$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9185 CC="$PTHREAD_CC"
9186 fi
cristy55bf91c2010-09-24 00:29:41 +00009187
9188$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9189
cristy3ed852e2009-09-05 21:47:34 +00009190 fi
9191fi
9192
9193# Enable support for OpenMP
9194if test "$have_threads" != 'yes'; then
9195 ac_cv_prog_c_openmp=unsupported
9196fi
9197
9198 OPENMP_CFLAGS=
9199 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009200if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009201 enableval=$enable_openmp;
9202fi
9203
9204 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009206$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009207if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009208 $as_echo_n "(cached) " >&6
9209else
cristy8b350f62009-11-15 23:12:43 +00009210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009212
9213#ifndef _OPENMP
9214 choke me
9215#endif
9216#include <omp.h>
9217int main () { return omp_get_num_threads (); }
9218
9219_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009220if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009221 ac_cv_prog_c_openmp='none needed'
9222else
cristy8b350f62009-11-15 23:12:43 +00009223 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00009224 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
9225 ac_save_CFLAGS=$CFLAGS
9226 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009229
9230#ifndef _OPENMP
9231 choke me
9232#endif
9233#include <omp.h>
9234int main () { return omp_get_num_threads (); }
9235
9236_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009237if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009238 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009239fi
cristy8b350f62009-11-15 23:12:43 +00009240rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009242 CFLAGS=$ac_save_CFLAGS
9243 if test "$ac_cv_prog_c_openmp" != unsupported; then
9244 break
9245 fi
9246 done
9247fi
cristy8b350f62009-11-15 23:12:43 +00009248rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009250fi
cristy8b350f62009-11-15 23:12:43 +00009251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009252$as_echo "$ac_cv_prog_c_openmp" >&6; }
9253 case $ac_cv_prog_c_openmp in #(
9254 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009255 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009256 *)
cristy8b350f62009-11-15 23:12:43 +00009257 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009258 esac
9259 fi
9260
9261
9262CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9263MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9264
cristy391f1ce2010-09-09 17:23:28 +00009265if test "$enable_openmp" != no; then
9266 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9267 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9268 fi
9269fi
cristy3ed852e2009-09-05 21:47:34 +00009270
cristy736173a2009-09-20 21:18:22 +00009271# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009272
9273
cristy73bd4a52010-10-05 11:24:23 +00009274ac_ext=c
9275ac_cpp='$CPP $CPPFLAGS'
9276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9278ac_compiler_gnu=$ac_cv_c_compiler_gnu
9279
9280ax_pthread_ok=no
9281
9282# We used to check for pthread.h first, but this fails if pthread.h
9283# requires special compiler flags (e.g. on True64 or Sequent).
9284# It gets checked for in the link test anyway.
9285
9286# First of all, check if the user has set any of the PTHREAD_LIBS,
9287# etcetera environment variables, and if threads linking works using
9288# them:
9289if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9290 save_CFLAGS="$CFLAGS"
9291 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9292 save_LIBS="$LIBS"
9293 LIBS="$PTHREAD_LIBS $LIBS"
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9295$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297/* end confdefs.h. */
9298
9299/* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9302#ifdef __cplusplus
9303extern "C"
9304#endif
9305char pthread_join ();
9306int
9307main ()
9308{
9309return pthread_join ();
9310 ;
9311 return 0;
9312}
9313_ACEOF
9314if ac_fn_c_try_link "$LINENO"; then :
9315 ax_pthread_ok=yes
9316fi
9317rm -f core conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9320$as_echo "$ax_pthread_ok" >&6; }
9321 if test x"$ax_pthread_ok" = xno; then
9322 PTHREAD_LIBS=""
9323 PTHREAD_CFLAGS=""
9324 fi
9325 LIBS="$save_LIBS"
9326 CFLAGS="$save_CFLAGS"
9327fi
9328
9329# We must check for the threads library under a number of different
9330# names; the ordering is very important because some systems
9331# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9332# libraries is broken (non-POSIX).
9333
9334# Create a list of thread flags to try. Items starting with a "-" are
9335# C compiler flags, and other items are library names, except for "none"
9336# which indicates that we try without any flags at all, and "pthread-config"
9337# which is a program returning the flags for the Pth emulation library.
9338
cristy18307f12011-12-30 01:20:16 +00009339ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009340
9341# The ordering *is* (sometimes) important. Some notes on the
9342# individual items follow:
9343
9344# pthreads: AIX (must check this before -lpthread)
9345# none: in case threads are in libc; should be tried before -Kthread and
9346# other compiler flags to prevent continual compiler warnings
9347# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9348# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9349# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9350# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9351# -pthreads: Solaris/gcc
9352# -mthreads: Mingw32/gcc, Lynx/gcc
9353# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9354# doesn't hurt to check since this sometimes defines pthreads too;
9355# also defines -D_REENTRANT)
9356# ... -mt is also the pthreads flag for HP/aCC
9357# pthread: Linux, etcetera
9358# --thread-safe: KAI C++
9359# pthread-config: use pthread-config program (for GNU Pth library)
9360
9361case "${host_cpu}-${host_os}" in
9362 *solaris*)
9363
9364 # On Solaris (at least, for some versions), libc contains stubbed
9365 # (non-functional) versions of the pthreads routines, so link-based
9366 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9367 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9368 # a function called by this macro, so we could check for that, but
9369 # who knows whether they'll stub that too in a future libc.) So,
9370 # we'll just look for -pthreads and -lpthread first:
9371
9372 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9373 ;;
9374
cristya316db12011-10-24 00:49:45 +00009375 *-darwin*)
9376 ax_pthread_flags="-pthread $ax_pthread_flags"
9377 ;;
cristy73bd4a52010-10-05 11:24:23 +00009378esac
9379
9380if test x"$ax_pthread_ok" = xno; then
9381for flag in $ax_pthread_flags; do
9382
9383 case $flag in
9384 none)
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9386$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9387 ;;
9388
9389 -*)
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9391$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9392 PTHREAD_CFLAGS="$flag"
9393 ;;
9394
cristya316db12011-10-24 00:49:45 +00009395 pthread-config)
9396 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009397set dummy pthread-config; ac_word=$2
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009400if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009401 $as_echo_n "(cached) " >&6
9402else
9403 if test -n "$ax_pthread_config"; then
9404 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9405else
9406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9407for as_dir in $PATH
9408do
9409 IFS=$as_save_IFS
9410 test -z "$as_dir" && as_dir=.
9411 for ac_exec_ext in '' $ac_executable_extensions; do
9412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9413 ac_cv_prog_ax_pthread_config="yes"
9414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9415 break 2
9416 fi
9417done
9418 done
9419IFS=$as_save_IFS
9420
9421 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9422fi
9423fi
9424ax_pthread_config=$ac_cv_prog_ax_pthread_config
9425if test -n "$ax_pthread_config"; then
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9427$as_echo "$ax_pthread_config" >&6; }
9428else
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430$as_echo "no" >&6; }
9431fi
9432
9433
cristya316db12011-10-24 00:49:45 +00009434 if test x"$ax_pthread_config" = xno; then continue; fi
9435 PTHREAD_CFLAGS="`pthread-config --cflags`"
9436 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9437 ;;
cristy73bd4a52010-10-05 11:24:23 +00009438
9439 *)
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9441$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9442 PTHREAD_LIBS="-l$flag"
9443 ;;
9444 esac
9445
9446 save_LIBS="$LIBS"
9447 save_CFLAGS="$CFLAGS"
9448 LIBS="$PTHREAD_LIBS $LIBS"
9449 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9450
9451 # Check for various functions. We must include pthread.h,
9452 # since some functions may be macros. (On the Sequent, we
9453 # need a special flag -Kthread to make this header compile.)
9454 # We check for pthread_join because it is in -lpthread on IRIX
9455 # while pthread_create is in libc. We check for pthread_attr_init
9456 # due to DEC craziness with -lpthreads. We check for
9457 # pthread_cleanup_push because it is one of the few pthread
9458 # functions on Solaris that doesn't have a non-functional libc stub.
9459 # We try pthread_create on general principles.
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461/* end confdefs.h. */
9462#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009463 static void routine(void *a) { a = 0; }
9464 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009465int
9466main ()
9467{
9468pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009469 pthread_create(&th, 0, start_routine, 0);
9470 pthread_join(th, 0);
9471 pthread_attr_init(&attr);
9472 pthread_cleanup_push(routine, 0);
9473 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009474 ;
9475 return 0;
9476}
9477_ACEOF
9478if ac_fn_c_try_link "$LINENO"; then :
9479 ax_pthread_ok=yes
9480fi
9481rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483
9484 LIBS="$save_LIBS"
9485 CFLAGS="$save_CFLAGS"
9486
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9488$as_echo "$ax_pthread_ok" >&6; }
9489 if test "x$ax_pthread_ok" = xyes; then
9490 break;
9491 fi
9492
9493 PTHREAD_LIBS=""
9494 PTHREAD_CFLAGS=""
9495done
9496fi
9497
9498# Various other checks:
9499if test "x$ax_pthread_ok" = xyes; then
9500 save_LIBS="$LIBS"
9501 LIBS="$PTHREAD_LIBS $LIBS"
9502 save_CFLAGS="$CFLAGS"
9503 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9504
9505 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009507$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009508 attr_name=unknown
9509 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009511/* end confdefs.h. */
9512#include <pthread.h>
9513int
9514main ()
9515{
cristya316db12011-10-24 00:49:45 +00009516int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009517 ;
9518 return 0;
9519}
9520_ACEOF
9521if ac_fn_c_try_link "$LINENO"; then :
9522 attr_name=$attr; break
9523fi
9524rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009526 done
cristy73bd4a52010-10-05 11:24:23 +00009527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9528$as_echo "$attr_name" >&6; }
9529 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9530
9531cat >>confdefs.h <<_ACEOF
9532#define PTHREAD_CREATE_JOINABLE $attr_name
9533_ACEOF
9534
9535 fi
9536
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9538$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9539 flag=no
9540 case "${host_cpu}-${host_os}" in
9541 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9542 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9543 esac
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9545$as_echo "${flag}" >&6; }
9546 if test "x$flag" != xno; then
9547 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9548 fi
9549
cristya316db12011-10-24 00:49:45 +00009550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9551$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9552if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554else
9555
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557/* end confdefs.h. */
9558
9559 #include <pthread.h>
9560int
9561main ()
9562{
9563int i = PTHREAD_PRIO_INHERIT;
9564 ;
9565 return 0;
9566}
9567_ACEOF
9568if ac_fn_c_try_link "$LINENO"; then :
9569 ax_cv_PTHREAD_PRIO_INHERIT=yes
9570else
9571 ax_cv_PTHREAD_PRIO_INHERIT=no
9572fi
9573rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9578$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9579 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9580
9581$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9582
9583fi
9584
cristy73bd4a52010-10-05 11:24:23 +00009585 LIBS="$save_LIBS"
9586 CFLAGS="$save_CFLAGS"
9587
9588 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009589 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009590 for ac_prog in xlc_r cc_r
9591do
9592 # Extract the first word of "$ac_prog", so it can be a program name with args.
9593set dummy $ac_prog; ac_word=$2
9594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009596if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009597 $as_echo_n "(cached) " >&6
9598else
9599 if test -n "$PTHREAD_CC"; then
9600 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9601else
9602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603for as_dir in $PATH
9604do
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609 ac_cv_prog_PTHREAD_CC="$ac_prog"
9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9612 fi
9613done
9614 done
9615IFS=$as_save_IFS
9616
9617fi
9618fi
9619PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9620if test -n "$PTHREAD_CC"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9622$as_echo "$PTHREAD_CC" >&6; }
9623else
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625$as_echo "no" >&6; }
9626fi
9627
9628
9629 test -n "$PTHREAD_CC" && break
9630done
9631test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9632
9633 else
9634 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009635 fi
cristy73bd4a52010-10-05 11:24:23 +00009636else
9637 PTHREAD_CC="$CC"
9638fi
9639
9640
9641
9642
9643
9644# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9645if test x"$ax_pthread_ok" = xyes; then
9646
9647$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9648
9649 :
9650else
9651 ax_pthread_ok=no
9652
9653fi
9654ac_ext=c
9655ac_cpp='$CPP $CPPFLAGS'
9656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9658ac_compiler_gnu=$ac_cv_c_compiler_gnu
9659
9660
9661
9662# Check whether --enable-opencl was given.
9663if test "${enable_opencl+set}" = set; then :
9664 enableval=$enable_opencl; disable_opencl=$enableval
9665else
9666 disable_opencl='yes'
9667fi
9668
9669
9670if test "$disable_opencl" = 'yes'; then
9671 ac_ext=c
9672ac_cpp='$CPP $CPPFLAGS'
9673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9675ac_compiler_gnu=$ac_cv_c_compiler_gnu
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9678$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009679if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009680 $as_echo_n "(cached) " >&6
9681else
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683/* end confdefs.h. */
9684
9685int
9686main ()
9687{
9688#ifndef _MSC_VER
9689 choke me
9690#endif
9691
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696if ac_fn_c_try_compile "$LINENO"; then :
9697 ax_compiler_ms=yes
9698else
9699 ax_compiler_ms=no
9700fi
9701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702ax_cv_c_compiler_ms=$ax_compiler_ms
9703
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9706$as_echo "$ax_cv_c_compiler_ms" >&6; }
9707 if test X$ax_compiler_ms = Xno; then :
9708 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9709fi
9710
9711 ax_save_CPPFLAGS=$CPPFLAGS
9712 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9713 for ac_header in CL/cl.h OpenCL/cl.h
9714do :
9715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9716ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009718 cat >>confdefs.h <<_ACEOF
9719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9720_ACEOF
9721
9722fi
9723
9724done
9725
9726 CPPFLAGS=$ax_save_CPPFLAGS
9727
9728 for ac_header in windows.h
9729do :
9730 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009731if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009732 cat >>confdefs.h <<_ACEOF
9733#define HAVE_WINDOWS_H 1
9734_ACEOF
9735
9736fi
9737
9738done
9739
9740
9741
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9744$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009745if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009746 $as_echo_n "(cached) " >&6
9747else
9748 ax_cv_check_cl_libcl=no
9749 case $host_cpu in
9750 x86_64) ax_check_cl_libdir=lib64 ;;
9751 *) ax_check_cl_libdir=lib ;;
9752 esac
9753 ax_save_CPPFLAGS=$CPPFLAGS
9754 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9755 ax_save_LIBS=$LIBS
9756 LIBS=""
9757 ax_check_libs="-lOpenCL -lCL -lclparser"
9758 for ax_lib in $ax_check_libs; do
9759 if test X$ax_compiler_ms = Xyes; then :
9760 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9761else
9762 ax_try_lib=$ax_lib
9763fi
9764 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h. */
9767
9768 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9769 # include <windows.h>
9770 # endif
9771 # ifdef HAVE_CL_CL_H
9772 # include <CL/cl.h>
9773 # elif defined(HAVE_OPENCL_CL_H)
9774 # include <OpenCL/cl.h>
9775 # else
9776 # error no CL.h
9777 # endif
9778int
9779main ()
9780{
9781clCreateContextFromType(0,0,0,0,0)
9782 ;
9783 return 0;
9784}
9785_ACEOF
9786if ac_fn_c_try_link "$LINENO"; then :
9787 ax_cv_check_cl_libcl=$ax_try_lib; break
9788else
9789 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"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h. */
9792
9793 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9794 # include <windows.h>
9795 # endif
9796 # ifdef HAVE_CL_CL_H
9797 # include <CL/cl.h>
9798 # elif defined(HAVE_OPENCL_CL_H)
9799 # include <OpenCL/cl.h>
9800 # else
9801 # error no CL.h
9802 # endif
9803int
9804main ()
9805{
9806clCreateContextFromType(0,0,0,0,0)
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811if ac_fn_c_try_link "$LINENO"; then :
9812 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9813else
cristy78c5a0c2010-12-04 20:00:59 +00009814 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 +00009815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816/* end confdefs.h. */
9817
9818 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9819 # include <windows.h>
9820 # endif
9821 # ifdef HAVE_CL_CL_H
9822 # include <CL/cl.h>
9823 # elif defined(HAVE_OPENCL_CL_H)
9824 # include <OpenCL/cl.h>
9825 # else
9826 # error no CL.h
9827 # endif
9828int
9829main ()
9830{
9831clCreateContextFromType(0,0,0,0,0)
9832 ;
9833 return 0;
9834}
9835_ACEOF
9836if ac_fn_c_try_link "$LINENO"; then :
9837 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9838fi
9839rm -f core conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9841fi
9842rm -f core conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
9844fi
9845rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847 done
9848
cristyc3f8b8e2011-12-22 14:55:16 +00009849 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009850 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852/* end confdefs.h. */
9853
9854 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9855 # include <windows.h>
9856 # endif
9857 # ifdef HAVE_CL_CL_H
9858 # include <CL/cl.h>
9859 # elif defined(HAVE_OPENCL_CL_H)
9860 # include <OpenCL/cl.h>
9861 # else
9862 # error no CL.h
9863 # endif
9864int
9865main ()
9866{
9867clCreateContextFromType(0,0,0,0,0)
9868 ;
9869 return 0;
9870}
9871_ACEOF
9872if ac_fn_c_try_link "$LINENO"; then :
9873 ax_cv_check_cl_libcl=$LIBS
9874fi
9875rm -f core conftest.err conftest.$ac_objext \
9876 conftest$ac_exeext conftest.$ac_ext
9877fi
9878
9879 LIBS=$ax_save_LIBS
9880 CPPFLAGS=$ax_save_CPPFLAGS
9881fi
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9883$as_echo "$ax_cv_check_cl_libcl" >&6; }
9884
9885 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9886 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9887else
9888 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9889$as_echo "#define _OPENCL 1" >>confdefs.h
9890
9891fi
9892 ac_ext=c
9893ac_cpp='$CPP $CPPFLAGS'
9894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9896ac_compiler_gnu=$ac_cv_c_compiler_gnu
9897
9898fi
9899
9900
9901
9902
cristyc7083c12009-10-14 03:16:55 +00009903CFLAGS="$CL_CFLAGS $CFLAGS"
9904LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009905
cristy391f1ce2010-09-09 17:23:28 +00009906if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009907 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009908 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9909 fi
cristyfd9dcd42010-08-08 18:07:02 +00009910fi
cristy2e8b51d2009-10-17 18:26:15 +00009911
cristy3ed852e2009-09-05 21:47:34 +00009912########
9913#
9914# Check for large file support
9915#
9916########
9917# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009918if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009919 enableval=$enable_largefile;
9920fi
9921
9922if test "$enable_largefile" != no; then
9923
cristy8b350f62009-11-15 23:12:43 +00009924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009925$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009926if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009927 $as_echo_n "(cached) " >&6
9928else
9929 ac_cv_sys_largefile_CC=no
9930 if test "$GCC" != yes; then
9931 ac_save_CC=$CC
9932 while :; do
9933 # IRIX 6.2 and later do not support large files by default,
9934 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009936/* end confdefs.h. */
9937#include <sys/types.h>
9938 /* Check that off_t can represent 2**63 - 1 correctly.
9939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9940 since some C++ compilers masquerading as C compilers
9941 incorrectly reject 9223372036854775807. */
9942#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9944 && LARGE_OFF_T % 2147483647 == 1)
9945 ? 1 : -1];
9946int
9947main ()
9948{
9949
9950 ;
9951 return 0;
9952}
9953_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009954 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009955 break
cristy3ed852e2009-09-05 21:47:34 +00009956fi
cristy3ed852e2009-09-05 21:47:34 +00009957rm -f core conftest.err conftest.$ac_objext
9958 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009959 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009960 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009961fi
cristy3ed852e2009-09-05 21:47:34 +00009962rm -f core conftest.err conftest.$ac_objext
9963 break
9964 done
9965 CC=$ac_save_CC
9966 rm -f conftest.$ac_ext
9967 fi
9968fi
cristy8b350f62009-11-15 23:12:43 +00009969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009970$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9971 if test "$ac_cv_sys_largefile_CC" != no; then
9972 CC=$CC$ac_cv_sys_largefile_CC
9973 fi
9974
cristy8b350f62009-11-15 23:12:43 +00009975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009976$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009977if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009978 $as_echo_n "(cached) " >&6
9979else
9980 while :; do
cristy8b350f62009-11-15 23:12:43 +00009981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009982/* end confdefs.h. */
9983#include <sys/types.h>
9984 /* Check that off_t can represent 2**63 - 1 correctly.
9985 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9986 since some C++ compilers masquerading as C compilers
9987 incorrectly reject 9223372036854775807. */
9988#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9989 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9990 && LARGE_OFF_T % 2147483647 == 1)
9991 ? 1 : -1];
9992int
9993main ()
9994{
9995
9996 ;
9997 return 0;
9998}
9999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010001 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010002fi
cristy3ed852e2009-09-05 21:47:34 +000010003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010005/* end confdefs.h. */
10006#define _FILE_OFFSET_BITS 64
10007#include <sys/types.h>
10008 /* Check that off_t can represent 2**63 - 1 correctly.
10009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10010 since some C++ compilers masquerading as C compilers
10011 incorrectly reject 9223372036854775807. */
10012#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10014 && LARGE_OFF_T % 2147483647 == 1)
10015 ? 1 : -1];
10016int
10017main ()
10018{
10019
10020 ;
10021 return 0;
10022}
10023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010024if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010025 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010026fi
cristy3ed852e2009-09-05 21:47:34 +000010027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 ac_cv_sys_file_offset_bits=unknown
10029 break
10030done
10031fi
cristy8b350f62009-11-15 23:12:43 +000010032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010033$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10034case $ac_cv_sys_file_offset_bits in #(
10035 no | unknown) ;;
10036 *)
10037cat >>confdefs.h <<_ACEOF
10038#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10039_ACEOF
10040;;
10041esac
10042rm -rf conftest*
10043 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010045$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010046if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010047 $as_echo_n "(cached) " >&6
10048else
10049 while :; do
cristy8b350f62009-11-15 23:12:43 +000010050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010051/* end confdefs.h. */
10052#include <sys/types.h>
10053 /* Check that off_t can represent 2**63 - 1 correctly.
10054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10055 since some C++ compilers masquerading as C compilers
10056 incorrectly reject 9223372036854775807. */
10057#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10059 && LARGE_OFF_T % 2147483647 == 1)
10060 ? 1 : -1];
10061int
10062main ()
10063{
10064
10065 ;
10066 return 0;
10067}
10068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010069if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010070 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010071fi
cristy3ed852e2009-09-05 21:47:34 +000010072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010074/* end confdefs.h. */
10075#define _LARGE_FILES 1
10076#include <sys/types.h>
10077 /* Check that off_t can represent 2**63 - 1 correctly.
10078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10079 since some C++ compilers masquerading as C compilers
10080 incorrectly reject 9223372036854775807. */
10081#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10083 && LARGE_OFF_T % 2147483647 == 1)
10084 ? 1 : -1];
10085int
10086main ()
10087{
10088
10089 ;
10090 return 0;
10091}
10092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010094 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010095fi
cristy3ed852e2009-09-05 21:47:34 +000010096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097 ac_cv_sys_large_files=unknown
10098 break
10099done
10100fi
cristy8b350f62009-11-15 23:12:43 +000010101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010102$as_echo "$ac_cv_sys_large_files" >&6; }
10103case $ac_cv_sys_large_files in #(
10104 no | unknown) ;;
10105 *)
10106cat >>confdefs.h <<_ACEOF
10107#define _LARGE_FILES $ac_cv_sys_large_files
10108_ACEOF
10109;;
10110esac
10111rm -rf conftest*
10112 fi
10113fi
10114
cristy8b350f62009-11-15 23:12:43 +000010115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010116$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010117if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010118 $as_echo_n "(cached) " >&6
10119else
10120 while :; do
cristy8b350f62009-11-15 23:12:43 +000010121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010122/* end confdefs.h. */
10123#include <sys/types.h> /* for off_t */
10124 #include <stdio.h>
10125int
10126main ()
10127{
10128int (*fp) (FILE *, off_t, int) = fseeko;
10129 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10130 ;
10131 return 0;
10132}
10133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010134if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010135 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010136fi
cristy8b350f62009-11-15 23:12:43 +000010137rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010140/* end confdefs.h. */
10141#define _LARGEFILE_SOURCE 1
10142#include <sys/types.h> /* for off_t */
10143 #include <stdio.h>
10144int
10145main ()
10146{
10147int (*fp) (FILE *, off_t, int) = fseeko;
10148 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10149 ;
10150 return 0;
10151}
10152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010153if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010154 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010155fi
cristy8b350f62009-11-15 23:12:43 +000010156rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010158 ac_cv_sys_largefile_source=unknown
10159 break
10160done
10161fi
cristy8b350f62009-11-15 23:12:43 +000010162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010163$as_echo "$ac_cv_sys_largefile_source" >&6; }
10164case $ac_cv_sys_largefile_source in #(
10165 no | unknown) ;;
10166 *)
10167cat >>confdefs.h <<_ACEOF
10168#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10169_ACEOF
10170;;
10171esac
10172rm -rf conftest*
10173
10174# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10175# in glibc 2.1.3, but that breaks too many other things.
10176# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10177if test $ac_cv_sys_largefile_source != unknown; then
10178
cristy8b350f62009-11-15 23:12:43 +000010179$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010180
10181fi
10182
10183LFS_CPPFLAGS=''
10184if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010185 case $ac_cv_sys_file_offset_bits in
10186 no)
10187 # nothing to do here as the host supports LFS fine
10188 ;;
10189 unknown)
cristy8b350f62009-11-15 23:12:43 +000010190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010191$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010192 if test "$cross_compiling" = yes; then :
10193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010195as_fn_error $? "cannot run test program while cross compiling
10196See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010197else
cristy8b350f62009-11-15 23:12:43 +000010198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010200#include <unistd.h>
10201 main () {
10202 exit(!(sizeof(off_t) == 8));
10203 }
cristyda16f162011-02-19 23:52:17 +000010204int
10205main ()
10206{
10207
10208 ;
10209 return 0;
10210}
cristy3ed852e2009-09-05 21:47:34 +000010211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010212if ac_fn_c_try_run "$LINENO"; then :
10213 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010214
cristy09b53e12011-10-14 12:47:22 +000010215 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10216$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010217else
cristy09b53e12011-10-14 12:47:22 +000010218 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10219$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010220fi
cristy8b350f62009-11-15 23:12:43 +000010221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10222 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010223fi
10224
cristyc1e0cc12011-09-21 16:41:16 +000010225 ;;
10226 *)
10227 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10228 ;;
10229 esac
cristy3ed852e2009-09-05 21:47:34 +000010230 if test "$ac_cv_sys_large_files" != 'no'; then
10231 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10232 fi
10233 if test "$ac_cv_sys_largefile_source" != 'no'; then
10234 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10235 fi
10236fi
10237
10238
cristy3ed852e2009-09-05 21:47:34 +000010239# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010240enable_dlopen=yes
10241
10242
10243
10244case `pwd` in
10245 *\ * | *\ *)
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10247$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10248esac
10249
10250
10251
cristy99bd5232011-12-07 14:38:20 +000010252macro_version='2.4.2'
10253macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267ltmain="$ac_aux_dir/ltmain.sh"
10268
cristy0c60a692010-11-04 01:09:47 +000010269# Backslashify metacharacters that are still active within
10270# double-quoted strings.
10271sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10272
10273# Same as above, but do not quote variable references.
10274double_quote_subst='s/\(["`\\]\)/\\\1/g'
10275
10276# Sed substitution to delay expansion of an escaped shell variable in a
10277# double_quote_subst'ed string.
10278delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10279
10280# Sed substitution to delay expansion of an escaped single quote.
10281delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10282
10283# Sed substitution to avoid accidental globbing in evaled expressions
10284no_glob_subst='s/\*/\\\*/g'
10285
cristy73bd4a52010-10-05 11:24:23 +000010286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10287$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010288if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010289 $as_echo_n "(cached) " >&6
10290else
10291 if test -n "$NM"; then
10292 # Let the user override the test.
10293 lt_cv_path_NM="$NM"
10294else
10295 lt_nm_to_check="${ac_tool_prefix}nm"
10296 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10297 lt_nm_to_check="$lt_nm_to_check nm"
10298 fi
10299 for lt_tmp_nm in $lt_nm_to_check; do
10300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10301 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10302 IFS="$lt_save_ifs"
10303 test -z "$ac_dir" && ac_dir=.
10304 tmp_nm="$ac_dir/$lt_tmp_nm"
10305 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10306 # Check to see if the nm accepts a BSD-compat flag.
10307 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10308 # nm: unknown option "B" ignored
10309 # Tru64's nm complains that /dev/null is an invalid object file
10310 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10311 */dev/null* | *'Invalid file or object type'*)
10312 lt_cv_path_NM="$tmp_nm -B"
10313 break
10314 ;;
10315 *)
10316 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10317 */dev/null*)
10318 lt_cv_path_NM="$tmp_nm -p"
10319 break
10320 ;;
10321 *)
10322 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10323 continue # so that we can try to find one that supports BSD flags
10324 ;;
10325 esac
10326 ;;
10327 esac
10328 fi
10329 done
10330 IFS="$lt_save_ifs"
10331 done
10332 : ${lt_cv_path_NM=no}
10333fi
10334fi
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10336$as_echo "$lt_cv_path_NM" >&6; }
10337if test "$lt_cv_path_NM" != "no"; then
10338 NM="$lt_cv_path_NM"
10339else
10340 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010341 if test -n "$DUMPBIN"; then :
10342 # Let the user override the test.
10343 else
10344 if test -n "$ac_tool_prefix"; then
10345 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010346 do
10347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10348set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010351if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010352 $as_echo_n "(cached) " >&6
10353else
10354 if test -n "$DUMPBIN"; then
10355 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10356else
10357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in $PATH
10359do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10364 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10367 fi
10368done
10369 done
10370IFS=$as_save_IFS
10371
10372fi
10373fi
10374DUMPBIN=$ac_cv_prog_DUMPBIN
10375if test -n "$DUMPBIN"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10377$as_echo "$DUMPBIN" >&6; }
10378else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380$as_echo "no" >&6; }
10381fi
10382
10383
10384 test -n "$DUMPBIN" && break
10385 done
10386fi
10387if test -z "$DUMPBIN"; then
10388 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010389 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010390do
10391 # Extract the first word of "$ac_prog", so it can be a program name with args.
10392set dummy $ac_prog; ac_word=$2
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010395if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010396 $as_echo_n "(cached) " >&6
10397else
10398 if test -n "$ac_ct_DUMPBIN"; then
10399 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10408 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10411 fi
10412done
10413 done
10414IFS=$as_save_IFS
10415
10416fi
10417fi
10418ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10419if test -n "$ac_ct_DUMPBIN"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10421$as_echo "$ac_ct_DUMPBIN" >&6; }
10422else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
10425fi
10426
10427
10428 test -n "$ac_ct_DUMPBIN" && break
10429done
10430
10431 if test "x$ac_ct_DUMPBIN" = x; then
10432 DUMPBIN=":"
10433 else
10434 case $cross_compiling:$ac_tool_warned in
10435yes:)
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10438ac_tool_warned=yes ;;
10439esac
10440 DUMPBIN=$ac_ct_DUMPBIN
10441 fi
10442fi
10443
cristy0c60a692010-11-04 01:09:47 +000010444 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10445 *COFF*)
10446 DUMPBIN="$DUMPBIN -symbols"
10447 ;;
10448 *)
10449 DUMPBIN=:
10450 ;;
10451 esac
10452 fi
cristy73bd4a52010-10-05 11:24:23 +000010453
10454 if test "$DUMPBIN" != ":"; then
10455 NM="$DUMPBIN"
10456 fi
10457fi
10458test -z "$NM" && NM=nm
10459
10460
10461
10462
10463
10464
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10466$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010467if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010468 $as_echo_n "(cached) " >&6
10469else
10470 lt_cv_nm_interface="BSD nm"
10471 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010472 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010473 (eval "$ac_compile" 2>conftest.err)
10474 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010475 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010476 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10477 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010478 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010479 cat conftest.out >&5
10480 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10481 lt_cv_nm_interface="MS dumpbin"
10482 fi
10483 rm -f conftest*
10484fi
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10486$as_echo "$lt_cv_nm_interface" >&6; }
10487
10488# find the maximum length of command line arguments
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10490$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010491if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010492 $as_echo_n "(cached) " >&6
10493else
10494 i=0
10495 teststring="ABCD"
10496
10497 case $build_os in
10498 msdosdjgpp*)
10499 # On DJGPP, this test can blow up pretty badly due to problems in libc
10500 # (any single argument exceeding 2000 bytes causes a buffer overrun
10501 # during glob expansion). Even if it were fixed, the result of this
10502 # check would be larger than it should be.
10503 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10504 ;;
10505
10506 gnu*)
10507 # Under GNU Hurd, this test is not required because there is
10508 # no limit to the length of command line arguments.
10509 # Libtool will interpret -1 as no limit whatsoever
10510 lt_cv_sys_max_cmd_len=-1;
10511 ;;
10512
10513 cygwin* | mingw* | cegcc*)
10514 # On Win9x/ME, this test blows up -- it succeeds, but takes
10515 # about 5 minutes as the teststring grows exponentially.
10516 # Worse, since 9x/ME are not pre-emptively multitasking,
10517 # you end up with a "frozen" computer, even though with patience
10518 # the test eventually succeeds (with a max line length of 256k).
10519 # Instead, let's just punt: use the minimum linelength reported by
10520 # all of the supported platforms: 8192 (on NT/2K/XP).
10521 lt_cv_sys_max_cmd_len=8192;
10522 ;;
10523
cristy0c60a692010-11-04 01:09:47 +000010524 mint*)
10525 # On MiNT this can take a long time and run out of memory.
10526 lt_cv_sys_max_cmd_len=8192;
10527 ;;
10528
cristy73bd4a52010-10-05 11:24:23 +000010529 amigaos*)
10530 # On AmigaOS with pdksh, this test takes hours, literally.
10531 # So we just punt and use a minimum line length of 8192.
10532 lt_cv_sys_max_cmd_len=8192;
10533 ;;
10534
10535 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10536 # This has been around since 386BSD, at least. Likely further.
10537 if test -x /sbin/sysctl; then
10538 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10539 elif test -x /usr/sbin/sysctl; then
10540 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10541 else
10542 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10543 fi
10544 # And add a safety zone
10545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10547 ;;
10548
10549 interix*)
10550 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10551 lt_cv_sys_max_cmd_len=196608
10552 ;;
10553
cristy99bd5232011-12-07 14:38:20 +000010554 os2*)
10555 # The test takes a long time on OS/2.
10556 lt_cv_sys_max_cmd_len=8192
10557 ;;
10558
cristy73bd4a52010-10-05 11:24:23 +000010559 osf*)
10560 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10561 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10562 # nice to cause kernel panics so lets avoid the loop below.
10563 # First set a reasonable default.
10564 lt_cv_sys_max_cmd_len=16384
10565 #
10566 if test -x /sbin/sysconfig; then
10567 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10568 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10569 esac
10570 fi
10571 ;;
10572 sco3.2v5*)
10573 lt_cv_sys_max_cmd_len=102400
10574 ;;
10575 sysv5* | sco5v6* | sysv4.2uw2*)
10576 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10577 if test -n "$kargmax"; then
10578 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10579 else
10580 lt_cv_sys_max_cmd_len=32768
10581 fi
10582 ;;
10583 *)
10584 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10585 if test -n "$lt_cv_sys_max_cmd_len"; then
10586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10588 else
10589 # Make teststring a little bigger before we do anything with it.
10590 # a 1K string should be a reasonable start.
10591 for i in 1 2 3 4 5 6 7 8 ; do
10592 teststring=$teststring$teststring
10593 done
10594 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10595 # If test is not a shell built-in, we'll probably end up computing a
10596 # maximum length that is only half of the actual maximum length, but
10597 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010598 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010599 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010600 test $i != 17 # 1/2 MB should be enough
10601 do
10602 i=`expr $i + 1`
10603 teststring=$teststring$teststring
10604 done
10605 # Only check the string length outside the loop.
10606 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10607 teststring=
10608 # Add a significant safety factor because C++ compilers can tack on
10609 # massive amounts of additional arguments before passing them to the
10610 # linker. It appears as though 1/2 is a usable value.
10611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10612 fi
10613 ;;
10614 esac
10615
10616fi
10617
10618if test -n $lt_cv_sys_max_cmd_len ; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10620$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10621else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10623$as_echo "none" >&6; }
10624fi
10625max_cmd_len=$lt_cv_sys_max_cmd_len
10626
10627
10628
10629
10630
10631
10632: ${CP="cp -f"}
10633: ${MV="mv -f"}
10634: ${RM="rm -f"}
10635
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10637$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10638# Try some XSI features
10639xsi_shell=no
10640( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010641 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10642 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010643 && eval 'test $(( 1 + 1 )) -eq 2 \
10644 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10645 && xsi_shell=yes
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10647$as_echo "$xsi_shell" >&6; }
10648
10649
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10651$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10652lt_shell_append=no
10653( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10654 >/dev/null 2>&1 \
10655 && lt_shell_append=yes
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10657$as_echo "$lt_shell_append" >&6; }
10658
10659
10660if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10661 lt_unset=unset
10662else
10663 lt_unset=false
10664fi
10665
10666
10667
10668
10669
10670# test EBCDIC or ASCII
10671case `echo X|tr X '\101'` in
10672 A) # ASCII based system
10673 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10674 lt_SP2NL='tr \040 \012'
10675 lt_NL2SP='tr \015\012 \040\040'
10676 ;;
10677 *) # EBCDIC based system
10678 lt_SP2NL='tr \100 \n'
10679 lt_NL2SP='tr \r\n \100\100'
10680 ;;
10681esac
10682
10683
10684
10685
10686
10687
10688
10689
10690
cristyda16f162011-02-19 23:52:17 +000010691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10692$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10693if ${lt_cv_to_host_file_cmd+:} false; then :
10694 $as_echo_n "(cached) " >&6
10695else
10696 case $host in
10697 *-*-mingw* )
10698 case $build in
10699 *-*-mingw* ) # actually msys
10700 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10701 ;;
10702 *-*-cygwin* )
10703 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10704 ;;
10705 * ) # otherwise, assume *nix
10706 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10707 ;;
10708 esac
10709 ;;
10710 *-*-cygwin* )
10711 case $build in
10712 *-*-mingw* ) # actually msys
10713 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10714 ;;
10715 *-*-cygwin* )
10716 lt_cv_to_host_file_cmd=func_convert_file_noop
10717 ;;
10718 * ) # otherwise, assume *nix
10719 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10720 ;;
10721 esac
10722 ;;
10723 * ) # unhandled hosts (and "normal" native builds)
10724 lt_cv_to_host_file_cmd=func_convert_file_noop
10725 ;;
10726esac
10727
10728fi
10729
10730to_host_file_cmd=$lt_cv_to_host_file_cmd
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10732$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10733
10734
10735
10736
10737
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10739$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10740if ${lt_cv_to_tool_file_cmd+:} false; then :
10741 $as_echo_n "(cached) " >&6
10742else
10743 #assume ordinary cross tools, or native build.
10744lt_cv_to_tool_file_cmd=func_convert_file_noop
10745case $host in
10746 *-*-mingw* )
10747 case $build in
10748 *-*-mingw* ) # actually msys
10749 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10750 ;;
10751 esac
10752 ;;
10753esac
10754
10755fi
10756
10757to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10759$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10760
10761
10762
10763
10764
cristy73bd4a52010-10-05 11:24:23 +000010765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10766$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010767if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010768 $as_echo_n "(cached) " >&6
10769else
10770 lt_cv_ld_reload_flag='-r'
10771fi
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10773$as_echo "$lt_cv_ld_reload_flag" >&6; }
10774reload_flag=$lt_cv_ld_reload_flag
10775case $reload_flag in
10776"" | " "*) ;;
10777*) reload_flag=" $reload_flag" ;;
10778esac
10779reload_cmds='$LD$reload_flag -o $output$reload_objs'
10780case $host_os in
cristyda16f162011-02-19 23:52:17 +000010781 cygwin* | mingw* | pw32* | cegcc*)
10782 if test "$GCC" != yes; then
10783 reload_cmds=false
10784 fi
10785 ;;
cristy73bd4a52010-10-05 11:24:23 +000010786 darwin*)
10787 if test "$GCC" = yes; then
10788 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10789 else
10790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10791 fi
10792 ;;
10793esac
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803if test -n "$ac_tool_prefix"; then
10804 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10805set dummy ${ac_tool_prefix}objdump; ac_word=$2
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010808if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010809 $as_echo_n "(cached) " >&6
10810else
10811 if test -n "$OBJDUMP"; then
10812 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10813else
10814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815for as_dir in $PATH
10816do
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
10820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10821 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10824 fi
10825done
10826 done
10827IFS=$as_save_IFS
10828
10829fi
10830fi
10831OBJDUMP=$ac_cv_prog_OBJDUMP
10832if test -n "$OBJDUMP"; then
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10834$as_echo "$OBJDUMP" >&6; }
10835else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837$as_echo "no" >&6; }
10838fi
10839
10840
10841fi
10842if test -z "$ac_cv_prog_OBJDUMP"; then
10843 ac_ct_OBJDUMP=$OBJDUMP
10844 # Extract the first word of "objdump", so it can be a program name with args.
10845set dummy objdump; ac_word=$2
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10847$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010848if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010849 $as_echo_n "(cached) " >&6
10850else
10851 if test -n "$ac_ct_OBJDUMP"; then
10852 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10853else
10854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855for as_dir in $PATH
10856do
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10861 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10864 fi
10865done
10866 done
10867IFS=$as_save_IFS
10868
10869fi
10870fi
10871ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10872if test -n "$ac_ct_OBJDUMP"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10874$as_echo "$ac_ct_OBJDUMP" >&6; }
10875else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877$as_echo "no" >&6; }
10878fi
10879
10880 if test "x$ac_ct_OBJDUMP" = x; then
10881 OBJDUMP="false"
10882 else
10883 case $cross_compiling:$ac_tool_warned in
10884yes:)
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10887ac_tool_warned=yes ;;
10888esac
10889 OBJDUMP=$ac_ct_OBJDUMP
10890 fi
10891else
10892 OBJDUMP="$ac_cv_prog_OBJDUMP"
10893fi
10894
10895test -z "$OBJDUMP" && OBJDUMP=objdump
10896
10897
10898
10899
10900
10901
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10903$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010904if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010905 $as_echo_n "(cached) " >&6
10906else
10907 lt_cv_file_magic_cmd='$MAGIC_CMD'
10908lt_cv_file_magic_test_file=
10909lt_cv_deplibs_check_method='unknown'
10910# Need to set the preceding variable on all platforms that support
10911# interlibrary dependencies.
10912# 'none' -- dependencies not supported.
10913# `unknown' -- same as none, but documents that we really don't know.
10914# 'pass_all' -- all dependencies passed with no checks.
10915# 'test_compile' -- check by making test program.
10916# 'file_magic [[regex]]' -- check by looking for files in library path
10917# which responds to the $file_magic_cmd with a given extended regex.
10918# If you have `file' or equivalent on your system and you're not sure
10919# whether `pass_all' will *always* work, you probably want this one.
10920
10921case $host_os in
10922aix[4-9]*)
10923 lt_cv_deplibs_check_method=pass_all
10924 ;;
10925
10926beos*)
10927 lt_cv_deplibs_check_method=pass_all
10928 ;;
10929
10930bsdi[45]*)
10931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10932 lt_cv_file_magic_cmd='/usr/bin/file -L'
10933 lt_cv_file_magic_test_file=/shlib/libc.so
10934 ;;
10935
10936cygwin*)
10937 # func_win32_libid is a shell function defined in ltmain.sh
10938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10939 lt_cv_file_magic_cmd='func_win32_libid'
10940 ;;
10941
10942mingw* | pw32*)
10943 # Base MSYS/MinGW do not provide the 'file' command needed by
10944 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10945 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010946 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10947 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10949 lt_cv_file_magic_cmd='func_win32_libid'
10950 else
cristy0c60a692010-11-04 01:09:47 +000010951 # Keep this pattern in sync with the one in func_win32_libid.
10952 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 +000010953 lt_cv_file_magic_cmd='$OBJDUMP -f'
10954 fi
10955 ;;
10956
cristy0c60a692010-11-04 01:09:47 +000010957cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010958 # use the weaker test based on 'objdump'. See mingw*.
10959 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10960 lt_cv_file_magic_cmd='$OBJDUMP -f'
10961 ;;
10962
10963darwin* | rhapsody*)
10964 lt_cv_deplibs_check_method=pass_all
10965 ;;
10966
10967freebsd* | dragonfly*)
10968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10969 case $host_cpu in
10970 i*86 )
10971 # Not sure whether the presence of OpenBSD here was a mistake.
10972 # Let's accept both of them until this is cleared up.
10973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10974 lt_cv_file_magic_cmd=/usr/bin/file
10975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10976 ;;
10977 esac
10978 else
10979 lt_cv_deplibs_check_method=pass_all
10980 fi
10981 ;;
10982
10983gnu*)
10984 lt_cv_deplibs_check_method=pass_all
10985 ;;
10986
cristy0c60a692010-11-04 01:09:47 +000010987haiku*)
10988 lt_cv_deplibs_check_method=pass_all
10989 ;;
10990
cristy73bd4a52010-10-05 11:24:23 +000010991hpux10.20* | hpux11*)
10992 lt_cv_file_magic_cmd=/usr/bin/file
10993 case $host_cpu in
10994 ia64*)
10995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10996 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10997 ;;
10998 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010999 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 +000011000 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11001 ;;
11002 *)
cristy0c60a692010-11-04 01:09:47 +000011003 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 +000011004 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11005 ;;
11006 esac
11007 ;;
11008
11009interix[3-9]*)
11010 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11012 ;;
11013
11014irix5* | irix6* | nonstopux*)
11015 case $LD in
11016 *-32|*"-32 ") libmagic=32-bit;;
11017 *-n32|*"-n32 ") libmagic=N32;;
11018 *-64|*"-64 ") libmagic=64-bit;;
11019 *) libmagic=never-match;;
11020 esac
11021 lt_cv_deplibs_check_method=pass_all
11022 ;;
11023
cristy99bd5232011-12-07 14:38:20 +000011024# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011025linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011026 lt_cv_deplibs_check_method=pass_all
11027 ;;
11028
11029netbsd*)
11030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11032 else
11033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11034 fi
11035 ;;
11036
11037newos6*)
11038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11039 lt_cv_file_magic_cmd=/usr/bin/file
11040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11041 ;;
11042
11043*nto* | *qnx*)
11044 lt_cv_deplibs_check_method=pass_all
11045 ;;
11046
11047openbsd*)
11048 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11050 else
11051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11052 fi
11053 ;;
11054
11055osf3* | osf4* | osf5*)
11056 lt_cv_deplibs_check_method=pass_all
11057 ;;
11058
11059rdos*)
11060 lt_cv_deplibs_check_method=pass_all
11061 ;;
11062
11063solaris*)
11064 lt_cv_deplibs_check_method=pass_all
11065 ;;
11066
11067sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11068 lt_cv_deplibs_check_method=pass_all
11069 ;;
11070
11071sysv4 | sysv4.3*)
11072 case $host_vendor in
11073 motorola)
11074 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]'
11075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11076 ;;
11077 ncr)
11078 lt_cv_deplibs_check_method=pass_all
11079 ;;
11080 sequent)
11081 lt_cv_file_magic_cmd='/bin/file'
11082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11083 ;;
11084 sni)
11085 lt_cv_file_magic_cmd='/bin/file'
11086 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11087 lt_cv_file_magic_test_file=/lib/libc.so
11088 ;;
11089 siemens)
11090 lt_cv_deplibs_check_method=pass_all
11091 ;;
11092 pc)
11093 lt_cv_deplibs_check_method=pass_all
11094 ;;
11095 esac
11096 ;;
11097
11098tpf*)
11099 lt_cv_deplibs_check_method=pass_all
11100 ;;
11101esac
11102
11103fi
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11105$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011106
11107file_magic_glob=
11108want_nocaseglob=no
11109if test "$build" = "$host"; then
11110 case $host_os in
11111 mingw* | pw32*)
11112 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11113 want_nocaseglob=yes
11114 else
11115 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11116 fi
11117 ;;
11118 esac
11119fi
11120
cristy73bd4a52010-10-05 11:24:23 +000011121file_magic_cmd=$lt_cv_file_magic_cmd
11122deplibs_check_method=$lt_cv_deplibs_check_method
11123test -z "$deplibs_check_method" && deplibs_check_method=unknown
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
cristyda16f162011-02-19 23:52:17 +000011136
11137
11138
11139
11140
11141
11142
11143
11144
11145
cristy73bd4a52010-10-05 11:24:23 +000011146if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011147 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11148set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011151if ${ac_cv_prog_DLLTOOL+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153else
11154 if test -n "$DLLTOOL"; then
11155 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11156else
11157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158for as_dir in $PATH
11159do
11160 IFS=$as_save_IFS
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166 break 2
11167 fi
11168done
11169 done
11170IFS=$as_save_IFS
11171
11172fi
11173fi
11174DLLTOOL=$ac_cv_prog_DLLTOOL
11175if test -n "$DLLTOOL"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11177$as_echo "$DLLTOOL" >&6; }
11178else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180$as_echo "no" >&6; }
11181fi
11182
11183
11184fi
11185if test -z "$ac_cv_prog_DLLTOOL"; then
11186 ac_ct_DLLTOOL=$DLLTOOL
11187 # Extract the first word of "dlltool", so it can be a program name with args.
11188set dummy dlltool; ac_word=$2
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190$as_echo_n "checking for $ac_word... " >&6; }
11191if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193else
11194 if test -n "$ac_ct_DLLTOOL"; then
11195 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11196else
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11204 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208done
11209 done
11210IFS=$as_save_IFS
11211
11212fi
11213fi
11214ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11215if test -n "$ac_ct_DLLTOOL"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11217$as_echo "$ac_ct_DLLTOOL" >&6; }
11218else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220$as_echo "no" >&6; }
11221fi
11222
11223 if test "x$ac_ct_DLLTOOL" = x; then
11224 DLLTOOL="false"
11225 else
11226 case $cross_compiling:$ac_tool_warned in
11227yes:)
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11230ac_tool_warned=yes ;;
11231esac
11232 DLLTOOL=$ac_ct_DLLTOOL
11233 fi
11234else
11235 DLLTOOL="$ac_cv_prog_DLLTOOL"
11236fi
11237
11238test -z "$DLLTOOL" && DLLTOOL=dlltool
11239
11240
11241
11242
11243
11244
11245
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11247$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11248if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250else
11251 lt_cv_sharedlib_from_linklib_cmd='unknown'
11252
11253case $host_os in
11254cygwin* | mingw* | pw32* | cegcc*)
11255 # two different shell functions defined in ltmain.sh
11256 # decide which to use based on capabilities of $DLLTOOL
11257 case `$DLLTOOL --help 2>&1` in
11258 *--identify-strict*)
11259 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11260 ;;
11261 *)
11262 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11263 ;;
11264 esac
11265 ;;
11266*)
11267 # fallback: assume linklib IS sharedlib
11268 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11269 ;;
11270esac
11271
11272fi
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11274$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11275sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11276test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11277
11278
11279
11280
11281
11282
11283
11284if test -n "$ac_tool_prefix"; then
11285 for ac_prog in ar
11286 do
11287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290$as_echo_n "checking for $ac_word... " >&6; }
11291if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011292 $as_echo_n "(cached) " >&6
11293else
11294 if test -n "$AR"; then
11295 ac_cv_prog_AR="$AR" # Let the user override the test.
11296else
11297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298for as_dir in $PATH
11299do
11300 IFS=$as_save_IFS
11301 test -z "$as_dir" && as_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 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 +000011304 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 break 2
11307 fi
11308done
11309 done
11310IFS=$as_save_IFS
11311
11312fi
11313fi
11314AR=$ac_cv_prog_AR
11315if test -n "$AR"; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11317$as_echo "$AR" >&6; }
11318else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
11321fi
11322
11323
cristyda16f162011-02-19 23:52:17 +000011324 test -n "$AR" && break
11325 done
cristy73bd4a52010-10-05 11:24:23 +000011326fi
cristyda16f162011-02-19 23:52:17 +000011327if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011328 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011329 for ac_prog in ar
11330do
11331 # Extract the first word of "$ac_prog", so it can be a program name with args.
11332set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011335if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011336 $as_echo_n "(cached) " >&6
11337else
11338 if test -n "$ac_ct_AR"; then
11339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11340else
11341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342for as_dir in $PATH
11343do
11344 IFS=$as_save_IFS
11345 test -z "$as_dir" && as_dir=.
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 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 +000011348 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350 break 2
11351 fi
11352done
11353 done
11354IFS=$as_save_IFS
11355
11356fi
11357fi
11358ac_ct_AR=$ac_cv_prog_ac_ct_AR
11359if test -n "$ac_ct_AR"; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11361$as_echo "$ac_ct_AR" >&6; }
11362else
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364$as_echo "no" >&6; }
11365fi
11366
cristyda16f162011-02-19 23:52:17 +000011367
11368 test -n "$ac_ct_AR" && break
11369done
11370
cristy73bd4a52010-10-05 11:24:23 +000011371 if test "x$ac_ct_AR" = x; then
11372 AR="false"
11373 else
11374 case $cross_compiling:$ac_tool_warned in
11375yes:)
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11378ac_tool_warned=yes ;;
11379esac
11380 AR=$ac_ct_AR
11381 fi
cristy73bd4a52010-10-05 11:24:23 +000011382fi
11383
cristyda16f162011-02-19 23:52:17 +000011384: ${AR=ar}
11385: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
cristyda16f162011-02-19 23:52:17 +000011397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11398$as_echo_n "checking for archiver @FILE support... " >&6; }
11399if ${lt_cv_ar_at_file+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401else
11402 lt_cv_ar_at_file=no
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404/* end confdefs.h. */
11405
11406int
11407main ()
11408{
11409
11410 ;
11411 return 0;
11412}
11413_ACEOF
11414if ac_fn_c_try_compile "$LINENO"; then :
11415 echo conftest.$ac_objext > conftest.lst
11416 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11418 (eval $lt_ar_try) 2>&5
11419 ac_status=$?
11420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421 test $ac_status = 0; }
11422 if test "$ac_status" -eq 0; then
11423 # Ensure the archiver fails upon bogus file names.
11424 rm -f conftest.$ac_objext libconftest.a
11425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11426 (eval $lt_ar_try) 2>&5
11427 ac_status=$?
11428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11429 test $ac_status = 0; }
11430 if test "$ac_status" -ne 0; then
11431 lt_cv_ar_at_file=@
11432 fi
11433 fi
11434 rm -f conftest.* libconftest.a
11435
11436fi
11437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438
11439fi
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11441$as_echo "$lt_cv_ar_at_file" >&6; }
11442
11443if test "x$lt_cv_ar_at_file" = xno; then
11444 archiver_list_spec=
11445else
11446 archiver_list_spec=$lt_cv_ar_at_file
11447fi
11448
11449
11450
11451
11452
11453
11454
cristy73bd4a52010-10-05 11:24:23 +000011455if test -n "$ac_tool_prefix"; then
11456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11457set dummy ${ac_tool_prefix}strip; ac_word=$2
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011460if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011461 $as_echo_n "(cached) " >&6
11462else
11463 if test -n "$STRIP"; then
11464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11465else
11466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477done
11478 done
11479IFS=$as_save_IFS
11480
11481fi
11482fi
11483STRIP=$ac_cv_prog_STRIP
11484if test -n "$STRIP"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11486$as_echo "$STRIP" >&6; }
11487else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489$as_echo "no" >&6; }
11490fi
11491
11492
11493fi
11494if test -z "$ac_cv_prog_STRIP"; then
11495 ac_ct_STRIP=$STRIP
11496 # Extract the first word of "strip", so it can be a program name with args.
11497set dummy strip; ac_word=$2
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011500if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011501 $as_echo_n "(cached) " >&6
11502else
11503 if test -n "$ac_ct_STRIP"; then
11504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11505else
11506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507for as_dir in $PATH
11508do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513 ac_cv_prog_ac_ct_STRIP="strip"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517done
11518 done
11519IFS=$as_save_IFS
11520
11521fi
11522fi
11523ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11524if test -n "$ac_ct_STRIP"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11526$as_echo "$ac_ct_STRIP" >&6; }
11527else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
11530fi
11531
11532 if test "x$ac_ct_STRIP" = x; then
11533 STRIP=":"
11534 else
11535 case $cross_compiling:$ac_tool_warned in
11536yes:)
11537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11539ac_tool_warned=yes ;;
11540esac
11541 STRIP=$ac_ct_STRIP
11542 fi
11543else
11544 STRIP="$ac_cv_prog_STRIP"
11545fi
11546
11547test -z "$STRIP" && STRIP=:
11548
11549
11550
11551
11552
11553
11554if test -n "$ac_tool_prefix"; then
11555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11556set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011559if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011560 $as_echo_n "(cached) " >&6
11561else
11562 if test -n "$RANLIB"; then
11563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11564else
11565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566for as_dir in $PATH
11567do
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11575 fi
11576done
11577 done
11578IFS=$as_save_IFS
11579
11580fi
11581fi
11582RANLIB=$ac_cv_prog_RANLIB
11583if test -n "$RANLIB"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11585$as_echo "$RANLIB" >&6; }
11586else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588$as_echo "no" >&6; }
11589fi
11590
11591
11592fi
11593if test -z "$ac_cv_prog_RANLIB"; then
11594 ac_ct_RANLIB=$RANLIB
11595 # Extract the first word of "ranlib", so it can be a program name with args.
11596set dummy ranlib; ac_word=$2
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011599if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011600 $as_echo_n "(cached) " >&6
11601else
11602 if test -n "$ac_ct_RANLIB"; then
11603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11604else
11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11612 ac_cv_prog_ac_ct_RANLIB="ranlib"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11615 fi
11616done
11617 done
11618IFS=$as_save_IFS
11619
11620fi
11621fi
11622ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11623if test -n "$ac_ct_RANLIB"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11625$as_echo "$ac_ct_RANLIB" >&6; }
11626else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628$as_echo "no" >&6; }
11629fi
11630
11631 if test "x$ac_ct_RANLIB" = x; then
11632 RANLIB=":"
11633 else
11634 case $cross_compiling:$ac_tool_warned in
11635yes:)
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11638ac_tool_warned=yes ;;
11639esac
11640 RANLIB=$ac_ct_RANLIB
11641 fi
11642else
11643 RANLIB="$ac_cv_prog_RANLIB"
11644fi
11645
11646test -z "$RANLIB" && RANLIB=:
11647
11648
11649
11650
11651
11652
11653# Determine commands to create old-style static archives.
11654old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11655old_postinstall_cmds='chmod 644 $oldlib'
11656old_postuninstall_cmds=
11657
11658if test -n "$RANLIB"; then
11659 case $host_os in
11660 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011662 ;;
11663 *)
cristy99bd5232011-12-07 14:38:20 +000011664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011665 ;;
11666 esac
cristy99bd5232011-12-07 14:38:20 +000011667 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011668fi
11669
cristy0c60a692010-11-04 01:09:47 +000011670case $host_os in
11671 darwin*)
11672 lock_old_archive_extraction=yes ;;
11673 *)
11674 lock_old_archive_extraction=no ;;
11675esac
11676
11677
11678
11679
11680
11681
cristy73bd4a52010-10-05 11:24:23 +000011682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715# If no C compiler was specified, use CC.
11716LTCC=${LTCC-"$CC"}
11717
11718# If no C compiler flags were specified, use CFLAGS.
11719LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11720
11721# Allow CC to be a program name with arguments.
11722compiler=$CC
11723
11724
11725# Check for command to grab the raw symbol name followed by C symbol from nm.
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11727$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011728if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011729 $as_echo_n "(cached) " >&6
11730else
11731
11732# These are sane defaults that work on at least a few old systems.
11733# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11734
11735# Character class describing NM global symbol codes.
11736symcode='[BCDEGRST]'
11737
11738# Regexp to match symbols that can be accessed directly from C.
11739sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11740
11741# Define system-specific variables.
11742case $host_os in
11743aix*)
11744 symcode='[BCDT]'
11745 ;;
11746cygwin* | mingw* | pw32* | cegcc*)
11747 symcode='[ABCDGISTW]'
11748 ;;
11749hpux*)
11750 if test "$host_cpu" = ia64; then
11751 symcode='[ABCDEGRST]'
11752 fi
11753 ;;
11754irix* | nonstopux*)
11755 symcode='[BCDEGRST]'
11756 ;;
11757osf*)
11758 symcode='[BCDEGQRST]'
11759 ;;
11760solaris*)
11761 symcode='[BDRT]'
11762 ;;
11763sco3.2v5*)
11764 symcode='[DT]'
11765 ;;
11766sysv4.2uw2*)
11767 symcode='[DT]'
11768 ;;
11769sysv5* | sco5v6* | unixware* | OpenUNIX*)
11770 symcode='[ABDT]'
11771 ;;
11772sysv4)
11773 symcode='[DFNSTU]'
11774 ;;
11775esac
11776
11777# If we're using GNU nm, then use its standard symbol codes.
11778case `$NM -V 2>&1` in
11779*GNU* | *'with BFD'*)
11780 symcode='[ABCDGIRSTW]' ;;
11781esac
11782
11783# Transform an extracted symbol line into a proper C declaration.
11784# Some systems (esp. on ia64) link data and code symbols differently,
11785# so use this general approach.
11786lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11787
11788# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011789lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11790lt_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 +000011791
11792# Handle CRLF in mingw tool chain
11793opt_cr=
11794case $build_os in
11795mingw*)
11796 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11797 ;;
11798esac
11799
11800# Try without a prefix underscore, then with it.
11801for ac_symprfx in "" "_"; do
11802
11803 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11804 symxfrm="\\1 $ac_symprfx\\2 \\2"
11805
11806 # Write the raw and C identifiers.
11807 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11808 # Fake it for dumpbin and say T for any non-static function
11809 # and D for any global variable.
11810 # Also find C++ and __fastcall symbols from MSVC++,
11811 # which start with @ or ?.
11812 lt_cv_sys_global_symbol_pipe="$AWK '"\
11813" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011814" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011815" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11816" \$ 0!~/External *\|/{next};"\
11817" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11818" {if(hide[section]) next};"\
11819" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11820" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11821" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11822" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11823" ' prfx=^$ac_symprfx"
11824 else
11825 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11826 fi
cristyda16f162011-02-19 23:52:17 +000011827 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011828
11829 # Check to see that the pipe works correctly.
11830 pipe_works=no
11831
11832 rm -f conftest*
11833 cat > conftest.$ac_ext <<_LT_EOF
11834#ifdef __cplusplus
11835extern "C" {
11836#endif
11837char nm_test_var;
11838void nm_test_func(void);
11839void nm_test_func(void){}
11840#ifdef __cplusplus
11841}
11842#endif
11843int main(){nm_test_var='a';nm_test_func();return(0);}
11844_LT_EOF
11845
11846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11847 (eval $ac_compile) 2>&5
11848 ac_status=$?
11849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11850 test $ac_status = 0; }; then
11851 # Now try to grab the symbols.
11852 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11854 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011855 ac_status=$?
11856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11857 test $ac_status = 0; } && test -s "$nlist"; then
11858 # Try sorting and uniquifying the output.
11859 if sort "$nlist" | uniq > "$nlist"T; then
11860 mv -f "$nlist"T "$nlist"
11861 else
11862 rm -f "$nlist"T
11863 fi
11864
11865 # Make sure that we snagged all the symbols we need.
11866 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11867 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11868 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011869/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11870#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11871/* DATA imports from DLLs on WIN32 con't be const, because runtime
11872 relocations are performed -- see ld's documentation on pseudo-relocs. */
11873# define LT_DLSYM_CONST
11874#elif defined(__osf__)
11875/* This system does not cope well with relocations in const data. */
11876# define LT_DLSYM_CONST
11877#else
11878# define LT_DLSYM_CONST const
11879#endif
11880
cristy73bd4a52010-10-05 11:24:23 +000011881#ifdef __cplusplus
11882extern "C" {
11883#endif
11884
11885_LT_EOF
11886 # Now generate the symbol file.
11887 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11888
11889 cat <<_LT_EOF >> conftest.$ac_ext
11890
11891/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011892LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011893 const char *name;
11894 void *address;
11895}
11896lt__PROGRAM__LTX_preloaded_symbols[] =
11897{
11898 { "@PROGRAM@", (void *) 0 },
11899_LT_EOF
11900 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11901 cat <<\_LT_EOF >> conftest.$ac_ext
11902 {0, (void *) 0}
11903};
11904
11905/* This works around a problem in FreeBSD linker */
11906#ifdef FREEBSD_WORKAROUND
11907static const void *lt_preloaded_setup() {
11908 return lt__PROGRAM__LTX_preloaded_symbols;
11909}
11910#endif
11911
11912#ifdef __cplusplus
11913}
11914#endif
11915_LT_EOF
11916 # Now try linking the two files.
11917 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011918 lt_globsym_save_LIBS=$LIBS
11919 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011920 LIBS="conftstm.$ac_objext"
11921 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11923 (eval $ac_link) 2>&5
11924 ac_status=$?
11925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11927 pipe_works=yes
11928 fi
cristyda16f162011-02-19 23:52:17 +000011929 LIBS=$lt_globsym_save_LIBS
11930 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011931 else
11932 echo "cannot find nm_test_func in $nlist" >&5
11933 fi
11934 else
11935 echo "cannot find nm_test_var in $nlist" >&5
11936 fi
11937 else
11938 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11939 fi
11940 else
11941 echo "$progname: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 fi
11944 rm -rf conftest* conftst*
11945
11946 # Do not use the global_symbol_pipe unless it works.
11947 if test "$pipe_works" = yes; then
11948 break
11949 else
11950 lt_cv_sys_global_symbol_pipe=
11951 fi
11952done
11953
11954fi
11955
11956if test -z "$lt_cv_sys_global_symbol_pipe"; then
11957 lt_cv_sys_global_symbol_to_cdecl=
11958fi
11959if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11961$as_echo "failed" >&6; }
11962else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11964$as_echo "ok" >&6; }
11965fi
11966
cristyda16f162011-02-19 23:52:17 +000011967# Response file support.
11968if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11969 nm_file_list_spec='@'
11970elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11971 nm_file_list_spec='@'
11972fi
cristy73bd4a52010-10-05 11:24:23 +000011973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
cristyda16f162011-02-19 23:52:17 +000011994
11995
11996
11997
11998
11999
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12001$as_echo_n "checking for sysroot... " >&6; }
12002
12003# Check whether --with-sysroot was given.
12004if test "${with_sysroot+set}" = set; then :
12005 withval=$with_sysroot;
12006else
12007 with_sysroot=no
12008fi
12009
12010
12011lt_sysroot=
12012case ${with_sysroot} in #(
12013 yes)
12014 if test "$GCC" = yes; then
12015 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12016 fi
12017 ;; #(
12018 /*)
12019 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12020 ;; #(
12021 no|'')
12022 ;; #(
12023 *)
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12025$as_echo "${with_sysroot}" >&6; }
12026 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12027 ;;
12028esac
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12031$as_echo "${lt_sysroot:-no}" >&6; }
12032
12033
12034
12035
12036
cristy73bd4a52010-10-05 11:24:23 +000012037# Check whether --enable-libtool-lock was given.
12038if test "${enable_libtool_lock+set}" = set; then :
12039 enableval=$enable_libtool_lock;
12040fi
12041
12042test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12043
12044# Some flags need to be propagated to the compiler or linker for good
12045# libtool support.
12046case $host in
12047ia64-*-hpux*)
12048 # Find out which ABI we are using.
12049 echo 'int i;' > conftest.$ac_ext
12050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12051 (eval $ac_compile) 2>&5
12052 ac_status=$?
12053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054 test $ac_status = 0; }; then
12055 case `/usr/bin/file conftest.$ac_objext` in
12056 *ELF-32*)
12057 HPUX_IA64_MODE="32"
12058 ;;
12059 *ELF-64*)
12060 HPUX_IA64_MODE="64"
12061 ;;
12062 esac
12063 fi
12064 rm -rf conftest*
12065 ;;
12066*-*-irix6*)
12067 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012068 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12070 (eval $ac_compile) 2>&5
12071 ac_status=$?
12072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12073 test $ac_status = 0; }; then
12074 if test "$lt_cv_prog_gnu_ld" = yes; then
12075 case `/usr/bin/file conftest.$ac_objext` in
12076 *32-bit*)
12077 LD="${LD-ld} -melf32bsmip"
12078 ;;
12079 *N32*)
12080 LD="${LD-ld} -melf32bmipn32"
12081 ;;
12082 *64-bit*)
12083 LD="${LD-ld} -melf64bmip"
12084 ;;
12085 esac
12086 else
12087 case `/usr/bin/file conftest.$ac_objext` in
12088 *32-bit*)
12089 LD="${LD-ld} -32"
12090 ;;
12091 *N32*)
12092 LD="${LD-ld} -n32"
12093 ;;
12094 *64-bit*)
12095 LD="${LD-ld} -64"
12096 ;;
12097 esac
12098 fi
12099 fi
12100 rm -rf conftest*
12101 ;;
12102
12103x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12104s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12105 # Find out which ABI we are using.
12106 echo 'int i;' > conftest.$ac_ext
12107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12108 (eval $ac_compile) 2>&5
12109 ac_status=$?
12110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111 test $ac_status = 0; }; then
12112 case `/usr/bin/file conftest.o` in
12113 *32-bit*)
12114 case $host in
12115 x86_64-*kfreebsd*-gnu)
12116 LD="${LD-ld} -m elf_i386_fbsd"
12117 ;;
12118 x86_64-*linux*)
12119 LD="${LD-ld} -m elf_i386"
12120 ;;
12121 ppc64-*linux*|powerpc64-*linux*)
12122 LD="${LD-ld} -m elf32ppclinux"
12123 ;;
12124 s390x-*linux*)
12125 LD="${LD-ld} -m elf_s390"
12126 ;;
12127 sparc64-*linux*)
12128 LD="${LD-ld} -m elf32_sparc"
12129 ;;
12130 esac
12131 ;;
12132 *64-bit*)
12133 case $host in
12134 x86_64-*kfreebsd*-gnu)
12135 LD="${LD-ld} -m elf_x86_64_fbsd"
12136 ;;
12137 x86_64-*linux*)
12138 LD="${LD-ld} -m elf_x86_64"
12139 ;;
12140 ppc*-*linux*|powerpc*-*linux*)
12141 LD="${LD-ld} -m elf64ppc"
12142 ;;
12143 s390*-*linux*|s390*-*tpf*)
12144 LD="${LD-ld} -m elf64_s390"
12145 ;;
12146 sparc*-*linux*)
12147 LD="${LD-ld} -m elf64_sparc"
12148 ;;
12149 esac
12150 ;;
12151 esac
12152 fi
12153 rm -rf conftest*
12154 ;;
12155
12156*-*-sco3.2v5*)
12157 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12158 SAVE_CFLAGS="$CFLAGS"
12159 CFLAGS="$CFLAGS -belf"
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12161$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012162if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012163 $as_echo_n "(cached) " >&6
12164else
12165 ac_ext=c
12166ac_cpp='$CPP $CPPFLAGS'
12167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169ac_compiler_gnu=$ac_cv_c_compiler_gnu
12170
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172/* end confdefs.h. */
12173
12174int
12175main ()
12176{
12177
12178 ;
12179 return 0;
12180}
12181_ACEOF
12182if ac_fn_c_try_link "$LINENO"; then :
12183 lt_cv_cc_needs_belf=yes
12184else
12185 lt_cv_cc_needs_belf=no
12186fi
12187rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 ac_ext=c
12190ac_cpp='$CPP $CPPFLAGS'
12191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193ac_compiler_gnu=$ac_cv_c_compiler_gnu
12194
12195fi
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12197$as_echo "$lt_cv_cc_needs_belf" >&6; }
12198 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12199 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12200 CFLAGS="$SAVE_CFLAGS"
12201 fi
12202 ;;
cristy99bd5232011-12-07 14:38:20 +000012203*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012204 # Find out which ABI we are using.
12205 echo 'int i;' > conftest.$ac_ext
12206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12207 (eval $ac_compile) 2>&5
12208 ac_status=$?
12209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210 test $ac_status = 0; }; then
12211 case `/usr/bin/file conftest.o` in
12212 *64-bit*)
12213 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012214 yes*)
12215 case $host in
12216 i?86-*-solaris*)
12217 LD="${LD-ld} -m elf_x86_64"
12218 ;;
12219 sparc*-*-solaris*)
12220 LD="${LD-ld} -m elf64_sparc"
12221 ;;
12222 esac
12223 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12224 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12225 LD="${LD-ld}_sol2"
12226 fi
12227 ;;
cristy73bd4a52010-10-05 11:24:23 +000012228 *)
12229 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12230 LD="${LD-ld} -64"
12231 fi
12232 ;;
12233 esac
12234 ;;
12235 esac
12236 fi
12237 rm -rf conftest*
12238 ;;
12239esac
12240
12241need_locks="$enable_libtool_lock"
12242
cristyda16f162011-02-19 23:52:17 +000012243if test -n "$ac_tool_prefix"; then
12244 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12245set dummy ${ac_tool_prefix}mt; ac_word=$2
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247$as_echo_n "checking for $ac_word... " >&6; }
12248if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250else
12251 if test -n "$MANIFEST_TOOL"; then
12252 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12253else
12254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255for as_dir in $PATH
12256do
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12264 fi
12265done
12266 done
12267IFS=$as_save_IFS
12268
12269fi
12270fi
12271MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12272if test -n "$MANIFEST_TOOL"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12274$as_echo "$MANIFEST_TOOL" >&6; }
12275else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277$as_echo "no" >&6; }
12278fi
12279
12280
12281fi
12282if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12283 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12284 # Extract the first word of "mt", so it can be a program name with args.
12285set dummy mt; ac_word=$2
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287$as_echo_n "checking for $ac_word... " >&6; }
12288if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290else
12291 if test -n "$ac_ct_MANIFEST_TOOL"; then
12292 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12293else
12294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295for as_dir in $PATH
12296do
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12301 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303 break 2
12304 fi
12305done
12306 done
12307IFS=$as_save_IFS
12308
12309fi
12310fi
12311ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12312if test -n "$ac_ct_MANIFEST_TOOL"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12314$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12315else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317$as_echo "no" >&6; }
12318fi
12319
12320 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12321 MANIFEST_TOOL=":"
12322 else
12323 case $cross_compiling:$ac_tool_warned in
12324yes:)
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12327ac_tool_warned=yes ;;
12328esac
12329 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12330 fi
12331else
12332 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12333fi
12334
12335test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12337$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12338if ${lt_cv_path_mainfest_tool+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340else
12341 lt_cv_path_mainfest_tool=no
12342 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12343 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12344 cat conftest.err >&5
12345 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12346 lt_cv_path_mainfest_tool=yes
12347 fi
12348 rm -f conftest*
12349fi
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12351$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12352if test "x$lt_cv_path_mainfest_tool" != xyes; then
12353 MANIFEST_TOOL=:
12354fi
12355
12356
12357
12358
12359
cristy73bd4a52010-10-05 11:24:23 +000012360
12361 case $host_os in
12362 rhapsody* | darwin*)
12363 if test -n "$ac_tool_prefix"; then
12364 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12365set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012368if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012369 $as_echo_n "(cached) " >&6
12370else
12371 if test -n "$DSYMUTIL"; then
12372 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12373else
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12384 fi
12385done
12386 done
12387IFS=$as_save_IFS
12388
12389fi
12390fi
12391DSYMUTIL=$ac_cv_prog_DSYMUTIL
12392if test -n "$DSYMUTIL"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12394$as_echo "$DSYMUTIL" >&6; }
12395else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
12398fi
12399
12400
12401fi
12402if test -z "$ac_cv_prog_DSYMUTIL"; then
12403 ac_ct_DSYMUTIL=$DSYMUTIL
12404 # Extract the first word of "dsymutil", so it can be a program name with args.
12405set dummy dsymutil; ac_word=$2
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012408if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012409 $as_echo_n "(cached) " >&6
12410else
12411 if test -n "$ac_ct_DSYMUTIL"; then
12412 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12413else
12414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415for as_dir in $PATH
12416do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12421 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12424 fi
12425done
12426 done
12427IFS=$as_save_IFS
12428
12429fi
12430fi
12431ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12432if test -n "$ac_ct_DSYMUTIL"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12434$as_echo "$ac_ct_DSYMUTIL" >&6; }
12435else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
12438fi
12439
12440 if test "x$ac_ct_DSYMUTIL" = x; then
12441 DSYMUTIL=":"
12442 else
12443 case $cross_compiling:$ac_tool_warned in
12444yes:)
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12447ac_tool_warned=yes ;;
12448esac
12449 DSYMUTIL=$ac_ct_DSYMUTIL
12450 fi
12451else
12452 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12453fi
12454
12455 if test -n "$ac_tool_prefix"; then
12456 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12457set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012460if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012461 $as_echo_n "(cached) " >&6
12462else
12463 if test -n "$NMEDIT"; then
12464 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12465else
12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12476 fi
12477done
12478 done
12479IFS=$as_save_IFS
12480
12481fi
12482fi
12483NMEDIT=$ac_cv_prog_NMEDIT
12484if test -n "$NMEDIT"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12486$as_echo "$NMEDIT" >&6; }
12487else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
12490fi
12491
12492
12493fi
12494if test -z "$ac_cv_prog_NMEDIT"; then
12495 ac_ct_NMEDIT=$NMEDIT
12496 # Extract the first word of "nmedit", so it can be a program name with args.
12497set dummy nmedit; ac_word=$2
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012500if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012501 $as_echo_n "(cached) " >&6
12502else
12503 if test -n "$ac_ct_NMEDIT"; then
12504 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12505else
12506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507for as_dir in $PATH
12508do
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
12511 for ac_exec_ext in '' $ac_executable_extensions; do
12512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12513 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 break 2
12516 fi
12517done
12518 done
12519IFS=$as_save_IFS
12520
12521fi
12522fi
12523ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12524if test -n "$ac_ct_NMEDIT"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12526$as_echo "$ac_ct_NMEDIT" >&6; }
12527else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
12530fi
12531
12532 if test "x$ac_ct_NMEDIT" = x; then
12533 NMEDIT=":"
12534 else
12535 case $cross_compiling:$ac_tool_warned in
12536yes:)
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12539ac_tool_warned=yes ;;
12540esac
12541 NMEDIT=$ac_ct_NMEDIT
12542 fi
12543else
12544 NMEDIT="$ac_cv_prog_NMEDIT"
12545fi
12546
12547 if test -n "$ac_tool_prefix"; then
12548 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12549set dummy ${ac_tool_prefix}lipo; ac_word=$2
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012552if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012553 $as_echo_n "(cached) " >&6
12554else
12555 if test -n "$LIPO"; then
12556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12557else
12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12565 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570 done
12571IFS=$as_save_IFS
12572
12573fi
12574fi
12575LIPO=$ac_cv_prog_LIPO
12576if test -n "$LIPO"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12578$as_echo "$LIPO" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584
12585fi
12586if test -z "$ac_cv_prog_LIPO"; then
12587 ac_ct_LIPO=$LIPO
12588 # Extract the first word of "lipo", so it can be a program name with args.
12589set dummy lipo; ac_word=$2
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012592if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012593 $as_echo_n "(cached) " >&6
12594else
12595 if test -n "$ac_ct_LIPO"; then
12596 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12597else
12598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599for as_dir in $PATH
12600do
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605 ac_cv_prog_ac_ct_LIPO="lipo"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12608 fi
12609done
12610 done
12611IFS=$as_save_IFS
12612
12613fi
12614fi
12615ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12616if test -n "$ac_ct_LIPO"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12618$as_echo "$ac_ct_LIPO" >&6; }
12619else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621$as_echo "no" >&6; }
12622fi
12623
12624 if test "x$ac_ct_LIPO" = x; then
12625 LIPO=":"
12626 else
12627 case $cross_compiling:$ac_tool_warned in
12628yes:)
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12631ac_tool_warned=yes ;;
12632esac
12633 LIPO=$ac_ct_LIPO
12634 fi
12635else
12636 LIPO="$ac_cv_prog_LIPO"
12637fi
12638
12639 if test -n "$ac_tool_prefix"; then
12640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12641set dummy ${ac_tool_prefix}otool; ac_word=$2
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012644if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012645 $as_echo_n "(cached) " >&6
12646else
12647 if test -n "$OTOOL"; then
12648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12649else
12650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in $PATH
12652do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12660 fi
12661done
12662 done
12663IFS=$as_save_IFS
12664
12665fi
12666fi
12667OTOOL=$ac_cv_prog_OTOOL
12668if test -n "$OTOOL"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12670$as_echo "$OTOOL" >&6; }
12671else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
12674fi
12675
12676
12677fi
12678if test -z "$ac_cv_prog_OTOOL"; then
12679 ac_ct_OTOOL=$OTOOL
12680 # Extract the first word of "otool", so it can be a program name with args.
12681set dummy otool; ac_word=$2
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012684if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012685 $as_echo_n "(cached) " >&6
12686else
12687 if test -n "$ac_ct_OTOOL"; then
12688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12689else
12690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691for as_dir in $PATH
12692do
12693 IFS=$as_save_IFS
12694 test -z "$as_dir" && as_dir=.
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12697 ac_cv_prog_ac_ct_OTOOL="otool"
12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12699 break 2
12700 fi
12701done
12702 done
12703IFS=$as_save_IFS
12704
12705fi
12706fi
12707ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12708if test -n "$ac_ct_OTOOL"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12710$as_echo "$ac_ct_OTOOL" >&6; }
12711else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713$as_echo "no" >&6; }
12714fi
12715
12716 if test "x$ac_ct_OTOOL" = x; then
12717 OTOOL=":"
12718 else
12719 case $cross_compiling:$ac_tool_warned in
12720yes:)
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12723ac_tool_warned=yes ;;
12724esac
12725 OTOOL=$ac_ct_OTOOL
12726 fi
12727else
12728 OTOOL="$ac_cv_prog_OTOOL"
12729fi
12730
12731 if test -n "$ac_tool_prefix"; then
12732 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12733set dummy ${ac_tool_prefix}otool64; ac_word=$2
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012736if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012737 $as_echo_n "(cached) " >&6
12738else
12739 if test -n "$OTOOL64"; then
12740 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12741else
12742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743for as_dir in $PATH
12744do
12745 IFS=$as_save_IFS
12746 test -z "$as_dir" && as_dir=.
12747 for ac_exec_ext in '' $ac_executable_extensions; do
12748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12749 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751 break 2
12752 fi
12753done
12754 done
12755IFS=$as_save_IFS
12756
12757fi
12758fi
12759OTOOL64=$ac_cv_prog_OTOOL64
12760if test -n "$OTOOL64"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12762$as_echo "$OTOOL64" >&6; }
12763else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765$as_echo "no" >&6; }
12766fi
12767
12768
12769fi
12770if test -z "$ac_cv_prog_OTOOL64"; then
12771 ac_ct_OTOOL64=$OTOOL64
12772 # Extract the first word of "otool64", so it can be a program name with args.
12773set dummy otool64; ac_word=$2
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012776if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012777 $as_echo_n "(cached) " >&6
12778else
12779 if test -n "$ac_ct_OTOOL64"; then
12780 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12781else
12782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783for as_dir in $PATH
12784do
12785 IFS=$as_save_IFS
12786 test -z "$as_dir" && as_dir=.
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12789 ac_cv_prog_ac_ct_OTOOL64="otool64"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 break 2
12792 fi
12793done
12794 done
12795IFS=$as_save_IFS
12796
12797fi
12798fi
12799ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12800if test -n "$ac_ct_OTOOL64"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12802$as_echo "$ac_ct_OTOOL64" >&6; }
12803else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
12806fi
12807
12808 if test "x$ac_ct_OTOOL64" = x; then
12809 OTOOL64=":"
12810 else
12811 case $cross_compiling:$ac_tool_warned in
12812yes:)
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12815ac_tool_warned=yes ;;
12816esac
12817 OTOOL64=$ac_ct_OTOOL64
12818 fi
12819else
12820 OTOOL64="$ac_cv_prog_OTOOL64"
12821fi
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12850$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012851if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012852 $as_echo_n "(cached) " >&6
12853else
12854 lt_cv_apple_cc_single_mod=no
12855 if test -z "${LT_MULTI_MODULE}"; then
12856 # By default we will add the -single_module flag. You can override
12857 # by either setting the environment variable LT_MULTI_MODULE
12858 # non-empty at configure time, or by adding -multi_module to the
12859 # link flags.
12860 rm -rf libconftest.dylib*
12861 echo "int foo(void){return 1;}" > conftest.c
12862 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12863-dynamiclib -Wl,-single_module conftest.c" >&5
12864 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12865 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12866 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012867 # If there is a non-empty error log, and "single_module"
12868 # appears in it, assume the flag caused a linker warning
12869 if test -s conftest.err && $GREP single_module conftest.err; then
12870 cat conftest.err >&5
12871 # Otherwise, if the output was created with a 0 exit code from
12872 # the compiler, it worked.
12873 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012874 lt_cv_apple_cc_single_mod=yes
12875 else
12876 cat conftest.err >&5
12877 fi
12878 rm -rf libconftest.dylib*
12879 rm -f conftest.*
12880 fi
12881fi
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12883$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012884
cristy73bd4a52010-10-05 11:24:23 +000012885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12886$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012887if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012888 $as_echo_n "(cached) " >&6
12889else
12890 lt_cv_ld_exported_symbols_list=no
12891 save_LDFLAGS=$LDFLAGS
12892 echo "_main" > conftest.sym
12893 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895/* end confdefs.h. */
12896
12897int
12898main ()
12899{
12900
12901 ;
12902 return 0;
12903}
12904_ACEOF
12905if ac_fn_c_try_link "$LINENO"; then :
12906 lt_cv_ld_exported_symbols_list=yes
12907else
12908 lt_cv_ld_exported_symbols_list=no
12909fi
12910rm -f core conftest.err conftest.$ac_objext \
12911 conftest$ac_exeext conftest.$ac_ext
12912 LDFLAGS="$save_LDFLAGS"
12913
12914fi
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12916$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012917
cristy0c60a692010-11-04 01:09:47 +000012918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12919$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012920if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012921 $as_echo_n "(cached) " >&6
12922else
12923 lt_cv_ld_force_load=no
12924 cat > conftest.c << _LT_EOF
12925int forced_loaded() { return 2;}
12926_LT_EOF
12927 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12928 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12929 echo "$AR cru libconftest.a conftest.o" >&5
12930 $AR cru libconftest.a conftest.o 2>&5
12931 echo "$RANLIB libconftest.a" >&5
12932 $RANLIB libconftest.a 2>&5
12933 cat > conftest.c << _LT_EOF
12934int main() { return 0;}
12935_LT_EOF
12936 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12937 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12938 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012939 if test -s conftest.err && $GREP force_load conftest.err; then
12940 cat conftest.err >&5
12941 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012942 lt_cv_ld_force_load=yes
12943 else
12944 cat conftest.err >&5
12945 fi
12946 rm -f conftest.err libconftest.a conftest conftest.c
12947 rm -rf conftest.dSYM
12948
12949fi
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12951$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012952 case $host_os in
12953 rhapsody* | darwin1.[012])
12954 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12955 darwin1.*)
12956 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12957 darwin*) # darwin 5.x on
12958 # if running on 10.5 or later, the deployment target defaults
12959 # to the OS version, if on x86, and 10.4, the deployment
12960 # target defaults to 10.4. Don't you love it?
12961 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12962 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12963 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12964 10.[012]*)
12965 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12966 10.*)
12967 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12968 esac
12969 ;;
12970 esac
12971 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12972 _lt_dar_single_mod='$single_module'
12973 fi
12974 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12975 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12976 else
12977 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12978 fi
cristy0c60a692010-11-04 01:09:47 +000012979 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012980 _lt_dsymutil='~$DSYMUTIL $lib || :'
12981 else
12982 _lt_dsymutil=
12983 fi
12984 ;;
12985 esac
12986
12987for ac_header in dlfcn.h
12988do :
12989 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12990"
cristyda16f162011-02-19 23:52:17 +000012991if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012992 cat >>confdefs.h <<_ACEOF
12993#define HAVE_DLFCN_H 1
12994_ACEOF
12995
12996fi
12997
12998done
12999
13000
13001
cristy73bd4a52010-10-05 11:24:23 +000013002
cristyda16f162011-02-19 23:52:17 +000013003func_stripname_cnf ()
13004{
13005 case ${2} in
13006 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13007 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13008 esac
13009} # func_stripname_cnf
13010
13011
13012
cristy73bd4a52010-10-05 11:24:23 +000013013
13014
13015# Set options
13016enable_win32_dll=yes
13017
13018case $host in
cristy0c60a692010-11-04 01:09:47 +000013019*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013020 if test -n "$ac_tool_prefix"; then
13021 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13022set dummy ${ac_tool_prefix}as; ac_word=$2
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13024$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013025if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013026 $as_echo_n "(cached) " >&6
13027else
13028 if test -n "$AS"; then
13029 ac_cv_prog_AS="$AS" # Let the user override the test.
13030else
13031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032for as_dir in $PATH
13033do
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13038 ac_cv_prog_AS="${ac_tool_prefix}as"
13039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13041 fi
13042done
13043 done
13044IFS=$as_save_IFS
13045
13046fi
13047fi
13048AS=$ac_cv_prog_AS
13049if test -n "$AS"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13051$as_echo "$AS" >&6; }
13052else
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054$as_echo "no" >&6; }
13055fi
13056
13057
13058fi
13059if test -z "$ac_cv_prog_AS"; then
13060 ac_ct_AS=$AS
13061 # Extract the first word of "as", so it can be a program name with args.
13062set dummy as; ac_word=$2
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013065if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013066 $as_echo_n "(cached) " >&6
13067else
13068 if test -n "$ac_ct_AS"; then
13069 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13070else
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_ac_ct_AS="as"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13081 fi
13082done
13083 done
13084IFS=$as_save_IFS
13085
13086fi
13087fi
13088ac_ct_AS=$ac_cv_prog_ac_ct_AS
13089if test -n "$ac_ct_AS"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13091$as_echo "$ac_ct_AS" >&6; }
13092else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
13095fi
13096
13097 if test "x$ac_ct_AS" = x; then
13098 AS="false"
13099 else
13100 case $cross_compiling:$ac_tool_warned in
13101yes:)
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13104ac_tool_warned=yes ;;
13105esac
13106 AS=$ac_ct_AS
13107 fi
13108else
13109 AS="$ac_cv_prog_AS"
13110fi
13111
13112 if test -n "$ac_tool_prefix"; then
13113 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13114set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013117if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013118 $as_echo_n "(cached) " >&6
13119else
13120 if test -n "$DLLTOOL"; then
13121 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13122else
13123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124for as_dir in $PATH
13125do
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13130 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13133 fi
13134done
13135 done
13136IFS=$as_save_IFS
13137
13138fi
13139fi
13140DLLTOOL=$ac_cv_prog_DLLTOOL
13141if test -n "$DLLTOOL"; then
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13143$as_echo "$DLLTOOL" >&6; }
13144else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146$as_echo "no" >&6; }
13147fi
13148
13149
13150fi
13151if test -z "$ac_cv_prog_DLLTOOL"; then
13152 ac_ct_DLLTOOL=$DLLTOOL
13153 # Extract the first word of "dlltool", so it can be a program name with args.
13154set dummy dlltool; ac_word=$2
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013157if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013158 $as_echo_n "(cached) " >&6
13159else
13160 if test -n "$ac_ct_DLLTOOL"; then
13161 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13162else
13163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164for as_dir in $PATH
13165do
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13170 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 break 2
13173 fi
13174done
13175 done
13176IFS=$as_save_IFS
13177
13178fi
13179fi
13180ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13181if test -n "$ac_ct_DLLTOOL"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13183$as_echo "$ac_ct_DLLTOOL" >&6; }
13184else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186$as_echo "no" >&6; }
13187fi
13188
13189 if test "x$ac_ct_DLLTOOL" = x; then
13190 DLLTOOL="false"
13191 else
13192 case $cross_compiling:$ac_tool_warned in
13193yes:)
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13196ac_tool_warned=yes ;;
13197esac
13198 DLLTOOL=$ac_ct_DLLTOOL
13199 fi
13200else
13201 DLLTOOL="$ac_cv_prog_DLLTOOL"
13202fi
13203
13204 if test -n "$ac_tool_prefix"; then
13205 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13206set dummy ${ac_tool_prefix}objdump; ac_word=$2
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013209if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013210 $as_echo_n "(cached) " >&6
13211else
13212 if test -n "$OBJDUMP"; then
13213 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13214else
13215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216for as_dir in $PATH
13217do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13222 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226done
13227 done
13228IFS=$as_save_IFS
13229
13230fi
13231fi
13232OBJDUMP=$ac_cv_prog_OBJDUMP
13233if test -n "$OBJDUMP"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13235$as_echo "$OBJDUMP" >&6; }
13236else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238$as_echo "no" >&6; }
13239fi
13240
13241
13242fi
13243if test -z "$ac_cv_prog_OBJDUMP"; then
13244 ac_ct_OBJDUMP=$OBJDUMP
13245 # Extract the first word of "objdump", so it can be a program name with args.
13246set dummy objdump; ac_word=$2
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013249if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013250 $as_echo_n "(cached) " >&6
13251else
13252 if test -n "$ac_ct_OBJDUMP"; then
13253 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13254else
13255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256for as_dir in $PATH
13257do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13262 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266done
13267 done
13268IFS=$as_save_IFS
13269
13270fi
13271fi
13272ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13273if test -n "$ac_ct_OBJDUMP"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13275$as_echo "$ac_ct_OBJDUMP" >&6; }
13276else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278$as_echo "no" >&6; }
13279fi
13280
13281 if test "x$ac_ct_OBJDUMP" = x; then
13282 OBJDUMP="false"
13283 else
13284 case $cross_compiling:$ac_tool_warned in
13285yes:)
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13288ac_tool_warned=yes ;;
13289esac
13290 OBJDUMP=$ac_ct_OBJDUMP
13291 fi
13292else
13293 OBJDUMP="$ac_cv_prog_OBJDUMP"
13294fi
13295
13296 ;;
13297esac
13298
13299test -z "$AS" && AS=as
13300
13301
13302
13303
13304
13305test -z "$DLLTOOL" && DLLTOOL=dlltool
13306
13307
13308
13309
13310
13311test -z "$OBJDUMP" && OBJDUMP=objdump
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321 # Check whether --enable-shared was given.
13322if test "${enable_shared+set}" = set; then :
13323 enableval=$enable_shared; p=${PACKAGE-default}
13324 case $enableval in
13325 yes) enable_shared=yes ;;
13326 no) enable_shared=no ;;
13327 *)
13328 enable_shared=no
13329 # Look at the argument we got. We use all the common list separators.
13330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13331 for pkg in $enableval; do
13332 IFS="$lt_save_ifs"
13333 if test "X$pkg" = "X$p"; then
13334 enable_shared=yes
13335 fi
13336 done
13337 IFS="$lt_save_ifs"
13338 ;;
13339 esac
13340else
13341 enable_shared=yes
13342fi
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352 # Check whether --enable-static was given.
13353if test "${enable_static+set}" = set; then :
13354 enableval=$enable_static; p=${PACKAGE-default}
13355 case $enableval in
13356 yes) enable_static=yes ;;
13357 no) enable_static=no ;;
13358 *)
13359 enable_static=no
13360 # Look at the argument we got. We use all the common list separators.
13361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13362 for pkg in $enableval; do
13363 IFS="$lt_save_ifs"
13364 if test "X$pkg" = "X$p"; then
13365 enable_static=yes
13366 fi
13367 done
13368 IFS="$lt_save_ifs"
13369 ;;
13370 esac
13371else
13372 enable_static=yes
13373fi
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384# Check whether --with-pic was given.
13385if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013386 withval=$with_pic; lt_p=${PACKAGE-default}
13387 case $withval in
13388 yes|no) pic_mode=$withval ;;
13389 *)
13390 pic_mode=default
13391 # Look at the argument we got. We use all the common list separators.
13392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13393 for lt_pkg in $withval; do
13394 IFS="$lt_save_ifs"
13395 if test "X$lt_pkg" = "X$lt_p"; then
13396 pic_mode=yes
13397 fi
13398 done
13399 IFS="$lt_save_ifs"
13400 ;;
13401 esac
cristy73bd4a52010-10-05 11:24:23 +000013402else
13403 pic_mode=default
13404fi
13405
13406
13407test -z "$pic_mode" && pic_mode=default
13408
13409
13410
13411
13412
13413
13414
13415 # Check whether --enable-fast-install was given.
13416if test "${enable_fast_install+set}" = set; then :
13417 enableval=$enable_fast_install; p=${PACKAGE-default}
13418 case $enableval in
13419 yes) enable_fast_install=yes ;;
13420 no) enable_fast_install=no ;;
13421 *)
13422 enable_fast_install=no
13423 # Look at the argument we got. We use all the common list separators.
13424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13425 for pkg in $enableval; do
13426 IFS="$lt_save_ifs"
13427 if test "X$pkg" = "X$p"; then
13428 enable_fast_install=yes
13429 fi
13430 done
13431 IFS="$lt_save_ifs"
13432 ;;
13433 esac
13434else
13435 enable_fast_install=yes
13436fi
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448# This can be used to rebuild libtool when needed
13449LIBTOOL_DEPS="$ltmain"
13450
13451# Always use our own libtool.
13452LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
cristy0c60a692010-11-04 01:09:47 +000013478
cristy99bd5232011-12-07 14:38:20 +000013479
13480
13481
13482
cristy73bd4a52010-10-05 11:24:23 +000013483test -z "$LN_S" && LN_S="ln -s"
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498if test -n "${ZSH_VERSION+set}" ; then
13499 setopt NO_GLOB_SUBST
13500fi
13501
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13503$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013504if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013505 $as_echo_n "(cached) " >&6
13506else
13507 rm -f .libs 2>/dev/null
13508mkdir .libs 2>/dev/null
13509if test -d .libs; then
13510 lt_cv_objdir=.libs
13511else
13512 # MS-DOS does not allow filenames that begin with a dot.
13513 lt_cv_objdir=_libs
13514fi
13515rmdir .libs 2>/dev/null
13516fi
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13518$as_echo "$lt_cv_objdir" >&6; }
13519objdir=$lt_cv_objdir
13520
13521
13522
13523
13524
13525cat >>confdefs.h <<_ACEOF
13526#define LT_OBJDIR "$lt_cv_objdir/"
13527_ACEOF
13528
13529
13530
13531
cristy73bd4a52010-10-05 11:24:23 +000013532case $host_os in
13533aix3*)
13534 # AIX sometimes has problems with the GCC collect2 program. For some
13535 # reason, if we set the COLLECT_NAMES environment variable, the problems
13536 # vanish in a puff of smoke.
13537 if test "X${COLLECT_NAMES+set}" != Xset; then
13538 COLLECT_NAMES=
13539 export COLLECT_NAMES
13540 fi
13541 ;;
13542esac
13543
cristy73bd4a52010-10-05 11:24:23 +000013544# Global variables:
13545ofile=libtool
13546can_build_shared=yes
13547
13548# All known linkers require a `.a' archive for static linking (except MSVC,
13549# which needs '.lib').
13550libext=a
13551
13552with_gnu_ld="$lt_cv_prog_gnu_ld"
13553
13554old_CC="$CC"
13555old_CFLAGS="$CFLAGS"
13556
13557# Set sane defaults for various variables
13558test -z "$CC" && CC=cc
13559test -z "$LTCC" && LTCC=$CC
13560test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13561test -z "$LD" && LD=ld
13562test -z "$ac_objext" && ac_objext=o
13563
13564for cc_temp in $compiler""; do
13565 case $cc_temp in
13566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13568 \-*) ;;
13569 *) break;;
13570 esac
13571done
cristy0c60a692010-11-04 01:09:47 +000013572cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013573
13574
13575# Only perform the check for file, if the check method requires it
13576test -z "$MAGIC_CMD" && MAGIC_CMD=file
13577case $deplibs_check_method in
13578file_magic*)
13579 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13581$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013582if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013583 $as_echo_n "(cached) " >&6
13584else
13585 case $MAGIC_CMD in
13586[\\/*] | ?:[\\/]*)
13587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13588 ;;
13589*)
13590 lt_save_MAGIC_CMD="$MAGIC_CMD"
13591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13592 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13593 for ac_dir in $ac_dummy; do
13594 IFS="$lt_save_ifs"
13595 test -z "$ac_dir" && ac_dir=.
13596 if test -f $ac_dir/${ac_tool_prefix}file; then
13597 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13598 if test -n "$file_magic_test_file"; then
13599 case $deplibs_check_method in
13600 "file_magic "*)
13601 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13603 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13604 $EGREP "$file_magic_regex" > /dev/null; then
13605 :
13606 else
13607 cat <<_LT_EOF 1>&2
13608
13609*** Warning: the command libtool uses to detect shared libraries,
13610*** $file_magic_cmd, produces output that libtool cannot recognize.
13611*** The result is that libtool may fail to recognize shared libraries
13612*** as such. This will affect the creation of libtool libraries that
13613*** depend on shared libraries, but programs linked with such libtool
13614*** libraries will work regardless of this problem. Nevertheless, you
13615*** may want to report the problem to your system manager and/or to
13616*** bug-libtool@gnu.org
13617
13618_LT_EOF
13619 fi ;;
13620 esac
13621 fi
13622 break
13623 fi
13624 done
13625 IFS="$lt_save_ifs"
13626 MAGIC_CMD="$lt_save_MAGIC_CMD"
13627 ;;
13628esac
13629fi
13630
13631MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13632if test -n "$MAGIC_CMD"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13634$as_echo "$MAGIC_CMD" >&6; }
13635else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637$as_echo "no" >&6; }
13638fi
13639
13640
13641
13642
13643
13644if test -z "$lt_cv_path_MAGIC_CMD"; then
13645 if test -n "$ac_tool_prefix"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13647$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013648if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013649 $as_echo_n "(cached) " >&6
13650else
13651 case $MAGIC_CMD in
13652[\\/*] | ?:[\\/]*)
13653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13654 ;;
13655*)
13656 lt_save_MAGIC_CMD="$MAGIC_CMD"
13657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13659 for ac_dir in $ac_dummy; do
13660 IFS="$lt_save_ifs"
13661 test -z "$ac_dir" && ac_dir=.
13662 if test -f $ac_dir/file; then
13663 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13664 if test -n "$file_magic_test_file"; then
13665 case $deplibs_check_method in
13666 "file_magic "*)
13667 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13670 $EGREP "$file_magic_regex" > /dev/null; then
13671 :
13672 else
13673 cat <<_LT_EOF 1>&2
13674
13675*** Warning: the command libtool uses to detect shared libraries,
13676*** $file_magic_cmd, produces output that libtool cannot recognize.
13677*** The result is that libtool may fail to recognize shared libraries
13678*** as such. This will affect the creation of libtool libraries that
13679*** depend on shared libraries, but programs linked with such libtool
13680*** libraries will work regardless of this problem. Nevertheless, you
13681*** may want to report the problem to your system manager and/or to
13682*** bug-libtool@gnu.org
13683
13684_LT_EOF
13685 fi ;;
13686 esac
13687 fi
13688 break
13689 fi
13690 done
13691 IFS="$lt_save_ifs"
13692 MAGIC_CMD="$lt_save_MAGIC_CMD"
13693 ;;
13694esac
13695fi
13696
13697MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13698if test -n "$MAGIC_CMD"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13700$as_echo "$MAGIC_CMD" >&6; }
13701else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703$as_echo "no" >&6; }
13704fi
13705
13706
13707 else
13708 MAGIC_CMD=:
13709 fi
13710fi
13711
13712 fi
13713 ;;
13714esac
13715
13716# Use C for the default configuration in the libtool script
13717
13718lt_save_CC="$CC"
13719ac_ext=c
13720ac_cpp='$CPP $CPPFLAGS'
13721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13723ac_compiler_gnu=$ac_cv_c_compiler_gnu
13724
13725
13726# Source file extension for C test sources.
13727ac_ext=c
13728
13729# Object file extension for compiled C test sources.
13730objext=o
13731objext=$objext
13732
13733# Code to be used in simple compile tests
13734lt_simple_compile_test_code="int some_variable = 0;"
13735
13736# Code to be used in simple link tests
13737lt_simple_link_test_code='int main(){return(0);}'
13738
13739
13740
13741
13742
13743
13744
13745# If no C compiler was specified, use CC.
13746LTCC=${LTCC-"$CC"}
13747
13748# If no C compiler flags were specified, use CFLAGS.
13749LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13750
13751# Allow CC to be a program name with arguments.
13752compiler=$CC
13753
13754# Save the default compiler, since it gets overwritten when the other
13755# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13756compiler_DEFAULT=$CC
13757
13758# save warnings/boilerplate of simple test code
13759ac_outfile=conftest.$ac_objext
13760echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13761eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13762_lt_compiler_boilerplate=`cat conftest.err`
13763$RM conftest*
13764
13765ac_outfile=conftest.$ac_objext
13766echo "$lt_simple_link_test_code" >conftest.$ac_ext
13767eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13768_lt_linker_boilerplate=`cat conftest.err`
13769$RM -r conftest*
13770
13771
13772## CAVEAT EMPTOR:
13773## There is no encapsulation within the following macros, do not change
13774## the running order or otherwise move them around unless you know exactly
13775## what you are doing...
13776if test -n "$compiler"; then
13777
13778lt_prog_compiler_no_builtin_flag=
13779
13780if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013781 case $cc_basename in
13782 nvcc*)
13783 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13784 *)
13785 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13786 esac
cristy73bd4a52010-10-05 11:24:23 +000013787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13789$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013790if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013791 $as_echo_n "(cached) " >&6
13792else
13793 lt_cv_prog_compiler_rtti_exceptions=no
13794 ac_outfile=conftest.$ac_objext
13795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13796 lt_compiler_flag="-fno-rtti -fno-exceptions"
13797 # Insert the option either (1) after the last *FLAGS variable, or
13798 # (2) before a word containing "conftest.", or (3) at the end.
13799 # Note that $ac_compile itself does not contain backslashes and begins
13800 # with a dollar sign (not a hyphen), so the echo should work correctly.
13801 # The option is referenced via a variable to avoid confusing sed.
13802 lt_compile=`echo "$ac_compile" | $SED \
13803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13805 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013807 (eval "$lt_compile" 2>conftest.err)
13808 ac_status=$?
13809 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013811 if (exit $ac_status) && test -s "$ac_outfile"; then
13812 # The compiler can only warn and ignore the option if not recognized
13813 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13817 lt_cv_prog_compiler_rtti_exceptions=yes
13818 fi
13819 fi
13820 $RM conftest*
13821
13822fi
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13824$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13825
13826if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13827 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13828else
13829 :
13830fi
13831
13832fi
13833
13834
13835
13836
13837
13838
13839 lt_prog_compiler_wl=
13840lt_prog_compiler_pic=
13841lt_prog_compiler_static=
13842
cristy73bd4a52010-10-05 11:24:23 +000013843
13844 if test "$GCC" = yes; then
13845 lt_prog_compiler_wl='-Wl,'
13846 lt_prog_compiler_static='-static'
13847
13848 case $host_os in
13849 aix*)
13850 # All AIX code is PIC.
13851 if test "$host_cpu" = ia64; then
13852 # AIX 5 now supports IA64 processor
13853 lt_prog_compiler_static='-Bstatic'
13854 fi
13855 ;;
13856
13857 amigaos*)
13858 case $host_cpu in
13859 powerpc)
13860 # see comment about AmigaOS4 .so support
13861 lt_prog_compiler_pic='-fPIC'
13862 ;;
13863 m68k)
13864 # FIXME: we need at least 68020 code to build shared libraries, but
13865 # adding the `-m68020' flag to GCC prevents building anything better,
13866 # like `-m68040'.
13867 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13868 ;;
13869 esac
13870 ;;
13871
13872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13873 # PIC is the default for these OSes.
13874 ;;
13875
13876 mingw* | cygwin* | pw32* | os2* | cegcc*)
13877 # This hack is so that the source file can tell whether it is being
13878 # built for inclusion in a dll (and should export symbols for example).
13879 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13880 # (--disable-auto-import) libraries
13881 lt_prog_compiler_pic='-DDLL_EXPORT'
13882 ;;
13883
13884 darwin* | rhapsody*)
13885 # PIC is the default on this platform
13886 # Common symbols not allowed in MH_DYLIB files
13887 lt_prog_compiler_pic='-fno-common'
13888 ;;
13889
cristy0c60a692010-11-04 01:09:47 +000013890 haiku*)
13891 # PIC is the default for Haiku.
13892 # The "-static" flag exists, but is broken.
13893 lt_prog_compiler_static=
13894 ;;
13895
cristy73bd4a52010-10-05 11:24:23 +000013896 hpux*)
13897 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13898 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13899 # sets the default TLS model and affects inlining.
13900 case $host_cpu in
13901 hppa*64*)
13902 # +Z the default
13903 ;;
13904 *)
13905 lt_prog_compiler_pic='-fPIC'
13906 ;;
13907 esac
13908 ;;
13909
13910 interix[3-9]*)
13911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13912 # Instead, we relocate shared libraries at runtime.
13913 ;;
13914
13915 msdosdjgpp*)
13916 # Just because we use GCC doesn't mean we suddenly get shared libraries
13917 # on systems that don't support them.
13918 lt_prog_compiler_can_build_shared=no
13919 enable_shared=no
13920 ;;
13921
13922 *nto* | *qnx*)
13923 # QNX uses GNU C++, but need to define -shared option too, otherwise
13924 # it will coredump.
13925 lt_prog_compiler_pic='-fPIC -shared'
13926 ;;
13927
13928 sysv4*MP*)
13929 if test -d /usr/nec; then
13930 lt_prog_compiler_pic=-Kconform_pic
13931 fi
13932 ;;
13933
13934 *)
13935 lt_prog_compiler_pic='-fPIC'
13936 ;;
13937 esac
cristy0c60a692010-11-04 01:09:47 +000013938
13939 case $cc_basename in
13940 nvcc*) # Cuda Compiler Driver 2.2
13941 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013942 if test -n "$lt_prog_compiler_pic"; then
13943 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13944 fi
cristy0c60a692010-11-04 01:09:47 +000013945 ;;
13946 esac
cristy73bd4a52010-10-05 11:24:23 +000013947 else
13948 # PORTME Check for flag to pass linker flags through the system compiler.
13949 case $host_os in
13950 aix*)
13951 lt_prog_compiler_wl='-Wl,'
13952 if test "$host_cpu" = ia64; then
13953 # AIX 5 now supports IA64 processor
13954 lt_prog_compiler_static='-Bstatic'
13955 else
13956 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13957 fi
13958 ;;
13959
13960 mingw* | cygwin* | pw32* | os2* | cegcc*)
13961 # This hack is so that the source file can tell whether it is being
13962 # built for inclusion in a dll (and should export symbols for example).
13963 lt_prog_compiler_pic='-DDLL_EXPORT'
13964 ;;
13965
13966 hpux9* | hpux10* | hpux11*)
13967 lt_prog_compiler_wl='-Wl,'
13968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13969 # not for PA HP-UX.
13970 case $host_cpu in
13971 hppa*64*|ia64*)
13972 # +Z the default
13973 ;;
13974 *)
13975 lt_prog_compiler_pic='+Z'
13976 ;;
13977 esac
13978 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13979 lt_prog_compiler_static='${wl}-a ${wl}archive'
13980 ;;
13981
13982 irix5* | irix6* | nonstopux*)
13983 lt_prog_compiler_wl='-Wl,'
13984 # PIC (with -KPIC) is the default.
13985 lt_prog_compiler_static='-non_shared'
13986 ;;
13987
cristy0c60a692010-11-04 01:09:47 +000013988 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013989 case $cc_basename in
13990 # old Intel for x86_64 which still supported -KPIC.
13991 ecc*)
13992 lt_prog_compiler_wl='-Wl,'
13993 lt_prog_compiler_pic='-KPIC'
13994 lt_prog_compiler_static='-static'
13995 ;;
13996 # icc used to be incompatible with GCC.
13997 # ICC 10 doesn't accept -KPIC any more.
13998 icc* | ifort*)
13999 lt_prog_compiler_wl='-Wl,'
14000 lt_prog_compiler_pic='-fPIC'
14001 lt_prog_compiler_static='-static'
14002 ;;
14003 # Lahey Fortran 8.1.
14004 lf95*)
14005 lt_prog_compiler_wl='-Wl,'
14006 lt_prog_compiler_pic='--shared'
14007 lt_prog_compiler_static='--static'
14008 ;;
cristyda16f162011-02-19 23:52:17 +000014009 nagfor*)
14010 # NAG Fortran compiler
14011 lt_prog_compiler_wl='-Wl,-Wl,,'
14012 lt_prog_compiler_pic='-PIC'
14013 lt_prog_compiler_static='-Bstatic'
14014 ;;
cristy0c60a692010-11-04 01:09:47 +000014015 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014016 # Portland Group compilers (*not* the Pentium gcc compiler,
14017 # which looks to be a dead project)
14018 lt_prog_compiler_wl='-Wl,'
14019 lt_prog_compiler_pic='-fpic'
14020 lt_prog_compiler_static='-Bstatic'
14021 ;;
14022 ccc*)
14023 lt_prog_compiler_wl='-Wl,'
14024 # All Alpha code is PIC.
14025 lt_prog_compiler_static='-non_shared'
14026 ;;
cristy0c60a692010-11-04 01:09:47 +000014027 xl* | bgxl* | bgf* | mpixl*)
14028 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014029 lt_prog_compiler_wl='-Wl,'
14030 lt_prog_compiler_pic='-qpic'
14031 lt_prog_compiler_static='-qstaticlink'
14032 ;;
14033 *)
14034 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014035 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014036 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14037 lt_prog_compiler_pic='-KPIC'
14038 lt_prog_compiler_static='-Bstatic'
14039 lt_prog_compiler_wl=''
14040 ;;
cristy99bd5232011-12-07 14:38:20 +000014041 *Sun\ F* | *Sun*Fortran*)
14042 lt_prog_compiler_pic='-KPIC'
14043 lt_prog_compiler_static='-Bstatic'
14044 lt_prog_compiler_wl='-Qoption ld '
14045 ;;
cristy73bd4a52010-10-05 11:24:23 +000014046 *Sun\ C*)
14047 # Sun C 5.9
14048 lt_prog_compiler_pic='-KPIC'
14049 lt_prog_compiler_static='-Bstatic'
14050 lt_prog_compiler_wl='-Wl,'
14051 ;;
cristy99bd5232011-12-07 14:38:20 +000014052 *Intel*\ [CF]*Compiler*)
14053 lt_prog_compiler_wl='-Wl,'
14054 lt_prog_compiler_pic='-fPIC'
14055 lt_prog_compiler_static='-static'
14056 ;;
14057 *Portland\ Group*)
14058 lt_prog_compiler_wl='-Wl,'
14059 lt_prog_compiler_pic='-fpic'
14060 lt_prog_compiler_static='-Bstatic'
14061 ;;
cristy73bd4a52010-10-05 11:24:23 +000014062 esac
14063 ;;
14064 esac
14065 ;;
14066
14067 newsos6)
14068 lt_prog_compiler_pic='-KPIC'
14069 lt_prog_compiler_static='-Bstatic'
14070 ;;
14071
14072 *nto* | *qnx*)
14073 # QNX uses GNU C++, but need to define -shared option too, otherwise
14074 # it will coredump.
14075 lt_prog_compiler_pic='-fPIC -shared'
14076 ;;
14077
14078 osf3* | osf4* | osf5*)
14079 lt_prog_compiler_wl='-Wl,'
14080 # All OSF/1 code is PIC.
14081 lt_prog_compiler_static='-non_shared'
14082 ;;
14083
14084 rdos*)
14085 lt_prog_compiler_static='-non_shared'
14086 ;;
14087
14088 solaris*)
14089 lt_prog_compiler_pic='-KPIC'
14090 lt_prog_compiler_static='-Bstatic'
14091 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014092 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014093 lt_prog_compiler_wl='-Qoption ld ';;
14094 *)
14095 lt_prog_compiler_wl='-Wl,';;
14096 esac
14097 ;;
14098
14099 sunos4*)
14100 lt_prog_compiler_wl='-Qoption ld '
14101 lt_prog_compiler_pic='-PIC'
14102 lt_prog_compiler_static='-Bstatic'
14103 ;;
14104
14105 sysv4 | sysv4.2uw2* | sysv4.3*)
14106 lt_prog_compiler_wl='-Wl,'
14107 lt_prog_compiler_pic='-KPIC'
14108 lt_prog_compiler_static='-Bstatic'
14109 ;;
14110
14111 sysv4*MP*)
14112 if test -d /usr/nec ;then
14113 lt_prog_compiler_pic='-Kconform_pic'
14114 lt_prog_compiler_static='-Bstatic'
14115 fi
14116 ;;
14117
14118 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14119 lt_prog_compiler_wl='-Wl,'
14120 lt_prog_compiler_pic='-KPIC'
14121 lt_prog_compiler_static='-Bstatic'
14122 ;;
14123
14124 unicos*)
14125 lt_prog_compiler_wl='-Wl,'
14126 lt_prog_compiler_can_build_shared=no
14127 ;;
14128
14129 uts4*)
14130 lt_prog_compiler_pic='-pic'
14131 lt_prog_compiler_static='-Bstatic'
14132 ;;
14133
14134 *)
14135 lt_prog_compiler_can_build_shared=no
14136 ;;
14137 esac
14138 fi
14139
14140case $host_os in
14141 # For platforms which do not support PIC, -DPIC is meaningless:
14142 *djgpp*)
14143 lt_prog_compiler_pic=
14144 ;;
14145 *)
14146 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14147 ;;
14148esac
cristy73bd4a52010-10-05 11:24:23 +000014149
cristyda16f162011-02-19 23:52:17 +000014150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14151$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14152if ${lt_cv_prog_compiler_pic+:} false; then :
14153 $as_echo_n "(cached) " >&6
14154else
14155 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14156fi
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14158$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14159lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014160
14161#
14162# Check to make sure the PIC flag actually works.
14163#
14164if test -n "$lt_prog_compiler_pic"; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14166$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014167if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014168 $as_echo_n "(cached) " >&6
14169else
14170 lt_cv_prog_compiler_pic_works=no
14171 ac_outfile=conftest.$ac_objext
14172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14173 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14174 # Insert the option either (1) after the last *FLAGS variable, or
14175 # (2) before a word containing "conftest.", or (3) at the end.
14176 # Note that $ac_compile itself does not contain backslashes and begins
14177 # with a dollar sign (not a hyphen), so the echo should work correctly.
14178 # The option is referenced via a variable to avoid confusing sed.
14179 lt_compile=`echo "$ac_compile" | $SED \
14180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14182 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014184 (eval "$lt_compile" 2>conftest.err)
14185 ac_status=$?
14186 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014188 if (exit $ac_status) && test -s "$ac_outfile"; then
14189 # The compiler can only warn and ignore the option if not recognized
14190 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14194 lt_cv_prog_compiler_pic_works=yes
14195 fi
14196 fi
14197 $RM conftest*
14198
14199fi
14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14201$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14202
14203if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14204 case $lt_prog_compiler_pic in
14205 "" | " "*) ;;
14206 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14207 esac
14208else
14209 lt_prog_compiler_pic=
14210 lt_prog_compiler_can_build_shared=no
14211fi
14212
14213fi
14214
14215
14216
14217
14218
14219
cristyda16f162011-02-19 23:52:17 +000014220
14221
14222
14223
14224
cristy73bd4a52010-10-05 11:24:23 +000014225#
14226# Check to make sure the static flag actually works.
14227#
14228wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14230$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014231if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014232 $as_echo_n "(cached) " >&6
14233else
14234 lt_cv_prog_compiler_static_works=no
14235 save_LDFLAGS="$LDFLAGS"
14236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14239 # The linker can only warn and ignore the option if not recognized
14240 # So say no if there are warnings
14241 if test -s conftest.err; then
14242 # Append any errors to the config.log.
14243 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14246 if diff conftest.exp conftest.er2 >/dev/null; then
14247 lt_cv_prog_compiler_static_works=yes
14248 fi
14249 else
14250 lt_cv_prog_compiler_static_works=yes
14251 fi
14252 fi
14253 $RM -r conftest*
14254 LDFLAGS="$save_LDFLAGS"
14255
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14258$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14259
14260if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14261 :
14262else
14263 lt_prog_compiler_static=
14264fi
14265
14266
14267
14268
14269
14270
14271
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14273$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014274if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014275 $as_echo_n "(cached) " >&6
14276else
14277 lt_cv_prog_compiler_c_o=no
14278 $RM -r conftest 2>/dev/null
14279 mkdir conftest
14280 cd conftest
14281 mkdir out
14282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14283
14284 lt_compiler_flag="-o out/conftest2.$ac_objext"
14285 # Insert the option either (1) after the last *FLAGS variable, or
14286 # (2) before a word containing "conftest.", or (3) at the end.
14287 # Note that $ac_compile itself does not contain backslashes and begins
14288 # with a dollar sign (not a hyphen), so the echo should work correctly.
14289 lt_compile=`echo "$ac_compile" | $SED \
14290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14292 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014294 (eval "$lt_compile" 2>out/conftest.err)
14295 ac_status=$?
14296 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14299 then
14300 # The compiler can only warn and ignore the option if not recognized
14301 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14305 lt_cv_prog_compiler_c_o=yes
14306 fi
14307 fi
14308 chmod u+w . 2>&5
14309 $RM conftest*
14310 # SGI C++ compiler will create directory out/ii_files/ for
14311 # template instantiation
14312 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14313 $RM out/* && rmdir out
14314 cd ..
14315 $RM -r conftest
14316 $RM conftest*
14317
14318fi
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14320$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14321
14322
14323
14324
14325
14326
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14328$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014329if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014330 $as_echo_n "(cached) " >&6
14331else
14332 lt_cv_prog_compiler_c_o=no
14333 $RM -r conftest 2>/dev/null
14334 mkdir conftest
14335 cd conftest
14336 mkdir out
14337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14338
14339 lt_compiler_flag="-o out/conftest2.$ac_objext"
14340 # Insert the option either (1) after the last *FLAGS variable, or
14341 # (2) before a word containing "conftest.", or (3) at the end.
14342 # Note that $ac_compile itself does not contain backslashes and begins
14343 # with a dollar sign (not a hyphen), so the echo should work correctly.
14344 lt_compile=`echo "$ac_compile" | $SED \
14345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14347 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014349 (eval "$lt_compile" 2>out/conftest.err)
14350 ac_status=$?
14351 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14354 then
14355 # The compiler can only warn and ignore the option if not recognized
14356 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14360 lt_cv_prog_compiler_c_o=yes
14361 fi
14362 fi
14363 chmod u+w . 2>&5
14364 $RM conftest*
14365 # SGI C++ compiler will create directory out/ii_files/ for
14366 # template instantiation
14367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14368 $RM out/* && rmdir out
14369 cd ..
14370 $RM -r conftest
14371 $RM conftest*
14372
14373fi
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14375$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14376
14377
14378
14379
14380hard_links="nottested"
14381if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14382 # do not overwrite the value of need_locks provided by the user
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14384$as_echo_n "checking if we can lock with hard links... " >&6; }
14385 hard_links=yes
14386 $RM conftest*
14387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14388 touch conftest.a
14389 ln conftest.a conftest.b 2>&5 || hard_links=no
14390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14392$as_echo "$hard_links" >&6; }
14393 if test "$hard_links" = no; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14395$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14396 need_locks=warn
14397 fi
14398else
14399 need_locks=no
14400fi
14401
14402
14403
14404
14405
14406
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14408$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14409
14410 runpath_var=
14411 allow_undefined_flag=
14412 always_export_symbols=no
14413 archive_cmds=
14414 archive_expsym_cmds=
14415 compiler_needs_object=no
14416 enable_shared_with_static_runtimes=no
14417 export_dynamic_flag_spec=
14418 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14419 hardcode_automatic=no
14420 hardcode_direct=no
14421 hardcode_direct_absolute=no
14422 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014423 hardcode_libdir_separator=
14424 hardcode_minus_L=no
14425 hardcode_shlibpath_var=unsupported
14426 inherit_rpath=no
14427 link_all_deplibs=unknown
14428 module_cmds=
14429 module_expsym_cmds=
14430 old_archive_from_new_cmds=
14431 old_archive_from_expsyms_cmds=
14432 thread_safe_flag_spec=
14433 whole_archive_flag_spec=
14434 # include_expsyms should be a list of space-separated symbols to be *always*
14435 # included in the symbol list
14436 include_expsyms=
14437 # exclude_expsyms can be an extended regexp of symbols to exclude
14438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14440 # as well as any symbol that contains `d'.
14441 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14443 # platforms (ab)use it in PIC code, but their linkers get confused if
14444 # the symbol is explicitly referenced. Since portable code cannot
14445 # rely on this symbol name, it's probably fine to never include it in
14446 # preloaded symbol tables.
14447 # Exclude shared library initialization/finalization symbols.
14448 extract_expsyms_cmds=
14449
14450 case $host_os in
14451 cygwin* | mingw* | pw32* | cegcc*)
14452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14453 # When not using gcc, we currently assume that we are using
14454 # Microsoft Visual C++.
14455 if test "$GCC" != yes; then
14456 with_gnu_ld=no
14457 fi
14458 ;;
14459 interix*)
14460 # we just hope/assume this is gcc and not c89 (= MSVC++)
14461 with_gnu_ld=yes
14462 ;;
14463 openbsd*)
14464 with_gnu_ld=no
14465 ;;
14466 esac
14467
14468 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014469
14470 # On some targets, GNU ld is compatible enough with the native linker
14471 # that we're better off using the native interface for both.
14472 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014473 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014474 case $host_os in
14475 aix*)
14476 # The AIX port of GNU ld has always aspired to compatibility
14477 # with the native linker. However, as the warning in the GNU ld
14478 # block says, versions before 2.19.5* couldn't really create working
14479 # shared libraries, regardless of the interface used.
14480 case `$LD -v 2>&1` in
14481 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14482 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14483 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14484 *)
14485 lt_use_gnu_ld_interface=yes
14486 ;;
14487 esac
14488 ;;
14489 *)
14490 lt_use_gnu_ld_interface=yes
14491 ;;
14492 esac
14493 fi
14494
14495 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014496 # If archive_cmds runs LD, not CC, wlarc should be empty
14497 wlarc='${wl}'
14498
14499 # Set some defaults for GNU ld with shared library support. These
14500 # are reset later if shared libraries are not supported. Putting them
14501 # here allows them to be overridden if necessary.
14502 runpath_var=LD_RUN_PATH
14503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14504 export_dynamic_flag_spec='${wl}--export-dynamic'
14505 # ancient GNU ld didn't support --whole-archive et. al.
14506 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14507 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14508 else
14509 whole_archive_flag_spec=
14510 fi
14511 supports_anon_versioning=no
14512 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014513 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014514 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14517 *\ 2.11.*) ;; # other 2.11 versions
14518 *) supports_anon_versioning=yes ;;
14519 esac
14520
14521 # See if GNU ld supports shared libraries.
14522 case $host_os in
14523 aix[3-9]*)
14524 # On AIX/PPC, the GNU linker is very broken
14525 if test "$host_cpu" != ia64; then
14526 ld_shlibs=no
14527 cat <<_LT_EOF 1>&2
14528
cristy0c60a692010-11-04 01:09:47 +000014529*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014530*** to be unable to reliably create shared libraries on AIX.
14531*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014532*** really care for shared libraries, you may want to install binutils
14533*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14534*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014535
14536_LT_EOF
14537 fi
14538 ;;
14539
14540 amigaos*)
14541 case $host_cpu in
14542 powerpc)
14543 # see comment about AmigaOS4 .so support
14544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14545 archive_expsym_cmds=''
14546 ;;
14547 m68k)
14548 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)'
14549 hardcode_libdir_flag_spec='-L$libdir'
14550 hardcode_minus_L=yes
14551 ;;
14552 esac
14553 ;;
14554
14555 beos*)
14556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14557 allow_undefined_flag=unsupported
14558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14559 # support --undefined. This deserves some investigation. FIXME
14560 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14561 else
14562 ld_shlibs=no
14563 fi
14564 ;;
14565
14566 cygwin* | mingw* | pw32* | cegcc*)
14567 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14568 # as there is no search path for DLLs.
14569 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014570 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014571 allow_undefined_flag=unsupported
14572 always_export_symbols=no
14573 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014574 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'
14575 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 +000014576
14577 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14579 # If the export-symbols file already is a .def file (1st line
14580 # is EXPORTS), use it as is; otherwise, prepend...
14581 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14582 cp $export_symbols $output_objdir/$soname.def;
14583 else
14584 echo EXPORTS > $output_objdir/$soname.def;
14585 cat $export_symbols >> $output_objdir/$soname.def;
14586 fi~
14587 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14588 else
14589 ld_shlibs=no
14590 fi
14591 ;;
14592
cristy0c60a692010-11-04 01:09:47 +000014593 haiku*)
14594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14595 link_all_deplibs=yes
14596 ;;
14597
cristy73bd4a52010-10-05 11:24:23 +000014598 interix[3-9]*)
14599 hardcode_direct=no
14600 hardcode_shlibpath_var=no
14601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14602 export_dynamic_flag_spec='${wl}-E'
14603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14604 # Instead, shared libraries are loaded at an image base (0x10000000 by
14605 # default) and relocated if they conflict, which is a slow very memory
14606 # consuming and fragmenting process. To avoid this, we pick a random,
14607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14608 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14610 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'
14611 ;;
14612
cristy0c60a692010-11-04 01:09:47 +000014613 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014614 tmp_diet=no
14615 if test "$host_os" = linux-dietlibc; then
14616 case $cc_basename in
14617 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14618 esac
14619 fi
14620 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14621 && test "$tmp_diet" = no
14622 then
cristyda16f162011-02-19 23:52:17 +000014623 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014624 tmp_sharedflag='-shared'
14625 case $cc_basename,$host_cpu in
14626 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014627 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 +000014628 tmp_addflag=' $pic_flag'
14629 ;;
cristy0c60a692010-11-04 01:09:47 +000014630 pgf77* | pgf90* | pgf95* | pgfortran*)
14631 # Portland Group f77 and f90 compilers
14632 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 +000014633 tmp_addflag=' $pic_flag -Mnomain' ;;
14634 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14635 tmp_addflag=' -i_dynamic' ;;
14636 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14637 tmp_addflag=' -i_dynamic -nofor_main' ;;
14638 ifc* | ifort*) # Intel Fortran compiler
14639 tmp_addflag=' -nofor_main' ;;
14640 lf95*) # Lahey Fortran 8.1
14641 whole_archive_flag_spec=
14642 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014643 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014644 tmp_sharedflag='-qmkshrobj'
14645 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014646 nvcc*) # Cuda Compiler Driver 2.2
14647 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'
14648 compiler_needs_object=yes
14649 ;;
cristy73bd4a52010-10-05 11:24:23 +000014650 esac
14651 case `$CC -V 2>&1 | sed 5q` in
14652 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014653 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 +000014654 compiler_needs_object=yes
14655 tmp_sharedflag='-G' ;;
14656 *Sun\ F*) # Sun Fortran 8.3
14657 tmp_sharedflag='-G' ;;
14658 esac
14659 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14660
14661 if test "x$supports_anon_versioning" = xyes; then
14662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14664 echo "local: *; };" >> $output_objdir/$libname.ver~
14665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14666 fi
14667
14668 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014669 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014670 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14671 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014673 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014674 if test "x$supports_anon_versioning" = xyes; then
14675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14677 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014678 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014679 fi
14680 ;;
14681 esac
14682 else
14683 ld_shlibs=no
14684 fi
14685 ;;
14686
14687 netbsd*)
14688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14689 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14690 wlarc=
14691 else
cristyda16f162011-02-19 23:52:17 +000014692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14693 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 +000014694 fi
14695 ;;
14696
14697 solaris*)
14698 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14699 ld_shlibs=no
14700 cat <<_LT_EOF 1>&2
14701
14702*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14703*** create shared libraries on Solaris systems. Therefore, libtool
14704*** is disabling shared libraries support. We urge you to upgrade GNU
14705*** binutils to release 2.9.1 or newer. Another option is to modify
14706*** your PATH or compiler configuration so that the native linker is
14707*** used, and then restart.
14708
14709_LT_EOF
14710 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14712 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 +000014713 else
14714 ld_shlibs=no
14715 fi
14716 ;;
14717
14718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14719 case `$LD -v 2>&1` in
14720 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14721 ld_shlibs=no
14722 cat <<_LT_EOF 1>&2
14723
14724*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14725*** reliably create shared libraries on SCO systems. Therefore, libtool
14726*** is disabling shared libraries support. We urge you to upgrade GNU
14727*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14728*** your PATH or compiler configuration so that the native linker is
14729*** used, and then restart.
14730
14731_LT_EOF
14732 ;;
14733 *)
14734 # For security reasons, it is highly recommended that you always
14735 # use absolute paths for naming shared libraries, and exclude the
14736 # DT_RUNPATH tag from executables and libraries. But doing so
14737 # requires that you compile everything twice, which is a pain.
14738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14742 else
14743 ld_shlibs=no
14744 fi
14745 ;;
14746 esac
14747 ;;
14748
14749 sunos4*)
14750 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14751 wlarc=
14752 hardcode_direct=yes
14753 hardcode_shlibpath_var=no
14754 ;;
14755
14756 *)
14757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014758 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14759 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 +000014760 else
14761 ld_shlibs=no
14762 fi
14763 ;;
14764 esac
14765
14766 if test "$ld_shlibs" = no; then
14767 runpath_var=
14768 hardcode_libdir_flag_spec=
14769 export_dynamic_flag_spec=
14770 whole_archive_flag_spec=
14771 fi
14772 else
14773 # PORTME fill in a description of your system's linker (not GNU ld)
14774 case $host_os in
14775 aix3*)
14776 allow_undefined_flag=unsupported
14777 always_export_symbols=yes
14778 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'
14779 # Note: this linker hardcodes the directories in LIBPATH if there
14780 # are no directories specified by -L.
14781 hardcode_minus_L=yes
14782 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14783 # Neither direct hardcoding nor static linking is supported with a
14784 # broken collect2.
14785 hardcode_direct=unsupported
14786 fi
14787 ;;
14788
14789 aix[4-9]*)
14790 if test "$host_cpu" = ia64; then
14791 # On IA64, the linker does run time linking by default, so we don't
14792 # have to do anything special.
14793 aix_use_runtimelinking=no
14794 exp_sym_flag='-Bexport'
14795 no_entry_flag=""
14796 else
14797 # If we're using GNU nm, then we don't want the "-C" option.
14798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014799 # Also, AIX nm treats weak defined symbols like other global
14800 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014802 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 +000014803 else
14804 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'
14805 fi
14806 aix_use_runtimelinking=no
14807
14808 # Test if we are trying to use run time linking or normal
14809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14810 # need to do runtime linking.
14811 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14812 for ld_flag in $LDFLAGS; do
14813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14814 aix_use_runtimelinking=yes
14815 break
14816 fi
14817 done
14818 ;;
14819 esac
14820
14821 exp_sym_flag='-bexport'
14822 no_entry_flag='-bnoentry'
14823 fi
14824
14825 # When large executables or shared objects are built, AIX ld can
14826 # have problems creating the table of contents. If linking a library
14827 # or program results in "error TOC overflow" add -mminimal-toc to
14828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14830
14831 archive_cmds=''
14832 hardcode_direct=yes
14833 hardcode_direct_absolute=yes
14834 hardcode_libdir_separator=':'
14835 link_all_deplibs=yes
14836 file_list_spec='${wl}-f,'
14837
14838 if test "$GCC" = yes; then
14839 case $host_os in aix4.[012]|aix4.[012].*)
14840 # We only want to do this on AIX 4.2 and lower, the check
14841 # below for broken collect2 doesn't work under 4.3+
14842 collect2name=`${CC} -print-prog-name=collect2`
14843 if test -f "$collect2name" &&
14844 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14845 then
14846 # We have reworked collect2
14847 :
14848 else
14849 # We have old collect2
14850 hardcode_direct=unsupported
14851 # It fails to find uninstalled libraries when the uninstalled
14852 # path is not listed in the libpath. Setting hardcode_minus_L
14853 # to unsupported forces relinking
14854 hardcode_minus_L=yes
14855 hardcode_libdir_flag_spec='-L$libdir'
14856 hardcode_libdir_separator=
14857 fi
14858 ;;
14859 esac
14860 shared_flag='-shared'
14861 if test "$aix_use_runtimelinking" = yes; then
14862 shared_flag="$shared_flag "'${wl}-G'
14863 fi
14864 else
14865 # not using gcc
14866 if test "$host_cpu" = ia64; then
14867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14868 # chokes on -Wl,-G. The following line is correct:
14869 shared_flag='-G'
14870 else
14871 if test "$aix_use_runtimelinking" = yes; then
14872 shared_flag='${wl}-G'
14873 else
14874 shared_flag='${wl}-bM:SRE'
14875 fi
14876 fi
14877 fi
14878
14879 export_dynamic_flag_spec='${wl}-bexpall'
14880 # It seems that -bexpall does not export symbols beginning with
14881 # underscore (_), so it is better to generate a list of symbols to export.
14882 always_export_symbols=yes
14883 if test "$aix_use_runtimelinking" = yes; then
14884 # Warning - without using the other runtime loading flags (-brtl),
14885 # -berok will link without error, but may produce a broken library.
14886 allow_undefined_flag='-berok'
14887 # Determine the default libpath from the value encoded in an
14888 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014889 if test "${lt_cv_aix_libpath+set}" = set; then
14890 aix_libpath=$lt_cv_aix_libpath
14891else
14892 if ${lt_cv_aix_libpath_+:} false; then :
14893 $as_echo_n "(cached) " >&6
14894else
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014896/* end confdefs.h. */
14897
14898int
14899main ()
14900{
14901
14902 ;
14903 return 0;
14904}
14905_ACEOF
14906if ac_fn_c_try_link "$LINENO"; then :
14907
cristyda16f162011-02-19 23:52:17 +000014908 lt_aix_libpath_sed='
14909 /Import File Strings/,/^$/ {
14910 /^0/ {
14911 s/^0 *\([^ ]*\) *$/\1/
14912 p
14913 }
14914 }'
14915 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14916 # Check for a 64-bit object if we didn't find anything.
14917 if test -z "$lt_cv_aix_libpath_"; then
14918 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14919 fi
cristy73bd4a52010-10-05 11:24:23 +000014920fi
14921rm -f core conftest.err conftest.$ac_objext \
14922 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014923 if test -z "$lt_cv_aix_libpath_"; then
14924 lt_cv_aix_libpath_="/usr/lib:/lib"
14925 fi
14926
14927fi
14928
14929 aix_libpath=$lt_cv_aix_libpath_
14930fi
cristy73bd4a52010-10-05 11:24:23 +000014931
14932 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014933 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 +000014934 else
14935 if test "$host_cpu" = ia64; then
14936 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14937 allow_undefined_flag="-z nodefs"
14938 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"
14939 else
14940 # Determine the default libpath from the value encoded in an
14941 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014942 if test "${lt_cv_aix_libpath+set}" = set; then
14943 aix_libpath=$lt_cv_aix_libpath
14944else
14945 if ${lt_cv_aix_libpath_+:} false; then :
14946 $as_echo_n "(cached) " >&6
14947else
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014949/* end confdefs.h. */
14950
14951int
14952main ()
14953{
14954
14955 ;
14956 return 0;
14957}
14958_ACEOF
14959if ac_fn_c_try_link "$LINENO"; then :
14960
cristyda16f162011-02-19 23:52:17 +000014961 lt_aix_libpath_sed='
14962 /Import File Strings/,/^$/ {
14963 /^0/ {
14964 s/^0 *\([^ ]*\) *$/\1/
14965 p
14966 }
14967 }'
14968 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14969 # Check for a 64-bit object if we didn't find anything.
14970 if test -z "$lt_cv_aix_libpath_"; then
14971 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14972 fi
cristy73bd4a52010-10-05 11:24:23 +000014973fi
14974rm -f core conftest.err conftest.$ac_objext \
14975 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014976 if test -z "$lt_cv_aix_libpath_"; then
14977 lt_cv_aix_libpath_="/usr/lib:/lib"
14978 fi
14979
14980fi
14981
14982 aix_libpath=$lt_cv_aix_libpath_
14983fi
cristy73bd4a52010-10-05 11:24:23 +000014984
14985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14986 # Warning - without using the other run time loading flags,
14987 # -berok will link without error, but may produce a broken library.
14988 no_undefined_flag=' ${wl}-bernotok'
14989 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014990 if test "$with_gnu_ld" = yes; then
14991 # We only use this code for GNU lds that support --whole-archive.
14992 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14993 else
14994 # Exported symbols can be pulled into shared objects from archives
14995 whole_archive_flag_spec='$convenience'
14996 fi
cristy73bd4a52010-10-05 11:24:23 +000014997 archive_cmds_need_lc=yes
14998 # This is similar to how AIX traditionally builds its shared libraries.
14999 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'
15000 fi
15001 fi
15002 ;;
15003
15004 amigaos*)
15005 case $host_cpu in
15006 powerpc)
15007 # see comment about AmigaOS4 .so support
15008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15009 archive_expsym_cmds=''
15010 ;;
15011 m68k)
15012 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)'
15013 hardcode_libdir_flag_spec='-L$libdir'
15014 hardcode_minus_L=yes
15015 ;;
15016 esac
15017 ;;
15018
15019 bsdi[45]*)
15020 export_dynamic_flag_spec=-rdynamic
15021 ;;
15022
15023 cygwin* | mingw* | pw32* | cegcc*)
15024 # When not using gcc, we currently assume that we are using
15025 # Microsoft Visual C++.
15026 # hardcode_libdir_flag_spec is actually meaningless, as there is
15027 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015028 case $cc_basename in
15029 cl*)
15030 # Native MSVC
15031 hardcode_libdir_flag_spec=' '
15032 allow_undefined_flag=unsupported
15033 always_export_symbols=yes
15034 file_list_spec='@'
15035 # Tell ltmain to make .lib files, not .a files.
15036 libext=lib
15037 # Tell ltmain to make .dll files, not .so files.
15038 shrext_cmds=".dll"
15039 # FIXME: Setting linknames here is a bad hack.
15040 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15041 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15042 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15043 else
15044 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15045 fi~
15046 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15047 linknames='
15048 # The linker will not automatically build a static lib if we build a DLL.
15049 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15050 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015051 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15053 # Don't use ranlib
15054 old_postinstall_cmds='chmod 644 $oldlib'
15055 postlink_cmds='lt_outputfile="@OUTPUT@"~
15056 lt_tool_outputfile="@TOOL_OUTPUT@"~
15057 case $lt_outputfile in
15058 *.exe|*.EXE) ;;
15059 *)
15060 lt_outputfile="$lt_outputfile.exe"
15061 lt_tool_outputfile="$lt_tool_outputfile.exe"
15062 ;;
15063 esac~
15064 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15065 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15066 $RM "$lt_outputfile.manifest";
15067 fi'
15068 ;;
15069 *)
15070 # Assume MSVC wrapper
15071 hardcode_libdir_flag_spec=' '
15072 allow_undefined_flag=unsupported
15073 # Tell ltmain to make .lib files, not .a files.
15074 libext=lib
15075 # Tell ltmain to make .dll files, not .so files.
15076 shrext_cmds=".dll"
15077 # FIXME: Setting linknames here is a bad hack.
15078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15079 # The linker will automatically build a .lib file if we build a DLL.
15080 old_archive_from_new_cmds='true'
15081 # FIXME: Should let the user specify the lib program.
15082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15083 enable_shared_with_static_runtimes=yes
15084 ;;
15085 esac
cristy73bd4a52010-10-05 11:24:23 +000015086 ;;
15087
15088 darwin* | rhapsody*)
15089
15090
15091 archive_cmds_need_lc=no
15092 hardcode_direct=no
15093 hardcode_automatic=yes
15094 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015095 if test "$lt_cv_ld_force_load" = "yes"; then
15096 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000015097
cristy0c60a692010-11-04 01:09:47 +000015098 else
15099 whole_archive_flag_spec=''
15100 fi
cristy73bd4a52010-10-05 11:24:23 +000015101 link_all_deplibs=yes
15102 allow_undefined_flag="$_lt_dar_allow_undefined"
15103 case $cc_basename in
15104 ifort*) _lt_dar_can_shared=yes ;;
15105 *) _lt_dar_can_shared=$GCC ;;
15106 esac
15107 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015108 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15111 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}"
15112 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}"
15113
15114 else
15115 ld_shlibs=no
15116 fi
15117
15118 ;;
15119
15120 dgux*)
15121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15122 hardcode_libdir_flag_spec='-L$libdir'
15123 hardcode_shlibpath_var=no
15124 ;;
15125
cristy73bd4a52010-10-05 11:24:23 +000015126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15127 # support. Future versions do this automatically, but an explicit c++rt0.o
15128 # does not break anything, and helps significantly (at the cost of a little
15129 # extra space).
15130 freebsd2.2*)
15131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15132 hardcode_libdir_flag_spec='-R$libdir'
15133 hardcode_direct=yes
15134 hardcode_shlibpath_var=no
15135 ;;
15136
15137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015138 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15140 hardcode_direct=yes
15141 hardcode_minus_L=yes
15142 hardcode_shlibpath_var=no
15143 ;;
15144
15145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15146 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015148 hardcode_libdir_flag_spec='-R$libdir'
15149 hardcode_direct=yes
15150 hardcode_shlibpath_var=no
15151 ;;
15152
15153 hpux9*)
15154 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015155 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 +000015156 else
15157 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'
15158 fi
15159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15160 hardcode_libdir_separator=:
15161 hardcode_direct=yes
15162
15163 # hardcode_minus_L: Not really in the search PATH,
15164 # but as the default location of the library.
15165 hardcode_minus_L=yes
15166 export_dynamic_flag_spec='${wl}-E'
15167 ;;
15168
15169 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015170 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015171 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 +000015172 else
15173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15174 fi
15175 if test "$with_gnu_ld" = no; then
15176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015177 hardcode_libdir_separator=:
15178 hardcode_direct=yes
15179 hardcode_direct_absolute=yes
15180 export_dynamic_flag_spec='${wl}-E'
15181 # hardcode_minus_L: Not really in the search PATH,
15182 # but as the default location of the library.
15183 hardcode_minus_L=yes
15184 fi
15185 ;;
15186
15187 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015189 case $host_cpu in
15190 hppa*64*)
15191 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 ;;
15193 ia64*)
cristyda16f162011-02-19 23:52:17 +000015194 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015195 ;;
15196 *)
cristyda16f162011-02-19 23:52:17 +000015197 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 +000015198 ;;
15199 esac
15200 else
15201 case $host_cpu in
15202 hppa*64*)
15203 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15204 ;;
15205 ia64*)
15206 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15207 ;;
15208 *)
cristy0c60a692010-11-04 01:09:47 +000015209
15210 # Older versions of the 11.00 compiler do not understand -b yet
15211 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15213$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015214if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015215 $as_echo_n "(cached) " >&6
15216else
15217 lt_cv_prog_compiler__b=no
15218 save_LDFLAGS="$LDFLAGS"
15219 LDFLAGS="$LDFLAGS -b"
15220 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15222 # The linker can only warn and ignore the option if not recognized
15223 # So say no if there are warnings
15224 if test -s conftest.err; then
15225 # Append any errors to the config.log.
15226 cat conftest.err 1>&5
15227 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15229 if diff conftest.exp conftest.er2 >/dev/null; then
15230 lt_cv_prog_compiler__b=yes
15231 fi
15232 else
15233 lt_cv_prog_compiler__b=yes
15234 fi
15235 fi
15236 $RM -r conftest*
15237 LDFLAGS="$save_LDFLAGS"
15238
15239fi
15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15241$as_echo "$lt_cv_prog_compiler__b" >&6; }
15242
15243if test x"$lt_cv_prog_compiler__b" = xyes; then
15244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15245else
15246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15247fi
15248
cristy73bd4a52010-10-05 11:24:23 +000015249 ;;
15250 esac
15251 fi
15252 if test "$with_gnu_ld" = no; then
15253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15254 hardcode_libdir_separator=:
15255
15256 case $host_cpu in
15257 hppa*64*|ia64*)
15258 hardcode_direct=no
15259 hardcode_shlibpath_var=no
15260 ;;
15261 *)
15262 hardcode_direct=yes
15263 hardcode_direct_absolute=yes
15264 export_dynamic_flag_spec='${wl}-E'
15265
15266 # hardcode_minus_L: Not really in the search PATH,
15267 # but as the default location of the library.
15268 hardcode_minus_L=yes
15269 ;;
15270 esac
15271 fi
15272 ;;
15273
15274 irix5* | irix6* | nonstopux*)
15275 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015276 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 +000015277 # Try to use the -exported_symbol ld option, if it does not
15278 # work, assume that -exports_file does not work either and
15279 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015280 # This should be the same for all languages, so no per-tag cache variable.
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15282$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15283if ${lt_cv_irix_exported_symbol+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285else
15286 save_LDFLAGS="$LDFLAGS"
15287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015289/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015290int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015291_ACEOF
15292if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015293 lt_cv_irix_exported_symbol=yes
15294else
15295 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015296fi
15297rm -f core conftest.err conftest.$ac_objext \
15298 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015299 LDFLAGS="$save_LDFLAGS"
15300fi
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15302$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15303 if test "$lt_cv_irix_exported_symbol" = yes; then
15304 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'
15305 fi
cristy73bd4a52010-10-05 11:24:23 +000015306 else
cristy0c60a692010-11-04 01:09:47 +000015307 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'
15308 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 +000015309 fi
15310 archive_cmds_need_lc='no'
15311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15312 hardcode_libdir_separator=:
15313 inherit_rpath=yes
15314 link_all_deplibs=yes
15315 ;;
15316
15317 netbsd*)
15318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15320 else
15321 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15322 fi
15323 hardcode_libdir_flag_spec='-R$libdir'
15324 hardcode_direct=yes
15325 hardcode_shlibpath_var=no
15326 ;;
15327
15328 newsos6)
15329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15330 hardcode_direct=yes
15331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15332 hardcode_libdir_separator=:
15333 hardcode_shlibpath_var=no
15334 ;;
15335
15336 *nto* | *qnx*)
15337 ;;
15338
15339 openbsd*)
15340 if test -f /usr/libexec/ld.so; then
15341 hardcode_direct=yes
15342 hardcode_shlibpath_var=no
15343 hardcode_direct_absolute=yes
15344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15346 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15348 export_dynamic_flag_spec='${wl}-E'
15349 else
15350 case $host_os in
15351 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15353 hardcode_libdir_flag_spec='-R$libdir'
15354 ;;
15355 *)
15356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15358 ;;
15359 esac
15360 fi
15361 else
15362 ld_shlibs=no
15363 fi
15364 ;;
15365
15366 os2*)
15367 hardcode_libdir_flag_spec='-L$libdir'
15368 hardcode_minus_L=yes
15369 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015370 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 +000015371 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15372 ;;
15373
15374 osf3*)
15375 if test "$GCC" = yes; then
15376 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015377 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 +000015378 else
15379 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015380 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 +000015381 fi
15382 archive_cmds_need_lc='no'
15383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15384 hardcode_libdir_separator=:
15385 ;;
15386
15387 osf4* | osf5*) # as osf3* with the addition of -msym flag
15388 if test "$GCC" = yes; then
15389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015390 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 +000015391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15392 else
15393 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015394 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 +000015395 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 +000015396 $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 +000015397
15398 # Both c and cxx compiler support -rpath directly
15399 hardcode_libdir_flag_spec='-rpath $libdir'
15400 fi
15401 archive_cmds_need_lc='no'
15402 hardcode_libdir_separator=:
15403 ;;
15404
15405 solaris*)
15406 no_undefined_flag=' -z defs'
15407 if test "$GCC" = yes; then
15408 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015409 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 +000015410 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 +000015411 $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 +000015412 else
15413 case `$CC -V 2>&1` in
15414 *"Compilers 5.0"*)
15415 wlarc=''
15416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15419 ;;
15420 *)
15421 wlarc='${wl}'
15422 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15424 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15425 ;;
15426 esac
15427 fi
15428 hardcode_libdir_flag_spec='-R$libdir'
15429 hardcode_shlibpath_var=no
15430 case $host_os in
15431 solaris2.[0-5] | solaris2.[0-5].*) ;;
15432 *)
15433 # The compiler driver will combine and reorder linker options,
15434 # but understands `-z linker_flag'. GCC discards it without `$wl',
15435 # but is careful enough not to reorder.
15436 # Supported since Solaris 2.6 (maybe 2.5.1?)
15437 if test "$GCC" = yes; then
15438 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15439 else
15440 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15441 fi
15442 ;;
15443 esac
15444 link_all_deplibs=yes
15445 ;;
15446
15447 sunos4*)
15448 if test "x$host_vendor" = xsequent; then
15449 # Use $CC to link under sequent, because it throws in some extra .o
15450 # files that make .init and .fini sections work.
15451 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15452 else
15453 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15454 fi
15455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_direct=yes
15457 hardcode_minus_L=yes
15458 hardcode_shlibpath_var=no
15459 ;;
15460
15461 sysv4)
15462 case $host_vendor in
15463 sni)
15464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15465 hardcode_direct=yes # is this really true???
15466 ;;
15467 siemens)
15468 ## LD is ld it makes a PLAMLIB
15469 ## CC just makes a GrossModule.
15470 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15471 reload_cmds='$CC -r -o $output$reload_objs'
15472 hardcode_direct=no
15473 ;;
15474 motorola)
15475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15477 ;;
15478 esac
15479 runpath_var='LD_RUN_PATH'
15480 hardcode_shlibpath_var=no
15481 ;;
15482
15483 sysv4.3*)
15484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15485 hardcode_shlibpath_var=no
15486 export_dynamic_flag_spec='-Bexport'
15487 ;;
15488
15489 sysv4*MP*)
15490 if test -d /usr/nec; then
15491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15492 hardcode_shlibpath_var=no
15493 runpath_var=LD_RUN_PATH
15494 hardcode_runpath_var=yes
15495 ld_shlibs=yes
15496 fi
15497 ;;
15498
15499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15500 no_undefined_flag='${wl}-z,text'
15501 archive_cmds_need_lc=no
15502 hardcode_shlibpath_var=no
15503 runpath_var='LD_RUN_PATH'
15504
15505 if test "$GCC" = yes; then
15506 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15508 else
15509 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15510 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15511 fi
15512 ;;
15513
15514 sysv5* | sco3.2v5* | sco5v6*)
15515 # Note: We can NOT use -z defs as we might desire, because we do not
15516 # link with -lc, and that would cause any symbols used from libc to
15517 # always be unresolved, which means just about no library would
15518 # ever link correctly. If we're not using GNU ld we use -z text
15519 # though, which does catch some bad symbols but isn't as heavy-handed
15520 # as -z defs.
15521 no_undefined_flag='${wl}-z,text'
15522 allow_undefined_flag='${wl}-z,nodefs'
15523 archive_cmds_need_lc=no
15524 hardcode_shlibpath_var=no
15525 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15526 hardcode_libdir_separator=':'
15527 link_all_deplibs=yes
15528 export_dynamic_flag_spec='${wl}-Bexport'
15529 runpath_var='LD_RUN_PATH'
15530
15531 if test "$GCC" = yes; then
15532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15534 else
15535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 fi
15538 ;;
15539
15540 uts4*)
15541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_libdir_flag_spec='-L$libdir'
15543 hardcode_shlibpath_var=no
15544 ;;
15545
15546 *)
15547 ld_shlibs=no
15548 ;;
15549 esac
15550
15551 if test x$host_vendor = xsni; then
15552 case $host in
15553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15554 export_dynamic_flag_spec='${wl}-Blargedynsym'
15555 ;;
15556 esac
15557 fi
15558 fi
15559
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15561$as_echo "$ld_shlibs" >&6; }
15562test "$ld_shlibs" = no && can_build_shared=no
15563
15564with_gnu_ld=$with_gnu_ld
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580#
15581# Do we need to explicitly link libc?
15582#
15583case "x$archive_cmds_need_lc" in
15584x|xyes)
15585 # Assume -lc should be added
15586 archive_cmds_need_lc=yes
15587
15588 if test "$enable_shared" = yes && test "$GCC" = yes; then
15589 case $archive_cmds in
15590 *'~'*)
15591 # FIXME: we may have to deal with multi-command sequences.
15592 ;;
15593 '$CC '*)
15594 # Test whether the compiler implicitly links with -lc since on some
15595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15596 # to ld, don't add -lc before -lgcc.
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15598$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015599if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015600 $as_echo_n "(cached) " >&6
15601else
15602 $RM conftest*
15603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015604
cristy0c60a692010-11-04 01:09:47 +000015605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015606 (eval $ac_compile) 2>&5
15607 ac_status=$?
15608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15609 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015610 soname=conftest
15611 lib=conftest
15612 libobjs=conftest.$ac_objext
15613 deplibs=
15614 wl=$lt_prog_compiler_wl
15615 pic_flag=$lt_prog_compiler_pic
15616 compiler_flags=-v
15617 linker_flags=-v
15618 verstring=
15619 output_objdir=.
15620 libname=conftest
15621 lt_save_allow_undefined_flag=$allow_undefined_flag
15622 allow_undefined_flag=
15623 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 +000015624 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15625 ac_status=$?
15626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15627 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015628 then
15629 lt_cv_archive_cmds_need_lc=no
15630 else
15631 lt_cv_archive_cmds_need_lc=yes
15632 fi
15633 allow_undefined_flag=$lt_save_allow_undefined_flag
15634 else
15635 cat conftest.err 1>&5
15636 fi
15637 $RM conftest*
15638
15639fi
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15641$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15642 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015643 ;;
15644 esac
15645 fi
15646 ;;
15647esac
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
cristy73bd4a52010-10-05 11:24:23 +000015800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15801$as_echo_n "checking dynamic linker characteristics... " >&6; }
15802
15803if test "$GCC" = yes; then
15804 case $host_os in
15805 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15806 *) lt_awk_arg="/^libraries:/" ;;
15807 esac
cristy0c60a692010-11-04 01:09:47 +000015808 case $host_os in
15809 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15810 *) lt_sed_strip_eq="s,=/,/,g" ;;
15811 esac
15812 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15813 case $lt_search_path_spec in
15814 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015815 # if the path contains ";" then we assume it to be the separator
15816 # otherwise default to the standard path separator (i.e. ":") - it is
15817 # assumed that no part of a normal pathname contains ";" but that should
15818 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015819 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15820 ;;
15821 *)
15822 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15823 ;;
15824 esac
cristy73bd4a52010-10-05 11:24:23 +000015825 # Ok, now we have the path, separated by spaces, we can step through it
15826 # and add multilib dir if necessary.
15827 lt_tmp_lt_search_path_spec=
15828 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15829 for lt_sys_path in $lt_search_path_spec; do
15830 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15832 else
15833 test -d "$lt_sys_path" && \
15834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15835 fi
15836 done
cristy0c60a692010-11-04 01:09:47 +000015837 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015838BEGIN {RS=" "; FS="/|\n";} {
15839 lt_foo="";
15840 lt_count=0;
15841 for (lt_i = NF; lt_i > 0; lt_i--) {
15842 if ($lt_i != "" && $lt_i != ".") {
15843 if ($lt_i == "..") {
15844 lt_count++;
15845 } else {
15846 if (lt_count == 0) {
15847 lt_foo="/" $lt_i lt_foo;
15848 } else {
15849 lt_count--;
15850 }
15851 }
15852 }
15853 }
15854 if (lt_foo != "") { lt_freq[lt_foo]++; }
15855 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15856}'`
cristy0c60a692010-11-04 01:09:47 +000015857 # AWK program above erroneously prepends '/' to C:/dos/paths
15858 # for these hosts.
15859 case $host_os in
15860 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15861 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15862 esac
15863 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015864else
15865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15866fi
15867library_names_spec=
15868libname_spec='lib$name'
15869soname_spec=
15870shrext_cmds=".so"
15871postinstall_cmds=
15872postuninstall_cmds=
15873finish_cmds=
15874finish_eval=
15875shlibpath_var=
15876shlibpath_overrides_runpath=unknown
15877version_type=none
15878dynamic_linker="$host_os ld.so"
15879sys_lib_dlsearch_path_spec="/lib /usr/lib"
15880need_lib_prefix=unknown
15881hardcode_into_libs=no
15882
15883# when you set need_version to no, make sure it does not cause -set_version
15884# flags to be left without arguments
15885need_version=unknown
15886
15887case $host_os in
15888aix3*)
cristy99bd5232011-12-07 14:38:20 +000015889 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15891 shlibpath_var=LIBPATH
15892
15893 # AIX 3 has no versioning support, so we append a major version to the name.
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 ;;
15896
15897aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015898 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015899 need_lib_prefix=no
15900 need_version=no
15901 hardcode_into_libs=yes
15902 if test "$host_cpu" = ia64; then
15903 # AIX 5 supports IA64
15904 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15905 shlibpath_var=LD_LIBRARY_PATH
15906 else
15907 # With GCC up to 2.95.x, collect2 would create an import file
15908 # for dependence libraries. The import file would start with
15909 # the line `#! .'. This would cause the generated library to
15910 # depend on `.', always an invalid library. This was fixed in
15911 # development snapshots of GCC prior to 3.0.
15912 case $host_os in
15913 aix4 | aix4.[01] | aix4.[01].*)
15914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15915 echo ' yes '
15916 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15917 :
15918 else
15919 can_build_shared=no
15920 fi
15921 ;;
15922 esac
15923 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15924 # soname into executable. Probably we can add versioning support to
15925 # collect2, so additional links can be useful in future.
15926 if test "$aix_use_runtimelinking" = yes; then
15927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15928 # instead of lib<name>.a to let people know that these are not
15929 # typical AIX shared libraries.
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931 else
15932 # We preserve .a as extension for shared libraries through AIX4.2
15933 # and later when we are not doing run time linking.
15934 library_names_spec='${libname}${release}.a $libname.a'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 fi
15937 shlibpath_var=LIBPATH
15938 fi
15939 ;;
15940
15941amigaos*)
15942 case $host_cpu in
15943 powerpc)
15944 # Since July 2007 AmigaOS4 officially supports .so libraries.
15945 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 ;;
15948 m68k)
15949 library_names_spec='$libname.ixlibrary $libname.a'
15950 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015951 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 +000015952 ;;
15953 esac
15954 ;;
15955
15956beos*)
15957 library_names_spec='${libname}${shared_ext}'
15958 dynamic_linker="$host_os ld.so"
15959 shlibpath_var=LIBRARY_PATH
15960 ;;
15961
15962bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015963 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015964 need_version=no
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15968 shlibpath_var=LD_LIBRARY_PATH
15969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15971 # the default ld.so.conf also contains /usr/contrib/lib and
15972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15973 # libtool to hard-code these into programs
15974 ;;
15975
15976cygwin* | mingw* | pw32* | cegcc*)
15977 version_type=windows
15978 shrext_cmds=".dll"
15979 need_version=no
15980 need_lib_prefix=no
15981
cristyda16f162011-02-19 23:52:17 +000015982 case $GCC,$cc_basename in
15983 yes,*)
15984 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015985 library_names_spec='$libname.dll.a'
15986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15987 postinstall_cmds='base_file=`basename \${file}`~
15988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15989 dldir=$destdir/`dirname \$dlpath`~
15990 test -d \$dldir || mkdir -p \$dldir~
15991 $install_prog $dir/$dlname \$dldir/$dlname~
15992 chmod a+x \$dldir/$dlname~
15993 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15994 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15995 fi'
15996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15997 dlpath=$dir/\$dldll~
15998 $RM \$dlpath'
15999 shlibpath_overrides_runpath=yes
16000
16001 case $host_os in
16002 cygwin*)
16003 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16004 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016005
16006 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016007 ;;
16008 mingw* | cegcc*)
16009 # MinGW DLLs use traditional 'lib' prefix
16010 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016011 ;;
16012 pw32*)
16013 # pw32 DLLs use 'pw' prefix rather than 'lib'
16014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16015 ;;
16016 esac
cristyda16f162011-02-19 23:52:17 +000016017 dynamic_linker='Win32 ld.exe'
16018 ;;
16019
16020 *,cl*)
16021 # Native MSVC
16022 libname_spec='$name'
16023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16024 library_names_spec='${libname}.dll.lib'
16025
16026 case $build_os in
16027 mingw*)
16028 sys_lib_search_path_spec=
16029 lt_save_ifs=$IFS
16030 IFS=';'
16031 for lt_path in $LIB
16032 do
16033 IFS=$lt_save_ifs
16034 # Let DOS variable expansion print the short 8.3 style file name.
16035 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16036 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16037 done
16038 IFS=$lt_save_ifs
16039 # Convert to MSYS style.
16040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16041 ;;
16042 cygwin*)
16043 # Convert to unix form, then to dos form, then back to unix form
16044 # but this time dos style (no spaces!) so that the unix form looks
16045 # like /cygdrive/c/PROGRA~1:/cygdr...
16046 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16047 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16048 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16049 ;;
16050 *)
16051 sys_lib_search_path_spec="$LIB"
16052 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16053 # It is most probably a Windows format PATH.
16054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16055 else
16056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16057 fi
16058 # FIXME: find the short name or the path components, as spaces are
16059 # common. (e.g. "Program Files" -> "PROGRA~1")
16060 ;;
16061 esac
16062
16063 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16064 postinstall_cmds='base_file=`basename \${file}`~
16065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16066 dldir=$destdir/`dirname \$dlpath`~
16067 test -d \$dldir || mkdir -p \$dldir~
16068 $install_prog $dir/$dlname \$dldir/$dlname'
16069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16070 dlpath=$dir/\$dldll~
16071 $RM \$dlpath'
16072 shlibpath_overrides_runpath=yes
16073 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016074 ;;
16075
16076 *)
cristyda16f162011-02-19 23:52:17 +000016077 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016079 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016080 ;;
16081 esac
cristy73bd4a52010-10-05 11:24:23 +000016082 # FIXME: first we should search . and the directory the executable is in
16083 shlibpath_var=PATH
16084 ;;
16085
16086darwin* | rhapsody*)
16087 dynamic_linker="$host_os dyld"
16088 version_type=darwin
16089 need_lib_prefix=no
16090 need_version=no
16091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16092 soname_spec='${libname}${release}${major}$shared_ext'
16093 shlibpath_overrides_runpath=yes
16094 shlibpath_var=DYLD_LIBRARY_PATH
16095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16096
16097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16099 ;;
16100
16101dgux*)
cristy99bd5232011-12-07 14:38:20 +000016102 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016103 need_lib_prefix=no
16104 need_version=no
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16106 soname_spec='${libname}${release}${shared_ext}$major'
16107 shlibpath_var=LD_LIBRARY_PATH
16108 ;;
16109
cristy73bd4a52010-10-05 11:24:23 +000016110freebsd* | dragonfly*)
16111 # DragonFly does not have aout. When/if they implement a new
16112 # versioning mechanism, adjust this.
16113 if test -x /usr/bin/objformat; then
16114 objformat=`/usr/bin/objformat`
16115 else
16116 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016117 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016118 *) objformat=elf ;;
16119 esac
16120 fi
16121 version_type=freebsd-$objformat
16122 case $version_type in
16123 freebsd-elf*)
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16125 need_version=no
16126 need_lib_prefix=no
16127 ;;
16128 freebsd-*)
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16130 need_version=yes
16131 ;;
16132 esac
16133 shlibpath_var=LD_LIBRARY_PATH
16134 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016135 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016136 shlibpath_overrides_runpath=yes
16137 ;;
16138 freebsd3.[01]* | freebsdelf3.[01]*)
16139 shlibpath_overrides_runpath=yes
16140 hardcode_into_libs=yes
16141 ;;
16142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16144 shlibpath_overrides_runpath=no
16145 hardcode_into_libs=yes
16146 ;;
16147 *) # from 4.6 on, and DragonFly
16148 shlibpath_overrides_runpath=yes
16149 hardcode_into_libs=yes
16150 ;;
16151 esac
16152 ;;
16153
16154gnu*)
cristy99bd5232011-12-07 14:38:20 +000016155 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016156 need_lib_prefix=no
16157 need_version=no
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16159 soname_spec='${libname}${release}${shared_ext}$major'
16160 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016161 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016162 hardcode_into_libs=yes
16163 ;;
16164
cristy0c60a692010-11-04 01:09:47 +000016165haiku*)
cristy99bd5232011-12-07 14:38:20 +000016166 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016167 need_lib_prefix=no
16168 need_version=no
16169 dynamic_linker="$host_os runtime_loader"
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LIBRARY_PATH
16173 shlibpath_overrides_runpath=yes
16174 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16175 hardcode_into_libs=yes
16176 ;;
16177
cristy73bd4a52010-10-05 11:24:23 +000016178hpux9* | hpux10* | hpux11*)
16179 # Give a soname corresponding to the major version so that dld.sl refuses to
16180 # link against other versions.
16181 version_type=sunos
16182 need_lib_prefix=no
16183 need_version=no
16184 case $host_cpu in
16185 ia64*)
16186 shrext_cmds='.so'
16187 hardcode_into_libs=yes
16188 dynamic_linker="$host_os dld.so"
16189 shlibpath_var=LD_LIBRARY_PATH
16190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192 soname_spec='${libname}${release}${shared_ext}$major'
16193 if test "X$HPUX_IA64_MODE" = X32; then
16194 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16195 else
16196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16197 fi
16198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16199 ;;
16200 hppa*64*)
16201 shrext_cmds='.sl'
16202 hardcode_into_libs=yes
16203 dynamic_linker="$host_os dld.sl"
16204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207 soname_spec='${libname}${release}${shared_ext}$major'
16208 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16210 ;;
16211 *)
16212 shrext_cmds='.sl'
16213 dynamic_linker="$host_os dld.sl"
16214 shlibpath_var=SHLIB_PATH
16215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 ;;
16219 esac
cristy0c60a692010-11-04 01:09:47 +000016220 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016221 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016222 # or fails outright, so override atomically:
16223 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016224 ;;
16225
16226interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016227 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016228 need_lib_prefix=no
16229 need_version=no
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16233 shlibpath_var=LD_LIBRARY_PATH
16234 shlibpath_overrides_runpath=no
16235 hardcode_into_libs=yes
16236 ;;
16237
16238irix5* | irix6* | nonstopux*)
16239 case $host_os in
16240 nonstopux*) version_type=nonstopux ;;
16241 *)
16242 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016243 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016244 else
16245 version_type=irix
16246 fi ;;
16247 esac
16248 need_lib_prefix=no
16249 need_version=no
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16252 case $host_os in
16253 irix5* | nonstopux*)
16254 libsuff= shlibsuff=
16255 ;;
16256 *)
16257 case $LD in # libtool.m4 will add one of these switches to LD
16258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16259 libsuff= shlibsuff= libmagic=32-bit;;
16260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16261 libsuff=32 shlibsuff=N32 libmagic=N32;;
16262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16264 *) libsuff= shlibsuff= libmagic=never-match;;
16265 esac
16266 ;;
16267 esac
16268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16269 shlibpath_overrides_runpath=no
16270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16272 hardcode_into_libs=yes
16273 ;;
16274
16275# No shared lib support for Linux oldld, aout, or coff.
16276linux*oldld* | linux*aout* | linux*coff*)
16277 dynamic_linker=no
16278 ;;
16279
cristy99bd5232011-12-07 14:38:20 +000016280# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016281linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016282 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016283 need_lib_prefix=no
16284 need_version=no
16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016290
cristy73bd4a52010-10-05 11:24:23 +000016291 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016292 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016293 $as_echo_n "(cached) " >&6
16294else
16295 lt_cv_shlibpath_overrides_runpath=no
16296 save_LDFLAGS=$LDFLAGS
16297 save_libdir=$libdir
16298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016301/* end confdefs.h. */
16302
16303int
16304main ()
16305{
16306
16307 ;
16308 return 0;
16309}
16310_ACEOF
16311if ac_fn_c_try_link "$LINENO"; then :
16312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016313 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016314fi
16315fi
16316rm -f core conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016318 LDFLAGS=$save_LDFLAGS
16319 libdir=$save_libdir
16320
16321fi
16322
16323 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016324
16325 # This implies no fast_install, which is unacceptable.
16326 # Some rework will be needed to allow for fast_install
16327 # before this can be enabled.
16328 hardcode_into_libs=yes
16329
16330 # Add ABI-specific directories to the system library path.
16331 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16332
16333 # Append ld.so.conf contents to the search path
16334 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016335 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 +000016336 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016337
cristy73bd4a52010-10-05 11:24:23 +000016338 fi
16339
16340 # We used to test for /lib/ld.so.1 and disable shared libraries on
16341 # powerpc, because MkLinux only supported shared libraries with the
16342 # GNU dynamic linker. Since this was broken with cross compilers,
16343 # most powerpc-linux boxes support dynamic linking these days and
16344 # people can always --disable-shared, the test was removed, and we
16345 # assume the GNU/Linux dynamic linker is in use.
16346 dynamic_linker='GNU/Linux ld.so'
16347 ;;
16348
16349netbsd*)
16350 version_type=sunos
16351 need_lib_prefix=no
16352 need_version=no
16353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356 dynamic_linker='NetBSD (a.out) ld.so'
16357 else
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 dynamic_linker='NetBSD ld.elf_so'
16361 fi
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=yes
16364 hardcode_into_libs=yes
16365 ;;
16366
16367newsos6)
cristy99bd5232011-12-07 14:38:20 +000016368 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=yes
16372 ;;
16373
16374*nto* | *qnx*)
16375 version_type=qnx
16376 need_lib_prefix=no
16377 need_version=no
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=no
16382 hardcode_into_libs=yes
16383 dynamic_linker='ldqnx.so'
16384 ;;
16385
16386openbsd*)
16387 version_type=sunos
16388 sys_lib_dlsearch_path_spec="/usr/lib"
16389 need_lib_prefix=no
16390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16391 case $host_os in
16392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16393 *) need_version=no ;;
16394 esac
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16399 case $host_os in
16400 openbsd2.[89] | openbsd2.[89].*)
16401 shlibpath_overrides_runpath=no
16402 ;;
16403 *)
16404 shlibpath_overrides_runpath=yes
16405 ;;
16406 esac
16407 else
16408 shlibpath_overrides_runpath=yes
16409 fi
16410 ;;
16411
16412os2*)
16413 libname_spec='$name'
16414 shrext_cmds=".dll"
16415 need_lib_prefix=no
16416 library_names_spec='$libname${shared_ext} $libname.a'
16417 dynamic_linker='OS/2 ld.exe'
16418 shlibpath_var=LIBPATH
16419 ;;
16420
16421osf3* | osf4* | osf5*)
16422 version_type=osf
16423 need_lib_prefix=no
16424 need_version=no
16425 soname_spec='${libname}${release}${shared_ext}$major'
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16430 ;;
16431
16432rdos*)
16433 dynamic_linker=no
16434 ;;
16435
16436solaris*)
cristy99bd5232011-12-07 14:38:20 +000016437 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016438 need_lib_prefix=no
16439 need_version=no
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 shlibpath_overrides_runpath=yes
16444 hardcode_into_libs=yes
16445 # ldd complains unless libraries are executable
16446 postinstall_cmds='chmod +x $lib'
16447 ;;
16448
16449sunos4*)
16450 version_type=sunos
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16453 shlibpath_var=LD_LIBRARY_PATH
16454 shlibpath_overrides_runpath=yes
16455 if test "$with_gnu_ld" = yes; then
16456 need_lib_prefix=no
16457 fi
16458 need_version=yes
16459 ;;
16460
16461sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016462 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 case $host_vendor in
16467 sni)
16468 shlibpath_overrides_runpath=no
16469 need_lib_prefix=no
16470 runpath_var=LD_RUN_PATH
16471 ;;
16472 siemens)
16473 need_lib_prefix=no
16474 ;;
16475 motorola)
16476 need_lib_prefix=no
16477 need_version=no
16478 shlibpath_overrides_runpath=no
16479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16480 ;;
16481 esac
16482 ;;
16483
16484sysv4*MP*)
16485 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016486 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16488 soname_spec='$libname${shared_ext}.$major'
16489 shlibpath_var=LD_LIBRARY_PATH
16490 fi
16491 ;;
16492
16493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16494 version_type=freebsd-elf
16495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 shlibpath_overrides_runpath=yes
16501 hardcode_into_libs=yes
16502 if test "$with_gnu_ld" = yes; then
16503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16504 else
16505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16506 case $host_os in
16507 sco3.2v5*)
16508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16509 ;;
16510 esac
16511 fi
16512 sys_lib_dlsearch_path_spec='/usr/lib'
16513 ;;
16514
16515tpf*)
16516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016517 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016518 need_lib_prefix=no
16519 need_version=no
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath=no
16523 hardcode_into_libs=yes
16524 ;;
16525
16526uts4*)
cristy99bd5232011-12-07 14:38:20 +000016527 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 ;;
16532
16533*)
16534 dynamic_linker=no
16535 ;;
16536esac
16537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16538$as_echo "$dynamic_linker" >&6; }
16539test "$dynamic_linker" = no && can_build_shared=no
16540
16541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16542if test "$GCC" = yes; then
16543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16544fi
16545
16546if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16548fi
16549if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16551fi
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
cristy0c60a692010-11-04 01:09:47 +000016639
16640
16641
16642
16643
cristy73bd4a52010-10-05 11:24:23 +000016644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16645$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16646hardcode_action=
16647if test -n "$hardcode_libdir_flag_spec" ||
16648 test -n "$runpath_var" ||
16649 test "X$hardcode_automatic" = "Xyes" ; then
16650
16651 # We can hardcode non-existent directories.
16652 if test "$hardcode_direct" != no &&
16653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16654 # have to relink, otherwise we might link with an installed library
16655 # when we should be linking with a yet-to-be-installed one
16656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16657 test "$hardcode_minus_L" != no; then
16658 # Linking always hardcodes the temporary library directory.
16659 hardcode_action=relink
16660 else
16661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16662 hardcode_action=immediate
16663 fi
16664else
16665 # We cannot hardcode anything, or else we can only hardcode existing
16666 # directories.
16667 hardcode_action=unsupported
16668fi
16669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16670$as_echo "$hardcode_action" >&6; }
16671
16672if test "$hardcode_action" = relink ||
16673 test "$inherit_rpath" = yes; then
16674 # Fast installation is not supported
16675 enable_fast_install=no
16676elif test "$shlibpath_overrides_runpath" = yes ||
16677 test "$enable_shared" = no; then
16678 # Fast installation is not necessary
16679 enable_fast_install=needless
16680fi
16681
16682
16683
16684
16685
16686
16687 if test "x$enable_dlopen" != xyes; then
16688 enable_dlopen=unknown
16689 enable_dlopen_self=unknown
16690 enable_dlopen_self_static=unknown
16691else
16692 lt_cv_dlopen=no
16693 lt_cv_dlopen_libs=
16694
16695 case $host_os in
16696 beos*)
16697 lt_cv_dlopen="load_add_on"
16698 lt_cv_dlopen_libs=
16699 lt_cv_dlopen_self=yes
16700 ;;
16701
16702 mingw* | pw32* | cegcc*)
16703 lt_cv_dlopen="LoadLibrary"
16704 lt_cv_dlopen_libs=
16705 ;;
16706
16707 cygwin*)
16708 lt_cv_dlopen="dlopen"
16709 lt_cv_dlopen_libs=
16710 ;;
16711
16712 darwin*)
16713 # if libdl is installed we need to link against it
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16715$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016716if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016717 $as_echo_n "(cached) " >&6
16718else
16719 ac_check_lib_save_LIBS=$LIBS
16720LIBS="-ldl $LIBS"
16721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722/* end confdefs.h. */
16723
16724/* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16727#ifdef __cplusplus
16728extern "C"
16729#endif
16730char dlopen ();
16731int
16732main ()
16733{
16734return dlopen ();
16735 ;
16736 return 0;
16737}
16738_ACEOF
16739if ac_fn_c_try_link "$LINENO"; then :
16740 ac_cv_lib_dl_dlopen=yes
16741else
16742 ac_cv_lib_dl_dlopen=no
16743fi
16744rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16746LIBS=$ac_check_lib_save_LIBS
16747fi
16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16749$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016750if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16752else
16753
16754 lt_cv_dlopen="dyld"
16755 lt_cv_dlopen_libs=
16756 lt_cv_dlopen_self=yes
16757
16758fi
16759
16760 ;;
16761
16762 *)
16763 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016764if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016765 lt_cv_dlopen="shl_load"
16766else
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16768$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016769if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016770 $as_echo_n "(cached) " >&6
16771else
16772 ac_check_lib_save_LIBS=$LIBS
16773LIBS="-ldld $LIBS"
16774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775/* end confdefs.h. */
16776
16777/* Override any GCC internal prototype to avoid an error.
16778 Use char because int might match the return type of a GCC
16779 builtin and then its argument prototype would still apply. */
16780#ifdef __cplusplus
16781extern "C"
16782#endif
16783char shl_load ();
16784int
16785main ()
16786{
16787return shl_load ();
16788 ;
16789 return 0;
16790}
16791_ACEOF
16792if ac_fn_c_try_link "$LINENO"; then :
16793 ac_cv_lib_dld_shl_load=yes
16794else
16795 ac_cv_lib_dld_shl_load=no
16796fi
16797rm -f core conftest.err conftest.$ac_objext \
16798 conftest$ac_exeext conftest.$ac_ext
16799LIBS=$ac_check_lib_save_LIBS
16800fi
16801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16802$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016803if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16805else
16806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016807if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016808 lt_cv_dlopen="dlopen"
16809else
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16811$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016812if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016813 $as_echo_n "(cached) " >&6
16814else
16815 ac_check_lib_save_LIBS=$LIBS
16816LIBS="-ldl $LIBS"
16817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818/* end confdefs.h. */
16819
16820/* Override any GCC internal prototype to avoid an error.
16821 Use char because int might match the return type of a GCC
16822 builtin and then its argument prototype would still apply. */
16823#ifdef __cplusplus
16824extern "C"
16825#endif
16826char dlopen ();
16827int
16828main ()
16829{
16830return dlopen ();
16831 ;
16832 return 0;
16833}
16834_ACEOF
16835if ac_fn_c_try_link "$LINENO"; then :
16836 ac_cv_lib_dl_dlopen=yes
16837else
16838 ac_cv_lib_dl_dlopen=no
16839fi
16840rm -f core conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16842LIBS=$ac_check_lib_save_LIBS
16843fi
16844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16845$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016846if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16848else
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16850$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016851if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016852 $as_echo_n "(cached) " >&6
16853else
16854 ac_check_lib_save_LIBS=$LIBS
16855LIBS="-lsvld $LIBS"
16856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857/* end confdefs.h. */
16858
16859/* Override any GCC internal prototype to avoid an error.
16860 Use char because int might match the return type of a GCC
16861 builtin and then its argument prototype would still apply. */
16862#ifdef __cplusplus
16863extern "C"
16864#endif
16865char dlopen ();
16866int
16867main ()
16868{
16869return dlopen ();
16870 ;
16871 return 0;
16872}
16873_ACEOF
16874if ac_fn_c_try_link "$LINENO"; then :
16875 ac_cv_lib_svld_dlopen=yes
16876else
16877 ac_cv_lib_svld_dlopen=no
16878fi
16879rm -f core conftest.err conftest.$ac_objext \
16880 conftest$ac_exeext conftest.$ac_ext
16881LIBS=$ac_check_lib_save_LIBS
16882fi
16883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16884$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016885if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16887else
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16889$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016890if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016891 $as_echo_n "(cached) " >&6
16892else
16893 ac_check_lib_save_LIBS=$LIBS
16894LIBS="-ldld $LIBS"
16895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896/* end confdefs.h. */
16897
16898/* Override any GCC internal prototype to avoid an error.
16899 Use char because int might match the return type of a GCC
16900 builtin and then its argument prototype would still apply. */
16901#ifdef __cplusplus
16902extern "C"
16903#endif
16904char dld_link ();
16905int
16906main ()
16907{
16908return dld_link ();
16909 ;
16910 return 0;
16911}
16912_ACEOF
16913if ac_fn_c_try_link "$LINENO"; then :
16914 ac_cv_lib_dld_dld_link=yes
16915else
16916 ac_cv_lib_dld_dld_link=no
16917fi
16918rm -f core conftest.err conftest.$ac_objext \
16919 conftest$ac_exeext conftest.$ac_ext
16920LIBS=$ac_check_lib_save_LIBS
16921fi
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16923$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016924if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16926fi
16927
16928
16929fi
16930
16931
16932fi
16933
16934
16935fi
16936
16937
16938fi
16939
16940
16941fi
16942
16943 ;;
16944 esac
16945
16946 if test "x$lt_cv_dlopen" != xno; then
16947 enable_dlopen=yes
16948 else
16949 enable_dlopen=no
16950 fi
16951
16952 case $lt_cv_dlopen in
16953 dlopen)
16954 save_CPPFLAGS="$CPPFLAGS"
16955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16956
16957 save_LDFLAGS="$LDFLAGS"
16958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16959
16960 save_LIBS="$LIBS"
16961 LIBS="$lt_cv_dlopen_libs $LIBS"
16962
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16964$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016965if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016966 $as_echo_n "(cached) " >&6
16967else
16968 if test "$cross_compiling" = yes; then :
16969 lt_cv_dlopen_self=cross
16970else
16971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16972 lt_status=$lt_dlunknown
16973 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016974#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016975#include "confdefs.h"
16976
16977#if HAVE_DLFCN_H
16978#include <dlfcn.h>
16979#endif
16980
16981#include <stdio.h>
16982
16983#ifdef RTLD_GLOBAL
16984# define LT_DLGLOBAL RTLD_GLOBAL
16985#else
16986# ifdef DL_GLOBAL
16987# define LT_DLGLOBAL DL_GLOBAL
16988# else
16989# define LT_DLGLOBAL 0
16990# endif
16991#endif
16992
16993/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16994 find out it does not work in some platform. */
16995#ifndef LT_DLLAZY_OR_NOW
16996# ifdef RTLD_LAZY
16997# define LT_DLLAZY_OR_NOW RTLD_LAZY
16998# else
16999# ifdef DL_LAZY
17000# define LT_DLLAZY_OR_NOW DL_LAZY
17001# else
17002# ifdef RTLD_NOW
17003# define LT_DLLAZY_OR_NOW RTLD_NOW
17004# else
17005# ifdef DL_NOW
17006# define LT_DLLAZY_OR_NOW DL_NOW
17007# else
17008# define LT_DLLAZY_OR_NOW 0
17009# endif
17010# endif
17011# endif
17012# endif
17013#endif
17014
cristy0c60a692010-11-04 01:09:47 +000017015/* When -fvisbility=hidden is used, assume the code has been annotated
17016 correspondingly for the symbols needed. */
17017#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017018int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017019#endif
17020
cristyda16f162011-02-19 23:52:17 +000017021int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017022int main ()
17023{
17024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17025 int status = $lt_dlunknown;
17026
17027 if (self)
17028 {
17029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017030 else
17031 {
17032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17033 else puts (dlerror ());
17034 }
cristy73bd4a52010-10-05 11:24:23 +000017035 /* dlclose (self); */
17036 }
17037 else
17038 puts (dlerror ());
17039
17040 return status;
17041}
17042_LT_EOF
17043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17044 (eval $ac_link) 2>&5
17045 ac_status=$?
17046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17048 (./conftest; exit; ) >&5 2>/dev/null
17049 lt_status=$?
17050 case x$lt_status in
17051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17054 esac
17055 else :
17056 # compilation failed
17057 lt_cv_dlopen_self=no
17058 fi
17059fi
17060rm -fr conftest*
17061
17062
17063fi
17064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17065$as_echo "$lt_cv_dlopen_self" >&6; }
17066
17067 if test "x$lt_cv_dlopen_self" = xyes; then
17068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17070$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017071if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017072 $as_echo_n "(cached) " >&6
17073else
17074 if test "$cross_compiling" = yes; then :
17075 lt_cv_dlopen_self_static=cross
17076else
17077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17078 lt_status=$lt_dlunknown
17079 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017080#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017081#include "confdefs.h"
17082
17083#if HAVE_DLFCN_H
17084#include <dlfcn.h>
17085#endif
17086
17087#include <stdio.h>
17088
17089#ifdef RTLD_GLOBAL
17090# define LT_DLGLOBAL RTLD_GLOBAL
17091#else
17092# ifdef DL_GLOBAL
17093# define LT_DLGLOBAL DL_GLOBAL
17094# else
17095# define LT_DLGLOBAL 0
17096# endif
17097#endif
17098
17099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17100 find out it does not work in some platform. */
17101#ifndef LT_DLLAZY_OR_NOW
17102# ifdef RTLD_LAZY
17103# define LT_DLLAZY_OR_NOW RTLD_LAZY
17104# else
17105# ifdef DL_LAZY
17106# define LT_DLLAZY_OR_NOW DL_LAZY
17107# else
17108# ifdef RTLD_NOW
17109# define LT_DLLAZY_OR_NOW RTLD_NOW
17110# else
17111# ifdef DL_NOW
17112# define LT_DLLAZY_OR_NOW DL_NOW
17113# else
17114# define LT_DLLAZY_OR_NOW 0
17115# endif
17116# endif
17117# endif
17118# endif
17119#endif
17120
cristy0c60a692010-11-04 01:09:47 +000017121/* When -fvisbility=hidden is used, assume the code has been annotated
17122 correspondingly for the symbols needed. */
17123#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017124int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017125#endif
17126
cristyda16f162011-02-19 23:52:17 +000017127int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017128int main ()
17129{
17130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17131 int status = $lt_dlunknown;
17132
17133 if (self)
17134 {
17135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017136 else
17137 {
17138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17139 else puts (dlerror ());
17140 }
cristy73bd4a52010-10-05 11:24:23 +000017141 /* dlclose (self); */
17142 }
17143 else
17144 puts (dlerror ());
17145
17146 return status;
17147}
17148_LT_EOF
17149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17150 (eval $ac_link) 2>&5
17151 ac_status=$?
17152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17154 (./conftest; exit; ) >&5 2>/dev/null
17155 lt_status=$?
17156 case x$lt_status in
17157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17160 esac
17161 else :
17162 # compilation failed
17163 lt_cv_dlopen_self_static=no
17164 fi
17165fi
17166rm -fr conftest*
17167
17168
17169fi
17170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17171$as_echo "$lt_cv_dlopen_self_static" >&6; }
17172 fi
17173
17174 CPPFLAGS="$save_CPPFLAGS"
17175 LDFLAGS="$save_LDFLAGS"
17176 LIBS="$save_LIBS"
17177 ;;
17178 esac
17179
17180 case $lt_cv_dlopen_self in
17181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17182 *) enable_dlopen_self=unknown ;;
17183 esac
17184
17185 case $lt_cv_dlopen_self_static in
17186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17187 *) enable_dlopen_self_static=unknown ;;
17188 esac
17189fi
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207striplib=
17208old_striplib=
17209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17210$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17211if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17215$as_echo "yes" >&6; }
17216else
17217# FIXME - insert some real tests, host_os isn't really good enough
17218 case $host_os in
17219 darwin*)
17220 if test -n "$STRIP" ; then
17221 striplib="$STRIP -x"
17222 old_striplib="$STRIP -S"
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17224$as_echo "yes" >&6; }
17225 else
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227$as_echo "no" >&6; }
17228 fi
17229 ;;
17230 *)
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17232$as_echo "no" >&6; }
17233 ;;
17234 esac
17235fi
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248 # Report which library types will actually be built
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17250$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17252$as_echo "$can_build_shared" >&6; }
17253
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17255$as_echo_n "checking whether to build shared libraries... " >&6; }
17256 test "$can_build_shared" = "no" && enable_shared=no
17257
17258 # On AIX, shared libraries and static libraries use the same namespace, and
17259 # are all built from PIC.
17260 case $host_os in
17261 aix3*)
17262 test "$enable_shared" = yes && enable_static=no
17263 if test -n "$RANLIB"; then
17264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17265 postinstall_cmds='$RANLIB $lib'
17266 fi
17267 ;;
17268
17269 aix[4-9]*)
17270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17271 test "$enable_shared" = yes && enable_static=no
17272 fi
17273 ;;
17274 esac
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17276$as_echo "$enable_shared" >&6; }
17277
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17279$as_echo_n "checking whether to build static libraries... " >&6; }
17280 # Make sure either enable_shared or enable_static is yes.
17281 test "$enable_shared" = yes || enable_static=yes
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17283$as_echo "$enable_static" >&6; }
17284
17285
17286
17287
17288fi
17289ac_ext=c
17290ac_cpp='$CPP $CPPFLAGS'
17291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17293ac_compiler_gnu=$ac_cv_c_compiler_gnu
17294
17295CC="$lt_save_CC"
17296
cristy0c60a692010-11-04 01:09:47 +000017297 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17298 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17299 (test "X$CXX" != "Xg++"))) ; then
17300 ac_ext=cpp
17301ac_cpp='$CXXCPP $CPPFLAGS'
17302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17306$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17307if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017308 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017309 $as_echo_n "(cached) " >&6
17310else
17311 # Double quotes because CXXCPP needs to be expanded
17312 for CXXCPP in "$CXX -E" "/lib/cpp"
17313 do
17314 ac_preproc_ok=false
17315for ac_cxx_preproc_warn_flag in '' yes
17316do
17317 # Use a header file that comes with gcc, so configuring glibc
17318 # with a fresh cross-compiler works.
17319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 # <limits.h> exists even on freestanding compilers.
17321 # On the NeXT, cc -E runs the code through the compiler's parser,
17322 # not just through cpp. "Syntax error" is here to catch this case.
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324/* end confdefs.h. */
17325#ifdef __STDC__
17326# include <limits.h>
17327#else
17328# include <assert.h>
17329#endif
17330 Syntax error
17331_ACEOF
17332if ac_fn_cxx_try_cpp "$LINENO"; then :
17333
17334else
17335 # Broken: fails on valid input.
17336continue
17337fi
cristyda16f162011-02-19 23:52:17 +000017338rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017339
17340 # OK, works on sane cases. Now check whether nonexistent headers
17341 # can be detected and how.
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h. */
17344#include <ac_nonexistent.h>
17345_ACEOF
17346if ac_fn_cxx_try_cpp "$LINENO"; then :
17347 # Broken: success on invalid input.
17348continue
17349else
17350 # Passes both tests.
17351ac_preproc_ok=:
17352break
17353fi
cristyda16f162011-02-19 23:52:17 +000017354rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017355
17356done
17357# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017358rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017359if $ac_preproc_ok; then :
17360 break
17361fi
17362
17363 done
17364 ac_cv_prog_CXXCPP=$CXXCPP
17365
17366fi
17367 CXXCPP=$ac_cv_prog_CXXCPP
17368else
17369 ac_cv_prog_CXXCPP=$CXXCPP
17370fi
17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17372$as_echo "$CXXCPP" >&6; }
17373ac_preproc_ok=false
17374for ac_cxx_preproc_warn_flag in '' yes
17375do
17376 # Use a header file that comes with gcc, so configuring glibc
17377 # with a fresh cross-compiler works.
17378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 # <limits.h> exists even on freestanding compilers.
17380 # On the NeXT, cc -E runs the code through the compiler's parser,
17381 # not just through cpp. "Syntax error" is here to catch this case.
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383/* end confdefs.h. */
17384#ifdef __STDC__
17385# include <limits.h>
17386#else
17387# include <assert.h>
17388#endif
17389 Syntax error
17390_ACEOF
17391if ac_fn_cxx_try_cpp "$LINENO"; then :
17392
17393else
17394 # Broken: fails on valid input.
17395continue
17396fi
cristyda16f162011-02-19 23:52:17 +000017397rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017398
17399 # OK, works on sane cases. Now check whether nonexistent headers
17400 # can be detected and how.
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402/* end confdefs.h. */
17403#include <ac_nonexistent.h>
17404_ACEOF
17405if ac_fn_cxx_try_cpp "$LINENO"; then :
17406 # Broken: success on invalid input.
17407continue
17408else
17409 # Passes both tests.
17410ac_preproc_ok=:
17411break
17412fi
cristyda16f162011-02-19 23:52:17 +000017413rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017414
17415done
17416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017417rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017418if $ac_preproc_ok; then :
17419
17420else
17421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17423as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17424See \`config.log' for more details" "$LINENO" 5; }
17425fi
17426
17427ac_ext=c
17428ac_cpp='$CPP $CPPFLAGS'
17429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17431ac_compiler_gnu=$ac_cv_c_compiler_gnu
17432
17433else
17434 _lt_caught_CXX_error=yes
17435fi
cristy73bd4a52010-10-05 11:24:23 +000017436
17437ac_ext=cpp
17438ac_cpp='$CXXCPP $CPPFLAGS'
17439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17442
17443archive_cmds_need_lc_CXX=no
17444allow_undefined_flag_CXX=
17445always_export_symbols_CXX=no
17446archive_expsym_cmds_CXX=
17447compiler_needs_object_CXX=no
17448export_dynamic_flag_spec_CXX=
17449hardcode_direct_CXX=no
17450hardcode_direct_absolute_CXX=no
17451hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017452hardcode_libdir_separator_CXX=
17453hardcode_minus_L_CXX=no
17454hardcode_shlibpath_var_CXX=unsupported
17455hardcode_automatic_CXX=no
17456inherit_rpath_CXX=no
17457module_cmds_CXX=
17458module_expsym_cmds_CXX=
17459link_all_deplibs_CXX=unknown
17460old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017461reload_flag_CXX=$reload_flag
17462reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017463no_undefined_flag_CXX=
17464whole_archive_flag_spec_CXX=
17465enable_shared_with_static_runtimes_CXX=no
17466
17467# Source file extension for C++ test sources.
17468ac_ext=cpp
17469
17470# Object file extension for compiled C++ test sources.
17471objext=o
17472objext_CXX=$objext
17473
17474# No sense in running all these tests if we already determined that
17475# the CXX compiler isn't working. Some variables (like enable_shared)
17476# are currently assumed to apply to all compilers on this platform,
17477# and will be corrupted by setting them based on a non-working compiler.
17478if test "$_lt_caught_CXX_error" != yes; then
17479 # Code to be used in simple compile tests
17480 lt_simple_compile_test_code="int some_variable = 0;"
17481
17482 # Code to be used in simple link tests
17483 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17484
17485 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17486
17487
17488
17489
17490
17491
17492# If no C compiler was specified, use CC.
17493LTCC=${LTCC-"$CC"}
17494
17495# If no C compiler flags were specified, use CFLAGS.
17496LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17497
17498# Allow CC to be a program name with arguments.
17499compiler=$CC
17500
17501
17502 # save warnings/boilerplate of simple test code
17503 ac_outfile=conftest.$ac_objext
17504echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17505eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17506_lt_compiler_boilerplate=`cat conftest.err`
17507$RM conftest*
17508
17509 ac_outfile=conftest.$ac_objext
17510echo "$lt_simple_link_test_code" >conftest.$ac_ext
17511eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17512_lt_linker_boilerplate=`cat conftest.err`
17513$RM -r conftest*
17514
17515
17516 # Allow CC to be a program name with arguments.
17517 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017518 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017519 lt_save_LD=$LD
17520 lt_save_GCC=$GCC
17521 GCC=$GXX
17522 lt_save_with_gnu_ld=$with_gnu_ld
17523 lt_save_path_LD=$lt_cv_path_LD
17524 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17525 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17526 else
17527 $as_unset lt_cv_prog_gnu_ld
17528 fi
17529 if test -n "${lt_cv_path_LDCXX+set}"; then
17530 lt_cv_path_LD=$lt_cv_path_LDCXX
17531 else
17532 $as_unset lt_cv_path_LD
17533 fi
17534 test -z "${LDCXX+set}" || LD=$LDCXX
17535 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017536 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017537 compiler=$CC
17538 compiler_CXX=$CC
17539 for cc_temp in $compiler""; do
17540 case $cc_temp in
17541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17543 \-*) ;;
17544 *) break;;
17545 esac
17546done
cristy0c60a692010-11-04 01:09:47 +000017547cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017548
17549
17550 if test -n "$compiler"; then
17551 # We don't want -fno-exception when compiling C++ code, so set the
17552 # no_builtin_flag separately
17553 if test "$GXX" = yes; then
17554 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17555 else
17556 lt_prog_compiler_no_builtin_flag_CXX=
17557 fi
17558
17559 if test "$GXX" = yes; then
17560 # Set up default GNU C++ configuration
17561
17562
17563
17564# Check whether --with-gnu-ld was given.
17565if test "${with_gnu_ld+set}" = set; then :
17566 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17567else
17568 with_gnu_ld=no
17569fi
17570
17571ac_prog=ld
17572if test "$GCC" = yes; then
17573 # Check if gcc -print-prog-name=ld gives a path.
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17575$as_echo_n "checking for ld used by $CC... " >&6; }
17576 case $host in
17577 *-*-mingw*)
17578 # gcc leaves a trailing carriage return which upsets mingw
17579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17580 *)
17581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17582 esac
17583 case $ac_prog in
17584 # Accept absolute paths.
17585 [\\/]* | ?:[\\/]*)
17586 re_direlt='/[^/][^/]*/\.\./'
17587 # Canonicalize the pathname of ld
17588 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17589 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17590 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17591 done
17592 test -z "$LD" && LD="$ac_prog"
17593 ;;
17594 "")
17595 # If it fails, then pretend we aren't using GCC.
17596 ac_prog=ld
17597 ;;
17598 *)
17599 # If it is relative, then search for the first ld in PATH.
17600 with_gnu_ld=unknown
17601 ;;
17602 esac
17603elif test "$with_gnu_ld" = yes; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17605$as_echo_n "checking for GNU ld... " >&6; }
17606else
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17608$as_echo_n "checking for non-GNU ld... " >&6; }
17609fi
cristyda16f162011-02-19 23:52:17 +000017610if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017611 $as_echo_n "(cached) " >&6
17612else
17613 if test -z "$LD"; then
17614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17615 for ac_dir in $PATH; do
17616 IFS="$lt_save_ifs"
17617 test -z "$ac_dir" && ac_dir=.
17618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17619 lt_cv_path_LD="$ac_dir/$ac_prog"
17620 # Check to see if the program is GNU ld. I'd rather use --version,
17621 # but apparently some variants of GNU ld only accept -v.
17622 # Break only if it was the GNU/non-GNU ld that we prefer.
17623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17624 *GNU* | *'with BFD'*)
17625 test "$with_gnu_ld" != no && break
17626 ;;
17627 *)
17628 test "$with_gnu_ld" != yes && break
17629 ;;
17630 esac
17631 fi
17632 done
17633 IFS="$lt_save_ifs"
17634else
17635 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17636fi
17637fi
17638
17639LD="$lt_cv_path_LD"
17640if test -n "$LD"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17642$as_echo "$LD" >&6; }
17643else
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645$as_echo "no" >&6; }
17646fi
cristy98dddb52010-11-04 00:30:15 +000017647test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17649$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017650if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017651 $as_echo_n "(cached) " >&6
17652else
17653 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17654case `$LD -v 2>&1 </dev/null` in
17655*GNU* | *'with BFD'*)
17656 lt_cv_prog_gnu_ld=yes
17657 ;;
17658*)
17659 lt_cv_prog_gnu_ld=no
17660 ;;
17661esac
17662fi
17663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17664$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17665with_gnu_ld=$lt_cv_prog_gnu_ld
17666
17667
17668
17669
17670
17671
17672
17673 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17674 # archiving commands below assume that GNU ld is being used.
17675 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017676 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17677 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 +000017678
17679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17681
17682 # If archive_cmds runs LD, not CC, wlarc should be empty
17683 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17684 # investigate it a little bit more. (MM)
17685 wlarc='${wl}'
17686
17687 # ancient GNU ld didn't support --whole-archive et. al.
17688 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17689 $GREP 'no-whole-archive' > /dev/null; then
17690 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17691 else
17692 whole_archive_flag_spec_CXX=
17693 fi
17694 else
17695 with_gnu_ld=no
17696 wlarc=
17697
17698 # A generic and very simple default shared library creation
17699 # command for GNU C++ for the case where it uses the native
17700 # linker, instead of GNU ld. If possible, this setting should
17701 # overridden to take advantage of the native linker features on
17702 # the platform it is being used on.
17703 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17704 fi
17705
17706 # Commands to make compiler produce verbose output that lists
17707 # what "hidden" libraries, object files and flags are used when
17708 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017710
17711 else
17712 GXX=no
17713 with_gnu_ld=no
17714 wlarc=
17715 fi
17716
17717 # PORTME: fill in a description of your system's C++ link characteristics
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17719$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17720 ld_shlibs_CXX=yes
17721 case $host_os in
17722 aix3*)
17723 # FIXME: insert proper C++ library support
17724 ld_shlibs_CXX=no
17725 ;;
17726 aix[4-9]*)
17727 if test "$host_cpu" = ia64; then
17728 # On IA64, the linker does run time linking by default, so we don't
17729 # have to do anything special.
17730 aix_use_runtimelinking=no
17731 exp_sym_flag='-Bexport'
17732 no_entry_flag=""
17733 else
17734 aix_use_runtimelinking=no
17735
17736 # Test if we are trying to use run time linking or normal
17737 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17738 # need to do runtime linking.
17739 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17740 for ld_flag in $LDFLAGS; do
17741 case $ld_flag in
17742 *-brtl*)
17743 aix_use_runtimelinking=yes
17744 break
17745 ;;
17746 esac
17747 done
17748 ;;
17749 esac
17750
17751 exp_sym_flag='-bexport'
17752 no_entry_flag='-bnoentry'
17753 fi
17754
17755 # When large executables or shared objects are built, AIX ld can
17756 # have problems creating the table of contents. If linking a library
17757 # or program results in "error TOC overflow" add -mminimal-toc to
17758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17760
17761 archive_cmds_CXX=''
17762 hardcode_direct_CXX=yes
17763 hardcode_direct_absolute_CXX=yes
17764 hardcode_libdir_separator_CXX=':'
17765 link_all_deplibs_CXX=yes
17766 file_list_spec_CXX='${wl}-f,'
17767
17768 if test "$GXX" = yes; then
17769 case $host_os in aix4.[012]|aix4.[012].*)
17770 # We only want to do this on AIX 4.2 and lower, the check
17771 # below for broken collect2 doesn't work under 4.3+
17772 collect2name=`${CC} -print-prog-name=collect2`
17773 if test -f "$collect2name" &&
17774 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17775 then
17776 # We have reworked collect2
17777 :
17778 else
17779 # We have old collect2
17780 hardcode_direct_CXX=unsupported
17781 # It fails to find uninstalled libraries when the uninstalled
17782 # path is not listed in the libpath. Setting hardcode_minus_L
17783 # to unsupported forces relinking
17784 hardcode_minus_L_CXX=yes
17785 hardcode_libdir_flag_spec_CXX='-L$libdir'
17786 hardcode_libdir_separator_CXX=
17787 fi
17788 esac
17789 shared_flag='-shared'
17790 if test "$aix_use_runtimelinking" = yes; then
17791 shared_flag="$shared_flag "'${wl}-G'
17792 fi
17793 else
17794 # not using gcc
17795 if test "$host_cpu" = ia64; then
17796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17797 # chokes on -Wl,-G. The following line is correct:
17798 shared_flag='-G'
17799 else
17800 if test "$aix_use_runtimelinking" = yes; then
17801 shared_flag='${wl}-G'
17802 else
17803 shared_flag='${wl}-bM:SRE'
17804 fi
17805 fi
17806 fi
17807
17808 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17809 # It seems that -bexpall does not export symbols beginning with
17810 # underscore (_), so it is better to generate a list of symbols to
17811 # export.
17812 always_export_symbols_CXX=yes
17813 if test "$aix_use_runtimelinking" = yes; then
17814 # Warning - without using the other runtime loading flags (-brtl),
17815 # -berok will link without error, but may produce a broken library.
17816 allow_undefined_flag_CXX='-berok'
17817 # Determine the default libpath from the value encoded in an empty
17818 # executable.
cristyda16f162011-02-19 23:52:17 +000017819 if test "${lt_cv_aix_libpath+set}" = set; then
17820 aix_libpath=$lt_cv_aix_libpath
17821else
17822 if ${lt_cv_aix_libpath__CXX+:} false; then :
17823 $as_echo_n "(cached) " >&6
17824else
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017826/* end confdefs.h. */
17827
17828int
17829main ()
17830{
17831
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836if ac_fn_cxx_try_link "$LINENO"; then :
17837
cristyda16f162011-02-19 23:52:17 +000017838 lt_aix_libpath_sed='
17839 /Import File Strings/,/^$/ {
17840 /^0/ {
17841 s/^0 *\([^ ]*\) *$/\1/
17842 p
17843 }
17844 }'
17845 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17846 # Check for a 64-bit object if we didn't find anything.
17847 if test -z "$lt_cv_aix_libpath__CXX"; then
17848 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17849 fi
cristy73bd4a52010-10-05 11:24:23 +000017850fi
17851rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017853 if test -z "$lt_cv_aix_libpath__CXX"; then
17854 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17855 fi
17856
17857fi
17858
17859 aix_libpath=$lt_cv_aix_libpath__CXX
17860fi
cristy73bd4a52010-10-05 11:24:23 +000017861
17862 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17863
cristy0c60a692010-11-04 01:09:47 +000017864 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 +000017865 else
17866 if test "$host_cpu" = ia64; then
17867 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17868 allow_undefined_flag_CXX="-z nodefs"
17869 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"
17870 else
17871 # Determine the default libpath from the value encoded in an
17872 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017873 if test "${lt_cv_aix_libpath+set}" = set; then
17874 aix_libpath=$lt_cv_aix_libpath
17875else
17876 if ${lt_cv_aix_libpath__CXX+:} false; then :
17877 $as_echo_n "(cached) " >&6
17878else
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017880/* end confdefs.h. */
17881
17882int
17883main ()
17884{
17885
17886 ;
17887 return 0;
17888}
17889_ACEOF
17890if ac_fn_cxx_try_link "$LINENO"; then :
17891
cristyda16f162011-02-19 23:52:17 +000017892 lt_aix_libpath_sed='
17893 /Import File Strings/,/^$/ {
17894 /^0/ {
17895 s/^0 *\([^ ]*\) *$/\1/
17896 p
17897 }
17898 }'
17899 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17900 # Check for a 64-bit object if we didn't find anything.
17901 if test -z "$lt_cv_aix_libpath__CXX"; then
17902 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17903 fi
cristy73bd4a52010-10-05 11:24:23 +000017904fi
17905rm -f core conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017907 if test -z "$lt_cv_aix_libpath__CXX"; then
17908 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17909 fi
17910
17911fi
17912
17913 aix_libpath=$lt_cv_aix_libpath__CXX
17914fi
cristy73bd4a52010-10-05 11:24:23 +000017915
17916 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17917 # Warning - without using the other run time loading flags,
17918 # -berok will link without error, but may produce a broken library.
17919 no_undefined_flag_CXX=' ${wl}-bernotok'
17920 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017921 if test "$with_gnu_ld" = yes; then
17922 # We only use this code for GNU lds that support --whole-archive.
17923 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17924 else
17925 # Exported symbols can be pulled into shared objects from archives
17926 whole_archive_flag_spec_CXX='$convenience'
17927 fi
cristy73bd4a52010-10-05 11:24:23 +000017928 archive_cmds_need_lc_CXX=yes
17929 # This is similar to how AIX traditionally builds its shared
17930 # libraries.
17931 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'
17932 fi
17933 fi
17934 ;;
17935
17936 beos*)
17937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17938 allow_undefined_flag_CXX=unsupported
17939 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17940 # support --undefined. This deserves some investigation. FIXME
17941 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17942 else
17943 ld_shlibs_CXX=no
17944 fi
17945 ;;
17946
17947 chorus*)
17948 case $cc_basename in
17949 *)
17950 # FIXME: insert proper C++ library support
17951 ld_shlibs_CXX=no
17952 ;;
17953 esac
17954 ;;
17955
17956 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017957 case $GXX,$cc_basename in
17958 ,cl* | no,cl*)
17959 # Native MSVC
17960 # hardcode_libdir_flag_spec is actually meaningless, as there is
17961 # no search path for DLLs.
17962 hardcode_libdir_flag_spec_CXX=' '
17963 allow_undefined_flag_CXX=unsupported
17964 always_export_symbols_CXX=yes
17965 file_list_spec_CXX='@'
17966 # Tell ltmain to make .lib files, not .a files.
17967 libext=lib
17968 # Tell ltmain to make .dll files, not .so files.
17969 shrext_cmds=".dll"
17970 # FIXME: Setting linknames here is a bad hack.
17971 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17972 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17973 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17974 else
17975 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17976 fi~
17977 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17978 linknames='
17979 # The linker will not automatically build a static lib if we build a DLL.
17980 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17981 enable_shared_with_static_runtimes_CXX=yes
17982 # Don't use ranlib
17983 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17984 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17985 lt_tool_outputfile="@TOOL_OUTPUT@"~
17986 case $lt_outputfile in
17987 *.exe|*.EXE) ;;
17988 *)
17989 lt_outputfile="$lt_outputfile.exe"
17990 lt_tool_outputfile="$lt_tool_outputfile.exe"
17991 ;;
17992 esac~
17993 func_to_tool_file "$lt_outputfile"~
17994 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17995 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17996 $RM "$lt_outputfile.manifest";
17997 fi'
17998 ;;
17999 *)
18000 # g++
18001 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18002 # as there is no search path for DLLs.
18003 hardcode_libdir_flag_spec_CXX='-L$libdir'
18004 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18005 allow_undefined_flag_CXX=unsupported
18006 always_export_symbols_CXX=no
18007 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018008
cristyda16f162011-02-19 23:52:17 +000018009 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18010 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'
18011 # If the export-symbols file already is a .def file (1st line
18012 # is EXPORTS), use it as is; otherwise, prepend...
18013 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18014 cp $export_symbols $output_objdir/$soname.def;
18015 else
18016 echo EXPORTS > $output_objdir/$soname.def;
18017 cat $export_symbols >> $output_objdir/$soname.def;
18018 fi~
18019 $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'
18020 else
18021 ld_shlibs_CXX=no
18022 fi
18023 ;;
18024 esac
18025 ;;
cristy73bd4a52010-10-05 11:24:23 +000018026 darwin* | rhapsody*)
18027
18028
18029 archive_cmds_need_lc_CXX=no
18030 hardcode_direct_CXX=no
18031 hardcode_automatic_CXX=yes
18032 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018033 if test "$lt_cv_ld_force_load" = "yes"; then
18034 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000018035
cristy0c60a692010-11-04 01:09:47 +000018036 else
18037 whole_archive_flag_spec_CXX=''
18038 fi
cristy73bd4a52010-10-05 11:24:23 +000018039 link_all_deplibs_CXX=yes
18040 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18041 case $cc_basename in
18042 ifort*) _lt_dar_can_shared=yes ;;
18043 *) _lt_dar_can_shared=$GCC ;;
18044 esac
18045 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018046 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018047 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}"
18048 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18049 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}"
18050 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}"
18051 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18052 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}"
18053 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}"
18054 fi
18055
18056 else
18057 ld_shlibs_CXX=no
18058 fi
18059
18060 ;;
18061
18062 dgux*)
18063 case $cc_basename in
18064 ec++*)
18065 # FIXME: insert proper C++ library support
18066 ld_shlibs_CXX=no
18067 ;;
18068 ghcx*)
18069 # Green Hills C++ Compiler
18070 # FIXME: insert proper C++ library support
18071 ld_shlibs_CXX=no
18072 ;;
18073 *)
18074 # FIXME: insert proper C++ library support
18075 ld_shlibs_CXX=no
18076 ;;
18077 esac
18078 ;;
18079
cristy99bd5232011-12-07 14:38:20 +000018080 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018081 # C++ shared libraries reported to be fairly broken before
18082 # switch to ELF
18083 ld_shlibs_CXX=no
18084 ;;
18085
18086 freebsd-elf*)
18087 archive_cmds_need_lc_CXX=no
18088 ;;
18089
18090 freebsd* | dragonfly*)
18091 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18092 # conventions
18093 ld_shlibs_CXX=yes
18094 ;;
18095
18096 gnu*)
18097 ;;
18098
cristy0c60a692010-11-04 01:09:47 +000018099 haiku*)
18100 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18101 link_all_deplibs_CXX=yes
18102 ;;
18103
cristy73bd4a52010-10-05 11:24:23 +000018104 hpux9*)
18105 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18106 hardcode_libdir_separator_CXX=:
18107 export_dynamic_flag_spec_CXX='${wl}-E'
18108 hardcode_direct_CXX=yes
18109 hardcode_minus_L_CXX=yes # Not in the search PATH,
18110 # but as the default
18111 # location of the library.
18112
18113 case $cc_basename in
18114 CC*)
18115 # FIXME: insert proper C++ library support
18116 ld_shlibs_CXX=no
18117 ;;
18118 aCC*)
18119 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'
18120 # Commands to make compiler produce verbose output that lists
18121 # what "hidden" libraries, object files and flags are used when
18122 # linking a shared library.
18123 #
18124 # There doesn't appear to be a way to prevent this compiler from
18125 # explicitly linking system object files so we need to strip them
18126 # from the output so that they don't get included in the library
18127 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018128 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 +000018129 ;;
18130 *)
18131 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018132 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 +000018133 else
18134 # FIXME: insert proper C++ library support
18135 ld_shlibs_CXX=no
18136 fi
18137 ;;
18138 esac
18139 ;;
18140
18141 hpux10*|hpux11*)
18142 if test $with_gnu_ld = no; then
18143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18144 hardcode_libdir_separator_CXX=:
18145
18146 case $host_cpu in
18147 hppa*64*|ia64*)
18148 ;;
18149 *)
18150 export_dynamic_flag_spec_CXX='${wl}-E'
18151 ;;
18152 esac
18153 fi
18154 case $host_cpu in
18155 hppa*64*|ia64*)
18156 hardcode_direct_CXX=no
18157 hardcode_shlibpath_var_CXX=no
18158 ;;
18159 *)
18160 hardcode_direct_CXX=yes
18161 hardcode_direct_absolute_CXX=yes
18162 hardcode_minus_L_CXX=yes # Not in the search PATH,
18163 # but as the default
18164 # location of the library.
18165 ;;
18166 esac
18167
18168 case $cc_basename in
18169 CC*)
18170 # FIXME: insert proper C++ library support
18171 ld_shlibs_CXX=no
18172 ;;
18173 aCC*)
18174 case $host_cpu in
18175 hppa*64*)
18176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18177 ;;
18178 ia64*)
18179 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18180 ;;
18181 *)
18182 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18183 ;;
18184 esac
18185 # Commands to make compiler produce verbose output that lists
18186 # what "hidden" libraries, object files and flags are used when
18187 # linking a shared library.
18188 #
18189 # There doesn't appear to be a way to prevent this compiler from
18190 # explicitly linking system object files so we need to strip them
18191 # from the output so that they don't get included in the library
18192 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018193 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 +000018194 ;;
18195 *)
18196 if test "$GXX" = yes; then
18197 if test $with_gnu_ld = no; then
18198 case $host_cpu in
18199 hppa*64*)
18200 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18201 ;;
18202 ia64*)
cristyda16f162011-02-19 23:52:17 +000018203 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 +000018204 ;;
18205 *)
cristyda16f162011-02-19 23:52:17 +000018206 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 +000018207 ;;
18208 esac
18209 fi
18210 else
18211 # FIXME: insert proper C++ library support
18212 ld_shlibs_CXX=no
18213 fi
18214 ;;
18215 esac
18216 ;;
18217
18218 interix[3-9]*)
18219 hardcode_direct_CXX=no
18220 hardcode_shlibpath_var_CXX=no
18221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18222 export_dynamic_flag_spec_CXX='${wl}-E'
18223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18224 # Instead, shared libraries are loaded at an image base (0x10000000 by
18225 # default) and relocated if they conflict, which is a slow very memory
18226 # consuming and fragmenting process. To avoid this, we pick a random,
18227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18229 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'
18230 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'
18231 ;;
18232 irix5* | irix6*)
18233 case $cc_basename in
18234 CC*)
18235 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018236 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 +000018237
18238 # Archives containing C++ object files must be created using
18239 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18240 # necessary to make sure instantiated templates are included
18241 # in the archive.
18242 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18243 ;;
18244 *)
18245 if test "$GXX" = yes; then
18246 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018247 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 +000018248 else
cristyda16f162011-02-19 23:52:17 +000018249 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 +000018250 fi
18251 fi
18252 link_all_deplibs_CXX=yes
18253 ;;
18254 esac
18255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18256 hardcode_libdir_separator_CXX=:
18257 inherit_rpath_CXX=yes
18258 ;;
18259
cristy0c60a692010-11-04 01:09:47 +000018260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018261 case $cc_basename in
18262 KCC*)
18263 # Kuck and Associates, Inc. (KAI) C++ Compiler
18264
18265 # KCC will only create a shared library if the output file
18266 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18267 # to its proper name (with version) after linking.
18268 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'
18269 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'
18270 # Commands to make compiler produce verbose output that lists
18271 # what "hidden" libraries, object files and flags are used when
18272 # linking a shared library.
18273 #
18274 # There doesn't appear to be a way to prevent this compiler from
18275 # explicitly linking system object files so we need to strip them
18276 # from the output so that they don't get included in the library
18277 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018278 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 +000018279
18280 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18282
18283 # Archives containing C++ object files must be created using
18284 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18285 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18286 ;;
18287 icpc* | ecpc* )
18288 # Intel C++
18289 with_gnu_ld=yes
18290 # version 8.0 and above of icpc choke on multiply defined symbols
18291 # if we add $predep_objects and $postdep_objects, however 7.1 and
18292 # earlier do not add the objects themselves.
18293 case `$CC -V 2>&1` in
18294 *"Version 7."*)
18295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18296 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'
18297 ;;
18298 *) # Version 8.0 or newer
18299 tmp_idyn=
18300 case $host_cpu in
18301 ia64*) tmp_idyn=' -i_dynamic';;
18302 esac
18303 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18304 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'
18305 ;;
18306 esac
18307 archive_cmds_need_lc_CXX=no
18308 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18310 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18311 ;;
18312 pgCC* | pgcpp*)
18313 # Portland Group C++ compiler
18314 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018315 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018316 prelink_cmds_CXX='tpldir=Template.dir~
18317 rm -rf $tpldir~
18318 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018319 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018320 old_archive_cmds_CXX='tpldir=Template.dir~
18321 rm -rf $tpldir~
18322 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018323 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018324 $RANLIB $oldlib'
18325 archive_cmds_CXX='tpldir=Template.dir~
18326 rm -rf $tpldir~
18327 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018328 $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 +000018329 archive_expsym_cmds_CXX='tpldir=Template.dir~
18330 rm -rf $tpldir~
18331 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018332 $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 +000018333 ;;
cristy0c60a692010-11-04 01:09:47 +000018334 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018335 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18336 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'
18337 ;;
18338 esac
18339
18340 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018342 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 +000018343 ;;
18344 cxx*)
18345 # Compaq C++
18346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18347 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'
18348
18349 runpath_var=LD_RUN_PATH
18350 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18351 hardcode_libdir_separator_CXX=:
18352
18353 # Commands to make compiler produce verbose output that lists
18354 # what "hidden" libraries, object files and flags are used when
18355 # linking a shared library.
18356 #
18357 # There doesn't appear to be a way to prevent this compiler from
18358 # explicitly linking system object files so we need to strip them
18359 # from the output so that they don't get included in the library
18360 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018361 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 +000018362 ;;
cristy0c60a692010-11-04 01:09:47 +000018363 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018364 # IBM XL 8.0 on PPC, with GNU ld
18365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18367 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18368 if test "x$supports_anon_versioning" = xyes; then
18369 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18371 echo "local: *; };" >> $output_objdir/$libname.ver~
18372 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18373 fi
18374 ;;
18375 *)
18376 case `$CC -V 2>&1 | sed 5q` in
18377 *Sun\ C*)
18378 # Sun C++ 5.9
18379 no_undefined_flag_CXX=' -zdefs'
18380 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18381 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'
18382 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018383 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 +000018384 compiler_needs_object_CXX=yes
18385
18386 # Not sure whether something based on
18387 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18388 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018389 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018390
18391 # Archives containing C++ object files must be created using
18392 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18393 # necessary to make sure instantiated templates are included
18394 # in the archive.
18395 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18396 ;;
18397 esac
18398 ;;
18399 esac
18400 ;;
18401
18402 lynxos*)
18403 # FIXME: insert proper C++ library support
18404 ld_shlibs_CXX=no
18405 ;;
18406
18407 m88k*)
18408 # FIXME: insert proper C++ library support
18409 ld_shlibs_CXX=no
18410 ;;
18411
18412 mvs*)
18413 case $cc_basename in
18414 cxx*)
18415 # FIXME: insert proper C++ library support
18416 ld_shlibs_CXX=no
18417 ;;
18418 *)
18419 # FIXME: insert proper C++ library support
18420 ld_shlibs_CXX=no
18421 ;;
18422 esac
18423 ;;
18424
18425 netbsd*)
18426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18427 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18428 wlarc=
18429 hardcode_libdir_flag_spec_CXX='-R$libdir'
18430 hardcode_direct_CXX=yes
18431 hardcode_shlibpath_var_CXX=no
18432 fi
18433 # Workaround some broken pre-1.5 toolchains
18434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18435 ;;
18436
18437 *nto* | *qnx*)
18438 ld_shlibs_CXX=yes
18439 ;;
18440
18441 openbsd2*)
18442 # C++ shared libraries are fairly broken
18443 ld_shlibs_CXX=no
18444 ;;
18445
18446 openbsd*)
18447 if test -f /usr/libexec/ld.so; then
18448 hardcode_direct_CXX=yes
18449 hardcode_shlibpath_var_CXX=no
18450 hardcode_direct_absolute_CXX=yes
18451 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18454 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18455 export_dynamic_flag_spec_CXX='${wl}-E'
18456 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18457 fi
cristy0c60a692010-11-04 01:09:47 +000018458 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018459 else
18460 ld_shlibs_CXX=no
18461 fi
18462 ;;
18463
18464 osf3* | osf4* | osf5*)
18465 case $cc_basename in
18466 KCC*)
18467 # Kuck and Associates, Inc. (KAI) C++ Compiler
18468
18469 # KCC will only create a shared library if the output file
18470 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18471 # to its proper name (with version) after linking.
18472 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'
18473
18474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18475 hardcode_libdir_separator_CXX=:
18476
18477 # Archives containing C++ object files must be created using
18478 # the KAI C++ compiler.
18479 case $host in
18480 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18481 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18482 esac
18483 ;;
18484 RCC*)
18485 # Rational C++ 2.4.1
18486 # FIXME: insert proper C++ library support
18487 ld_shlibs_CXX=no
18488 ;;
18489 cxx*)
18490 case $host in
18491 osf3*)
18492 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018493 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 +000018494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18495 ;;
18496 *)
18497 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018498 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 +000018499 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18500 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018501 $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 +000018502 $RM $lib.exp'
18503 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18504 ;;
18505 esac
18506
18507 hardcode_libdir_separator_CXX=:
18508
18509 # Commands to make compiler produce verbose output that lists
18510 # what "hidden" libraries, object files and flags are used when
18511 # linking a shared library.
18512 #
18513 # There doesn't appear to be a way to prevent this compiler from
18514 # explicitly linking system object files so we need to strip them
18515 # from the output so that they don't get included in the library
18516 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018517 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 +000018518 ;;
18519 *)
18520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18522 case $host in
18523 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018524 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 +000018525 ;;
18526 *)
cristyda16f162011-02-19 23:52:17 +000018527 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 +000018528 ;;
18529 esac
18530
18531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18532 hardcode_libdir_separator_CXX=:
18533
18534 # Commands to make compiler produce verbose output that lists
18535 # what "hidden" libraries, object files and flags are used when
18536 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018538
18539 else
18540 # FIXME: insert proper C++ library support
18541 ld_shlibs_CXX=no
18542 fi
18543 ;;
18544 esac
18545 ;;
18546
18547 psos*)
18548 # FIXME: insert proper C++ library support
18549 ld_shlibs_CXX=no
18550 ;;
18551
18552 sunos4*)
18553 case $cc_basename in
18554 CC*)
18555 # Sun C++ 4.x
18556 # FIXME: insert proper C++ library support
18557 ld_shlibs_CXX=no
18558 ;;
18559 lcc*)
18560 # Lucid
18561 # FIXME: insert proper C++ library support
18562 ld_shlibs_CXX=no
18563 ;;
18564 *)
18565 # FIXME: insert proper C++ library support
18566 ld_shlibs_CXX=no
18567 ;;
18568 esac
18569 ;;
18570
18571 solaris*)
18572 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018573 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018574 # Sun C++ 4.2, 5.x and Centerline C++
18575 archive_cmds_need_lc_CXX=yes
18576 no_undefined_flag_CXX=' -zdefs'
18577 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18578 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18579 $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'
18580
18581 hardcode_libdir_flag_spec_CXX='-R$libdir'
18582 hardcode_shlibpath_var_CXX=no
18583 case $host_os in
18584 solaris2.[0-5] | solaris2.[0-5].*) ;;
18585 *)
18586 # The compiler driver will combine and reorder linker options,
18587 # but understands `-z linker_flag'.
18588 # Supported since Solaris 2.6 (maybe 2.5.1?)
18589 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18590 ;;
18591 esac
18592 link_all_deplibs_CXX=yes
18593
cristy0c60a692010-11-04 01:09:47 +000018594 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018595
18596 # Archives containing C++ object files must be created using
18597 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18598 # necessary to make sure instantiated templates are included
18599 # in the archive.
18600 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18601 ;;
18602 gcx*)
18603 # Green Hills C++ Compiler
18604 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18605
18606 # The C++ compiler must be used to create the archive.
18607 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18608 ;;
18609 *)
18610 # GNU C++ compiler with Solaris linker
18611 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18612 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18613 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018614 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 +000018615 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 +000018616 $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 +000018617
18618 # Commands to make compiler produce verbose output that lists
18619 # what "hidden" libraries, object files and flags are used when
18620 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018622 else
18623 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18624 # platform.
18625 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18626 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18627 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18628
18629 # Commands to make compiler produce verbose output that lists
18630 # what "hidden" libraries, object files and flags are used when
18631 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018632 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018633 fi
18634
18635 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18636 case $host_os in
18637 solaris2.[0-5] | solaris2.[0-5].*) ;;
18638 *)
18639 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18640 ;;
18641 esac
18642 fi
18643 ;;
18644 esac
18645 ;;
18646
18647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18648 no_undefined_flag_CXX='${wl}-z,text'
18649 archive_cmds_need_lc_CXX=no
18650 hardcode_shlibpath_var_CXX=no
18651 runpath_var='LD_RUN_PATH'
18652
18653 case $cc_basename in
18654 CC*)
18655 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18656 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18657 ;;
18658 *)
18659 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18660 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18661 ;;
18662 esac
18663 ;;
18664
18665 sysv5* | sco3.2v5* | sco5v6*)
18666 # Note: We can NOT use -z defs as we might desire, because we do not
18667 # link with -lc, and that would cause any symbols used from libc to
18668 # always be unresolved, which means just about no library would
18669 # ever link correctly. If we're not using GNU ld we use -z text
18670 # though, which does catch some bad symbols but isn't as heavy-handed
18671 # as -z defs.
18672 no_undefined_flag_CXX='${wl}-z,text'
18673 allow_undefined_flag_CXX='${wl}-z,nodefs'
18674 archive_cmds_need_lc_CXX=no
18675 hardcode_shlibpath_var_CXX=no
18676 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18677 hardcode_libdir_separator_CXX=':'
18678 link_all_deplibs_CXX=yes
18679 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18680 runpath_var='LD_RUN_PATH'
18681
18682 case $cc_basename in
18683 CC*)
18684 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18685 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 +000018686 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18687 '"$old_archive_cmds_CXX"
18688 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18689 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018690 ;;
18691 *)
18692 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18693 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18694 ;;
18695 esac
18696 ;;
18697
18698 tandem*)
18699 case $cc_basename in
18700 NCC*)
18701 # NonStop-UX NCC 3.20
18702 # FIXME: insert proper C++ library support
18703 ld_shlibs_CXX=no
18704 ;;
18705 *)
18706 # FIXME: insert proper C++ library support
18707 ld_shlibs_CXX=no
18708 ;;
18709 esac
18710 ;;
18711
18712 vxworks*)
18713 # FIXME: insert proper C++ library support
18714 ld_shlibs_CXX=no
18715 ;;
18716
18717 *)
18718 # FIXME: insert proper C++ library support
18719 ld_shlibs_CXX=no
18720 ;;
18721 esac
18722
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18724$as_echo "$ld_shlibs_CXX" >&6; }
18725 test "$ld_shlibs_CXX" = no && can_build_shared=no
18726
18727 GCC_CXX="$GXX"
18728 LD_CXX="$LD"
18729
18730 ## CAVEAT EMPTOR:
18731 ## There is no encapsulation within the following macros, do not change
18732 ## the running order or otherwise move them around unless you know exactly
18733 ## what you are doing...
18734 # Dependencies to place before and after the object being linked:
18735predep_objects_CXX=
18736postdep_objects_CXX=
18737predeps_CXX=
18738postdeps_CXX=
18739compiler_lib_search_path_CXX=
18740
18741cat > conftest.$ac_ext <<_LT_EOF
18742class Foo
18743{
18744public:
18745 Foo (void) { a = 0; }
18746private:
18747 int a;
18748};
18749_LT_EOF
18750
cristyda16f162011-02-19 23:52:17 +000018751
18752_lt_libdeps_save_CFLAGS=$CFLAGS
18753case "$CC $CFLAGS " in #(
18754*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18755*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018756*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018757esac
18758
cristy73bd4a52010-10-05 11:24:23 +000018759if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18760 (eval $ac_compile) 2>&5
18761 ac_status=$?
18762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18763 test $ac_status = 0; }; then
18764 # Parse the compiler output and extract the necessary
18765 # objects, libraries and library flags.
18766
18767 # Sentinel used to keep track of whether or not we are before
18768 # the conftest object file.
18769 pre_test_object_deps_done=no
18770
18771 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018772 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018773
18774 -L* | -R* | -l*)
18775 # Some compilers place space between "-{L,R}" and the path.
18776 # Remove the space.
18777 if test $p = "-L" ||
18778 test $p = "-R"; then
18779 prev=$p
18780 continue
cristy73bd4a52010-10-05 11:24:23 +000018781 fi
18782
cristyda16f162011-02-19 23:52:17 +000018783 # Expand the sysroot to ease extracting the directories later.
18784 if test -z "$prev"; then
18785 case $p in
18786 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18787 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18788 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18789 esac
18790 fi
18791 case $p in
18792 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18793 esac
cristy73bd4a52010-10-05 11:24:23 +000018794 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018795 case ${prev} in
18796 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018797 # Internal compiler library paths should come after those
18798 # provided the user. The postdeps already come after the
18799 # user supplied libs so there is no need to process them.
18800 if test -z "$compiler_lib_search_path_CXX"; then
18801 compiler_lib_search_path_CXX="${prev}${p}"
18802 else
18803 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18804 fi
18805 ;;
18806 # The "-l" case would never come before the object being
18807 # linked, so don't bother handling this case.
18808 esac
18809 else
18810 if test -z "$postdeps_CXX"; then
18811 postdeps_CXX="${prev}${p}"
18812 else
18813 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18814 fi
18815 fi
cristyda16f162011-02-19 23:52:17 +000018816 prev=
cristy73bd4a52010-10-05 11:24:23 +000018817 ;;
18818
cristyda16f162011-02-19 23:52:17 +000018819 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018820 *.$objext)
18821 # This assumes that the test object file only shows up
18822 # once in the compiler output.
18823 if test "$p" = "conftest.$objext"; then
18824 pre_test_object_deps_done=yes
18825 continue
18826 fi
18827
18828 if test "$pre_test_object_deps_done" = no; then
18829 if test -z "$predep_objects_CXX"; then
18830 predep_objects_CXX="$p"
18831 else
18832 predep_objects_CXX="$predep_objects_CXX $p"
18833 fi
18834 else
18835 if test -z "$postdep_objects_CXX"; then
18836 postdep_objects_CXX="$p"
18837 else
18838 postdep_objects_CXX="$postdep_objects_CXX $p"
18839 fi
18840 fi
18841 ;;
18842
18843 *) ;; # Ignore the rest.
18844
18845 esac
18846 done
18847
18848 # Clean up.
18849 rm -f a.out a.exe
18850else
18851 echo "libtool.m4: error: problem compiling CXX test program"
18852fi
18853
18854$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018855CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018856
18857# PORTME: override above test on systems where it is broken
18858case $host_os in
18859interix[3-9]*)
18860 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18861 # hack all around it, let's just trust "g++" to DTRT.
18862 predep_objects_CXX=
18863 postdep_objects_CXX=
18864 postdeps_CXX=
18865 ;;
18866
18867linux*)
18868 case `$CC -V 2>&1 | sed 5q` in
18869 *Sun\ C*)
18870 # Sun C++ 5.9
18871
18872 # The more standards-conforming stlport4 library is
18873 # incompatible with the Cstd library. Avoid specifying
18874 # it if it's in CXXFLAGS. Ignore libCrun as
18875 # -library=stlport4 depends on it.
18876 case " $CXX $CXXFLAGS " in
18877 *" -library=stlport4 "*)
18878 solaris_use_stlport4=yes
18879 ;;
18880 esac
18881
18882 if test "$solaris_use_stlport4" != yes; then
18883 postdeps_CXX='-library=Cstd -library=Crun'
18884 fi
18885 ;;
18886 esac
18887 ;;
18888
18889solaris*)
18890 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018891 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018892 # The more standards-conforming stlport4 library is
18893 # incompatible with the Cstd library. Avoid specifying
18894 # it if it's in CXXFLAGS. Ignore libCrun as
18895 # -library=stlport4 depends on it.
18896 case " $CXX $CXXFLAGS " in
18897 *" -library=stlport4 "*)
18898 solaris_use_stlport4=yes
18899 ;;
18900 esac
18901
18902 # Adding this requires a known-good setup of shared libraries for
18903 # Sun compiler versions before 5.6, else PIC objects from an old
18904 # archive will be linked into the output, leading to subtle bugs.
18905 if test "$solaris_use_stlport4" != yes; then
18906 postdeps_CXX='-library=Cstd -library=Crun'
18907 fi
18908 ;;
18909 esac
18910 ;;
18911esac
18912
18913
18914case " $postdeps_CXX " in
18915*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18916esac
18917 compiler_lib_search_dirs_CXX=
18918if test -n "${compiler_lib_search_path_CXX}"; then
18919 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18920fi
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952 lt_prog_compiler_wl_CXX=
18953lt_prog_compiler_pic_CXX=
18954lt_prog_compiler_static_CXX=
18955
cristy73bd4a52010-10-05 11:24:23 +000018956
18957 # C++ specific cases for pic, static, wl, etc.
18958 if test "$GXX" = yes; then
18959 lt_prog_compiler_wl_CXX='-Wl,'
18960 lt_prog_compiler_static_CXX='-static'
18961
18962 case $host_os in
18963 aix*)
18964 # All AIX code is PIC.
18965 if test "$host_cpu" = ia64; then
18966 # AIX 5 now supports IA64 processor
18967 lt_prog_compiler_static_CXX='-Bstatic'
18968 fi
18969 ;;
18970
18971 amigaos*)
18972 case $host_cpu in
18973 powerpc)
18974 # see comment about AmigaOS4 .so support
18975 lt_prog_compiler_pic_CXX='-fPIC'
18976 ;;
18977 m68k)
18978 # FIXME: we need at least 68020 code to build shared libraries, but
18979 # adding the `-m68020' flag to GCC prevents building anything better,
18980 # like `-m68040'.
18981 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18982 ;;
18983 esac
18984 ;;
18985
18986 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18987 # PIC is the default for these OSes.
18988 ;;
18989 mingw* | cygwin* | os2* | pw32* | cegcc*)
18990 # This hack is so that the source file can tell whether it is being
18991 # built for inclusion in a dll (and should export symbols for example).
18992 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18993 # (--disable-auto-import) libraries
18994 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18995 ;;
18996 darwin* | rhapsody*)
18997 # PIC is the default on this platform
18998 # Common symbols not allowed in MH_DYLIB files
18999 lt_prog_compiler_pic_CXX='-fno-common'
19000 ;;
19001 *djgpp*)
19002 # DJGPP does not support shared libraries at all
19003 lt_prog_compiler_pic_CXX=
19004 ;;
cristy0c60a692010-11-04 01:09:47 +000019005 haiku*)
19006 # PIC is the default for Haiku.
19007 # The "-static" flag exists, but is broken.
19008 lt_prog_compiler_static_CXX=
19009 ;;
cristy73bd4a52010-10-05 11:24:23 +000019010 interix[3-9]*)
19011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19012 # Instead, we relocate shared libraries at runtime.
19013 ;;
19014 sysv4*MP*)
19015 if test -d /usr/nec; then
19016 lt_prog_compiler_pic_CXX=-Kconform_pic
19017 fi
19018 ;;
19019 hpux*)
19020 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19021 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19022 # sets the default TLS model and affects inlining.
19023 case $host_cpu in
19024 hppa*64*)
19025 ;;
19026 *)
19027 lt_prog_compiler_pic_CXX='-fPIC'
19028 ;;
19029 esac
19030 ;;
19031 *qnx* | *nto*)
19032 # QNX uses GNU C++, but need to define -shared option too, otherwise
19033 # it will coredump.
19034 lt_prog_compiler_pic_CXX='-fPIC -shared'
19035 ;;
19036 *)
19037 lt_prog_compiler_pic_CXX='-fPIC'
19038 ;;
19039 esac
19040 else
19041 case $host_os in
19042 aix[4-9]*)
19043 # All AIX code is PIC.
19044 if test "$host_cpu" = ia64; then
19045 # AIX 5 now supports IA64 processor
19046 lt_prog_compiler_static_CXX='-Bstatic'
19047 else
19048 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19049 fi
19050 ;;
19051 chorus*)
19052 case $cc_basename in
19053 cxch68*)
19054 # Green Hills C++ Compiler
19055 # _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"
19056 ;;
19057 esac
19058 ;;
cristyda16f162011-02-19 23:52:17 +000019059 mingw* | cygwin* | os2* | pw32* | cegcc*)
19060 # This hack is so that the source file can tell whether it is being
19061 # built for inclusion in a dll (and should export symbols for example).
19062 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19063 ;;
cristy73bd4a52010-10-05 11:24:23 +000019064 dgux*)
19065 case $cc_basename in
19066 ec++*)
19067 lt_prog_compiler_pic_CXX='-KPIC'
19068 ;;
19069 ghcx*)
19070 # Green Hills C++ Compiler
19071 lt_prog_compiler_pic_CXX='-pic'
19072 ;;
19073 *)
19074 ;;
19075 esac
19076 ;;
19077 freebsd* | dragonfly*)
19078 # FreeBSD uses GNU C++
19079 ;;
19080 hpux9* | hpux10* | hpux11*)
19081 case $cc_basename in
19082 CC*)
19083 lt_prog_compiler_wl_CXX='-Wl,'
19084 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19085 if test "$host_cpu" != ia64; then
19086 lt_prog_compiler_pic_CXX='+Z'
19087 fi
19088 ;;
19089 aCC*)
19090 lt_prog_compiler_wl_CXX='-Wl,'
19091 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19092 case $host_cpu in
19093 hppa*64*|ia64*)
19094 # +Z the default
19095 ;;
19096 *)
19097 lt_prog_compiler_pic_CXX='+Z'
19098 ;;
19099 esac
19100 ;;
19101 *)
19102 ;;
19103 esac
19104 ;;
19105 interix*)
19106 # This is c89, which is MS Visual C++ (no shared libs)
19107 # Anyone wants to do a port?
19108 ;;
19109 irix5* | irix6* | nonstopux*)
19110 case $cc_basename in
19111 CC*)
19112 lt_prog_compiler_wl_CXX='-Wl,'
19113 lt_prog_compiler_static_CXX='-non_shared'
19114 # CC pic flag -KPIC is the default.
19115 ;;
19116 *)
19117 ;;
19118 esac
19119 ;;
cristy0c60a692010-11-04 01:09:47 +000019120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019121 case $cc_basename in
19122 KCC*)
19123 # KAI C++ Compiler
19124 lt_prog_compiler_wl_CXX='--backend -Wl,'
19125 lt_prog_compiler_pic_CXX='-fPIC'
19126 ;;
19127 ecpc* )
19128 # old Intel C++ for x86_64 which still supported -KPIC.
19129 lt_prog_compiler_wl_CXX='-Wl,'
19130 lt_prog_compiler_pic_CXX='-KPIC'
19131 lt_prog_compiler_static_CXX='-static'
19132 ;;
19133 icpc* )
19134 # Intel C++, used to be incompatible with GCC.
19135 # ICC 10 doesn't accept -KPIC any more.
19136 lt_prog_compiler_wl_CXX='-Wl,'
19137 lt_prog_compiler_pic_CXX='-fPIC'
19138 lt_prog_compiler_static_CXX='-static'
19139 ;;
19140 pgCC* | pgcpp*)
19141 # Portland Group C++ compiler
19142 lt_prog_compiler_wl_CXX='-Wl,'
19143 lt_prog_compiler_pic_CXX='-fpic'
19144 lt_prog_compiler_static_CXX='-Bstatic'
19145 ;;
19146 cxx*)
19147 # Compaq C++
19148 # Make sure the PIC flag is empty. It appears that all Alpha
19149 # Linux and Compaq Tru64 Unix objects are PIC.
19150 lt_prog_compiler_pic_CXX=
19151 lt_prog_compiler_static_CXX='-non_shared'
19152 ;;
cristy0c60a692010-11-04 01:09:47 +000019153 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19154 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019155 lt_prog_compiler_wl_CXX='-Wl,'
19156 lt_prog_compiler_pic_CXX='-qpic'
19157 lt_prog_compiler_static_CXX='-qstaticlink'
19158 ;;
19159 *)
19160 case `$CC -V 2>&1 | sed 5q` in
19161 *Sun\ C*)
19162 # Sun C++ 5.9
19163 lt_prog_compiler_pic_CXX='-KPIC'
19164 lt_prog_compiler_static_CXX='-Bstatic'
19165 lt_prog_compiler_wl_CXX='-Qoption ld '
19166 ;;
19167 esac
19168 ;;
19169 esac
19170 ;;
19171 lynxos*)
19172 ;;
19173 m88k*)
19174 ;;
19175 mvs*)
19176 case $cc_basename in
19177 cxx*)
19178 lt_prog_compiler_pic_CXX='-W c,exportall'
19179 ;;
19180 *)
19181 ;;
19182 esac
19183 ;;
19184 netbsd*)
19185 ;;
19186 *qnx* | *nto*)
19187 # QNX uses GNU C++, but need to define -shared option too, otherwise
19188 # it will coredump.
19189 lt_prog_compiler_pic_CXX='-fPIC -shared'
19190 ;;
19191 osf3* | osf4* | osf5*)
19192 case $cc_basename in
19193 KCC*)
19194 lt_prog_compiler_wl_CXX='--backend -Wl,'
19195 ;;
19196 RCC*)
19197 # Rational C++ 2.4.1
19198 lt_prog_compiler_pic_CXX='-pic'
19199 ;;
19200 cxx*)
19201 # Digital/Compaq C++
19202 lt_prog_compiler_wl_CXX='-Wl,'
19203 # Make sure the PIC flag is empty. It appears that all Alpha
19204 # Linux and Compaq Tru64 Unix objects are PIC.
19205 lt_prog_compiler_pic_CXX=
19206 lt_prog_compiler_static_CXX='-non_shared'
19207 ;;
19208 *)
19209 ;;
19210 esac
19211 ;;
19212 psos*)
19213 ;;
19214 solaris*)
19215 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019216 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019217 # Sun C++ 4.2, 5.x and Centerline C++
19218 lt_prog_compiler_pic_CXX='-KPIC'
19219 lt_prog_compiler_static_CXX='-Bstatic'
19220 lt_prog_compiler_wl_CXX='-Qoption ld '
19221 ;;
19222 gcx*)
19223 # Green Hills C++ Compiler
19224 lt_prog_compiler_pic_CXX='-PIC'
19225 ;;
19226 *)
19227 ;;
19228 esac
19229 ;;
19230 sunos4*)
19231 case $cc_basename in
19232 CC*)
19233 # Sun C++ 4.x
19234 lt_prog_compiler_pic_CXX='-pic'
19235 lt_prog_compiler_static_CXX='-Bstatic'
19236 ;;
19237 lcc*)
19238 # Lucid
19239 lt_prog_compiler_pic_CXX='-pic'
19240 ;;
19241 *)
19242 ;;
19243 esac
19244 ;;
19245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19246 case $cc_basename in
19247 CC*)
19248 lt_prog_compiler_wl_CXX='-Wl,'
19249 lt_prog_compiler_pic_CXX='-KPIC'
19250 lt_prog_compiler_static_CXX='-Bstatic'
19251 ;;
19252 esac
19253 ;;
19254 tandem*)
19255 case $cc_basename in
19256 NCC*)
19257 # NonStop-UX NCC 3.20
19258 lt_prog_compiler_pic_CXX='-KPIC'
19259 ;;
19260 *)
19261 ;;
19262 esac
19263 ;;
19264 vxworks*)
19265 ;;
19266 *)
19267 lt_prog_compiler_can_build_shared_CXX=no
19268 ;;
19269 esac
19270 fi
19271
19272case $host_os in
19273 # For platforms which do not support PIC, -DPIC is meaningless:
19274 *djgpp*)
19275 lt_prog_compiler_pic_CXX=
19276 ;;
19277 *)
19278 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19279 ;;
19280esac
cristy73bd4a52010-10-05 11:24:23 +000019281
cristyda16f162011-02-19 23:52:17 +000019282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19283$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19284if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19285 $as_echo_n "(cached) " >&6
19286else
19287 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19288fi
19289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19290$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19291lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019292
19293#
19294# Check to make sure the PIC flag actually works.
19295#
19296if test -n "$lt_prog_compiler_pic_CXX"; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19298$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019299if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019300 $as_echo_n "(cached) " >&6
19301else
19302 lt_cv_prog_compiler_pic_works_CXX=no
19303 ac_outfile=conftest.$ac_objext
19304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19305 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19306 # Insert the option either (1) after the last *FLAGS variable, or
19307 # (2) before a word containing "conftest.", or (3) at the end.
19308 # Note that $ac_compile itself does not contain backslashes and begins
19309 # with a dollar sign (not a hyphen), so the echo should work correctly.
19310 # The option is referenced via a variable to avoid confusing sed.
19311 lt_compile=`echo "$ac_compile" | $SED \
19312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19314 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019316 (eval "$lt_compile" 2>conftest.err)
19317 ac_status=$?
19318 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019320 if (exit $ac_status) && test -s "$ac_outfile"; then
19321 # The compiler can only warn and ignore the option if not recognized
19322 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19326 lt_cv_prog_compiler_pic_works_CXX=yes
19327 fi
19328 fi
19329 $RM conftest*
19330
19331fi
19332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19333$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19334
19335if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19336 case $lt_prog_compiler_pic_CXX in
19337 "" | " "*) ;;
19338 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19339 esac
19340else
19341 lt_prog_compiler_pic_CXX=
19342 lt_prog_compiler_can_build_shared_CXX=no
19343fi
19344
19345fi
19346
19347
19348
cristyda16f162011-02-19 23:52:17 +000019349
19350
cristy73bd4a52010-10-05 11:24:23 +000019351#
19352# Check to make sure the static flag actually works.
19353#
19354wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19356$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019357if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019358 $as_echo_n "(cached) " >&6
19359else
19360 lt_cv_prog_compiler_static_works_CXX=no
19361 save_LDFLAGS="$LDFLAGS"
19362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19365 # The linker can only warn and ignore the option if not recognized
19366 # So say no if there are warnings
19367 if test -s conftest.err; then
19368 # Append any errors to the config.log.
19369 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19372 if diff conftest.exp conftest.er2 >/dev/null; then
19373 lt_cv_prog_compiler_static_works_CXX=yes
19374 fi
19375 else
19376 lt_cv_prog_compiler_static_works_CXX=yes
19377 fi
19378 fi
19379 $RM -r conftest*
19380 LDFLAGS="$save_LDFLAGS"
19381
19382fi
19383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19384$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19385
19386if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19387 :
19388else
19389 lt_prog_compiler_static_CXX=
19390fi
19391
19392
19393
19394
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19396$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019397if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019398 $as_echo_n "(cached) " >&6
19399else
19400 lt_cv_prog_compiler_c_o_CXX=no
19401 $RM -r conftest 2>/dev/null
19402 mkdir conftest
19403 cd conftest
19404 mkdir out
19405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19406
19407 lt_compiler_flag="-o out/conftest2.$ac_objext"
19408 # Insert the option either (1) after the last *FLAGS variable, or
19409 # (2) before a word containing "conftest.", or (3) at the end.
19410 # Note that $ac_compile itself does not contain backslashes and begins
19411 # with a dollar sign (not a hyphen), so the echo should work correctly.
19412 lt_compile=`echo "$ac_compile" | $SED \
19413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19415 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019417 (eval "$lt_compile" 2>out/conftest.err)
19418 ac_status=$?
19419 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19422 then
19423 # The compiler can only warn and ignore the option if not recognized
19424 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19428 lt_cv_prog_compiler_c_o_CXX=yes
19429 fi
19430 fi
19431 chmod u+w . 2>&5
19432 $RM conftest*
19433 # SGI C++ compiler will create directory out/ii_files/ for
19434 # template instantiation
19435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19436 $RM out/* && rmdir out
19437 cd ..
19438 $RM -r conftest
19439 $RM conftest*
19440
19441fi
19442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19443$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19444
19445
19446
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19448$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019449if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019450 $as_echo_n "(cached) " >&6
19451else
19452 lt_cv_prog_compiler_c_o_CXX=no
19453 $RM -r conftest 2>/dev/null
19454 mkdir conftest
19455 cd conftest
19456 mkdir out
19457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19458
19459 lt_compiler_flag="-o out/conftest2.$ac_objext"
19460 # Insert the option either (1) after the last *FLAGS variable, or
19461 # (2) before a word containing "conftest.", or (3) at the end.
19462 # Note that $ac_compile itself does not contain backslashes and begins
19463 # with a dollar sign (not a hyphen), so the echo should work correctly.
19464 lt_compile=`echo "$ac_compile" | $SED \
19465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19467 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019469 (eval "$lt_compile" 2>out/conftest.err)
19470 ac_status=$?
19471 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19474 then
19475 # The compiler can only warn and ignore the option if not recognized
19476 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19480 lt_cv_prog_compiler_c_o_CXX=yes
19481 fi
19482 fi
19483 chmod u+w . 2>&5
19484 $RM conftest*
19485 # SGI C++ compiler will create directory out/ii_files/ for
19486 # template instantiation
19487 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19488 $RM out/* && rmdir out
19489 cd ..
19490 $RM -r conftest
19491 $RM conftest*
19492
19493fi
19494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19495$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19496
19497
19498
19499
19500hard_links="nottested"
19501if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19502 # do not overwrite the value of need_locks provided by the user
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19504$as_echo_n "checking if we can lock with hard links... " >&6; }
19505 hard_links=yes
19506 $RM conftest*
19507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19508 touch conftest.a
19509 ln conftest.a conftest.b 2>&5 || hard_links=no
19510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19512$as_echo "$hard_links" >&6; }
19513 if test "$hard_links" = no; then
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19515$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19516 need_locks=warn
19517 fi
19518else
19519 need_locks=no
19520fi
19521
19522
19523
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19525$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19526
19527 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019528 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019529 case $host_os in
19530 aix[4-9]*)
19531 # If we're using GNU nm, then we don't want the "-C" option.
19532 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019533 # Also, AIX nm treats weak defined symbols like other global defined
19534 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019535 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019536 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 +000019537 else
19538 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'
19539 fi
19540 ;;
19541 pw32*)
19542 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019543 ;;
cristy73bd4a52010-10-05 11:24:23 +000019544 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019545 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019546 cl*)
19547 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19548 ;;
cristyda16f162011-02-19 23:52:17 +000019549 *)
19550 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'
19551 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19552 ;;
19553 esac
19554 ;;
cristy73bd4a52010-10-05 11:24:23 +000019555 *)
19556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019557 ;;
cristy73bd4a52010-10-05 11:24:23 +000019558 esac
cristy73bd4a52010-10-05 11:24:23 +000019559
19560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19561$as_echo "$ld_shlibs_CXX" >&6; }
19562test "$ld_shlibs_CXX" = no && can_build_shared=no
19563
19564with_gnu_ld_CXX=$with_gnu_ld
19565
19566
19567
19568
19569
19570
19571#
19572# Do we need to explicitly link libc?
19573#
19574case "x$archive_cmds_need_lc_CXX" in
19575x|xyes)
19576 # Assume -lc should be added
19577 archive_cmds_need_lc_CXX=yes
19578
19579 if test "$enable_shared" = yes && test "$GCC" = yes; then
19580 case $archive_cmds_CXX in
19581 *'~'*)
19582 # FIXME: we may have to deal with multi-command sequences.
19583 ;;
19584 '$CC '*)
19585 # Test whether the compiler implicitly links with -lc since on some
19586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19587 # to ld, don't add -lc before -lgcc.
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19589$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019590if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019591 $as_echo_n "(cached) " >&6
19592else
19593 $RM conftest*
19594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019595
cristy0c60a692010-11-04 01:09:47 +000019596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019597 (eval $ac_compile) 2>&5
19598 ac_status=$?
19599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19600 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019601 soname=conftest
19602 lib=conftest
19603 libobjs=conftest.$ac_objext
19604 deplibs=
19605 wl=$lt_prog_compiler_wl_CXX
19606 pic_flag=$lt_prog_compiler_pic_CXX
19607 compiler_flags=-v
19608 linker_flags=-v
19609 verstring=
19610 output_objdir=.
19611 libname=conftest
19612 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19613 allow_undefined_flag_CXX=
19614 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 +000019615 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19616 ac_status=$?
19617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19618 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019619 then
19620 lt_cv_archive_cmds_need_lc_CXX=no
19621 else
19622 lt_cv_archive_cmds_need_lc_CXX=yes
19623 fi
19624 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19625 else
19626 cat conftest.err 1>&5
19627 fi
19628 $RM conftest*
19629
19630fi
19631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19632$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19633 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019634 ;;
19635 esac
19636 fi
19637 ;;
19638esac
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
cristy73bd4a52010-10-05 11:24:23 +000019701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19702$as_echo_n "checking dynamic linker characteristics... " >&6; }
19703
19704library_names_spec=
19705libname_spec='lib$name'
19706soname_spec=
19707shrext_cmds=".so"
19708postinstall_cmds=
19709postuninstall_cmds=
19710finish_cmds=
19711finish_eval=
19712shlibpath_var=
19713shlibpath_overrides_runpath=unknown
19714version_type=none
19715dynamic_linker="$host_os ld.so"
19716sys_lib_dlsearch_path_spec="/lib /usr/lib"
19717need_lib_prefix=unknown
19718hardcode_into_libs=no
19719
19720# when you set need_version to no, make sure it does not cause -set_version
19721# flags to be left without arguments
19722need_version=unknown
19723
19724case $host_os in
19725aix3*)
cristy99bd5232011-12-07 14:38:20 +000019726 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19728 shlibpath_var=LIBPATH
19729
19730 # AIX 3 has no versioning support, so we append a major version to the name.
19731 soname_spec='${libname}${release}${shared_ext}$major'
19732 ;;
19733
19734aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019735 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019736 need_lib_prefix=no
19737 need_version=no
19738 hardcode_into_libs=yes
19739 if test "$host_cpu" = ia64; then
19740 # AIX 5 supports IA64
19741 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19742 shlibpath_var=LD_LIBRARY_PATH
19743 else
19744 # With GCC up to 2.95.x, collect2 would create an import file
19745 # for dependence libraries. The import file would start with
19746 # the line `#! .'. This would cause the generated library to
19747 # depend on `.', always an invalid library. This was fixed in
19748 # development snapshots of GCC prior to 3.0.
19749 case $host_os in
19750 aix4 | aix4.[01] | aix4.[01].*)
19751 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19752 echo ' yes '
19753 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19754 :
19755 else
19756 can_build_shared=no
19757 fi
19758 ;;
19759 esac
19760 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19761 # soname into executable. Probably we can add versioning support to
19762 # collect2, so additional links can be useful in future.
19763 if test "$aix_use_runtimelinking" = yes; then
19764 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19765 # instead of lib<name>.a to let people know that these are not
19766 # typical AIX shared libraries.
19767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19768 else
19769 # We preserve .a as extension for shared libraries through AIX4.2
19770 # and later when we are not doing run time linking.
19771 library_names_spec='${libname}${release}.a $libname.a'
19772 soname_spec='${libname}${release}${shared_ext}$major'
19773 fi
19774 shlibpath_var=LIBPATH
19775 fi
19776 ;;
19777
19778amigaos*)
19779 case $host_cpu in
19780 powerpc)
19781 # Since July 2007 AmigaOS4 officially supports .so libraries.
19782 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784 ;;
19785 m68k)
19786 library_names_spec='$libname.ixlibrary $libname.a'
19787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019788 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 +000019789 ;;
19790 esac
19791 ;;
19792
19793beos*)
19794 library_names_spec='${libname}${shared_ext}'
19795 dynamic_linker="$host_os ld.so"
19796 shlibpath_var=LIBRARY_PATH
19797 ;;
19798
19799bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019800 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019801 need_version=no
19802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19803 soname_spec='${libname}${release}${shared_ext}$major'
19804 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19805 shlibpath_var=LD_LIBRARY_PATH
19806 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19807 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19808 # the default ld.so.conf also contains /usr/contrib/lib and
19809 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19810 # libtool to hard-code these into programs
19811 ;;
19812
19813cygwin* | mingw* | pw32* | cegcc*)
19814 version_type=windows
19815 shrext_cmds=".dll"
19816 need_version=no
19817 need_lib_prefix=no
19818
cristyda16f162011-02-19 23:52:17 +000019819 case $GCC,$cc_basename in
19820 yes,*)
19821 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019822 library_names_spec='$libname.dll.a'
19823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19824 postinstall_cmds='base_file=`basename \${file}`~
19825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19826 dldir=$destdir/`dirname \$dlpath`~
19827 test -d \$dldir || mkdir -p \$dldir~
19828 $install_prog $dir/$dlname \$dldir/$dlname~
19829 chmod a+x \$dldir/$dlname~
19830 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19831 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19832 fi'
19833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19834 dlpath=$dir/\$dldll~
19835 $RM \$dlpath'
19836 shlibpath_overrides_runpath=yes
19837
19838 case $host_os in
19839 cygwin*)
19840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19841 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019842
cristy73bd4a52010-10-05 11:24:23 +000019843 ;;
19844 mingw* | cegcc*)
19845 # MinGW DLLs use traditional 'lib' prefix
19846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019847 ;;
19848 pw32*)
19849 # pw32 DLLs use 'pw' prefix rather than 'lib'
19850 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19851 ;;
19852 esac
cristyda16f162011-02-19 23:52:17 +000019853 dynamic_linker='Win32 ld.exe'
19854 ;;
19855
19856 *,cl*)
19857 # Native MSVC
19858 libname_spec='$name'
19859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19860 library_names_spec='${libname}.dll.lib'
19861
19862 case $build_os in
19863 mingw*)
19864 sys_lib_search_path_spec=
19865 lt_save_ifs=$IFS
19866 IFS=';'
19867 for lt_path in $LIB
19868 do
19869 IFS=$lt_save_ifs
19870 # Let DOS variable expansion print the short 8.3 style file name.
19871 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19872 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19873 done
19874 IFS=$lt_save_ifs
19875 # Convert to MSYS style.
19876 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19877 ;;
19878 cygwin*)
19879 # Convert to unix form, then to dos form, then back to unix form
19880 # but this time dos style (no spaces!) so that the unix form looks
19881 # like /cygdrive/c/PROGRA~1:/cygdr...
19882 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19883 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19884 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19885 ;;
19886 *)
19887 sys_lib_search_path_spec="$LIB"
19888 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19889 # It is most probably a Windows format PATH.
19890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19891 else
19892 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19893 fi
19894 # FIXME: find the short name or the path components, as spaces are
19895 # common. (e.g. "Program Files" -> "PROGRA~1")
19896 ;;
19897 esac
19898
19899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19900 postinstall_cmds='base_file=`basename \${file}`~
19901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19902 dldir=$destdir/`dirname \$dlpath`~
19903 test -d \$dldir || mkdir -p \$dldir~
19904 $install_prog $dir/$dlname \$dldir/$dlname'
19905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19906 dlpath=$dir/\$dldll~
19907 $RM \$dlpath'
19908 shlibpath_overrides_runpath=yes
19909 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019910 ;;
19911
19912 *)
cristyda16f162011-02-19 23:52:17 +000019913 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019915 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019916 ;;
19917 esac
cristy73bd4a52010-10-05 11:24:23 +000019918 # FIXME: first we should search . and the directory the executable is in
19919 shlibpath_var=PATH
19920 ;;
19921
19922darwin* | rhapsody*)
19923 dynamic_linker="$host_os dyld"
19924 version_type=darwin
19925 need_lib_prefix=no
19926 need_version=no
19927 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19928 soname_spec='${libname}${release}${major}$shared_ext'
19929 shlibpath_overrides_runpath=yes
19930 shlibpath_var=DYLD_LIBRARY_PATH
19931 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19932
19933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19934 ;;
19935
19936dgux*)
cristy99bd5232011-12-07 14:38:20 +000019937 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019938 need_lib_prefix=no
19939 need_version=no
19940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19941 soname_spec='${libname}${release}${shared_ext}$major'
19942 shlibpath_var=LD_LIBRARY_PATH
19943 ;;
19944
cristy73bd4a52010-10-05 11:24:23 +000019945freebsd* | dragonfly*)
19946 # DragonFly does not have aout. When/if they implement a new
19947 # versioning mechanism, adjust this.
19948 if test -x /usr/bin/objformat; then
19949 objformat=`/usr/bin/objformat`
19950 else
19951 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019952 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019953 *) objformat=elf ;;
19954 esac
19955 fi
19956 version_type=freebsd-$objformat
19957 case $version_type in
19958 freebsd-elf*)
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19960 need_version=no
19961 need_lib_prefix=no
19962 ;;
19963 freebsd-*)
19964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19965 need_version=yes
19966 ;;
19967 esac
19968 shlibpath_var=LD_LIBRARY_PATH
19969 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019970 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019971 shlibpath_overrides_runpath=yes
19972 ;;
19973 freebsd3.[01]* | freebsdelf3.[01]*)
19974 shlibpath_overrides_runpath=yes
19975 hardcode_into_libs=yes
19976 ;;
19977 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19978 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19979 shlibpath_overrides_runpath=no
19980 hardcode_into_libs=yes
19981 ;;
19982 *) # from 4.6 on, and DragonFly
19983 shlibpath_overrides_runpath=yes
19984 hardcode_into_libs=yes
19985 ;;
19986 esac
19987 ;;
19988
19989gnu*)
cristy99bd5232011-12-07 14:38:20 +000019990 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019991 need_lib_prefix=no
19992 need_version=no
19993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19994 soname_spec='${libname}${release}${shared_ext}$major'
19995 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019996 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019997 hardcode_into_libs=yes
19998 ;;
19999
cristy0c60a692010-11-04 01:09:47 +000020000haiku*)
cristy99bd5232011-12-07 14:38:20 +000020001 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020002 need_lib_prefix=no
20003 need_version=no
20004 dynamic_linker="$host_os runtime_loader"
20005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20006 soname_spec='${libname}${release}${shared_ext}$major'
20007 shlibpath_var=LIBRARY_PATH
20008 shlibpath_overrides_runpath=yes
20009 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20010 hardcode_into_libs=yes
20011 ;;
20012
cristy73bd4a52010-10-05 11:24:23 +000020013hpux9* | hpux10* | hpux11*)
20014 # Give a soname corresponding to the major version so that dld.sl refuses to
20015 # link against other versions.
20016 version_type=sunos
20017 need_lib_prefix=no
20018 need_version=no
20019 case $host_cpu in
20020 ia64*)
20021 shrext_cmds='.so'
20022 hardcode_into_libs=yes
20023 dynamic_linker="$host_os dld.so"
20024 shlibpath_var=LD_LIBRARY_PATH
20025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027 soname_spec='${libname}${release}${shared_ext}$major'
20028 if test "X$HPUX_IA64_MODE" = X32; then
20029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20030 else
20031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20032 fi
20033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20034 ;;
20035 hppa*64*)
20036 shrext_cmds='.sl'
20037 hardcode_into_libs=yes
20038 dynamic_linker="$host_os dld.sl"
20039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042 soname_spec='${libname}${release}${shared_ext}$major'
20043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20045 ;;
20046 *)
20047 shrext_cmds='.sl'
20048 dynamic_linker="$host_os dld.sl"
20049 shlibpath_var=SHLIB_PATH
20050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052 soname_spec='${libname}${release}${shared_ext}$major'
20053 ;;
20054 esac
cristy0c60a692010-11-04 01:09:47 +000020055 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020056 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020057 # or fails outright, so override atomically:
20058 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020059 ;;
20060
20061interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020062 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020063 need_lib_prefix=no
20064 need_version=no
20065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20066 soname_spec='${libname}${release}${shared_ext}$major'
20067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20068 shlibpath_var=LD_LIBRARY_PATH
20069 shlibpath_overrides_runpath=no
20070 hardcode_into_libs=yes
20071 ;;
20072
20073irix5* | irix6* | nonstopux*)
20074 case $host_os in
20075 nonstopux*) version_type=nonstopux ;;
20076 *)
20077 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020078 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020079 else
20080 version_type=irix
20081 fi ;;
20082 esac
20083 need_lib_prefix=no
20084 need_version=no
20085 soname_spec='${libname}${release}${shared_ext}$major'
20086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20087 case $host_os in
20088 irix5* | nonstopux*)
20089 libsuff= shlibsuff=
20090 ;;
20091 *)
20092 case $LD in # libtool.m4 will add one of these switches to LD
20093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20094 libsuff= shlibsuff= libmagic=32-bit;;
20095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20096 libsuff=32 shlibsuff=N32 libmagic=N32;;
20097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20099 *) libsuff= shlibsuff= libmagic=never-match;;
20100 esac
20101 ;;
20102 esac
20103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20104 shlibpath_overrides_runpath=no
20105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20107 hardcode_into_libs=yes
20108 ;;
20109
20110# No shared lib support for Linux oldld, aout, or coff.
20111linux*oldld* | linux*aout* | linux*coff*)
20112 dynamic_linker=no
20113 ;;
20114
cristy99bd5232011-12-07 14:38:20 +000020115# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020116linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020117 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020118 need_lib_prefix=no
20119 need_version=no
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20123 shlibpath_var=LD_LIBRARY_PATH
20124 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020125
cristy73bd4a52010-10-05 11:24:23 +000020126 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020127 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020128 $as_echo_n "(cached) " >&6
20129else
20130 lt_cv_shlibpath_overrides_runpath=no
20131 save_LDFLAGS=$LDFLAGS
20132 save_libdir=$libdir
20133 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20134 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020136/* end confdefs.h. */
20137
20138int
20139main ()
20140{
20141
20142 ;
20143 return 0;
20144}
20145_ACEOF
20146if ac_fn_cxx_try_link "$LINENO"; then :
20147 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020148 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020149fi
20150fi
20151rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020153 LDFLAGS=$save_LDFLAGS
20154 libdir=$save_libdir
20155
20156fi
20157
20158 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020159
20160 # This implies no fast_install, which is unacceptable.
20161 # Some rework will be needed to allow for fast_install
20162 # before this can be enabled.
20163 hardcode_into_libs=yes
20164
20165 # Add ABI-specific directories to the system library path.
20166 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20167
20168 # Append ld.so.conf contents to the search path
20169 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020170 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 +000020171 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020172
cristy73bd4a52010-10-05 11:24:23 +000020173 fi
20174
20175 # We used to test for /lib/ld.so.1 and disable shared libraries on
20176 # powerpc, because MkLinux only supported shared libraries with the
20177 # GNU dynamic linker. Since this was broken with cross compilers,
20178 # most powerpc-linux boxes support dynamic linking these days and
20179 # people can always --disable-shared, the test was removed, and we
20180 # assume the GNU/Linux dynamic linker is in use.
20181 dynamic_linker='GNU/Linux ld.so'
20182 ;;
20183
20184netbsd*)
20185 version_type=sunos
20186 need_lib_prefix=no
20187 need_version=no
20188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20191 dynamic_linker='NetBSD (a.out) ld.so'
20192 else
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20194 soname_spec='${libname}${release}${shared_ext}$major'
20195 dynamic_linker='NetBSD ld.elf_so'
20196 fi
20197 shlibpath_var=LD_LIBRARY_PATH
20198 shlibpath_overrides_runpath=yes
20199 hardcode_into_libs=yes
20200 ;;
20201
20202newsos6)
cristy99bd5232011-12-07 14:38:20 +000020203 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 shlibpath_overrides_runpath=yes
20207 ;;
20208
20209*nto* | *qnx*)
20210 version_type=qnx
20211 need_lib_prefix=no
20212 need_version=no
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20214 soname_spec='${libname}${release}${shared_ext}$major'
20215 shlibpath_var=LD_LIBRARY_PATH
20216 shlibpath_overrides_runpath=no
20217 hardcode_into_libs=yes
20218 dynamic_linker='ldqnx.so'
20219 ;;
20220
20221openbsd*)
20222 version_type=sunos
20223 sys_lib_dlsearch_path_spec="/usr/lib"
20224 need_lib_prefix=no
20225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20226 case $host_os in
20227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20228 *) need_version=no ;;
20229 esac
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20232 shlibpath_var=LD_LIBRARY_PATH
20233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20234 case $host_os in
20235 openbsd2.[89] | openbsd2.[89].*)
20236 shlibpath_overrides_runpath=no
20237 ;;
20238 *)
20239 shlibpath_overrides_runpath=yes
20240 ;;
20241 esac
20242 else
20243 shlibpath_overrides_runpath=yes
20244 fi
20245 ;;
20246
20247os2*)
20248 libname_spec='$name'
20249 shrext_cmds=".dll"
20250 need_lib_prefix=no
20251 library_names_spec='$libname${shared_ext} $libname.a'
20252 dynamic_linker='OS/2 ld.exe'
20253 shlibpath_var=LIBPATH
20254 ;;
20255
20256osf3* | osf4* | osf5*)
20257 version_type=osf
20258 need_lib_prefix=no
20259 need_version=no
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 shlibpath_var=LD_LIBRARY_PATH
20263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20265 ;;
20266
20267rdos*)
20268 dynamic_linker=no
20269 ;;
20270
20271solaris*)
cristy99bd5232011-12-07 14:38:20 +000020272 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020273 need_lib_prefix=no
20274 need_version=no
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276 soname_spec='${libname}${release}${shared_ext}$major'
20277 shlibpath_var=LD_LIBRARY_PATH
20278 shlibpath_overrides_runpath=yes
20279 hardcode_into_libs=yes
20280 # ldd complains unless libraries are executable
20281 postinstall_cmds='chmod +x $lib'
20282 ;;
20283
20284sunos4*)
20285 version_type=sunos
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 shlibpath_overrides_runpath=yes
20290 if test "$with_gnu_ld" = yes; then
20291 need_lib_prefix=no
20292 fi
20293 need_version=yes
20294 ;;
20295
20296sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020297 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20299 soname_spec='${libname}${release}${shared_ext}$major'
20300 shlibpath_var=LD_LIBRARY_PATH
20301 case $host_vendor in
20302 sni)
20303 shlibpath_overrides_runpath=no
20304 need_lib_prefix=no
20305 runpath_var=LD_RUN_PATH
20306 ;;
20307 siemens)
20308 need_lib_prefix=no
20309 ;;
20310 motorola)
20311 need_lib_prefix=no
20312 need_version=no
20313 shlibpath_overrides_runpath=no
20314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20315 ;;
20316 esac
20317 ;;
20318
20319sysv4*MP*)
20320 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020321 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20323 soname_spec='$libname${shared_ext}.$major'
20324 shlibpath_var=LD_LIBRARY_PATH
20325 fi
20326 ;;
20327
20328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20329 version_type=freebsd-elf
20330 need_lib_prefix=no
20331 need_version=no
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 shlibpath_overrides_runpath=yes
20336 hardcode_into_libs=yes
20337 if test "$with_gnu_ld" = yes; then
20338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20339 else
20340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20341 case $host_os in
20342 sco3.2v5*)
20343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20344 ;;
20345 esac
20346 fi
20347 sys_lib_dlsearch_path_spec='/usr/lib'
20348 ;;
20349
20350tpf*)
20351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020352 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020353 need_lib_prefix=no
20354 need_version=no
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=no
20358 hardcode_into_libs=yes
20359 ;;
20360
20361uts4*)
cristy99bd5232011-12-07 14:38:20 +000020362 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364 soname_spec='${libname}${release}${shared_ext}$major'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 ;;
20367
20368*)
20369 dynamic_linker=no
20370 ;;
20371esac
20372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20373$as_echo "$dynamic_linker" >&6; }
20374test "$dynamic_linker" = no && can_build_shared=no
20375
20376variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20377if test "$GCC" = yes; then
20378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20379fi
20380
20381if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20382 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20383fi
20384if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20385 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20386fi
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
cristy0c60a692010-11-04 01:09:47 +000020423
20424
cristy73bd4a52010-10-05 11:24:23 +000020425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20426$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20427hardcode_action_CXX=
20428if test -n "$hardcode_libdir_flag_spec_CXX" ||
20429 test -n "$runpath_var_CXX" ||
20430 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20431
20432 # We can hardcode non-existent directories.
20433 if test "$hardcode_direct_CXX" != no &&
20434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20435 # have to relink, otherwise we might link with an installed library
20436 # when we should be linking with a yet-to-be-installed one
20437 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20438 test "$hardcode_minus_L_CXX" != no; then
20439 # Linking always hardcodes the temporary library directory.
20440 hardcode_action_CXX=relink
20441 else
20442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20443 hardcode_action_CXX=immediate
20444 fi
20445else
20446 # We cannot hardcode anything, or else we can only hardcode existing
20447 # directories.
20448 hardcode_action_CXX=unsupported
20449fi
20450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20451$as_echo "$hardcode_action_CXX" >&6; }
20452
20453if test "$hardcode_action_CXX" = relink ||
20454 test "$inherit_rpath_CXX" = yes; then
20455 # Fast installation is not supported
20456 enable_fast_install=no
20457elif test "$shlibpath_overrides_runpath" = yes ||
20458 test "$enable_shared" = no; then
20459 # Fast installation is not necessary
20460 enable_fast_install=needless
20461fi
20462
20463
20464
20465
20466
20467
20468
20469 fi # test -n "$compiler"
20470
20471 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020472 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020473 LDCXX=$LD
20474 LD=$lt_save_LD
20475 GCC=$lt_save_GCC
20476 with_gnu_ld=$lt_save_with_gnu_ld
20477 lt_cv_path_LDCXX=$lt_cv_path_LD
20478 lt_cv_path_LD=$lt_save_path_LD
20479 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20480 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20481fi # test "$_lt_caught_CXX_error" != yes
20482
20483ac_ext=c
20484ac_cpp='$CPP $CPPFLAGS'
20485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20487ac_compiler_gnu=$ac_cv_c_compiler_gnu
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
cristy99bd5232011-12-07 14:38:20 +000020501
20502
cristy73bd4a52010-10-05 11:24:23 +000020503 ac_config_commands="$ac_config_commands libtool"
20504
20505
20506
20507
20508# Only expand once:
20509
20510
20511
cristy3ed852e2009-09-05 21:47:34 +000020512
20513
20514# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020515
20516
20517
20518
20519
20520
20521
cristy73bd4a52010-10-05 11:24:23 +000020522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20523$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020524if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020525 $as_echo_n "(cached) " >&6
20526else
20527
20528module=yes
20529eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020530module=no
20531eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020532
20533fi
20534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20535$as_echo "$libltdl_cv_shlibext" >&6; }
20536if test -n "$libltdl_cv_shlibext"; then
20537
20538cat >>confdefs.h <<_ACEOF
20539#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20540_ACEOF
20541
20542fi
cristy99bd5232011-12-07 14:38:20 +000020543if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20544
20545cat >>confdefs.h <<_ACEOF
20546#define LT_SHARED_EXT "$libltdl_cv_shrext"
20547_ACEOF
20548
20549fi
cristy73bd4a52010-10-05 11:24:23 +000020550
20551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20552$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020553if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020554 $as_echo_n "(cached) " >&6
20555else
20556 lt_cv_module_path_var="$shlibpath_var"
20557fi
20558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20559$as_echo "$lt_cv_module_path_var" >&6; }
20560if test -n "$lt_cv_module_path_var"; then
20561
20562cat >>confdefs.h <<_ACEOF
20563#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20564_ACEOF
20565
20566fi
20567
20568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20569$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020570if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020571 $as_echo_n "(cached) " >&6
20572else
20573 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20574fi
20575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20576$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20577if test -n "$lt_cv_sys_dlsearch_path"; then
20578 sys_dlsearch_path=
20579 for dir in $lt_cv_sys_dlsearch_path; do
20580 if test -z "$sys_dlsearch_path"; then
20581 sys_dlsearch_path="$dir"
20582 else
20583 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20584 fi
20585 done
20586
20587cat >>confdefs.h <<_ACEOF
20588#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20589_ACEOF
20590
20591fi
20592
20593
20594LT_DLLOADERS=
20595
20596
20597ac_ext=c
20598ac_cpp='$CPP $CPPFLAGS'
20599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602
20603
20604LIBADD_DLOPEN=
20605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20606$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020607if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020608 $as_echo_n "(cached) " >&6
20609else
20610 ac_func_search_save_LIBS=$LIBS
20611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612/* end confdefs.h. */
20613
20614/* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20617#ifdef __cplusplus
20618extern "C"
20619#endif
20620char dlopen ();
20621int
20622main ()
20623{
20624return dlopen ();
20625 ;
20626 return 0;
20627}
20628_ACEOF
20629for ac_lib in '' dl; do
20630 if test -z "$ac_lib"; then
20631 ac_res="none required"
20632 else
20633 ac_res=-l$ac_lib
20634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20635 fi
20636 if ac_fn_c_try_link "$LINENO"; then :
20637 ac_cv_search_dlopen=$ac_res
20638fi
20639rm -f core conftest.err conftest.$ac_objext \
20640 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020641 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020642 break
20643fi
20644done
cristyda16f162011-02-19 23:52:17 +000020645if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020646
20647else
20648 ac_cv_search_dlopen=no
20649fi
20650rm conftest.$ac_ext
20651LIBS=$ac_func_search_save_LIBS
20652fi
20653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20654$as_echo "$ac_cv_search_dlopen" >&6; }
20655ac_res=$ac_cv_search_dlopen
20656if test "$ac_res" != no; then :
20657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20658
20659$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20660
20661 if test "$ac_cv_search_dlopen" != "none required" ; then
20662 LIBADD_DLOPEN="-ldl"
20663 fi
20664 libltdl_cv_lib_dl_dlopen="yes"
20665 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20666else
20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668/* end confdefs.h. */
20669#if HAVE_DLFCN_H
20670# include <dlfcn.h>
20671#endif
20672
20673int
20674main ()
20675{
20676dlopen(0, 0);
20677 ;
20678 return 0;
20679}
20680_ACEOF
20681if ac_fn_c_try_link "$LINENO"; then :
20682
20683$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20684
20685 libltdl_cv_func_dlopen="yes"
20686 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20687else
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20689$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020690if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020691 $as_echo_n "(cached) " >&6
20692else
20693 ac_check_lib_save_LIBS=$LIBS
20694LIBS="-lsvld $LIBS"
20695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696/* end confdefs.h. */
20697
20698/* Override any GCC internal prototype to avoid an error.
20699 Use char because int might match the return type of a GCC
20700 builtin and then its argument prototype would still apply. */
20701#ifdef __cplusplus
20702extern "C"
20703#endif
20704char dlopen ();
20705int
20706main ()
20707{
20708return dlopen ();
20709 ;
20710 return 0;
20711}
20712_ACEOF
20713if ac_fn_c_try_link "$LINENO"; then :
20714 ac_cv_lib_svld_dlopen=yes
20715else
20716 ac_cv_lib_svld_dlopen=no
20717fi
20718rm -f core conftest.err conftest.$ac_objext \
20719 conftest$ac_exeext conftest.$ac_ext
20720LIBS=$ac_check_lib_save_LIBS
20721fi
20722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20723$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020724if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020725
20726$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20727
20728 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20729 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20730fi
20731
20732fi
20733rm -f core conftest.err conftest.$ac_objext \
20734 conftest$ac_exeext conftest.$ac_ext
20735fi
20736
20737if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20738then
20739 lt_save_LIBS="$LIBS"
20740 LIBS="$LIBS $LIBADD_DLOPEN"
20741 for ac_func in dlerror
20742do :
20743 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020744if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020745 cat >>confdefs.h <<_ACEOF
20746#define HAVE_DLERROR 1
20747_ACEOF
20748
20749fi
20750done
20751
20752 LIBS="$lt_save_LIBS"
20753fi
20754
20755
20756LIBADD_SHL_LOAD=
20757ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020758if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020759
20760$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20761
20762 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20763else
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20765$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020766if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020767 $as_echo_n "(cached) " >&6
20768else
20769 ac_check_lib_save_LIBS=$LIBS
20770LIBS="-ldld $LIBS"
20771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20772/* end confdefs.h. */
20773
20774/* Override any GCC internal prototype to avoid an error.
20775 Use char because int might match the return type of a GCC
20776 builtin and then its argument prototype would still apply. */
20777#ifdef __cplusplus
20778extern "C"
20779#endif
20780char shl_load ();
20781int
20782main ()
20783{
20784return shl_load ();
20785 ;
20786 return 0;
20787}
20788_ACEOF
20789if ac_fn_c_try_link "$LINENO"; then :
20790 ac_cv_lib_dld_shl_load=yes
20791else
20792 ac_cv_lib_dld_shl_load=no
20793fi
20794rm -f core conftest.err conftest.$ac_objext \
20795 conftest$ac_exeext conftest.$ac_ext
20796LIBS=$ac_check_lib_save_LIBS
20797fi
20798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20799$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020800if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020801
20802$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20803
20804 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20805 LIBADD_SHL_LOAD="-ldld"
20806fi
20807
20808fi
20809
20810
20811
20812case $host_os in
20813darwin[1567].*)
20814# We only want this for pre-Mac OS X 10.4.
20815 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020816if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020817
20818$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20819
20820 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20821fi
20822
20823 ;;
20824beos*)
20825 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20826 ;;
20827cygwin* | mingw* | os2* | pw32*)
20828 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20829"
cristyda16f162011-02-19 23:52:17 +000020830if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020831 ac_have_decl=1
20832else
20833 ac_have_decl=0
20834fi
20835
20836cat >>confdefs.h <<_ACEOF
20837#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20838_ACEOF
20839
20840 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20841 ;;
20842esac
20843
20844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20845$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020846if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020847 $as_echo_n "(cached) " >&6
20848else
20849 ac_check_lib_save_LIBS=$LIBS
20850LIBS="-ldld $LIBS"
20851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20852/* end confdefs.h. */
20853
20854/* Override any GCC internal prototype to avoid an error.
20855 Use char because int might match the return type of a GCC
20856 builtin and then its argument prototype would still apply. */
20857#ifdef __cplusplus
20858extern "C"
20859#endif
20860char dld_link ();
20861int
20862main ()
20863{
20864return dld_link ();
20865 ;
20866 return 0;
20867}
20868_ACEOF
20869if ac_fn_c_try_link "$LINENO"; then :
20870 ac_cv_lib_dld_dld_link=yes
20871else
20872 ac_cv_lib_dld_dld_link=no
20873fi
20874rm -f core conftest.err conftest.$ac_objext \
20875 conftest$ac_exeext conftest.$ac_ext
20876LIBS=$ac_check_lib_save_LIBS
20877fi
20878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20879$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020880if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020881
20882$as_echo "#define HAVE_DLD 1" >>confdefs.h
20883
20884 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20885fi
20886
20887
20888
20889
20890LT_DLPREOPEN=
20891if test -n "$LT_DLLOADERS"
20892then
20893 for lt_loader in $LT_DLLOADERS; do
20894 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20895 done
20896
20897$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20898
20899fi
20900
20901
20902LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20903
20904
20905ac_ext=c
20906ac_cpp='$CPP $CPPFLAGS'
20907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909ac_compiler_gnu=$ac_cv_c_compiler_gnu
20910
20911
20912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20913$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020914if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020915 $as_echo_n "(cached) " >&6
20916else
20917 lt_cv_sys_symbol_underscore=no
20918 cat > conftest.$ac_ext <<_LT_EOF
20919void nm_test_func(){}
20920int main(){nm_test_func;return 0;}
20921_LT_EOF
20922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20923 (eval $ac_compile) 2>&5
20924 ac_status=$?
20925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20926 test $ac_status = 0; }; then
20927 # Now try to grab the symbols.
20928 ac_nlist=conftest.nm
20929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20930 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20931 ac_status=$?
20932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20933 test $ac_status = 0; } && test -s "$ac_nlist"; then
20934 # See whether the symbols have a leading underscore.
20935 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20936 lt_cv_sys_symbol_underscore=yes
20937 else
20938 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20939 :
20940 else
20941 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20942 fi
20943 fi
20944 else
20945 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20946 fi
20947 else
20948 echo "configure: failed program was:" >&5
20949 cat conftest.c >&5
20950 fi
20951 rm -rf conftest*
20952
20953fi
20954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20955$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20956 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20957
20958
20959if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20960 if test x"$libltdl_cv_func_dlopen" = xyes ||
20961 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20963$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020964if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020965 $as_echo_n "(cached) " >&6
20966else
20967 libltdl_cv_need_uscore=unknown
20968 save_LIBS="$LIBS"
20969 LIBS="$LIBS $LIBADD_DLOPEN"
20970 if test "$cross_compiling" = yes; then :
20971 libltdl_cv_need_uscore=cross
20972else
20973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20974 lt_status=$lt_dlunknown
20975 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020976#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020977#include "confdefs.h"
20978
20979#if HAVE_DLFCN_H
20980#include <dlfcn.h>
20981#endif
20982
20983#include <stdio.h>
20984
20985#ifdef RTLD_GLOBAL
20986# define LT_DLGLOBAL RTLD_GLOBAL
20987#else
20988# ifdef DL_GLOBAL
20989# define LT_DLGLOBAL DL_GLOBAL
20990# else
20991# define LT_DLGLOBAL 0
20992# endif
20993#endif
20994
20995/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20996 find out it does not work in some platform. */
20997#ifndef LT_DLLAZY_OR_NOW
20998# ifdef RTLD_LAZY
20999# define LT_DLLAZY_OR_NOW RTLD_LAZY
21000# else
21001# ifdef DL_LAZY
21002# define LT_DLLAZY_OR_NOW DL_LAZY
21003# else
21004# ifdef RTLD_NOW
21005# define LT_DLLAZY_OR_NOW RTLD_NOW
21006# else
21007# ifdef DL_NOW
21008# define LT_DLLAZY_OR_NOW DL_NOW
21009# else
21010# define LT_DLLAZY_OR_NOW 0
21011# endif
21012# endif
21013# endif
21014# endif
21015#endif
21016
cristy0c60a692010-11-04 01:09:47 +000021017/* When -fvisbility=hidden is used, assume the code has been annotated
21018 correspondingly for the symbols needed. */
21019#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021020int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021021#endif
21022
cristyda16f162011-02-19 23:52:17 +000021023int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021024int main ()
21025{
21026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21027 int status = $lt_dlunknown;
21028
21029 if (self)
21030 {
21031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021032 else
21033 {
21034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21035 else puts (dlerror ());
21036 }
cristy73bd4a52010-10-05 11:24:23 +000021037 /* dlclose (self); */
21038 }
21039 else
21040 puts (dlerror ());
21041
21042 return status;
21043}
21044_LT_EOF
21045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21046 (eval $ac_link) 2>&5
21047 ac_status=$?
21048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21049 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21050 (./conftest; exit; ) >&5 2>/dev/null
21051 lt_status=$?
21052 case x$lt_status in
21053 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21054 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21055 x$lt_dlunknown|x*) ;;
21056 esac
21057 else :
21058 # compilation failed
21059
21060 fi
21061fi
21062rm -fr conftest*
21063
21064 LIBS="$save_LIBS"
21065
21066fi
21067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21068$as_echo "$libltdl_cv_need_uscore" >&6; }
21069 fi
21070fi
21071
21072if test x"$libltdl_cv_need_uscore" = xyes; then
21073
21074$as_echo "#define NEED_USCORE 1" >>confdefs.h
21075
21076fi
21077
21078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21079$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021080if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021081 $as_echo_n "(cached) " >&6
21082else
21083 # PORTME does your system automatically load deplibs for dlopen?
21084 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21085 # For now, we just catch OSes we know something about -- in the
21086 # future, we'll try test this programmatically.
21087 lt_cv_sys_dlopen_deplibs=unknown
21088 case $host_os in
21089 aix3*|aix4.1.*|aix4.2.*)
21090 # Unknown whether this is true for these versions of AIX, but
21091 # we want this `case' here to explicitly catch those versions.
21092 lt_cv_sys_dlopen_deplibs=unknown
21093 ;;
21094 aix[4-9]*)
21095 lt_cv_sys_dlopen_deplibs=yes
21096 ;;
21097 amigaos*)
21098 case $host_cpu in
21099 powerpc)
21100 lt_cv_sys_dlopen_deplibs=no
21101 ;;
21102 esac
21103 ;;
21104 darwin*)
21105 # Assuming the user has installed a libdl from somewhere, this is true
21106 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21107 lt_cv_sys_dlopen_deplibs=yes
21108 ;;
21109 freebsd* | dragonfly*)
21110 lt_cv_sys_dlopen_deplibs=yes
21111 ;;
cristy0c60a692010-11-04 01:09:47 +000021112 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021113 # GNU and its variants, using gnu ld.so (Glibc)
21114 lt_cv_sys_dlopen_deplibs=yes
21115 ;;
21116 hpux10*|hpux11*)
21117 lt_cv_sys_dlopen_deplibs=yes
21118 ;;
21119 interix*)
21120 lt_cv_sys_dlopen_deplibs=yes
21121 ;;
21122 irix[12345]*|irix6.[01]*)
21123 # Catch all versions of IRIX before 6.2, and indicate that we don't
21124 # know how it worked for any of those versions.
21125 lt_cv_sys_dlopen_deplibs=unknown
21126 ;;
21127 irix*)
21128 # The case above catches anything before 6.2, and it's known that
21129 # at 6.2 and later dlopen does load deplibs.
21130 lt_cv_sys_dlopen_deplibs=yes
21131 ;;
21132 netbsd*)
21133 lt_cv_sys_dlopen_deplibs=yes
21134 ;;
21135 openbsd*)
21136 lt_cv_sys_dlopen_deplibs=yes
21137 ;;
21138 osf[1234]*)
21139 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21140 # it did *not* use an RPATH in a shared library to find objects the
21141 # library depends on, so we explicitly say `no'.
21142 lt_cv_sys_dlopen_deplibs=no
21143 ;;
21144 osf5.0|osf5.0a|osf5.1)
21145 # dlopen *does* load deplibs and with the right loader patch applied
21146 # it even uses RPATH in a shared library to search for shared objects
21147 # that the library depends on, but there's no easy way to know if that
21148 # patch is installed. Since this is the case, all we can really
21149 # say is unknown -- it depends on the patch being installed. If
21150 # it is, this changes to `yes'. Without it, it would be `no'.
21151 lt_cv_sys_dlopen_deplibs=unknown
21152 ;;
21153 osf*)
21154 # the two cases above should catch all versions of osf <= 5.1. Read
21155 # the comments above for what we know about them.
21156 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21157 # is used to find them so we can finally say `yes'.
21158 lt_cv_sys_dlopen_deplibs=yes
21159 ;;
21160 qnx*)
21161 lt_cv_sys_dlopen_deplibs=yes
21162 ;;
21163 solaris*)
21164 lt_cv_sys_dlopen_deplibs=yes
21165 ;;
21166 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21167 libltdl_cv_sys_dlopen_deplibs=yes
21168 ;;
21169 esac
21170
21171fi
21172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21173$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21174if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21175
21176$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21177
21178fi
21179
21180:
21181
21182for ac_header in argz.h
21183do :
21184 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21185"
cristyda16f162011-02-19 23:52:17 +000021186if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021187 cat >>confdefs.h <<_ACEOF
21188#define HAVE_ARGZ_H 1
21189_ACEOF
21190
21191fi
21192
21193done
21194
21195
21196ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21197# include <argz.h>
21198#endif
21199"
cristyda16f162011-02-19 23:52:17 +000021200if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021201
21202cat >>confdefs.h <<_ACEOF
21203#define HAVE_ERROR_T 1
21204_ACEOF
21205
21206
21207else
21208
21209$as_echo "#define error_t int" >>confdefs.h
21210
21211
21212$as_echo "#define __error_t_defined 1" >>confdefs.h
21213
21214fi
21215
21216
21217ARGZ_H=
21218for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21219 argz_next argz_stringify
21220do :
21221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21222ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021223if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021224 cat >>confdefs.h <<_ACEOF
21225#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21226_ACEOF
21227
21228else
21229 ARGZ_H=argz.h;
21230
21231 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21232
21233fi
21234done
21235
21236
21237if test -z "$ARGZ_H"; then :
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21239$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021240if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021241 $as_echo_n "(cached) " >&6
21242else
21243 case $host_os in #(
21244 *cygwin*)
21245 lt_cv_sys_argz_works=no
21246 if test "$cross_compiling" != no; then
21247 lt_cv_sys_argz_works="guessing no"
21248 else
21249 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21250 save_IFS=$IFS
21251 IFS=-.
21252 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21253 IFS=$save_IFS
21254 lt_os_major=${2-0}
21255 lt_os_minor=${3-0}
21256 lt_os_micro=${4-0}
21257 if test "$lt_os_major" -gt 1 \
21258 || { test "$lt_os_major" -eq 1 \
21259 && { test "$lt_os_minor" -gt 5 \
21260 || { test "$lt_os_minor" -eq 5 \
21261 && test "$lt_os_micro" -gt 24; }; }; }; then
21262 lt_cv_sys_argz_works=yes
21263 fi
21264 fi
21265 ;; #(
21266 *) lt_cv_sys_argz_works=yes ;;
21267 esac
21268fi
21269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21270$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021271 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021272
21273$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21274
21275else
21276 ARGZ_H=argz.h
21277
21278
21279 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21280
21281fi
21282fi
21283
21284
21285
21286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21287$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021288if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021289 $as_echo_n "(cached) " >&6
21290else
21291 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21292 libltdl_cv_preloaded_symbols=yes
21293 else
21294 libltdl_cv_preloaded_symbols=no
21295 fi
21296
21297fi
21298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21299$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21300if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21301
21302$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21303
21304fi
21305
21306# Set options
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318# Check whether --with-included_ltdl was given.
21319if test "${with_included_ltdl+set}" = set; then :
21320 withval=$with_included_ltdl;
21321fi
21322
21323
21324if test "x$with_included_ltdl" != xyes; then
21325 # We are not being forced to use the included libltdl sources, so
21326 # decide whether there is a useful installed version we can use.
21327 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21328
21329"
cristyda16f162011-02-19 23:52:17 +000021330if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021331 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21332 #include <ltdl.h>
21333"
cristyda16f162011-02-19 23:52:17 +000021334if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21336$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021337if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021338 $as_echo_n "(cached) " >&6
21339else
21340 ac_check_lib_save_LIBS=$LIBS
21341LIBS="-lltdl $LIBS"
21342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21343/* end confdefs.h. */
21344
21345/* Override any GCC internal prototype to avoid an error.
21346 Use char because int might match the return type of a GCC
21347 builtin and then its argument prototype would still apply. */
21348#ifdef __cplusplus
21349extern "C"
21350#endif
21351char lt_dladvise_preload ();
21352int
21353main ()
21354{
21355return lt_dladvise_preload ();
21356 ;
21357 return 0;
21358}
21359_ACEOF
21360if ac_fn_c_try_link "$LINENO"; then :
21361 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21362else
21363 ac_cv_lib_ltdl_lt_dladvise_preload=no
21364fi
21365rm -f core conftest.err conftest.$ac_objext \
21366 conftest$ac_exeext conftest.$ac_ext
21367LIBS=$ac_check_lib_save_LIBS
21368fi
21369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21370$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021371if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021372 with_included_ltdl=no
21373else
21374 with_included_ltdl=yes
21375fi
21376
21377else
21378 with_included_ltdl=yes
21379fi
21380
21381else
21382 with_included_ltdl=yes
21383fi
21384
21385
21386fi
21387
21388
21389
21390
21391# Check whether --with-ltdl_include was given.
21392if test "${with_ltdl_include+set}" = set; then :
21393 withval=$with_ltdl_include;
21394fi
21395
21396
21397if test -n "$with_ltdl_include"; then
21398 if test -f "$with_ltdl_include/ltdl.h"; then :
21399 else
cristy98dddb52010-11-04 00:30:15 +000021400 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021401 fi
21402else
21403 with_ltdl_include=no
21404fi
21405
21406
21407# Check whether --with-ltdl_lib was given.
21408if test "${with_ltdl_lib+set}" = set; then :
21409 withval=$with_ltdl_lib;
21410fi
21411
21412
21413if test -n "$with_ltdl_lib"; then
21414 if test -f "$with_ltdl_lib/libltdl.la"; then :
21415 else
cristy98dddb52010-11-04 00:30:15 +000021416 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021417 fi
21418else
21419 with_ltdl_lib=no
21420fi
21421
21422case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21423 ,yes,no,no,)
21424 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021425 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021426 "") enable_ltdl_convenience=yes
21427 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21428esac
21429LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21430LTDLDEPS=$LIBLTDL
21431LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21432
21433
21434
21435
21436
21437# For backwards non-gettext consistent compatibility...
21438INCLTDL="$LTDLINCL"
21439
21440
21441 ;;
21442 ,no,no,no,)
21443 # If the included ltdl is not to be used, then use the
21444 # preinstalled libltdl we found.
21445
21446$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21447
21448 LIBLTDL=-lltdl
21449 LTDLDEPS=
21450 LTDLINCL=
21451 ;;
21452 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021453 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021454 ;;
21455 *) with_included_ltdl=no
21456 LIBLTDL="-L$with_ltdl_lib -lltdl"
21457 LTDLDEPS=
21458 LTDLINCL="-I$with_ltdl_include"
21459 ;;
21460esac
21461INCLTDL="$LTDLINCL"
21462
21463# Report our decision...
21464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21465$as_echo_n "checking where to find libltdl headers... " >&6; }
21466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21467$as_echo "$LTDLINCL" >&6; }
21468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21469$as_echo_n "checking where to find libltdl library... " >&6; }
21470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21471$as_echo "$LIBLTDL" >&6; }
21472
21473
21474
21475# Check whether --enable-ltdl-install was given.
21476if test "${enable_ltdl_install+set}" = set; then :
21477 enableval=$enable_ltdl_install;
21478fi
21479
21480
21481case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21482 *yes*) ;;
21483 *) enable_ltdl_convenience=yes ;;
21484esac
21485
21486 if test x"${enable_ltdl_install-no}" != xno; then
21487 INSTALL_LTDL_TRUE=
21488 INSTALL_LTDL_FALSE='#'
21489else
21490 INSTALL_LTDL_TRUE='#'
21491 INSTALL_LTDL_FALSE=
21492fi
21493
21494 if test x"${enable_ltdl_convenience-no}" != xno; then
21495 CONVENIENCE_LTDL_TRUE=
21496 CONVENIENCE_LTDL_FALSE='#'
21497else
21498 CONVENIENCE_LTDL_TRUE='#'
21499 CONVENIENCE_LTDL_FALSE=
21500fi
21501
21502
21503
21504
21505
21506
cristy73bd4a52010-10-05 11:24:23 +000021507# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21508# the user used. This is so that ltdl.h can pick up the parent projects
21509# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21510# definitions required by ltdl.c.
21511# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21512
21513
21514
21515for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21516do :
21517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21518ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21519"
cristy98dddb52010-11-04 00:30:15 +000021520if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021521 cat >>confdefs.h <<_ACEOF
21522#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21523_ACEOF
21524
21525fi
21526
21527done
21528
21529
21530for ac_func in closedir opendir readdir
21531do :
21532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21533ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021534if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021535 cat >>confdefs.h <<_ACEOF
21536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21537_ACEOF
21538
21539else
21540
21541
21542 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21543
21544fi
21545done
21546
21547for ac_func in strlcat strlcpy
21548do :
21549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21550ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021551if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021552 cat >>confdefs.h <<_ACEOF
21553#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21554_ACEOF
21555
21556else
21557
21558
21559 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21560
21561fi
21562done
21563
21564
21565
21566cat >>confdefs.h <<_ACEOF
21567#define LT_LIBEXT "$libext"
21568_ACEOF
21569
21570
cristyda16f162011-02-19 23:52:17 +000021571name=
21572eval "lt_libprefix=\"$libname_spec\""
21573
21574cat >>confdefs.h <<_ACEOF
21575#define LT_LIBPREFIX "$lt_libprefix"
21576_ACEOF
21577
21578
cristy73bd4a52010-10-05 11:24:23 +000021579name=ltdl
cristyda16f162011-02-19 23:52:17 +000021580eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021581
21582
21583
21584
21585
21586
21587
21588
21589# Only expand once:
21590
21591
cristy3ed852e2009-09-05 21:47:34 +000021592
21593# Check to see if building shared libraries
21594libtool_build_shared_libs='no'
21595if test "$enable_shared" = 'yes'; then
21596 libtool_build_shared_libs='yes'
21597fi
21598
21599# Check to see if building static libraries
21600libtool_build_static_libs='no'
21601if test "$enable_static" = 'yes'; then
21602 libtool_build_static_libs='yes'
21603fi
21604
cristy73bd4a52010-10-05 11:24:23 +000021605 if test "${libtool_build_shared_libs}" = 'yes'; then
21606 WITH_SHARED_LIBS_TRUE=
21607 WITH_SHARED_LIBS_FALSE='#'
21608else
21609 WITH_SHARED_LIBS_TRUE='#'
21610 WITH_SHARED_LIBS_FALSE=
21611fi
21612
cristy3ed852e2009-09-05 21:47:34 +000021613#
21614# Enable support for building loadable modules
21615#
21616
21617# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021618if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021619 withval=$with_modules; with_modules=$withval
21620else
cristy5a1cefd2010-01-06 20:42:35 +000021621 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021622fi
21623
21624
21625# Only allow building loadable modules if we are building shared libraries
21626if test "$with_modules" != 'no' ; then
21627 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021628 { $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 +000021629$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21630 with_modules='no'
21631 fi
21632fi
21633if test "$with_modules" != 'no'; then
21634
cristy8b350f62009-11-15 23:12:43 +000021635$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021636
21637fi
cristy73bd4a52010-10-05 11:24:23 +000021638 if test "$with_modules" != 'no'; then
21639 WITH_MODULES_TRUE=
21640 WITH_MODULES_FALSE='#'
21641else
21642 WITH_MODULES_TRUE='#'
21643 WITH_MODULES_FALSE=
21644fi
21645
cristy3ed852e2009-09-05 21:47:34 +000021646
21647# Enable building/use of libltdl if we are building shared libraries regardless
21648# of whether modules are built or not.
21649with_ltdl='no'
21650if test "$libtool_build_shared_libs" != 'no'; then
21651 with_ltdl='yes'
21652fi
21653
cristy73bd4a52010-10-05 11:24:23 +000021654 if test "$with_ltdl" != 'no'; then
21655 WITH_LTDL_TRUE=
21656 WITH_LTDL_FALSE='#'
21657else
21658 WITH_LTDL_TRUE='#'
21659 WITH_LTDL_FALSE=
21660fi
21661
cristy3ed852e2009-09-05 21:47:34 +000021662if test "$with_ltdl" != 'no'; then
21663
cristy8b350f62009-11-15 23:12:43 +000021664$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021665
21666
21667 # Set DLLDFLAGS
21668 if test X"$enable_shared" = Xyes; then
21669 DLLDFLAGS=-export-dynamic
21670
21671 fi
21672fi
21673
21674# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021675# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021676# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021677if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021678 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21679else
21680 enable_delegate_build='no'
21681fi
21682
21683
21684# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021685if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021686 enableval=$enable_deprecated; enable_deprecated=$enableval
21687else
21688 enable_deprecated='no'
21689fi
21690
21691
21692if test "$enable_deprecated" = 'yes'; then
21693
cristy8b350f62009-11-15 23:12:43 +000021694$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021695
21696else
21697 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21698fi
21699
21700# Build a version of ImageMagick which operates uninstalled.
21701# Used to build distributions located via MAGICK_HOME / executable path
21702# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021703if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021704 enableval=$enable_installed; enable_installed=$enableval
21705else
21706 enable_installed='yes'
21707fi
21708
21709
21710if test "$enable_installed" = 'yes'; then
21711
cristy8b350f62009-11-15 23:12:43 +000021712$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021713
21714else
21715 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21716fi
21717
21718# Permit enciphering and deciphering image pixels.
21719# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021720if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 enableval=$enable_cipher; enable_cipher=$enableval
21722else
21723 enable_cipher='yes'
21724fi
21725
21726
21727if test "$enable_cipher" = 'yes'; then
21728
cristy8b350f62009-11-15 23:12:43 +000021729$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021730
21731fi
21732
cristy6e3607c2011-09-13 13:59:17 +000021733# Build a zero-configuration version of ImageMagick.
21734# Check whether --enable-zero-configuration was given.
21735if test "${enable_zero_configuration+set}" = set; then :
21736 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021737else
cristy6e3607c2011-09-13 13:59:17 +000021738 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021739fi
21740
21741
cristy6e3607c2011-09-13 13:59:17 +000021742if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021743
cristy6e3607c2011-09-13 13:59:17 +000021744$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021745
cristy81af5702011-09-13 14:20:58 +000021746 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021747fi
21748
21749# Build a high dynamic range version of ImageMagick.
21750# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021751if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021752 enableval=$enable_hdri; enable_hdri=$enableval
21753else
21754 enable_hdri='no'
21755fi
21756
21757
21758MAGICK_HDRI=""
21759if test "$enable_hdri" = 'yes'; then
21760 MAGICK_HDRI="HDRI"
21761
cristy8b350f62009-11-15 23:12:43 +000021762$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021763
cristyfd9dcd42010-08-08 18:07:02 +000021764 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021765fi
21766
cristy3ed852e2009-09-05 21:47:34 +000021767# Build a version of ImageMagick with assert statements.
21768# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021769if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021770 enableval=$enable_assert; enable_assert=$enableval
21771else
21772 enable_assert='yes'
21773fi
21774
21775
21776if test "$enable_assert" = 'no'; then
21777
cristy8b350f62009-11-15 23:12:43 +000021778$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021779
21780fi
21781
cristya448bd22011-10-14 12:38:13 +000021782# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021783
21784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21785$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21786 # Check whether --enable-maintainer-mode was given.
21787if test "${enable_maintainer_mode+set}" = set; then :
21788 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21789else
21790 USE_MAINTAINER_MODE=no
21791fi
21792
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21794$as_echo "$USE_MAINTAINER_MODE" >&6; }
21795 if test $USE_MAINTAINER_MODE = yes; then
21796 MAINTAINER_MODE_TRUE=
21797 MAINTAINER_MODE_FALSE='#'
21798else
21799 MAINTAINER_MODE_TRUE='#'
21800 MAINTAINER_MODE_FALSE=
21801fi
21802
21803 MAINT=$MAINTAINER_MODE_TRUE
21804
21805
cristy3ed852e2009-09-05 21:47:34 +000021806
cristy3ed852e2009-09-05 21:47:34 +000021807# Enable ccmalloc memory debugging support
21808# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021809if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021810 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21811else
21812 enable_ccmalloc='no'
21813fi
21814
21815
21816# Enable Electric Fence memory debugging support
21817# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021818if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021819 enableval=$enable_efence; enable_efence=$enableval
21820else
21821 enable_efence='no'
21822fi
21823
21824
21825# Enable prof-based profiling support
21826# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021827if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021828 enableval=$enable_prof; enable_prof=$enableval
21829else
21830 enable_prof='no'
21831fi
21832
21833
21834# Enable gprof-based profiling support
21835# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021836if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021837 enableval=$enable_gprof; enable_gprof=$enableval
21838else
21839 enable_gprof='no'
21840fi
21841
21842
21843# Enable gcov-based profiling support
21844# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021845if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021846 enableval=$enable_gcov; enable_gcov=$enableval
21847else
21848 enable_gcov='no'
21849fi
21850
21851
21852enable_profiling='no'
21853if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21854 enable_profiling='yes'
21855 if test "$libtool_build_shared_libs" = 'yes'; then
21856 echo "Warning: Can not profile code using shared libraries"
21857 fi
21858fi
21859
21860# Magick API method prefix
21861
21862# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021863if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021864 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021865else
cristyfc3d0222012-02-07 15:05:57 +000021866 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021867fi
21868
21869
cristyfc3d0222012-02-07 15:05:57 +000021870if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021871
21872cat >>confdefs.h <<_ACEOF
21873#define NAMESPACE_PREFIX $with_method_prefix
21874_ACEOF
21875
cristyfc3d0222012-02-07 15:05:57 +000021876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021877fi
21878
cristy71d8c202012-03-20 17:05:01 +000021879# Enable legacy support (default no)
21880# Check whether --enable-legacy-support was given.
21881if test "${enable_legacy_support+set}" = set; then :
21882 enableval=$enable_legacy_support; with_legacy_support=$enableval
21883else
21884 with_legacy_support='no'
21885fi
21886
21887 if test "$with_legacy_support" != 'no'; then
21888 LEGACY_SUPPORT_TRUE=
21889 LEGACY_SUPPORT_FALSE='#'
21890else
21891 LEGACY_SUPPORT_TRUE='#'
21892 LEGACY_SUPPORT_FALSE=
21893fi
21894
21895
cristy3ed852e2009-09-05 21:47:34 +000021896# Number of bits in a Quantum
21897
21898# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021899if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021900 withval=$with_quantum_depth; with_quantum_depth=$withval
21901else
21902 with_quantum_depth=16
21903fi
21904
21905
21906if test "$with_quantum_depth" != '8'; then
21907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21908fi
21909
21910case "${with_quantum_depth}" in
21911 8 ) ;;
21912 16 ) ;;
21913 32 ) ;;
21914 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021915 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021916esac
21917QUANTUM_DEPTH="$with_quantum_depth"
21918
21919cat >>confdefs.h <<_ACEOF
21920#define QUANTUM_DEPTH $QUANTUM_DEPTH
21921_ACEOF
21922
21923
21924# Set pixel cache threshold
21925
21926# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021927if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021928 withval=$with_cache; with_cache=$withval
21929else
21930 with_cache=''
21931fi
21932
21933
21934if test "$with_cache" != ''; then
21935
21936cat >>confdefs.h <<_ACEOF
21937#define PixelCacheThreshold $with_cache
21938_ACEOF
21939
21940 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21941fi
21942
21943# Disable/Enable support for full delegate paths
21944
21945# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021946if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021947 withval=$with_frozenpaths; with_frozenpaths=$withval
21948else
21949 with_frozenpaths='no'
21950fi
21951
21952
21953# Enable build/install of Magick++
21954
21955# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021956if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021957 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21958else
21959 with_magick_plus_plus='yes'
21960fi
21961
21962
21963# Disable build/install of PerlMagick.
21964
21965# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021966if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021967 withval=$with_perl; with_perl=$withval
21968else
cristyb5f4e2f2010-04-25 00:49:11 +000021969 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021970fi
21971
21972
21973# Options to pass when configuring PerlMagick
21974
21975# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021976if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021977 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021978fi
21979
21980
cristy3ed852e2009-09-05 21:47:34 +000021981
21982# Enable umem, object-caching memory allocation library.
21983
21984# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021985if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021986 withval=$with_umem; with_umem=$withval
21987else
21988 with_umem='no'
21989fi
21990
21991if test "$with_umem" != 'yes' ; then
21992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21993fi
21994
21995#
21996# Specify path to shared libstdc++ if not in normal location
21997#
21998
21999# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022000if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022001 withval=$with_libstdc; with_libstdc=$withval
22002else
22003 with_libstdc=''
22004fi
22005
22006
22007if test "$with_libstdc" != ''; then
22008 if test -d "$with_libstdc"; then
22009 LIBSTDCLDFLAGS="-L$with_libstdc"
22010 fi
22011fi
22012
22013
22014# Does gcc required -traditional?
22015if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022017$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022018if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022019 $as_echo_n "(cached) " >&6
22020else
22021 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022023/* end confdefs.h. */
22024#include <sgtty.h>
22025Autoconf TIOCGETP
22026_ACEOF
22027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022028 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022029 ac_cv_prog_gcc_traditional=yes
22030else
22031 ac_cv_prog_gcc_traditional=no
22032fi
22033rm -f conftest*
22034
22035
22036 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022038/* end confdefs.h. */
22039#include <termio.h>
22040Autoconf TCGETA
22041_ACEOF
22042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022043 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022044 ac_cv_prog_gcc_traditional=yes
22045fi
22046rm -f conftest*
22047
22048 fi
22049fi
cristy8b350f62009-11-15 23:12:43 +000022050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022051$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22052 if test $ac_cv_prog_gcc_traditional = yes; then
22053 CC="$CC -traditional"
22054 fi
22055fi
22056
22057
22058########
22059#
22060# Set defines required to build DLLs and modules using MinGW
22061#
22062########
22063# These options are set for multi-thread DLL module build
22064# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22065# module: _DLL
22066# executable/Magick++: _DLL _MAGICKMOD_
22067MODULE_EXTRA_CPPFLAGS=''
22068LIBRARY_EXTRA_CPPFLAGS=''
22069if test "${native_win32_build}" = 'yes'; then
22070 if test "${libtool_build_shared_libs}" = 'yes'; then
22071 CPPFLAGS="$CPPFLAGS -D_DLL"
22072 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22073 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22074 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22075 if test "$with_modules" = 'yes'; then
22076 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22077 else
22078 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22079 fi
22080 else
22081 CPPFLAGS="$CPPFLAGS -D_LIB"
22082 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22083 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22084 fi
22085 if test "$with_threads" = 'yes'; then
22086 CPPFLAGS="$CPPFLAGS -D_MT"
22087 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22088 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22089 fi
22090fi
22091
22092
22093
22094# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022096$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022097if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022098 $as_echo_n "(cached) " >&6
22099else
cristy8b350f62009-11-15 23:12:43 +000022100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022101/* end confdefs.h. */
22102#include <stdlib.h>
22103#include <stdarg.h>
22104#include <string.h>
22105#include <float.h>
22106
22107int
22108main ()
22109{
22110
22111 ;
22112 return 0;
22113}
22114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022115if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022116 ac_cv_header_stdc=yes
22117else
cristy8b350f62009-11-15 23:12:43 +000022118 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022119fi
cristy3ed852e2009-09-05 21:47:34 +000022120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121
22122if test $ac_cv_header_stdc = yes; then
22123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022125/* end confdefs.h. */
22126#include <string.h>
22127
22128_ACEOF
22129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022130 $EGREP "memchr" >/dev/null 2>&1; then :
22131
cristy3ed852e2009-09-05 21:47:34 +000022132else
22133 ac_cv_header_stdc=no
22134fi
22135rm -f conftest*
22136
22137fi
22138
22139if test $ac_cv_header_stdc = yes; then
22140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022142/* end confdefs.h. */
22143#include <stdlib.h>
22144
22145_ACEOF
22146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022147 $EGREP "free" >/dev/null 2>&1; then :
22148
cristy3ed852e2009-09-05 21:47:34 +000022149else
22150 ac_cv_header_stdc=no
22151fi
22152rm -f conftest*
22153
22154fi
22155
22156if test $ac_cv_header_stdc = yes; then
22157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022158 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022159 :
22160else
cristy8b350f62009-11-15 23:12:43 +000022161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022162/* end confdefs.h. */
22163#include <ctype.h>
22164#include <stdlib.h>
22165#if ((' ' & 0x0FF) == 0x020)
22166# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22167# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22168#else
22169# define ISLOWER(c) \
22170 (('a' <= (c) && (c) <= 'i') \
22171 || ('j' <= (c) && (c) <= 'r') \
22172 || ('s' <= (c) && (c) <= 'z'))
22173# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22174#endif
22175
22176#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22177int
22178main ()
22179{
22180 int i;
22181 for (i = 0; i < 256; i++)
22182 if (XOR (islower (i), ISLOWER (i))
22183 || toupper (i) != TOUPPER (i))
22184 return 2;
22185 return 0;
22186}
22187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022188if ac_fn_c_try_run "$LINENO"; then :
22189
cristy3ed852e2009-09-05 21:47:34 +000022190else
cristy8b350f62009-11-15 23:12:43 +000022191 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022192fi
cristy8b350f62009-11-15 23:12:43 +000022193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22194 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022195fi
22196
cristy3ed852e2009-09-05 21:47:34 +000022197fi
22198fi
cristy8b350f62009-11-15 23:12:43 +000022199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022200$as_echo "$ac_cv_header_stdc" >&6; }
22201if test $ac_cv_header_stdc = yes; then
22202
cristy8b350f62009-11-15 23:12:43 +000022203$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022204
22205fi
22206
22207if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022208 { $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 +000022209 header files. Compilation cannot proceed. Please install the ANSI C
22210 headers and rerun this script." >&5
22211$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22212 header files. Compilation cannot proceed. Please install the ANSI C
22213 headers and rerun this script." >&2;};
22214fi
cristya0b81c32010-01-22 02:54:33 +000022215
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22217$as_echo_n "checking whether to enable assertions... " >&6; }
22218 # Check whether --enable-assert was given.
22219if test "${enable_assert+set}" = set; then :
22220 enableval=$enable_assert; ac_enable_assert=$enableval
22221 if test "x$enableval" = xno; then :
22222
22223$as_echo "#define NDEBUG 1" >>confdefs.h
22224
22225elif test "x$enableval" != xyes; then :
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22227$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22228 ac_enable_assert=yes
22229fi
22230else
22231 ac_enable_assert=yes
22232fi
22233
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22235$as_echo "$ac_enable_assert" >&6; }
22236
cristy3ed852e2009-09-05 21:47:34 +000022237ac_header_dirent=no
22238for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22239 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022242if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022243 $as_echo_n "(cached) " >&6
22244else
cristy8b350f62009-11-15 23:12:43 +000022245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022246/* end confdefs.h. */
22247#include <sys/types.h>
22248#include <$ac_hdr>
22249
22250int
22251main ()
22252{
22253if ((DIR *) 0)
22254return 0;
22255 ;
22256 return 0;
22257}
22258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022260 eval "$as_ac_Header=yes"
22261else
cristy8b350f62009-11-15 23:12:43 +000022262 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022263fi
cristy3ed852e2009-09-05 21:47:34 +000022264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265fi
cristy8b350f62009-11-15 23:12:43 +000022266eval ac_res=\$$as_ac_Header
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022268$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022269if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022270 cat >>confdefs.h <<_ACEOF
22271#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22272_ACEOF
22273
22274ac_header_dirent=$ac_hdr; break
22275fi
22276
22277done
22278# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22279if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022281$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022282if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022283 $as_echo_n "(cached) " >&6
22284else
22285 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022287/* end confdefs.h. */
22288
22289/* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22292#ifdef __cplusplus
22293extern "C"
22294#endif
22295char opendir ();
22296int
22297main ()
22298{
22299return opendir ();
22300 ;
22301 return 0;
22302}
22303_ACEOF
22304for ac_lib in '' dir; do
22305 if test -z "$ac_lib"; then
22306 ac_res="none required"
22307 else
22308 ac_res=-l$ac_lib
22309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22310 fi
cristy8b350f62009-11-15 23:12:43 +000022311 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022312 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022313fi
cristy8b350f62009-11-15 23:12:43 +000022314rm -f core conftest.err conftest.$ac_objext \
22315 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022316 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022317 break
22318fi
22319done
cristyda16f162011-02-19 23:52:17 +000022320if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022321
cristy3ed852e2009-09-05 21:47:34 +000022322else
22323 ac_cv_search_opendir=no
22324fi
22325rm conftest.$ac_ext
22326LIBS=$ac_func_search_save_LIBS
22327fi
cristy8b350f62009-11-15 23:12:43 +000022328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022329$as_echo "$ac_cv_search_opendir" >&6; }
22330ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022331if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22333
22334fi
22335
22336else
cristy8b350f62009-11-15 23:12:43 +000022337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022338$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022339if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022340 $as_echo_n "(cached) " >&6
22341else
22342 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022344/* end confdefs.h. */
22345
22346/* Override any GCC internal prototype to avoid an error.
22347 Use char because int might match the return type of a GCC
22348 builtin and then its argument prototype would still apply. */
22349#ifdef __cplusplus
22350extern "C"
22351#endif
22352char opendir ();
22353int
22354main ()
22355{
22356return opendir ();
22357 ;
22358 return 0;
22359}
22360_ACEOF
22361for ac_lib in '' x; do
22362 if test -z "$ac_lib"; then
22363 ac_res="none required"
22364 else
22365 ac_res=-l$ac_lib
22366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22367 fi
cristy8b350f62009-11-15 23:12:43 +000022368 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022369 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022370fi
cristy8b350f62009-11-15 23:12:43 +000022371rm -f core conftest.err conftest.$ac_objext \
22372 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022373 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022374 break
22375fi
22376done
cristyda16f162011-02-19 23:52:17 +000022377if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022378
cristy3ed852e2009-09-05 21:47:34 +000022379else
22380 ac_cv_search_opendir=no
22381fi
22382rm conftest.$ac_ext
22383LIBS=$ac_func_search_save_LIBS
22384fi
cristy8b350f62009-11-15 23:12:43 +000022385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022386$as_echo "$ac_cv_search_opendir" >&6; }
22387ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022388if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22390
22391fi
22392
22393fi
22394
22395
22396# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022397for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022398do :
22399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22400ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022401if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022402 cat >>confdefs.h <<_ACEOF
22403#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22404_ACEOF
22405
22406fi
22407
22408done
22409
22410
22411########
22412#
22413# Checks for typedefs, structures, and compiler characteristics.
22414#
22415########
22416
cristy8b350f62009-11-15 23:12:43 +000022417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022418$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022419if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022420 $as_echo_n "(cached) " >&6
22421else
cristy8b350f62009-11-15 23:12:43 +000022422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022423/* end confdefs.h. */
22424
22425#include <stdbool.h>
22426#ifndef bool
22427 "error: bool is not defined"
22428#endif
22429#ifndef false
22430 "error: false is not defined"
22431#endif
22432#if false
22433 "error: false is not 0"
22434#endif
22435#ifndef true
22436 "error: true is not defined"
22437#endif
22438#if true != 1
22439 "error: true is not 1"
22440#endif
22441#ifndef __bool_true_false_are_defined
22442 "error: __bool_true_false_are_defined is not defined"
22443#endif
22444
22445 struct s { _Bool s: 1; _Bool t; } s;
22446
22447 char a[true == 1 ? 1 : -1];
22448 char b[false == 0 ? 1 : -1];
22449 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22450 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000022451 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000022452 char f[(_Bool) 0.0 == false ? 1 : -1];
22453 char g[true];
22454 char h[sizeof (_Bool)];
22455 char i[sizeof s.t];
22456 enum { j = false, k = true, l = false * true, m = true * 256 };
22457 /* The following fails for
22458 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22459 _Bool n[m];
22460 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22461 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000022462 /* Catch a bug in an HP-UX C compiler. See
22463 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22464 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22465 */
22466 _Bool q = true;
22467 _Bool *pq = &q;
22468
22469int
22470main ()
22471{
22472
cristyda16f162011-02-19 23:52:17 +000022473 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000022474 *pq |= q;
22475 *pq |= ! q;
22476 /* Refer to every declared value, to avoid compiler optimizations. */
22477 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22478 + !m + !n + !o + !p + !q + !pq);
22479
22480 ;
22481 return 0;
22482}
22483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022484if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022485 ac_cv_header_stdbool_h=yes
22486else
cristy8b350f62009-11-15 23:12:43 +000022487 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022488fi
cristy3ed852e2009-09-05 21:47:34 +000022489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490fi
cristy8b350f62009-11-15 23:12:43 +000022491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022492$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022493ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022494if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022495
22496cat >>confdefs.h <<_ACEOF
22497#define HAVE__BOOL 1
22498_ACEOF
22499
22500
22501fi
22502
22503if test $ac_cv_header_stdbool_h = yes; then
22504
cristy8b350f62009-11-15 23:12:43 +000022505$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022506
22507fi
22508
cristy8b350f62009-11-15 23:12:43 +000022509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022510$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022511if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022512 $as_echo_n "(cached) " >&6
22513else
cristy8b350f62009-11-15 23:12:43 +000022514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022515/* end confdefs.h. */
22516
22517int
22518main ()
22519{
22520
22521volatile int x;
22522int * volatile y = (int *) 0;
22523return !x && !y;
22524 ;
22525 return 0;
22526}
22527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022528if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022529 ac_cv_c_volatile=yes
22530else
cristy8b350f62009-11-15 23:12:43 +000022531 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022532fi
cristy3ed852e2009-09-05 21:47:34 +000022533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534fi
cristy8b350f62009-11-15 23:12:43 +000022535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022536$as_echo "$ac_cv_c_volatile" >&6; }
22537if test $ac_cv_c_volatile = no; then
22538
cristy8b350f62009-11-15 23:12:43 +000022539$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022540
22541fi
22542
cristy8b350f62009-11-15 23:12:43 +000022543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022544$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022545if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022546 $as_echo_n "(cached) " >&6
22547else
cristy8b350f62009-11-15 23:12:43 +000022548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022549/* end confdefs.h. */
22550#define x(y) #y
22551
22552char *s = x(teststring);
22553_ACEOF
22554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022555 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022556 ac_cv_c_stringize=no
22557else
22558 ac_cv_c_stringize=yes
22559fi
22560rm -f conftest*
22561
22562fi
cristy8b350f62009-11-15 23:12:43 +000022563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022564$as_echo "$ac_cv_c_stringize" >&6; }
22565if test $ac_cv_c_stringize = yes; then
22566
cristy8b350f62009-11-15 23:12:43 +000022567$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022568
22569fi
22570
cristy8b350f62009-11-15 23:12:43 +000022571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022572$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022573if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022574 $as_echo_n "(cached) " >&6
22575else
cristy8b350f62009-11-15 23:12:43 +000022576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022577/* end confdefs.h. */
22578#include <sys/types.h>
22579#include <sys/stat.h>
22580
22581#if defined S_ISBLK && defined S_IFDIR
22582extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22583#endif
22584
22585#if defined S_ISBLK && defined S_IFCHR
22586extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22587#endif
22588
22589#if defined S_ISLNK && defined S_IFREG
22590extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22591#endif
22592
22593#if defined S_ISSOCK && defined S_IFREG
22594extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22595#endif
22596
22597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022598if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022599 ac_cv_header_stat_broken=no
22600else
cristy8b350f62009-11-15 23:12:43 +000022601 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022602fi
cristy3ed852e2009-09-05 21:47:34 +000022603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22604fi
cristy8b350f62009-11-15 23:12:43 +000022605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022606$as_echo "$ac_cv_header_stat_broken" >&6; }
22607if test $ac_cv_header_stat_broken = yes; then
22608
cristy8b350f62009-11-15 23:12:43 +000022609$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022610
22611fi
22612
cristy8b350f62009-11-15 23:12:43 +000022613{ $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 +000022614$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022615if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022616 $as_echo_n "(cached) " >&6
22617else
cristy8b350f62009-11-15 23:12:43 +000022618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022619/* end confdefs.h. */
22620#include <sys/types.h>
22621#include <sys/time.h>
22622#include <time.h>
22623
22624int
22625main ()
22626{
22627if ((struct tm *) 0)
22628return 0;
22629 ;
22630 return 0;
22631}
22632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022633if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022634 ac_cv_header_time=yes
22635else
cristy8b350f62009-11-15 23:12:43 +000022636 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022637fi
cristy3ed852e2009-09-05 21:47:34 +000022638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639fi
cristy8b350f62009-11-15 23:12:43 +000022640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022641$as_echo "$ac_cv_header_time" >&6; }
22642if test $ac_cv_header_time = yes; then
22643
cristy8b350f62009-11-15 23:12:43 +000022644$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022645
22646fi
22647
cristy8b350f62009-11-15 23:12:43 +000022648{ $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 +000022649$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022650if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022651 $as_echo_n "(cached) " >&6
22652else
cristy8b350f62009-11-15 23:12:43 +000022653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022654/* end confdefs.h. */
22655#include <sys/types.h>
22656#include <time.h>
22657
22658int
22659main ()
22660{
22661struct tm tm;
22662 int *p = &tm.tm_sec;
22663 return !p;
22664 ;
22665 return 0;
22666}
22667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022668if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022669 ac_cv_struct_tm=time.h
22670else
cristy8b350f62009-11-15 23:12:43 +000022671 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022672fi
cristy3ed852e2009-09-05 21:47:34 +000022673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674fi
cristy8b350f62009-11-15 23:12:43 +000022675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022676$as_echo "$ac_cv_struct_tm" >&6; }
22677if test $ac_cv_struct_tm = sys/time.h; then
22678
cristy8b350f62009-11-15 23:12:43 +000022679$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022680
22681fi
22682
cristy92703d82010-04-26 00:18:18 +000022683ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22684#include <$ac_cv_struct_tm>
22685
22686"
cristyda16f162011-02-19 23:52:17 +000022687if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022688
22689cat >>confdefs.h <<_ACEOF
22690#define HAVE_STRUCT_TM_TM_ZONE 1
22691_ACEOF
22692
22693
22694fi
22695
22696if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22697
22698$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22699
22700else
22701 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22702"
cristyda16f162011-02-19 23:52:17 +000022703if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022704 ac_have_decl=1
22705else
22706 ac_have_decl=0
22707fi
22708
22709cat >>confdefs.h <<_ACEOF
22710#define HAVE_DECL_TZNAME $ac_have_decl
22711_ACEOF
22712
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22714$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022715if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022716 $as_echo_n "(cached) " >&6
22717else
22718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22719/* end confdefs.h. */
22720#include <time.h>
22721#if !HAVE_DECL_TZNAME
22722extern char *tzname[];
22723#endif
22724
22725int
22726main ()
22727{
22728return tzname[0][0];
22729 ;
22730 return 0;
22731}
22732_ACEOF
22733if ac_fn_c_try_link "$LINENO"; then :
22734 ac_cv_var_tzname=yes
22735else
22736 ac_cv_var_tzname=no
22737fi
22738rm -f core conftest.err conftest.$ac_objext \
22739 conftest$ac_exeext conftest.$ac_ext
22740fi
22741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22742$as_echo "$ac_cv_var_tzname" >&6; }
22743 if test $ac_cv_var_tzname = yes; then
22744
22745$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22746
22747 fi
22748fi
22749
cristy8b350f62009-11-15 23:12:43 +000022750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022751$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022752if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022753 $as_echo_n "(cached) " >&6
22754else
22755 echo '#! /bin/cat
22756exit 69
22757' >conftest
22758chmod u+x conftest
22759(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22760if test $? -ne 69; then
22761 ac_cv_sys_interpreter=yes
22762else
22763 ac_cv_sys_interpreter=no
22764fi
22765rm -f conftest
22766fi
cristy8b350f62009-11-15 23:12:43 +000022767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022768$as_echo "$ac_cv_sys_interpreter" >&6; }
22769interpval=$ac_cv_sys_interpreter
22770
22771
cristy3ed852e2009-09-05 21:47:34 +000022772# If the C compiler supports the keyword inline, do nothing. Otherwise
22773# define inline to __inline__ or __inline if it accepts one of those,
22774# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022776$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022777if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022778 $as_echo_n "(cached) " >&6
22779else
22780 ac_cv_c_inline=no
22781for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022783/* end confdefs.h. */
22784#ifndef __cplusplus
22785typedef int foo_t;
22786static $ac_kw foo_t static_foo () {return 0; }
22787$ac_kw foo_t foo () {return 0; }
22788#endif
22789
22790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022791if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022792 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022793fi
cristy3ed852e2009-09-05 21:47:34 +000022794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795 test "$ac_cv_c_inline" != no && break
22796done
22797
22798fi
cristy8b350f62009-11-15 23:12:43 +000022799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022800$as_echo "$ac_cv_c_inline" >&6; }
22801
cristy3ed852e2009-09-05 21:47:34 +000022802case $ac_cv_c_inline in
22803 inline | yes) ;;
22804 *)
22805 case $ac_cv_c_inline in
22806 no) ac_val=;;
22807 *) ac_val=$ac_cv_c_inline;;
22808 esac
22809 cat >>confdefs.h <<_ACEOF
22810#ifndef __cplusplus
22811#define inline $ac_val
22812#endif
22813_ACEOF
22814 ;;
22815esac
22816
22817
22818# If the C compiler supports the keyword restrict, do nothing. Otherwise
22819# define restrict to __restrict__ or __restrict if it accepts one of those,
22820# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022822$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022823if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022824 $as_echo_n "(cached) " >&6
22825else
22826 ac_cv_c_restrict=no
22827 # The order here caters to the fact that C++ does not require restrict.
22828 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022830/* end confdefs.h. */
22831typedef int * int_ptr;
22832 int foo (int_ptr $ac_kw ip) {
22833 return ip[0];
22834 }
22835int
22836main ()
22837{
22838int s[1];
22839 int * $ac_kw t = s;
22840 t[0] = 0;
22841 return foo(t)
22842 ;
22843 return 0;
22844}
22845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022846if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022847 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022848fi
cristy3ed852e2009-09-05 21:47:34 +000022849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 test "$ac_cv_c_restrict" != no && break
22851 done
22852
22853fi
cristy8b350f62009-11-15 23:12:43 +000022854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022855$as_echo "$ac_cv_c_restrict" >&6; }
22856
cristy3ed852e2009-09-05 21:47:34 +000022857 case $ac_cv_c_restrict in
22858 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022859 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022860 ;;
22861 *) cat >>confdefs.h <<_ACEOF
22862#define restrict $ac_cv_c_restrict
22863_ACEOF
22864 ;;
22865 esac
22866
22867
22868# If words are stored with the most significant byte first (like
22869# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022871$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022872if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022873 $as_echo_n "(cached) " >&6
22874else
22875 ac_cv_c_bigendian=unknown
22876 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022878/* end confdefs.h. */
22879#ifndef __APPLE_CC__
22880 not a universal capable compiler
22881 #endif
22882 typedef int dummy;
22883
22884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022885if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022886
22887 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022888 # there are at least two -arch flags with different values.
22889 ac_arch=
22890 ac_prev=
22891 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22892 if test -n "$ac_prev"; then
22893 case $ac_word in
22894 i?86 | x86_64 | ppc | ppc64)
22895 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22896 ac_arch=$ac_word
22897 else
22898 ac_cv_c_bigendian=universal
22899 break
22900 fi
22901 ;;
22902 esac
22903 ac_prev=
22904 elif test "x$ac_word" = "x-arch"; then
22905 ac_prev=arch
22906 fi
22907 done
cristy3ed852e2009-09-05 21:47:34 +000022908fi
cristy3ed852e2009-09-05 21:47:34 +000022909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22910 if test $ac_cv_c_bigendian = unknown; then
22911 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022913/* end confdefs.h. */
22914#include <sys/types.h>
22915 #include <sys/param.h>
22916
22917int
22918main ()
22919{
22920#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22921 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22922 && LITTLE_ENDIAN)
22923 bogus endian macros
22924 #endif
22925
22926 ;
22927 return 0;
22928}
22929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022930if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022931 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022933/* end confdefs.h. */
22934#include <sys/types.h>
22935 #include <sys/param.h>
22936
22937int
22938main ()
22939{
22940#if BYTE_ORDER != BIG_ENDIAN
22941 not big endian
22942 #endif
22943
22944 ;
22945 return 0;
22946}
22947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022948if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022949 ac_cv_c_bigendian=yes
22950else
cristy8b350f62009-11-15 23:12:43 +000022951 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022952fi
cristy3ed852e2009-09-05 21:47:34 +000022953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022954fi
cristy3ed852e2009-09-05 21:47:34 +000022955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 fi
22957 if test $ac_cv_c_bigendian = unknown; then
22958 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022960/* end confdefs.h. */
22961#include <limits.h>
22962
22963int
22964main ()
22965{
22966#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22967 bogus endian macros
22968 #endif
22969
22970 ;
22971 return 0;
22972}
22973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022974if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022975 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022977/* end confdefs.h. */
22978#include <limits.h>
22979
22980int
22981main ()
22982{
22983#ifndef _BIG_ENDIAN
22984 not big endian
22985 #endif
22986
22987 ;
22988 return 0;
22989}
22990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022991if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022992 ac_cv_c_bigendian=yes
22993else
cristy8b350f62009-11-15 23:12:43 +000022994 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022995fi
cristy3ed852e2009-09-05 21:47:34 +000022996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022997fi
cristy3ed852e2009-09-05 21:47:34 +000022998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22999 fi
23000 if test $ac_cv_c_bigendian = unknown; then
23001 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023002 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023003 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023005/* end confdefs.h. */
23006short int ascii_mm[] =
23007 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23008 short int ascii_ii[] =
23009 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23010 int use_ascii (int i) {
23011 return ascii_mm[i] + ascii_ii[i];
23012 }
23013 short int ebcdic_ii[] =
23014 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23015 short int ebcdic_mm[] =
23016 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23017 int use_ebcdic (int i) {
23018 return ebcdic_mm[i] + ebcdic_ii[i];
23019 }
23020 extern int foo;
23021
23022int
23023main ()
23024{
23025return use_ascii (foo) == use_ebcdic (foo);
23026 ;
23027 return 0;
23028}
23029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023030if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023031 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23032 ac_cv_c_bigendian=yes
23033 fi
23034 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23035 if test "$ac_cv_c_bigendian" = unknown; then
23036 ac_cv_c_bigendian=no
23037 else
23038 # finding both strings is unlikely to happen, but who knows?
23039 ac_cv_c_bigendian=unknown
23040 fi
23041 fi
cristy3ed852e2009-09-05 21:47:34 +000023042fi
cristy3ed852e2009-09-05 21:47:34 +000023043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044else
cristy8b350f62009-11-15 23:12:43 +000023045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023046/* end confdefs.h. */
23047$ac_includes_default
23048int
23049main ()
23050{
23051
23052 /* Are we little or big endian? From Harbison&Steele. */
23053 union
23054 {
23055 long int l;
23056 char c[sizeof (long int)];
23057 } u;
23058 u.l = 1;
23059 return u.c[sizeof (long int) - 1] == 1;
23060
23061 ;
23062 return 0;
23063}
23064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023065if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023066 ac_cv_c_bigendian=no
23067else
cristy8b350f62009-11-15 23:12:43 +000023068 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023069fi
cristy8b350f62009-11-15 23:12:43 +000023070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23071 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023072fi
23073
cristy3ed852e2009-09-05 21:47:34 +000023074 fi
23075fi
cristy8b350f62009-11-15 23:12:43 +000023076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023077$as_echo "$ac_cv_c_bigendian" >&6; }
23078 case $ac_cv_c_bigendian in #(
23079 yes)
cristy8b350f62009-11-15 23:12:43 +000023080 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023081;; #(
23082 no)
23083 ;; #(
23084 universal)
23085
cristy8b350f62009-11-15 23:12:43 +000023086$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023087
23088 ;; #(
23089 *)
cristy98dddb52010-11-04 00:30:15 +000023090 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023091 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023092 esac
23093
23094
cristy501c8042011-05-26 17:46:28 +000023095# Define to a suitable type, if standard headers do not define it.
23096ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23097case $ac_cv_c_int8_t in #(
23098 no|yes) ;; #(
23099 *)
cristy3ed852e2009-09-05 21:47:34 +000023100
23101cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023102#define int8_t $ac_cv_c_int8_t
23103_ACEOF
23104;;
23105esac
23106
23107ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23108case $ac_cv_c_int16_t in #(
23109 no|yes) ;; #(
23110 *)
23111
23112cat >>confdefs.h <<_ACEOF
23113#define int16_t $ac_cv_c_int16_t
23114_ACEOF
23115;;
23116esac
23117
23118ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23119case $ac_cv_c_int32_t in #(
23120 no|yes) ;; #(
23121 *)
23122
23123cat >>confdefs.h <<_ACEOF
23124#define int32_t $ac_cv_c_int32_t
23125_ACEOF
23126;;
23127esac
23128
23129ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23130case $ac_cv_c_int64_t in #(
23131 no|yes) ;; #(
23132 *)
23133
23134cat >>confdefs.h <<_ACEOF
23135#define int64_t $ac_cv_c_int64_t
23136_ACEOF
23137;;
23138esac
23139
23140
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23142$as_echo_n "checking for long long int... " >&6; }
23143if ${ac_cv_type_long_long_int+:} false; then :
23144 $as_echo_n "(cached) " >&6
23145else
23146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23147/* end confdefs.h. */
23148
23149 /* For now, do not test the preprocessor; as of 2007 there are too many
23150 implementations with broken preprocessors. Perhaps this can
23151 be revisited in 2012. In the meantime, code should not expect
23152 #if to work with literals wider than 32 bits. */
23153 /* Test literals. */
23154 long long int ll = 9223372036854775807ll;
23155 long long int nll = -9223372036854775807LL;
23156 unsigned long long int ull = 18446744073709551615ULL;
23157 /* Test constant expressions. */
23158 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23159 ? 1 : -1)];
23160 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23161 ? 1 : -1)];
23162 int i = 63;
23163int
23164main ()
23165{
23166/* Test availability of runtime routines for shift and division. */
23167 long long int llmax = 9223372036854775807ll;
23168 unsigned long long int ullmax = 18446744073709551615ull;
23169 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23170 | (llmax / ll) | (llmax % ll)
23171 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23172 | (ullmax / ull) | (ullmax % ull));
23173 ;
23174 return 0;
23175}
23176
23177_ACEOF
23178if ac_fn_c_try_link "$LINENO"; then :
23179 if test "$cross_compiling" = yes; then :
23180 ac_cv_type_long_long_int=yes
23181else
23182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183/* end confdefs.h. */
23184#include <limits.h>
23185 #ifndef LLONG_MAX
23186 # define HALF \
23187 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23188 # define LLONG_MAX (HALF - 1 + HALF)
23189 #endif
23190int
23191main ()
23192{
23193long long int n = 1;
23194 int i;
23195 for (i = 0; ; i++)
23196 {
23197 long long int m = n << i;
23198 if (m >> i != n)
23199 return 1;
23200 if (LLONG_MAX / 2 < m)
23201 break;
23202 }
23203 return 0;
23204 ;
23205 return 0;
23206}
23207_ACEOF
23208if ac_fn_c_try_run "$LINENO"; then :
23209 ac_cv_type_long_long_int=yes
23210else
23211 ac_cv_type_long_long_int=no
23212fi
23213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23214 conftest.$ac_objext conftest.beam conftest.$ac_ext
23215fi
23216
23217else
23218 ac_cv_type_long_long_int=no
23219fi
23220rm -f core conftest.err conftest.$ac_objext \
23221 conftest$ac_exeext conftest.$ac_ext
23222fi
23223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23224$as_echo "$ac_cv_type_long_long_int" >&6; }
23225 if test $ac_cv_type_long_long_int = yes; then
23226
23227$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23228
23229 fi
23230
23231
23232
23233 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23234if test "x$ac_cv_type_intmax_t" = xyes; then :
23235
23236$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23237
23238else
23239 test $ac_cv_type_long_long_int = yes \
23240 && ac_type='long long int' \
23241 || ac_type='long int'
23242
23243cat >>confdefs.h <<_ACEOF
23244#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023245_ACEOF
23246
23247fi
23248
23249
cristy501c8042011-05-26 17:46:28 +000023250
23251 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23252if test "x$ac_cv_type_intptr_t" = xyes; then :
23253
23254$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023255
cristy3ed852e2009-09-05 21:47:34 +000023256else
cristy501c8042011-05-26 17:46:28 +000023257 for ac_type in 'int' 'long int' 'long long int'; do
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259/* end confdefs.h. */
23260$ac_includes_default
23261int
23262main ()
23263{
23264static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23265test_array [0] = 0
23266
23267 ;
23268 return 0;
23269}
23270_ACEOF
23271if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023272
23273cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023274#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023275_ACEOF
23276
cristy501c8042011-05-26 17:46:28 +000023277 ac_type=
23278fi
23279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23280 test -z "$ac_type" && break
23281 done
cristy3ed852e2009-09-05 21:47:34 +000023282fi
23283
23284
cristy3ed852e2009-09-05 21:47:34 +000023285
cristy501c8042011-05-26 17:46:28 +000023286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23287$as_echo_n "checking for long double... " >&6; }
23288if ${ac_cv_type_long_double+:} false; then :
23289 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023290else
cristy501c8042011-05-26 17:46:28 +000023291 if test "$GCC" = yes; then
23292 ac_cv_type_long_double=yes
23293 else
23294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23295/* end confdefs.h. */
23296/* The Stardent Vistra knows sizeof (long double), but does
23297 not support it. */
23298 long double foo = 0.0L;
23299int
23300main ()
23301{
23302static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23303 sizeof (double) <= sizeof (long double))];
23304test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000023305
cristy501c8042011-05-26 17:46:28 +000023306 ;
23307 return 0;
23308}
cristy3ed852e2009-09-05 21:47:34 +000023309_ACEOF
cristy501c8042011-05-26 17:46:28 +000023310if ac_fn_c_try_compile "$LINENO"; then :
23311 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023312else
cristy501c8042011-05-26 17:46:28 +000023313 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023314fi
cristy501c8042011-05-26 17:46:28 +000023315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23316 fi
cristy3ed852e2009-09-05 21:47:34 +000023317fi
cristy501c8042011-05-26 17:46:28 +000023318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23319$as_echo "$ac_cv_type_long_double" >&6; }
23320 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023321
cristy501c8042011-05-26 17:46:28 +000023322$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023323
cristy501c8042011-05-26 17:46:28 +000023324 fi
23325
cristy3ed852e2009-09-05 21:47:34 +000023326
cristy8b350f62009-11-15 23:12:43 +000023327 { $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 +000023328$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023329if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023330 $as_echo_n "(cached) " >&6
23331else
cristy8b350f62009-11-15 23:12:43 +000023332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023333/* end confdefs.h. */
23334#include <float.h>
23335 long double const a[] =
23336 {
23337 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23338 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23339 };
23340 long double
23341 f (long double x)
23342 {
23343 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23344 + (x ? f (x) : 'c'));
23345 }
23346
23347int
23348main ()
23349{
23350static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23351 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23352 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23353 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23354 && (int) LDBL_EPSILON == 0
23355 )];
23356test_array [0] = 0
23357
23358 ;
23359 return 0;
23360}
23361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023362if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023363 ac_cv_type_long_double_wider=yes
23364else
cristy8b350f62009-11-15 23:12:43 +000023365 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023366fi
cristy3ed852e2009-09-05 21:47:34 +000023367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23368fi
cristy8b350f62009-11-15 23:12:43 +000023369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023370$as_echo "$ac_cv_type_long_double_wider" >&6; }
23371 if test $ac_cv_type_long_double_wider = yes; then
23372
cristy8b350f62009-11-15 23:12:43 +000023373$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023374
23375 fi
23376
23377
cristy501c8042011-05-26 17:46:28 +000023378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23379$as_echo_n "checking for long long int... " >&6; }
23380if ${ac_cv_type_long_long_int+:} false; then :
23381 $as_echo_n "(cached) " >&6
23382else
23383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23384/* end confdefs.h. */
23385
23386 /* For now, do not test the preprocessor; as of 2007 there are too many
23387 implementations with broken preprocessors. Perhaps this can
23388 be revisited in 2012. In the meantime, code should not expect
23389 #if to work with literals wider than 32 bits. */
23390 /* Test literals. */
23391 long long int ll = 9223372036854775807ll;
23392 long long int nll = -9223372036854775807LL;
23393 unsigned long long int ull = 18446744073709551615ULL;
23394 /* Test constant expressions. */
23395 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23396 ? 1 : -1)];
23397 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23398 ? 1 : -1)];
23399 int i = 63;
23400int
23401main ()
23402{
23403/* Test availability of runtime routines for shift and division. */
23404 long long int llmax = 9223372036854775807ll;
23405 unsigned long long int ullmax = 18446744073709551615ull;
23406 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23407 | (llmax / ll) | (llmax % ll)
23408 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23409 | (ullmax / ull) | (ullmax % ull));
23410 ;
23411 return 0;
23412}
23413
23414_ACEOF
23415if ac_fn_c_try_link "$LINENO"; then :
23416 if test "$cross_compiling" = yes; then :
23417 ac_cv_type_long_long_int=yes
23418else
23419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23420/* end confdefs.h. */
23421#include <limits.h>
23422 #ifndef LLONG_MAX
23423 # define HALF \
23424 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23425 # define LLONG_MAX (HALF - 1 + HALF)
23426 #endif
23427int
23428main ()
23429{
23430long long int n = 1;
23431 int i;
23432 for (i = 0; ; i++)
23433 {
23434 long long int m = n << i;
23435 if (m >> i != n)
23436 return 1;
23437 if (LLONG_MAX / 2 < m)
23438 break;
23439 }
23440 return 0;
23441 ;
23442 return 0;
23443}
23444_ACEOF
23445if ac_fn_c_try_run "$LINENO"; then :
23446 ac_cv_type_long_long_int=yes
23447else
23448 ac_cv_type_long_long_int=no
23449fi
23450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23451 conftest.$ac_objext conftest.beam conftest.$ac_ext
23452fi
23453
23454else
23455 ac_cv_type_long_long_int=no
23456fi
23457rm -f core conftest.err conftest.$ac_objext \
23458 conftest$ac_exeext conftest.$ac_ext
23459fi
23460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23461$as_echo "$ac_cv_type_long_long_int" >&6; }
23462 if test $ac_cv_type_long_long_int = yes; then
23463
23464$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23465
23466 fi
23467
23468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23469$as_echo_n "checking for mbstate_t... " >&6; }
23470if ${ac_cv_type_mbstate_t+:} false; then :
23471 $as_echo_n "(cached) " >&6
23472else
23473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23474/* end confdefs.h. */
23475$ac_includes_default
23476# include <wchar.h>
23477int
23478main ()
23479{
23480mbstate_t x; return sizeof x;
23481 ;
23482 return 0;
23483}
23484_ACEOF
23485if ac_fn_c_try_compile "$LINENO"; then :
23486 ac_cv_type_mbstate_t=yes
23487else
23488 ac_cv_type_mbstate_t=no
23489fi
23490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491fi
23492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23493$as_echo "$ac_cv_type_mbstate_t" >&6; }
23494 if test $ac_cv_type_mbstate_t = yes; then
23495
23496$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23497
23498 else
23499
23500$as_echo "#define mbstate_t int" >>confdefs.h
23501
23502 fi
23503ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23504if test "x$ac_cv_type_mode_t" = xyes; then :
23505
23506else
23507
23508cat >>confdefs.h <<_ACEOF
23509#define mode_t int
23510_ACEOF
23511
23512fi
23513
23514ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23515if test "x$ac_cv_type_off_t" = xyes; then :
23516
23517else
23518
23519cat >>confdefs.h <<_ACEOF
23520#define off_t long int
23521_ACEOF
23522
23523fi
23524
23525ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23526if test "x$ac_cv_type_pid_t" = xyes; then :
23527
23528else
23529
23530cat >>confdefs.h <<_ACEOF
23531#define pid_t int
23532_ACEOF
23533
23534fi
23535
23536ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23537if test "x$ac_cv_type_size_t" = xyes; then :
23538
23539else
23540
23541cat >>confdefs.h <<_ACEOF
23542#define size_t unsigned int
23543_ACEOF
23544
23545fi
23546
23547ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23548if test "x$ac_cv_type_ssize_t" = xyes; then :
23549
23550else
23551
23552cat >>confdefs.h <<_ACEOF
23553#define ssize_t int
23554_ACEOF
23555
23556fi
23557
23558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23559$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23560if ${ac_cv_type_uid_t+:} false; then :
23561 $as_echo_n "(cached) " >&6
23562else
23563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23564/* end confdefs.h. */
23565#include <sys/types.h>
23566
23567_ACEOF
23568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23569 $EGREP "uid_t" >/dev/null 2>&1; then :
23570 ac_cv_type_uid_t=yes
23571else
23572 ac_cv_type_uid_t=no
23573fi
23574rm -f conftest*
23575
23576fi
23577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23578$as_echo "$ac_cv_type_uid_t" >&6; }
23579if test $ac_cv_type_uid_t = no; then
23580
23581$as_echo "#define uid_t int" >>confdefs.h
23582
23583
23584$as_echo "#define gid_t int" >>confdefs.h
23585
23586fi
23587
23588ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23589case $ac_cv_c_uint8_t in #(
23590 no|yes) ;; #(
23591 *)
23592
23593$as_echo "#define _UINT8_T 1" >>confdefs.h
23594
23595
23596cat >>confdefs.h <<_ACEOF
23597#define uint8_t $ac_cv_c_uint8_t
23598_ACEOF
23599;;
23600 esac
23601
23602ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23603case $ac_cv_c_uint16_t in #(
23604 no|yes) ;; #(
23605 *)
23606
23607
23608cat >>confdefs.h <<_ACEOF
23609#define uint16_t $ac_cv_c_uint16_t
23610_ACEOF
23611;;
23612 esac
23613
23614ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23615case $ac_cv_c_uint32_t in #(
23616 no|yes) ;; #(
23617 *)
23618
23619$as_echo "#define _UINT32_T 1" >>confdefs.h
23620
23621
23622cat >>confdefs.h <<_ACEOF
23623#define uint32_t $ac_cv_c_uint32_t
23624_ACEOF
23625;;
23626 esac
23627
23628ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23629case $ac_cv_c_uint64_t in #(
23630 no|yes) ;; #(
23631 *)
23632
23633$as_echo "#define _UINT64_T 1" >>confdefs.h
23634
23635
23636cat >>confdefs.h <<_ACEOF
23637#define uint64_t $ac_cv_c_uint64_t
23638_ACEOF
23639;;
23640 esac
23641
23642
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23644$as_echo_n "checking for unsigned long long int... " >&6; }
23645if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23646 $as_echo_n "(cached) " >&6
23647else
23648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23649/* end confdefs.h. */
23650
23651 /* For now, do not test the preprocessor; as of 2007 there are too many
23652 implementations with broken preprocessors. Perhaps this can
23653 be revisited in 2012. In the meantime, code should not expect
23654 #if to work with literals wider than 32 bits. */
23655 /* Test literals. */
23656 long long int ll = 9223372036854775807ll;
23657 long long int nll = -9223372036854775807LL;
23658 unsigned long long int ull = 18446744073709551615ULL;
23659 /* Test constant expressions. */
23660 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23661 ? 1 : -1)];
23662 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23663 ? 1 : -1)];
23664 int i = 63;
23665int
23666main ()
23667{
23668/* Test availability of runtime routines for shift and division. */
23669 long long int llmax = 9223372036854775807ll;
23670 unsigned long long int ullmax = 18446744073709551615ull;
23671 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23672 | (llmax / ll) | (llmax % ll)
23673 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23674 | (ullmax / ull) | (ullmax % ull));
23675 ;
23676 return 0;
23677}
23678
23679_ACEOF
23680if ac_fn_c_try_link "$LINENO"; then :
23681 ac_cv_type_unsigned_long_long_int=yes
23682else
23683 ac_cv_type_unsigned_long_long_int=no
23684fi
23685rm -f core conftest.err conftest.$ac_objext \
23686 conftest$ac_exeext conftest.$ac_ext
23687fi
23688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23689$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23690 if test $ac_cv_type_unsigned_long_long_int = yes; then
23691
23692$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23693
23694 fi
23695
23696
23697
23698 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23699if test "x$ac_cv_type_uintmax_t" = xyes; then :
23700
23701$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23702
23703else
23704 test $ac_cv_type_unsigned_long_long_int = yes \
23705 && ac_type='unsigned long long int' \
23706 || ac_type='unsigned long int'
23707
23708cat >>confdefs.h <<_ACEOF
23709#define uintmax_t $ac_type
23710_ACEOF
23711
23712fi
23713
23714
23715
23716 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23717if test "x$ac_cv_type_uintptr_t" = xyes; then :
23718
23719$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23720
23721else
23722 for ac_type in 'unsigned int' 'unsigned long int' \
23723 'unsigned long long int'; do
23724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23725/* end confdefs.h. */
23726$ac_includes_default
23727int
23728main ()
23729{
23730static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23731test_array [0] = 0
23732
23733 ;
23734 return 0;
23735}
23736_ACEOF
23737if ac_fn_c_try_compile "$LINENO"; then :
23738
23739cat >>confdefs.h <<_ACEOF
23740#define uintptr_t $ac_type
23741_ACEOF
23742
23743 ac_type=
23744fi
23745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746 test -z "$ac_type" && break
23747 done
23748fi
23749
23750
23751
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23753$as_echo_n "checking for unsigned long long int... " >&6; }
23754if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23755 $as_echo_n "(cached) " >&6
23756else
23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23758/* end confdefs.h. */
23759
23760 /* For now, do not test the preprocessor; as of 2007 there are too many
23761 implementations with broken preprocessors. Perhaps this can
23762 be revisited in 2012. In the meantime, code should not expect
23763 #if to work with literals wider than 32 bits. */
23764 /* Test literals. */
23765 long long int ll = 9223372036854775807ll;
23766 long long int nll = -9223372036854775807LL;
23767 unsigned long long int ull = 18446744073709551615ULL;
23768 /* Test constant expressions. */
23769 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23770 ? 1 : -1)];
23771 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23772 ? 1 : -1)];
23773 int i = 63;
23774int
23775main ()
23776{
23777/* Test availability of runtime routines for shift and division. */
23778 long long int llmax = 9223372036854775807ll;
23779 unsigned long long int ullmax = 18446744073709551615ull;
23780 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23781 | (llmax / ll) | (llmax % ll)
23782 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23783 | (ullmax / ull) | (ullmax % ull));
23784 ;
23785 return 0;
23786}
23787
23788_ACEOF
23789if ac_fn_c_try_link "$LINENO"; then :
23790 ac_cv_type_unsigned_long_long_int=yes
23791else
23792 ac_cv_type_unsigned_long_long_int=no
23793fi
23794rm -f core conftest.err conftest.$ac_objext \
23795 conftest$ac_exeext conftest.$ac_ext
23796fi
23797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23798$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23799 if test $ac_cv_type_unsigned_long_long_int = yes; then
23800
23801$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23802
23803 fi
23804
23805
cristy3ed852e2009-09-05 21:47:34 +000023806# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23807# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023810if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023811 $as_echo_n "(cached) " >&6
23812else
cristy8b350f62009-11-15 23:12:43 +000023813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023814/* end confdefs.h. */
23815$ac_includes_default
23816int
23817main ()
23818{
23819static int test_array [1 - 2 * !(((char) -1) < 0)];
23820test_array [0] = 0
23821
23822 ;
23823 return 0;
23824}
23825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023826if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023827 ac_cv_c_char_unsigned=no
23828else
cristy8b350f62009-11-15 23:12:43 +000023829 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023830fi
cristy3ed852e2009-09-05 21:47:34 +000023831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23832fi
cristy8b350f62009-11-15 23:12:43 +000023833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023834$as_echo "$ac_cv_c_char_unsigned" >&6; }
23835if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023836 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023837
23838fi
23839
23840
23841# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23842# The cast to long int works around a bug in the HP C Compiler
23843# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23844# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23845# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023847$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023848if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023849 $as_echo_n "(cached) " >&6
23850else
cristy8b350f62009-11-15 23:12:43 +000023851 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 +000023852
cristy3ed852e2009-09-05 21:47:34 +000023853else
cristy8b350f62009-11-15 23:12:43 +000023854 if test "$ac_cv_type_signed_short" = yes; then
23855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023857as_fn_error 77 "cannot compute sizeof (signed short)
23858See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023859 else
23860 ac_cv_sizeof_signed_short=0
23861 fi
23862fi
cristy8b350f62009-11-15 23:12:43 +000023863
cristy3ed852e2009-09-05 21:47:34 +000023864fi
cristy8b350f62009-11-15 23:12:43 +000023865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023866$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23867
23868
23869
23870cat >>confdefs.h <<_ACEOF
23871#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23872_ACEOF
23873
23874
23875
23876# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23877# The cast to long int works around a bug in the HP C Compiler
23878# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23879# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23880# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023882$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023883if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023884 $as_echo_n "(cached) " >&6
23885else
cristy8b350f62009-11-15 23:12:43 +000023886 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 +000023887
cristy3ed852e2009-09-05 21:47:34 +000023888else
cristy8b350f62009-11-15 23:12:43 +000023889 if test "$ac_cv_type_unsigned_short" = yes; then
23890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023892as_fn_error 77 "cannot compute sizeof (unsigned short)
23893See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023894 else
23895 ac_cv_sizeof_unsigned_short=0
23896 fi
23897fi
cristy8b350f62009-11-15 23:12:43 +000023898
cristy3ed852e2009-09-05 21:47:34 +000023899fi
cristy8b350f62009-11-15 23:12:43 +000023900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023901$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23902
23903
23904
23905cat >>confdefs.h <<_ACEOF
23906#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23907_ACEOF
23908
23909
23910
23911# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23912# The cast to long int works around a bug in the HP C Compiler
23913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23915# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023917$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023918if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023919 $as_echo_n "(cached) " >&6
23920else
cristy8b350f62009-11-15 23:12:43 +000023921 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 +000023922
cristy3ed852e2009-09-05 21:47:34 +000023923else
cristy8b350f62009-11-15 23:12:43 +000023924 if test "$ac_cv_type_signed_int" = yes; then
23925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023927as_fn_error 77 "cannot compute sizeof (signed int)
23928See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023929 else
23930 ac_cv_sizeof_signed_int=0
23931 fi
23932fi
cristy8b350f62009-11-15 23:12:43 +000023933
cristy3ed852e2009-09-05 21:47:34 +000023934fi
cristy8b350f62009-11-15 23:12:43 +000023935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023936$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23937
23938
23939
23940cat >>confdefs.h <<_ACEOF
23941#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23942_ACEOF
23943
23944
23945
23946# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23947# The cast to long int works around a bug in the HP C Compiler
23948# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23949# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23950# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023952$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023953if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023954 $as_echo_n "(cached) " >&6
23955else
cristy8b350f62009-11-15 23:12:43 +000023956 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 +000023957
cristy3ed852e2009-09-05 21:47:34 +000023958else
cristy8b350f62009-11-15 23:12:43 +000023959 if test "$ac_cv_type_unsigned_int" = yes; then
23960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023962as_fn_error 77 "cannot compute sizeof (unsigned int)
23963See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023964 else
23965 ac_cv_sizeof_unsigned_int=0
23966 fi
23967fi
cristy8b350f62009-11-15 23:12:43 +000023968
cristy3ed852e2009-09-05 21:47:34 +000023969fi
cristy8b350f62009-11-15 23:12:43 +000023970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023971$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23972
23973
23974
23975cat >>confdefs.h <<_ACEOF
23976#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23977_ACEOF
23978
23979
23980
23981# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23982# The cast to long int works around a bug in the HP C Compiler
23983# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23984# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23985# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023988if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023989 $as_echo_n "(cached) " >&6
23990else
cristy8b350f62009-11-15 23:12:43 +000023991 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 +000023992
cristy3ed852e2009-09-05 21:47:34 +000023993else
cristy8b350f62009-11-15 23:12:43 +000023994 if test "$ac_cv_type_signed_long" = yes; then
23995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023997as_fn_error 77 "cannot compute sizeof (signed long)
23998See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023999 else
24000 ac_cv_sizeof_signed_long=0
24001 fi
24002fi
cristy8b350f62009-11-15 23:12:43 +000024003
cristy3ed852e2009-09-05 21:47:34 +000024004fi
cristy8b350f62009-11-15 23:12:43 +000024005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024006$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24007
24008
24009
24010cat >>confdefs.h <<_ACEOF
24011#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24012_ACEOF
24013
24014
24015
24016# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24017# The cast to long int works around a bug in the HP C Compiler
24018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24020# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024022$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024023if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024024 $as_echo_n "(cached) " >&6
24025else
cristy8b350f62009-11-15 23:12:43 +000024026 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 +000024027
cristy3ed852e2009-09-05 21:47:34 +000024028else
cristy8b350f62009-11-15 23:12:43 +000024029 if test "$ac_cv_type_unsigned_long" = yes; then
24030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024032as_fn_error 77 "cannot compute sizeof (unsigned long)
24033See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024034 else
24035 ac_cv_sizeof_unsigned_long=0
24036 fi
24037fi
cristy8b350f62009-11-15 23:12:43 +000024038
cristy3ed852e2009-09-05 21:47:34 +000024039fi
cristy8b350f62009-11-15 23:12:43 +000024040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024041$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24042
24043
24044
24045cat >>confdefs.h <<_ACEOF
24046#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24047_ACEOF
24048
24049
24050
24051# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24052# 'signed long long' is not supported then the value defined is zero.
24053# The cast to long int works around a bug in the HP C Compiler
24054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24056# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024059if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 $as_echo_n "(cached) " >&6
24061else
cristy8b350f62009-11-15 23:12:43 +000024062 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 +000024063
cristy3ed852e2009-09-05 21:47:34 +000024064else
cristy8b350f62009-11-15 23:12:43 +000024065 if test "$ac_cv_type_signed_long_long" = yes; then
24066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024068as_fn_error 77 "cannot compute sizeof (signed long long)
24069See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024070 else
24071 ac_cv_sizeof_signed_long_long=0
24072 fi
24073fi
cristy8b350f62009-11-15 23:12:43 +000024074
cristy3ed852e2009-09-05 21:47:34 +000024075fi
cristy8b350f62009-11-15 23:12:43 +000024076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024077$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24078
24079
24080
24081cat >>confdefs.h <<_ACEOF
24082#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24083_ACEOF
24084
24085
24086
24087# Obtain size of a 'unsigned long long' and define as
24088# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24089# supported then the value defined is zero.
24090# The cast to long int works around a bug in the HP C Compiler
24091# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24092# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24093# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024095$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024096if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024097 $as_echo_n "(cached) " >&6
24098else
cristy8b350f62009-11-15 23:12:43 +000024099 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 +000024100
cristy3ed852e2009-09-05 21:47:34 +000024101else
cristy8b350f62009-11-15 23:12:43 +000024102 if test "$ac_cv_type_unsigned_long_long" = yes; then
24103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024105as_fn_error 77 "cannot compute sizeof (unsigned long long)
24106See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024107 else
24108 ac_cv_sizeof_unsigned_long_long=0
24109 fi
24110fi
cristy8b350f62009-11-15 23:12:43 +000024111
cristy3ed852e2009-09-05 21:47:34 +000024112fi
cristy8b350f62009-11-15 23:12:43 +000024113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024114$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24115
24116
24117
24118cat >>confdefs.h <<_ACEOF
24119#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24120_ACEOF
24121
24122
24123
24124# Obtain size of off_t and define as SIZEOF_OFF_T
24125# The cast to long int works around a bug in the HP C Compiler
24126# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24127# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24128# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024131if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024132 $as_echo_n "(cached) " >&6
24133else
cristy8b350f62009-11-15 23:12:43 +000024134 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 +000024135
cristy3ed852e2009-09-05 21:47:34 +000024136else
cristy8b350f62009-11-15 23:12:43 +000024137 if test "$ac_cv_type_off_t" = yes; then
24138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024140as_fn_error 77 "cannot compute sizeof (off_t)
24141See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024142 else
24143 ac_cv_sizeof_off_t=0
24144 fi
24145fi
cristy8b350f62009-11-15 23:12:43 +000024146
cristy3ed852e2009-09-05 21:47:34 +000024147fi
cristy8b350f62009-11-15 23:12:43 +000024148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024149$as_echo "$ac_cv_sizeof_off_t" >&6; }
24150
24151
24152
24153cat >>confdefs.h <<_ACEOF
24154#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24155_ACEOF
24156
24157
24158
24159# Obtain size of size_t and define as SIZEOF_SIZE_T
24160# The cast to long int works around a bug in the HP C Compiler
24161# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24162# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24163# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024165$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024166if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024167 $as_echo_n "(cached) " >&6
24168else
cristy8b350f62009-11-15 23:12:43 +000024169 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 +000024170
cristy3ed852e2009-09-05 21:47:34 +000024171else
cristy8b350f62009-11-15 23:12:43 +000024172 if test "$ac_cv_type_size_t" = yes; then
24173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024175as_fn_error 77 "cannot compute sizeof (size_t)
24176See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024177 else
24178 ac_cv_sizeof_size_t=0
24179 fi
24180fi
cristy8b350f62009-11-15 23:12:43 +000024181
cristy3ed852e2009-09-05 21:47:34 +000024182fi
cristy8b350f62009-11-15 23:12:43 +000024183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo "$ac_cv_sizeof_size_t" >&6; }
24185
24186
24187
24188cat >>confdefs.h <<_ACEOF
24189#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24190_ACEOF
24191
24192
24193
cristy330e9352010-06-01 18:42:49 +000024194# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24195# The cast to long int works around a bug in the HP C Compiler
24196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24198# This bug is HP SR number 8606223364.
24199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24200$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024201if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024202 $as_echo_n "(cached) " >&6
24203else
24204 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24205
24206else
24207 if test "$ac_cv_type_ssize_t" = yes; then
24208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024210as_fn_error 77 "cannot compute sizeof (ssize_t)
24211See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024212 else
24213 ac_cv_sizeof_ssize_t=0
24214 fi
24215fi
24216
24217fi
24218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24219$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24220
24221
24222
24223cat >>confdefs.h <<_ACEOF
24224#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24225_ACEOF
24226
24227
24228
cristy3ed852e2009-09-05 21:47:34 +000024229# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24230# The cast to long int works around a bug in the HP C Compiler
24231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24233# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024236if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024237 $as_echo_n "(cached) " >&6
24238else
cristy8b350f62009-11-15 23:12:43 +000024239 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 +000024240
cristy3ed852e2009-09-05 21:47:34 +000024241else
cristy8b350f62009-11-15 23:12:43 +000024242 if test "$ac_cv_type_unsigned_intp" = yes; then
24243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024245as_fn_error 77 "cannot compute sizeof (unsigned int*)
24246See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024247 else
24248 ac_cv_sizeof_unsigned_intp=0
24249 fi
24250fi
cristy8b350f62009-11-15 23:12:43 +000024251
cristy3ed852e2009-09-05 21:47:34 +000024252fi
cristy8b350f62009-11-15 23:12:43 +000024253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024254$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24255
24256
24257
24258cat >>confdefs.h <<_ACEOF
24259#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24260_ACEOF
24261
24262
24263
24264#
24265# Compute sized types for current CPU and compiler options.
24266#
24267
cristy8b350f62009-11-15 23:12:43 +000024268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024269$as_echo_n "checking for signed 8-bit type... " >&6; }
24270INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024271{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24272$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024273
24274
cristy8b350f62009-11-15 23:12:43 +000024275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024276$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24277UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024278{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24279$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024280
24281
cristy8b350f62009-11-15 23:12:43 +000024282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024283$as_echo_n "checking for signed 16-bit type... " >&6; }
24284INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024285{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24286$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024287
24288
cristy8b350f62009-11-15 23:12:43 +000024289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24291UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024292{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24293$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024294
24295
cristy8b350f62009-11-15 23:12:43 +000024296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024297$as_echo_n "checking for signed 32-bit type... " >&6; }
24298INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024299INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024300if test $ac_cv_sizeof_signed_int -eq 4; then
24301 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024302 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024303elif test $ac_cv_sizeof_signed_long -eq 4; then
24304 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024305 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024306fi
cristy09b53e12011-10-14 12:47:22 +000024307{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24308$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024309
24310
cristy6d5e20f2011-04-25 13:48:54 +000024311
cristy8b350f62009-11-15 23:12:43 +000024312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024313$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24314UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024315UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024316if test $ac_cv_sizeof_unsigned_int -eq 4; then
24317 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024318 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024319elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24320 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024321 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024322fi
cristy09b53e12011-10-14 12:47:22 +000024323{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24324$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024325
24326
cristy6d5e20f2011-04-25 13:48:54 +000024327
cristy8b350f62009-11-15 23:12:43 +000024328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024329$as_echo_n "checking for signed 64-bit type... " >&6; }
24330INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024331INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024332if test $ac_cv_sizeof_signed_long -eq 8; then
24333 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024334 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024335elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24336 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024337 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024338fi
cristy3a99dcf2011-12-17 01:29:40 +000024339case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024340 mingw* )
24341 INT64_F='"I64"'
24342 ;;
24343esac
cristy09b53e12011-10-14 12:47:22 +000024344{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24345$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024346
24347
cristy6d5e20f2011-04-25 13:48:54 +000024348
cristy8b350f62009-11-15 23:12:43 +000024349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024350$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24351UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024352UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024353if test $ac_cv_sizeof_unsigned_long -eq 8; then
24354 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024355 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024356elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24357 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024358 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024359fi
cristy3a99dcf2011-12-17 01:29:40 +000024360case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024361 mingw* )
24362 UINT64_F='"I64"'
24363 ;;
24364esac
cristy09b53e12011-10-14 12:47:22 +000024365{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24366$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024367
24368
cristy6d5e20f2011-04-25 13:48:54 +000024369
cristy8b350f62009-11-15 23:12:43 +000024370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024371$as_echo_n "checking for unsigned maximum type... " >&6; }
24372UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024373UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024374if test "$UINT64_T" != 'none'; then
24375 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024376 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024377elif test "$UINT32_T" != 'none'; then
24378 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024379 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024380fi
cristy09b53e12011-10-14 12:47:22 +000024381{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24382$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024383
24384
cristy6d5e20f2011-04-25 13:48:54 +000024385
cristy8b350f62009-11-15 23:12:43 +000024386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024387$as_echo_n "checking for pointer difference type... " >&6; }
24388UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024389UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024390if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24391 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024392 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024393elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24394 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024395 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024396fi
cristy09b53e12011-10-14 12:47:22 +000024397{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24398$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024399
24400
cristy6d5e20f2011-04-25 13:48:54 +000024401
cristy8b350f62009-11-15 23:12:43 +000024402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024403$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024405/* end confdefs.h. */
24406
24407int
24408main ()
24409{
24410{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24411 ;
24412 return 0;
24413}
24414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024415if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024416 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24417$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024418else
cristy09b53e12011-10-14 12:47:22 +000024419 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24420$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024422$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024424/* end confdefs.h. */
24425
24426int
24427main ()
24428{
24429{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24430 ;
24431 return 0;
24432}
24433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024434if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024435 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24436$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024437
cristy8b350f62009-11-15 23:12:43 +000024438$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024439
24440else
cristy09b53e12011-10-14 12:47:22 +000024441 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24442$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024443
cristy8b350f62009-11-15 23:12:43 +000024444$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024445
24446fi
cristy3ed852e2009-09-05 21:47:34 +000024447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24448fi
cristy3ed852e2009-09-05 21:47:34 +000024449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24450
24451########
24452#
24453# Check for functions
24454#
24455########
cristy73bd4a52010-10-05 11:24:23 +000024456for ac_header in stdlib.h unistd.h
24457do :
24458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24459ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024460if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024461 cat >>confdefs.h <<_ACEOF
24462#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24463_ACEOF
24464
24465fi
24466
24467done
24468
24469for ac_func in getpagesize
24470do :
24471 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024472if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024473 cat >>confdefs.h <<_ACEOF
24474#define HAVE_GETPAGESIZE 1
24475_ACEOF
24476
24477fi
24478done
24479
24480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24481$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024482if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024483 $as_echo_n "(cached) " >&6
24484else
24485 if test "$cross_compiling" = yes; then :
24486 magick_cv_func_mmap_fileio=no
24487else
24488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24489/* end confdefs.h. */
24490$ac_includes_default
24491/* malloc might have been renamed as rpl_malloc. */
24492#undef malloc
24493
24494/*
24495 This test is derived from GNU Autoconf's similar macro.
24496 The purpose of this test is to verify that files may be memory
24497 mapped, and that memory mapping and file I/O are coherent.
24498
24499 The test creates a test file, memory maps the file, updates
24500 the file using the memory map, and then reads the file using
24501 file I/O to verify that the file contains the updates.
24502*/
24503
24504#include <fcntl.h>
24505#include <sys/mman.h>
24506
24507#if !STDC_HEADERS && !HAVE_STDLIB_H
24508char *malloc ();
24509#endif
24510
24511/* This mess was copied from the GNU getpagesize.h. */
24512#if !HAVE_GETPAGESIZE
24513/* Assume that all systems that can run configure have sys/param.h. */
24514# if !HAVE_SYS_PARAM_H
24515# define HAVE_SYS_PARAM_H 1
24516# endif
24517
24518# ifdef _SC_PAGESIZE
24519# define getpagesize() sysconf(_SC_PAGESIZE)
24520# else /* no _SC_PAGESIZE */
24521# if HAVE_SYS_PARAM_H
24522# include <sys/param.h>
24523# ifdef EXEC_PAGESIZE
24524# define getpagesize() EXEC_PAGESIZE
24525# else /* no EXEC_PAGESIZE */
24526# ifdef NBPG
24527# define getpagesize() NBPG * CLSIZE
24528# ifndef CLSIZE
24529# define CLSIZE 1
24530# endif /* no CLSIZE */
24531# else /* no NBPG */
24532# ifdef NBPC
24533# define getpagesize() NBPC
24534# else /* no NBPC */
24535# ifdef PAGESIZE
24536# define getpagesize() PAGESIZE
24537# endif /* PAGESIZE */
24538# endif /* no NBPC */
24539# endif /* no NBPG */
24540# endif /* no EXEC_PAGESIZE */
24541# else /* no HAVE_SYS_PARAM_H */
24542# define getpagesize() 8192 /* punt totally */
24543# endif /* no HAVE_SYS_PARAM_H */
24544# endif /* no _SC_PAGESIZE */
24545
24546#endif /* no HAVE_GETPAGESIZE */
24547
24548int
24549main ()
24550{
24551 char *data, *data2, *data3;
24552 int i, pagesize;
24553 int fd;
24554
24555 pagesize = getpagesize ();
24556
24557 /* First, make a file with some known garbage in it. */
24558 data = (char *) malloc (pagesize);
24559 if (!data)
24560 exit (1);
24561 for (i = 0; i < pagesize; ++i)
24562 *(data + i) = rand ();
24563 umask (0);
24564 fd = creat ("conftest.mmap", 0600);
24565 if (fd < 0)
24566 exit (1);
24567 if (write (fd, data, pagesize) != pagesize)
24568 exit (1);
24569 close (fd);
24570
24571 /* Mmap the file as read/write/shared and verify that we see the
24572 same garbage. */
24573 fd = open ("conftest.mmap", O_RDWR);
24574 if (fd < 0)
24575 exit (1);
24576 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24577 if (data2 == 0)
24578 exit (1);
24579 for (i = 0; i < pagesize; ++i)
24580 if (*(data + i) != *(data2 + i))
24581 exit (1);
24582
24583 /* Finally, make sure that changes to the mapped area
24584 percolate back to the file as seen by read(). */
24585 for (i = 0; i < pagesize; ++i)
24586 *(data2 + i) = *(data2 + i) + 1;
24587 data3 = (char *) malloc (pagesize);
24588 if (!data3)
24589 exit (1);
24590 if (read (fd, data3, pagesize) != pagesize)
24591 exit (1);
24592 for (i = 0; i < pagesize; ++i)
24593 if (*(data2 + i) != *(data3 + i))
24594 exit (1);
24595 close (fd);
24596 exit (0);
24597}
24598_ACEOF
24599if ac_fn_c_try_run "$LINENO"; then :
24600 magick_cv_func_mmap_fileio=yes
24601else
24602 magick_cv_func_mmap_fileio=no
24603fi
24604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24605 conftest.$ac_objext conftest.beam conftest.$ac_ext
24606fi
24607
24608fi
24609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24610$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24611if test $magick_cv_func_mmap_fileio = yes; then
24612
24613$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24614
24615fi
24616rm -f conftest.mmap
24617
cristy8b350f62009-11-15 23:12:43 +000024618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024619$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024620if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024621 $as_echo_n "(cached) " >&6
24622else
cristy8b350f62009-11-15 23:12:43 +000024623 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024624 ac_cv_func_closedir_void=yes
24625else
cristy8b350f62009-11-15 23:12:43 +000024626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024627/* end confdefs.h. */
24628$ac_includes_default
24629#include <$ac_header_dirent>
24630#ifndef __cplusplus
24631int closedir ();
24632#endif
24633
24634int
24635main ()
24636{
24637return closedir (opendir (".")) != 0;
24638 ;
24639 return 0;
24640}
24641_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024642if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024643 ac_cv_func_closedir_void=no
24644else
cristy8b350f62009-11-15 23:12:43 +000024645 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024646fi
cristy8b350f62009-11-15 23:12:43 +000024647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24648 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024649fi
24650
cristy3ed852e2009-09-05 21:47:34 +000024651fi
cristy8b350f62009-11-15 23:12:43 +000024652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024653$as_echo "$ac_cv_func_closedir_void" >&6; }
24654if test $ac_cv_func_closedir_void = yes; then
24655
cristy8b350f62009-11-15 23:12:43 +000024656$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024657
24658fi
24659
cristycd4c5312009-11-22 01:19:08 +000024660
24661
24662
24663 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024664do :
24665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024666ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24667"
cristy98dddb52010-11-04 00:30:15 +000024668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024669 cat >>confdefs.h <<_ACEOF
24670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24671_ACEOF
24672
24673fi
24674
24675done
24676
cristycd4c5312009-11-22 01:19:08 +000024677
24678
24679
24680
24681
24682
24683
cristy3ed852e2009-09-05 21:47:34 +000024684for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024685do :
24686 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024687if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024688 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024689#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024690_ACEOF
24691
24692fi
24693done
24694
cristy8b350f62009-11-15 23:12:43 +000024695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024696$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024697if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024698 $as_echo_n "(cached) " >&6
24699else
cristy8b350f62009-11-15 23:12:43 +000024700 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024701 ac_cv_func_mmap_fixed_mapped=no
24702else
cristy8b350f62009-11-15 23:12:43 +000024703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024704/* end confdefs.h. */
24705$ac_includes_default
24706/* malloc might have been renamed as rpl_malloc. */
24707#undef malloc
24708
24709/* Thanks to Mike Haertel and Jim Avera for this test.
24710 Here is a matrix of mmap possibilities:
24711 mmap private not fixed
24712 mmap private fixed at somewhere currently unmapped
24713 mmap private fixed at somewhere already mapped
24714 mmap shared not fixed
24715 mmap shared fixed at somewhere currently unmapped
24716 mmap shared fixed at somewhere already mapped
24717 For private mappings, we should verify that changes cannot be read()
24718 back from the file, nor mmap's back from the file at a different
24719 address. (There have been systems where private was not correctly
24720 implemented like the infamous i386 svr4.0, and systems where the
24721 VM page cache was not coherent with the file system buffer cache
24722 like early versions of FreeBSD and possibly contemporary NetBSD.)
24723 For shared mappings, we should conversely verify that changes get
24724 propagated back to all the places they're supposed to be.
24725
24726 Grep wants private fixed already mapped.
24727 The main things grep needs to know about mmap are:
24728 * does it exist and is it safe to write into the mmap'd area
24729 * how to use it (BSD variants) */
24730
24731#include <fcntl.h>
24732#include <sys/mman.h>
24733
24734#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24735char *malloc ();
24736#endif
24737
24738/* This mess was copied from the GNU getpagesize.h. */
24739#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024740# ifdef _SC_PAGESIZE
24741# define getpagesize() sysconf(_SC_PAGESIZE)
24742# else /* no _SC_PAGESIZE */
24743# ifdef HAVE_SYS_PARAM_H
24744# include <sys/param.h>
24745# ifdef EXEC_PAGESIZE
24746# define getpagesize() EXEC_PAGESIZE
24747# else /* no EXEC_PAGESIZE */
24748# ifdef NBPG
24749# define getpagesize() NBPG * CLSIZE
24750# ifndef CLSIZE
24751# define CLSIZE 1
24752# endif /* no CLSIZE */
24753# else /* no NBPG */
24754# ifdef NBPC
24755# define getpagesize() NBPC
24756# else /* no NBPC */
24757# ifdef PAGESIZE
24758# define getpagesize() PAGESIZE
24759# endif /* PAGESIZE */
24760# endif /* no NBPC */
24761# endif /* no NBPG */
24762# endif /* no EXEC_PAGESIZE */
24763# else /* no HAVE_SYS_PARAM_H */
24764# define getpagesize() 8192 /* punt totally */
24765# endif /* no HAVE_SYS_PARAM_H */
24766# endif /* no _SC_PAGESIZE */
24767
24768#endif /* no HAVE_GETPAGESIZE */
24769
24770int
24771main ()
24772{
24773 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024774 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024775 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024776 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024777
24778 pagesize = getpagesize ();
24779
24780 /* First, make a file with some known garbage in it. */
24781 data = (char *) malloc (pagesize);
24782 if (!data)
24783 return 1;
24784 for (i = 0; i < pagesize; ++i)
24785 *(data + i) = rand ();
24786 umask (0);
24787 fd = creat ("conftest.mmap", 0600);
24788 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024789 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024790 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024791 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024792 close (fd);
24793
cristycd4c5312009-11-22 01:19:08 +000024794 /* Next, check that the tail of a page is zero-filled. File must have
24795 non-zero length, otherwise we risk SIGBUS for entire page. */
24796 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24797 if (fd2 < 0)
24798 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024799 cdata2 = "";
24800 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024801 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024802 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024803 if (data2 == MAP_FAILED)
24804 return 6;
24805 for (i = 0; i < pagesize; ++i)
24806 if (*(data2 + i))
24807 return 7;
24808 close (fd2);
24809 if (munmap (data2, pagesize))
24810 return 8;
24811
cristy3ed852e2009-09-05 21:47:34 +000024812 /* Next, try to mmap the file at a fixed address which already has
24813 something else allocated at it. If we can, also make sure that
24814 we see the same garbage. */
24815 fd = open ("conftest.mmap", O_RDWR);
24816 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024817 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024818 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24819 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024820 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024821 for (i = 0; i < pagesize; ++i)
24822 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024823 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024824
24825 /* Finally, make sure that changes to the mapped area do not
24826 percolate back to the file as seen by read(). (This is a bug on
24827 some variants of i386 svr4.0.) */
24828 for (i = 0; i < pagesize; ++i)
24829 *(data2 + i) = *(data2 + i) + 1;
24830 data3 = (char *) malloc (pagesize);
24831 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024832 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024833 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024834 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024835 for (i = 0; i < pagesize; ++i)
24836 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024837 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024838 close (fd);
24839 return 0;
24840}
24841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024842if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024843 ac_cv_func_mmap_fixed_mapped=yes
24844else
cristy8b350f62009-11-15 23:12:43 +000024845 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024846fi
cristy8b350f62009-11-15 23:12:43 +000024847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24848 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024849fi
24850
cristy3ed852e2009-09-05 21:47:34 +000024851fi
cristy8b350f62009-11-15 23:12:43 +000024852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024853$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24854if test $ac_cv_func_mmap_fixed_mapped = yes; then
24855
cristy8b350f62009-11-15 23:12:43 +000024856$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024857
24858fi
cristycd4c5312009-11-22 01:19:08 +000024859rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024860
cristy3ed852e2009-09-05 21:47:34 +000024861for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024862do :
24863 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024864if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024865 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024866#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024867_ACEOF
24868
24869fi
24870
24871done
24872
cristy3ed852e2009-09-05 21:47:34 +000024873for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024874do :
24875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24876ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024877if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024878 cat >>confdefs.h <<_ACEOF
24879#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24880_ACEOF
24881
24882fi
24883done
24884
24885if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024887$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024888if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024889 $as_echo_n "(cached) " >&6
24890else
cristy8b350f62009-11-15 23:12:43 +000024891 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024892 ac_cv_func_fork_works=cross
24893else
cristy8b350f62009-11-15 23:12:43 +000024894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024895/* end confdefs.h. */
24896$ac_includes_default
24897int
24898main ()
24899{
24900
24901 /* By Ruediger Kuhlmann. */
24902 return fork () < 0;
24903
24904 ;
24905 return 0;
24906}
24907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024908if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024909 ac_cv_func_fork_works=yes
24910else
cristy8b350f62009-11-15 23:12:43 +000024911 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024912fi
cristy8b350f62009-11-15 23:12:43 +000024913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24914 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024915fi
24916
cristy3ed852e2009-09-05 21:47:34 +000024917fi
cristy8b350f62009-11-15 23:12:43 +000024918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024919$as_echo "$ac_cv_func_fork_works" >&6; }
24920
24921else
24922 ac_cv_func_fork_works=$ac_cv_func_fork
24923fi
24924if test "x$ac_cv_func_fork_works" = xcross; then
24925 case $host in
24926 *-*-amigaos* | *-*-msdosdjgpp*)
24927 # Override, as these systems have only a dummy fork() stub
24928 ac_cv_func_fork_works=no
24929 ;;
24930 *)
24931 ac_cv_func_fork_works=yes
24932 ;;
24933 esac
cristy8b350f62009-11-15 23:12:43 +000024934 { $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 +000024935$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24936fi
24937ac_cv_func_vfork_works=$ac_cv_func_vfork
24938if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024940$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024941if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024942 $as_echo_n "(cached) " >&6
24943else
cristy8b350f62009-11-15 23:12:43 +000024944 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024945 ac_cv_func_vfork_works=cross
24946else
cristy8b350f62009-11-15 23:12:43 +000024947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024948/* end confdefs.h. */
24949/* Thanks to Paul Eggert for this test. */
24950$ac_includes_default
24951#include <sys/wait.h>
24952#ifdef HAVE_VFORK_H
24953# include <vfork.h>
24954#endif
24955/* On some sparc systems, changes by the child to local and incoming
24956 argument registers are propagated back to the parent. The compiler
24957 is told about this with #include <vfork.h>, but some compilers
24958 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24959 static variable whose address is put into a register that is
24960 clobbered by the vfork. */
24961static void
24962#ifdef __cplusplus
24963sparc_address_test (int arg)
24964# else
24965sparc_address_test (arg) int arg;
24966#endif
24967{
24968 static pid_t child;
24969 if (!child) {
24970 child = vfork ();
24971 if (child < 0) {
24972 perror ("vfork");
24973 _exit(2);
24974 }
24975 if (!child) {
24976 arg = getpid();
24977 write(-1, "", 0);
24978 _exit (arg);
24979 }
24980 }
24981}
24982
24983int
24984main ()
24985{
24986 pid_t parent = getpid ();
24987 pid_t child;
24988
24989 sparc_address_test (0);
24990
24991 child = vfork ();
24992
24993 if (child == 0) {
24994 /* Here is another test for sparc vfork register problems. This
24995 test uses lots of local variables, at least as many local
24996 variables as main has allocated so far including compiler
24997 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24998 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24999 reuse the register of parent for one of the local variables,
25000 since it will think that parent can't possibly be used any more
25001 in this routine. Assigning to the local variable will thus
25002 munge parent in the parent process. */
25003 pid_t
25004 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25005 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25006 /* Convince the compiler that p..p7 are live; otherwise, it might
25007 use the same hardware register for all 8 local variables. */
25008 if (p != p1 || p != p2 || p != p3 || p != p4
25009 || p != p5 || p != p6 || p != p7)
25010 _exit(1);
25011
25012 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25013 from child file descriptors. If the child closes a descriptor
25014 before it execs or exits, this munges the parent's descriptor
25015 as well. Test for this by closing stdout in the child. */
25016 _exit(close(fileno(stdout)) != 0);
25017 } else {
25018 int status;
25019 struct stat st;
25020
25021 while (wait(&status) != child)
25022 ;
25023 return (
25024 /* Was there some problem with vforking? */
25025 child < 0
25026
25027 /* Did the child fail? (This shouldn't happen.) */
25028 || status
25029
25030 /* Did the vfork/compiler bug occur? */
25031 || parent != getpid()
25032
25033 /* Did the file descriptor bug occur? */
25034 || fstat(fileno(stdout), &st) != 0
25035 );
25036 }
25037}
25038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025039if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025040 ac_cv_func_vfork_works=yes
25041else
cristy8b350f62009-11-15 23:12:43 +000025042 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025043fi
cristy8b350f62009-11-15 23:12:43 +000025044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25045 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025046fi
25047
cristy3ed852e2009-09-05 21:47:34 +000025048fi
cristy8b350f62009-11-15 23:12:43 +000025049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025050$as_echo "$ac_cv_func_vfork_works" >&6; }
25051
25052fi;
25053if test "x$ac_cv_func_fork_works" = xcross; then
25054 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025055 { $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 +000025056$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25057fi
25058
25059if test "x$ac_cv_func_vfork_works" = xyes; then
25060
cristy8b350f62009-11-15 23:12:43 +000025061$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025062
25063else
25064
cristy8b350f62009-11-15 23:12:43 +000025065$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025066
25067fi
25068if test "x$ac_cv_func_fork_works" = xyes; then
25069
cristy8b350f62009-11-15 23:12:43 +000025070$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025071
25072fi
25073
cristy8b350f62009-11-15 23:12:43 +000025074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025075$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025076if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025077 $as_echo_n "(cached) " >&6
25078else
cristy8b350f62009-11-15 23:12:43 +000025079 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025080 ac_cv_func_memcmp_working=no
25081else
cristy8b350f62009-11-15 23:12:43 +000025082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025083/* end confdefs.h. */
25084$ac_includes_default
25085int
25086main ()
25087{
25088
25089 /* Some versions of memcmp are not 8-bit clean. */
25090 char c0 = '\100', c1 = '\200', c2 = '\201';
25091 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25092 return 1;
25093
25094 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25095 or more and with at least one buffer not starting on a 4-byte boundary.
25096 William Lewis provided this test program. */
25097 {
25098 char foo[21];
25099 char bar[21];
25100 int i;
25101 for (i = 0; i < 4; i++)
25102 {
25103 char *a = foo + i;
25104 char *b = bar + i;
25105 strcpy (a, "--------01111111");
25106 strcpy (b, "--------10000000");
25107 if (memcmp (a, b, 16) >= 0)
25108 return 1;
25109 }
25110 return 0;
25111 }
25112
25113 ;
25114 return 0;
25115}
25116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025117if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025118 ac_cv_func_memcmp_working=yes
25119else
cristy8b350f62009-11-15 23:12:43 +000025120 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025121fi
cristy8b350f62009-11-15 23:12:43 +000025122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25123 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025124fi
25125
cristy3ed852e2009-09-05 21:47:34 +000025126fi
cristy8b350f62009-11-15 23:12:43 +000025127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025128$as_echo "$ac_cv_func_memcmp_working" >&6; }
25129test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25130 *" memcmp.$ac_objext "* ) ;;
25131 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25132 ;;
25133esac
25134
25135
cristy3ed852e2009-09-05 21:47:34 +000025136for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025137do :
25138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25139ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025140if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025141 cat >>confdefs.h <<_ACEOF
25142#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25143_ACEOF
25144
25145fi
25146
25147done
25148
cristy8b350f62009-11-15 23:12:43 +000025149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025150$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025151if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025152 $as_echo_n "(cached) " >&6
25153else
25154 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25155 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25156 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025158/* end confdefs.h. */
25159$ac_includes_default
25160#ifdef HAVE_SYS_SELECT_H
25161# include <sys/select.h>
25162#endif
25163#ifdef HAVE_SYS_SOCKET_H
25164# include <sys/socket.h>
25165#endif
25166
25167int
25168main ()
25169{
25170extern int select ($ac_arg1,
25171 $ac_arg234, $ac_arg234, $ac_arg234,
25172 $ac_arg5);
25173 ;
25174 return 0;
25175}
25176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025177if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025178 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025179fi
cristy3ed852e2009-09-05 21:47:34 +000025180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 done
25182 done
25183done
25184# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025185: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025186
25187fi
cristy8b350f62009-11-15 23:12:43 +000025188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025189$as_echo "$ac_cv_func_select_args" >&6; }
25190ac_save_IFS=$IFS; IFS=','
25191set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25192IFS=$ac_save_IFS
25193shift
25194
25195cat >>confdefs.h <<_ACEOF
25196#define SELECT_TYPE_ARG1 $1
25197_ACEOF
25198
25199
25200cat >>confdefs.h <<_ACEOF
25201#define SELECT_TYPE_ARG234 ($2)
25202_ACEOF
25203
25204
25205cat >>confdefs.h <<_ACEOF
25206#define SELECT_TYPE_ARG5 ($3)
25207_ACEOF
25208
25209rm -f conftest*
25210
cristyda16f162011-02-19 23:52:17 +000025211if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025212 $as_echo_n "(cached) " >&6
25213else
25214 ac_cv_func_setvbuf_reversed=no
25215fi
25216
25217
cristy8b350f62009-11-15 23:12:43 +000025218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025219$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025220if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025221 $as_echo_n "(cached) " >&6
25222else
cristy8b350f62009-11-15 23:12:43 +000025223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025224/* end confdefs.h. */
25225#include <sys/types.h>
25226#include <signal.h>
25227
25228int
25229main ()
25230{
25231return *(signal (0, 0)) (0) == 1;
25232 ;
25233 return 0;
25234}
25235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025236if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025237 ac_cv_type_signal=int
25238else
cristy8b350f62009-11-15 23:12:43 +000025239 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025240fi
cristy3ed852e2009-09-05 21:47:34 +000025241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242fi
cristy8b350f62009-11-15 23:12:43 +000025243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025244$as_echo "$ac_cv_type_signal" >&6; }
25245
25246cat >>confdefs.h <<_ACEOF
25247#define RETSIGTYPE $ac_cv_type_signal
25248_ACEOF
25249
25250
cristy8b350f62009-11-15 23:12:43 +000025251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025252$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025253if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025254 $as_echo_n "(cached) " >&6
25255else
cristy8b350f62009-11-15 23:12:43 +000025256 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025257 ac_cv_func_strtod=no
25258else
cristy8b350f62009-11-15 23:12:43 +000025259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025260/* end confdefs.h. */
25261
25262$ac_includes_default
25263#ifndef strtod
25264double strtod ();
25265#endif
25266int
25267main()
25268{
25269 {
25270 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25271 char *string = " +69";
25272 char *term;
25273 double value;
25274 value = strtod (string, &term);
25275 if (value != 69 || term != (string + 4))
25276 return 1;
25277 }
25278
25279 {
25280 /* Under Solaris 2.4, strtod returns the wrong value for the
25281 terminating character under some conditions. */
25282 char *string = "NaN";
25283 char *term;
25284 strtod (string, &term);
25285 if (term != string && *(term - 1) == 0)
25286 return 1;
25287 }
25288 return 0;
25289}
25290
25291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025292if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025293 ac_cv_func_strtod=yes
25294else
cristy8b350f62009-11-15 23:12:43 +000025295 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025296fi
cristy8b350f62009-11-15 23:12:43 +000025297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25298 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025299fi
25300
cristy3ed852e2009-09-05 21:47:34 +000025301fi
cristy8b350f62009-11-15 23:12:43 +000025302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025303$as_echo "$ac_cv_func_strtod" >&6; }
25304if test $ac_cv_func_strtod = no; then
25305 case " $LIBOBJS " in
25306 *" strtod.$ac_objext "* ) ;;
25307 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25308 ;;
25309esac
25310
cristy8b350f62009-11-15 23:12:43 +000025311ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025312if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025313
cristy3ed852e2009-09-05 21:47:34 +000025314fi
25315
cristy3ed852e2009-09-05 21:47:34 +000025316if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025318$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025319if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025320 $as_echo_n "(cached) " >&6
25321else
25322 ac_check_lib_save_LIBS=$LIBS
25323LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025325/* end confdefs.h. */
25326
25327/* Override any GCC internal prototype to avoid an error.
25328 Use char because int might match the return type of a GCC
25329 builtin and then its argument prototype would still apply. */
25330#ifdef __cplusplus
25331extern "C"
25332#endif
25333char pow ();
25334int
25335main ()
25336{
25337return pow ();
25338 ;
25339 return 0;
25340}
25341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025343 ac_cv_lib_m_pow=yes
25344else
cristy8b350f62009-11-15 23:12:43 +000025345 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025346fi
cristy8b350f62009-11-15 23:12:43 +000025347rm -f core conftest.err conftest.$ac_objext \
25348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025349LIBS=$ac_check_lib_save_LIBS
25350fi
cristy8b350f62009-11-15 23:12:43 +000025351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025352$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025353if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025354 POW_LIB=-lm
25355else
cristy8b350f62009-11-15 23:12:43 +000025356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025357$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25358fi
25359
25360fi
25361
25362fi
25363
cristy7d4a1d62011-10-13 15:54:12 +000025364ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25365if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25366 ac_have_decl=1
25367else
25368 ac_have_decl=0
25369fi
25370
25371cat >>confdefs.h <<_ACEOF
25372#define HAVE_DECL_STRERROR_R $ac_have_decl
25373_ACEOF
25374
25375for ac_func in strerror_r
25376do :
25377 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25378if test "x$ac_cv_func_strerror_r" = xyes; then :
25379 cat >>confdefs.h <<_ACEOF
25380#define HAVE_STRERROR_R 1
25381_ACEOF
25382
25383fi
25384done
25385
25386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25387$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25388if ${ac_cv_func_strerror_r_char_p+:} false; then :
25389 $as_echo_n "(cached) " >&6
25390else
25391
25392 ac_cv_func_strerror_r_char_p=no
25393 if test $ac_cv_have_decl_strerror_r = yes; then
25394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25395/* end confdefs.h. */
25396$ac_includes_default
25397int
25398main ()
25399{
25400
25401 char buf[100];
25402 char x = *strerror_r (0, buf, sizeof buf);
25403 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025404 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025405
25406 ;
25407 return 0;
25408}
25409_ACEOF
25410if ac_fn_c_try_compile "$LINENO"; then :
25411 ac_cv_func_strerror_r_char_p=yes
25412fi
25413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25414 else
25415 # strerror_r is not declared. Choose between
25416 # systems that have relatively inaccessible declarations for the
25417 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25418 # former has a strerror_r that returns char*, while the latter
25419 # has a strerror_r that returns `int'.
25420 # This test should segfault on the DEC system.
25421 if test "$cross_compiling" = yes; then :
25422 :
25423else
25424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425/* end confdefs.h. */
25426$ac_includes_default
25427 extern char *strerror_r ();
25428int
25429main ()
25430{
25431char buf[100];
25432 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025433 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025434 ;
25435 return 0;
25436}
25437_ACEOF
25438if ac_fn_c_try_run "$LINENO"; then :
25439 ac_cv_func_strerror_r_char_p=yes
25440fi
25441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25442 conftest.$ac_objext conftest.beam conftest.$ac_ext
25443fi
25444
25445 fi
25446
25447fi
25448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25449$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25450if test $ac_cv_func_strerror_r_char_p = yes; then
25451
25452$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25453
25454fi
25455
cristy3ed852e2009-09-05 21:47:34 +000025456for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025457do :
25458 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025459if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025461#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025462_ACEOF
25463
cristy8b350f62009-11-15 23:12:43 +000025464ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025465if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025466
cristy8b350f62009-11-15 23:12:43 +000025467$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025468
25469fi
25470
25471fi
25472done
25473
25474
25475
cristy161b9262010-03-20 19:34:32 +000025476#
25477# Find math library
25478#
25479MATH_LIBS=''
25480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25481$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025482if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025483 $as_echo_n "(cached) " >&6
25484else
25485 ac_check_lib_save_LIBS=$LIBS
25486LIBS="-lm $LIBS"
25487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25488/* end confdefs.h. */
25489
25490/* Override any GCC internal prototype to avoid an error.
25491 Use char because int might match the return type of a GCC
25492 builtin and then its argument prototype would still apply. */
25493#ifdef __cplusplus
25494extern "C"
25495#endif
25496char sqrt ();
25497int
25498main ()
25499{
25500return sqrt ();
25501 ;
25502 return 0;
25503}
25504_ACEOF
25505if ac_fn_c_try_link "$LINENO"; then :
25506 ac_cv_lib_m_sqrt=yes
25507else
25508 ac_cv_lib_m_sqrt=no
25509fi
25510rm -f core conftest.err conftest.$ac_objext \
25511 conftest$ac_exeext conftest.$ac_ext
25512LIBS=$ac_check_lib_save_LIBS
25513fi
25514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25515$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025516if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025517 MATH_LIBS="-lm"
25518fi
25519
25520LIBS="$MATH_LIBS $LIBS"
25521
25522
cristy82b20722011-11-05 21:52:36 +000025523for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025524do :
25525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25526ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025527if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025528 cat >>confdefs.h <<_ACEOF
25529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25530_ACEOF
25531
25532fi
25533done
25534
25535
cristye43a45e2009-09-28 14:49:00 +000025536#
25537# Check for clock_gettime().
25538#
cristy8b350f62009-11-15 23:12:43 +000025539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025540$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025541if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025542 $as_echo_n "(cached) " >&6
25543else
25544 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025546/* end confdefs.h. */
25547
25548/* Override any GCC internal prototype to avoid an error.
25549 Use char because int might match the return type of a GCC
25550 builtin and then its argument prototype would still apply. */
25551#ifdef __cplusplus
25552extern "C"
25553#endif
25554char clock_gettime ();
25555int
25556main ()
25557{
25558return clock_gettime ();
25559 ;
25560 return 0;
25561}
25562_ACEOF
25563for ac_lib in '' rt; do
25564 if test -z "$ac_lib"; then
25565 ac_res="none required"
25566 else
25567 ac_res=-l$ac_lib
25568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25569 fi
cristy8b350f62009-11-15 23:12:43 +000025570 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025571 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025572fi
cristy8b350f62009-11-15 23:12:43 +000025573rm -f core conftest.err conftest.$ac_objext \
25574 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025575 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025576 break
25577fi
25578done
cristyda16f162011-02-19 23:52:17 +000025579if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025580
cristye43a45e2009-09-28 14:49:00 +000025581else
25582 ac_cv_search_clock_gettime=no
25583fi
25584rm conftest.$ac_ext
25585LIBS=$ac_func_search_save_LIBS
25586fi
cristy8b350f62009-11-15 23:12:43 +000025587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025588$as_echo "$ac_cv_search_clock_gettime" >&6; }
25589ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025590if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25592
25593
cristy8b350f62009-11-15 23:12:43 +000025594$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025595
cristy8b350f62009-11-15 23:12:43 +000025596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025597$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025599/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025600
25601 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025602int
25603main ()
25604{
25605clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025606 ;
25607 return 0;
25608}
25609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025610if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025611
cristy09b53e12011-10-14 12:47:22 +000025612 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25613$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025614
cristy8b350f62009-11-15 23:12:43 +000025615$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025616
25617
25618else
cristy09b53e12011-10-14 12:47:22 +000025619 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25620$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025621
25622fi
cristye43a45e2009-09-28 14:49:00 +000025623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25624
25625else
25626
cristy8b350f62009-11-15 23:12:43 +000025627 for ac_func in gettimeofday ftime
25628do :
25629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25630ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025631if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025632 cat >>confdefs.h <<_ACEOF
25633#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25634_ACEOF
25635 break
25636fi
25637done
25638
25639
25640
25641fi
25642
25643
cristy3ed852e2009-09-05 21:47:34 +000025644########
25645#
25646# Check for function prototypes
25647#
25648########
25649
cristy8b350f62009-11-15 23:12:43 +000025650ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025651#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025652"
cristyda16f162011-02-19 23:52:17 +000025653if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025654 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025655else
cristy8b350f62009-11-15 23:12:43 +000025656 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025657fi
25658
cristy3ed852e2009-09-05 21:47:34 +000025659cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025660#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025662ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025663#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025664"
cristyda16f162011-02-19 23:52:17 +000025665if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025666 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025667else
cristy8b350f62009-11-15 23:12:43 +000025668 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025669fi
25670
cristy3ed852e2009-09-05 21:47:34 +000025671cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025672#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025673_ACEOF
25674
25675
cristy8b350f62009-11-15 23:12:43 +000025676ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025677#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025678"
cristyda16f162011-02-19 23:52:17 +000025679if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025680 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025681else
cristy8b350f62009-11-15 23:12:43 +000025682 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025683fi
25684
cristy3ed852e2009-09-05 21:47:34 +000025685cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025686#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025687_ACEOF
25688
25689
cristy8b350f62009-11-15 23:12:43 +000025690ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025691#include <stdio.h>
25692#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025693"
cristyda16f162011-02-19 23:52:17 +000025694if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025695 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025696else
cristy8b350f62009-11-15 23:12:43 +000025697 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025698fi
25699
cristy3ed852e2009-09-05 21:47:34 +000025700cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025701#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025702_ACEOF
25703
25704
cristy3ed852e2009-09-05 21:47:34 +000025705########
25706#
25707# C++ Support Tests (For Magick++)
25708#
25709########
25710have_magick_plus_plus='no'
25711if test "$with_magick_plus_plus" = 'yes'; then
25712 OLIBS="$LIBS"
25713 LIBS=''
25714 ac_ext=cpp
25715ac_cpp='$CXXCPP $CPPFLAGS'
25716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25719
25720
25721 # Full set of headers used...
25722 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25723 # functional iomanip iosfwd iostream iterator list string strstream utility
25724 ac_ext=cpp
25725ac_cpp='$CXXCPP $CPPFLAGS'
25726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25729
25730 ac_ext=cpp
25731ac_cpp='$CXXCPP $CPPFLAGS'
25732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25735if test -z "$CXX"; then
25736 if test -n "$CCC"; then
25737 CXX=$CCC
25738 else
25739 if test -n "$ac_tool_prefix"; then
25740 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25741 do
25742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025746if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025747 $as_echo_n "(cached) " >&6
25748else
25749 if test -n "$CXX"; then
25750 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25751else
25752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25753for as_dir in $PATH
25754do
25755 IFS=$as_save_IFS
25756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25759 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025761 break 2
25762 fi
25763done
cristy8b350f62009-11-15 23:12:43 +000025764 done
cristy3ed852e2009-09-05 21:47:34 +000025765IFS=$as_save_IFS
25766
25767fi
25768fi
25769CXX=$ac_cv_prog_CXX
25770if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025772$as_echo "$CXX" >&6; }
25773else
cristy8b350f62009-11-15 23:12:43 +000025774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025775$as_echo "no" >&6; }
25776fi
25777
25778
25779 test -n "$CXX" && break
25780 done
25781fi
25782if test -z "$CXX"; then
25783 ac_ct_CXX=$CXX
25784 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25785do
25786 # Extract the first word of "$ac_prog", so it can be a program name with args.
25787set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025790if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025791 $as_echo_n "(cached) " >&6
25792else
25793 if test -n "$ac_ct_CXX"; then
25794 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25795else
25796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25797for as_dir in $PATH
25798do
25799 IFS=$as_save_IFS
25800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25803 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025805 break 2
25806 fi
25807done
cristy8b350f62009-11-15 23:12:43 +000025808 done
cristy3ed852e2009-09-05 21:47:34 +000025809IFS=$as_save_IFS
25810
25811fi
25812fi
25813ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25814if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025816$as_echo "$ac_ct_CXX" >&6; }
25817else
cristy8b350f62009-11-15 23:12:43 +000025818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025819$as_echo "no" >&6; }
25820fi
25821
25822
25823 test -n "$ac_ct_CXX" && break
25824done
25825
25826 if test "x$ac_ct_CXX" = x; then
25827 CXX="g++"
25828 else
25829 case $cross_compiling:$ac_tool_warned in
25830yes:)
cristy8b350f62009-11-15 23:12:43 +000025831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25833ac_tool_warned=yes ;;
25834esac
25835 CXX=$ac_ct_CXX
25836 fi
25837fi
25838
25839 fi
25840fi
25841# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025842$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025843set X $ac_compile
25844ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025845for ac_option in --version -v -V -qversion; do
25846 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025847case "(($ac_try" in
25848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25849 *) ac_try_echo=$ac_try;;
25850esac
cristy8b350f62009-11-15 23:12:43 +000025851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25852$as_echo "$ac_try_echo"; } >&5
25853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025854 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025855 if test -s conftest.err; then
25856 sed '10a\
25857... rest of stderr output deleted ...
25858 10q' conftest.err >conftest.er1
25859 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025860 fi
cristycd4c5312009-11-22 01:19:08 +000025861 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25863 test $ac_status = 0; }
25864done
cristy3ed852e2009-09-05 21:47:34 +000025865
cristy8b350f62009-11-15 23:12:43 +000025866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025867$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025868if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025869 $as_echo_n "(cached) " >&6
25870else
cristy8b350f62009-11-15 23:12:43 +000025871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025872/* end confdefs.h. */
25873
25874int
25875main ()
25876{
25877#ifndef __GNUC__
25878 choke me
25879#endif
25880
25881 ;
25882 return 0;
25883}
25884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025885if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025886 ac_compiler_gnu=yes
25887else
cristy8b350f62009-11-15 23:12:43 +000025888 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025889fi
cristy3ed852e2009-09-05 21:47:34 +000025890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25892
25893fi
cristy8b350f62009-11-15 23:12:43 +000025894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025895$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25896if test $ac_compiler_gnu = yes; then
25897 GXX=yes
25898else
25899 GXX=
25900fi
25901ac_test_CXXFLAGS=${CXXFLAGS+set}
25902ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025904$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025905if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025906 $as_echo_n "(cached) " >&6
25907else
25908 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25909 ac_cxx_werror_flag=yes
25910 ac_cv_prog_cxx_g=no
25911 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025913/* end confdefs.h. */
25914
25915int
25916main ()
25917{
25918
25919 ;
25920 return 0;
25921}
25922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025923if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025924 ac_cv_prog_cxx_g=yes
25925else
cristy8b350f62009-11-15 23:12:43 +000025926 CXXFLAGS=""
25927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025928/* end confdefs.h. */
25929
25930int
25931main ()
25932{
25933
25934 ;
25935 return 0;
25936}
25937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025938if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025939
cristy8b350f62009-11-15 23:12:43 +000025940else
25941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025942 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025944/* end confdefs.h. */
25945
25946int
25947main ()
25948{
25949
25950 ;
25951 return 0;
25952}
25953_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025954if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025955 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025956fi
cristy3ed852e2009-09-05 21:47:34 +000025957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25958fi
cristy3ed852e2009-09-05 21:47:34 +000025959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960fi
cristy3ed852e2009-09-05 21:47:34 +000025961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25962 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25963fi
cristy8b350f62009-11-15 23:12:43 +000025964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025965$as_echo "$ac_cv_prog_cxx_g" >&6; }
25966if test "$ac_test_CXXFLAGS" = set; then
25967 CXXFLAGS=$ac_save_CXXFLAGS
25968elif test $ac_cv_prog_cxx_g = yes; then
25969 if test "$GXX" = yes; then
25970 CXXFLAGS="-g -O2"
25971 else
25972 CXXFLAGS="-g"
25973 fi
25974else
25975 if test "$GXX" = yes; then
25976 CXXFLAGS="-O2"
25977 else
25978 CXXFLAGS=
25979 fi
25980fi
25981ac_ext=cpp
25982ac_cpp='$CXXCPP $CPPFLAGS'
25983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25986
cristy73bd4a52010-10-05 11:24:23 +000025987depcc="$CXX" am_compiler_list=
25988
25989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25990$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025991if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025992 $as_echo_n "(cached) " >&6
25993else
25994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25995 # We make a subdir and do the tests there. Otherwise we can end up
25996 # making bogus files that we don't know about and never remove. For
25997 # instance it was reported that on HP-UX the gcc test will end up
25998 # making a dummy file named `D' -- because `-MD' means `put the output
25999 # in D'.
cristy7247bba2012-02-05 16:37:27 +000026000 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026001 mkdir conftest.dir
26002 # Copy depcomp to subdir because otherwise we won't find it if we're
26003 # using a relative directory.
26004 cp "$am_depcomp" conftest.dir
26005 cd conftest.dir
26006 # We will build objects and dependencies in a subdirectory because
26007 # it helps to detect inapplicable dependency modes. For instance
26008 # both Tru64's cc and ICC support -MD to output dependencies as a
26009 # side effect of compilation, but ICC will put the dependencies in
26010 # the current directory while Tru64 will put them in the object
26011 # directory.
26012 mkdir sub
26013
26014 am_cv_CXX_dependencies_compiler_type=none
26015 if test "$am_compiler_list" = ""; then
26016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26017 fi
26018 am__universal=false
26019 case " $depcc " in #(
26020 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26021 esac
26022
26023 for depmode in $am_compiler_list; do
26024 # Setup a source with many dependencies, because some compilers
26025 # like to wrap large dependency lists on column 80 (with \), and
26026 # we should not choose a depcomp mode which is confused by this.
26027 #
26028 # We need to recreate these files for each test, as the compiler may
26029 # overwrite some of them when testing with obscure command lines.
26030 # This happens at least with the AIX C compiler.
26031 : > sub/conftest.c
26032 for i in 1 2 3 4 5 6; do
26033 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26034 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
26035 # Solaris 8's {/usr,}/bin/sh.
26036 touch sub/conftst$i.h
26037 done
26038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26039
26040 # We check with `-c' and `-o' for the sake of the "dashmstdout"
26041 # mode. It turns out that the SunPro C++ compiler does not properly
26042 # handle `-M -o', and we need to detect this. Also, some Intel
26043 # versions had trouble with output in subdirs
26044 am__obj=sub/conftest.${OBJEXT-o}
26045 am__minus_obj="-o $am__obj"
26046 case $depmode in
26047 gcc)
26048 # This depmode causes a compiler race in universal mode.
26049 test "$am__universal" = false || continue
26050 ;;
26051 nosideeffect)
26052 # after this tag, mechanisms are not by side-effect, so they'll
26053 # only be used when explicitly requested
26054 if test "x$enable_dependency_tracking" = xyes; then
26055 continue
26056 else
26057 break
26058 fi
26059 ;;
cristy7247bba2012-02-05 16:37:27 +000026060 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +000026061 # This compiler won't grok `-c -o', but also, the minuso test has
26062 # not run yet. These depmodes are late enough in the game, and
26063 # so weak that their functioning should not be impacted.
26064 am__obj=conftest.${OBJEXT-o}
26065 am__minus_obj=
26066 ;;
26067 none) break ;;
26068 esac
26069 if depmode=$depmode \
26070 source=sub/conftest.c object=$am__obj \
26071 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26072 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26073 >/dev/null 2>conftest.err &&
26074 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26075 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26076 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26077 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26078 # icc doesn't choke on unknown options, it will just issue warnings
26079 # or remarks (even with -Werror). So we grep stderr for any message
26080 # that says an option was ignored or not supported.
26081 # When given -MP, icc 7.0 and 7.1 complain thusly:
26082 # icc: Command line warning: ignoring option '-M'; no argument required
26083 # The diagnosis changed in icc 8.0:
26084 # icc: Command line remark: option '-MP' not supported
26085 if (grep 'ignoring option' conftest.err ||
26086 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26087 am_cv_CXX_dependencies_compiler_type=$depmode
26088 break
26089 fi
26090 fi
26091 done
26092
26093 cd ..
26094 rm -rf conftest.dir
26095else
26096 am_cv_CXX_dependencies_compiler_type=none
26097fi
26098
26099fi
26100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26101$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26102CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26103
26104 if
26105 test "x$enable_dependency_tracking" != xno \
26106 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26107 am__fastdepCXX_TRUE=
26108 am__fastdepCXX_FALSE='#'
26109else
26110 am__fastdepCXX_TRUE='#'
26111 am__fastdepCXX_FALSE=
26112fi
26113
26114
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26116$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026117if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026118 $as_echo_n "(cached) " >&6
26119else
26120
26121 ac_ext=cpp
26122ac_cpp='$CXXCPP $CPPFLAGS'
26123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26126
26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26128/* end confdefs.h. */
26129
26130int f(int x){return 1;}
26131int f(char x){return 1;}
26132int f(bool x){return 1;}
26133
26134int
26135main ()
26136{
26137bool b = true; return f(b);
26138 ;
26139 return 0;
26140}
26141_ACEOF
26142if ac_fn_cxx_try_compile "$LINENO"; then :
26143 ax_cv_cxx_bool=yes
26144else
26145 ax_cv_cxx_bool=no
26146fi
26147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26148 ac_ext=cpp
26149ac_cpp='$CXXCPP $CPPFLAGS'
26150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26153
26154
26155fi
26156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26157$as_echo "$ax_cv_cxx_bool" >&6; }
26158if test "$ax_cv_cxx_bool" = yes; then
26159
26160$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26161
26162fi
26163
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26165$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026166if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026167 $as_echo_n "(cached) " >&6
26168else
26169
26170 ac_ext=cpp
26171ac_cpp='$CXXCPP $CPPFLAGS'
26172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26175
26176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26177/* end confdefs.h. */
26178namespace Outer { namespace Inner { int i = 0; }}
26179int
26180main ()
26181{
26182using namespace Outer::Inner; return i;
26183 ;
26184 return 0;
26185}
26186_ACEOF
26187if ac_fn_cxx_try_compile "$LINENO"; then :
26188 ax_cv_cxx_namespaces=yes
26189else
26190 ax_cv_cxx_namespaces=no
26191fi
26192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26193 ac_ext=cpp
26194ac_cpp='$CXXCPP $CPPFLAGS'
26195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26198
26199
26200fi
26201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26202$as_echo "$ax_cv_cxx_namespaces" >&6; }
26203if test "$ax_cv_cxx_namespaces" = yes; then
26204
26205$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26206
26207fi
26208
26209
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26211$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026212if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026213 $as_echo_n "(cached) " >&6
26214else
26215
26216 ac_ext=cpp
26217ac_cpp='$CXXCPP $CPPFLAGS'
26218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26221
26222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223/* end confdefs.h. */
26224#include <iostream>
26225 std::istream& is = std::cin;
26226int
26227main ()
26228{
26229
26230 ;
26231 return 0;
26232}
26233_ACEOF
26234if ac_fn_cxx_try_compile "$LINENO"; then :
26235 ax_cv_cxx_have_std_namespace=yes
26236else
26237 ax_cv_cxx_have_std_namespace=no
26238fi
26239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240 ac_ext=cpp
26241ac_cpp='$CXXCPP $CPPFLAGS'
26242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26245
26246
26247fi
26248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26249$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26250 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26251
26252$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26253
26254 fi
26255
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26257$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026258if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026259 $as_echo_n "(cached) " >&6
26260else
26261
26262
26263 ac_ext=cpp
26264ac_cpp='$CXXCPP $CPPFLAGS'
26265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26268
26269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26270/* end confdefs.h. */
26271#include <iostream>
26272#include <map>
26273#include <iomanip>
26274#include <cmath>
26275#ifdef HAVE_NAMESPACES
26276using namespace std;
26277#endif
26278int
26279main ()
26280{
26281return 0;
26282 ;
26283 return 0;
26284}
26285_ACEOF
26286if ac_fn_cxx_try_compile "$LINENO"; then :
26287 ac_cv_cxx_have_std_libs=yes
26288else
26289 ac_cv_cxx_have_std_libs=no
26290fi
26291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292 ac_ext=cpp
26293ac_cpp='$CXXCPP $CPPFLAGS'
26294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26297
26298
26299fi
26300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26301$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26302if test "$ac_cv_cxx_have_std_libs" = yes; then
26303
26304$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26305
26306fi
26307
cristy3ed852e2009-09-05 21:47:34 +000026308
26309 OPENMP_CXXFLAGS=
26310 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026311if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026312 enableval=$enable_openmp;
26313fi
26314
26315 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26317$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026318if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026319 $as_echo_n "(cached) " >&6
26320else
cristy8b350f62009-11-15 23:12:43 +000026321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26322/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026323
26324#ifndef _OPENMP
26325 choke me
26326#endif
26327#include <omp.h>
26328int main () { return omp_get_num_threads (); }
26329
26330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026331if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026332 ac_cv_prog_cxx_openmp='none needed'
26333else
cristy8b350f62009-11-15 23:12:43 +000026334 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000026335 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
26336 ac_save_CXXFLAGS=$CXXFLAGS
26337 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26339/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026340
26341#ifndef _OPENMP
26342 choke me
26343#endif
26344#include <omp.h>
26345int main () { return omp_get_num_threads (); }
26346
26347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026348if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026350fi
cristy8b350f62009-11-15 23:12:43 +000026351rm -f core conftest.err conftest.$ac_objext \
26352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026353 CXXFLAGS=$ac_save_CXXFLAGS
26354 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26355 break
26356 fi
26357 done
26358fi
cristy8b350f62009-11-15 23:12:43 +000026359rm -f core conftest.err conftest.$ac_objext \
26360 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026361fi
cristy8b350f62009-11-15 23:12:43 +000026362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026363$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26364 case $ac_cv_prog_cxx_openmp in #(
26365 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026366 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026367 *)
cristy8b350f62009-11-15 23:12:43 +000026368 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026369 esac
26370 fi
26371
26372
26373 ac_ext=c
26374ac_cpp='$CPP $CPPFLAGS'
26375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26377ac_compiler_gnu=$ac_cv_c_compiler_gnu
26378
26379
cristy8b350f62009-11-15 23:12:43 +000026380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026381$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26382 if \
cristy964cb7f2010-04-25 23:18:00 +000026383 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026384 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026385 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026386 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026387 have_magick_plus_plus='yes'
26388 else
26389 have_magick_plus_plus='no (failed tests)'
26390 fi
cristy09b53e12011-10-14 12:47:22 +000026391 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26392$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026393 LIBS="$OLIBS"
26394fi
cristy73bd4a52010-10-05 11:24:23 +000026395 if test "$have_magick_plus_plus" = 'yes'; then
26396 WITH_MAGICK_PLUS_PLUS_TRUE=
26397 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26398else
26399 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26400 WITH_MAGICK_PLUS_PLUS_FALSE=
26401fi
26402
cristy3ed852e2009-09-05 21:47:34 +000026403
26404# Only check for delegate libraries in subdirectories if requested.
26405if test "$enable_delegate_build" != 'no'; then
26406 # Check for delegate sub-directories and add -I & -L options as required.
26407 # This presumes that delegates are installed as detailed in the ImageMagick
26408 # README. If delegates are installed in a standard location where the
26409 # compiler will automatically find them then these options should not be
26410 # required.
26411
26412 #
26413 # Most delegates have includes in the same directory as the library, but not all...
26414 #
26415 # Includes
cristy2542fc62011-12-06 17:50:25 +000026416 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026417 if test -d "$builddir/$dir"; then
26418 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26419 else
26420 if test -d "$srcdirfull/$dir"; then
26421 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26422 fi
26423 fi
26424 done
26425
26426 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026427 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026428 if test -d "$builddir/$dir/.libs"; then
26429 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26430 else
26431 if test -d "$srcdirfull/$dir/.libs"; then
26432 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26433 fi
26434 fi
26435 if test -d "$builddir/$dir"; then
26436 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26437 else
26438 if test -d "$srcdirfull/$dir"; then
26439 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26440 fi
26441 fi
26442 done
26443fi
26444
26445# Assume that delegate headers reside under same directory as ImageMagick
26446# installation prefix.
26447MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26448
26449#
26450# Find the X11 RGB database
26451#
cristy8b350f62009-11-15 23:12:43 +000026452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026453$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026454if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026455 $as_echo_n "(cached) " >&6
26456else
26457 # Look for the header file in a standard set of common directories.
26458# Check X11 before X11Rn because it is often a symlink to the current release.
26459 for ac_dir in \
26460 /lib/usr/lib/X11 \
26461 /usr/X11/lib \
26462 /usr/X11R4/lib \
26463 /usr/X11R5/lib \
26464 /usr/X11R6/lib \
26465 /usr/X11R7/lib \
26466 /usr/X386/lib \
26467 /usr/XFree86/lib/X11 \
26468 /usr/athena/lib \
26469 /usr/lib \
26470 /usr/lib/X11 \
26471 /usr/lib/X11R4 \
26472 /usr/lib/X11R5 \
26473 /usr/lib/X11R6 \
26474 /usr/lib/X11R7 \
26475 /usr/local/X11/lib \
26476 /usr/local/X11R4/lib \
26477 /usr/local/X11R5/lib \
26478 /usr/local/X11R6/lib \
26479 /usr/local/lib \
26480 /usr/local/lib/X11 \
26481 /usr/local/lib/X11R4 \
26482 /usr/local/lib/X11R5 \
26483 /usr/local/lib/X11R6 \
26484 /usr/local/lib/X11R7 \
26485 /usr/local/x11r5/lib \
26486 /usr/lpp/Xamples/lib \
26487 /usr/openwin/lib \
26488 /usr/openwin/share/lib \
26489 /usr/unsupported/lib \
26490 /usr/x386/lib \
26491 ; do
26492 if test -f "$ac_dir/X11/rgb.txt"; then
26493 im_cv_x_configure="$ac_dir/X11/"
26494 break
26495 elif test -f "$ac_dir/rgb.txt"; then
26496 im_cv_x_configure="$ac_dir/"
26497 break
26498 fi
26499
26500 done
26501fi
cristy8b350f62009-11-15 23:12:43 +000026502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026503$as_echo "$im_cv_x_configure" >&6; }
26504X11_CONFIGURE_PATH="$im_cv_x_configure"
26505case "${build_os}" in
26506 mingw* )
26507 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26508 ;;
26509esac
26510
26511cat >>confdefs.h <<_ACEOF
26512#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26513_ACEOF
26514
26515
26516#
26517# Find OpenMP library
26518#
26519GOMP_LIBS=''
26520if test "$enable_openmp" != 'no'; then
26521 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026522 # Open64 (passes for GCC but uses different OpenMP implementation)
26523 if test "x$GOMP_LIBS" = x ; then
26524 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26526$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26527if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26528 $as_echo_n "(cached) " >&6
26529else
26530 ac_check_lib_save_LIBS=$LIBS
26531LIBS="-lopenmp $LIBS"
26532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26533/* end confdefs.h. */
26534
26535/* Override any GCC internal prototype to avoid an error.
26536 Use char because int might match the return type of a GCC
26537 builtin and then its argument prototype would still apply. */
26538#ifdef __cplusplus
26539extern "C"
26540#endif
26541char omp_get_num_procs ();
26542int
26543main ()
26544{
26545return omp_get_num_procs ();
26546 ;
26547 return 0;
26548}
26549_ACEOF
26550if ac_fn_c_try_link "$LINENO"; then :
26551 ac_cv_lib_openmp_omp_get_num_procs=yes
26552else
26553 ac_cv_lib_openmp_omp_get_num_procs=no
26554fi
26555rm -f core conftest.err conftest.$ac_objext \
26556 conftest$ac_exeext conftest.$ac_ext
26557LIBS=$ac_check_lib_save_LIBS
26558fi
26559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26560$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26561if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26562 GOMP_LIBS="-lopenmp"
26563fi
26564
26565 fi
26566 fi
26567 # GCC
26568 if test "x$GOMP_LIBS" = x ; then
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026570$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026571if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026572 $as_echo_n "(cached) " >&6
26573else
26574 ac_check_lib_save_LIBS=$LIBS
26575LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026577/* end confdefs.h. */
26578
26579/* Override any GCC internal prototype to avoid an error.
26580 Use char because int might match the return type of a GCC
26581 builtin and then its argument prototype would still apply. */
26582#ifdef __cplusplus
26583extern "C"
26584#endif
26585char GOMP_parallel_start ();
26586int
26587main ()
26588{
26589return GOMP_parallel_start ();
26590 ;
26591 return 0;
26592}
26593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026595 ac_cv_lib_gomp_GOMP_parallel_start=yes
26596else
cristy8b350f62009-11-15 23:12:43 +000026597 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026598fi
cristy8b350f62009-11-15 23:12:43 +000026599rm -f core conftest.err conftest.$ac_objext \
26600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026601LIBS=$ac_check_lib_save_LIBS
26602fi
cristy8b350f62009-11-15 23:12:43 +000026603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026604$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026605if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026606 GOMP_LIBS="-lgomp"
26607fi
cristy18307f12011-12-30 01:20:16 +000026608
26609 fi
cristy3ed852e2009-09-05 21:47:34 +000026610 else
cristy18307f12011-12-30 01:20:16 +000026611 # Sun CC
26612 if test "x$GOMP_LIBS" = x ; then
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026614$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026615if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026616 $as_echo_n "(cached) " >&6
26617else
26618 ac_check_lib_save_LIBS=$LIBS
26619LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026621/* end confdefs.h. */
26622
26623/* Override any GCC internal prototype to avoid an error.
26624 Use char because int might match the return type of a GCC
26625 builtin and then its argument prototype would still apply. */
26626#ifdef __cplusplus
26627extern "C"
26628#endif
26629char sunw_mp_register_warn ();
26630int
26631main ()
26632{
26633return sunw_mp_register_warn ();
26634 ;
26635 return 0;
26636}
26637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026639 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26640else
cristy8b350f62009-11-15 23:12:43 +000026641 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026642fi
cristy8b350f62009-11-15 23:12:43 +000026643rm -f core conftest.err conftest.$ac_objext \
26644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026645LIBS=$ac_check_lib_save_LIBS
26646fi
cristy8b350f62009-11-15 23:12:43 +000026647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026648$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026649if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026650 GOMP_LIBS="-lmtsk"
26651fi
cristy18307f12011-12-30 01:20:16 +000026652
26653 fi
26654 # AIX xlc
26655 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026657$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026658if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026659 $as_echo_n "(cached) " >&6
26660else
26661 ac_check_lib_save_LIBS=$LIBS
26662LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026664/* end confdefs.h. */
26665
26666/* Override any GCC internal prototype to avoid an error.
26667 Use char because int might match the return type of a GCC
26668 builtin and then its argument prototype would still apply. */
26669#ifdef __cplusplus
26670extern "C"
26671#endif
26672char _xlsmpFlush ();
26673int
26674main ()
26675{
26676return _xlsmpFlush ();
26677 ;
26678 return 0;
26679}
26680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026681if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026682 ac_cv_lib_xlsmp__xlsmpFlush=yes
26683else
cristy8b350f62009-11-15 23:12:43 +000026684 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026685fi
cristy8b350f62009-11-15 23:12:43 +000026686rm -f core conftest.err conftest.$ac_objext \
26687 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026688LIBS=$ac_check_lib_save_LIBS
26689fi
cristy8b350f62009-11-15 23:12:43 +000026690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026691$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026692if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026693 GOMP_LIBS="-lxlsmp"
26694fi
cristy18307f12011-12-30 01:20:16 +000026695
26696 fi
26697 # SGI IRIX 6.5 MIPSpro C/C++
26698 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026700$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026701if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 $as_echo_n "(cached) " >&6
26703else
26704 ac_check_lib_save_LIBS=$LIBS
26705LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026707/* end confdefs.h. */
26708
26709/* Override any GCC internal prototype to avoid an error.
26710 Use char because int might match the return type of a GCC
26711 builtin and then its argument prototype would still apply. */
26712#ifdef __cplusplus
26713extern "C"
26714#endif
26715char mp_destroy ();
26716int
26717main ()
26718{
26719return mp_destroy ();
26720 ;
26721 return 0;
26722}
26723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026725 ac_cv_lib_mp_mp_destroy=yes
26726else
cristy8b350f62009-11-15 23:12:43 +000026727 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026728fi
cristy8b350f62009-11-15 23:12:43 +000026729rm -f core conftest.err conftest.$ac_objext \
26730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026731LIBS=$ac_check_lib_save_LIBS
26732fi
cristy8b350f62009-11-15 23:12:43 +000026733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026734$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026735if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026736 GOMP_LIBS="-lmp"
26737fi
cristy18307f12011-12-30 01:20:16 +000026738
26739 fi
cristy3ed852e2009-09-05 21:47:34 +000026740 fi
26741 LIBS="$GOMP_LIBS $LIBS"
26742fi
26743
26744
26745#
26746# Find Posix threads library
26747#
26748THREAD_LIBS=''
26749if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26750
26751 if test "x$PTHREAD_LIBS" = "x"; then
26752 case "${host_cpu}-${host_os}" in
26753 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026754
26755
26756
26757ac_ext=c
26758ac_cpp='$CPP $CPPFLAGS'
26759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26761ac_compiler_gnu=$ac_cv_c_compiler_gnu
26762
26763magick_pthread_lib_ok=no
26764
26765LIB=-lc_r
26766save_LIBS="$LIBS"
26767LIBS="$LIBS $LIB"
26768
26769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26770$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26772/* end confdefs.h. */
26773#include <pthread.h>
26774int
26775main ()
26776{
26777 pthread_t th;
26778 pthread_join(th, 0);
26779 pthread_attr_init(0);
26780 pthread_cleanup_push(0, 0);
26781 pthread_create(0,0,0,0);
26782 pthread_cleanup_pop(0);
26783 ;
26784 return 0;
26785}
26786_ACEOF
26787if ac_fn_c_try_link "$LINENO"; then :
26788 magick_pthread_lib_ok=yes
26789fi
26790rm -f core conftest.err conftest.$ac_objext \
26791 conftest$ac_exeext conftest.$ac_ext
26792
26793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26794$as_echo "${magick_pthread_lib_ok}" >&6; }
26795if test "$magick_pthread_lib_ok" = yes
26796then
26797 PTHREAD_LIBS=-lc_r
26798 :
26799else
26800
26801 :
26802fi
26803
26804LIBS="$save_LIBS"
26805
26806ac_ext=c
26807ac_cpp='$CPP $CPPFLAGS'
26808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26810ac_compiler_gnu=$ac_cv_c_compiler_gnu
26811
26812 ;;
cristy3ed852e2009-09-05 21:47:34 +000026813 esac
26814 fi
26815
26816 for lib in pthread pthreads; do
26817 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026818
26819
26820
26821ac_ext=c
26822ac_cpp='$CPP $CPPFLAGS'
26823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26825ac_compiler_gnu=$ac_cv_c_compiler_gnu
26826
26827magick_pthread_lib_ok=no
26828
26829LIB=-l$lib
26830save_LIBS="$LIBS"
26831LIBS="$LIBS $LIB"
26832
26833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26834$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836/* end confdefs.h. */
26837#include <pthread.h>
26838int
26839main ()
26840{
26841 pthread_t th;
26842 pthread_join(th, 0);
26843 pthread_attr_init(0);
26844 pthread_cleanup_push(0, 0);
26845 pthread_create(0,0,0,0);
26846 pthread_cleanup_pop(0);
26847 ;
26848 return 0;
26849}
26850_ACEOF
26851if ac_fn_c_try_link "$LINENO"; then :
26852 magick_pthread_lib_ok=yes
26853fi
26854rm -f core conftest.err conftest.$ac_objext \
26855 conftest$ac_exeext conftest.$ac_ext
26856
26857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26858$as_echo "${magick_pthread_lib_ok}" >&6; }
26859if test "$magick_pthread_lib_ok" = yes
26860then
26861 PTHREAD_LIBS=-l$lib
26862 :
26863else
26864
26865 :
26866fi
26867
26868LIBS="$save_LIBS"
26869
26870ac_ext=c
26871ac_cpp='$CPP $CPPFLAGS'
26872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26874ac_compiler_gnu=$ac_cv_c_compiler_gnu
26875
26876
cristy3ed852e2009-09-05 21:47:34 +000026877 fi
26878 done
26879
26880 THREAD_LIBS="$PTHREAD_LIBS"
26881 LIBS="$LIBS $THREAD_LIBS"
26882fi
26883
26884
26885#
26886# Check for umem.
26887#
26888have_umem='no'
26889UMEM_LIBS=''
26890if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026892$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026893 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26894$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026895 failed=0
26896 passed=0
cristy8b350f62009-11-15 23:12:43 +000026897 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026898if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026899 passed=`expr $passed + 1`
26900else
26901 failed=`expr $failed + 1`
26902fi
26903
26904
cristy8b350f62009-11-15 23:12:43 +000026905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026906$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026907if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026908 $as_echo_n "(cached) " >&6
26909else
26910 ac_check_lib_save_LIBS=$LIBS
26911LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026913/* end confdefs.h. */
26914
26915/* Override any GCC internal prototype to avoid an error.
26916 Use char because int might match the return type of a GCC
26917 builtin and then its argument prototype would still apply. */
26918#ifdef __cplusplus
26919extern "C"
26920#endif
26921char umem_alloc ();
26922int
26923main ()
26924{
26925return umem_alloc ();
26926 ;
26927 return 0;
26928}
26929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026931 ac_cv_lib_umem_umem_alloc=yes
26932else
cristy8b350f62009-11-15 23:12:43 +000026933 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026934fi
cristy8b350f62009-11-15 23:12:43 +000026935rm -f core conftest.err conftest.$ac_objext \
26936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026937LIBS=$ac_check_lib_save_LIBS
26938fi
cristy8b350f62009-11-15 23:12:43 +000026939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026940$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026941if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026942 passed=`expr $passed + 1`
26943else
26944 failed=`expr $failed + 1`
26945fi
26946
cristy8b350f62009-11-15 23:12:43 +000026947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026948$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026949if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026950 $as_echo_n "(cached) " >&6
26951else
26952 ac_check_lib_save_LIBS=$LIBS
26953LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026955/* end confdefs.h. */
26956
26957/* Override any GCC internal prototype to avoid an error.
26958 Use char because int might match the return type of a GCC
26959 builtin and then its argument prototype would still apply. */
26960#ifdef __cplusplus
26961extern "C"
26962#endif
26963char umem_free ();
26964int
26965main ()
26966{
26967return umem_free ();
26968 ;
26969 return 0;
26970}
26971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026972if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026973 ac_cv_lib_umem_umem_free=yes
26974else
cristy8b350f62009-11-15 23:12:43 +000026975 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026976fi
cristy8b350f62009-11-15 23:12:43 +000026977rm -f core conftest.err conftest.$ac_objext \
26978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026979LIBS=$ac_check_lib_save_LIBS
26980fi
cristy8b350f62009-11-15 23:12:43 +000026981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026982$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026983if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026984 passed=`expr $passed + 1`
26985else
26986 failed=`expr $failed + 1`
26987fi
26988
cristy8b350f62009-11-15 23:12:43 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26991 if test $passed -gt 0; then
26992 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026993 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26994$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026995 have_umem='no (failed tests)'
26996 else
26997 UMEM_LIBS='-lumem'
26998 LIBS="$UMEM_LIBS $LIBS"
26999
cristy8b350f62009-11-15 23:12:43 +000027000$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027001
cristy09b53e12011-10-14 12:47:22 +000027002 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27003$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027004 have_umem='yes'
27005 fi
27006 else
cristy09b53e12011-10-14 12:47:22 +000027007 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27008$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027009 fi
27010fi
cristy73bd4a52010-10-05 11:24:23 +000027011 if test "$have_umem" = 'yes'; then
27012 HasUMEM_TRUE=
27013 HasUMEM_FALSE='#'
27014else
27015 HasUMEM_TRUE='#'
27016 HasUMEM_FALSE=
27017fi
27018
cristy3ed852e2009-09-05 21:47:34 +000027019
27020
27021#
27022# Add support for ccmalloc memory debugging library if requested
27023#
27024have_ccmalloc='no'
27025CCMALLOC_LIBS=''
27026if test "$enable_ccmalloc" = 'yes'; then
27027 # Extract the first word of "ccmalloc", so it can be a program name with args.
27028set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027031if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027032 $as_echo_n "(cached) " >&6
27033else
27034 case $CCMALLOCDelegate in
27035 [\\/]* | ?:[\\/]*)
27036 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27037 ;;
27038 *)
27039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27040for as_dir in $PATH
27041do
27042 IFS=$as_save_IFS
27043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27046 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027048 break 2
27049 fi
27050done
cristy8b350f62009-11-15 23:12:43 +000027051 done
cristy3ed852e2009-09-05 21:47:34 +000027052IFS=$as_save_IFS
27053
27054 ;;
27055esac
27056fi
27057CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27058if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027060$as_echo "$CCMALLOCDelegate" >&6; }
27061else
cristy8b350f62009-11-15 23:12:43 +000027062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027063$as_echo "no" >&6; }
27064fi
27065
27066
27067 if test -n "$CCMALLOCDelegate"; then
27068 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27069 OLIBS="$LIBS"
27070 # Assume that gcc is used with ccmalloc.
27071 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027073$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027074if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 $as_echo_n "(cached) " >&6
27076else
27077 ac_check_lib_save_LIBS=$LIBS
27078LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027080/* end confdefs.h. */
27081
27082/* Override any GCC internal prototype to avoid an error.
27083 Use char because int might match the return type of a GCC
27084 builtin and then its argument prototype would still apply. */
27085#ifdef __cplusplus
27086extern "C"
27087#endif
27088char ccmalloc_malloc ();
27089int
27090main ()
27091{
27092return ccmalloc_malloc ();
27093 ;
27094 return 0;
27095}
27096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027097if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027098 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27099else
cristy8b350f62009-11-15 23:12:43 +000027100 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027101fi
cristy8b350f62009-11-15 23:12:43 +000027102rm -f core conftest.err conftest.$ac_objext \
27103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027104LIBS=$ac_check_lib_save_LIBS
27105fi
cristy8b350f62009-11-15 23:12:43 +000027106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027108if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027109 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27110fi
27111
27112 if test -n "$CCMALLOC_LIBS"; then
27113 LIBS="$OLIBS"
27114 LIBS="$LIBS $CCMALLOC_LIBS"
27115 have_ccmalloc='yes'
27116 else
27117 LIBS="$OLIBS"
27118 fi
27119 fi
27120fi
27121
27122#
27123# Add support for efence memory debugging library if requested
27124#
27125if test "$enable_efence" = 'yes'; then
27126 EFENCE_LIBS='-lefence'
27127 LIBS="$EFENCE_LIBS $LIBS"
27128fi
27129
cristy3ed852e2009-09-05 21:47:34 +000027130
27131#
27132# Check for BZLIB
27133#
27134
27135
27136# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027137if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027138 withval=$with_bzlib; with_bzlib=$withval
27139else
27140 with_bzlib='yes'
27141fi
27142
27143
27144if test "$with_bzlib" != 'yes'; then
27145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27146fi
27147
27148have_bzlib='no'
27149if test "$with_bzlib" != 'no'; then
27150 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027151 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27152$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027154$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027155 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27156$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027157 failed=0
27158 passed=0
27159 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027160 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027161if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027162 passed=`expr $passed + 1`
27163else
27164 failed=`expr $failed + 1`
27165fi
27166
27167
cristy8b350f62009-11-15 23:12:43 +000027168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027169$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027170if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027171 $as_echo_n "(cached) " >&6
27172else
27173 ac_check_lib_save_LIBS=$LIBS
27174LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027176/* end confdefs.h. */
27177
27178/* Override any GCC internal prototype to avoid an error.
27179 Use char because int might match the return type of a GCC
27180 builtin and then its argument prototype would still apply. */
27181#ifdef __cplusplus
27182extern "C"
27183#endif
27184char BZ2_bzDecompress ();
27185int
27186main ()
27187{
27188return BZ2_bzDecompress ();
27189 ;
27190 return 0;
27191}
27192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027193if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027194 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27195else
cristy8b350f62009-11-15 23:12:43 +000027196 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027197fi
cristy8b350f62009-11-15 23:12:43 +000027198rm -f core conftest.err conftest.$ac_objext \
27199 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027200LIBS=$ac_check_lib_save_LIBS
27201fi
cristy8b350f62009-11-15 23:12:43 +000027202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027204if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 found_libbz=`expr $found_libbz + 1`
27206fi
27207
27208 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027210$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027211if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027212 $as_echo_n "(cached) " >&6
27213else
27214 ac_check_lib_save_LIBS=$LIBS
27215LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027217/* end confdefs.h. */
27218
27219/* Override any GCC internal prototype to avoid an error.
27220 Use char because int might match the return type of a GCC
27221 builtin and then its argument prototype would still apply. */
27222#ifdef __cplusplus
27223extern "C"
27224#endif
27225char _imp__BZ2_decompress ();
27226int
27227main ()
27228{
27229return _imp__BZ2_decompress ();
27230 ;
27231 return 0;
27232}
27233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027235 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27236else
cristy8b350f62009-11-15 23:12:43 +000027237 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027238fi
cristy8b350f62009-11-15 23:12:43 +000027239rm -f core conftest.err conftest.$ac_objext \
27240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027241LIBS=$ac_check_lib_save_LIBS
27242fi
cristy8b350f62009-11-15 23:12:43 +000027243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027244$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027245if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027246 found_libbz=`expr $found_libbz + 1`
27247fi
27248
27249 fi
27250 if test $found_libbz -gt 0; then
27251 passed=`expr $passed + 1`
27252 else
27253 failed=`expr $failed + 1`
27254 fi
cristy8b350f62009-11-15 23:12:43 +000027255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo_n "checking if BZLIB package is complete... " >&6; }
27257 if test $passed -gt 0; then
27258 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027259 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27260$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027261 have_bzlib='no (failed tests)'
27262 else
27263 BZLIB_LIBS='-lbz2'
27264 LIBS="$BZLIB_LIBS $LIBS"
27265
cristy8b350f62009-11-15 23:12:43 +000027266$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027267
cristy09b53e12011-10-14 12:47:22 +000027268 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27269$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027270 have_bzlib='yes'
27271 fi
27272 else
cristy09b53e12011-10-14 12:47:22 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27274$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027275 fi
27276fi
cristy73bd4a52010-10-05 11:24:23 +000027277 if test "$have_bzlib" = 'yes'; then
27278 BZLIB_DELEGATE_TRUE=
27279 BZLIB_DELEGATE_FALSE='#'
27280else
27281 BZLIB_DELEGATE_TRUE='#'
27282 BZLIB_DELEGATE_FALSE=
27283fi
27284
cristy3ed852e2009-09-05 21:47:34 +000027285
27286
27287#
27288# Find the X11 include and library directories.
27289#
27290IPC_LIBS=''
27291X11_LIBS=''
27292XEXT_LIBS=''
27293XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027295$as_echo_n "checking for X... " >&6; }
27296
27297
27298# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027299if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027300 withval=$with_x;
27301fi
27302
27303# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27304if test "x$with_x" = xno; then
27305 # The user explicitly disabled X.
27306 have_x=disabled
27307else
27308 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027309 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027310 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027311 $as_echo_n "(cached) " >&6
27312else
27313 # One or both of the vars are not set, and there is no cached value.
27314ac_x_includes=no ac_x_libraries=no
27315rm -f -r conftest.dir
27316if mkdir conftest.dir; then
27317 cd conftest.dir
27318 cat >Imakefile <<'_ACEOF'
27319incroot:
27320 @echo incroot='${INCROOT}'
27321usrlibdir:
27322 @echo usrlibdir='${USRLIBDIR}'
27323libdir:
27324 @echo libdir='${LIBDIR}'
27325_ACEOF
27326 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027327 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027328 for ac_var in incroot usrlibdir libdir; do
27329 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27330 done
27331 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27332 for ac_extension in a so sl dylib la dll; do
27333 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27334 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27335 ac_im_usrlibdir=$ac_im_libdir; break
27336 fi
27337 done
27338 # Screen out bogus values from the imake configuration. They are
27339 # bogus both because they are the default anyway, and because
27340 # using them would break gcc on systems where it needs fixed includes.
27341 case $ac_im_incroot in
27342 /usr/include) ac_x_includes= ;;
27343 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27344 esac
27345 case $ac_im_usrlibdir in
27346 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27347 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27348 esac
27349 fi
27350 cd ..
27351 rm -f -r conftest.dir
27352fi
27353
27354# Standard set of common directories for X headers.
27355# Check X11 before X11Rn because it is often a symlink to the current release.
27356ac_x_header_dirs='
27357/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027358/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027359/usr/X11R6/include
27360/usr/X11R5/include
27361/usr/X11R4/include
27362
27363/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027364/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027365/usr/include/X11R6
27366/usr/include/X11R5
27367/usr/include/X11R4
27368
27369/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027370/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027371/usr/local/X11R6/include
27372/usr/local/X11R5/include
27373/usr/local/X11R4/include
27374
27375/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027376/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027377/usr/local/include/X11R6
27378/usr/local/include/X11R5
27379/usr/local/include/X11R4
27380
27381/usr/X386/include
27382/usr/x386/include
27383/usr/XFree86/include/X11
27384
27385/usr/include
27386/usr/local/include
27387/usr/unsupported/include
27388/usr/athena/include
27389/usr/local/x11r5/include
27390/usr/lpp/Xamples/include
27391
27392/usr/openwin/include
27393/usr/openwin/share/include'
27394
27395if test "$ac_x_includes" = no; then
27396 # Guess where to find include files, by looking for Xlib.h.
27397 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027399/* end confdefs.h. */
27400#include <X11/Xlib.h>
27401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027402if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027403 # We can compile using X headers with no special include directory.
27404ac_x_includes=
27405else
cristyc7083c12009-10-14 03:16:55 +000027406 for ac_dir in $ac_x_header_dirs; do
27407 if test -r "$ac_dir/X11/Xlib.h"; then
27408 ac_x_includes=$ac_dir
27409 break
27410 fi
27411done
27412fi
cristyda16f162011-02-19 23:52:17 +000027413rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027414fi # $ac_x_includes = no
27415
27416if test "$ac_x_libraries" = no; then
27417 # Check for the libraries.
27418 # See if we find them without any special options.
27419 # Don't add to $LIBS permanently.
27420 ac_save_LIBS=$LIBS
27421 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027423/* end confdefs.h. */
27424#include <X11/Xlib.h>
27425int
27426main ()
27427{
27428XrmInitialize ()
27429 ;
27430 return 0;
27431}
27432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027433if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027434 LIBS=$ac_save_LIBS
27435# We can link X programs with no special library path.
27436ac_x_libraries=
27437else
cristy8b350f62009-11-15 23:12:43 +000027438 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027439for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27440do
27441 # Don't even attempt the hair of trying to link an X program!
27442 for ac_extension in a so sl dylib la dll; do
27443 if test -r "$ac_dir/libX11.$ac_extension"; then
27444 ac_x_libraries=$ac_dir
27445 break 2
27446 fi
27447 done
27448done
27449fi
cristy8b350f62009-11-15 23:12:43 +000027450rm -f core conftest.err conftest.$ac_objext \
27451 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027452fi # $ac_x_libraries = no
27453
27454case $ac_x_includes,$ac_x_libraries in #(
27455 no,* | *,no | *\'*)
27456 # Didn't find X, or a directory has "'" in its name.
27457 ac_cv_have_x="have_x=no";; #(
27458 *)
27459 # Record where we found X for the cache.
27460 ac_cv_have_x="have_x=yes\
27461 ac_x_includes='$ac_x_includes'\
27462 ac_x_libraries='$ac_x_libraries'"
27463esac
27464fi
27465;; #(
27466 *) have_x=yes;;
27467 esac
27468 eval "$ac_cv_have_x"
27469fi # $with_x != no
27470
27471if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027473$as_echo "$have_x" >&6; }
27474 no_x=yes
27475else
27476 # If each of the values was on the command line, it overrides each guess.
27477 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27478 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27479 # Update the cache value to reflect the command line values.
27480 ac_cv_have_x="have_x=yes\
27481 ac_x_includes='$x_includes'\
27482 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027484$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27485fi
27486
cristy3ed852e2009-09-05 21:47:34 +000027487if test "$no_x" = yes; then
27488 # Not all programs may use this symbol, but it does not hurt to define it.
27489
cristy8b350f62009-11-15 23:12:43 +000027490$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027491
27492 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27493else
27494 if test -n "$x_includes"; then
27495 X_CFLAGS="$X_CFLAGS -I$x_includes"
27496 fi
27497
27498 # It would also be nice to do this for all -L options, not just this one.
27499 if test -n "$x_libraries"; then
27500 X_LIBS="$X_LIBS -L$x_libraries"
27501 # For Solaris; some versions of Sun CC require a space after -R and
27502 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027504$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27505 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27506 ac_xsave_c_werror_flag=$ac_c_werror_flag
27507 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027509/* end confdefs.h. */
27510
27511int
27512main ()
27513{
27514
27515 ;
27516 return 0;
27517}
27518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027519if ac_fn_c_try_link "$LINENO"; then :
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027521$as_echo "no" >&6; }
27522 X_LIBS="$X_LIBS -R$x_libraries"
27523else
cristy8b350f62009-11-15 23:12:43 +000027524 LIBS="$ac_xsave_LIBS -R $x_libraries"
27525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027526/* end confdefs.h. */
27527
27528int
27529main ()
27530{
27531
27532 ;
27533 return 0;
27534}
27535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027536if ac_fn_c_try_link "$LINENO"; then :
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo "yes" >&6; }
27539 X_LIBS="$X_LIBS -R $x_libraries"
27540else
cristy8b350f62009-11-15 23:12:43 +000027541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027542$as_echo "neither works" >&6; }
27543fi
cristy8b350f62009-11-15 23:12:43 +000027544rm -f core conftest.err conftest.$ac_objext \
27545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027546fi
cristy8b350f62009-11-15 23:12:43 +000027547rm -f core conftest.err conftest.$ac_objext \
27548 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027549 ac_c_werror_flag=$ac_xsave_c_werror_flag
27550 LIBS=$ac_xsave_LIBS
27551 fi
27552
27553 # Check for system-dependent libraries X programs must link with.
27554 # Do this before checking for the system-independent R6 libraries
27555 # (-lICE), since we may need -lsocket or whatever for X linking.
27556
27557 if test "$ISC" = yes; then
27558 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27559 else
27560 # Martyn Johnson says this is needed for Ultrix, if the X
27561 # libraries were built with DECnet support. And Karl Berry says
27562 # the Alpha needs dnet_stub (dnet does not exist).
27563 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027565/* end confdefs.h. */
27566
27567/* Override any GCC internal prototype to avoid an error.
27568 Use char because int might match the return type of a GCC
27569 builtin and then its argument prototype would still apply. */
27570#ifdef __cplusplus
27571extern "C"
27572#endif
27573char XOpenDisplay ();
27574int
27575main ()
27576{
27577return XOpenDisplay ();
27578 ;
27579 return 0;
27580}
27581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027582if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027583
cristy8b350f62009-11-15 23:12:43 +000027584else
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027586$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027587if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027588 $as_echo_n "(cached) " >&6
27589else
27590 ac_check_lib_save_LIBS=$LIBS
27591LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027593/* end confdefs.h. */
27594
27595/* Override any GCC internal prototype to avoid an error.
27596 Use char because int might match the return type of a GCC
27597 builtin and then its argument prototype would still apply. */
27598#ifdef __cplusplus
27599extern "C"
27600#endif
27601char dnet_ntoa ();
27602int
27603main ()
27604{
27605return dnet_ntoa ();
27606 ;
27607 return 0;
27608}
27609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027611 ac_cv_lib_dnet_dnet_ntoa=yes
27612else
cristy8b350f62009-11-15 23:12:43 +000027613 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027614fi
cristy8b350f62009-11-15 23:12:43 +000027615rm -f core conftest.err conftest.$ac_objext \
27616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027617LIBS=$ac_check_lib_save_LIBS
27618fi
cristy8b350f62009-11-15 23:12:43 +000027619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027621if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27623fi
27624
27625 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027627$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027628if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027629 $as_echo_n "(cached) " >&6
27630else
27631 ac_check_lib_save_LIBS=$LIBS
27632LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027634/* end confdefs.h. */
27635
27636/* Override any GCC internal prototype to avoid an error.
27637 Use char because int might match the return type of a GCC
27638 builtin and then its argument prototype would still apply. */
27639#ifdef __cplusplus
27640extern "C"
27641#endif
27642char dnet_ntoa ();
27643int
27644main ()
27645{
27646return dnet_ntoa ();
27647 ;
27648 return 0;
27649}
27650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027651if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27653else
cristy8b350f62009-11-15 23:12:43 +000027654 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027655fi
cristy8b350f62009-11-15 23:12:43 +000027656rm -f core conftest.err conftest.$ac_objext \
27657 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027658LIBS=$ac_check_lib_save_LIBS
27659fi
cristy8b350f62009-11-15 23:12:43 +000027660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027661$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027662if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027663 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27664fi
27665
27666 fi
27667fi
cristy8b350f62009-11-15 23:12:43 +000027668rm -f core conftest.err conftest.$ac_objext \
27669 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027670 LIBS="$ac_xsave_LIBS"
27671
27672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27673 # to get the SysV transport functions.
27674 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27675 # needs -lnsl.
27676 # The nsl library prevents programs from opening the X display
27677 # on Irix 5.2, according to T.E. Dickey.
27678 # The functions gethostbyname, getservbyname, and inet_addr are
27679 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027680 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027681if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027682
cristy3ed852e2009-09-05 21:47:34 +000027683fi
27684
cristy3ed852e2009-09-05 21:47:34 +000027685 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027688if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027689 $as_echo_n "(cached) " >&6
27690else
27691 ac_check_lib_save_LIBS=$LIBS
27692LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027694/* end confdefs.h. */
27695
27696/* Override any GCC internal prototype to avoid an error.
27697 Use char because int might match the return type of a GCC
27698 builtin and then its argument prototype would still apply. */
27699#ifdef __cplusplus
27700extern "C"
27701#endif
27702char gethostbyname ();
27703int
27704main ()
27705{
27706return gethostbyname ();
27707 ;
27708 return 0;
27709}
27710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027711if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027712 ac_cv_lib_nsl_gethostbyname=yes
27713else
cristy8b350f62009-11-15 23:12:43 +000027714 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027715fi
cristy8b350f62009-11-15 23:12:43 +000027716rm -f core conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027718LIBS=$ac_check_lib_save_LIBS
27719fi
cristy8b350f62009-11-15 23:12:43 +000027720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027721$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027722if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27724fi
27725
27726 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027728$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027729if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027730 $as_echo_n "(cached) " >&6
27731else
27732 ac_check_lib_save_LIBS=$LIBS
27733LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027735/* end confdefs.h. */
27736
27737/* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
27740#ifdef __cplusplus
27741extern "C"
27742#endif
27743char gethostbyname ();
27744int
27745main ()
27746{
27747return gethostbyname ();
27748 ;
27749 return 0;
27750}
27751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 ac_cv_lib_bsd_gethostbyname=yes
27754else
cristy8b350f62009-11-15 23:12:43 +000027755 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027756fi
cristy8b350f62009-11-15 23:12:43 +000027757rm -f core conftest.err conftest.$ac_objext \
27758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027759LIBS=$ac_check_lib_save_LIBS
27760fi
cristy8b350f62009-11-15 23:12:43 +000027761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027762$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027763if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27765fi
27766
27767 fi
27768 fi
27769
27770 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27771 # socket/setsockopt and other routines are undefined under SCO ODT
27772 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27773 # on later versions), says Simon Leinen: it contains gethostby*
27774 # variants that don't use the name server (or something). -lsocket
27775 # must be given before -lnsl if both are needed. We assume that
27776 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027777 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027778if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027779
cristy3ed852e2009-09-05 21:47:34 +000027780fi
27781
cristy3ed852e2009-09-05 21:47:34 +000027782 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027784$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027785if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027786 $as_echo_n "(cached) " >&6
27787else
27788 ac_check_lib_save_LIBS=$LIBS
27789LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027791/* end confdefs.h. */
27792
27793/* Override any GCC internal prototype to avoid an error.
27794 Use char because int might match the return type of a GCC
27795 builtin and then its argument prototype would still apply. */
27796#ifdef __cplusplus
27797extern "C"
27798#endif
27799char connect ();
27800int
27801main ()
27802{
27803return connect ();
27804 ;
27805 return 0;
27806}
27807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027808if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027809 ac_cv_lib_socket_connect=yes
27810else
cristy8b350f62009-11-15 23:12:43 +000027811 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027812fi
cristy8b350f62009-11-15 23:12:43 +000027813rm -f core conftest.err conftest.$ac_objext \
27814 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027815LIBS=$ac_check_lib_save_LIBS
27816fi
cristy8b350f62009-11-15 23:12:43 +000027817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027819if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027820 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27821fi
27822
27823 fi
27824
27825 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027826 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027827if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027828
cristy3ed852e2009-09-05 21:47:34 +000027829fi
27830
cristy3ed852e2009-09-05 21:47:34 +000027831 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027833$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027834if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027835 $as_echo_n "(cached) " >&6
27836else
27837 ac_check_lib_save_LIBS=$LIBS
27838LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027840/* end confdefs.h. */
27841
27842/* Override any GCC internal prototype to avoid an error.
27843 Use char because int might match the return type of a GCC
27844 builtin and then its argument prototype would still apply. */
27845#ifdef __cplusplus
27846extern "C"
27847#endif
27848char remove ();
27849int
27850main ()
27851{
27852return remove ();
27853 ;
27854 return 0;
27855}
27856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027857if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 ac_cv_lib_posix_remove=yes
27859else
cristy8b350f62009-11-15 23:12:43 +000027860 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027861fi
cristy8b350f62009-11-15 23:12:43 +000027862rm -f core conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027864LIBS=$ac_check_lib_save_LIBS
27865fi
cristy8b350f62009-11-15 23:12:43 +000027866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027867$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027868if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27870fi
27871
27872 fi
27873
27874 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027875 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027876if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027877
cristy3ed852e2009-09-05 21:47:34 +000027878fi
27879
cristy3ed852e2009-09-05 21:47:34 +000027880 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027883if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 $as_echo_n "(cached) " >&6
27885else
27886 ac_check_lib_save_LIBS=$LIBS
27887LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027889/* end confdefs.h. */
27890
27891/* Override any GCC internal prototype to avoid an error.
27892 Use char because int might match the return type of a GCC
27893 builtin and then its argument prototype would still apply. */
27894#ifdef __cplusplus
27895extern "C"
27896#endif
27897char shmat ();
27898int
27899main ()
27900{
27901return shmat ();
27902 ;
27903 return 0;
27904}
27905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027907 ac_cv_lib_ipc_shmat=yes
27908else
cristy8b350f62009-11-15 23:12:43 +000027909 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027910fi
cristy8b350f62009-11-15 23:12:43 +000027911rm -f core conftest.err conftest.$ac_objext \
27912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027913LIBS=$ac_check_lib_save_LIBS
27914fi
cristy8b350f62009-11-15 23:12:43 +000027915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027916$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027917if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27919fi
27920
27921 fi
27922 fi
27923
27924 # Check for libraries that X11R6 Xt/Xaw programs need.
27925 ac_save_LDFLAGS=$LDFLAGS
27926 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27927 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27928 # check for ICE first), but we must link in the order -lSM -lICE or
27929 # we get undefined symbols. So assume we have SM if we have ICE.
27930 # These have to be linked with before -lX11, unlike the other
27931 # libraries we check for below, so use a different variable.
27932 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027934$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027935if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027936 $as_echo_n "(cached) " >&6
27937else
27938 ac_check_lib_save_LIBS=$LIBS
27939LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027941/* end confdefs.h. */
27942
27943/* Override any GCC internal prototype to avoid an error.
27944 Use char because int might match the return type of a GCC
27945 builtin and then its argument prototype would still apply. */
27946#ifdef __cplusplus
27947extern "C"
27948#endif
27949char IceConnectionNumber ();
27950int
27951main ()
27952{
27953return IceConnectionNumber ();
27954 ;
27955 return 0;
27956}
27957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027958if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 ac_cv_lib_ICE_IceConnectionNumber=yes
27960else
cristy8b350f62009-11-15 23:12:43 +000027961 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027962fi
cristy8b350f62009-11-15 23:12:43 +000027963rm -f core conftest.err conftest.$ac_objext \
27964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027965LIBS=$ac_check_lib_save_LIBS
27966fi
cristy8b350f62009-11-15 23:12:43 +000027967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027968$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027969if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027970 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27971fi
27972
27973 LDFLAGS=$ac_save_LDFLAGS
27974
27975fi
27976
27977if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027978 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27979$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027981$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027982 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27983$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027984 LDFLAGS="$LDFLAGS $X_LIBS"
27985 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27986 LIBS="$X11_LIBS $LIBS"
27987 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27988
27989
cristy8b350f62009-11-15 23:12:43 +000027990$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027991
27992 #
27993 # Check for X11 shared memory extension
27994 #
27995 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027996 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027997if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027998 have_shmctl='yes'
27999fi
28000
28001 if test "$have_shmctl" != 'yes'; then
28002 PERSIST_LIBS=$LIBS
28003 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028005/* end confdefs.h. */
28006
28007/* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28010#ifdef __cplusplus
28011extern "C"
28012#endif
28013char shmctl ();
28014int
28015main ()
28016{
28017return shmctl ();
28018 ;
28019 return 0;
28020}
28021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028024fi
cristy8b350f62009-11-15 23:12:43 +000028025rm -f core conftest.err conftest.$ac_objext \
28026 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028027 LIBS=$PERSIST_LIBS
28028 fi
28029
28030 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028033if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 $as_echo_n "(cached) " >&6
28035else
28036 ac_check_lib_save_LIBS=$LIBS
28037LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028039/* end confdefs.h. */
28040
28041/* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
28044#ifdef __cplusplus
28045extern "C"
28046#endif
28047char XShmAttach ();
28048int
28049main ()
28050{
28051return XShmAttach ();
28052 ;
28053 return 0;
28054}
28055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028056if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028057 ac_cv_lib_Xext_XShmAttach=yes
28058else
cristy8b350f62009-11-15 23:12:43 +000028059 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028060fi
cristy8b350f62009-11-15 23:12:43 +000028061rm -f core conftest.err conftest.$ac_objext \
28062 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028063LIBS=$ac_check_lib_save_LIBS
28064fi
cristy8b350f62009-11-15 23:12:43 +000028065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028066$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028067if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028068 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028069$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028070
28071fi
28072
28073 fi
28074
28075 #
28076 # Check for X11 shape extension
28077 #
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028080if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028081 $as_echo_n "(cached) " >&6
28082else
28083 ac_check_lib_save_LIBS=$LIBS
28084LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028086/* end confdefs.h. */
28087
28088/* Override any GCC internal prototype to avoid an error.
28089 Use char because int might match the return type of a GCC
28090 builtin and then its argument prototype would still apply. */
28091#ifdef __cplusplus
28092extern "C"
28093#endif
28094char XShapeCombineMask ();
28095int
28096main ()
28097{
28098return XShapeCombineMask ();
28099 ;
28100 return 0;
28101}
28102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 ac_cv_lib_Xext_XShapeCombineMask=yes
28105else
cristy8b350f62009-11-15 23:12:43 +000028106 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028107fi
cristy8b350f62009-11-15 23:12:43 +000028108rm -f core conftest.err conftest.$ac_objext \
28109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110LIBS=$ac_check_lib_save_LIBS
28111fi
cristy8b350f62009-11-15 23:12:43 +000028112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028113$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028114if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028115 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028116$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028117
28118fi
28119
cristy8b350f62009-11-15 23:12:43 +000028120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028121$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028122if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028123 $as_echo_n "(cached) " >&6
28124else
28125 ac_check_lib_save_LIBS=$LIBS
28126LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028128/* end confdefs.h. */
28129
28130/* Override any GCC internal prototype to avoid an error.
28131 Use char because int might match the return type of a GCC
28132 builtin and then its argument prototype would still apply. */
28133#ifdef __cplusplus
28134extern "C"
28135#endif
28136char XtSetEventDispatcher ();
28137int
28138main ()
28139{
28140return XtSetEventDispatcher ();
28141 ;
28142 return 0;
28143}
28144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028145if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028146 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28147else
cristy8b350f62009-11-15 23:12:43 +000028148 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028149fi
cristy8b350f62009-11-15 23:12:43 +000028150rm -f core conftest.err conftest.$ac_objext \
28151 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028152LIBS=$ac_check_lib_save_LIBS
28153fi
cristy8b350f62009-11-15 23:12:43 +000028154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028155$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028156if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028157 XT_LIBS='-lXt'
28158fi
28159
28160 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28161fi
28162if test "$no_x" != 'yes'; then
28163 have_x='yes'
28164else
28165 have_x='no'
28166fi
cristy73bd4a52010-10-05 11:24:23 +000028167 if test "$have_x" = 'yes'; then
28168 X11_DELEGATE_TRUE=
28169 X11_DELEGATE_FALSE='#'
28170else
28171 X11_DELEGATE_TRUE='#'
28172 X11_DELEGATE_FALSE=
28173fi
28174
cristy3ed852e2009-09-05 21:47:34 +000028175
28176
28177
28178
28179#
28180# Check for ZLIB
28181#
28182
28183# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028184if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028185 withval=$with_zlib; with_zlib=$withval
28186else
28187 with_zlib='yes'
28188fi
28189
28190
28191if test "$with_zlib" != 'yes'; then
28192 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28193fi
28194
28195have_zlib='no'
28196ZLIB_LIBS=''
28197if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28199$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028201$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028202 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28203$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028204 ZLIB_LIBS=''
28205 failed=0
28206 passed=0
cristy8b350f62009-11-15 23:12:43 +000028207 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028208if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 passed=`expr $passed + 1`
28210else
28211 failed=`expr $failed + 1`
28212fi
28213
28214
cristy8b350f62009-11-15 23:12:43 +000028215 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028216if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028217 passed=`expr $passed + 1`
28218else
28219 failed=`expr $failed + 1`
28220fi
28221
28222
cristy8b350f62009-11-15 23:12:43 +000028223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028224$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028225if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028226 $as_echo_n "(cached) " >&6
28227else
28228 ac_check_lib_save_LIBS=$LIBS
28229LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028231/* end confdefs.h. */
28232
28233/* Override any GCC internal prototype to avoid an error.
28234 Use char because int might match the return type of a GCC
28235 builtin and then its argument prototype would still apply. */
28236#ifdef __cplusplus
28237extern "C"
28238#endif
28239char compress ();
28240int
28241main ()
28242{
28243return compress ();
28244 ;
28245 return 0;
28246}
28247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028249 ac_cv_lib_z_compress=yes
28250else
cristy8b350f62009-11-15 23:12:43 +000028251 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028252fi
cristy8b350f62009-11-15 23:12:43 +000028253rm -f core conftest.err conftest.$ac_objext \
28254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028255LIBS=$ac_check_lib_save_LIBS
28256fi
cristy8b350f62009-11-15 23:12:43 +000028257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028259if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028260 passed=`expr $passed + 1`
28261else
28262 failed=`expr $failed + 1`
28263fi
28264
cristy8b350f62009-11-15 23:12:43 +000028265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028266$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028267if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 $as_echo_n "(cached) " >&6
28269else
28270 ac_check_lib_save_LIBS=$LIBS
28271LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028273/* end confdefs.h. */
28274
28275/* Override any GCC internal prototype to avoid an error.
28276 Use char because int might match the return type of a GCC
28277 builtin and then its argument prototype would still apply. */
28278#ifdef __cplusplus
28279extern "C"
28280#endif
28281char uncompress ();
28282int
28283main ()
28284{
28285return uncompress ();
28286 ;
28287 return 0;
28288}
28289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 ac_cv_lib_z_uncompress=yes
28292else
cristy8b350f62009-11-15 23:12:43 +000028293 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028294fi
cristy8b350f62009-11-15 23:12:43 +000028295rm -f core conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028297LIBS=$ac_check_lib_save_LIBS
28298fi
cristy8b350f62009-11-15 23:12:43 +000028299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028301if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 passed=`expr $passed + 1`
28303else
28304 failed=`expr $failed + 1`
28305fi
28306
cristy8b350f62009-11-15 23:12:43 +000028307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028308$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028309if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028310 $as_echo_n "(cached) " >&6
28311else
28312 ac_check_lib_save_LIBS=$LIBS
28313LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028315/* end confdefs.h. */
28316
28317/* Override any GCC internal prototype to avoid an error.
28318 Use char because int might match the return type of a GCC
28319 builtin and then its argument prototype would still apply. */
28320#ifdef __cplusplus
28321extern "C"
28322#endif
28323char deflate ();
28324int
28325main ()
28326{
28327return deflate ();
28328 ;
28329 return 0;
28330}
28331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028332if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 ac_cv_lib_z_deflate=yes
28334else
cristy8b350f62009-11-15 23:12:43 +000028335 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028336fi
cristy8b350f62009-11-15 23:12:43 +000028337rm -f core conftest.err conftest.$ac_objext \
28338 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028339LIBS=$ac_check_lib_save_LIBS
28340fi
cristy8b350f62009-11-15 23:12:43 +000028341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028343if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028344 passed=`expr $passed + 1`
28345else
28346 failed=`expr $failed + 1`
28347fi
28348
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028351if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 $as_echo_n "(cached) " >&6
28353else
28354 ac_check_lib_save_LIBS=$LIBS
28355LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028357/* end confdefs.h. */
28358
28359/* Override any GCC internal prototype to avoid an error.
28360 Use char because int might match the return type of a GCC
28361 builtin and then its argument prototype would still apply. */
28362#ifdef __cplusplus
28363extern "C"
28364#endif
28365char inflate ();
28366int
28367main ()
28368{
28369return inflate ();
28370 ;
28371 return 0;
28372}
28373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 ac_cv_lib_z_inflate=yes
28376else
cristy8b350f62009-11-15 23:12:43 +000028377 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028378fi
cristy8b350f62009-11-15 23:12:43 +000028379rm -f core conftest.err conftest.$ac_objext \
28380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028381LIBS=$ac_check_lib_save_LIBS
28382fi
cristy8b350f62009-11-15 23:12:43 +000028383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028384$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028385if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028386 passed=`expr $passed + 1`
28387else
28388 failed=`expr $failed + 1`
28389fi
28390
cristy8b350f62009-11-15 23:12:43 +000028391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028392$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028393if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028394 $as_echo_n "(cached) " >&6
28395else
28396 ac_check_lib_save_LIBS=$LIBS
28397LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028399/* end confdefs.h. */
28400
28401/* Override any GCC internal prototype to avoid an error.
28402 Use char because int might match the return type of a GCC
28403 builtin and then its argument prototype would still apply. */
28404#ifdef __cplusplus
28405extern "C"
28406#endif
28407char gzseek ();
28408int
28409main ()
28410{
28411return gzseek ();
28412 ;
28413 return 0;
28414}
28415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028416if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028417 ac_cv_lib_z_gzseek=yes
28418else
cristy8b350f62009-11-15 23:12:43 +000028419 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028420fi
cristy8b350f62009-11-15 23:12:43 +000028421rm -f core conftest.err conftest.$ac_objext \
28422 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028423LIBS=$ac_check_lib_save_LIBS
28424fi
cristy8b350f62009-11-15 23:12:43 +000028425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028426$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028427if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028428 passed=`expr $passed + 1`
28429else
28430 failed=`expr $failed + 1`
28431fi
28432
cristy8b350f62009-11-15 23:12:43 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028434$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028435if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028436 $as_echo_n "(cached) " >&6
28437else
28438 ac_check_lib_save_LIBS=$LIBS
28439LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028441/* end confdefs.h. */
28442
28443/* Override any GCC internal prototype to avoid an error.
28444 Use char because int might match the return type of a GCC
28445 builtin and then its argument prototype would still apply. */
28446#ifdef __cplusplus
28447extern "C"
28448#endif
28449char gztell ();
28450int
28451main ()
28452{
28453return gztell ();
28454 ;
28455 return 0;
28456}
28457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028459 ac_cv_lib_z_gztell=yes
28460else
cristy8b350f62009-11-15 23:12:43 +000028461 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028462fi
cristy8b350f62009-11-15 23:12:43 +000028463rm -f core conftest.err conftest.$ac_objext \
28464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028465LIBS=$ac_check_lib_save_LIBS
28466fi
cristy8b350f62009-11-15 23:12:43 +000028467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028469if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028470 passed=`expr $passed + 1`
28471else
28472 failed=`expr $failed + 1`
28473fi
28474
cristy8b350f62009-11-15 23:12:43 +000028475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo_n "checking if ZLIB package is complete... " >&6; }
28477 if test $passed -gt 0; then
28478 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028479 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28480$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028481 have_zlib='no (failed tests)'
28482 else
28483 ZLIB_LIBS='-lz'
28484 LIBS="$ZLIB_LIBS $LIBS"
28485
cristy8b350f62009-11-15 23:12:43 +000028486$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028487
cristy09b53e12011-10-14 12:47:22 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28489$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028490 have_zlib='yes'
28491 fi
28492 else
cristy09b53e12011-10-14 12:47:22 +000028493 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28494$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028495 fi
28496fi
cristy73bd4a52010-10-05 11:24:23 +000028497 if test "$have_zlib" = 'yes'; then
28498 ZLIB_DELEGATE_TRUE=
28499 ZLIB_DELEGATE_FALSE='#'
28500else
28501 ZLIB_DELEGATE_TRUE='#'
28502 ZLIB_DELEGATE_FALSE=
28503fi
28504
cristy3ed852e2009-09-05 21:47:34 +000028505
28506
28507#
28508# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28509#
28510LIB_DL=''
28511if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028513$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028514if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028515 $as_echo_n "(cached) " >&6
28516else
28517 ac_check_lib_save_LIBS=$LIBS
28518LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028520/* end confdefs.h. */
28521
28522/* Override any GCC internal prototype to avoid an error.
28523 Use char because int might match the return type of a GCC
28524 builtin and then its argument prototype would still apply. */
28525#ifdef __cplusplus
28526extern "C"
28527#endif
28528char dlopen ();
28529int
28530main ()
28531{
28532return dlopen ();
28533 ;
28534 return 0;
28535}
28536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028537if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028538 ac_cv_lib_dl_dlopen=yes
28539else
cristy8b350f62009-11-15 23:12:43 +000028540 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028541fi
cristy8b350f62009-11-15 23:12:43 +000028542rm -f core conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028544LIBS=$ac_check_lib_save_LIBS
28545fi
cristy8b350f62009-11-15 23:12:43 +000028546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028548if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028549 LIB_DL='-ldl'
28550fi
28551
28552 LIBS="$LIB_DL $LIBS"
28553fi
28554
28555
28556
28557#
28558# Check for Autotrace delegate library.
28559#
28560
28561# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028562if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028563 withval=$with_autotrace; with_autotrace=$withval
28564else
28565 with_autotrace='no'
28566fi
28567
28568
28569if test "$with_autotrace" != 'yes'; then
28570 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28571fi
28572
28573have_autotrace='no'
28574AUTOTRACE_CFLAGS=""
28575AUTOTRACE_LIBS=""
28576AUTOTRACE_PKG=""
28577if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028578 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28579$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028580
28581pkg_failed=no
28582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28583$as_echo_n "checking for AUTOTRACE... " >&6; }
28584
28585if test -n "$AUTOTRACE_CFLAGS"; then
28586 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28587 elif test -n "$PKG_CONFIG"; then
28588 if test -n "$PKG_CONFIG" && \
28589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28590 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28591 ac_status=$?
28592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28593 test $ac_status = 0; }; then
28594 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28595else
28596 pkg_failed=yes
28597fi
28598 else
28599 pkg_failed=untried
28600fi
28601if test -n "$AUTOTRACE_LIBS"; then
28602 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28603 elif test -n "$PKG_CONFIG"; then
28604 if test -n "$PKG_CONFIG" && \
28605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28606 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28607 ac_status=$?
28608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28609 test $ac_status = 0; }; then
28610 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28611else
28612 pkg_failed=yes
28613fi
28614 else
28615 pkg_failed=untried
28616fi
28617
28618
28619
28620if test $pkg_failed = yes; then
28621
28622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28623 _pkg_short_errors_supported=yes
28624else
28625 _pkg_short_errors_supported=no
28626fi
28627 if test $_pkg_short_errors_supported = yes; then
28628 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28629 else
28630 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28631 fi
28632 # Put the nasty error message in config.log where it belongs
28633 echo "$AUTOTRACE_PKG_ERRORS" >&5
28634
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28636$as_echo "no" >&6; }
28637 have_autotrace=no
28638elif test $pkg_failed = untried; then
28639 have_autotrace=no
28640else
28641 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28642 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28644$as_echo "yes" >&6; }
28645 have_autotrace=yes
28646fi
cristy09b53e12011-10-14 12:47:22 +000028647 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28648$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028649fi
28650
28651if test "$have_autotrace" = 'yes'; then
28652 failed=0
28653
cristy8b350f62009-11-15 23:12:43 +000028654$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028655
28656 if test "$with_modules" = 'no'; then
28657 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28658 fi
28659fi
28660
cristy73bd4a52010-10-05 11:24:23 +000028661 if test "$have_autotrace" = 'yes'; then
28662 AUTOTRACE_DELEGATE_TRUE=
28663 AUTOTRACE_DELEGATE_FALSE='#'
28664else
28665 AUTOTRACE_DELEGATE_TRUE='#'
28666 AUTOTRACE_DELEGATE_FALSE=
28667fi
28668
cristy3ed852e2009-09-05 21:47:34 +000028669
28670
28671
28672
28673#
28674# Check for Display Postscript delegate library.
28675#
28676
28677# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028678if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028679 withval=$with_dps; with_dps=$withval
28680else
28681 with_dps='yes'
28682fi
28683
28684
28685if test "$with_dps" != 'yes'; then
28686 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28687fi
28688
28689have_dps='no'
28690DPS_LIBS=''
28691if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028692 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28693$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028695$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028696 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28697$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028698 failed=0
28699 passed=0
28700 PERSIST_CPPFLAGS="$CPPFLAGS"
28701 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028702 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 +000028703if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028704 passed=`expr $passed + 1`
28705else
28706 failed=`expr $failed + 1`
28707fi
28708
28709
28710 # DPS issues:
28711 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28712 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28713 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28714 # ImageMagick itself doesn't use -lXt.
28715 have_libdps='no'
28716 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028718$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028719if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028720 $as_echo_n "(cached) " >&6
28721else
28722 ac_check_lib_save_LIBS=$LIBS
28723LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028725/* end confdefs.h. */
28726
28727/* Override any GCC internal prototype to avoid an error.
28728 Use char because int might match the return type of a GCC
28729 builtin and then its argument prototype would still apply. */
28730#ifdef __cplusplus
28731extern "C"
28732#endif
28733char DPSInitialize ();
28734int
28735main ()
28736{
28737return DPSInitialize ();
28738 ;
28739 return 0;
28740}
28741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 ac_cv_lib_dps_DPSInitialize=yes
28744else
cristy8b350f62009-11-15 23:12:43 +000028745 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028746fi
cristy8b350f62009-11-15 23:12:43 +000028747rm -f core conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028749LIBS=$ac_check_lib_save_LIBS
28750fi
cristy8b350f62009-11-15 23:12:43 +000028751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028752$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028753if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028754 have_libdps='yes'
28755else
28756 have_libdps='no'
28757fi
28758
28759 if test "$have_libdps" != 'yes'; then
28760 # Unset cache variable so we can try again.
28761 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028763$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028764if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028765 $as_echo_n "(cached) " >&6
28766else
28767 ac_check_lib_save_LIBS=$LIBS
28768LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028770/* end confdefs.h. */
28771
28772/* Override any GCC internal prototype to avoid an error.
28773 Use char because int might match the return type of a GCC
28774 builtin and then its argument prototype would still apply. */
28775#ifdef __cplusplus
28776extern "C"
28777#endif
28778char DPSInitialize ();
28779int
28780main ()
28781{
28782return DPSInitialize ();
28783 ;
28784 return 0;
28785}
28786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028787if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028788 ac_cv_lib_dps_DPSInitialize=yes
28789else
cristy8b350f62009-11-15 23:12:43 +000028790 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028791fi
cristy8b350f62009-11-15 23:12:43 +000028792rm -f core conftest.err conftest.$ac_objext \
28793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028794LIBS=$ac_check_lib_save_LIBS
28795fi
cristy8b350f62009-11-15 23:12:43 +000028796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028797$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028798if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028799 have_libdps='yes'
28800else
28801 have_libdps='no'
28802fi
28803
28804 if test "$have_libdps" = 'yes'; then
28805 LIBDPS_XT='-lXt'
28806 fi
28807 fi
28808 if test "$have_libdps" = 'yes'; then
28809 passed=`expr $passed + 1`
28810 else
28811 failed=`expr $failed + 1`
28812 fi
cristy8b350f62009-11-15 23:12:43 +000028813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028814$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028815if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028816 $as_echo_n "(cached) " >&6
28817else
28818 ac_check_lib_save_LIBS=$LIBS
28819LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028821/* end confdefs.h. */
28822
28823/* Override any GCC internal prototype to avoid an error.
28824 Use char because int might match the return type of a GCC
28825 builtin and then its argument prototype would still apply. */
28826#ifdef __cplusplus
28827extern "C"
28828#endif
28829char XDPSPixelsPerPoint ();
28830int
28831main ()
28832{
28833return XDPSPixelsPerPoint ();
28834 ;
28835 return 0;
28836}
28837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028839 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28840else
cristy8b350f62009-11-15 23:12:43 +000028841 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028842fi
cristy8b350f62009-11-15 23:12:43 +000028843rm -f core conftest.err conftest.$ac_objext \
28844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028845LIBS=$ac_check_lib_save_LIBS
28846fi
cristy8b350f62009-11-15 23:12:43 +000028847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028848$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028849if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028850 passed=`expr $passed + 1`
28851else
28852 failed=`expr $failed + 1`
28853fi
28854
cristy8b350f62009-11-15 23:12:43 +000028855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028856$as_echo_n "checking if DPS package is complete... " >&6; }
28857 if test $passed -gt 0; then
28858 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028859 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28860$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028861 have_dps='no (failed tests)'
28862 CPPFLAGS="$PERSIST_CPPFLAGS"
28863 else
28864 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28865 LIBS="$DPS_LIBS $LIBS"
28866
cristy8b350f62009-11-15 23:12:43 +000028867$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028868
cristy09b53e12011-10-14 12:47:22 +000028869 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28870$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028871 have_dps='yes'
28872 fi
28873 else
cristy09b53e12011-10-14 12:47:22 +000028874 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28875$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028876 CPPFLAGS=$PERSIST_CPPFLAGS
28877 fi
28878fi
cristy73bd4a52010-10-05 11:24:23 +000028879 if test "$have_dps" = 'yes'; then
28880 DPS_DELEGATE_TRUE=
28881 DPS_DELEGATE_FALSE='#'
28882else
28883 DPS_DELEGATE_TRUE='#'
28884 DPS_DELEGATE_FALSE=
28885fi
28886
cristy3ed852e2009-09-05 21:47:34 +000028887
28888
28889
28890#
28891# Check for DJVU delegate library.
28892#
28893
28894# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028895if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028896 withval=$with_djvu; with_djvu=$withval
28897else
28898 with_djvu='yes'
28899fi
28900
28901
28902if test "$with_djvu" != 'yes'; then
28903 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28904fi
28905
28906have_djvu='no'
28907DJVU_LIBS=''
28908if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028909 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28910$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028912$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028913 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28914$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028915 failed=0
28916 passed=0
cristy8b350f62009-11-15 23:12:43 +000028917 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 +000028918if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028919 passed=`expr $passed + 1`
28920else
28921 failed=`expr $failed + 1`
28922fi
28923
28924
cristy8b350f62009-11-15 23:12:43 +000028925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028926$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028927if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028928 $as_echo_n "(cached) " >&6
28929else
28930 ac_check_lib_save_LIBS=$LIBS
28931LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028933/* end confdefs.h. */
28934
28935/* Override any GCC internal prototype to avoid an error.
28936 Use char because int might match the return type of a GCC
28937 builtin and then its argument prototype would still apply. */
28938#ifdef __cplusplus
28939extern "C"
28940#endif
28941char ddjvu_context_create ();
28942int
28943main ()
28944{
28945return ddjvu_context_create ();
28946 ;
28947 return 0;
28948}
28949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028950if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028951 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28952else
cristy8b350f62009-11-15 23:12:43 +000028953 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028954fi
cristy8b350f62009-11-15 23:12:43 +000028955rm -f core conftest.err conftest.$ac_objext \
28956 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028957LIBS=$ac_check_lib_save_LIBS
28958fi
cristy8b350f62009-11-15 23:12:43 +000028959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028961if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028962 passed=`expr $passed + 1`
28963else
28964 failed=`expr $failed + 1`
28965fi
28966
cristy8b350f62009-11-15 23:12:43 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028968$as_echo_n "checking if DJVU package is complete... " >&6; }
28969 if test $passed -gt 0; then
28970 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28972$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028973 have_djvu='no (failed tests)'
28974 else
28975 DJVU_LIBS='-ldjvulibre'
28976 LIBS="$DJVU_LIBS $LIBS"
28977
cristy8b350f62009-11-15 23:12:43 +000028978$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028979
cristy09b53e12011-10-14 12:47:22 +000028980 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28981$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028982 have_djvu='yes'
28983 fi
28984 else
cristy09b53e12011-10-14 12:47:22 +000028985 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28986$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028987 fi
28988fi
cristy73bd4a52010-10-05 11:24:23 +000028989 if test "$have_djvu" = 'yes'; then
28990 DJVU_DELEGATE_TRUE=
28991 DJVU_DELEGATE_FALSE='#'
28992else
28993 DJVU_DELEGATE_TRUE='#'
28994 DJVU_DELEGATE_FALSE=
28995fi
28996
cristy3ed852e2009-09-05 21:47:34 +000028997
28998
28999
29000#
cristy430a7312010-01-21 20:44:04 +000029001# Set DejaVu font directory.
29002#
29003
29004# Check whether --with-dejavu-font-dir was given.
29005if test "${with_dejavu_font_dir+set}" = set; then :
29006 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29007else
29008 with_dejavu_font_dir='default'
29009fi
29010
29011
29012if test "$with_dejavu_font_dir" != 'default'; then
29013 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29014fi
29015
29016
29017#
cristy3ed852e2009-09-05 21:47:34 +000029018# Check for FFTW delegate library.
29019#
29020
29021# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029022if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029023 withval=$with_fftw; with_fftw=$withval
29024else
29025 with_fftw='yes'
29026fi
29027
29028
29029if test "$with_fftw" != 'yes'; then
29030 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29031fi
29032
cristy81beccd2011-10-03 18:17:24 +000029033have_fftw='no'
29034FFTW_LIBS=''
29035if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029036 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29037$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29039$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029040 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29041$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029042 failed=0
29043 passed=0
29044 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29045if test "x$ac_cv_header_fftw3_h" = xyes; then :
29046 passed=`expr $passed + 1`
29047else
29048 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029049fi
29050
cristy81beccd2011-10-03 18:17:24 +000029051
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29053$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29054if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29055 $as_echo_n "(cached) " >&6
29056else
29057 ac_check_lib_save_LIBS=$LIBS
29058LIBS="-lfftw3 $LIBS"
29059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29060/* end confdefs.h. */
29061
29062/* Override any GCC internal prototype to avoid an error.
29063 Use char because int might match the return type of a GCC
29064 builtin and then its argument prototype would still apply. */
29065#ifdef __cplusplus
29066extern "C"
29067#endif
29068char fftw_execute ();
29069int
29070main ()
29071{
29072return fftw_execute ();
29073 ;
29074 return 0;
29075}
29076_ACEOF
29077if ac_fn_c_try_link "$LINENO"; then :
29078 ac_cv_lib_fftw3_fftw_execute=yes
29079else
29080 ac_cv_lib_fftw3_fftw_execute=no
29081fi
29082rm -f core conftest.err conftest.$ac_objext \
29083 conftest$ac_exeext conftest.$ac_ext
29084LIBS=$ac_check_lib_save_LIBS
29085fi
29086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29087$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29088if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29089 passed=`expr $passed + 1`
29090else
29091 failed=`expr $failed + 1`
29092fi
29093
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29095$as_echo_n "checking if FFTW package is complete... " >&6; }
29096 if test $passed -gt 0; then
29097 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29099$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029100 have_fftw='no (failed tests)'
29101 else
29102 FFTW_LIBS='-lfftw3'
29103 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029104
cristy8b350f62009-11-15 23:12:43 +000029105$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029106
cristy09b53e12011-10-14 12:47:22 +000029107 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29108$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029109 have_fftw='yes'
29110 fi
29111 else
cristy09b53e12011-10-14 12:47:22 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29113$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029114 fi
29115fi
cristy73bd4a52010-10-05 11:24:23 +000029116 if test "$have_fftw" = 'yes'; then
29117 FFTW_DELEGATE_TRUE=
29118 FFTW_DELEGATE_FALSE='#'
29119else
29120 FFTW_DELEGATE_TRUE='#'
29121 FFTW_DELEGATE_FALSE=
29122fi
29123
cristy3ed852e2009-09-05 21:47:34 +000029124
29125
29126
29127#
29128# Check for FlashPIX delegate library.
29129#
29130
29131# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029132if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 withval=$with_fpx; with_fpx=$withval
29134else
29135 with_fpx='yes'
29136fi
29137
29138
29139if test "$with_fpx" != 'yes'; then
29140 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29141fi
29142
29143have_fpx='no'
29144FPX_LIBS=''
29145if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029146 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29147$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029149$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29151$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029152 failed=0
29153 passed=0
29154 ac_ext=cpp
29155ac_cpp='$CXXCPP $CPPFLAGS'
29156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29159
29160
cristy8b350f62009-11-15 23:12:43 +000029161ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029162if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029163 passed=`expr $passed + 1`
29164else
29165 failed=`expr $failed + 1`
29166fi
29167
29168
cristy8b350f62009-11-15 23:12:43 +000029169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029170$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029171if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029172 $as_echo_n "(cached) " >&6
29173else
29174 ac_check_lib_save_LIBS=$LIBS
29175LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029177/* end confdefs.h. */
29178
29179/* Override any GCC internal prototype to avoid an error.
29180 Use char because int might match the return type of a GCC
29181 builtin and then its argument prototype would still apply. */
29182#ifdef __cplusplus
29183extern "C"
29184#endif
29185char FPX_OpenImageByFilename ();
29186int
29187main ()
29188{
29189return FPX_OpenImageByFilename ();
29190 ;
29191 return 0;
29192}
29193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029194if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029195 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29196else
cristy8b350f62009-11-15 23:12:43 +000029197 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029198fi
cristy8b350f62009-11-15 23:12:43 +000029199rm -f core conftest.err conftest.$ac_objext \
29200 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029201LIBS=$ac_check_lib_save_LIBS
29202fi
cristy8b350f62009-11-15 23:12:43 +000029203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029204$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029205if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029206 passed=`expr $passed + 1`
29207else
29208 failed=`expr $failed + 1`
29209fi
29210
29211 ac_ext=c
29212ac_cpp='$CPP $CPPFLAGS'
29213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29215ac_compiler_gnu=$ac_cv_c_compiler_gnu
29216
cristy8b350f62009-11-15 23:12:43 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029218$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29219 if test $passed -gt 0; then
29220 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029221 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29222$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029223 have_fpx='no (failed tests)'
29224 else
29225 FPX_LIBS='-lfpx'
29226
cristy8b350f62009-11-15 23:12:43 +000029227$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029228
cristy09b53e12011-10-14 12:47:22 +000029229 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29230$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029231 have_fpx='yes'
29232 PERLMAINCC="$CXX"
29233 fi
29234 else
cristy09b53e12011-10-14 12:47:22 +000029235 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29236$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029237 fi
29238fi
cristy73bd4a52010-10-05 11:24:23 +000029239 if test "$have_fpx" = 'yes'; then
29240 FPX_DELEGATE_TRUE=
29241 FPX_DELEGATE_FALSE='#'
29242else
29243 FPX_DELEGATE_TRUE='#'
29244 FPX_DELEGATE_FALSE=
29245fi
29246
cristy3ed852e2009-09-05 21:47:34 +000029247
29248
29249
29250#
29251# Check for fontconfig delegate library.
29252#
29253
29254# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029255if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029256 withval=$with_fontconfig; with_fontconfig=$withval
29257else
cristyfc3d0222012-02-07 15:05:57 +000029258 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029259fi
29260
29261
29262if test "$with_fontconfig" != 'yes'; then
29263 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29264fi
29265
29266have_fontconfig='no'
29267FONTCONFIG_CFLAGS=""
29268FONTCONFIG_LIBS=""
29269FONTCONFIG_PKG=""
29270if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029271 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29272$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029273
29274pkg_failed=no
29275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29276$as_echo_n "checking for FONTCONFIG... " >&6; }
29277
29278if test -n "$FONTCONFIG_CFLAGS"; then
29279 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29280 elif test -n "$PKG_CONFIG"; then
29281 if test -n "$PKG_CONFIG" && \
29282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29283 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29284 ac_status=$?
29285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29286 test $ac_status = 0; }; then
29287 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29288else
29289 pkg_failed=yes
29290fi
29291 else
29292 pkg_failed=untried
29293fi
29294if test -n "$FONTCONFIG_LIBS"; then
29295 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29296 elif test -n "$PKG_CONFIG"; then
29297 if test -n "$PKG_CONFIG" && \
29298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29299 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29300 ac_status=$?
29301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29302 test $ac_status = 0; }; then
29303 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29304else
29305 pkg_failed=yes
29306fi
29307 else
29308 pkg_failed=untried
29309fi
29310
29311
29312
29313if test $pkg_failed = yes; then
29314
29315if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29316 _pkg_short_errors_supported=yes
29317else
29318 _pkg_short_errors_supported=no
29319fi
29320 if test $_pkg_short_errors_supported = yes; then
29321 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29322 else
29323 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29324 fi
29325 # Put the nasty error message in config.log where it belongs
29326 echo "$FONTCONFIG_PKG_ERRORS" >&5
29327
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29329$as_echo "no" >&6; }
29330 have_fontconfig=no
29331elif test $pkg_failed = untried; then
29332 have_fontconfig=no
29333else
29334 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29335 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29337$as_echo "yes" >&6; }
29338 have_fontconfig=yes
29339fi
cristy09b53e12011-10-14 12:47:22 +000029340 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29341$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029342fi
29343
29344if test "$have_fontconfig" = 'yes'; then
29345
cristy8b350f62009-11-15 23:12:43 +000029346$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029347
cristyd09bcf92010-03-25 03:04:45 +000029348 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029349 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029350 fi
cristy3ed852e2009-09-05 21:47:34 +000029351fi
29352
cristy73bd4a52010-10-05 11:24:23 +000029353 if test "$have_fontconfig" = 'yes'; then
29354 FONTCONFIG_DELEGATE_TRUE=
29355 FONTCONFIG_DELEGATE_FALSE='#'
29356else
29357 FONTCONFIG_DELEGATE_TRUE='#'
29358 FONTCONFIG_DELEGATE_FALSE=
29359fi
29360
cristy3ed852e2009-09-05 21:47:34 +000029361
29362
29363
29364
29365#
cristy81beccd2011-10-03 18:17:24 +000029366# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029367#
29368
29369# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029370if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029371 withval=$with_freetype; with_freetype=$withval
29372else
29373 with_freetype='yes'
29374fi
29375
29376
cristy81beccd2011-10-03 18:17:24 +000029377
cristy3ed852e2009-09-05 21:47:34 +000029378if test "$with_freetype" != 'yes'; then
29379 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29380fi
29381
cristy81beccd2011-10-03 18:17:24 +000029382have_freetype='no'
29383FREETYPE_LIBS=''
29384if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029385 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29386$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29388$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29390$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029391 failed=0
29392 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029393 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029394 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029395 freetype_config=''
29396 # Allow the user to specify the location of freetype.
29397 if test "$with_freetype" != 'yes'; then
29398 if test -x "${with_freetype}/bin/freetype-config"; then
29399 freetype_config="${with_freetype}/bin/freetype-config"
29400 elif test -x "${with_freetype}"; then
29401 freetype_config=${with_freetype}
29402 fi
29403 fi
29404 if test -z "$freetype_config"; then
29405 # Extract the first word of "freetype-config", so it can be a program name with args.
29406set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29408$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029409if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029410 $as_echo_n "(cached) " >&6
29411else
cristy98ca0f52011-10-08 23:19:10 +000029412 case $freetype_config in
29413 [\\/]* | ?:[\\/]*)
29414 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29415 ;;
29416 *)
29417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029418for as_dir in $PATH
29419do
29420 IFS=$as_save_IFS
29421 test -z "$as_dir" && as_dir=.
29422 for ac_exec_ext in '' $ac_executable_extensions; do
29423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000029424 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29426 break 2
29427 fi
29428done
29429 done
29430IFS=$as_save_IFS
29431
cristy98ca0f52011-10-08 23:19:10 +000029432 ;;
29433esac
cristy81beccd2011-10-03 18:17:24 +000029434fi
cristy98ca0f52011-10-08 23:19:10 +000029435freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029436if test -n "$freetype_config"; then
29437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29438$as_echo "$freetype_config" >&6; }
29439else
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29441$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029442fi
29443
cristy98ca0f52011-10-08 23:19:10 +000029444 fi
29445 if test -n "$freetype_config"; then
29446 freetype_prefix=`${freetype_config} --prefix`
29447 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29448 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29449 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029450 fi
29451
29452 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029454$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29455if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29456 $as_echo_n "(cached) " >&6
29457else
29458 ac_check_lib_save_LIBS=$LIBS
29459LIBS="-lfreetype $LIBS"
29460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29461/* end confdefs.h. */
29462
29463/* Override any GCC internal prototype to avoid an error.
29464 Use char because int might match the return type of a GCC
29465 builtin and then its argument prototype would still apply. */
29466#ifdef __cplusplus
29467extern "C"
29468#endif
29469char FT_Init_FreeType ();
29470int
29471main ()
29472{
29473return FT_Init_FreeType ();
29474 ;
29475 return 0;
29476}
29477_ACEOF
29478if ac_fn_c_try_link "$LINENO"; then :
29479 ac_cv_lib_freetype_FT_Init_FreeType=yes
29480else
29481 ac_cv_lib_freetype_FT_Init_FreeType=no
29482fi
29483rm -f core conftest.err conftest.$ac_objext \
29484 conftest$ac_exeext conftest.$ac_ext
29485LIBS=$ac_check_lib_save_LIBS
29486fi
29487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29488$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29489if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29490 FREETYPE_LIBS='-lfreetype'
29491fi
29492
cristy98ca0f52011-10-08 23:19:10 +000029493 if test "$FREETYPE_LIBS" != ''; then
29494 passed=`expr $passed + 1`
29495 else
29496 failed=`expr $failed + 1`
29497 LDFLAGS="$PERSIST_LDFLAGS"
29498 fi
cristy81beccd2011-10-03 18:17:24 +000029499 fi
29500
29501 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29502if test "x$ac_cv_header_ft2build_h" = xyes; then :
29503 FT2BUILD_H='#include <ft2build.h>'
29504else
29505 ft2build=''
29506fi
29507
29508
29509 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29510"
29511if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29512 have_freetype_h='yes'
29513else
29514 have_freetype_h='no'
29515fi
29516
29517
cristy98ca0f52011-10-08 23:19:10 +000029518 if test "$have_freetype_h" = 'yes'; then
29519 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029520 else
cristy98ca0f52011-10-08 23:19:10 +000029521 failed=`expr $failed + 1`
29522 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029523 fi
29524
29525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29526$as_echo_n "checking if FreeType package is complete... " >&6; }
29527 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029528 if test $failed -gt 0; then
29529 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29531$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029532 have_freetype='no (failed tests)'
29533 else
29534 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029535
cristy8b350f62009-11-15 23:12:43 +000029536$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029537
cristy98ca0f52011-10-08 23:19:10 +000029538 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029539
29540$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29541
cristy81beccd2011-10-03 18:17:24 +000029542 fi
cristy09b53e12011-10-14 12:47:22 +000029543 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29544$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029545 have_freetype='yes'
29546 fi
cristy81beccd2011-10-03 18:17:24 +000029547 else
cristy09b53e12011-10-14 12:47:22 +000029548 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29549$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029550 fi
29551fi
cristy73bd4a52010-10-05 11:24:23 +000029552 if test "$have_freetype" = 'yes'; then
29553 FREETYPE_DELEGATE_TRUE=
29554 FREETYPE_DELEGATE_FALSE='#'
29555else
29556 FREETYPE_DELEGATE_TRUE='#'
29557 FREETYPE_DELEGATE_FALSE=
29558fi
29559
cristy3ed852e2009-09-05 21:47:34 +000029560
29561
29562
cristy3ed852e2009-09-05 21:47:34 +000029563#
29564# Check for Ghostscript library or framework.
29565#
29566# Test for iapi.h & test for gsapi_new_instance in -lgs
29567# or -framework Ghostscript
29568
29569
29570# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029571if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029572 withval=$with_gslib; with_gslib=$withval
29573else
29574 with_gslib='no'
29575fi
29576
29577
cristyb7931f12009-09-25 10:22:21 +000029578gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029579if test "$with_gslib" != 'yes'; then
29580 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29581fi
29582
29583have_gslib='no'
29584GS_LIBS=''
29585if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029586 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29587$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029589$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029590 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29591$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029592 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029593 failed=0
29594 passed=0
cristy8b350f62009-11-15 23:12:43 +000029595 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 +000029596if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029597 passed=`expr $passed + 1`
29598else
29599 failed=`expr $failed + 1`
29600fi
29601
29602
cristy8b350f62009-11-15 23:12:43 +000029603 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 +000029604if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029605 passed=`expr $passed + 1`
29606else
29607 failed=`expr $failed + 1`
29608fi
29609
29610
cristy73bd4a52010-10-05 11:24:23 +000029611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29612$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029613if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029614 $as_echo_n "(cached) " >&6
29615else
29616 ac_check_framework_save_LIBS=$LIBS
29617LIBS="-framework Ghostscript $LIBS"
29618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29619/* end confdefs.h. */
29620
29621/* Override any GCC internal prototype to avoid an error.
29622 Use char because int might match the return type of a GCC
29623 builtin and then its argument prototype would still apply. */
29624#ifdef __cplusplus
29625extern "C"
29626#endif
29627char gsapi_new_instance ();
29628int
29629main ()
29630{
29631return gsapi_new_instance ();
29632 ;
29633 return 0;
29634}
29635_ACEOF
29636if ac_fn_c_try_link "$LINENO"; then :
29637 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29638else
29639 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29640fi
29641rm -f core conftest.err conftest.$ac_objext \
29642 conftest$ac_exeext conftest.$ac_ext
29643LIBS=$ac_check_framework_save_LIBS
29644fi
29645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29646$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29647if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29648 framework=`expr $framework + 1`
29649else
29650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029651$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029652if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029653 $as_echo_n "(cached) " >&6
29654else
29655 ac_check_lib_save_LIBS=$LIBS
29656LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029658/* end confdefs.h. */
29659
29660/* Override any GCC internal prototype to avoid an error.
29661 Use char because int might match the return type of a GCC
29662 builtin and then its argument prototype would still apply. */
29663#ifdef __cplusplus
29664extern "C"
29665#endif
29666char gsapi_new_instance ();
29667int
29668main ()
29669{
29670return gsapi_new_instance ();
29671 ;
29672 return 0;
29673}
29674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029676 ac_cv_lib_gs_gsapi_new_instance=yes
29677else
cristy8b350f62009-11-15 23:12:43 +000029678 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029679fi
cristy8b350f62009-11-15 23:12:43 +000029680rm -f core conftest.err conftest.$ac_objext \
29681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029682LIBS=$ac_check_lib_save_LIBS
29683fi
cristy8b350f62009-11-15 23:12:43 +000029684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029685$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029686if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029687 passed=`expr $passed + 1`
29688else
29689 failed=`expr $failed + 1`
29690fi
cristy73bd4a52010-10-05 11:24:23 +000029691
29692fi
cristy8b350f62009-11-15 23:12:43 +000029693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029694$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29695 if test $passed -gt 0; then
29696 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029697 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29698$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029699 have_gslib='no (failed tests)'
29700 else
29701 if test $framework -gt 0; then
29702 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029703 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029704 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29705$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029706 else
cristy09b53e12011-10-14 12:47:22 +000029707 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29708$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029709 GS_LIBS='-lgs'
29710 fi
29711 LIBS="$GS_LIBS $LIBS"
29712
cristy8b350f62009-11-15 23:12:43 +000029713$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029714
29715 have_gslib='yes'
29716 fi
29717 else
cristy09b53e12011-10-14 12:47:22 +000029718 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29719$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029720 fi
29721fi
cristy73bd4a52010-10-05 11:24:23 +000029722 if test "$have_gslib" = 'yes'; then
29723 GS_DELEGATE_TRUE=
29724 GS_DELEGATE_FALSE='#'
29725else
29726 GS_DELEGATE_TRUE='#'
29727 GS_DELEGATE_FALSE=
29728fi
29729
cristy3ed852e2009-09-05 21:47:34 +000029730
29731
29732# Set default font search path
29733
29734# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029735if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029736 withval=$with_fontpath; with_fontpath=$withval
29737else
29738 with_fontpath=''
29739fi
29740
29741
29742if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29743 with_fontpath=''
29744else
29745
29746cat >>confdefs.h <<_ACEOF
29747#define MAGICK_FONT_PATH "$with_fontpath"
29748_ACEOF
29749
29750fi
29751if test "$with_fontpath=" != ''; then
29752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29753fi
29754
29755# Set Ghostscript font directory
29756
29757# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029758if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029759 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29760else
29761 with_gs_font_dir='default'
29762fi
29763
29764
29765if test "$with_gs_font_dir" != 'default'; then
29766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29767fi
29768
29769
29770#
29771# Check for GVC delegate library.
29772#
29773
29774# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029775if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029776 withval=$with_gvc; with_gvc=$withval
29777else
29778 with_gvc='yes'
29779fi
29780
29781
29782if test "$with_gvc" != 'yes'; then
29783 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29784fi
29785
29786GVC_PKG=""
29787if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029788 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29789$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029790
29791pkg_failed=no
29792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29793$as_echo_n "checking for GVC... " >&6; }
29794
29795if test -n "$GVC_CFLAGS"; then
29796 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29797 elif test -n "$PKG_CONFIG"; then
29798 if test -n "$PKG_CONFIG" && \
29799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29800 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29801 ac_status=$?
29802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29803 test $ac_status = 0; }; then
29804 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29805else
29806 pkg_failed=yes
29807fi
29808 else
29809 pkg_failed=untried
29810fi
29811if test -n "$GVC_LIBS"; then
29812 pkg_cv_GVC_LIBS="$GVC_LIBS"
29813 elif test -n "$PKG_CONFIG"; then
29814 if test -n "$PKG_CONFIG" && \
29815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29816 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29817 ac_status=$?
29818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29819 test $ac_status = 0; }; then
29820 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29821else
29822 pkg_failed=yes
29823fi
29824 else
29825 pkg_failed=untried
29826fi
29827
29828
29829
29830if test $pkg_failed = yes; then
29831
29832if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29833 _pkg_short_errors_supported=yes
29834else
29835 _pkg_short_errors_supported=no
29836fi
29837 if test $_pkg_short_errors_supported = yes; then
29838 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29839 else
29840 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29841 fi
29842 # Put the nasty error message in config.log where it belongs
29843 echo "$GVC_PKG_ERRORS" >&5
29844
29845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29846$as_echo "no" >&6; }
29847 have_gvc=no
29848elif test $pkg_failed = untried; then
29849 have_gvc=no
29850else
29851 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29852 GVC_LIBS=$pkg_cv_GVC_LIBS
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29854$as_echo "yes" >&6; }
29855 have_gvc=yes
29856fi
cristy09b53e12011-10-14 12:47:22 +000029857 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29858$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029859fi
29860
29861if test "$have_gvc" = 'yes'; then
29862
cristy8b350f62009-11-15 23:12:43 +000029863$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029864
29865 if test "$with_modules" = 'no'; then
29866 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29867 fi
29868fi
29869
cristy73bd4a52010-10-05 11:24:23 +000029870 if test "$have_gvc" = 'yes'; then
29871 GVC_DELEGATE_TRUE=
29872 GVC_DELEGATE_FALSE='#'
29873else
29874 GVC_DELEGATE_TRUE='#'
29875 GVC_DELEGATE_FALSE=
29876fi
29877
cristy3ed852e2009-09-05 21:47:34 +000029878
29879
29880
29881
29882#
29883# Check for JBIG delegate library.
29884#
29885
29886
29887# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029888if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029889 withval=$with_jbig; with_jbig=$withval
29890else
29891 with_jbig='yes'
29892fi
29893
29894
29895have_jbig='no'
29896JBIG_LIBS=''
29897if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029898 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29899$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029901$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29903$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029904 failed=0
29905 passed=0
cristy8b350f62009-11-15 23:12:43 +000029906 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029907if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029908 passed=`expr $passed + 1`
29909else
29910 failed=`expr $failed + 1`
29911fi
29912
29913
cristy8b350f62009-11-15 23:12:43 +000029914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029915$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029916if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029917 $as_echo_n "(cached) " >&6
29918else
29919 ac_check_lib_save_LIBS=$LIBS
29920LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029922/* end confdefs.h. */
29923
29924/* Override any GCC internal prototype to avoid an error.
29925 Use char because int might match the return type of a GCC
29926 builtin and then its argument prototype would still apply. */
29927#ifdef __cplusplus
29928extern "C"
29929#endif
29930char jbg_dec_init ();
29931int
29932main ()
29933{
29934return jbg_dec_init ();
29935 ;
29936 return 0;
29937}
29938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029940 ac_cv_lib_jbig_jbg_dec_init=yes
29941else
cristy8b350f62009-11-15 23:12:43 +000029942 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029943fi
cristy8b350f62009-11-15 23:12:43 +000029944rm -f core conftest.err conftest.$ac_objext \
29945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029946LIBS=$ac_check_lib_save_LIBS
29947fi
cristy8b350f62009-11-15 23:12:43 +000029948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029949$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029950if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029951 passed=`expr $passed + 1`
29952else
29953 failed=`expr $failed + 1`
29954fi
29955
cristy8b350f62009-11-15 23:12:43 +000029956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029957$as_echo_n "checking if JBIG package is complete... " >&6; }
29958 if test $passed -gt 0; then
29959 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029960 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29961$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029962 have_jbig='no (failed tests)'
29963 else
29964 JBIG_LIBS='-ljbig'
29965 LIBS="$JBIG_LIBS $LIBS"
29966
cristy8b350f62009-11-15 23:12:43 +000029967$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029968
cristy09b53e12011-10-14 12:47:22 +000029969 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29970$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029971 have_jbig='yes'
29972 fi
29973 else
cristy09b53e12011-10-14 12:47:22 +000029974 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29975$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029976 fi
29977fi
cristy73bd4a52010-10-05 11:24:23 +000029978 if test "$have_jbig" = 'yes'; then
29979 JBIG_DELEGATE_TRUE=
29980 JBIG_DELEGATE_FALSE='#'
29981else
29982 JBIG_DELEGATE_TRUE='#'
29983 JBIG_DELEGATE_FALSE=
29984fi
29985
cristy3ed852e2009-09-05 21:47:34 +000029986
29987
29988
29989#
29990# Check for JPEG delegate library.
29991#
29992
29993# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029994if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029995 withval=$with_jpeg; with_jpeg=$withval
29996else
29997 with_jpeg='yes'
29998fi
29999
30000
30001if test "$with_jpeg" != 'yes'; then
30002 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30003fi
30004
30005have_jpeg='no'
30006JPEG_LIBS=''
30007if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030008 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30009$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030011$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030012 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30013$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030014 failed=0
30015 passed=0
cristy8b350f62009-11-15 23:12:43 +000030016 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030017if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030018 passed=`expr $passed + 1`
30019else
30020 failed=`expr $failed + 1`
30021fi
30022
30023
cristy8b350f62009-11-15 23:12:43 +000030024 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030025if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030026 passed=`expr $passed + 1`
30027else
30028 failed=`expr $failed + 1`
30029fi
30030
30031
cristy8b350f62009-11-15 23:12:43 +000030032 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030033if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030034 passed=`expr $passed + 1`
30035else
30036 failed=`expr $failed + 1`
30037fi
30038
30039
cristy8b350f62009-11-15 23:12:43 +000030040 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030041if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030042 passed=`expr $passed + 1`
30043else
30044 failed=`expr $failed + 1`
30045fi
30046
30047
cristy8b350f62009-11-15 23:12:43 +000030048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030049$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030050if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030051 $as_echo_n "(cached) " >&6
30052else
30053 ac_check_lib_save_LIBS=$LIBS
30054LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030056/* end confdefs.h. */
30057
30058/* Override any GCC internal prototype to avoid an error.
30059 Use char because int might match the return type of a GCC
30060 builtin and then its argument prototype would still apply. */
30061#ifdef __cplusplus
30062extern "C"
30063#endif
30064char jpeg_read_header ();
30065int
30066main ()
30067{
30068return jpeg_read_header ();
30069 ;
30070 return 0;
30071}
30072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030073if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030074 ac_cv_lib_jpeg_jpeg_read_header=yes
30075else
cristy8b350f62009-11-15 23:12:43 +000030076 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030077fi
cristy8b350f62009-11-15 23:12:43 +000030078rm -f core conftest.err conftest.$ac_objext \
30079 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030080LIBS=$ac_check_lib_save_LIBS
30081fi
cristy8b350f62009-11-15 23:12:43 +000030082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030083$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030084if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030085 passed=`expr $passed + 1`
30086else
30087 failed=`expr $failed + 1`
30088fi
30089
30090
30091# Test for compatible JPEG library
30092if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030094$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030095if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030096 $as_echo_n "(cached) " >&6
30097else
cristy8b350f62009-11-15 23:12:43 +000030098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030099/* end confdefs.h. */
30100#include <stdio.h>
30101#include <stdlib.h>
30102#include <jpeglib.h>
30103
30104int
30105main ()
30106{
30107
30108#if JPEG_LIB_VERSION < 62
30109#error IJG JPEG library must be version 6b or newer!
30110#endif
30111return 0;
30112
30113 ;
30114 return 0;
30115}
30116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030117if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030118 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30119else
cristy8b350f62009-11-15 23:12:43 +000030120 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030121fi
cristy3ed852e2009-09-05 21:47:34 +000030122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30123fi
cristy8b350f62009-11-15 23:12:43 +000030124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030125$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30126fi
cristy8b350f62009-11-15 23:12:43 +000030127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128$as_echo_n "checking if JPEG package is complete... " >&6; }
30129 if test $passed -gt 0; then
30130 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030131 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30132$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030133 have_jpeg='no (failed tests)'
30134 else
30135 JPEG_LIBS='-ljpeg'
30136 LIBS="$JPEG_LIBS $LIBS"
30137
cristy8b350f62009-11-15 23:12:43 +000030138$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030139
cristy09b53e12011-10-14 12:47:22 +000030140 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30141$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030142 have_jpeg='yes'
30143 fi
30144 else
cristy09b53e12011-10-14 12:47:22 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30146$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030147 fi
30148fi
cristy73bd4a52010-10-05 11:24:23 +000030149 if test "$have_jpeg" = 'yes'; then
30150 JPEG_DELEGATE_TRUE=
30151 JPEG_DELEGATE_FALSE='#'
30152else
30153 JPEG_DELEGATE_TRUE='#'
30154 JPEG_DELEGATE_FALSE=
30155fi
30156
cristy3ed852e2009-09-05 21:47:34 +000030157
30158
30159
30160#
30161# Check for JPEG Version 2 delegate library.
30162#
30163
30164# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030165if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030166 withval=$with_jp2; with_jp2=$withval
30167else
30168 with_jp2='yes'
30169fi
30170
30171
30172if test "$with_jp2" != 'yes'; then
30173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30174fi
30175
30176have_jp2='no'
30177JP2_LIBS=''
30178if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030179 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30180$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030182$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30184$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030185 failed=0
30186 passed=0
cristy8b350f62009-11-15 23:12:43 +000030187 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 +000030188if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030189 passed=`expr $passed + 1`
30190else
30191 failed=`expr $failed + 1`
30192fi
30193
30194
cristy8b350f62009-11-15 23:12:43 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030196$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030197if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030198 $as_echo_n "(cached) " >&6
30199else
30200 ac_check_lib_save_LIBS=$LIBS
30201LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030203/* end confdefs.h. */
30204
30205/* Override any GCC internal prototype to avoid an error.
30206 Use char because int might match the return type of a GCC
30207 builtin and then its argument prototype would still apply. */
30208#ifdef __cplusplus
30209extern "C"
30210#endif
30211char jas_stream_fopen ();
30212int
30213main ()
30214{
30215return jas_stream_fopen ();
30216 ;
30217 return 0;
30218}
30219_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030220if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030221 ac_cv_lib_jasper_jas_stream_fopen=yes
30222else
cristy8b350f62009-11-15 23:12:43 +000030223 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030224fi
cristy8b350f62009-11-15 23:12:43 +000030225rm -f core conftest.err conftest.$ac_objext \
30226 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030227LIBS=$ac_check_lib_save_LIBS
30228fi
cristy8b350f62009-11-15 23:12:43 +000030229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030230$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030231if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030232 passed=`expr $passed + 1`
30233else
30234 failed=`expr $failed + 1`
30235fi
30236
cristy8b350f62009-11-15 23:12:43 +000030237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030238$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30239 if test $passed -gt 0; then
30240 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030241 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30242$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030243 have_jp2='no (failed tests)'
30244 else
30245 JP2_LIBS='-ljasper'
30246 LIBS="$JP2_LIBS $LIBS"
30247
cristy8b350f62009-11-15 23:12:43 +000030248$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030249
cristy09b53e12011-10-14 12:47:22 +000030250 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30251$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030252 have_jp2='yes'
30253 fi
30254 else
cristy09b53e12011-10-14 12:47:22 +000030255 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30256$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030257 fi
30258fi
cristy73bd4a52010-10-05 11:24:23 +000030259 if test "$have_jp2" = 'yes'; then
30260 JP2_DELEGATE_TRUE=
30261 JP2_DELEGATE_FALSE='#'
30262else
30263 JP2_DELEGATE_TRUE='#'
30264 JP2_DELEGATE_FALSE=
30265fi
30266
cristy3ed852e2009-09-05 21:47:34 +000030267
30268
30269
30270#
30271# Check for LCMS delegate library.
30272#
cristy71203402010-06-18 13:12:03 +000030273# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030274
30275# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030276if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030277 withval=$with_lcms; with_lcms=$withval
30278else
30279 with_lcms='yes'
30280fi
30281
cristy71203402010-06-18 13:12:03 +000030282if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030283 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30284fi
30285
cristy71203402010-06-18 13:12:03 +000030286# Disable LCMS2.
30287
30288# Check whether --with-lcms2 was given.
30289if test "${with_lcms2+set}" = set; then :
30290 withval=$with_lcms2; with_lcms2=$withval
30291else
30292 with_lcms2='yes'
30293fi
30294
30295if test "$with_lcms2" != 'yes' ; then
30296 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30297fi
30298
30299have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030300LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030301if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030302 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30303$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30305$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030306 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30307$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030308 failed=0
30309 passed=0
30310 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030311
30312 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030313 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030314if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030315 have_lcms_header='yes'
30316fi
30317
30318
30319 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030320
30321$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30322
cristy71203402010-06-18 13:12:03 +000030323 passed=`expr $passed + 1`
30324 fi
30325
30326 # Check for <lcms2/lcms2.h)
30327 if test "$have_lcms_header" != 'yes'; then
30328 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 +000030329if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030330 have_lcms_header='yes'
30331fi
30332
30333
cristy71203402010-06-18 13:12:03 +000030334 if test "$have_lcms_header" = 'yes'; then
30335 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030336
cristy71203402010-06-18 13:12:03 +000030337$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030338
cristy71203402010-06-18 13:12:03 +000030339 fi
cristyd09bcf92010-03-25 03:04:45 +000030340 fi
cristy71203402010-06-18 13:12:03 +000030341
30342 # Failed to find lcms header?
30343 if test "$have_lcms_header" != 'yes'; then
30344 failed=`expr $failed + 1`
30345 fi
30346
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30348$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030349if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030350 $as_echo_n "(cached) " >&6
30351else
30352 ac_check_lib_save_LIBS=$LIBS
30353LIBS="-llcms2 $LIBS"
30354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30355/* end confdefs.h. */
30356
30357/* Override any GCC internal prototype to avoid an error.
30358 Use char because int might match the return type of a GCC
30359 builtin and then its argument prototype would still apply. */
30360#ifdef __cplusplus
30361extern "C"
30362#endif
cristy71203402010-06-18 13:12:03 +000030363char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030364int
30365main ()
30366{
cristy71203402010-06-18 13:12:03 +000030367return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030368 ;
30369 return 0;
30370}
30371_ACEOF
30372if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030373 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030374else
cristy71203402010-06-18 13:12:03 +000030375 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030376fi
30377rm -f core conftest.err conftest.$ac_objext \
30378 conftest$ac_exeext conftest.$ac_ext
30379LIBS=$ac_check_lib_save_LIBS
30380fi
cristy71203402010-06-18 13:12:03 +000030381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30382$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030383if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030384 passed=`expr $passed + 1`
30385else
30386 failed=`expr $failed + 1`
30387fi
30388
cristy71203402010-06-18 13:12:03 +000030389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30390$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030391 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030392 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030393 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30394$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030395 have_lcms2='no (failed tests)'
30396 else
30397 LCMS_LIBS='-llcms2'
30398 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030399 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30400$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030401 have_lcms2='yes'
30402 fi
cristyd09bcf92010-03-25 03:04:45 +000030403 else
cristy09b53e12011-10-14 12:47:22 +000030404 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30405$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030406 fi
30407fi
30408
cristy71203402010-06-18 13:12:03 +000030409#
30410# Check for LCMS v1 (1.11 or later)
30411#
30412if test $have_lcms2 = 'yes'; then
30413 with_lcms='no'
30414fi
30415
30416have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030417if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030418 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30419$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30421$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30423$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030424 failed=0
30425 passed=0
30426 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030427
30428 # Check for <lcms.h>
30429 if test "$have_lcms_header" != 'yes'; then
30430 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030431if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030432 have_lcms_header='yes'
30433fi
30434
30435
cristy71203402010-06-18 13:12:03 +000030436 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030437 passed=`expr $passed + 1`
30438
cristy8b350f62009-11-15 23:12:43 +000030439$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030440
cristy71203402010-06-18 13:12:03 +000030441 fi
30442 fi
30443
30444 # Check for <lcms/lcms.h>
30445 if test "$have_lcms_header" != 'yes'; then
30446 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 +000030447if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030448 have_lcms_header='yes'
30449fi
30450
30451
cristy71203402010-06-18 13:12:03 +000030452 if test "$have_lcms_header" = 'yes'; then
30453 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030454
cristy8b350f62009-11-15 23:12:43 +000030455$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030456
cristy71203402010-06-18 13:12:03 +000030457 fi
cristy3ed852e2009-09-05 21:47:34 +000030458 fi
cristy71203402010-06-18 13:12:03 +000030459
30460 # Failed to find lcms header?
30461 if test "$have_lcms_header" != 'yes'; then
30462 failed=`expr $failed + 1`
30463 fi
30464
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30466$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030467if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030468 $as_echo_n "(cached) " >&6
30469else
30470 ac_check_lib_save_LIBS=$LIBS
30471LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030473/* end confdefs.h. */
30474
30475/* Override any GCC internal prototype to avoid an error.
30476 Use char because int might match the return type of a GCC
30477 builtin and then its argument prototype would still apply. */
30478#ifdef __cplusplus
30479extern "C"
30480#endif
cristy71203402010-06-18 13:12:03 +000030481char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030482int
30483main ()
30484{
cristy71203402010-06-18 13:12:03 +000030485return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030486 ;
30487 return 0;
30488}
30489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030490if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030491 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030492else
cristy71203402010-06-18 13:12:03 +000030493 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030494fi
cristy8b350f62009-11-15 23:12:43 +000030495rm -f core conftest.err conftest.$ac_objext \
30496 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030497LIBS=$ac_check_lib_save_LIBS
30498fi
cristy71203402010-06-18 13:12:03 +000030499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30500$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030501if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030502 passed=`expr $passed + 1`
30503else
30504 failed=`expr $failed + 1`
30505fi
30506
cristy8b350f62009-11-15 23:12:43 +000030507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030508$as_echo_n "checking if LCMS package is complete... " >&6; }
30509 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030510 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30512$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030513 have_lcms='no (failed tests)'
30514 else
30515 LCMS_LIBS='-llcms'
30516 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030517 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30518$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030519 have_lcms='yes'
30520 fi
cristy3ed852e2009-09-05 21:47:34 +000030521 else
cristy09b53e12011-10-14 12:47:22 +000030522 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30523$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030524 fi
30525fi
cristy71203402010-06-18 13:12:03 +000030526
cristy73bd4a52010-10-05 11:24:23 +000030527 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30528 LCMS_DELEGATE_TRUE=
30529 LCMS_DELEGATE_FALSE='#'
30530else
30531 LCMS_DELEGATE_TRUE='#'
30532 LCMS_DELEGATE_FALSE=
30533fi
30534
cristy71203402010-06-18 13:12:03 +000030535if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30536
30537$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30538
30539fi
30540
cristy3ed852e2009-09-05 21:47:34 +000030541
30542
30543
30544#
30545# Check for the LQR (Liquid Rescale) delegate library.
30546#
30547
30548# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030549if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030550 withval=$with_lqr; with_lqr=$withval
30551else
30552 with_lqr='yes'
30553fi
30554
30555
30556if test "$with_lqr" != 'yes'; then
30557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30558fi
30559
30560have_lqr='no'
30561LQR_CFLAGS=""
30562LQR_LIBS=""
30563LQR_PKG=""
30564if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030565 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30566$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030567
30568pkg_failed=no
30569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30570$as_echo_n "checking for LQR... " >&6; }
30571
30572if test -n "$LQR_CFLAGS"; then
30573 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30574 elif test -n "$PKG_CONFIG"; then
30575 if test -n "$PKG_CONFIG" && \
30576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30577 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30578 ac_status=$?
30579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30580 test $ac_status = 0; }; then
30581 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30582else
30583 pkg_failed=yes
30584fi
30585 else
30586 pkg_failed=untried
30587fi
30588if test -n "$LQR_LIBS"; then
30589 pkg_cv_LQR_LIBS="$LQR_LIBS"
30590 elif test -n "$PKG_CONFIG"; then
30591 if test -n "$PKG_CONFIG" && \
30592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30593 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30594 ac_status=$?
30595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30596 test $ac_status = 0; }; then
30597 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30598else
30599 pkg_failed=yes
30600fi
30601 else
30602 pkg_failed=untried
30603fi
30604
30605
30606
30607if test $pkg_failed = yes; then
30608
30609if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30610 _pkg_short_errors_supported=yes
30611else
30612 _pkg_short_errors_supported=no
30613fi
30614 if test $_pkg_short_errors_supported = yes; then
30615 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30616 else
30617 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30618 fi
30619 # Put the nasty error message in config.log where it belongs
30620 echo "$LQR_PKG_ERRORS" >&5
30621
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30623$as_echo "no" >&6; }
30624 have_lqr=no
30625elif test $pkg_failed = untried; then
30626 have_lqr=no
30627else
30628 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30629 LQR_LIBS=$pkg_cv_LQR_LIBS
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30631$as_echo "yes" >&6; }
30632 have_lqr=yes
30633fi
cristy09b53e12011-10-14 12:47:22 +000030634 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30635$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030636fi
30637
30638if test "$have_lqr" = 'yes'; then
30639
cristy8b350f62009-11-15 23:12:43 +000030640$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030641
30642 CFLAGS="$LQR_CFLAGS $CFLAGS"
30643fi
30644
cristy73bd4a52010-10-05 11:24:23 +000030645 if test "$have_lqr" = 'yes'; then
30646 LQR_DELEGATE_TRUE=
30647 LQR_DELEGATE_FALSE='#'
30648else
30649 LQR_DELEGATE_TRUE='#'
30650 LQR_DELEGATE_FALSE=
30651fi
30652
cristy3ed852e2009-09-05 21:47:34 +000030653
30654
30655
30656
cristy81beccd2011-10-03 18:17:24 +000030657# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030658
30659# Check whether --with-lzma was given.
30660if test "${with_lzma+set}" = set; then :
30661 withval=$with_lzma; with_lzma=$withval
30662else
30663 with_lzma='yes'
30664fi
30665
cristy81beccd2011-10-03 18:17:24 +000030666if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030667 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30668fi
30669
cristyb94e5002011-11-14 13:20:10 +000030670LZMA_PKG=""
30671if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30673$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030674
30675pkg_failed=no
30676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030677$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030678
30679if test -n "$LZMA_CFLAGS"; then
30680 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30681 elif test -n "$PKG_CONFIG"; then
30682 if test -n "$PKG_CONFIG" && \
30683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30684 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30685 ac_status=$?
30686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30687 test $ac_status = 0; }; then
30688 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30689else
30690 pkg_failed=yes
30691fi
30692 else
30693 pkg_failed=untried
30694fi
30695if test -n "$LZMA_LIBS"; then
30696 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30697 elif test -n "$PKG_CONFIG"; then
30698 if test -n "$PKG_CONFIG" && \
30699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30700 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30701 ac_status=$?
30702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30703 test $ac_status = 0; }; then
30704 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30705else
30706 pkg_failed=yes
30707fi
30708 else
30709 pkg_failed=untried
30710fi
30711
30712
30713
30714if test $pkg_failed = yes; then
30715
30716if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30717 _pkg_short_errors_supported=yes
30718else
30719 _pkg_short_errors_supported=no
30720fi
30721 if test $_pkg_short_errors_supported = yes; then
30722 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30723 else
30724 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30725 fi
30726 # Put the nasty error message in config.log where it belongs
30727 echo "$LZMA_PKG_ERRORS" >&5
30728
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730$as_echo "no" >&6; }
30731 have_lzma=no
30732elif test $pkg_failed = untried; then
30733 have_lzma=no
30734else
30735 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30736 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30738$as_echo "yes" >&6; }
30739 have_lzma=yes
30740fi
30741 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030742$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030743fi
30744
cristyb94e5002011-11-14 13:20:10 +000030745if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030746
30747$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30748
cristyb94e5002011-11-14 13:20:10 +000030749 if test "$with_modules" = 'no'; then
30750 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030751 fi
cristyfbb0ef02010-12-19 02:32:11 +000030752fi
cristyb94e5002011-11-14 13:20:10 +000030753
cristyfbb0ef02010-12-19 02:32:11 +000030754 if test "$have_lzma" = 'yes'; then
30755 LZMA_DELEGATE_TRUE=
30756 LZMA_DELEGATE_FALSE='#'
30757else
30758 LZMA_DELEGATE_TRUE='#'
30759 LZMA_DELEGATE_FALSE=
30760fi
30761
30762
30763
30764
cristyb94e5002011-11-14 13:20:10 +000030765
cristy3ed852e2009-09-05 21:47:34 +000030766#
30767# Check for the OpenEXR delegate library.
30768#
30769
30770# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030771if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030772 withval=$with_openexr; with_openexr=$withval
30773else
30774 with_openexr='yes'
30775fi
30776
30777
30778if test "$with_openexr" != 'yes'; then
30779 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30780fi
30781
30782have_openexr='no'
30783OPENEXR_CFLAGS=""
30784OPENEXR_LIBS=""
30785OPENEXR_PKG=""
30786if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030787 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30788$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030789
30790pkg_failed=no
30791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30792$as_echo_n "checking for OPENEXR... " >&6; }
30793
30794if test -n "$OPENEXR_CFLAGS"; then
30795 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30796 elif test -n "$PKG_CONFIG"; then
30797 if test -n "$PKG_CONFIG" && \
30798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30799 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30800 ac_status=$?
30801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30802 test $ac_status = 0; }; then
30803 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30804else
30805 pkg_failed=yes
30806fi
30807 else
30808 pkg_failed=untried
30809fi
30810if test -n "$OPENEXR_LIBS"; then
30811 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30812 elif test -n "$PKG_CONFIG"; then
30813 if test -n "$PKG_CONFIG" && \
30814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30815 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30816 ac_status=$?
30817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30818 test $ac_status = 0; }; then
30819 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30820else
30821 pkg_failed=yes
30822fi
30823 else
30824 pkg_failed=untried
30825fi
30826
30827
30828
30829if test $pkg_failed = yes; then
30830
30831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30832 _pkg_short_errors_supported=yes
30833else
30834 _pkg_short_errors_supported=no
30835fi
30836 if test $_pkg_short_errors_supported = yes; then
30837 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30838 else
30839 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30840 fi
30841 # Put the nasty error message in config.log where it belongs
30842 echo "$OPENEXR_PKG_ERRORS" >&5
30843
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30845$as_echo "no" >&6; }
30846 have_openexr=no
30847elif test $pkg_failed = untried; then
30848 have_openexr=no
30849else
30850 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30851 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30853$as_echo "yes" >&6; }
30854 have_openexr=yes
30855fi
cristy09b53e12011-10-14 12:47:22 +000030856 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30857$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030858fi
30859
30860if test "$have_openexr" = 'yes'; then
30861
cristy8b350f62009-11-15 23:12:43 +000030862$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030863
30864 if test "$with_modules" = 'no'; then
30865 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30866 fi
30867fi
30868
cristy73bd4a52010-10-05 11:24:23 +000030869 if test "$have_openexr" = 'yes'; then
30870 OPENEXR_DELEGATE_TRUE=
30871 OPENEXR_DELEGATE_FALSE='#'
30872else
30873 OPENEXR_DELEGATE_TRUE='#'
30874 OPENEXR_DELEGATE_FALSE=
30875fi
30876
cristy3ed852e2009-09-05 21:47:34 +000030877
30878
30879
30880
30881#
cristy41cbe8a2011-10-27 01:35:18 +000030882# Check for PANGO delegate library.
30883#
30884
30885# Check whether --with-pango was given.
30886if test "${with_pango+set}" = set; then :
30887 withval=$with_pango; with_pango=$withval
30888else
cristyfc3d0222012-02-07 15:05:57 +000030889 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030890fi
30891
30892
30893if test "$with_pango" != 'yes'; then
30894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30895fi
30896
30897have_pango='no'
cristya054b762012-03-26 23:16:00 +000030898have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030899PANGO_CFLAGS=""
30900PANGO_LIBS=""
30901PANGO_PKG=""
30902if test "x$with_pango" = "xyes"; then
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30904$as_echo "-------------------------------------------------------------" >&6; }
30905
30906pkg_failed=no
30907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30908$as_echo_n "checking for PANGO... " >&6; }
30909
30910if test -n "$PANGO_CFLAGS"; then
30911 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30912 elif test -n "$PKG_CONFIG"; then
30913 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30915 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030916 ac_status=$?
30917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30918 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030919 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030920else
30921 pkg_failed=yes
30922fi
30923 else
30924 pkg_failed=untried
30925fi
30926if test -n "$PANGO_LIBS"; then
30927 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30928 elif test -n "$PKG_CONFIG"; then
30929 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30931 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030932 ac_status=$?
30933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30934 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030935 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030936else
30937 pkg_failed=yes
30938fi
30939 else
30940 pkg_failed=untried
30941fi
30942
30943
30944
30945if test $pkg_failed = yes; then
30946
30947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30948 _pkg_short_errors_supported=yes
30949else
30950 _pkg_short_errors_supported=no
30951fi
30952 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030953 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030954 else
cristya054b762012-03-26 23:16:00 +000030955 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030956 fi
30957 # Put the nasty error message in config.log where it belongs
30958 echo "$PANGO_PKG_ERRORS" >&5
30959
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30961$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030962 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030963elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030964 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030965else
30966 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30967 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30969$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030970 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030971fi
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30973$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030974
30975pkg_failed=no
30976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30977$as_echo_n "checking for PANGO... " >&6; }
30978
30979if test -n "$PANGO_CFLAGS"; then
30980 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30981 elif test -n "$PKG_CONFIG"; then
30982 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30984 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030985 ac_status=$?
30986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30987 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030988 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030989else
30990 pkg_failed=yes
30991fi
30992 else
30993 pkg_failed=untried
30994fi
30995if test -n "$PANGO_LIBS"; then
30996 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30997 elif test -n "$PKG_CONFIG"; then
30998 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31000 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031001 ac_status=$?
31002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31003 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031004 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031005else
31006 pkg_failed=yes
31007fi
31008 else
31009 pkg_failed=untried
31010fi
31011
31012
31013
31014if test $pkg_failed = yes; then
31015
31016if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31017 _pkg_short_errors_supported=yes
31018else
31019 _pkg_short_errors_supported=no
31020fi
31021 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031022 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031023 else
cristy2542fc62011-12-06 17:50:25 +000031024 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031025 fi
31026 # Put the nasty error message in config.log where it belongs
31027 echo "$PANGO_PKG_ERRORS" >&5
31028
31029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31030$as_echo "no" >&6; }
31031 have_pango=no
31032elif test $pkg_failed = untried; then
31033 have_pango=no
31034else
31035 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31036 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31038$as_echo "yes" >&6; }
31039 have_pango=yes
31040fi
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31042$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031043fi
31044
31045if test "$have_pango" = 'yes'; then
31046
31047$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31048
31049 if test "$with_modules" = 'no'; then
31050 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31051 fi
31052fi
31053
cristya054b762012-03-26 23:16:00 +000031054if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031055
cristya054b762012-03-26 23:16:00 +000031056$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031057
31058 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031059 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031060 fi
31061fi
31062
31063 if test "$have_pango" = 'yes'; then
31064 PANGO_DELEGATE_TRUE=
31065 PANGO_DELEGATE_FALSE='#'
31066else
31067 PANGO_DELEGATE_TRUE='#'
31068 PANGO_DELEGATE_FALSE=
31069fi
31070
cristya054b762012-03-26 23:16:00 +000031071 if test "$have_pangocairo" = 'yes'; then
31072 PANGOCAIRO_DELEGATE_TRUE=
31073 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031074else
cristya054b762012-03-26 23:16:00 +000031075 PANGOCAIRO_DELEGATE_TRUE='#'
31076 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031077fi
31078
31079
31080
31081
31082
31083#
cristy3ed852e2009-09-05 21:47:34 +000031084# Check for PNG delegate library.
31085#
31086
31087# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031088if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031089 withval=$with_png; with_png=$withval
31090else
31091 with_png='yes'
31092fi
31093
31094
31095if test "$with_png" != 'yes'; then
31096 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31097fi
31098
cristy81beccd2011-10-03 18:17:24 +000031099have_png='no'
31100PNG_LIBS=''
31101
31102if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031103 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31104$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31106$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031107 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31108$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031109 failed=0
31110 passed=0
31111 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31112if test "x$ac_cv_header_png_h" = xyes; then :
31113 passed=`expr $passed + 1`
31114else
31115 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031116fi
31117
cristy81beccd2011-10-03 18:17:24 +000031118
31119
31120 if test $passed -gt 0; then
31121 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031122 if test "$have_png" = 'no' ; then
31123 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031124 pnglib='png'
31125 else
31126 pnglib="png1${var}"
31127 fi
31128
31129# Test for compatible LIBPNG library
31130 failed=0
31131 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031132 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031133 if test "${pnglib}" != 'png' ; then
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31135$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31137/* end confdefs.h. */
31138#include <stdio.h>
31139#include <stdlib.h>
31140#include <png.h>
31141
31142int
31143main ()
31144{
31145
31146#if PNG_LIBPNG_VER_MINOR != ${var}
31147#error LIBPNG library must be version 1${var}!
31148Kaboom, Kaboom
31149#endif
31150return 0;
31151
31152 ;
31153 return 0;
31154}
31155_ACEOF
31156if ac_fn_c_try_compile "$LINENO"; then :
31157 ac_cv_libpng_ok='yes'
31158else
31159 ac_cv_libpng_ok='no'
31160fi
31161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31162 if test "$ac_cv_libpng_ok" = 'yes' ; then
31163 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031164 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31165$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031166 else
31167 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031168 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31169$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031170 fi
31171 else
31172 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031173 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31174$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031175 fi
31176 fi
31177
31178 if test $passed -gt 0 -a $failed -le 0; then
31179 if test "1${var}" = '15' ; then
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31181$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31182if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31183 $as_echo_n "(cached) " >&6
31184else
31185 ac_check_lib_save_LIBS=$LIBS
31186LIBS="-lpng15 $LIBS"
31187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31188/* end confdefs.h. */
31189
31190/* Override any GCC internal prototype to avoid an error.
31191 Use char because int might match the return type of a GCC
31192 builtin and then its argument prototype would still apply. */
31193#ifdef __cplusplus
31194extern "C"
31195#endif
31196char png_get_io_ptr ();
31197int
31198main ()
31199{
31200return png_get_io_ptr ();
31201 ;
31202 return 0;
31203}
31204_ACEOF
31205if ac_fn_c_try_link "$LINENO"; then :
31206 ac_cv_lib_png15_png_get_io_ptr=yes
31207else
31208 ac_cv_lib_png15_png_get_io_ptr=no
31209fi
31210rm -f core conftest.err conftest.$ac_objext \
31211 conftest$ac_exeext conftest.$ac_ext
31212LIBS=$ac_check_lib_save_LIBS
31213fi
31214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31215$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31216if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31217 passed=`expr $passed + 1`
31218else
31219 failed=`expr $failed + 1`
31220fi
31221
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31223$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31224if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31225 $as_echo_n "(cached) " >&6
31226else
31227 ac_check_lib_save_LIBS=$LIBS
31228LIBS="-lpng15 $LIBS"
31229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31230/* end confdefs.h. */
31231
31232/* Override any GCC internal prototype to avoid an error.
31233 Use char because int might match the return type of a GCC
31234 builtin and then its argument prototype would still apply. */
31235#ifdef __cplusplus
31236extern "C"
31237#endif
31238char png_longjmp ();
31239int
31240main ()
31241{
31242return png_longjmp ();
31243 ;
31244 return 0;
31245}
31246_ACEOF
31247if ac_fn_c_try_link "$LINENO"; then :
31248 ac_cv_lib_png15_png_longjmp=yes
31249else
31250 ac_cv_lib_png15_png_longjmp=no
31251fi
31252rm -f core conftest.err conftest.$ac_objext \
31253 conftest$ac_exeext conftest.$ac_ext
31254LIBS=$ac_check_lib_save_LIBS
31255fi
31256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31257$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31258if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31259 passed=`expr $passed + 1`
31260else
31261 failed=`expr $failed + 1`
31262fi
31263
31264 fi
31265 if test "1${var}" = '14' ; then
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31267$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31268if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31269 $as_echo_n "(cached) " >&6
31270else
31271 ac_check_lib_save_LIBS=$LIBS
31272LIBS="-lpng14 $LIBS"
31273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31274/* end confdefs.h. */
31275
31276/* Override any GCC internal prototype to avoid an error.
31277 Use char because int might match the return type of a GCC
31278 builtin and then its argument prototype would still apply. */
31279#ifdef __cplusplus
31280extern "C"
31281#endif
31282char png_get_io_ptr ();
31283int
31284main ()
31285{
31286return png_get_io_ptr ();
31287 ;
31288 return 0;
31289}
31290_ACEOF
31291if ac_fn_c_try_link "$LINENO"; then :
31292 ac_cv_lib_png14_png_get_io_ptr=yes
31293else
31294 ac_cv_lib_png14_png_get_io_ptr=no
31295fi
31296rm -f core conftest.err conftest.$ac_objext \
31297 conftest$ac_exeext conftest.$ac_ext
31298LIBS=$ac_check_lib_save_LIBS
31299fi
31300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31301$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31302if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31303 passed=`expr $passed + 1`
31304else
31305 failed=`expr $failed + 1`
31306fi
31307
31308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31309$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31310if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31311 $as_echo_n "(cached) " >&6
31312else
31313 ac_check_lib_save_LIBS=$LIBS
31314LIBS="-lpng14 $LIBS"
31315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31316/* end confdefs.h. */
31317
31318/* Override any GCC internal prototype to avoid an error.
31319 Use char because int might match the return type of a GCC
31320 builtin and then its argument prototype would still apply. */
31321#ifdef __cplusplus
31322extern "C"
31323#endif
31324char png_get_io_state ();
31325int
31326main ()
31327{
31328return png_get_io_state ();
31329 ;
31330 return 0;
31331}
31332_ACEOF
31333if ac_fn_c_try_link "$LINENO"; then :
31334 ac_cv_lib_png14_png_get_io_state=yes
31335else
31336 ac_cv_lib_png14_png_get_io_state=no
31337fi
31338rm -f core conftest.err conftest.$ac_objext \
31339 conftest$ac_exeext conftest.$ac_ext
31340LIBS=$ac_check_lib_save_LIBS
31341fi
31342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31343$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31344if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31345 passed=`expr $passed + 1`
31346else
31347 failed=`expr $failed + 1`
31348fi
31349
31350 fi
31351 if test "1${var}" = '12' ; then
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31353$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31354if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31355 $as_echo_n "(cached) " >&6
31356else
31357 ac_check_lib_save_LIBS=$LIBS
31358LIBS="-lpng12 $LIBS"
31359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31360/* end confdefs.h. */
31361
31362/* Override any GCC internal prototype to avoid an error.
31363 Use char because int might match the return type of a GCC
31364 builtin and then its argument prototype would still apply. */
31365#ifdef __cplusplus
31366extern "C"
31367#endif
31368char png_get_io_ptr ();
31369int
31370main ()
31371{
31372return png_get_io_ptr ();
31373 ;
31374 return 0;
31375}
31376_ACEOF
31377if ac_fn_c_try_link "$LINENO"; then :
31378 ac_cv_lib_png12_png_get_io_ptr=yes
31379else
31380 ac_cv_lib_png12_png_get_io_ptr=no
31381fi
31382rm -f core conftest.err conftest.$ac_objext \
31383 conftest$ac_exeext conftest.$ac_ext
31384LIBS=$ac_check_lib_save_LIBS
31385fi
31386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31387$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31388if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31389 passed=`expr $passed + 1`
31390else
31391 failed=`expr $failed + 1`
31392fi
31393
31394 fi
31395 if test "1${var}" = '1' ; then
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31397$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31398if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31399 $as_echo_n "(cached) " >&6
31400else
31401 ac_check_lib_save_LIBS=$LIBS
31402LIBS="-lpng $LIBS"
31403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31404/* end confdefs.h. */
31405
31406/* Override any GCC internal prototype to avoid an error.
31407 Use char because int might match the return type of a GCC
31408 builtin and then its argument prototype would still apply. */
31409#ifdef __cplusplus
31410extern "C"
31411#endif
31412char png_get_io_ptr ();
31413int
31414main ()
31415{
31416return png_get_io_ptr ();
31417 ;
31418 return 0;
31419}
31420_ACEOF
31421if ac_fn_c_try_link "$LINENO"; then :
31422 ac_cv_lib_png_png_get_io_ptr=yes
31423else
31424 ac_cv_lib_png_png_get_io_ptr=no
31425fi
31426rm -f core conftest.err conftest.$ac_objext \
31427 conftest$ac_exeext conftest.$ac_ext
31428LIBS=$ac_check_lib_save_LIBS
31429fi
31430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31431$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31432if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31433 passed=`expr $passed + 1`
31434else
31435 failed=`expr $failed + 1`
31436fi
31437
31438 fi
31439 if test $passed -gt 0 -a $failed -le 0 ; then
31440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31441$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31442 if test $passed -gt 0 ; then
31443 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031444 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31445$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031446 have_png='no (failed tests)'
31447 else
31448 PNG_LIBS="-l${pnglib}"
31449 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031450
cristy8b350f62009-11-15 23:12:43 +000031451$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031452
cristy09b53e12011-10-14 12:47:22 +000031453 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31454$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031455 have_png='yes'
31456 fi
31457 fi
31458 fi
31459 fi
31460 fi
31461 done
31462 fi
cristy3ed852e2009-09-05 21:47:34 +000031463fi
cristy64877302011-08-23 19:10:31 +000031464
cristy73bd4a52010-10-05 11:24:23 +000031465 if test "$have_png" = 'yes'; then
31466 PNG_DELEGATE_TRUE=
31467 PNG_DELEGATE_FALSE='#'
31468else
31469 PNG_DELEGATE_TRUE='#'
31470 PNG_DELEGATE_FALSE=
31471fi
31472
cristy3ed852e2009-09-05 21:47:34 +000031473
cristy50d3f5c2011-09-10 20:09:06 +000031474
cristy3ed852e2009-09-05 21:47:34 +000031475
31476
31477#
31478# Check for RSVG delegate library.
31479#
31480
31481# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031482if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031483 withval=$with_rsvg; with_rsvg=$withval
31484else
cristyfc3d0222012-02-07 15:05:57 +000031485 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031486fi
31487
31488
31489if test "$with_rsvg" != 'yes'; then
31490 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31491fi
31492
31493have_rsvg='no'
31494have_cairo='no'
31495RSVG_CFLAGS=""
31496RSVG_LIBS=""
31497RSVG_PKG=""
31498if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031499 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31500$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031501
31502pkg_failed=no
31503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31504$as_echo_n "checking for RSVG... " >&6; }
31505
31506if test -n "$RSVG_CFLAGS"; then
31507 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31508 elif test -n "$PKG_CONFIG"; then
31509 if test -n "$PKG_CONFIG" && \
31510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31511 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31512 ac_status=$?
31513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31514 test $ac_status = 0; }; then
31515 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31516else
31517 pkg_failed=yes
31518fi
31519 else
31520 pkg_failed=untried
31521fi
31522if test -n "$RSVG_LIBS"; then
31523 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31524 elif test -n "$PKG_CONFIG"; then
31525 if test -n "$PKG_CONFIG" && \
31526 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31527 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31528 ac_status=$?
31529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31530 test $ac_status = 0; }; then
31531 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31532else
31533 pkg_failed=yes
31534fi
31535 else
31536 pkg_failed=untried
31537fi
31538
31539
31540
31541if test $pkg_failed = yes; then
31542
31543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31544 _pkg_short_errors_supported=yes
31545else
31546 _pkg_short_errors_supported=no
31547fi
31548 if test $_pkg_short_errors_supported = yes; then
31549 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31550 else
31551 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31552 fi
31553 # Put the nasty error message in config.log where it belongs
31554 echo "$RSVG_PKG_ERRORS" >&5
31555
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31557$as_echo "no" >&6; }
31558 have_rsvg=no
31559elif test $pkg_failed = untried; then
31560 have_rsvg=no
31561else
31562 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31563 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31565$as_echo "yes" >&6; }
31566 have_rsvg=yes
31567fi
cristy09b53e12011-10-14 12:47:22 +000031568 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31569$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031570
31571pkg_failed=no
31572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31573$as_echo_n "checking for CAIRO_SVG... " >&6; }
31574
31575if test -n "$CAIRO_SVG_CFLAGS"; then
31576 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31577 elif test -n "$PKG_CONFIG"; then
31578 if test -n "$PKG_CONFIG" && \
31579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31580 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31581 ac_status=$?
31582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31583 test $ac_status = 0; }; then
31584 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31585else
31586 pkg_failed=yes
31587fi
31588 else
31589 pkg_failed=untried
31590fi
31591if test -n "$CAIRO_SVG_LIBS"; then
31592 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31593 elif test -n "$PKG_CONFIG"; then
31594 if test -n "$PKG_CONFIG" && \
31595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31596 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31597 ac_status=$?
31598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31599 test $ac_status = 0; }; then
31600 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31601else
31602 pkg_failed=yes
31603fi
31604 else
31605 pkg_failed=untried
31606fi
31607
31608
31609
31610if test $pkg_failed = yes; then
31611
31612if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31613 _pkg_short_errors_supported=yes
31614else
31615 _pkg_short_errors_supported=no
31616fi
31617 if test $_pkg_short_errors_supported = yes; then
31618 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31619 else
31620 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31621 fi
31622 # Put the nasty error message in config.log where it belongs
31623 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31624
31625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31626$as_echo "no" >&6; }
31627 have_cairo=no
31628elif test $pkg_failed = untried; then
31629 have_cairo=no
31630else
31631 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31632 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31634$as_echo "yes" >&6; }
31635 have_cairo=yes
31636fi
cristy09b53e12011-10-14 12:47:22 +000031637 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31638$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031639fi
31640
31641if test "$have_rsvg" = 'yes'; then
31642
cristy8b350f62009-11-15 23:12:43 +000031643$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031644
31645 if test "$with_modules" = 'no'; then
31646 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31647 fi
31648fi
31649
31650if test "$have_cairo" = 'yes'; then
31651
cristy8b350f62009-11-15 23:12:43 +000031652$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031653
31654 if test "$with_modules" = 'no'; then
31655 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31656 fi
31657fi
31658
cristy73bd4a52010-10-05 11:24:23 +000031659 if test "$have_rsvg" = 'yes'; then
31660 RSVG_DELEGATE_TRUE=
31661 RSVG_DELEGATE_FALSE='#'
31662else
31663 RSVG_DELEGATE_TRUE='#'
31664 RSVG_DELEGATE_FALSE=
31665fi
31666
31667 if test "$have_cairo" = 'yes'; then
31668 CAIRO_DELEGATE_TRUE=
31669 CAIRO_DELEGATE_FALSE='#'
31670else
31671 CAIRO_DELEGATE_TRUE='#'
31672 CAIRO_DELEGATE_FALSE=
31673fi
31674
cristy3ed852e2009-09-05 21:47:34 +000031675
31676
31677
31678
31679#
31680# Check for TIFF delegate library.
31681#
31682
31683# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031684if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031685 withval=$with_tiff; with_tiff=$withval
31686else
31687 with_tiff='yes'
31688fi
31689
31690
31691if test "$with_tiff" != 'yes'; then
31692 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31693fi
31694
31695have_tiff='no'
31696TIFF_LIBS=''
31697if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031698 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31699$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031701$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031702 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31703$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031704 failed=0
31705 passed=0
cristy8b350f62009-11-15 23:12:43 +000031706 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031707if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031708 passed=`expr $passed + 1`
31709else
31710 failed=`expr $failed + 1`
31711fi
31712
31713
cristy8b350f62009-11-15 23:12:43 +000031714 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031715if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031716 passed=`expr $passed + 1`
31717else
31718 failed=`expr $failed + 1`
31719fi
31720
31721
cristy8b350f62009-11-15 23:12:43 +000031722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031723$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031724if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031725 $as_echo_n "(cached) " >&6
31726else
31727 ac_check_lib_save_LIBS=$LIBS
31728LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031730/* end confdefs.h. */
31731
31732/* Override any GCC internal prototype to avoid an error.
31733 Use char because int might match the return type of a GCC
31734 builtin and then its argument prototype would still apply. */
31735#ifdef __cplusplus
31736extern "C"
31737#endif
31738char TIFFOpen ();
31739int
31740main ()
31741{
31742return TIFFOpen ();
31743 ;
31744 return 0;
31745}
31746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031747if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031748 ac_cv_lib_tiff_TIFFOpen=yes
31749else
cristy8b350f62009-11-15 23:12:43 +000031750 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031751fi
cristy8b350f62009-11-15 23:12:43 +000031752rm -f core conftest.err conftest.$ac_objext \
31753 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031754LIBS=$ac_check_lib_save_LIBS
31755fi
cristy8b350f62009-11-15 23:12:43 +000031756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031758if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031759 passed=`expr $passed + 1`
31760else
31761 failed=`expr $failed + 1`
31762fi
31763
cristy8b350f62009-11-15 23:12:43 +000031764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031765$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031766if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031767 $as_echo_n "(cached) " >&6
31768else
31769 ac_check_lib_save_LIBS=$LIBS
31770LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031772/* end confdefs.h. */
31773
31774/* Override any GCC internal prototype to avoid an error.
31775 Use char because int might match the return type of a GCC
31776 builtin and then its argument prototype would still apply. */
31777#ifdef __cplusplus
31778extern "C"
31779#endif
31780char TIFFClientOpen ();
31781int
31782main ()
31783{
31784return TIFFClientOpen ();
31785 ;
31786 return 0;
31787}
31788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031789if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031790 ac_cv_lib_tiff_TIFFClientOpen=yes
31791else
cristy8b350f62009-11-15 23:12:43 +000031792 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031793fi
cristy8b350f62009-11-15 23:12:43 +000031794rm -f core conftest.err conftest.$ac_objext \
31795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031796LIBS=$ac_check_lib_save_LIBS
31797fi
cristy8b350f62009-11-15 23:12:43 +000031798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031799$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031800if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031801 passed=`expr $passed + 1`
31802else
31803 failed=`expr $failed + 1`
31804fi
31805
cristy8b350f62009-11-15 23:12:43 +000031806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031807$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031808if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031809 $as_echo_n "(cached) " >&6
31810else
31811 ac_check_lib_save_LIBS=$LIBS
31812LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031814/* end confdefs.h. */
31815
31816/* Override any GCC internal prototype to avoid an error.
31817 Use char because int might match the return type of a GCC
31818 builtin and then its argument prototype would still apply. */
31819#ifdef __cplusplus
31820extern "C"
31821#endif
31822char TIFFIsByteSwapped ();
31823int
31824main ()
31825{
31826return TIFFIsByteSwapped ();
31827 ;
31828 return 0;
31829}
31830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031832 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31833else
cristy8b350f62009-11-15 23:12:43 +000031834 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031835fi
cristy8b350f62009-11-15 23:12:43 +000031836rm -f core conftest.err conftest.$ac_objext \
31837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031838LIBS=$ac_check_lib_save_LIBS
31839fi
cristy8b350f62009-11-15 23:12:43 +000031840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031841$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031842if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031843 passed=`expr $passed + 1`
31844else
31845 failed=`expr $failed + 1`
31846fi
31847
cristy8b350f62009-11-15 23:12:43 +000031848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031849$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031850if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031851 $as_echo_n "(cached) " >&6
31852else
31853 ac_check_lib_save_LIBS=$LIBS
31854LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031856/* end confdefs.h. */
31857
31858/* Override any GCC internal prototype to avoid an error.
31859 Use char because int might match the return type of a GCC
31860 builtin and then its argument prototype would still apply. */
31861#ifdef __cplusplus
31862extern "C"
31863#endif
31864char TIFFReadRGBATile ();
31865int
31866main ()
31867{
31868return TIFFReadRGBATile ();
31869 ;
31870 return 0;
31871}
31872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031874 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31875else
cristy8b350f62009-11-15 23:12:43 +000031876 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031877fi
cristy8b350f62009-11-15 23:12:43 +000031878rm -f core conftest.err conftest.$ac_objext \
31879 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031880LIBS=$ac_check_lib_save_LIBS
31881fi
cristy8b350f62009-11-15 23:12:43 +000031882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031883$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031884if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031885 passed=`expr $passed + 1`
31886else
31887 failed=`expr $failed + 1`
31888fi
31889
cristy8b350f62009-11-15 23:12:43 +000031890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031891$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031892if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031893 $as_echo_n "(cached) " >&6
31894else
31895 ac_check_lib_save_LIBS=$LIBS
31896LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031898/* end confdefs.h. */
31899
31900/* Override any GCC internal prototype to avoid an error.
31901 Use char because int might match the return type of a GCC
31902 builtin and then its argument prototype would still apply. */
31903#ifdef __cplusplus
31904extern "C"
31905#endif
31906char TIFFReadRGBAStrip ();
31907int
31908main ()
31909{
31910return TIFFReadRGBAStrip ();
31911 ;
31912 return 0;
31913}
31914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031916 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31917else
cristy8b350f62009-11-15 23:12:43 +000031918 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031919fi
cristy8b350f62009-11-15 23:12:43 +000031920rm -f core conftest.err conftest.$ac_objext \
31921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031922LIBS=$ac_check_lib_save_LIBS
31923fi
cristy8b350f62009-11-15 23:12:43 +000031924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031926if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031927 passed=`expr $passed + 1`
31928else
31929 failed=`expr $failed + 1`
31930fi
31931
cristy8b350f62009-11-15 23:12:43 +000031932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031933$as_echo_n "checking if TIFF package is complete... " >&6; }
31934 if test $passed -gt 0; then
31935 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031936 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31937$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031938 have_tiff='no (failed tests)'
31939 else
31940 TIFF_LIBS='-ltiff'
31941 LIBS="$TIFF_LIBS $LIBS"
31942
cristy8b350f62009-11-15 23:12:43 +000031943$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031944
cristy09b53e12011-10-14 12:47:22 +000031945 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31946$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031947 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031948 for ac_header in tiffconf.h
31949do :
31950 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031951if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031952 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031953#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031954_ACEOF
31955
31956fi
31957
31958done
31959
cristy8b350f62009-11-15 23:12:43 +000031960 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031961 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31962 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31963 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031964do :
31965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31966ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031967if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031968 cat >>confdefs.h <<_ACEOF
31969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31970_ACEOF
31971
31972fi
31973done
31974
31975 fi
31976 else
cristy09b53e12011-10-14 12:47:22 +000031977 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31978$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031979 fi
31980fi
cristy73bd4a52010-10-05 11:24:23 +000031981 if test "$have_tiff" = 'yes'; then
31982 TIFF_DELEGATE_TRUE=
31983 TIFF_DELEGATE_FALSE='#'
31984else
31985 TIFF_DELEGATE_TRUE='#'
31986 TIFF_DELEGATE_FALSE=
31987fi
31988
cristy3ed852e2009-09-05 21:47:34 +000031989
31990
31991
31992#
cristyb1860752011-03-14 00:27:46 +000031993# Check for WEBP delegate library.
31994#
31995
31996# Check whether --with-webp was given.
31997if test "${with_webp+set}" = set; then :
31998 withval=$with_webp; with_webp=$withval
31999else
32000 with_webp='yes'
32001fi
32002
32003
32004if test "$with_webp" != 'yes'; then
32005 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32006fi
32007
32008have_webp='no'
32009WEBP_LIBS=''
32010if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32012$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32014$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32016$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032017 failed=0
32018 passed=0
32019 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32020if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32021 passed=`expr $passed + 1`
32022else
32023 failed=`expr $failed + 1`
32024fi
32025
32026
32027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32028$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32029if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32030 $as_echo_n "(cached) " >&6
32031else
32032 ac_check_lib_save_LIBS=$LIBS
32033LIBS="-lwebp $LIBS"
32034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32035/* end confdefs.h. */
32036
32037/* Override any GCC internal prototype to avoid an error.
32038 Use char because int might match the return type of a GCC
32039 builtin and then its argument prototype would still apply. */
32040#ifdef __cplusplus
32041extern "C"
32042#endif
32043char WebPDecodeRGB ();
32044int
32045main ()
32046{
32047return WebPDecodeRGB ();
32048 ;
32049 return 0;
32050}
32051_ACEOF
32052if ac_fn_c_try_link "$LINENO"; then :
32053 ac_cv_lib_webp_WebPDecodeRGB=yes
32054else
32055 ac_cv_lib_webp_WebPDecodeRGB=no
32056fi
32057rm -f core conftest.err conftest.$ac_objext \
32058 conftest$ac_exeext conftest.$ac_ext
32059LIBS=$ac_check_lib_save_LIBS
32060fi
32061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32062$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32063if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32064 passed=`expr $passed + 1`
32065else
32066 failed=`expr $failed + 1`
32067fi
32068
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32070$as_echo_n "checking if WEBP package is complete... " >&6; }
32071 if test $passed -gt 0; then
32072 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032073 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32074$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032075 have_webp='no (failed tests)'
32076 else
32077 WEBP_LIBS='-lwebp'
32078 LIBS="$WEBP_LIBS $LIBS"
32079
32080$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32081
cristy09b53e12011-10-14 12:47:22 +000032082 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32083$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032084 have_webp='yes'
32085 fi
32086 else
cristy09b53e12011-10-14 12:47:22 +000032087 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32088$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032089 fi
32090fi
32091 if test "$have_webp" = 'yes'; then
32092 WEBP_DELEGATE_TRUE=
32093 WEBP_DELEGATE_FALSE='#'
32094else
32095 WEBP_DELEGATE_TRUE='#'
32096 WEBP_DELEGATE_FALSE=
32097fi
32098
32099
32100
32101
32102#
cristy3ed852e2009-09-05 21:47:34 +000032103# Set Windows font directory.
32104#
32105
32106# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032107if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032108 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32109else
32110 with_windows_font_dir=''
32111fi
32112
32113if test "$with_windows_font_dir" != '' ; then
32114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32115fi
32116
32117
32118#
32119# Check for WMF delegate library.
32120#
32121
32122# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032123if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032124 withval=$with_wmf; with_wmf=$withval
32125else
cristyfc3d0222012-02-07 15:05:57 +000032126 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032127fi
32128
32129
32130if test "$with_wmf" != 'yes'; then
32131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32132fi
32133
32134have_wmf='no'
32135WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032136WMF_LIBS_DEPS=''
32137OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032138if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32140$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032142$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32144$as_echo "" >&6; }
32145 have_libwmf='no'
32146 have_libwmflite='no'
32147 have_libwmf_ipa_h='no'
32148
32149 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32150"
32151if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32152 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032153fi
32154
32155
cristy03f7cf92011-12-15 01:40:41 +000032156 if test "$have_libwmf_ipa_h" = 'yes'; then
32157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32158$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32159if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032160 $as_echo_n "(cached) " >&6
32161else
32162 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032163LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032165/* end confdefs.h. */
32166
32167/* Override any GCC internal prototype to avoid an error.
32168 Use char because int might match the return type of a GCC
32169 builtin and then its argument prototype would still apply. */
32170#ifdef __cplusplus
32171extern "C"
32172#endif
cristy03f7cf92011-12-15 01:40:41 +000032173char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032174int
32175main ()
32176{
cristy03f7cf92011-12-15 01:40:41 +000032177return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032178 ;
32179 return 0;
32180}
32181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032182if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032183 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032184else
cristy03f7cf92011-12-15 01:40:41 +000032185 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032186fi
cristy8b350f62009-11-15 23:12:43 +000032187rm -f core conftest.err conftest.$ac_objext \
32188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032189LIBS=$ac_check_lib_save_LIBS
32190fi
cristy03f7cf92011-12-15 01:40:41 +000032191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32192$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32193if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32194 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032195fi
32196
cristy03f7cf92011-12-15 01:40:41 +000032197 if test "$have_libwmflite" = 'yes'; then
32198
32199$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32200
32201 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032202 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032203 have_wmf='yes'
32204 else
32205 WMF_LIBS_DEPS=''
32206 WMF_CONFIG_LIBS=`libwmf-config --libs`
32207 for lib in xml2 expat freetype jpeg png z; do
32208 testlib="-l${lib}"
32209 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32210 done
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32212$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32213if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32214 $as_echo_n "(cached) " >&6
32215else
32216 ac_check_lib_save_LIBS=$LIBS
32217LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32219/* end confdefs.h. */
32220
32221/* Override any GCC internal prototype to avoid an error.
32222 Use char because int might match the return type of a GCC
32223 builtin and then its argument prototype would still apply. */
32224#ifdef __cplusplus
32225extern "C"
32226#endif
32227char wmf_api_create ();
32228int
32229main ()
32230{
32231return wmf_api_create ();
32232 ;
32233 return 0;
32234}
32235_ACEOF
32236if ac_fn_c_try_link "$LINENO"; then :
32237 ac_cv_lib_wmf_wmf_api_create=yes
32238else
32239 ac_cv_lib_wmf_wmf_api_create=no
32240fi
32241rm -f core conftest.err conftest.$ac_objext \
32242 conftest$ac_exeext conftest.$ac_ext
32243LIBS=$ac_check_lib_save_LIBS
32244fi
32245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32246$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32247if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32248 have_libwmf='yes'
32249fi
32250
32251 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032252
cristy8b350f62009-11-15 23:12:43 +000032253$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032254
cristy03f7cf92011-12-15 01:40:41 +000032255 WMF_LIBS='-lwmf'
32256 LIBS="$WMF_LIBS $LIBS"
32257 have_wmf='yes'
32258 else
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32260$as_echo "no -- some components failed test" >&6; }
32261 have_wmf='no (failed tests)'
32262 have_wmflite='no (failed tests)'
32263 LIBS="$OLIBS"
32264 WMF_LIBS=''
32265 fi
glennrp33e524b2011-08-24 17:41:57 +000032266 fi
cristy03f7cf92011-12-15 01:40:41 +000032267 fi
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32269$as_echo_n "checking if WMF package is complete... " >&6; }
32270 if test "$have_wmf" = 'yes'; then
32271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32272$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032273 else
cristy03f7cf92011-12-15 01:40:41 +000032274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32275$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032276 fi
cristy3ed852e2009-09-05 21:47:34 +000032277fi
cristy73bd4a52010-10-05 11:24:23 +000032278 if test "$have_wmf" = 'yes'; then
32279 WMF_DELEGATE_TRUE=
32280 WMF_DELEGATE_FALSE='#'
32281else
32282 WMF_DELEGATE_TRUE='#'
32283 WMF_DELEGATE_FALSE=
32284fi
32285
cristy3ed852e2009-09-05 21:47:34 +000032286
32287
32288
cristy81beccd2011-10-03 18:17:24 +000032289
32290
cristy3ed852e2009-09-05 21:47:34 +000032291#
32292# Check for XML delegate library.
32293#
32294
32295# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032296if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032297 withval=$with_xml; with_xml=$withval
32298else
cristyfc3d0222012-02-07 15:05:57 +000032299 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032300fi
32301
32302
cristy81beccd2011-10-03 18:17:24 +000032303if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032304 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32305fi
32306
cristy81beccd2011-10-03 18:17:24 +000032307have_xml='no'
32308XML_LIBS=''
32309if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032310 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32311$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32313$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32315$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032316 PERSIST_LDFLAGS=$LDFLAGS
32317 PERSIST_CPPFLAGS=$CPPFLAGS
32318 xml2_config=''
32319 # Extract the first word of "xml2-config", so it can be a program name with args.
32320set dummy xml2-config; ac_word=$2
32321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32322$as_echo_n "checking for $ac_word... " >&6; }
32323if ${ac_cv_path_xml2_config+:} false; then :
32324 $as_echo_n "(cached) " >&6
32325else
32326 case $xml2_config in
32327 [\\/]* | ?:[\\/]*)
32328 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32329 ;;
32330 *)
32331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32332for as_dir in $PATH
32333do
32334 IFS=$as_save_IFS
32335 test -z "$as_dir" && as_dir=.
32336 for ac_exec_ext in '' $ac_executable_extensions; do
32337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32338 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32340 break 2
32341 fi
32342done
32343 done
32344IFS=$as_save_IFS
32345
32346 ;;
32347esac
32348fi
32349xml2_config=$ac_cv_path_xml2_config
32350if test -n "$xml2_config"; then
32351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32352$as_echo "$xml2_config" >&6; }
32353else
32354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32355$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032356fi
32357
cristy81beccd2011-10-03 18:17:24 +000032358 if test -n "$xml2_config"; then
32359 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32360 # the shared library installed under /usr/lib, whereas the package
32361 # installs itself under $prefix/libxml and $prefix/lib.
32362 xml2_prefix=`xml2-config --prefix`
32363 if test -d "${xml2_prefix}/include/libxml2"; then
32364 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32365 fi
32366 if test "${xml2_prefix}" != '/usr'; then
32367 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32368 fi
32369 fi
32370 failed=0
32371 passed=0
32372 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32373if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32374 passed=`expr $passed + 1`
32375else
32376 failed=`expr $failed + 1`
32377fi
32378
32379
32380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32381$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32382if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32383 $as_echo_n "(cached) " >&6
32384else
32385 ac_check_lib_save_LIBS=$LIBS
32386LIBS="-lxml2 $LIBS"
32387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32388/* end confdefs.h. */
32389
32390/* Override any GCC internal prototype to avoid an error.
32391 Use char because int might match the return type of a GCC
32392 builtin and then its argument prototype would still apply. */
32393#ifdef __cplusplus
32394extern "C"
32395#endif
32396char xmlSAXVersion ();
32397int
32398main ()
32399{
32400return xmlSAXVersion ();
32401 ;
32402 return 0;
32403}
32404_ACEOF
32405if ac_fn_c_try_link "$LINENO"; then :
32406 ac_cv_lib_xml2_xmlSAXVersion=yes
32407else
32408 ac_cv_lib_xml2_xmlSAXVersion=no
32409fi
32410rm -f core conftest.err conftest.$ac_objext \
32411 conftest$ac_exeext conftest.$ac_ext
32412LIBS=$ac_check_lib_save_LIBS
32413fi
32414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32415$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32416if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32417 passed=`expr $passed + 1`
32418else
32419 failed=`expr $failed + 1`
32420fi
32421
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32423$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32424if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32425 $as_echo_n "(cached) " >&6
32426else
32427 ac_check_lib_save_LIBS=$LIBS
32428LIBS="-lxml2 $LIBS"
32429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32430/* end confdefs.h. */
32431
32432/* Override any GCC internal prototype to avoid an error.
32433 Use char because int might match the return type of a GCC
32434 builtin and then its argument prototype would still apply. */
32435#ifdef __cplusplus
32436extern "C"
32437#endif
32438char xmlParseChunk ();
32439int
32440main ()
32441{
32442return xmlParseChunk ();
32443 ;
32444 return 0;
32445}
32446_ACEOF
32447if ac_fn_c_try_link "$LINENO"; then :
32448 ac_cv_lib_xml2_xmlParseChunk=yes
32449else
32450 ac_cv_lib_xml2_xmlParseChunk=no
32451fi
32452rm -f core conftest.err conftest.$ac_objext \
32453 conftest$ac_exeext conftest.$ac_ext
32454LIBS=$ac_check_lib_save_LIBS
32455fi
32456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32457$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32458if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32459 passed=`expr $passed + 1`
32460else
32461 failed=`expr $failed + 1`
32462fi
32463
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32465$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32466if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32467 $as_echo_n "(cached) " >&6
32468else
32469 ac_check_lib_save_LIBS=$LIBS
32470LIBS="-lxml2 $LIBS"
32471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32472/* end confdefs.h. */
32473
32474/* Override any GCC internal prototype to avoid an error.
32475 Use char because int might match the return type of a GCC
32476 builtin and then its argument prototype would still apply. */
32477#ifdef __cplusplus
32478extern "C"
32479#endif
32480char xmlCreatePushParserCtxt ();
32481int
32482main ()
32483{
32484return xmlCreatePushParserCtxt ();
32485 ;
32486 return 0;
32487}
32488_ACEOF
32489if ac_fn_c_try_link "$LINENO"; then :
32490 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32491else
32492 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32493fi
32494rm -f core conftest.err conftest.$ac_objext \
32495 conftest$ac_exeext conftest.$ac_ext
32496LIBS=$ac_check_lib_save_LIBS
32497fi
32498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32499$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32500if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32501 passed=`expr $passed + 1`
32502else
32503 failed=`expr $failed + 1`
32504fi
32505
32506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32507$as_echo_n "checking if XML package is complete... " >&6; }
32508 if test $passed -gt 0; then
32509 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032510 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32511$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032512 have_xml='no (failed tests)'
32513 LDFLAGS="$PERSIST_LDFLAGS"
32514 CPPFLAGS="$PERSIST_CPPFLAGS"
32515 else
32516 XML_LIBS='-lxml2'
32517 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032518
cristy8b350f62009-11-15 23:12:43 +000032519$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032520
cristy09b53e12011-10-14 12:47:22 +000032521 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32522$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032523 have_xml='yes'
32524 fi
32525 else
cristy09b53e12011-10-14 12:47:22 +000032526 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32527$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032528 fi
32529fi
cristy73bd4a52010-10-05 11:24:23 +000032530 if test "$have_xml" = 'yes'; then
32531 XML_DELEGATE_TRUE=
32532 XML_DELEGATE_FALSE='#'
32533else
32534 XML_DELEGATE_TRUE='#'
32535 XML_DELEGATE_FALSE=
32536fi
32537
cristy3ed852e2009-09-05 21:47:34 +000032538
32539
32540
32541# Substitute compiler name to build/link PerlMagick
32542#
32543
32544
32545#
32546# Configure install Paths
32547#
cristy7def36a2011-10-28 19:04:41 +000032548
cristy2a11bef2011-10-28 18:33:11 +000032549# Path to ImageMagick header files
32550INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032551INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32552DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032553case "${build_os}" in
32554 mingw* )
32555 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32556 ;;
32557esac
32558
32559cat >>confdefs.h <<_ACEOF
32560#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32561_ACEOF
32562
32563
cristy3ed852e2009-09-05 21:47:34 +000032564
32565# Subdirectory under lib to place ImageMagick lib files
32566LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32567
32568cat >>confdefs.h <<_ACEOF
32569#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32570_ACEOF
32571
32572
32573# Path to ImageMagick bin directory
32574EXECUTABLE_PATH="${BIN_DIR}"
32575DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32576case "${build_os}" in
32577 mingw* )
32578 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32579 ;;
32580esac
32581
32582cat >>confdefs.h <<_ACEOF
32583#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32584_ACEOF
32585
32586
32587
32588# Path to ImageMagick lib
32589LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32590DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32591case "${build_os}" in
32592 mingw* )
32593 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32594 ;;
32595esac
32596
32597cat >>confdefs.h <<_ACEOF
32598#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32599_ACEOF
32600
32601
32602
cristy3ed852e2009-09-05 21:47:34 +000032603#
32604# Subdirectory under lib to place ImageMagick coder module files
32605CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32606
32607cat >>confdefs.h <<_ACEOF
32608#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32609_ACEOF
32610
32611CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32612DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32613case "${build_os}" in
32614 mingw* )
32615 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32616 ;;
32617esac
32618
32619cat >>confdefs.h <<_ACEOF
32620#define CODER_PATH "$DEFINE_CODER_PATH"
32621_ACEOF
32622
32623
32624
32625#
32626# Subdirectory under lib to place ImageMagick filter module files
32627FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32628
32629cat >>confdefs.h <<_ACEOF
32630#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32631_ACEOF
32632
32633FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32634DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32635case "${build_os}" in
32636 mingw* )
32637 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32638 ;;
32639esac
32640
32641cat >>confdefs.h <<_ACEOF
32642#define FILTER_PATH "$DEFINE_FILTER_PATH"
32643_ACEOF
32644
32645
32646
32647#
32648# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032649DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032650DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32651DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032652case "${build_os}" in
32653 mingw* )
32654 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32655 ;;
32656esac
32657
32658cat >>confdefs.h <<_ACEOF
32659#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32660_ACEOF
32661
32662
32663
cristy2a11bef2011-10-28 18:33:11 +000032664# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032665CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032666
32667cat >>confdefs.h <<_ACEOF
32668#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32669_ACEOF
32670
cristy7def36a2011-10-28 19:04:41 +000032671CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032672DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32673case "${build_os}" in
32674 mingw* )
32675 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32676 ;;
32677esac
32678
32679cat >>confdefs.h <<_ACEOF
32680#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32681_ACEOF
32682
32683
32684
cristy2a11bef2011-10-28 18:33:11 +000032685# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032686SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032687
32688cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032689#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032690_ACEOF
32691
cristy670aa3c2011-11-03 00:54:00 +000032692SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032693DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032694case "${build_os}" in
32695 mingw* )
cristy4f820712011-04-01 12:35:43 +000032696 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032697 ;;
32698esac
32699
32700cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032701#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032702_ACEOF
32703
32704
32705
cristy408ebcd2011-11-14 01:36:57 +000032706# Subdirectory to place architecture-dependent configuration files
32707SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032708
32709cat >>confdefs.h <<_ACEOF
32710#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32711_ACEOF
32712
cristy408ebcd2011-11-14 01:36:57 +000032713SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32714DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032715case "${build_os}" in
32716 mingw* )
32717 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32718 ;;
32719esac
32720
32721cat >>confdefs.h <<_ACEOF
32722#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32723_ACEOF
32724
32725
32726
cristy3ed852e2009-09-05 21:47:34 +000032727#
32728# program_transform_name is formed for use in a Makefile, so create a
32729# modified version for use in a shell script.
32730configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32731
32732# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032733{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32734$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032736$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032737{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32738$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032739AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032740BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032741BZIPDelegateDefault='bzip2'
32742BrowseDelegateDefault='xdg-open'
32743CGMDecodeDelegateDefault='ralcgm'
32744CatDelegateDefault='cat'
32745DNGDecodeDelegateDefault='ufraw-batch'
32746GVCDecodeDelegateDefault='dot'
32747DVIDecodeDelegateDefault='dvips'
32748EchoDelegateDefault='echo'
32749EditorDelegateDefault='xterm'
32750FIGDecodeDelegateDefault='fig2dev'
32751ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32752DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32753MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32754GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032755HPGLDecodeDelegateDefault='hp2xx'
32756HTMLDecodeDelegateDefault='html2ps'
32757ILBMDecodeDelegateDefault='ilbmtoppm'
32758ILBMEncodeDelegateDefault='ppmtoilbm'
32759LPDelegateDefault='lp'
32760LPRDelegateDefault='lpr'
32761LZWDecodeDelegateDefault='uncompress'
32762LZWEncodeDelegateDefault='compress'
32763LaunchDelegateDefault='gimp'
32764MANDelegateDefault='groff'
32765MPEGDecodeDelegateDefault='ffmpeg'
32766MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032767MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032768MVDelegateDefault='mv'
32769PCLDelegateDefault='pcl6'
32770PGPDecodeDelegateDefault='pgpv'
32771POVDelegateDefault='povray'
32772if test "$native_win32_build" = 'yes'; then
32773 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032774elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032775 PSDelegateDefault='gsc'
32776else
32777 PSDelegateDefault='gs'
32778fi
32779RLEEncodeDelegateDefault='rawtorle'
32780RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032781RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032782SCANDecodeDelegateDefault='scanimage'
32783TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032784UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032785WMFDecodeDelegateDefault='wmf2eps'
32786WWWDecodeDelegateDefault='curl'
32787XPSDelegateDefault='gxps'
32788ZipDelegateDefault='gzip'
32789
32790# Search for delegates
32791# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32792set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032795if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032796 $as_echo_n "(cached) " >&6
32797else
32798 case $AutotraceDecodeDelegate in
32799 [\\/]* | ?:[\\/]*)
32800 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32801 ;;
32802 *)
32803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32804for as_dir in $PATH
32805do
32806 IFS=$as_save_IFS
32807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32810 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812 break 2
32813 fi
32814done
cristy8b350f62009-11-15 23:12:43 +000032815 done
cristy3ed852e2009-09-05 21:47:34 +000032816IFS=$as_save_IFS
32817
32818 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32819 ;;
32820esac
32821fi
32822AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32823if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo "$AutotraceDecodeDelegate" >&6; }
32826else
cristy8b350f62009-11-15 23:12:43 +000032827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828$as_echo "no" >&6; }
32829fi
32830
32831
cristy3ed852e2009-09-05 21:47:34 +000032832# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32833set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032836if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032837 $as_echo_n "(cached) " >&6
32838else
32839 case $BlenderDecodeDelegate in
32840 [\\/]* | ?:[\\/]*)
32841 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32842 ;;
32843 *)
32844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32845for as_dir in $PATH
32846do
32847 IFS=$as_save_IFS
32848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32851 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853 break 2
32854 fi
32855done
cristy8b350f62009-11-15 23:12:43 +000032856 done
cristy3ed852e2009-09-05 21:47:34 +000032857IFS=$as_save_IFS
32858
32859 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32860 ;;
32861esac
32862fi
32863BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32864if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "$BlenderDecodeDelegate" >&6; }
32867else
cristy8b350f62009-11-15 23:12:43 +000032868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo "no" >&6; }
32870fi
32871
32872
32873# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32874set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032877if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032878 $as_echo_n "(cached) " >&6
32879else
32880 case $BZIPDelegate in
32881 [\\/]* | ?:[\\/]*)
32882 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32883 ;;
32884 *)
32885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32886for as_dir in $PATH
32887do
32888 IFS=$as_save_IFS
32889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32892 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894 break 2
32895 fi
32896done
cristy8b350f62009-11-15 23:12:43 +000032897 done
cristy3ed852e2009-09-05 21:47:34 +000032898IFS=$as_save_IFS
32899
32900 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32901 ;;
32902esac
32903fi
32904BZIPDelegate=$ac_cv_path_BZIPDelegate
32905if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "$BZIPDelegate" >&6; }
32908else
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo "no" >&6; }
32911fi
32912
32913
32914# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32915set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032918if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032919 $as_echo_n "(cached) " >&6
32920else
32921 case $BrowseDelegate in
32922 [\\/]* | ?:[\\/]*)
32923 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32924 ;;
32925 *)
32926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32927for as_dir in $PATH
32928do
32929 IFS=$as_save_IFS
32930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32933 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935 break 2
32936 fi
32937done
cristy8b350f62009-11-15 23:12:43 +000032938 done
cristy3ed852e2009-09-05 21:47:34 +000032939IFS=$as_save_IFS
32940
32941 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32942 ;;
32943esac
32944fi
32945BrowseDelegate=$ac_cv_path_BrowseDelegate
32946if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo "$BrowseDelegate" >&6; }
32949else
cristy8b350f62009-11-15 23:12:43 +000032950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951$as_echo "no" >&6; }
32952fi
32953
32954
32955# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32956set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032959if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032960 $as_echo_n "(cached) " >&6
32961else
32962 case $CGMDecodeDelegate in
32963 [\\/]* | ?:[\\/]*)
32964 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32965 ;;
32966 *)
32967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32968for as_dir in $PATH
32969do
32970 IFS=$as_save_IFS
32971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32974 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976 break 2
32977 fi
32978done
cristy8b350f62009-11-15 23:12:43 +000032979 done
cristy3ed852e2009-09-05 21:47:34 +000032980IFS=$as_save_IFS
32981
32982 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32983 ;;
32984esac
32985fi
32986CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32987if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo "$CGMDecodeDelegate" >&6; }
32990else
cristy8b350f62009-11-15 23:12:43 +000032991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo "no" >&6; }
32993fi
32994
32995
32996# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32997set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033000if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033001 $as_echo_n "(cached) " >&6
33002else
33003 case $CatDelegate in
33004 [\\/]* | ?:[\\/]*)
33005 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33006 ;;
33007 *)
33008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33009for as_dir in $PATH
33010do
33011 IFS=$as_save_IFS
33012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33015 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017 break 2
33018 fi
33019done
cristy8b350f62009-11-15 23:12:43 +000033020 done
cristy3ed852e2009-09-05 21:47:34 +000033021IFS=$as_save_IFS
33022
33023 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33024 ;;
33025esac
33026fi
33027CatDelegate=$ac_cv_path_CatDelegate
33028if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "$CatDelegate" >&6; }
33031else
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "no" >&6; }
33034fi
33035
33036
33037# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33038set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033041if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033042 $as_echo_n "(cached) " >&6
33043else
33044 case $DNGDecodeDelegate in
33045 [\\/]* | ?:[\\/]*)
33046 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33047 ;;
33048 *)
33049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33050for as_dir in $PATH
33051do
33052 IFS=$as_save_IFS
33053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33056 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058 break 2
33059 fi
33060done
cristy8b350f62009-11-15 23:12:43 +000033061 done
cristy3ed852e2009-09-05 21:47:34 +000033062IFS=$as_save_IFS
33063
33064 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33065 ;;
33066esac
33067fi
33068DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33069if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo "$DNGDecodeDelegate" >&6; }
33072else
cristy8b350f62009-11-15 23:12:43 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo "no" >&6; }
33075fi
33076
33077
33078# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33079set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033082if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033083 $as_echo_n "(cached) " >&6
33084else
33085 case $GVCDecodeDelegate in
33086 [\\/]* | ?:[\\/]*)
33087 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33088 ;;
33089 *)
33090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33091for as_dir in $PATH
33092do
33093 IFS=$as_save_IFS
33094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33097 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099 break 2
33100 fi
33101done
cristy8b350f62009-11-15 23:12:43 +000033102 done
cristy3ed852e2009-09-05 21:47:34 +000033103IFS=$as_save_IFS
33104
33105 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33106 ;;
33107esac
33108fi
33109GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33110if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo "$GVCDecodeDelegate" >&6; }
33113else
cristy8b350f62009-11-15 23:12:43 +000033114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo "no" >&6; }
33116fi
33117
33118
33119# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33120set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033123if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033124 $as_echo_n "(cached) " >&6
33125else
33126 case $DVIDecodeDelegate in
33127 [\\/]* | ?:[\\/]*)
33128 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33129 ;;
33130 *)
33131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33132for as_dir in $PATH
33133do
33134 IFS=$as_save_IFS
33135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33138 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140 break 2
33141 fi
33142done
cristy8b350f62009-11-15 23:12:43 +000033143 done
cristy3ed852e2009-09-05 21:47:34 +000033144IFS=$as_save_IFS
33145
33146 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33147 ;;
33148esac
33149fi
33150DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33151if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo "$DVIDecodeDelegate" >&6; }
33154else
cristy8b350f62009-11-15 23:12:43 +000033155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo "no" >&6; }
33157fi
33158
33159
33160# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33161set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033163$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033164if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033165 $as_echo_n "(cached) " >&6
33166else
33167 case $EchoDelegate in
33168 [\\/]* | ?:[\\/]*)
33169 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33170 ;;
33171 *)
33172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33173for as_dir in $PATH
33174do
33175 IFS=$as_save_IFS
33176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33179 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033181 break 2
33182 fi
33183done
cristy8b350f62009-11-15 23:12:43 +000033184 done
cristy3ed852e2009-09-05 21:47:34 +000033185IFS=$as_save_IFS
33186
33187 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33188 ;;
33189esac
33190fi
33191EchoDelegate=$ac_cv_path_EchoDelegate
33192if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo "$EchoDelegate" >&6; }
33195else
cristy8b350f62009-11-15 23:12:43 +000033196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo "no" >&6; }
33198fi
33199
33200
33201# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33202set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033205if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033206 $as_echo_n "(cached) " >&6
33207else
33208 case $EditorDelegate in
33209 [\\/]* | ?:[\\/]*)
33210 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33211 ;;
33212 *)
33213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33214for as_dir in $PATH
33215do
33216 IFS=$as_save_IFS
33217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33220 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033222 break 2
33223 fi
33224done
cristy8b350f62009-11-15 23:12:43 +000033225 done
cristy3ed852e2009-09-05 21:47:34 +000033226IFS=$as_save_IFS
33227
33228 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33229 ;;
33230esac
33231fi
33232EditorDelegate=$ac_cv_path_EditorDelegate
33233if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033235$as_echo "$EditorDelegate" >&6; }
33236else
cristy8b350f62009-11-15 23:12:43 +000033237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo "no" >&6; }
33239fi
33240
33241
33242# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33243set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033246if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033247 $as_echo_n "(cached) " >&6
33248else
33249 case $FIGDecodeDelegate in
33250 [\\/]* | ?:[\\/]*)
33251 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33252 ;;
33253 *)
33254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33255for as_dir in $PATH
33256do
33257 IFS=$as_save_IFS
33258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33261 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033263 break 2
33264 fi
33265done
cristy8b350f62009-11-15 23:12:43 +000033266 done
cristy3ed852e2009-09-05 21:47:34 +000033267IFS=$as_save_IFS
33268
33269 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33270 ;;
33271esac
33272fi
33273FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33274if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo "$FIGDecodeDelegate" >&6; }
33277else
cristy8b350f62009-11-15 23:12:43 +000033278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo "no" >&6; }
33280fi
33281
33282
33283# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33284set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033286$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033287if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033288 $as_echo_n "(cached) " >&6
33289else
33290 case $ConvertDelegate in
33291 [\\/]* | ?:[\\/]*)
33292 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33293 ;;
33294 *)
33295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33296for as_dir in $PATH
33297do
33298 IFS=$as_save_IFS
33299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33302 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033304 break 2
33305 fi
33306done
cristy8b350f62009-11-15 23:12:43 +000033307 done
cristy3ed852e2009-09-05 21:47:34 +000033308IFS=$as_save_IFS
33309
33310 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33311 ;;
33312esac
33313fi
33314ConvertDelegate=$ac_cv_path_ConvertDelegate
33315if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo "$ConvertDelegate" >&6; }
33318else
cristy8b350f62009-11-15 23:12:43 +000033319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo "no" >&6; }
33321fi
33322
33323
33324# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33325set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033328if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033329 $as_echo_n "(cached) " >&6
33330else
33331 case $DisplayDelegate in
33332 [\\/]* | ?:[\\/]*)
33333 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33334 ;;
33335 *)
33336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33337for as_dir in $PATH
33338do
33339 IFS=$as_save_IFS
33340 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33343 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033345 break 2
33346 fi
33347done
cristy8b350f62009-11-15 23:12:43 +000033348 done
cristy3ed852e2009-09-05 21:47:34 +000033349IFS=$as_save_IFS
33350
33351 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33352 ;;
33353esac
33354fi
33355DisplayDelegate=$ac_cv_path_DisplayDelegate
33356if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo "$DisplayDelegate" >&6; }
33359else
cristy8b350f62009-11-15 23:12:43 +000033360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo "no" >&6; }
33362fi
33363
33364
33365# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33366set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033369if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033370 $as_echo_n "(cached) " >&6
33371else
33372 case $MogrifyDelegate in
33373 [\\/]* | ?:[\\/]*)
33374 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33375 ;;
33376 *)
33377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33378for as_dir in $PATH
33379do
33380 IFS=$as_save_IFS
33381 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33384 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033386 break 2
33387 fi
33388done
cristy8b350f62009-11-15 23:12:43 +000033389 done
cristy3ed852e2009-09-05 21:47:34 +000033390IFS=$as_save_IFS
33391
33392 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33393 ;;
33394esac
33395fi
33396MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33397if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033399$as_echo "$MogrifyDelegate" >&6; }
33400else
cristy8b350f62009-11-15 23:12:43 +000033401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo "no" >&6; }
33403fi
33404
33405
33406# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33407set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033410if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033411 $as_echo_n "(cached) " >&6
33412else
33413 case $GnuplotDecodeDelegate in
33414 [\\/]* | ?:[\\/]*)
33415 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33416 ;;
33417 *)
33418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33419for as_dir in $PATH
33420do
33421 IFS=$as_save_IFS
33422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33425 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033427 break 2
33428 fi
33429done
cristy8b350f62009-11-15 23:12:43 +000033430 done
cristy3ed852e2009-09-05 21:47:34 +000033431IFS=$as_save_IFS
33432
33433 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33434 ;;
33435esac
33436fi
33437GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33438if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033440$as_echo "$GnuplotDecodeDelegate" >&6; }
33441else
cristy8b350f62009-11-15 23:12:43 +000033442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo "no" >&6; }
33444fi
33445
33446
cristy3ed852e2009-09-05 21:47:34 +000033447# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33448set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033451if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033452 $as_echo_n "(cached) " >&6
33453else
33454 case $HPGLDecodeDelegate in
33455 [\\/]* | ?:[\\/]*)
33456 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33457 ;;
33458 *)
33459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33460for as_dir in $PATH
33461do
33462 IFS=$as_save_IFS
33463 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33466 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033468 break 2
33469 fi
33470done
cristy8b350f62009-11-15 23:12:43 +000033471 done
cristy3ed852e2009-09-05 21:47:34 +000033472IFS=$as_save_IFS
33473
33474 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33475 ;;
33476esac
33477fi
33478HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33479if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033481$as_echo "$HPGLDecodeDelegate" >&6; }
33482else
cristy8b350f62009-11-15 23:12:43 +000033483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484$as_echo "no" >&6; }
33485fi
33486
33487
33488# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33489set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033492if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033493 $as_echo_n "(cached) " >&6
33494else
33495 case $HTMLDecodeDelegate in
33496 [\\/]* | ?:[\\/]*)
33497 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33498 ;;
33499 *)
33500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33501for as_dir in $PATH
33502do
33503 IFS=$as_save_IFS
33504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33507 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033509 break 2
33510 fi
33511done
cristy8b350f62009-11-15 23:12:43 +000033512 done
cristy3ed852e2009-09-05 21:47:34 +000033513IFS=$as_save_IFS
33514
33515 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33516 ;;
33517esac
33518fi
33519HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33520if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033522$as_echo "$HTMLDecodeDelegate" >&6; }
33523else
cristy8b350f62009-11-15 23:12:43 +000033524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo "no" >&6; }
33526fi
33527
33528
33529# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33530set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033533if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033534 $as_echo_n "(cached) " >&6
33535else
33536 case $ILBMDecodeDelegate in
33537 [\\/]* | ?:[\\/]*)
33538 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33539 ;;
33540 *)
33541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33542for as_dir in $PATH
33543do
33544 IFS=$as_save_IFS
33545 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33548 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550 break 2
33551 fi
33552done
cristy8b350f62009-11-15 23:12:43 +000033553 done
cristy3ed852e2009-09-05 21:47:34 +000033554IFS=$as_save_IFS
33555
33556 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33557 ;;
33558esac
33559fi
33560ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33561if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo "$ILBMDecodeDelegate" >&6; }
33564else
cristy8b350f62009-11-15 23:12:43 +000033565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo "no" >&6; }
33567fi
33568
33569
33570# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33571set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033574if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033575 $as_echo_n "(cached) " >&6
33576else
33577 case $ILBMEncodeDelegate in
33578 [\\/]* | ?:[\\/]*)
33579 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33580 ;;
33581 *)
33582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33583for as_dir in $PATH
33584do
33585 IFS=$as_save_IFS
33586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33589 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591 break 2
33592 fi
33593done
cristy8b350f62009-11-15 23:12:43 +000033594 done
cristy3ed852e2009-09-05 21:47:34 +000033595IFS=$as_save_IFS
33596
33597 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33598 ;;
33599esac
33600fi
33601ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33602if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033604$as_echo "$ILBMEncodeDelegate" >&6; }
33605else
cristy8b350f62009-11-15 23:12:43 +000033606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607$as_echo "no" >&6; }
33608fi
33609
33610
33611# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33612set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033615if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033616 $as_echo_n "(cached) " >&6
33617else
33618 case $LPDelegate in
33619 [\\/]* | ?:[\\/]*)
33620 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33621 ;;
33622 *)
33623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33624for as_dir in $PATH
33625do
33626 IFS=$as_save_IFS
33627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33630 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033632 break 2
33633 fi
33634done
cristy8b350f62009-11-15 23:12:43 +000033635 done
cristy3ed852e2009-09-05 21:47:34 +000033636IFS=$as_save_IFS
33637
33638 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33639 ;;
33640esac
33641fi
33642LPDelegate=$ac_cv_path_LPDelegate
33643if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033645$as_echo "$LPDelegate" >&6; }
33646else
cristy8b350f62009-11-15 23:12:43 +000033647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033648$as_echo "no" >&6; }
33649fi
33650
33651
33652# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33653set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033656if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033657 $as_echo_n "(cached) " >&6
33658else
33659 case $LPRDelegate in
33660 [\\/]* | ?:[\\/]*)
33661 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33662 ;;
33663 *)
33664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33665for as_dir in $PATH
33666do
33667 IFS=$as_save_IFS
33668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33671 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033673 break 2
33674 fi
33675done
cristy8b350f62009-11-15 23:12:43 +000033676 done
cristy3ed852e2009-09-05 21:47:34 +000033677IFS=$as_save_IFS
33678
33679 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33680 ;;
33681esac
33682fi
33683LPRDelegate=$ac_cv_path_LPRDelegate
33684if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033686$as_echo "$LPRDelegate" >&6; }
33687else
cristy8b350f62009-11-15 23:12:43 +000033688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689$as_echo "no" >&6; }
33690fi
33691
33692
33693# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33694set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033697if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033698 $as_echo_n "(cached) " >&6
33699else
33700 case $LZWDecodeDelegate in
33701 [\\/]* | ?:[\\/]*)
33702 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33703 ;;
33704 *)
33705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33706for as_dir in $PATH
33707do
33708 IFS=$as_save_IFS
33709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33712 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714 break 2
33715 fi
33716done
cristy8b350f62009-11-15 23:12:43 +000033717 done
cristy3ed852e2009-09-05 21:47:34 +000033718IFS=$as_save_IFS
33719
33720 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33721 ;;
33722esac
33723fi
33724LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33725if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033727$as_echo "$LZWDecodeDelegate" >&6; }
33728else
cristy8b350f62009-11-15 23:12:43 +000033729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo "no" >&6; }
33731fi
33732
33733
33734# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33735set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033738if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033739 $as_echo_n "(cached) " >&6
33740else
33741 case $LZWEncodeDelegate in
33742 [\\/]* | ?:[\\/]*)
33743 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33744 ;;
33745 *)
33746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33747for as_dir in $PATH
33748do
33749 IFS=$as_save_IFS
33750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33753 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033755 break 2
33756 fi
33757done
cristy8b350f62009-11-15 23:12:43 +000033758 done
cristy3ed852e2009-09-05 21:47:34 +000033759IFS=$as_save_IFS
33760
33761 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33762 ;;
33763esac
33764fi
33765LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33766if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033768$as_echo "$LZWEncodeDelegate" >&6; }
33769else
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo "no" >&6; }
33772fi
33773
33774
33775# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33776set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033779if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033780 $as_echo_n "(cached) " >&6
33781else
33782 case $LaunchDelegate in
33783 [\\/]* | ?:[\\/]*)
33784 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33785 ;;
33786 *)
33787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33788for as_dir in $PATH
33789do
33790 IFS=$as_save_IFS
33791 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33794 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796 break 2
33797 fi
33798done
cristy8b350f62009-11-15 23:12:43 +000033799 done
cristy3ed852e2009-09-05 21:47:34 +000033800IFS=$as_save_IFS
33801
33802 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33803 ;;
33804esac
33805fi
33806LaunchDelegate=$ac_cv_path_LaunchDelegate
33807if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033809$as_echo "$LaunchDelegate" >&6; }
33810else
cristy8b350f62009-11-15 23:12:43 +000033811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033812$as_echo "no" >&6; }
33813fi
33814
33815
33816# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33817set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033820if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033821 $as_echo_n "(cached) " >&6
33822else
33823 case $MANDelegate in
33824 [\\/]* | ?:[\\/]*)
33825 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33826 ;;
33827 *)
33828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33829for as_dir in $PATH
33830do
33831 IFS=$as_save_IFS
33832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33835 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033837 break 2
33838 fi
33839done
cristy8b350f62009-11-15 23:12:43 +000033840 done
cristy3ed852e2009-09-05 21:47:34 +000033841IFS=$as_save_IFS
33842
33843 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33844 ;;
33845esac
33846fi
33847MANDelegate=$ac_cv_path_MANDelegate
33848if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033850$as_echo "$MANDelegate" >&6; }
33851else
cristy8b350f62009-11-15 23:12:43 +000033852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853$as_echo "no" >&6; }
33854fi
33855
33856
33857# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33858set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033861if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033862 $as_echo_n "(cached) " >&6
33863else
33864 case $MPEGDecodeDelegate in
33865 [\\/]* | ?:[\\/]*)
33866 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33867 ;;
33868 *)
33869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33870for as_dir in $PATH
33871do
33872 IFS=$as_save_IFS
33873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33876 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033878 break 2
33879 fi
33880done
cristy8b350f62009-11-15 23:12:43 +000033881 done
cristy3ed852e2009-09-05 21:47:34 +000033882IFS=$as_save_IFS
33883
33884 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33885 ;;
33886esac
33887fi
33888MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33889if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033891$as_echo "$MPEGDecodeDelegate" >&6; }
33892else
cristy8b350f62009-11-15 23:12:43 +000033893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894$as_echo "no" >&6; }
33895fi
33896
33897
33898# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33899set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033902if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033903 $as_echo_n "(cached) " >&6
33904else
33905 case $MPEGEncodeDelegate in
33906 [\\/]* | ?:[\\/]*)
33907 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33908 ;;
33909 *)
33910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33911for as_dir in $PATH
33912do
33913 IFS=$as_save_IFS
33914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33917 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033919 break 2
33920 fi
33921done
cristy8b350f62009-11-15 23:12:43 +000033922 done
cristy3ed852e2009-09-05 21:47:34 +000033923IFS=$as_save_IFS
33924
33925 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33926 ;;
33927esac
33928fi
33929MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33930if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033932$as_echo "$MPEGEncodeDelegate" >&6; }
33933else
cristy8b350f62009-11-15 23:12:43 +000033934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033935$as_echo "no" >&6; }
33936fi
33937
33938
cristy935c86e2010-06-05 23:50:07 +000033939# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33940set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033943if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033944 $as_echo_n "(cached) " >&6
33945else
33946 case $MrSIDDecodeDelegate in
33947 [\\/]* | ?:[\\/]*)
33948 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33949 ;;
33950 *)
33951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33952for as_dir in $PATH
33953do
33954 IFS=$as_save_IFS
33955 test -z "$as_dir" && as_dir=.
33956 for ac_exec_ext in '' $ac_executable_extensions; do
33957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33958 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33960 break 2
33961 fi
33962done
33963 done
33964IFS=$as_save_IFS
33965
33966 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33967 ;;
33968esac
33969fi
33970MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33971if test -n "$MrSIDDecodeDelegate"; then
33972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33973$as_echo "$MrSIDDecodeDelegate" >&6; }
33974else
33975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33976$as_echo "no" >&6; }
33977fi
33978
33979
cristy3ed852e2009-09-05 21:47:34 +000033980# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33981set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033984if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033985 $as_echo_n "(cached) " >&6
33986else
33987 case $MVDelegate in
33988 [\\/]* | ?:[\\/]*)
33989 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33990 ;;
33991 *)
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 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33999 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034001 break 2
34002 fi
34003done
cristy8b350f62009-11-15 23:12:43 +000034004 done
cristy3ed852e2009-09-05 21:47:34 +000034005IFS=$as_save_IFS
34006
34007 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34008 ;;
34009esac
34010fi
34011MVDelegate=$ac_cv_path_MVDelegate
34012if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034014$as_echo "$MVDelegate" >&6; }
34015else
cristy8b350f62009-11-15 23:12:43 +000034016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034017$as_echo "no" >&6; }
34018fi
34019
34020
34021# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34022set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034024$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034025if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034026 $as_echo_n "(cached) " >&6
34027else
34028 case $PCLDelegate in
34029 [\\/]* | ?:[\\/]*)
34030 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34031 ;;
34032 *)
34033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34034for as_dir in $PATH
34035do
34036 IFS=$as_save_IFS
34037 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34040 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034042 break 2
34043 fi
34044done
cristy8b350f62009-11-15 23:12:43 +000034045 done
cristy3ed852e2009-09-05 21:47:34 +000034046IFS=$as_save_IFS
34047
34048 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34049 ;;
34050esac
34051fi
34052PCLDelegate=$ac_cv_path_PCLDelegate
34053if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034055$as_echo "$PCLDelegate" >&6; }
34056else
cristy8b350f62009-11-15 23:12:43 +000034057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034058$as_echo "no" >&6; }
34059fi
34060
34061
34062# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34063set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034066if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034067 $as_echo_n "(cached) " >&6
34068else
34069 case $PGPDecodeDelegate in
34070 [\\/]* | ?:[\\/]*)
34071 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34072 ;;
34073 *)
34074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34075for as_dir in $PATH
34076do
34077 IFS=$as_save_IFS
34078 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34081 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034083 break 2
34084 fi
34085done
cristy8b350f62009-11-15 23:12:43 +000034086 done
cristy3ed852e2009-09-05 21:47:34 +000034087IFS=$as_save_IFS
34088
34089 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34090 ;;
34091esac
34092fi
34093PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34094if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034096$as_echo "$PGPDecodeDelegate" >&6; }
34097else
cristy8b350f62009-11-15 23:12:43 +000034098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034099$as_echo "no" >&6; }
34100fi
34101
34102
34103# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34104set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034106$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034107if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034108 $as_echo_n "(cached) " >&6
34109else
34110 case $POVDelegate in
34111 [\\/]* | ?:[\\/]*)
34112 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34113 ;;
34114 *)
34115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34116for as_dir in $PATH
34117do
34118 IFS=$as_save_IFS
34119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34122 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034124 break 2
34125 fi
34126done
cristy8b350f62009-11-15 23:12:43 +000034127 done
cristy3ed852e2009-09-05 21:47:34 +000034128IFS=$as_save_IFS
34129
34130 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34131 ;;
34132esac
34133fi
34134POVDelegate=$ac_cv_path_POVDelegate
34135if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034137$as_echo "$POVDelegate" >&6; }
34138else
cristy8b350f62009-11-15 23:12:43 +000034139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034140$as_echo "no" >&6; }
34141fi
34142
34143
34144for ac_prog in gsx gsc "$PSDelegateDefault"
34145do
34146 # Extract the first word of "$ac_prog", so it can be a program name with args.
34147set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034149$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034150if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034151 $as_echo_n "(cached) " >&6
34152else
34153 case $PSDelegate in
34154 [\\/]* | ?:[\\/]*)
34155 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34156 ;;
34157 *)
34158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34159for as_dir in $PATH
34160do
34161 IFS=$as_save_IFS
34162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34165 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034167 break 2
34168 fi
34169done
cristy8b350f62009-11-15 23:12:43 +000034170 done
cristy3ed852e2009-09-05 21:47:34 +000034171IFS=$as_save_IFS
34172
34173 ;;
34174esac
34175fi
34176PSDelegate=$ac_cv_path_PSDelegate
34177if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034179$as_echo "$PSDelegate" >&6; }
34180else
cristy8b350f62009-11-15 23:12:43 +000034181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034182$as_echo "no" >&6; }
34183fi
34184
34185
34186 test -n "$PSDelegate" && break
34187done
34188test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34189
34190# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34191set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034194if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034195 $as_echo_n "(cached) " >&6
34196else
34197 case $RLEEncodeDelegate in
34198 [\\/]* | ?:[\\/]*)
34199 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34200 ;;
34201 *)
34202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34203for as_dir in $PATH
34204do
34205 IFS=$as_save_IFS
34206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34209 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211 break 2
34212 fi
34213done
cristy8b350f62009-11-15 23:12:43 +000034214 done
cristy3ed852e2009-09-05 21:47:34 +000034215IFS=$as_save_IFS
34216
34217 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34218 ;;
34219esac
34220fi
34221RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34222if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034224$as_echo "$RLEEncodeDelegate" >&6; }
34225else
cristy8b350f62009-11-15 23:12:43 +000034226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo "no" >&6; }
34228fi
34229
34230
34231# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34232set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034235if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034236 $as_echo_n "(cached) " >&6
34237else
34238 case $RMDelegate in
34239 [\\/]* | ?:[\\/]*)
34240 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34241 ;;
34242 *)
34243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34244for as_dir in $PATH
34245do
34246 IFS=$as_save_IFS
34247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34250 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034252 break 2
34253 fi
34254done
cristy8b350f62009-11-15 23:12:43 +000034255 done
cristy3ed852e2009-09-05 21:47:34 +000034256IFS=$as_save_IFS
34257
34258 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34259 ;;
34260esac
34261fi
34262RMDelegate=$ac_cv_path_RMDelegate
34263if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034265$as_echo "$RMDelegate" >&6; }
34266else
cristy8b350f62009-11-15 23:12:43 +000034267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268$as_echo "no" >&6; }
34269fi
34270
34271
cristy4689cf02010-02-17 21:15:45 +000034272# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34273set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034276if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034277 $as_echo_n "(cached) " >&6
34278else
34279 case $RSVGDecodeDelegate in
34280 [\\/]* | ?:[\\/]*)
34281 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34282 ;;
34283 *)
34284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34285for as_dir in $PATH
34286do
34287 IFS=$as_save_IFS
34288 test -z "$as_dir" && as_dir=.
34289 for ac_exec_ext in '' $ac_executable_extensions; do
34290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34291 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34293 break 2
34294 fi
34295done
34296 done
34297IFS=$as_save_IFS
34298
34299 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34300 ;;
34301esac
34302fi
34303RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34304if test -n "$RSVGDecodeDelegate"; then
34305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34306$as_echo "$RSVGDecodeDelegate" >&6; }
34307else
34308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34309$as_echo "no" >&6; }
34310fi
34311
34312
cristy3ed852e2009-09-05 21:47:34 +000034313# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34314set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034316$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034317if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034318 $as_echo_n "(cached) " >&6
34319else
34320 case $SCANDecodeDelegate in
34321 [\\/]* | ?:[\\/]*)
34322 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34323 ;;
34324 *)
34325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34326for as_dir in $PATH
34327do
34328 IFS=$as_save_IFS
34329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34332 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034334 break 2
34335 fi
34336done
cristy8b350f62009-11-15 23:12:43 +000034337 done
cristy3ed852e2009-09-05 21:47:34 +000034338IFS=$as_save_IFS
34339
34340 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34341 ;;
34342esac
34343fi
34344SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34345if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034347$as_echo "$SCANDecodeDelegate" >&6; }
34348else
cristy8b350f62009-11-15 23:12:43 +000034349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034350$as_echo "no" >&6; }
34351fi
34352
34353
34354# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34355set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034358if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034359 $as_echo_n "(cached) " >&6
34360else
34361 case $TXTDelegate in
34362 [\\/]* | ?:[\\/]*)
34363 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34364 ;;
34365 *)
34366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34367for as_dir in $PATH
34368do
34369 IFS=$as_save_IFS
34370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34373 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034375 break 2
34376 fi
34377done
cristy8b350f62009-11-15 23:12:43 +000034378 done
cristy3ed852e2009-09-05 21:47:34 +000034379IFS=$as_save_IFS
34380
34381 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34382 ;;
34383esac
34384fi
34385TXTDelegate=$ac_cv_path_TXTDelegate
34386if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034388$as_echo "$TXTDelegate" >&6; }
34389else
cristy8b350f62009-11-15 23:12:43 +000034390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo "no" >&6; }
34392fi
34393
34394
cristy5ac9ac82010-07-29 13:24:24 +000034395# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34396set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034399if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034400 $as_echo_n "(cached) " >&6
34401else
34402 case $UniconvertorDelegate in
34403 [\\/]* | ?:[\\/]*)
34404 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34405 ;;
34406 *)
34407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34408for as_dir in $PATH
34409do
34410 IFS=$as_save_IFS
34411 test -z "$as_dir" && as_dir=.
34412 for ac_exec_ext in '' $ac_executable_extensions; do
34413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34414 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34416 break 2
34417 fi
34418done
34419 done
34420IFS=$as_save_IFS
34421
34422 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34423 ;;
34424esac
34425fi
34426UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34427if test -n "$UniconvertorDelegate"; then
34428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34429$as_echo "$UniconvertorDelegate" >&6; }
34430else
34431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34432$as_echo "no" >&6; }
34433fi
34434
34435
cristy3ed852e2009-09-05 21:47:34 +000034436# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34437set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034439$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034440if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034441 $as_echo_n "(cached) " >&6
34442else
34443 case $WMFDecodeDelegate in
34444 [\\/]* | ?:[\\/]*)
34445 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34446 ;;
34447 *)
34448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34449for as_dir in $PATH
34450do
34451 IFS=$as_save_IFS
34452 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34455 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034457 break 2
34458 fi
34459done
cristy8b350f62009-11-15 23:12:43 +000034460 done
cristy3ed852e2009-09-05 21:47:34 +000034461IFS=$as_save_IFS
34462
34463 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34464 ;;
34465esac
34466fi
34467WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34468if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034470$as_echo "$WMFDecodeDelegate" >&6; }
34471else
cristy8b350f62009-11-15 23:12:43 +000034472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034473$as_echo "no" >&6; }
34474fi
34475
34476
34477# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34478set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034480$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034481if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034482 $as_echo_n "(cached) " >&6
34483else
34484 case $WWWDecodeDelegate in
34485 [\\/]* | ?:[\\/]*)
34486 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34487 ;;
34488 *)
34489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34490for as_dir in $PATH
34491do
34492 IFS=$as_save_IFS
34493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34496 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034498 break 2
34499 fi
34500done
cristy8b350f62009-11-15 23:12:43 +000034501 done
cristy3ed852e2009-09-05 21:47:34 +000034502IFS=$as_save_IFS
34503
34504 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34505 ;;
34506esac
34507fi
34508WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34509if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034511$as_echo "$WWWDecodeDelegate" >&6; }
34512else
cristy8b350f62009-11-15 23:12:43 +000034513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034514$as_echo "no" >&6; }
34515fi
34516
34517
34518# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34519set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034522if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034523 $as_echo_n "(cached) " >&6
34524else
34525 case $XPSDelegate in
34526 [\\/]* | ?:[\\/]*)
34527 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34528 ;;
34529 *)
34530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34531for as_dir in $PATH
34532do
34533 IFS=$as_save_IFS
34534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34537 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034539 break 2
34540 fi
34541done
cristy8b350f62009-11-15 23:12:43 +000034542 done
cristy3ed852e2009-09-05 21:47:34 +000034543IFS=$as_save_IFS
34544
34545 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34546 ;;
34547esac
34548fi
34549XPSDelegate=$ac_cv_path_XPSDelegate
34550if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034552$as_echo "$XPSDelegate" >&6; }
34553else
cristy8b350f62009-11-15 23:12:43 +000034554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034555$as_echo "no" >&6; }
34556fi
34557
34558
34559# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34560set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034562$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034563if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034564 $as_echo_n "(cached) " >&6
34565else
34566 case $ZipDelegate in
34567 [\\/]* | ?:[\\/]*)
34568 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34569 ;;
34570 *)
34571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34572for as_dir in $PATH
34573do
34574 IFS=$as_save_IFS
34575 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34578 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034580 break 2
34581 fi
34582done
cristy8b350f62009-11-15 23:12:43 +000034583 done
cristy3ed852e2009-09-05 21:47:34 +000034584IFS=$as_save_IFS
34585
34586 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34587 ;;
34588esac
34589fi
34590ZipDelegate=$ac_cv_path_ZipDelegate
34591if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034593$as_echo "$ZipDelegate" >&6; }
34594else
cristy8b350f62009-11-15 23:12:43 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034596$as_echo "no" >&6; }
34597fi
34598
34599
34600
34601# Prefer lpr to lp; lp needs options tacked on.
34602if test "$LPRDelegate" != no; then
34603 PrintDelegate="$LPRDelegate"
34604else
34605 PrintDelegate="$LPDelegate -c -s"
34606fi
34607
34608
34609# Installed ImageMagick utiltity paths
34610ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34611DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34612MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34613
34614# Set delegate booleans
34615have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34616have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34617have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34618have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34619have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034620have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034621have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34622have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034623have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34624have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34625
34626#
34627# Test for font directories
34628#
34629type_include_files=''
34630
cristy430a7312010-01-21 20:44:04 +000034631# Dejavu fonts.
34632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34633$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34634dejavu_font_dir=''
34635if test "${with_dejavu_font_dir}" != 'default'; then
34636 dejavu_font_dir="${with_dejavu_font_dir}/"
34637else
34638 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34639 if test -f "${font_dir}DejaVuSerif.ttf"; then
34640 dejavu_font_dir="${font_dir}"
34641 break 1
34642 fi
34643 done
34644fi
34645if test "${dejavu_font_dir}x" != 'x'; then
34646 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034647 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34648$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034649else
cristy09b53e12011-10-14 12:47:22 +000034650 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34651$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034652fi
34653
34654
cristy3ed852e2009-09-05 21:47:34 +000034655# Windows
34656windows_font_dir=''
34657if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34658 windows_font_dir="${with_windows_font_dir}/"
34659fi
cristy430a7312010-01-21 20:44:04 +000034660if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034661 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34662 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34663 fi
34664 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34665 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34666 fi
34667 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34668 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34669 fi
34670fi
cristy430a7312010-01-21 20:44:04 +000034671if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034672 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34673fi
34674
34675
34676# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034678$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34679ghostscript_font_dir=''
34680if test "${with_gs_font_dir}" != 'default'; then
34681 ghostscript_font_dir="${with_gs_font_dir}/"
34682else
34683 if test "${native_win32_build}" = 'yes'; then
34684 # Native Windows Build
34685 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34686 if test -f "${font_dir}a010013l.pfb"; then
34687 ghostscript_font_dir="$font_dir"
34688 break 1
34689 fi
34690 done
34691 if test "${PSDelegate}" != 'gswin32c'; then
34692 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34693 fi
34694 else
34695 # Linux / Mac OS X / Unix Build
34696 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
34697 if test -f "${font_dir}a010013l.pfb"; then
34698 ghostscript_font_dir="${font_dir}"
34699 break 1
34700 fi
34701 done
34702 if test "${ghostscript_font_dir}x" = 'x'; then
34703 if test "$PSDelegate" != 'gs'; then
34704 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34705 fi
34706 fi
34707 fi
34708fi
34709if test "${ghostscript_font_dir}x" != 'x'; then
34710 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034711 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34712$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034713else
cristy09b53e12011-10-14 12:47:22 +000034714 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34715$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034716fi
34717
34718case "${build_os}" in
34719 mingw* )
34720 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34721 ;;
34722esac
34723
34724
34725
34726#
34727# Handle case where user doesn't want frozen paths
34728#
34729if test "$with_frozenpaths" != 'yes'; then
34730 # Re-set delegate definitions to default (no paths)
34731 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034732 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34733 BZIPDelegate="$BZIPDelegateDefault"
34734 BrowseDelegate="$BrowseDelegateDefault"
34735 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34736 CatDelegate="$CatDelegateDefault"
34737 ConvertDelegate="$ConvertDelegateDefault"
34738 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34739 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34740 EchoDelegate="$EchoDelegateDefault"
34741 EditorDelegate="$EditorDelegateDefault"
34742 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34743 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34744 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34745 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34746 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34747 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34748 LPDelegate="$LPDelegateDefault"
34749 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34750 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34751 LaunchDelegate="$LaunchDelegateDefault"
34752 MANDelegate="$MANDelegateDefault"
34753 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34754 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034755 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034756 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34757 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034758 PCLDelegate="$PCLDelegateDefault"
34759 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34760 POVDelegate="$POVDelegateDefault"
34761 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034762 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34763 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034764 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034765 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34766 ShowImageDelegate="$ShowImageDelegateDefault"
34767 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034768 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034769 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34770 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34771 XPSDelegate="$XPSDelegateDefault"
34772 ZipDelegate="$ZipDelegateDefault"
34773fi
34774
34775# Delegate substitutions
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818#
34819# RPM support.
34820#
34821RPM=''
34822for ac_prog in gnutar gtar tar
34823do
34824 # Extract the first word of "$ac_prog", so it can be a program name with args.
34825set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034828if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034829 $as_echo_n "(cached) " >&6
34830else
34831 if test -n "$TAR"; then
34832 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34833else
34834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34835for as_dir in $PATH
34836do
34837 IFS=$as_save_IFS
34838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34841 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034843 break 2
34844 fi
34845done
cristy8b350f62009-11-15 23:12:43 +000034846 done
cristy3ed852e2009-09-05 21:47:34 +000034847IFS=$as_save_IFS
34848
34849fi
34850fi
34851TAR=$ac_cv_prog_TAR
34852if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034854$as_echo "$TAR" >&6; }
34855else
cristy8b350f62009-11-15 23:12:43 +000034856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857$as_echo "no" >&6; }
34858fi
34859
34860
34861 test -n "$TAR" && break
34862done
34863
34864for ac_prog in perl
34865do
34866 # Extract the first word of "$ac_prog", so it can be a program name with args.
34867set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034870if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034871 $as_echo_n "(cached) " >&6
34872else
34873 if test -n "$PERL"; then
34874 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34875else
34876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34877for as_dir in $PATH
34878do
34879 IFS=$as_save_IFS
34880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34883 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034885 break 2
34886 fi
34887done
cristy8b350f62009-11-15 23:12:43 +000034888 done
cristy3ed852e2009-09-05 21:47:34 +000034889IFS=$as_save_IFS
34890
34891fi
34892fi
34893PERL=$ac_cv_prog_PERL
34894if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034896$as_echo "$PERL" >&6; }
34897else
cristy8b350f62009-11-15 23:12:43 +000034898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034899$as_echo "no" >&6; }
34900fi
34901
34902
34903 test -n "$PERL" && break
34904done
34905
34906for ac_prog in rpmbuild rpm
34907do
34908 # Extract the first word of "$ac_prog", so it can be a program name with args.
34909set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034912if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034913 $as_echo_n "(cached) " >&6
34914else
34915 if test -n "$RPM"; then
34916 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34917else
34918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34919for as_dir in $PATH
34920do
34921 IFS=$as_save_IFS
34922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34925 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034927 break 2
34928 fi
34929done
cristy8b350f62009-11-15 23:12:43 +000034930 done
cristy3ed852e2009-09-05 21:47:34 +000034931IFS=$as_save_IFS
34932
34933fi
34934fi
34935RPM=$ac_cv_prog_RPM
34936if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034938$as_echo "$RPM" >&6; }
34939else
cristy8b350f62009-11-15 23:12:43 +000034940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034941$as_echo "no" >&6; }
34942fi
34943
34944
34945 test -n "$RPM" && break
34946done
34947
34948
cristy73bd4a52010-10-05 11:24:23 +000034949ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34950
34951
34952AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34953
34954
34955AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34956
34957
34958AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34959
34960
34961 if test "x$RPM" != "x" ; then
34962 RPM_DELEGATE_TRUE=
34963 RPM_DELEGATE_FALSE='#'
34964else
34965 RPM_DELEGATE_TRUE='#'
34966 RPM_DELEGATE_FALSE=
34967fi
34968
cristy3ed852e2009-09-05 21:47:34 +000034969
34970#
34971# 7ZIP support (http://p7zip.sourceforge.net/)
34972#
34973P7ZIP=''
34974for ac_prog in 7za
34975do
34976 # Extract the first word of "$ac_prog", so it can be a program name with args.
34977set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034980if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034981 $as_echo_n "(cached) " >&6
34982else
34983 if test -n "$P7ZIP"; then
34984 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34985else
34986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34987for as_dir in $PATH
34988do
34989 IFS=$as_save_IFS
34990 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34993 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034995 break 2
34996 fi
34997done
cristy8b350f62009-11-15 23:12:43 +000034998 done
cristy3ed852e2009-09-05 21:47:34 +000034999IFS=$as_save_IFS
35000
35001fi
35002fi
35003P7ZIP=$ac_cv_prog_P7ZIP
35004if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035006$as_echo "$P7ZIP" >&6; }
35007else
cristy8b350f62009-11-15 23:12:43 +000035008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035009$as_echo "no" >&6; }
35010fi
35011
35012
35013 test -n "$P7ZIP" && break
35014done
35015
35016
cristy73bd4a52010-10-05 11:24:23 +000035017 if test "x$P7ZIP" != "x" ; then
35018 P7ZIP_DELEGATE_TRUE=
35019 P7ZIP_DELEGATE_FALSE='#'
35020else
35021 P7ZIP_DELEGATE_TRUE='#'
35022 P7ZIP_DELEGATE_FALSE=
35023fi
35024
cristy3ed852e2009-09-05 21:47:34 +000035025
35026#
35027# ZIP support (http://www.info-zip.org/Zip.html)
35028#
35029ZIP=''
35030for ac_prog in zip
35031do
35032 # Extract the first word of "$ac_prog", so it can be a program name with args.
35033set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035036if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035037 $as_echo_n "(cached) " >&6
35038else
35039 if test -n "$ZIP"; then
35040 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35041else
35042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35043for as_dir in $PATH
35044do
35045 IFS=$as_save_IFS
35046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000035048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35049 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035051 break 2
35052 fi
35053done
cristy8b350f62009-11-15 23:12:43 +000035054 done
cristy3ed852e2009-09-05 21:47:34 +000035055IFS=$as_save_IFS
35056
35057fi
35058fi
35059ZIP=$ac_cv_prog_ZIP
35060if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035062$as_echo "$ZIP" >&6; }
35063else
cristy8b350f62009-11-15 23:12:43 +000035064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035065$as_echo "no" >&6; }
35066fi
35067
35068
35069 test -n "$ZIP" && break
35070done
35071
35072
cristy73bd4a52010-10-05 11:24:23 +000035073 if test "x$ZIP" != "x" ; then
35074 ZIP_DELEGATE_TRUE=
35075 ZIP_DELEGATE_FALSE='#'
35076else
35077 ZIP_DELEGATE_TRUE='#'
35078 ZIP_DELEGATE_FALSE=
35079fi
35080
cristy3ed852e2009-09-05 21:47:34 +000035081
35082#
35083# GhostPCL related configuration.
35084#
35085PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035086PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035087PCLMonoDevice=pbmraw
35088if test -z "$PCLVersion"; then
35089 PCLVersion='unknown'
35090fi
35091if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035092 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35093$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035095$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035096 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35097$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035098 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035100$as_echo_n "checking for pcl color device... " >&6; }
35101 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35102 :
35103 else
35104 PCLColorDevice=ppmraw
35105 fi
cristy09b53e12011-10-14 12:47:22 +000035106 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35107$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035108
35109 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035111$as_echo_n "checking for pcl CMYK device... " >&6; }
35112 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35113 :
35114 else
35115 PCLCMYKDevice=$PCLColorDevice
35116 fi
cristy09b53e12011-10-14 12:47:22 +000035117 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35118$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035119
35120 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035122$as_echo_n "checking for pcl mono device... " >&6; }
35123 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35124 :
35125 else
35126 PCLMonoDevice=$PCLColorDevice
35127 fi
cristy09b53e12011-10-14 12:47:22 +000035128 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35129$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035130fi
35131
35132
35133
35134
35135
35136
35137#
35138# GhostXPS related configuration.
35139#
35140XPSColorDevice=ppmraw
35141XPSCMYKDevice=bmpsep8
35142XPSMonoDevice=pbmraw
35143if test -z "$XPSVersion"; then
35144 XPSVersion='unknown'
35145fi
35146if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035147 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35148$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035150$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035151 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35152$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035153 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035155$as_echo_n "checking for xps color device... " >&6; }
35156 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35157 :
35158 else
35159 XPSColorDevice=ppmraw
35160 fi
cristy09b53e12011-10-14 12:47:22 +000035161 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35162$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035163
35164 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035166$as_echo_n "checking for xps CMYK device... " >&6; }
35167 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35168 :
35169 else
35170 XPSCMYKDevice=$XPSColorDevice
35171 fi
cristy09b53e12011-10-14 12:47:22 +000035172 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35173$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035174
35175 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035177$as_echo_n "checking for xps mono device... " >&6; }
35178 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35179 :
35180 else
35181 XPSMonoDevice=$XPSColorDevice
35182 fi
cristy09b53e12011-10-14 12:47:22 +000035183 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35184$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035185fi
35186
35187
35188
35189
35190
35191
35192#
35193# Ghostscript related configuration.
35194#
cristya97426c2011-02-04 01:41:27 +000035195GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035196GSColorDevice=pnmraw
35197GSCMYKDevice=pam
35198GSMonoDevice=pbmraw
35199GSPDFDevice=pdfwrite
35200GSPSDevice=pswrite
35201GSEPSDevice=epswrite
35202GSVersion='unknown'
35203if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035204 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35205$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035207$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035208 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35209$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035211$as_echo_n "checking for Ghostscript version... " >&6; }
35212 if GSVersion=`$PSDelegate --version`; then
35213 :
35214 else
35215 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35216 fi
cristy09b53e12011-10-14 12:47:22 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35218$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035219
35220 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035222$as_echo_n "checking for gs alpha device... " >&6; }
35223 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35224 :
35225 else
35226 GSAlphaDevice=pnmraw
35227 fi
cristy09b53e12011-10-14 12:47:22 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35229$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035230
35231 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035233$as_echo_n "checking for gs color device... " >&6; }
35234 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35235 :
35236 else
35237 GSColorDevice=pnmraw
35238 fi
cristy09b53e12011-10-14 12:47:22 +000035239 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35240$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035241
35242 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035244$as_echo_n "checking for gs CMYK device... " >&6; }
35245 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35246 :
35247 else
35248 GSCMYKDevice=bmpsep8
35249 fi
cristy09b53e12011-10-14 12:47:22 +000035250 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35251$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035252
35253 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035255$as_echo_n "checking for gs mono device... " >&6; }
35256 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35257 :
35258 else
35259 GSMonoDevice=$GSColorDevice
35260 fi
cristy09b53e12011-10-14 12:47:22 +000035261 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35262$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035263
35264 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035266$as_echo_n "checking for gs PDF writing device... " >&6; }
35267 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35268 :
35269 else
35270 GSPDFDevice=nodevice
35271 fi
cristy09b53e12011-10-14 12:47:22 +000035272 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35273$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035274
35275 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035277$as_echo_n "checking for gs PS writing device... " >&6; }
35278 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35279 :
35280 else
35281 GSPSDevice=nodevice
35282 fi
cristy09b53e12011-10-14 12:47:22 +000035283 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35284$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035285
35286 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035288$as_echo_n "checking for gs EPS writing device... " >&6; }
35289 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35290 :
35291 else
35292 GSEPSDevice=nodevice
35293 fi
cristy09b53e12011-10-14 12:47:22 +000035294 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35295$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035296fi
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307#
35308# PerlMagick-related configuration
35309#
35310
35311# Look for PERL if PerlMagick requested
35312# If name/path of desired PERL interpreter is specified, look for that one first
35313have_perl='no'
35314if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035315 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35316$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035318$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035319 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35320$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035321 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035323$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035324if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035325 $as_echo_n "(cached) " >&6
35326else
35327 ac_cv_path_PERL="$with_perl"
35328fi
cristy8b350f62009-11-15 23:12:43 +000035329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035330$as_echo "$ac_cv_path_PERL" >&6; };
35331 PERL=$ac_cv_path_PERL
35332 have_perl="$ac_cv_path_PERL"
35333 else
35334 for ac_prog in perl perl5
35335do
35336 # Extract the first word of "$ac_prog", so it can be a program name with args.
35337set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035340if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035341 $as_echo_n "(cached) " >&6
35342else
35343 case $PERL in
35344 [\\/]* | ?:[\\/]*)
35345 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35346 ;;
35347 *)
35348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35349for as_dir in $PATH
35350do
35351 IFS=$as_save_IFS
35352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000035354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35355 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035357 break 2
35358 fi
35359done
cristy8b350f62009-11-15 23:12:43 +000035360 done
cristy3ed852e2009-09-05 21:47:34 +000035361IFS=$as_save_IFS
35362
35363 ;;
35364esac
35365fi
35366PERL=$ac_cv_path_PERL
35367if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035369$as_echo "$PERL" >&6; }
35370else
cristy8b350f62009-11-15 23:12:43 +000035371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035372$as_echo "no" >&6; }
35373fi
35374
35375
35376 test -n "$PERL" && break
35377done
35378 if test "$ac_cv_path_PERL"; then
35379 have_perl="$ac_cv_path_PERL"
35380 fi
35381 fi
35382fi
35383
cristy949301e2010-01-06 01:38:40 +000035384if test "$with_perl" != 'yes' ; then
35385 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35386fi
35387
35388PERL_SUPPORTS_DESTDIR='no'
35389
cristy3ed852e2009-09-05 21:47:34 +000035390with_perl_static='no'
35391with_perl_dynamic='no'
35392if test "$have_perl" != 'no'; then
35393 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35394 with_perl_static='yes'
35395 fi
35396 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35397 with_perl_dynamic='yes'
35398 fi
35399 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035400
35401
35402
35403
35404 if test -n "$PERL"; then :
35405
35406 ax_perl_version="5.8.1"
35407
35408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35409$as_echo_n "checking for perl version... " >&6; }
35410
35411 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35412
35413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35414$as_echo "$perl_version" >&6; }
35415
35416 PERL_VERSION=$perl_version
35417
35418
35419
35420
35421
35422 # Used to indicate true or false condition
35423 ax_compare_version=false
35424
35425 # Convert the two version strings to be compared into a format that
35426 # allows a simple string comparison. The end result is that a version
35427 # string of the form 1.12.5-r617 will be converted to the form
35428 # 0001001200050617. In other words, each number is zero padded to four
35429 # digits, and non digits are removed.
35430
35431 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35432 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35433 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35434 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35435 -e 's/[^0-9]//g'`
35436
35437
35438 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35439 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35440 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35441 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35442 -e 's/[^0-9]//g'`
35443
35444
35445 ax_compare_version=`echo "x$ax_compare_version_A
35446x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35447
35448
35449
35450 if test "$ax_compare_version" = "true" ; then
35451
35452 :
35453 PERL_SUPPORTS_DESTDIR='yes'
35454
35455 else
35456 :
35457 PERL_SUPPORTS_DESTDIR='no'
35458
35459 fi
35460
35461
35462else
35463
35464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35465$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35466 PERL_SUPPORTS_DESTDIR='no'
35467
cristy3ed852e2009-09-05 21:47:34 +000035468fi
cristy73bd4a52010-10-05 11:24:23 +000035469
35470fi
35471 if test "$have_perl" != 'no'; then
35472 WITH_PERL_TRUE=
35473 WITH_PERL_FALSE='#'
35474else
35475 WITH_PERL_TRUE='#'
35476 WITH_PERL_FALSE=
35477fi
35478
35479 if test $with_perl_static = 'yes'; then
35480 WITH_PERL_STATIC_TRUE=
35481 WITH_PERL_STATIC_FALSE='#'
35482else
35483 WITH_PERL_STATIC_TRUE='#'
35484 WITH_PERL_STATIC_FALSE=
35485fi
35486
35487 if test $with_perl_dynamic = 'yes'; then
35488 WITH_PERL_DYNAMIC_TRUE=
35489 WITH_PERL_DYNAMIC_FALSE='#'
35490else
35491 WITH_PERL_DYNAMIC_TRUE='#'
35492 WITH_PERL_DYNAMIC_FALSE=
35493fi
35494
cristy3ed852e2009-09-05 21:47:34 +000035495
35496
35497# Determine path to pick up MagickCore library from for use with building PerlMagick
35498MAGICKCORE_PATH="${LIB_DIR}"
35499if test $with_perl_static = 'yes'; then
35500 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35501 libtool_objdir=$objdir
35502
35503 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035504 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035505fi
35506
35507
35508# Create a simple string containing format names for all delegate libraries
35509DELEGATES=''
35510if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35511if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35512if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35513if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35514if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35515if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35516if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35517if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35518if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35519if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35520if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35521if test "$have_jpeg" = 'yes'; then
35522 DELEGATES="$DELEGATES jpeg";
35523 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35524fi
35525if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035526if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035527if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35528if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035529if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035530if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35531if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035532if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035533if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35534if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35535if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35536if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35537if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35538if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35539if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35540
35541
35542
35543#
35544# Handle special compiler flags
35545#
35546
35547# Add '-p' if prof source profiling support enabled
35548if test "$enable_prof" = 'yes'; then
35549 CFLAGS="-p $CFLAGS"
35550 CXXFLAGS="-p $CXXFLAGS"
35551 LDFLAGS="-p $LDFLAGS"
35552fi
35553
35554# Add '-pg' if gprof source profiling support enabled
35555if test "$enable_gprof" = 'yes'; then
35556 CFLAGS="-pg $CFLAGS"
35557 CXXFLAGS="-pg $CXXFLAGS"
35558 LDFLAGS="-pg $LDFLAGS"
35559fi
35560
35561# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35562# This is a gcc-specific feature
35563if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035565$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035566if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035567 $as_echo_n "(cached) " >&6
35568else
35569 ac_check_lib_save_LIBS=$LIBS
35570LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035572/* end confdefs.h. */
35573
35574/* Override any GCC internal prototype to avoid an error.
35575 Use char because int might match the return type of a GCC
35576 builtin and then its argument prototype would still apply. */
35577#ifdef __cplusplus
35578extern "C"
35579#endif
35580char _gcov_init ();
35581int
35582main ()
35583{
35584return _gcov_init ();
35585 ;
35586 return 0;
35587}
35588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035589if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035590 ac_cv_lib_gcov__gcov_init=yes
35591else
cristy8b350f62009-11-15 23:12:43 +000035592 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035593fi
cristy8b350f62009-11-15 23:12:43 +000035594rm -f core conftest.err conftest.$ac_objext \
35595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035596LIBS=$ac_check_lib_save_LIBS
35597fi
cristy8b350f62009-11-15 23:12:43 +000035598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035599$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035600if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035601 cat >>confdefs.h <<_ACEOF
35602#define HAVE_LIBGCOV 1
35603_ACEOF
35604
35605 LIBS="-lgcov $LIBS"
35606
35607fi
35608
cristy8b350f62009-11-15 23:12:43 +000035609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035610$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035611if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035612 $as_echo_n "(cached) " >&6
35613else
35614 ac_check_lib_save_LIBS=$LIBS
35615LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035617/* end confdefs.h. */
35618
35619/* Override any GCC internal prototype to avoid an error.
35620 Use char because int might match the return type of a GCC
35621 builtin and then its argument prototype would still apply. */
35622#ifdef __cplusplus
35623extern "C"
35624#endif
35625char __gcov_init ();
35626int
35627main ()
35628{
35629return __gcov_init ();
35630 ;
35631 return 0;
35632}
35633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035634if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035635 ac_cv_lib_gcov___gcov_init=yes
35636else
cristy8b350f62009-11-15 23:12:43 +000035637 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035638fi
cristy8b350f62009-11-15 23:12:43 +000035639rm -f core conftest.err conftest.$ac_objext \
35640 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035641LIBS=$ac_check_lib_save_LIBS
35642fi
cristy8b350f62009-11-15 23:12:43 +000035643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035644$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035645if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035646 cat >>confdefs.h <<_ACEOF
35647#define HAVE_LIBGCOV 1
35648_ACEOF
35649
35650 LIBS="-lgcov $LIBS"
35651
35652fi
35653
35654 case "$target_os" in
35655 darwin*)
35656 OSX_GCOV_LDFLAG="-Wl,-single_module"
35657 ;;
35658 *)
35659 OSX_GCOV_LDFLAG=""
35660 ;;
35661 esac
35662
35663 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35664 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35665 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35666fi
35667
35668#
35669# Build library dependency list for libMagickCore
35670#
35671
35672MAGICK_LIBLTDL='' # Libltdl for build
35673MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35674MAGICK_LTDLDEPS='' # extra libltdl dependencies
35675if test "$with_ltdl" != 'no'
35676then
35677 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35678 MAGICK_API_LIBLTDL='-lltdl'
35679 fi
35680 MAGICK_LIBLTDL=${LIBLTDL}
35681 MAGICK_LTDLDEPS=${LTDLDEPS}
35682fi
35683
35684
35685
35686if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035687 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 +000035688else
cristy41cbe8a2011-10-27 01:35:18 +000035689 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035690fi
35691
35692
35693#
35694# Remove extraneous spaces from output variables (asthetic)
35695#
35696X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35697X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35698X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35699X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35700
35701CC=`echo $CC | sed -e 's/ */ /g'`
35702CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35703CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35704CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35705DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35706DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35707LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35708TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35709MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35710#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35711
35712# Pass only user-provided LIBS as "global" libraries
35713LIBS=$USER_LIBS
35714
35715#AC_SUBST(CPPFLAGS)
35716
35717#AC_SUBST(LDFLAGS)
35718#AC_SUBST(X_PRE_LIBS)
35719#AC_SUBST(X_LIBS)
35720#AC_SUBST(X_EXTRA_LIBS)
35721
35722MAGICK_CFLAGS=$CFLAGS
35723MAGICK_CXXFLAGS="$CXXFLAGS"
35724MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35725MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35726MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35727MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35728
35729
35730
35731
35732
35733
35734
35735
cristyfd9dcd42010-08-08 18:07:02 +000035736
cristy3ed852e2009-09-05 21:47:34 +000035737# Set configured scripts to executable.
35738ac_config_commands="$ac_config_commands default"
35739
35740ac_config_commands="$ac_config_commands MagickCore-config.in"
35741
cristy3ed852e2009-09-05 21:47:34 +000035742ac_config_commands="$ac_config_commands MagickWand-config.in"
35743
cristy3ed852e2009-09-05 21:47:34 +000035744ac_config_commands="$ac_config_commands Magick++-config.in"
35745
35746ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35747
35748
cristy09b53e12011-10-14 12:47:22 +000035749{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35750$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35751{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35752$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035753cat >confcache <<\_ACEOF
35754# This file is a shell script that caches the results of configure
35755# tests run on this system so they can be shared between configure
35756# scripts and configure runs, see configure's option --config-cache.
35757# It is not useful on other systems. If it contains results you don't
35758# want to keep, you may remove or edit it.
35759#
35760# config.status only pays attention to the cache file if you give it
35761# the --recheck option to rerun configure.
35762#
35763# `ac_cv_env_foo' variables (set or unset) will be overridden when
35764# loading this file, other *unset* `ac_cv_foo' will be assigned the
35765# following values.
35766
35767_ACEOF
35768
35769# The following way of writing the cache mishandles newlines in values,
35770# but we know of no workaround that is simple, portable, and efficient.
35771# So, we kill variables containing newlines.
35772# Ultrix sh set writes to stderr and can't be redirected directly,
35773# and sets the high bit in the cache file unless we assign to the vars.
35774(
35775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35776 eval ac_val=\$$ac_var
35777 case $ac_val in #(
35778 *${as_nl}*)
35779 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035780 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035781$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35782 esac
35783 case $ac_var in #(
35784 _ | IFS | as_nl) ;; #(
35785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035786 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035787 esac ;;
35788 esac
35789 done
35790
35791 (set) 2>&1 |
35792 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35793 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035794 # `set' does not quote correctly, so add quotes: double-quote
35795 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035796 sed -n \
35797 "s/'/'\\\\''/g;
35798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35799 ;; #(
35800 *)
35801 # `set' quotes correctly as required by POSIX, so do not add quotes.
35802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35803 ;;
35804 esac |
35805 sort
35806) |
35807 sed '
35808 /^ac_cv_env_/b end
35809 t clear
35810 :clear
35811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35812 t end
35813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35814 :end' >>confcache
35815if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35816 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035817 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035818 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035819$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035820 if test ! -f "$cache_file" || test -h "$cache_file"; then
35821 cat confcache >"$cache_file"
35822 else
35823 case $cache_file in #(
35824 */* | ?:*)
35825 mv -f confcache "$cache_file"$$ &&
35826 mv -f "$cache_file"$$ "$cache_file" ;; #(
35827 *)
35828 mv -f confcache "$cache_file" ;;
35829 esac
35830 fi
35831 fi
cristy3ed852e2009-09-05 21:47:34 +000035832 else
cristy8b350f62009-11-15 23:12:43 +000035833 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035834$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35835 fi
35836fi
35837rm -f confcache
35838
35839test "x$prefix" = xNONE && prefix=$ac_default_prefix
35840# Let make expand exec_prefix.
35841test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35842
35843DEFS=-DHAVE_CONFIG_H
35844
35845ac_libobjs=
35846ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035847U=
cristy3ed852e2009-09-05 21:47:34 +000035848for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35849 # 1. Remove the extension, and $U if already installed.
35850 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35851 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35852 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35853 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035854 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35855 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035856done
35857LIBOBJS=$ac_libobjs
35858
35859LTLIBOBJS=$ac_ltlibobjs
35860
35861
cristy73bd4a52010-10-05 11:24:23 +000035862 if test -n "$EXEEXT"; then
35863 am__EXEEXT_TRUE=
35864 am__EXEEXT_FALSE='#'
35865else
35866 am__EXEEXT_TRUE='#'
35867 am__EXEEXT_FALSE=
35868fi
cristy3ed852e2009-09-05 21:47:34 +000035869
cristy73bd4a52010-10-05 11:24:23 +000035870if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035871 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035872Usually this means the macro was only invoked conditionally." "$LINENO" 5
35873fi
35874if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035875 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035876Usually this means the macro was only invoked conditionally." "$LINENO" 5
35877fi
35878if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035879 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035880Usually this means the macro was only invoked conditionally." "$LINENO" 5
35881fi
35882if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035883 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035884Usually this means the macro was only invoked conditionally." "$LINENO" 5
35885fi
35886if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035887 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035888Usually this means the macro was only invoked conditionally." "$LINENO" 5
35889fi
35890if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035891 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035892Usually this means the macro was only invoked conditionally." "$LINENO" 5
35893fi
35894if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035895 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035896Usually this means the macro was only invoked conditionally." "$LINENO" 5
35897fi
35898if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035899 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035900Usually this means the macro was only invoked conditionally." "$LINENO" 5
35901fi
cristy73bd4a52010-10-05 11:24:23 +000035902if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035903 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035904Usually this means the macro was only invoked conditionally." "$LINENO" 5
35905fi
35906if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035907 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035908Usually this means the macro was only invoked conditionally." "$LINENO" 5
35909fi
35910LT_CONFIG_H=config/config.h
35911
35912 _ltdl_libobjs=
35913 _ltdl_ltlibobjs=
35914 if test -n "$_LT_LIBOBJS"; then
35915 # Remove the extension.
35916 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35917 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35918 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35919 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35920 done
35921 fi
35922 ltdl_LIBOBJS=$_ltdl_libobjs
35923
35924 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35925
35926
35927if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035928 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035929Usually this means the macro was only invoked conditionally." "$LINENO" 5
35930fi
35931if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035932 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035933Usually this means the macro was only invoked conditionally." "$LINENO" 5
35934fi
35935if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035936 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035937Usually this means the macro was only invoked conditionally." "$LINENO" 5
35938fi
35939if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035940 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035941Usually this means the macro was only invoked conditionally." "$LINENO" 5
35942fi
cristy71d8c202012-03-20 17:05:01 +000035943if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35944 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35945Usually this means the macro was only invoked conditionally." "$LINENO" 5
35946fi
cristy73bd4a52010-10-05 11:24:23 +000035947
35948if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035949 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035950Usually this means the macro was only invoked conditionally." "$LINENO" 5
35951fi
35952if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035953 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035954Usually this means the macro was only invoked conditionally." "$LINENO" 5
35955fi
35956if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035957 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035958Usually this means the macro was only invoked conditionally." "$LINENO" 5
35959fi
35960if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035961 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
35964if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035965 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035966Usually this means the macro was only invoked conditionally." "$LINENO" 5
35967fi
35968if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035969 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035970Usually this means the macro was only invoked conditionally." "$LINENO" 5
35971fi
35972if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035973 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035974Usually this means the macro was only invoked conditionally." "$LINENO" 5
35975fi
35976if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035977 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035978Usually this means the macro was only invoked conditionally." "$LINENO" 5
35979fi
35980if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035981 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035982Usually this means the macro was only invoked conditionally." "$LINENO" 5
35983fi
35984if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035985 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035986Usually this means the macro was only invoked conditionally." "$LINENO" 5
35987fi
35988if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035989 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035990Usually this means the macro was only invoked conditionally." "$LINENO" 5
35991fi
35992if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035993 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035994Usually this means the macro was only invoked conditionally." "$LINENO" 5
35995fi
35996if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035997 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035998Usually this means the macro was only invoked conditionally." "$LINENO" 5
35999fi
36000if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036001 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036002Usually this means the macro was only invoked conditionally." "$LINENO" 5
36003fi
36004if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036005 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036006Usually this means the macro was only invoked conditionally." "$LINENO" 5
36007fi
36008if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036009 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036010Usually this means the macro was only invoked conditionally." "$LINENO" 5
36011fi
36012if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036013 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036014Usually this means the macro was only invoked conditionally." "$LINENO" 5
36015fi
36016if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036017 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036018Usually this means the macro was only invoked conditionally." "$LINENO" 5
36019fi
36020if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036021 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036022Usually this means the macro was only invoked conditionally." "$LINENO" 5
36023fi
36024if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036025 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036026Usually this means the macro was only invoked conditionally." "$LINENO" 5
36027fi
cristyfbb0ef02010-12-19 02:32:11 +000036028if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36029 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36030Usually this means the macro was only invoked conditionally." "$LINENO" 5
36031fi
cristy73bd4a52010-10-05 11:24:23 +000036032if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036033 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036034Usually this means the macro was only invoked conditionally." "$LINENO" 5
36035fi
cristy41cbe8a2011-10-27 01:35:18 +000036036if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36037 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36038Usually this means the macro was only invoked conditionally." "$LINENO" 5
36039fi
cristya054b762012-03-26 23:16:00 +000036040if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36041 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036042Usually this means the macro was only invoked conditionally." "$LINENO" 5
36043fi
cristy73bd4a52010-10-05 11:24:23 +000036044if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036045 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
36048if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036049 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
36052if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036053 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
36056if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036057 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
cristyb1860752011-03-14 00:27:46 +000036060if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36061 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
cristy73bd4a52010-10-05 11:24:23 +000036064if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036065 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036066Usually this means the macro was only invoked conditionally." "$LINENO" 5
36067fi
36068if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036069 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036070Usually this means the macro was only invoked conditionally." "$LINENO" 5
36071fi
36072if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036073 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036074Usually this means the macro was only invoked conditionally." "$LINENO" 5
36075fi
36076if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036077 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036078Usually this means the macro was only invoked conditionally." "$LINENO" 5
36079fi
36080if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036081 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036082Usually this means the macro was only invoked conditionally." "$LINENO" 5
36083fi
36084if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036085 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036086Usually this means the macro was only invoked conditionally." "$LINENO" 5
36087fi
36088if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036089 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036090Usually this means the macro was only invoked conditionally." "$LINENO" 5
36091fi
36092if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036093 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036094Usually this means the macro was only invoked conditionally." "$LINENO" 5
36095fi
cristy3ed852e2009-09-05 21:47:34 +000036096
cristyda16f162011-02-19 23:52:17 +000036097: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036098ac_write_fail=0
36099ac_clean_files_save=$ac_clean_files
36100ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036101{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036102$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036103as_write_fail=0
36104cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036105#! $SHELL
36106# Generated by $as_me.
36107# Run this file to recreate the current configuration.
36108# Compiler output produced by configure, useful for debugging
36109# configure, is in config.log if it exists.
36110
36111debug=false
36112ac_cs_recheck=false
36113ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036114
cristy8b350f62009-11-15 23:12:43 +000036115SHELL=\${CONFIG_SHELL-$SHELL}
36116export SHELL
36117_ASEOF
36118cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36119## -------------------- ##
36120## M4sh Initialization. ##
36121## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036122
36123# Be more Bourne compatible
36124DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036125if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036126 emulate sh
36127 NULLCMD=:
36128 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36129 # is contrary to our usage. Disable this feature.
36130 alias -g '${1+"$@"}'='"$@"'
36131 setopt NO_GLOB_SUBST
36132else
cristy8b350f62009-11-15 23:12:43 +000036133 case `(set -o) 2>/dev/null` in #(
36134 *posix*) :
36135 set -o posix ;; #(
36136 *) :
36137 ;;
cristy3ed852e2009-09-05 21:47:34 +000036138esac
cristy3ed852e2009-09-05 21:47:34 +000036139fi
36140
36141
cristy3ed852e2009-09-05 21:47:34 +000036142as_nl='
36143'
36144export as_nl
36145# Printing a long string crashes Solaris 7 /usr/bin/printf.
36146as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36147as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36148as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036149# Prefer a ksh shell builtin over an external printf program on Solaris,
36150# but without wasting forks for bash or zsh.
36151if test -z "$BASH_VERSION$ZSH_VERSION" \
36152 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36153 as_echo='print -r --'
36154 as_echo_n='print -rn --'
36155elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036156 as_echo='printf %s\n'
36157 as_echo_n='printf %s'
36158else
36159 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36160 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36161 as_echo_n='/usr/ucb/echo -n'
36162 else
36163 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36164 as_echo_n_body='eval
36165 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036166 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036167 *"$as_nl"*)
36168 expr "X$arg" : "X\\(.*\\)$as_nl";
36169 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36170 esac;
36171 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36172 '
36173 export as_echo_n_body
36174 as_echo_n='sh -c $as_echo_n_body as_echo'
36175 fi
36176 export as_echo_body
36177 as_echo='sh -c $as_echo_body as_echo'
36178fi
36179
36180# The user is always right.
36181if test "${PATH_SEPARATOR+set}" != set; then
36182 PATH_SEPARATOR=:
36183 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36184 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36185 PATH_SEPARATOR=';'
36186 }
36187fi
36188
cristy3ed852e2009-09-05 21:47:34 +000036189
36190# IFS
36191# We need space, tab and new line, in precisely that order. Quoting is
36192# there to prevent editors from complaining about space-tab.
36193# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36194# splitting by setting IFS to empty value.)
36195IFS=" "" $as_nl"
36196
36197# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036198as_myself=
cristy8b350f62009-11-15 23:12:43 +000036199case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036200 *[\\/]* ) as_myself=$0 ;;
36201 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36202for as_dir in $PATH
36203do
36204 IFS=$as_save_IFS
36205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036206 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36207 done
cristy3ed852e2009-09-05 21:47:34 +000036208IFS=$as_save_IFS
36209
36210 ;;
36211esac
36212# We did not find ourselves, most probably we were run as `sh COMMAND'
36213# in which case we are not to be found in the path.
36214if test "x$as_myself" = x; then
36215 as_myself=$0
36216fi
36217if test ! -f "$as_myself"; then
36218 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036219 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036220fi
36221
cristy8b350f62009-11-15 23:12:43 +000036222# Unset variables that we do not need and which cause bugs (e.g. in
36223# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36224# suppresses any "Segmentation fault" message there. '((' could
36225# trigger a bug in pdksh 5.2.14.
36226for as_var in BASH_ENV ENV MAIL MAILPATH
36227do eval test x\${$as_var+set} = xset \
36228 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036229done
36230PS1='$ '
36231PS2='> '
36232PS4='+ '
36233
36234# NLS nuisances.
36235LC_ALL=C
36236export LC_ALL
36237LANGUAGE=C
36238export LANGUAGE
36239
cristy8b350f62009-11-15 23:12:43 +000036240# CDPATH.
36241(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36242
36243
cristy98dddb52010-11-04 00:30:15 +000036244# as_fn_error STATUS ERROR [LINENO LOG_FD]
36245# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036246# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36247# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036248# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036249as_fn_error ()
36250{
cristy98dddb52010-11-04 00:30:15 +000036251 as_status=$1; test $as_status -eq 0 && as_status=1
36252 if test "$4"; then
36253 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36254 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036255 fi
cristy98dddb52010-11-04 00:30:15 +000036256 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036257 as_fn_exit $as_status
36258} # as_fn_error
36259
36260
36261# as_fn_set_status STATUS
36262# -----------------------
36263# Set $? to STATUS, without forking.
36264as_fn_set_status ()
36265{
36266 return $1
36267} # as_fn_set_status
36268
36269# as_fn_exit STATUS
36270# -----------------
36271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36272as_fn_exit ()
36273{
36274 set +e
36275 as_fn_set_status $1
36276 exit $1
36277} # as_fn_exit
36278
36279# as_fn_unset VAR
36280# ---------------
36281# Portably unset VAR.
36282as_fn_unset ()
36283{
36284 { eval $1=; unset $1;}
36285}
36286as_unset=as_fn_unset
36287# as_fn_append VAR VALUE
36288# ----------------------
36289# Append the text in VALUE to the end of the definition contained in VAR. Take
36290# advantage of any shell optimizations that allow amortized linear growth over
36291# repeated appends, instead of the typical quadratic growth present in naive
36292# implementations.
36293if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36294 eval 'as_fn_append ()
36295 {
36296 eval $1+=\$2
36297 }'
36298else
36299 as_fn_append ()
36300 {
36301 eval $1=\$$1\$2
36302 }
36303fi # as_fn_append
36304
36305# as_fn_arith ARG...
36306# ------------------
36307# Perform arithmetic evaluation on the ARGs, and store the result in the
36308# global $as_val. Take advantage of shells that can avoid forks. The arguments
36309# must be portable across $(()) and expr.
36310if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36311 eval 'as_fn_arith ()
36312 {
36313 as_val=$(( $* ))
36314 }'
36315else
36316 as_fn_arith ()
36317 {
36318 as_val=`expr "$@" || test $? -eq 1`
36319 }
36320fi # as_fn_arith
36321
36322
cristy3ed852e2009-09-05 21:47:34 +000036323if expr a : '\(a\)' >/dev/null 2>&1 &&
36324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36325 as_expr=expr
36326else
36327 as_expr=false
36328fi
36329
36330if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36331 as_basename=basename
36332else
36333 as_basename=false
36334fi
36335
cristy8b350f62009-11-15 23:12:43 +000036336if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36337 as_dirname=dirname
36338else
36339 as_dirname=false
36340fi
cristy3ed852e2009-09-05 21:47:34 +000036341
cristy3ed852e2009-09-05 21:47:34 +000036342as_me=`$as_basename -- "$0" ||
36343$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36344 X"$0" : 'X\(//\)$' \| \
36345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36346$as_echo X/"$0" |
36347 sed '/^.*\/\([^/][^/]*\)\/*$/{
36348 s//\1/
36349 q
36350 }
36351 /^X\/\(\/\/\)$/{
36352 s//\1/
36353 q
36354 }
36355 /^X\/\(\/\).*/{
36356 s//\1/
36357 q
36358 }
36359 s/.*/./; q'`
36360
cristy8b350f62009-11-15 23:12:43 +000036361# Avoid depending upon Character Ranges.
36362as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36363as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36364as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36365as_cr_digits='0123456789'
36366as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036367
36368ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036369case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036370-n*)
cristy8b350f62009-11-15 23:12:43 +000036371 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036372 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036373 xy) ECHO_C='\c';;
36374 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36375 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036376 esac;;
36377*)
36378 ECHO_N='-n';;
36379esac
cristy3ed852e2009-09-05 21:47:34 +000036380
36381rm -f conf$$ conf$$.exe conf$$.file
36382if test -d conf$$.dir; then
36383 rm -f conf$$.dir/conf$$.file
36384else
36385 rm -f conf$$.dir
36386 mkdir conf$$.dir 2>/dev/null
36387fi
36388if (echo >conf$$.file) 2>/dev/null; then
36389 if ln -s conf$$.file conf$$ 2>/dev/null; then
36390 as_ln_s='ln -s'
36391 # ... but there are two gotchas:
36392 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36393 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36394 # In both cases, we have to default to `cp -p'.
36395 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36396 as_ln_s='cp -p'
36397 elif ln conf$$.file conf$$ 2>/dev/null; then
36398 as_ln_s=ln
36399 else
36400 as_ln_s='cp -p'
36401 fi
36402else
36403 as_ln_s='cp -p'
36404fi
36405rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36406rmdir conf$$.dir 2>/dev/null
36407
cristy8b350f62009-11-15 23:12:43 +000036408
36409# as_fn_mkdir_p
36410# -------------
36411# Create "$as_dir" as a directory, including parents if necessary.
36412as_fn_mkdir_p ()
36413{
36414
36415 case $as_dir in #(
36416 -*) as_dir=./$as_dir;;
36417 esac
36418 test -d "$as_dir" || eval $as_mkdir_p || {
36419 as_dirs=
36420 while :; do
36421 case $as_dir in #(
36422 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36423 *) as_qdir=$as_dir;;
36424 esac
36425 as_dirs="'$as_qdir' $as_dirs"
36426 as_dir=`$as_dirname -- "$as_dir" ||
36427$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36428 X"$as_dir" : 'X\(//\)[^/]' \| \
36429 X"$as_dir" : 'X\(//\)$' \| \
36430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36431$as_echo X"$as_dir" |
36432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36433 s//\1/
36434 q
36435 }
36436 /^X\(\/\/\)[^/].*/{
36437 s//\1/
36438 q
36439 }
36440 /^X\(\/\/\)$/{
36441 s//\1/
36442 q
36443 }
36444 /^X\(\/\).*/{
36445 s//\1/
36446 q
36447 }
36448 s/.*/./; q'`
36449 test -d "$as_dir" && break
36450 done
36451 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036452 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036453
36454
36455} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036456if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036457 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036458else
36459 test -d ./-p && rmdir ./-p
36460 as_mkdir_p=false
36461fi
36462
36463if test -x / >/dev/null 2>&1; then
36464 as_test_x='test -x'
36465else
36466 if ls -dL / >/dev/null 2>&1; then
36467 as_ls_L_option=L
36468 else
36469 as_ls_L_option=
36470 fi
36471 as_test_x='
36472 eval sh -c '\''
36473 if test -d "$1"; then
36474 test -d "$1/.";
36475 else
cristy8b350f62009-11-15 23:12:43 +000036476 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000036477 -*)set "./$1";;
36478 esac;
cristy8b350f62009-11-15 23:12:43 +000036479 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000036480 ???[sx]*):;;*)false;;esac;fi
36481 '\'' sh
36482 '
36483fi
36484as_executable_p=$as_test_x
36485
36486# Sed expression to map a string onto a valid CPP name.
36487as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36488
36489# Sed expression to map a string onto a valid variable name.
36490as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36491
36492
36493exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036494## ----------------------------------- ##
36495## Main body of $CONFIG_STATUS script. ##
36496## ----------------------------------- ##
36497_ASEOF
36498test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036499
cristy8b350f62009-11-15 23:12:43 +000036500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36501# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036502# report actual input values of CONFIG_FILES etc. instead of their
36503# values after options handling.
36504ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036505This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000036506generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036507
36508 CONFIG_FILES = $CONFIG_FILES
36509 CONFIG_HEADERS = $CONFIG_HEADERS
36510 CONFIG_LINKS = $CONFIG_LINKS
36511 CONFIG_COMMANDS = $CONFIG_COMMANDS
36512 $ $0 $@
36513
36514on `(hostname || uname -n) 2>/dev/null | sed 1q`
36515"
36516
36517_ACEOF
36518
36519case $ac_config_files in *"
36520"*) set x $ac_config_files; shift; ac_config_files=$*;;
36521esac
36522
36523case $ac_config_headers in *"
36524"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36525esac
36526
36527
36528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36529# Files that config.status was made for.
36530config_files="$ac_config_files"
36531config_headers="$ac_config_headers"
36532config_commands="$ac_config_commands"
36533
36534_ACEOF
36535
36536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36537ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036538\`$as_me' instantiates files and other configuration actions
36539from templates according to the current configuration. Unless the files
36540and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036541
cristy8b350f62009-11-15 23:12:43 +000036542Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036543
36544 -h, --help print this help, then exit
36545 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036546 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036547 -q, --quiet, --silent
36548 do not print progress messages
36549 -d, --debug don't remove temporary files
36550 --recheck update $as_me by reconfiguring in the same conditions
36551 --file=FILE[:TEMPLATE]
36552 instantiate the configuration file FILE
36553 --header=FILE[:TEMPLATE]
36554 instantiate the configuration header FILE
36555
36556Configuration files:
36557$config_files
36558
36559Configuration headers:
36560$config_headers
36561
36562Configuration commands:
36563$config_commands
36564
cristy8b350f62009-11-15 23:12:43 +000036565Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036566
36567_ACEOF
36568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036569ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036570ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036571ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000036572configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000036573 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036574
cristy98dddb52010-11-04 00:30:15 +000036575Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036576This config.status script is free software; the Free Software Foundation
36577gives unlimited permission to copy, distribute and modify it."
36578
36579ac_pwd='$ac_pwd'
36580srcdir='$srcdir'
36581INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036582MKDIR_P='$MKDIR_P'
36583AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036584test -n "\$AWK" || AWK=awk
36585_ACEOF
36586
36587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36588# The default lists apply if the user does not specify any file.
36589ac_need_defaults=:
36590while test $# != 0
36591do
36592 case $1 in
cristyda16f162011-02-19 23:52:17 +000036593 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036594 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36595 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36596 ac_shift=:
36597 ;;
cristyda16f162011-02-19 23:52:17 +000036598 --*=)
36599 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36600 ac_optarg=
36601 ac_shift=:
36602 ;;
cristy3ed852e2009-09-05 21:47:34 +000036603 *)
36604 ac_option=$1
36605 ac_optarg=$2
36606 ac_shift=shift
36607 ;;
36608 esac
36609
36610 case $ac_option in
36611 # Handling of the options.
36612 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36613 ac_cs_recheck=: ;;
36614 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36615 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036616 --config | --confi | --conf | --con | --co | --c )
36617 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036618 --debug | --debu | --deb | --de | --d | -d )
36619 debug=: ;;
36620 --file | --fil | --fi | --f )
36621 $ac_shift
36622 case $ac_optarg in
36623 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036624 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036625 esac
cristy8b350f62009-11-15 23:12:43 +000036626 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036627 ac_need_defaults=false;;
36628 --header | --heade | --head | --hea )
36629 $ac_shift
36630 case $ac_optarg in
36631 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36632 esac
cristy8b350f62009-11-15 23:12:43 +000036633 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036634 ac_need_defaults=false;;
36635 --he | --h)
36636 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036637 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036638Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036639 --help | --hel | -h )
36640 $as_echo "$ac_cs_usage"; exit ;;
36641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36642 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36643 ac_cs_silent=: ;;
36644
36645 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036646 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036647Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036648
cristy8b350f62009-11-15 23:12:43 +000036649 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036650 ac_need_defaults=false ;;
36651
36652 esac
36653 shift
36654done
36655
36656ac_configure_extra_args=
36657
36658if $ac_cs_silent; then
36659 exec 6>/dev/null
36660 ac_configure_extra_args="$ac_configure_extra_args --silent"
36661fi
36662
36663_ACEOF
36664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36665if \$ac_cs_recheck; then
36666 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36667 shift
36668 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36669 CONFIG_SHELL='$SHELL'
36670 export CONFIG_SHELL
36671 exec "\$@"
36672fi
36673
36674_ACEOF
36675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36676exec 5>>config.log
36677{
36678 echo
36679 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36680## Running $as_me. ##
36681_ASBOX
36682 $as_echo "$ac_log"
36683} >&5
36684
36685_ACEOF
36686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036687#
36688# INIT-COMMANDS
36689#
36690PACKAGE="$PACKAGE"
36691AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36692
36693
36694# The HP-UX ksh and POSIX shell print the target directory to stdout
36695# if CDPATH is set.
36696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36697
36698sed_quote_subst='$sed_quote_subst'
36699double_quote_subst='$double_quote_subst'
36700delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036701SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36702Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36703GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36704EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36705FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36706SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36707ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36708LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36709macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36710macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36711AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36712DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36713OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36714enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36715enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36716pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36717enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036718PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036719host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36720host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36721host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36722build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36723build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36724build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36725NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36726LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36727max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36728ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36729exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36730lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36731lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36732lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036733lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36734lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036735reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36736reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36737deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36738file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036739file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36740want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36741sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036742AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36743AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036744archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036745STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36746RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36747old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36748old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36749old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36750lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36751CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36752CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36753compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36754GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36755lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36756lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36757lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36758lt_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 +000036759nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36760lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036761objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36762MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36763lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036764lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036765lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036766lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36767lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36768need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036769MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036770DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36771NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36772LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36773OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36774OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36775libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36776shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36777extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36778archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36779enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36780export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36781whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36782compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36783old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36784old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36785archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36786archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36787module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36788module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36789with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36790allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36791no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36792hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036793hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36794hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36795hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36796hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36797hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36798hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36799inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36800link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036801always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36802export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36803exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36804include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36805prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036806postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036807file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36808variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36809need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36810need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36811version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36812runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36813shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36814shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36815libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36816library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36817soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36818install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36819postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36820postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36821finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36822finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36823hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36824sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36825sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36826hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36827enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36828enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36829enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36830old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36831striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36832compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36833predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36834postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36835predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36836postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36837compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36838LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36839reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36840reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36841old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36842compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36843GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36844lt_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 +000036845lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036846lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036847lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36848lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36849archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36850enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36851export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36852whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36853compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36854old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36855old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36856archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36857archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36858module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36859module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36860with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36861allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36862no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36863hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036864hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36865hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36866hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36867hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36868hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36869hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36870inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36871link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036872always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36873export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36874exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36875include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36876prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036877postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036878file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36879hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36880compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36881predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36882postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36883predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36884postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36885compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036886
36887LTCC='$LTCC'
36888LTCFLAGS='$LTCFLAGS'
36889compiler='$compiler_DEFAULT'
36890
cristy0c60a692010-11-04 01:09:47 +000036891# A function that is used when there is no print builtin or printf.
36892func_fallback_echo ()
36893{
36894 eval 'cat <<_LTECHO_EOF
36895\$1
36896_LTECHO_EOF'
36897}
36898
cristy73bd4a52010-10-05 11:24:23 +000036899# Quote evaled strings.
36900for var in SED \
36901GREP \
36902EGREP \
36903FGREP \
cristy0c60a692010-11-04 01:09:47 +000036904SHELL \
36905ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036906LD \
cristy0c60a692010-11-04 01:09:47 +000036907AS \
36908DLLTOOL \
36909OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036910PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036911NM \
36912LN_S \
36913lt_SP2NL \
36914lt_NL2SP \
36915reload_flag \
36916deplibs_check_method \
36917file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036918file_magic_glob \
36919want_nocaseglob \
36920sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036921AR \
36922AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036923archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036924STRIP \
36925RANLIB \
36926CC \
36927CFLAGS \
36928compiler \
36929lt_cv_sys_global_symbol_pipe \
36930lt_cv_sys_global_symbol_to_cdecl \
36931lt_cv_sys_global_symbol_to_c_name_address \
36932lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036933nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036934lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036935lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036936lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036937lt_prog_compiler_static \
36938lt_cv_prog_compiler_c_o \
36939need_locks \
cristyda16f162011-02-19 23:52:17 +000036940MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036941DSYMUTIL \
36942NMEDIT \
36943LIPO \
36944OTOOL \
36945OTOOL64 \
36946shrext_cmds \
36947export_dynamic_flag_spec \
36948whole_archive_flag_spec \
36949compiler_needs_object \
36950with_gnu_ld \
36951allow_undefined_flag \
36952no_undefined_flag \
36953hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036954hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036955exclude_expsyms \
36956include_expsyms \
36957file_list_spec \
36958variables_saved_for_relink \
36959libname_spec \
36960library_names_spec \
36961soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036962install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036963finish_eval \
36964old_striplib \
36965striplib \
36966compiler_lib_search_dirs \
36967predep_objects \
36968postdep_objects \
36969predeps \
36970postdeps \
36971compiler_lib_search_path \
36972LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036973reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036974compiler_CXX \
36975lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036976lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036977lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036978lt_prog_compiler_static_CXX \
36979lt_cv_prog_compiler_c_o_CXX \
36980export_dynamic_flag_spec_CXX \
36981whole_archive_flag_spec_CXX \
36982compiler_needs_object_CXX \
36983with_gnu_ld_CXX \
36984allow_undefined_flag_CXX \
36985no_undefined_flag_CXX \
36986hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036987hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036988exclude_expsyms_CXX \
36989include_expsyms_CXX \
36990file_list_spec_CXX \
36991compiler_lib_search_dirs_CXX \
36992predep_objects_CXX \
36993postdep_objects_CXX \
36994predeps_CXX \
36995postdeps_CXX \
36996compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036997 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036998 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036999 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037000 ;;
37001 *)
37002 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37003 ;;
37004 esac
37005done
37006
37007# Double-quote double-evaled strings.
37008for var in reload_cmds \
37009old_postinstall_cmds \
37010old_postuninstall_cmds \
37011old_archive_cmds \
37012extract_expsyms_cmds \
37013old_archive_from_new_cmds \
37014old_archive_from_expsyms_cmds \
37015archive_cmds \
37016archive_expsym_cmds \
37017module_cmds \
37018module_expsym_cmds \
37019export_symbols_cmds \
37020prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037021postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037022postinstall_cmds \
37023postuninstall_cmds \
37024finish_cmds \
37025sys_lib_search_path_spec \
37026sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037027reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037028old_archive_cmds_CXX \
37029old_archive_from_new_cmds_CXX \
37030old_archive_from_expsyms_cmds_CXX \
37031archive_cmds_CXX \
37032archive_expsym_cmds_CXX \
37033module_cmds_CXX \
37034module_expsym_cmds_CXX \
37035export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037036prelink_cmds_CXX \
37037postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037039 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037041 ;;
37042 *)
37043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37044 ;;
37045 esac
37046done
37047
cristy73bd4a52010-10-05 11:24:23 +000037048ac_aux_dir='$ac_aux_dir'
37049xsi_shell='$xsi_shell'
37050lt_shell_append='$lt_shell_append'
37051
37052# See if we are running on zsh, and set the options which allow our
37053# commands through without removal of \ escapes INIT.
37054if test -n "\${ZSH_VERSION+set}" ; then
37055 setopt NO_GLOB_SUBST
37056fi
37057
37058
37059 PACKAGE='$PACKAGE'
37060 VERSION='$VERSION'
37061 TIMESTAMP='$TIMESTAMP'
37062 RM='$RM'
37063 ofile='$ofile'
37064
37065
37066
37067
37068
37069
cristy3ed852e2009-09-05 21:47:34 +000037070_ACEOF
37071
37072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37073
37074# Handling of arguments.
37075for ac_config_target in $ac_config_targets
37076do
37077 case $ac_config_target in
37078 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037079 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037080 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37081 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37082 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37083 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37084 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037085 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037086 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37087 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37088 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37089 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37090 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037091 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037092 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37093 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037094 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37095 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37096 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037097 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37098 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37099 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37100 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37101 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37102 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37103 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37104 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37105 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37106 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37107 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37108 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37109 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37110 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37111 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37112 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37113 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037114 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37115 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037116 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37117 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037118 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37119 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037120 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037121 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37122 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37123
cristy98dddb52010-11-04 00:30:15 +000037124 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037125 esac
37126done
37127
37128
37129# If the user did not use the arguments to specify the items to instantiate,
37130# then the envvar interface is used. Set only those that are not.
37131# We use the long form for the default assignment because of an extremely
37132# bizarre bug on SunOS 4.1.3.
37133if $ac_need_defaults; then
37134 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37135 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37136 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37137fi
37138
37139# Have a temporary directory for convenience. Make it in the build tree
37140# simply because there is no reason against having it here, and in addition,
37141# creating and moving files from /tmp can sometimes cause problems.
37142# Hook for its removal unless debugging.
37143# Note that there is a small window in which the directory will not be cleaned:
37144# after its creation but before its name has been assigned to `$tmp'.
37145$debug ||
37146{
cristyda16f162011-02-19 23:52:17 +000037147 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037148 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037149 : "${ac_tmp:=$tmp}"
37150 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037151' 0
cristy8b350f62009-11-15 23:12:43 +000037152 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037153}
37154# Create a (secure) tmp directory for tmp files.
37155
37156{
37157 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037158 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037159} ||
37160{
37161 tmp=./conf$$-$RANDOM
37162 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037163} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037164ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037165
37166# Set up the scripts for CONFIG_FILES section.
37167# No need to generate them if there are no CONFIG_FILES.
37168# This happens for instance with `./config.status config.h'.
37169if test -n "$CONFIG_FILES"; then
37170
37171
cristy8b350f62009-11-15 23:12:43 +000037172ac_cr=`echo X | tr X '\015'`
37173# On cygwin, bash can eat \r inside `` if the user requested igncr.
37174# But we know of no other shell where ac_cr would be empty at this
37175# point, so we can use a bashism as a fallback.
37176if test "x$ac_cr" = x; then
37177 eval ac_cr=\$\'\\r\'
37178fi
cristy3ed852e2009-09-05 21:47:34 +000037179ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37180if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037181 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037182else
37183 ac_cs_awk_cr=$ac_cr
37184fi
37185
cristyda16f162011-02-19 23:52:17 +000037186echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037187_ACEOF
37188
37189
37190{
37191 echo "cat >conf$$subs.awk <<_ACEOF" &&
37192 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37193 echo "_ACEOF"
37194} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37196ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037197ac_delim='%!_!# '
37198for ac_last_try in false false false false false :; do
37199 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037201
37202 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37203 if test $ac_delim_n = $ac_delim_num; then
37204 break
37205 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037207 else
37208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37209 fi
37210done
37211rm -f conf$$subs.sh
37212
37213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037214cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037215_ACEOF
37216sed -n '
37217h
37218s/^/S["/; s/!.*/"]=/
37219p
37220g
37221s/^[^!]*!//
37222:repl
37223t repl
37224s/'"$ac_delim"'$//
37225t delim
37226:nl
37227h
cristycd4c5312009-11-22 01:19:08 +000037228s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037229t more1
37230s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37231p
37232n
37233b repl
37234:more1
37235s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37236p
37237g
37238s/.\{148\}//
37239t nl
37240:delim
37241h
cristycd4c5312009-11-22 01:19:08 +000037242s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037243t more2
37244s/["\\]/\\&/g; s/^/"/; s/$/"/
37245p
37246b
37247:more2
37248s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37249p
37250g
37251s/.\{148\}//
37252t delim
37253' <conf$$subs.awk | sed '
37254/^[^""]/{
37255 N
37256 s/\n//
37257}
37258' >>$CONFIG_STATUS || ac_write_fail=1
37259rm -f conf$$subs.awk
37260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37261_ACAWK
cristyda16f162011-02-19 23:52:17 +000037262cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037263 for (key in S) S_is_set[key] = 1
37264 FS = ""
37265
37266}
37267{
37268 line = $ 0
37269 nfields = split(line, field, "@")
37270 substed = 0
37271 len = length(field[1])
37272 for (i = 2; i < nfields; i++) {
37273 key = field[i]
37274 keylen = length(key)
37275 if (S_is_set[key]) {
37276 value = S[key]
37277 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37278 len += length(value) + length(field[++i])
37279 substed = 1
37280 } else
37281 len += 1 + keylen
37282 }
37283
37284 print line
37285}
37286
37287_ACAWK
37288_ACEOF
37289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37290if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37291 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37292else
37293 cat
cristyda16f162011-02-19 23:52:17 +000037294fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037295 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037296_ACEOF
37297
cristy98dddb52010-11-04 00:30:15 +000037298# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37299# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037300# trailing colons and then remove the whole line if VPATH becomes empty
37301# (actually we leave an empty line to preserve line numbers).
37302if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037303 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37304h
37305s///
37306s/^/:/
37307s/[ ]*$/:/
37308s/:\$(srcdir):/:/g
37309s/:\${srcdir}:/:/g
37310s/:@srcdir@:/:/g
37311s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037312s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037313x
37314s/\(=[ ]*\).*/\1/
37315G
37316s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037317s/^[^=]*=[ ]*$//
37318}'
37319fi
37320
37321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37322fi # test -n "$CONFIG_FILES"
37323
37324# Set up the scripts for CONFIG_HEADERS section.
37325# No need to generate them if there are no CONFIG_HEADERS.
37326# This happens for instance with `./config.status Makefile'.
37327if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037328cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037329BEGIN {
37330_ACEOF
37331
37332# Transform confdefs.h into an awk script `defines.awk', embedded as
37333# here-document in config.status, that substitutes the proper values into
37334# config.h.in to produce config.h.
37335
37336# Create a delimiter string that does not exist in confdefs.h, to ease
37337# handling of long lines.
37338ac_delim='%!_!# '
37339for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037340 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37341 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037342 break
37343 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037344 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037345 else
37346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37347 fi
37348done
37349
37350# For the awk script, D is an array of macro values keyed by name,
37351# likewise P contains macro parameters if any. Preserve backslash
37352# newline sequences.
37353
37354ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37355sed -n '
37356s/.\{148\}/&'"$ac_delim"'/g
37357t rset
37358:rset
37359s/^[ ]*#[ ]*define[ ][ ]*/ /
37360t def
37361d
37362:def
37363s/\\$//
37364t bsnl
37365s/["\\]/\\&/g
37366s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37367D["\1"]=" \3"/p
37368s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37369d
37370:bsnl
37371s/["\\]/\\&/g
37372s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37373D["\1"]=" \3\\\\\\n"\\/p
37374t cont
37375s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37376t cont
37377d
37378:cont
37379n
37380s/.\{148\}/&'"$ac_delim"'/g
37381t clear
37382:clear
37383s/\\$//
37384t bsnlc
37385s/["\\]/\\&/g; s/^/"/; s/$/"/p
37386d
37387:bsnlc
37388s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37389b cont
37390' <confdefs.h | sed '
37391s/'"$ac_delim"'/"\\\
37392"/g' >>$CONFIG_STATUS || ac_write_fail=1
37393
37394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37395 for (key in D) D_is_set[key] = 1
37396 FS = ""
37397}
37398/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37399 line = \$ 0
37400 split(line, arg, " ")
37401 if (arg[1] == "#") {
37402 defundef = arg[2]
37403 mac1 = arg[3]
37404 } else {
37405 defundef = substr(arg[1], 2)
37406 mac1 = arg[2]
37407 }
37408 split(mac1, mac2, "(") #)
37409 macro = mac2[1]
37410 prefix = substr(line, 1, index(line, defundef) - 1)
37411 if (D_is_set[macro]) {
37412 # Preserve the white space surrounding the "#".
37413 print prefix "define", macro P[macro] D[macro]
37414 next
37415 } else {
37416 # Replace #undef with comments. This is necessary, for example,
37417 # in the case of _POSIX_SOURCE, which is predefined and required
37418 # on some systems where configure will not decide to define it.
37419 if (defundef == "undef") {
37420 print "/*", prefix defundef, macro, "*/"
37421 next
37422 }
37423 }
37424}
37425{ print }
37426_ACAWK
37427_ACEOF
37428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037429 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037430fi # test -n "$CONFIG_HEADERS"
37431
37432
37433eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37434shift
37435for ac_tag
37436do
37437 case $ac_tag in
37438 :[FHLC]) ac_mode=$ac_tag; continue;;
37439 esac
37440 case $ac_mode$ac_tag in
37441 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037442 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037443 :[FH]-) ac_tag=-:-;;
37444 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37445 esac
37446 ac_save_IFS=$IFS
37447 IFS=:
37448 set x $ac_tag
37449 IFS=$ac_save_IFS
37450 shift
37451 ac_file=$1
37452 shift
37453
37454 case $ac_mode in
37455 :L) ac_source=$1;;
37456 :[FH])
37457 ac_file_inputs=
37458 for ac_f
37459 do
37460 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037461 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037462 *) # Look for the file first in the build tree, then in the source tree
37463 # (if the path is not absolute). The absolute path cannot be DOS-style,
37464 # because $ac_f cannot contain `:'.
37465 test -f "$ac_f" ||
37466 case $ac_f in
37467 [\\/$]*) false;;
37468 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37469 esac ||
cristy98dddb52010-11-04 00:30:15 +000037470 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037471 esac
37472 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037473 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037474 done
37475
37476 # Let's still pretend it is `configure' which instantiates (i.e., don't
37477 # use $as_me), people would be surprised to read:
37478 # /* config.h. Generated by config.status. */
37479 configure_input='Generated from '`
37480 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37481 `' by configure.'
37482 if test x"$ac_file" != x-; then
37483 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037485$as_echo "$as_me: creating $ac_file" >&6;}
37486 fi
37487 # Neutralize special characters interpreted by sed in replacement strings.
37488 case $configure_input in #(
37489 *\&* | *\|* | *\\* )
37490 ac_sed_conf_input=`$as_echo "$configure_input" |
37491 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37492 *) ac_sed_conf_input=$configure_input;;
37493 esac
37494
37495 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037496 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037498 esac
37499 ;;
37500 esac
37501
37502 ac_dir=`$as_dirname -- "$ac_file" ||
37503$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37504 X"$ac_file" : 'X\(//\)[^/]' \| \
37505 X"$ac_file" : 'X\(//\)$' \| \
37506 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37507$as_echo X"$ac_file" |
37508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37509 s//\1/
37510 q
37511 }
37512 /^X\(\/\/\)[^/].*/{
37513 s//\1/
37514 q
37515 }
37516 /^X\(\/\/\)$/{
37517 s//\1/
37518 q
37519 }
37520 /^X\(\/\).*/{
37521 s//\1/
37522 q
37523 }
37524 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037525 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037526 ac_builddir=.
37527
37528case "$ac_dir" in
37529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37530*)
37531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37532 # A ".." for each directory in $ac_dir_suffix.
37533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37534 case $ac_top_builddir_sub in
37535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37537 esac ;;
37538esac
37539ac_abs_top_builddir=$ac_pwd
37540ac_abs_builddir=$ac_pwd$ac_dir_suffix
37541# for backward compatibility:
37542ac_top_builddir=$ac_top_build_prefix
37543
37544case $srcdir in
37545 .) # We are building in place.
37546 ac_srcdir=.
37547 ac_top_srcdir=$ac_top_builddir_sub
37548 ac_abs_top_srcdir=$ac_pwd ;;
37549 [\\/]* | ?:[\\/]* ) # Absolute name.
37550 ac_srcdir=$srcdir$ac_dir_suffix;
37551 ac_top_srcdir=$srcdir
37552 ac_abs_top_srcdir=$srcdir ;;
37553 *) # Relative name.
37554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37555 ac_top_srcdir=$ac_top_build_prefix$srcdir
37556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37557esac
37558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37559
37560
37561 case $ac_mode in
37562 :F)
37563 #
37564 # CONFIG_FILE
37565 #
37566
37567 case $INSTALL in
37568 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37569 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37570 esac
cristy73bd4a52010-10-05 11:24:23 +000037571 ac_MKDIR_P=$MKDIR_P
37572 case $MKDIR_P in
37573 [\\/$]* | ?:[\\/]* ) ;;
37574 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37575 esac
cristy3ed852e2009-09-05 21:47:34 +000037576_ACEOF
37577
37578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37579# If the template does not know about datarootdir, expand it.
37580# FIXME: This hack should be removed a few years after 2.60.
37581ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037582ac_sed_dataroot='
37583/datarootdir/ {
37584 p
37585 q
37586}
37587/@datadir@/p
37588/@docdir@/p
37589/@infodir@/p
37590/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037591/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037592case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37593*datarootdir*) ac_datarootdir_seen=yes;;
37594*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037596$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37597_ACEOF
37598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37599 ac_datarootdir_hack='
37600 s&@datadir@&$datadir&g
37601 s&@docdir@&$docdir&g
37602 s&@infodir@&$infodir&g
37603 s&@localedir@&$localedir&g
37604 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037605 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037606esac
37607_ACEOF
37608
37609# Neutralize VPATH when `$srcdir' = `.'.
37610# Shell code in configure.ac might set extrasub.
37611# FIXME: do we really want to maintain this feature?
37612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37613ac_sed_extra="$ac_vpsub
37614$extrasub
37615_ACEOF
37616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37617:t
37618/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37619s|@configure_input@|$ac_sed_conf_input|;t t
37620s&@top_builddir@&$ac_top_builddir_sub&;t t
37621s&@top_build_prefix@&$ac_top_build_prefix&;t t
37622s&@srcdir@&$ac_srcdir&;t t
37623s&@abs_srcdir@&$ac_abs_srcdir&;t t
37624s&@top_srcdir@&$ac_top_srcdir&;t t
37625s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37626s&@builddir@&$ac_builddir&;t t
37627s&@abs_builddir@&$ac_abs_builddir&;t t
37628s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37629s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037630s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037631$ac_datarootdir_hack
37632"
cristyda16f162011-02-19 23:52:17 +000037633eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37634 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037635
37636test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037637 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37638 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37639 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037641which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037642$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037643which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037644
cristyda16f162011-02-19 23:52:17 +000037645 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037646 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037647 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37648 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037649 esac \
cristy98dddb52010-11-04 00:30:15 +000037650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037651 ;;
37652 :H)
37653 #
37654 # CONFIG_HEADER
37655 #
37656 if test x"$ac_file" != x-; then
37657 {
37658 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037659 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37660 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037662 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037663 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037664$as_echo "$as_me: $ac_file is unchanged" >&6;}
37665 else
37666 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037667 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037669 fi
37670 else
37671 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037672 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037673 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037674 fi
cristy73bd4a52010-10-05 11:24:23 +000037675# Compute "$ac_file"'s index in $config_headers.
37676_am_arg="$ac_file"
37677_am_stamp_count=1
37678for _am_header in $config_headers :; do
37679 case $_am_header in
37680 $_am_arg | $_am_arg:* )
37681 break ;;
37682 * )
37683 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37684 esac
37685done
37686echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37687$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37688 X"$_am_arg" : 'X\(//\)[^/]' \| \
37689 X"$_am_arg" : 'X\(//\)$' \| \
37690 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37691$as_echo X"$_am_arg" |
37692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37693 s//\1/
37694 q
37695 }
37696 /^X\(\/\/\)[^/].*/{
37697 s//\1/
37698 q
37699 }
37700 /^X\(\/\/\)$/{
37701 s//\1/
37702 q
37703 }
37704 /^X\(\/\).*/{
37705 s//\1/
37706 q
37707 }
37708 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037709 ;;
37710
cristy8b350f62009-11-15 23:12:43 +000037711 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037712$as_echo "$as_me: executing $ac_file commands" >&6;}
37713 ;;
37714 esac
37715
37716
37717 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037718 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037719ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37720ac_prefix_conf_PKG=`echo MagickCore`
37721ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37722ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37723ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37724if test ".$ac_prefix_conf_INP" = "."; then
37725 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37726 case "$ac_file" in
37727 *.h) ac_prefix_conf_INP=$ac_file ;;
37728 *)
37729 esac
37730 test ".$ac_prefix_conf_INP" != "." && break
37731 done
37732fi
37733if test ".$ac_prefix_conf_INP" = "."; then
37734 case "$ac_prefix_conf_OUT" in
37735 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37736 ;;
37737 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37738 ;;
37739 *) ac_prefix_conf_INP=config.h
37740 ;;
37741 esac
37742fi
37743if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037744 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037745else
37746 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37747 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37748 fi fi
37749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37750$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37751 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037752 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37753 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37754 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37755 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37756 $as_echo "#endif/" >> conftest.prefix
37757 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37758 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37759 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037760 # now executing _script on _DEF input to create _OUT output file
37761 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37762 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37763 echo ' ' >>$tmp/pconfig.h
37764 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37765
37766 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37767 echo ' ' >>$tmp/pconfig.h
37768 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37769 echo "#endif" >>$tmp/pconfig.h
37770 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37771 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37772$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37773 else
37774 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37775$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37776 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37777 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37778 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37779$as_echo X"$ac_prefix_conf_OUT" |
37780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37781 s//\1/
37782 q
37783 }
37784 /^X\(\/\/\)[^/].*/{
37785 s//\1/
37786 q
37787 }
37788 /^X\(\/\/\)$/{
37789 s//\1/
37790 q
37791 }
37792 /^X\(\/\).*/{
37793 s//\1/
37794 q
37795 }
37796 s/.*/./; q'`
37797 as_dir="$ac_dir"; as_fn_mkdir_p
37798 rm -f "$ac_prefix_conf_OUT"
37799 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37800 fi
37801 cp conftest.prefix _configs.sed
37802 else
cristy98dddb52010-11-04 00:30:15 +000037803 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 +000037804 fi
37805 rm -f conftest.*
37806fi
37807 ;;
37808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37809 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37810 # are listed without --file. Let's play safe and only enable the eval
37811 # if we detect the quoting.
37812 case $CONFIG_FILES in
37813 *\'*) eval set x "$CONFIG_FILES" ;;
37814 *) set x $CONFIG_FILES ;;
37815 esac
37816 shift
37817 for mf
37818 do
37819 # Strip MF so we end up with the name of the file.
37820 mf=`echo "$mf" | sed -e 's/:.*$//'`
37821 # Check whether this is an Automake generated Makefile or not.
37822 # We used to match only the files named `Makefile.in', but
37823 # some people rename them; so instead we look at the file content.
37824 # Grep'ing the first line is not enough: some people post-process
37825 # each Makefile.in and add a new line on top of each file to say so.
37826 # Grep'ing the whole file is not good either: AIX grep has a line
37827 # limit of 2048, but all sed's we know have understand at least 4000.
37828 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37829 dirpart=`$as_dirname -- "$mf" ||
37830$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37831 X"$mf" : 'X\(//\)[^/]' \| \
37832 X"$mf" : 'X\(//\)$' \| \
37833 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37834$as_echo X"$mf" |
37835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37836 s//\1/
37837 q
37838 }
37839 /^X\(\/\/\)[^/].*/{
37840 s//\1/
37841 q
37842 }
37843 /^X\(\/\/\)$/{
37844 s//\1/
37845 q
37846 }
37847 /^X\(\/\).*/{
37848 s//\1/
37849 q
37850 }
37851 s/.*/./; q'`
37852 else
37853 continue
37854 fi
37855 # Extract the definition of DEPDIR, am__include, and am__quote
37856 # from the Makefile without running `make'.
37857 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37858 test -z "$DEPDIR" && continue
37859 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37860 test -z "am__include" && continue
37861 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37862 # When using ansi2knr, U may be empty or an underscore; expand it
37863 U=`sed -n 's/^U = //p' < "$mf"`
37864 # Find all dependency output files, they are included files with
37865 # $(DEPDIR) in their names. We invoke sed twice because it is the
37866 # simplest approach to changing $(DEPDIR) to its actual value in the
37867 # expansion.
37868 for file in `sed -n "
37869 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37870 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37871 # Make sure the directory exists.
37872 test -f "$dirpart/$file" && continue
37873 fdir=`$as_dirname -- "$file" ||
37874$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37875 X"$file" : 'X\(//\)[^/]' \| \
37876 X"$file" : 'X\(//\)$' \| \
37877 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37878$as_echo X"$file" |
37879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37880 s//\1/
37881 q
37882 }
37883 /^X\(\/\/\)[^/].*/{
37884 s//\1/
37885 q
37886 }
37887 /^X\(\/\/\)$/{
37888 s//\1/
37889 q
37890 }
37891 /^X\(\/\).*/{
37892 s//\1/
37893 q
37894 }
37895 s/.*/./; q'`
37896 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37897 # echo "creating $dirpart/$file"
37898 echo '# dummy' > "$dirpart/$file"
37899 done
37900 done
37901}
37902 ;;
37903 "libtool":C)
37904
37905 # See if we are running on zsh, and set the options which allow our
37906 # commands through without removal of \ escapes.
37907 if test -n "${ZSH_VERSION+set}" ; then
37908 setopt NO_GLOB_SUBST
37909 fi
37910
37911 cfgfile="${ofile}T"
37912 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37913 $RM "$cfgfile"
37914
37915 cat <<_LT_EOF >> "$cfgfile"
37916#! $SHELL
37917
37918# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37919# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37920# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37921# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37922#
37923# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037924# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37925# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037926# Written by Gordon Matzigkeit, 1996
37927#
37928# This file is part of GNU Libtool.
37929#
37930# GNU Libtool is free software; you can redistribute it and/or
37931# modify it under the terms of the GNU General Public License as
37932# published by the Free Software Foundation; either version 2 of
37933# the License, or (at your option) any later version.
37934#
37935# As a special exception to the GNU General Public License,
37936# if you distribute this file as part of a program or library that
37937# is built using GNU Libtool, you may include this file under the
37938# same distribution terms that you use for the rest of that program.
37939#
37940# GNU Libtool is distributed in the hope that it will be useful,
37941# but WITHOUT ANY WARRANTY; without even the implied warranty of
37942# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37943# GNU General Public License for more details.
37944#
37945# You should have received a copy of the GNU General Public License
37946# along with GNU Libtool; see the file COPYING. If not, a copy
37947# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37948# obtained by writing to the Free Software Foundation, Inc.,
37949# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37950
37951
37952# The names of the tagged configurations supported by this script.
37953available_tags="CXX "
37954
37955# ### BEGIN LIBTOOL CONFIG
37956
37957# A sed program that does not truncate output.
37958SED=$lt_SED
37959
37960# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37961Xsed="\$SED -e 1s/^X//"
37962
37963# A grep program that handles long lines.
37964GREP=$lt_GREP
37965
37966# An ERE matcher.
37967EGREP=$lt_EGREP
37968
37969# A literal string matcher.
37970FGREP=$lt_FGREP
37971
cristy0c60a692010-11-04 01:09:47 +000037972# Shell to use when invoking shell scripts.
37973SHELL=$lt_SHELL
37974
37975# An echo program that protects backslashes.
37976ECHO=$lt_ECHO
37977
cristy73bd4a52010-10-05 11:24:23 +000037978# Which release of libtool.m4 was used?
37979macro_version=$macro_version
37980macro_revision=$macro_revision
37981
37982# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037983AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037984
37985# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037986DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037987
37988# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037989OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037990
37991# Whether or not to build shared libraries.
37992build_libtool_libs=$enable_shared
37993
37994# Whether or not to build static libraries.
37995build_old_libs=$enable_static
37996
37997# What type of objects to build.
37998pic_mode=$pic_mode
37999
38000# Whether or not to optimize for fast installation.
38001fast_install=$enable_fast_install
38002
cristy99bd5232011-12-07 14:38:20 +000038003# The PATH separator for the build system.
38004PATH_SEPARATOR=$lt_PATH_SEPARATOR
38005
cristy73bd4a52010-10-05 11:24:23 +000038006# The host system.
38007host_alias=$host_alias
38008host=$host
38009host_os=$host_os
38010
38011# The build system.
38012build_alias=$build_alias
38013build=$build
38014build_os=$build_os
38015
38016# A BSD- or MS-compatible name lister.
38017NM=$lt_NM
38018
38019# Whether we need soft or hard links.
38020LN_S=$lt_LN_S
38021
38022# What is the maximum length of a command?
38023max_cmd_len=$max_cmd_len
38024
38025# Object file suffix (normally "o").
38026objext=$ac_objext
38027
38028# Executable file suffix (normally "").
38029exeext=$exeext
38030
38031# whether the shell understands "unset".
38032lt_unset=$lt_unset
38033
38034# turn spaces into newlines.
38035SP2NL=$lt_lt_SP2NL
38036
38037# turn newlines into spaces.
38038NL2SP=$lt_lt_NL2SP
38039
cristyda16f162011-02-19 23:52:17 +000038040# convert \$build file names to \$host format.
38041to_host_file_cmd=$lt_cv_to_host_file_cmd
38042
38043# convert \$build files to toolchain format.
38044to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38045
cristy73bd4a52010-10-05 11:24:23 +000038046# Method to check whether dependent libraries are shared objects.
38047deplibs_check_method=$lt_deplibs_check_method
38048
cristyda16f162011-02-19 23:52:17 +000038049# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038050file_magic_cmd=$lt_file_magic_cmd
38051
cristyda16f162011-02-19 23:52:17 +000038052# How to find potential files when deplibs_check_method = "file_magic".
38053file_magic_glob=$lt_file_magic_glob
38054
38055# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38056want_nocaseglob=$lt_want_nocaseglob
38057
38058# Command to associate shared and link libraries.
38059sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38060
cristy73bd4a52010-10-05 11:24:23 +000038061# The archiver.
38062AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038063
38064# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038065AR_FLAGS=$lt_AR_FLAGS
38066
cristyda16f162011-02-19 23:52:17 +000038067# How to feed a file listing to the archiver.
38068archiver_list_spec=$lt_archiver_list_spec
38069
cristy73bd4a52010-10-05 11:24:23 +000038070# A symbol stripping program.
38071STRIP=$lt_STRIP
38072
38073# Commands used to install an old-style archive.
38074RANLIB=$lt_RANLIB
38075old_postinstall_cmds=$lt_old_postinstall_cmds
38076old_postuninstall_cmds=$lt_old_postuninstall_cmds
38077
cristy0c60a692010-11-04 01:09:47 +000038078# Whether to use a lock for old archive extraction.
38079lock_old_archive_extraction=$lock_old_archive_extraction
38080
cristy73bd4a52010-10-05 11:24:23 +000038081# A C compiler.
38082LTCC=$lt_CC
38083
38084# LTCC compiler flags.
38085LTCFLAGS=$lt_CFLAGS
38086
38087# Take the output of nm and produce a listing of raw symbols and C names.
38088global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38089
38090# Transform the output of nm in a proper C declaration.
38091global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38092
38093# Transform the output of nm in a C name address pair.
38094global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38095
38096# Transform the output of nm in a C name address pair when lib prefix is needed.
38097global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38098
cristyda16f162011-02-19 23:52:17 +000038099# Specify filename containing input files for \$NM.
38100nm_file_list_spec=$lt_nm_file_list_spec
38101
38102# The root where to search for dependent libraries,and in which our libraries should be installed.
38103lt_sysroot=$lt_sysroot
38104
cristy73bd4a52010-10-05 11:24:23 +000038105# The name of the directory that contains temporary libtool files.
38106objdir=$objdir
38107
cristy73bd4a52010-10-05 11:24:23 +000038108# Used to examine libraries when file_magic_cmd begins with "file".
38109MAGIC_CMD=$MAGIC_CMD
38110
38111# Must we lock files when doing compilation?
38112need_locks=$lt_need_locks
38113
cristyda16f162011-02-19 23:52:17 +000038114# Manifest tool.
38115MANIFEST_TOOL=$lt_MANIFEST_TOOL
38116
cristy73bd4a52010-10-05 11:24:23 +000038117# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38118DSYMUTIL=$lt_DSYMUTIL
38119
38120# Tool to change global to local symbols on Mac OS X.
38121NMEDIT=$lt_NMEDIT
38122
38123# Tool to manipulate fat objects and archives on Mac OS X.
38124LIPO=$lt_LIPO
38125
38126# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38127OTOOL=$lt_OTOOL
38128
38129# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38130OTOOL64=$lt_OTOOL64
38131
38132# Old archive suffix (normally "a").
38133libext=$libext
38134
38135# Shared library suffix (normally ".so").
38136shrext_cmds=$lt_shrext_cmds
38137
38138# The commands to extract the exported symbol list from a shared archive.
38139extract_expsyms_cmds=$lt_extract_expsyms_cmds
38140
38141# Variables whose values should be saved in libtool wrapper scripts and
38142# restored at link time.
38143variables_saved_for_relink=$lt_variables_saved_for_relink
38144
38145# Do we need the "lib" prefix for modules?
38146need_lib_prefix=$need_lib_prefix
38147
38148# Do we need a version for libraries?
38149need_version=$need_version
38150
38151# Library versioning type.
38152version_type=$version_type
38153
38154# Shared library runtime path variable.
38155runpath_var=$runpath_var
38156
38157# Shared library path variable.
38158shlibpath_var=$shlibpath_var
38159
38160# Is shlibpath searched before the hard-coded library search path?
38161shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38162
38163# Format of library name prefix.
38164libname_spec=$lt_libname_spec
38165
38166# List of archive names. First name is the real one, the rest are links.
38167# The last name is the one that the linker finds with -lNAME
38168library_names_spec=$lt_library_names_spec
38169
38170# The coded name of the library, if different from the real name.
38171soname_spec=$lt_soname_spec
38172
cristy0c60a692010-11-04 01:09:47 +000038173# Permission mode override for installation of shared libraries.
38174install_override_mode=$lt_install_override_mode
38175
cristy73bd4a52010-10-05 11:24:23 +000038176# Command to use after installation of a shared archive.
38177postinstall_cmds=$lt_postinstall_cmds
38178
38179# Command to use after uninstallation of a shared archive.
38180postuninstall_cmds=$lt_postuninstall_cmds
38181
38182# Commands used to finish a libtool library installation in a directory.
38183finish_cmds=$lt_finish_cmds
38184
38185# As "finish_cmds", except a single script fragment to be evaled but
38186# not shown.
38187finish_eval=$lt_finish_eval
38188
38189# Whether we should hardcode library paths into libraries.
38190hardcode_into_libs=$hardcode_into_libs
38191
38192# Compile-time system search path for libraries.
38193sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38194
38195# Run-time system search path for libraries.
38196sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38197
38198# Whether dlopen is supported.
38199dlopen_support=$enable_dlopen
38200
38201# Whether dlopen of programs is supported.
38202dlopen_self=$enable_dlopen_self
38203
38204# Whether dlopen of statically linked programs is supported.
38205dlopen_self_static=$enable_dlopen_self_static
38206
38207# Commands to strip libraries.
38208old_striplib=$lt_old_striplib
38209striplib=$lt_striplib
38210
38211
38212# The linker used to build libraries.
38213LD=$lt_LD
38214
cristy0c60a692010-11-04 01:09:47 +000038215# How to create reloadable object files.
38216reload_flag=$lt_reload_flag
38217reload_cmds=$lt_reload_cmds
38218
cristy73bd4a52010-10-05 11:24:23 +000038219# Commands used to build an old-style archive.
38220old_archive_cmds=$lt_old_archive_cmds
38221
38222# A language specific compiler.
38223CC=$lt_compiler
38224
38225# Is the compiler the GNU compiler?
38226with_gcc=$GCC
38227
38228# Compiler flag to turn off builtin functions.
38229no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38230
cristy73bd4a52010-10-05 11:24:23 +000038231# Additional compiler flags for building library objects.
38232pic_flag=$lt_lt_prog_compiler_pic
38233
cristyda16f162011-02-19 23:52:17 +000038234# How to pass a linker flag through the compiler.
38235wl=$lt_lt_prog_compiler_wl
38236
cristy73bd4a52010-10-05 11:24:23 +000038237# Compiler flag to prevent dynamic linking.
38238link_static_flag=$lt_lt_prog_compiler_static
38239
38240# Does compiler simultaneously support -c and -o options?
38241compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38242
38243# Whether or not to add -lc for building shared libraries.
38244build_libtool_need_lc=$archive_cmds_need_lc
38245
38246# Whether or not to disallow shared libs when runtime libs are static.
38247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38248
38249# Compiler flag to allow reflexive dlopens.
38250export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38251
38252# Compiler flag to generate shared objects directly from archives.
38253whole_archive_flag_spec=$lt_whole_archive_flag_spec
38254
38255# Whether the compiler copes with passing no objects directly.
38256compiler_needs_object=$lt_compiler_needs_object
38257
38258# Create an old-style archive from a shared archive.
38259old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38260
38261# Create a temporary old-style archive to link instead of a shared archive.
38262old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38263
38264# Commands used to build a shared archive.
38265archive_cmds=$lt_archive_cmds
38266archive_expsym_cmds=$lt_archive_expsym_cmds
38267
38268# Commands used to build a loadable module if different from building
38269# a shared archive.
38270module_cmds=$lt_module_cmds
38271module_expsym_cmds=$lt_module_expsym_cmds
38272
38273# Whether we are building with GNU ld or not.
38274with_gnu_ld=$lt_with_gnu_ld
38275
38276# Flag that allows shared libraries with undefined symbols to be built.
38277allow_undefined_flag=$lt_allow_undefined_flag
38278
38279# Flag that enforces no undefined symbols.
38280no_undefined_flag=$lt_no_undefined_flag
38281
38282# Flag to hardcode \$libdir into a binary during linking.
38283# This must work even if \$libdir does not exist
38284hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38285
cristy73bd4a52010-10-05 11:24:23 +000038286# Whether we need a single "-rpath" flag with a separated argument.
38287hardcode_libdir_separator=$lt_hardcode_libdir_separator
38288
38289# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38290# DIR into the resulting binary.
38291hardcode_direct=$hardcode_direct
38292
38293# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38294# DIR into the resulting binary and the resulting library dependency is
38295# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38296# library is relocated.
38297hardcode_direct_absolute=$hardcode_direct_absolute
38298
38299# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38300# into the resulting binary.
38301hardcode_minus_L=$hardcode_minus_L
38302
38303# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38304# into the resulting binary.
38305hardcode_shlibpath_var=$hardcode_shlibpath_var
38306
38307# Set to "yes" if building a shared library automatically hardcodes DIR
38308# into the library and all subsequent libraries and executables linked
38309# against it.
38310hardcode_automatic=$hardcode_automatic
38311
38312# Set to yes if linker adds runtime paths of dependent libraries
38313# to runtime path list.
38314inherit_rpath=$inherit_rpath
38315
38316# Whether libtool must link a program against all its dependency libraries.
38317link_all_deplibs=$link_all_deplibs
38318
cristy73bd4a52010-10-05 11:24:23 +000038319# Set to "yes" if exported symbols are required.
38320always_export_symbols=$always_export_symbols
38321
38322# The commands to list exported symbols.
38323export_symbols_cmds=$lt_export_symbols_cmds
38324
38325# Symbols that should not be listed in the preloaded symbols.
38326exclude_expsyms=$lt_exclude_expsyms
38327
38328# Symbols that must always be exported.
38329include_expsyms=$lt_include_expsyms
38330
38331# Commands necessary for linking programs (against libraries) with templates.
38332prelink_cmds=$lt_prelink_cmds
38333
cristyda16f162011-02-19 23:52:17 +000038334# Commands necessary for finishing linking programs.
38335postlink_cmds=$lt_postlink_cmds
38336
cristy73bd4a52010-10-05 11:24:23 +000038337# Specify filename containing input files.
38338file_list_spec=$lt_file_list_spec
38339
38340# How to hardcode a shared library path into an executable.
38341hardcode_action=$hardcode_action
38342
38343# The directories searched by this compiler when creating a shared library.
38344compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38345
38346# Dependencies to place before and after the objects being linked to
38347# create a shared library.
38348predep_objects=$lt_predep_objects
38349postdep_objects=$lt_postdep_objects
38350predeps=$lt_predeps
38351postdeps=$lt_postdeps
38352
38353# The library search path used internally by the compiler when linking
38354# a shared library.
38355compiler_lib_search_path=$lt_compiler_lib_search_path
38356
38357# ### END LIBTOOL CONFIG
38358
38359_LT_EOF
38360
38361 case $host_os in
38362 aix3*)
38363 cat <<\_LT_EOF >> "$cfgfile"
38364# AIX sometimes has problems with the GCC collect2 program. For some
38365# reason, if we set the COLLECT_NAMES environment variable, the problems
38366# vanish in a puff of smoke.
38367if test "X${COLLECT_NAMES+set}" != Xset; then
38368 COLLECT_NAMES=
38369 export COLLECT_NAMES
38370fi
38371_LT_EOF
38372 ;;
38373 esac
38374
38375
38376ltmain="$ac_aux_dir/ltmain.sh"
38377
38378
38379 # We use sed instead of cat because bash on DJGPP gets confused if
38380 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38381 # text mode, it properly converts lines to CR/LF. This bash problem
38382 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038383 sed '$q' "$ltmain" >> "$cfgfile" \
38384 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038385
cristyda16f162011-02-19 23:52:17 +000038386 if test x"$xsi_shell" = xyes; then
38387 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38388func_dirname ()\
38389{\
38390\ case ${1} in\
38391\ */*) func_dirname_result="${1%/*}${2}" ;;\
38392\ * ) func_dirname_result="${3}" ;;\
38393\ esac\
38394} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38395 && mv -f "$cfgfile.tmp" "$cfgfile" \
38396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38397test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038398
38399
cristyda16f162011-02-19 23:52:17 +000038400 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38401func_basename ()\
38402{\
38403\ func_basename_result="${1##*/}"\
38404} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38405 && mv -f "$cfgfile.tmp" "$cfgfile" \
38406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38407test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038408
38409
cristyda16f162011-02-19 23:52:17 +000038410 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38411func_dirname_and_basename ()\
38412{\
38413\ case ${1} in\
38414\ */*) func_dirname_result="${1%/*}${2}" ;;\
38415\ * ) func_dirname_result="${3}" ;;\
38416\ esac\
38417\ func_basename_result="${1##*/}"\
38418} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38419 && mv -f "$cfgfile.tmp" "$cfgfile" \
38420 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38421test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038422
cristyda16f162011-02-19 23:52:17 +000038423
38424 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38425func_stripname ()\
38426{\
38427\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38428\ # positional parameters, so assign one to ordinary parameter first.\
38429\ func_stripname_result=${3}\
38430\ func_stripname_result=${func_stripname_result#"${1}"}\
38431\ func_stripname_result=${func_stripname_result%"${2}"}\
38432} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38433 && mv -f "$cfgfile.tmp" "$cfgfile" \
38434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38435test 0 -eq $? || _lt_function_replace_fail=:
38436
38437
38438 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38439func_split_long_opt ()\
38440{\
38441\ func_split_long_opt_name=${1%%=*}\
38442\ func_split_long_opt_arg=${1#*=}\
38443} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38444 && mv -f "$cfgfile.tmp" "$cfgfile" \
38445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38446test 0 -eq $? || _lt_function_replace_fail=:
38447
38448
38449 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38450func_split_short_opt ()\
38451{\
38452\ func_split_short_opt_arg=${1#??}\
38453\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38454} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38455 && mv -f "$cfgfile.tmp" "$cfgfile" \
38456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38457test 0 -eq $? || _lt_function_replace_fail=:
38458
38459
38460 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38461func_lo2o ()\
38462{\
38463\ case ${1} in\
38464\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38465\ *) func_lo2o_result=${1} ;;\
38466\ esac\
38467} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38468 && mv -f "$cfgfile.tmp" "$cfgfile" \
38469 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38470test 0 -eq $? || _lt_function_replace_fail=:
38471
38472
38473 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38474func_xform ()\
38475{\
38476 func_xform_result=${1%.*}.lo\
38477} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38478 && mv -f "$cfgfile.tmp" "$cfgfile" \
38479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38480test 0 -eq $? || _lt_function_replace_fail=:
38481
38482
38483 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38484func_arith ()\
38485{\
38486 func_arith_result=$(( $* ))\
38487} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38488 && mv -f "$cfgfile.tmp" "$cfgfile" \
38489 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38490test 0 -eq $? || _lt_function_replace_fail=:
38491
38492
38493 sed -e '/^func_len ()$/,/^} # func_len /c\
38494func_len ()\
38495{\
38496 func_len_result=${#1}\
38497} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38498 && mv -f "$cfgfile.tmp" "$cfgfile" \
38499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38500test 0 -eq $? || _lt_function_replace_fail=:
38501
38502fi
38503
38504if test x"$lt_shell_append" = xyes; then
38505 sed -e '/^func_append ()$/,/^} # func_append /c\
38506func_append ()\
38507{\
38508 eval "${1}+=\\${2}"\
38509} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38510 && mv -f "$cfgfile.tmp" "$cfgfile" \
38511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38512test 0 -eq $? || _lt_function_replace_fail=:
38513
38514
38515 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38516func_append_quoted ()\
38517{\
38518\ func_quote_for_eval "${2}"\
38519\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38520} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38521 && mv -f "$cfgfile.tmp" "$cfgfile" \
38522 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38523test 0 -eq $? || _lt_function_replace_fail=:
38524
38525
38526 # Save a `func_append' function call where possible by direct use of '+='
38527 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38528 && mv -f "$cfgfile.tmp" "$cfgfile" \
38529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38530 test 0 -eq $? || _lt_function_replace_fail=:
38531else
38532 # Save a `func_append' function call even when '+=' is not available
38533 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38534 && mv -f "$cfgfile.tmp" "$cfgfile" \
38535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38536 test 0 -eq $? || _lt_function_replace_fail=:
38537fi
38538
38539if test x"$_lt_function_replace_fail" = x":"; then
38540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38541$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38542fi
38543
38544
38545 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038546 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38547 chmod +x "$ofile"
38548
38549
38550 cat <<_LT_EOF >> "$ofile"
38551
38552# ### BEGIN LIBTOOL TAG CONFIG: CXX
38553
38554# The linker used to build libraries.
38555LD=$lt_LD_CXX
38556
cristy0c60a692010-11-04 01:09:47 +000038557# How to create reloadable object files.
38558reload_flag=$lt_reload_flag_CXX
38559reload_cmds=$lt_reload_cmds_CXX
38560
cristy73bd4a52010-10-05 11:24:23 +000038561# Commands used to build an old-style archive.
38562old_archive_cmds=$lt_old_archive_cmds_CXX
38563
38564# A language specific compiler.
38565CC=$lt_compiler_CXX
38566
38567# Is the compiler the GNU compiler?
38568with_gcc=$GCC_CXX
38569
38570# Compiler flag to turn off builtin functions.
38571no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38572
cristy73bd4a52010-10-05 11:24:23 +000038573# Additional compiler flags for building library objects.
38574pic_flag=$lt_lt_prog_compiler_pic_CXX
38575
cristyda16f162011-02-19 23:52:17 +000038576# How to pass a linker flag through the compiler.
38577wl=$lt_lt_prog_compiler_wl_CXX
38578
cristy73bd4a52010-10-05 11:24:23 +000038579# Compiler flag to prevent dynamic linking.
38580link_static_flag=$lt_lt_prog_compiler_static_CXX
38581
38582# Does compiler simultaneously support -c and -o options?
38583compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38584
38585# Whether or not to add -lc for building shared libraries.
38586build_libtool_need_lc=$archive_cmds_need_lc_CXX
38587
38588# Whether or not to disallow shared libs when runtime libs are static.
38589allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38590
38591# Compiler flag to allow reflexive dlopens.
38592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38593
38594# Compiler flag to generate shared objects directly from archives.
38595whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38596
38597# Whether the compiler copes with passing no objects directly.
38598compiler_needs_object=$lt_compiler_needs_object_CXX
38599
38600# Create an old-style archive from a shared archive.
38601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38602
38603# Create a temporary old-style archive to link instead of a shared archive.
38604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38605
38606# Commands used to build a shared archive.
38607archive_cmds=$lt_archive_cmds_CXX
38608archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38609
38610# Commands used to build a loadable module if different from building
38611# a shared archive.
38612module_cmds=$lt_module_cmds_CXX
38613module_expsym_cmds=$lt_module_expsym_cmds_CXX
38614
38615# Whether we are building with GNU ld or not.
38616with_gnu_ld=$lt_with_gnu_ld_CXX
38617
38618# Flag that allows shared libraries with undefined symbols to be built.
38619allow_undefined_flag=$lt_allow_undefined_flag_CXX
38620
38621# Flag that enforces no undefined symbols.
38622no_undefined_flag=$lt_no_undefined_flag_CXX
38623
38624# Flag to hardcode \$libdir into a binary during linking.
38625# This must work even if \$libdir does not exist
38626hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38627
cristy73bd4a52010-10-05 11:24:23 +000038628# Whether we need a single "-rpath" flag with a separated argument.
38629hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38630
38631# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38632# DIR into the resulting binary.
38633hardcode_direct=$hardcode_direct_CXX
38634
38635# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38636# DIR into the resulting binary and the resulting library dependency is
38637# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38638# library is relocated.
38639hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38640
38641# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38642# into the resulting binary.
38643hardcode_minus_L=$hardcode_minus_L_CXX
38644
38645# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38646# into the resulting binary.
38647hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38648
38649# Set to "yes" if building a shared library automatically hardcodes DIR
38650# into the library and all subsequent libraries and executables linked
38651# against it.
38652hardcode_automatic=$hardcode_automatic_CXX
38653
38654# Set to yes if linker adds runtime paths of dependent libraries
38655# to runtime path list.
38656inherit_rpath=$inherit_rpath_CXX
38657
38658# Whether libtool must link a program against all its dependency libraries.
38659link_all_deplibs=$link_all_deplibs_CXX
38660
cristy73bd4a52010-10-05 11:24:23 +000038661# Set to "yes" if exported symbols are required.
38662always_export_symbols=$always_export_symbols_CXX
38663
38664# The commands to list exported symbols.
38665export_symbols_cmds=$lt_export_symbols_cmds_CXX
38666
38667# Symbols that should not be listed in the preloaded symbols.
38668exclude_expsyms=$lt_exclude_expsyms_CXX
38669
38670# Symbols that must always be exported.
38671include_expsyms=$lt_include_expsyms_CXX
38672
38673# Commands necessary for linking programs (against libraries) with templates.
38674prelink_cmds=$lt_prelink_cmds_CXX
38675
cristyda16f162011-02-19 23:52:17 +000038676# Commands necessary for finishing linking programs.
38677postlink_cmds=$lt_postlink_cmds_CXX
38678
cristy73bd4a52010-10-05 11:24:23 +000038679# Specify filename containing input files.
38680file_list_spec=$lt_file_list_spec_CXX
38681
38682# How to hardcode a shared library path into an executable.
38683hardcode_action=$hardcode_action_CXX
38684
38685# The directories searched by this compiler when creating a shared library.
38686compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38687
38688# Dependencies to place before and after the objects being linked to
38689# create a shared library.
38690predep_objects=$lt_predep_objects_CXX
38691postdep_objects=$lt_postdep_objects_CXX
38692predeps=$lt_predeps_CXX
38693postdeps=$lt_postdeps_CXX
38694
38695# The library search path used internally by the compiler when linking
38696# a shared library.
38697compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38698
38699# ### END LIBTOOL TAG CONFIG: CXX
38700_LT_EOF
38701
38702 ;;
cristy4c08aed2011-07-01 19:47:50 +000038703 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038704 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038705 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38706 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38707
38708 esac
38709done # for ac_tag
38710
38711
cristy8b350f62009-11-15 23:12:43 +000038712as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038713_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038714ac_clean_files=$ac_clean_files_save
38715
38716test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038717 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038718
38719
38720# configure is writing to config.log, and then calls config.status.
38721# config.status does its own redirection, appending to config.log.
38722# Unfortunately, on DOS this fails, as config.log is still kept open
38723# by configure, so config.status won't be able to write to it; its
38724# output is simply discarded. So we exec the FD to /dev/null,
38725# effectively closing config.log, so it can be properly (re)opened and
38726# appended to by config.status. When coming back to configure, we
38727# need to make the FD available again.
38728if test "$no_create" != yes; then
38729 ac_cs_success=:
38730 ac_config_status_args=
38731 test "$silent" = yes &&
38732 ac_config_status_args="$ac_config_status_args --quiet"
38733 exec 5>/dev/null
38734 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38735 exec 5>>config.log
38736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38737 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038738 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038739fi
38740if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038742$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38743fi
38744
38745
38746rm -f magick-version
38747
cristy430a7312010-01-21 20:44:04 +000038748result_dejavu_font_dir='none'
38749if test "${dejavu_font_dir}x" != 'x'; then
38750 result_dejavu_font_dir=$dejavu_font_dir
38751fi
38752
cristy3ed852e2009-09-05 21:47:34 +000038753result_ghostscript_font_dir='none'
38754if test "${ghostscript_font_dir}x" != 'x'; then
38755 result_ghostscript_font_dir=$ghostscript_font_dir
38756fi
38757
38758result_windows_font_dir='none'
38759if test "${windows_font_dir}x" != 'x'; then
38760 result_windows_font_dir=${windows_font_dir}
38761fi
38762
cristy09b53e12011-10-14 12:47:22 +000038763{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038764ImageMagick is configured as follows. Please verify that this configuration
38765matches your expectations.
38766
38767Host system type: $host
38768Build system type: $build
38769
38770 Option Value
38771-------------------------------------------------------------------------------
38772Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38773Static libraries --enable-static=$enable_static $libtool_build_static_libs
38774Module support --with-modules=$with_modules $with_modules
38775GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38776Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38777High Dynamic Range Imagery
38778 --enable-hdri=$enable_hdri $enable_hdri
38779
38780Delegate Configuration:
38781BZLIB --with-bzlib=$with_bzlib $have_bzlib
38782Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038783Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038784DJVU --with-djvu=$with_djvu $have_djvu
38785DPS --with-dps=$with_dps $have_dps
38786FFTW --with-fftw=$with_fftw $have_fftw
38787FlashPIX --with-fpx=$with_fpx $have_fpx
38788FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38789FreeType --with-freetype=$with_freetype $have_freetype
38790GhostPCL None $PCLDelegate ($PCLVersion)
38791GhostXPS None $XPSDelegate ($XPSVersion)
38792Ghostscript None $PSDelegate ($GSVersion)
38793Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38794Ghostscript lib --with-gslib=$with_gslib $have_gslib
38795Graphviz --with-gvc=$with_gvc $have_gvc
38796JBIG --with-jbig=$with_jbig $have_jbig
38797JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38798JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038799LCMS v1 --with-lcms=$with_lcms $have_lcms
38800LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038801LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038802LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038803Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38804OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038805PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038806PERL --with-perl=$with_perl $have_perl
38807PNG --with-png=$with_png $have_png
38808RSVG --with-rsvg=$with_rsvg $have_rsvg
38809TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038810WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038811Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38812WMF --with-wmf=$with_wmf $have_wmf
38813X11 --with-x=$with_x $have_x
38814XML --with-xml=$with_xml $have_xml
38815ZLIB --with-zlib=$with_zlib $have_zlib
38816
38817X11 Configuration:
38818 X_CFLAGS = $X_CFLAGS
38819 X_PRE_LIBS = $X_PRE_LIBS
38820 X_LIBS = $X_LIBS
38821 X_EXTRA_LIBS = $X_EXTRA_LIBS
38822
38823Options used to compile and link:
38824 PREFIX = $PREFIX_DIR
38825 EXEC-PREFIX = $EXEC_PREFIX_DIR
38826 VERSION = $PACKAGE_VERSION
38827 CC = $CC
38828 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038829 CPPFLAGS = $MAGICK_CPPFLAGS
38830 PCFLAGS = $MAGICK_PCFLAGS
38831 DEFS = $DEFS
38832 LDFLAGS = $LDFLAGS
38833 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38834 LIBS = $MAGICK_LIBS
38835 CXX = $CXX
38836 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038837 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038838" >&5
cristy09b53e12011-10-14 12:47:22 +000038839$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038840ImageMagick is configured as follows. Please verify that this configuration
38841matches your expectations.
38842
38843Host system type: $host
38844Build system type: $build
38845
38846 Option Value
38847-------------------------------------------------------------------------------
38848Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38849Static libraries --enable-static=$enable_static $libtool_build_static_libs
38850Module support --with-modules=$with_modules $with_modules
38851GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38852Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38853High Dynamic Range Imagery
38854 --enable-hdri=$enable_hdri $enable_hdri
38855
38856Delegate Configuration:
38857BZLIB --with-bzlib=$with_bzlib $have_bzlib
38858Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038859Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038860DJVU --with-djvu=$with_djvu $have_djvu
38861DPS --with-dps=$with_dps $have_dps
38862FFTW --with-fftw=$with_fftw $have_fftw
38863FlashPIX --with-fpx=$with_fpx $have_fpx
38864FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38865FreeType --with-freetype=$with_freetype $have_freetype
38866GhostPCL None $PCLDelegate ($PCLVersion)
38867GhostXPS None $XPSDelegate ($XPSVersion)
38868Ghostscript None $PSDelegate ($GSVersion)
38869Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38870Ghostscript lib --with-gslib=$with_gslib $have_gslib
38871Graphviz --with-gvc=$with_gvc $have_gvc
38872JBIG --with-jbig=$with_jbig $have_jbig
38873JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38874JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038875LCMS v1 --with-lcms=$with_lcms $have_lcms
38876LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038877LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038878LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038879Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38880OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038881PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038882PERL --with-perl=$with_perl $have_perl
38883PNG --with-png=$with_png $have_png
38884RSVG --with-rsvg=$with_rsvg $have_rsvg
38885TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038886WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038887Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38888WMF --with-wmf=$with_wmf $have_wmf
38889X11 --with-x=$with_x $have_x
38890XML --with-xml=$with_xml $have_xml
38891ZLIB --with-zlib=$with_zlib $have_zlib
38892
38893X11 Configuration:
38894 X_CFLAGS = $X_CFLAGS
38895 X_PRE_LIBS = $X_PRE_LIBS
38896 X_LIBS = $X_LIBS
38897 X_EXTRA_LIBS = $X_EXTRA_LIBS
38898
38899Options used to compile and link:
38900 PREFIX = $PREFIX_DIR
38901 EXEC-PREFIX = $EXEC_PREFIX_DIR
38902 VERSION = $PACKAGE_VERSION
38903 CC = $CC
38904 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038905 CPPFLAGS = $MAGICK_CPPFLAGS
38906 PCFLAGS = $MAGICK_PCFLAGS
38907 DEFS = $DEFS
38908 LDFLAGS = $LDFLAGS
38909 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38910 LIBS = $MAGICK_LIBS
38911 CXX = $CXX
38912 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038913 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038914" >&6;}